Added SILC_ATTRIBUTE_USER_ICON.
[silc.git] / CHANGES
1 Mon Nov 21 19:18:15 EET 2005 Pekka Riikonen <priikone@silcnet.org>
2
3         * Added SILC_ATTRIBUTE_USER_ICON to lib/silccore/silcattrs.[ch].
4
5 Sun Nov 20 19:13:35 EET 2005 Pekka Riikonen <priikone@silcnet.org>
6
7         * Removed callback system from SilcMimeAssembler.  Return
8           the multipart type in silc_mime_get_multiparts.  Affected
9           files are lib/silcutil/silcmime.[ch].
10
11 Sat Nov 19 17:34:51 EET 2005 Pekka Riikonen <priikone@silcnet.org>
12
13         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
14           silc_mime_parse is available but deprecated.
15
16         * Check that packet is valid when processing key exchange,
17           authentication and rekey protocols.  Fixes a crashbug.
18           Affected files are apps/silcd/protocol.c and
19           lib/silcclient/protocol.c.
20
21         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
22           all hash buffers to use that instead of fixed values.
23
24 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
25
26         * Added SHA-256 to crypto library.  The SHA-256 takes now
27           precedence over SHA-1.
28
29 Wed Nov 16 00:36:53 CET 2005  Jochen Eisinger <c0ffee@penguin-breeder.org>
30
31         * fixed wrong return code in term_init.  Affected file
32           apps/irssi/src/fe-text/terminfo-core.c
33           
34 Mon Sep 12 18:13:38 CEST 2005  Jochen Eisinger <c0ffee@penguin-breeder.org>
35
36         * and it doesn't return FILE* but a file descriptor.  Affected
37           file apps/silcd/silcd.c
38
39 Mon Sep  5 18:40:22 CEST 2005  Jochen Eisinger <c0ffee@penguin-breeder.org>
40
41         * mkstemp returns -1 on error, thanks to brad@comstyle.com for
42           pointing this out.  Affected file apps/silcd/silcd.c
43
44 Fri Sep  2 23:44:37 CEST 2005  Jochen Eisinger <c0ffee@penguin-breeder.org>
45
46         * Fixed the insecure temporary file creation issue now that it's
47           even on bugtraq... Affected file apps/silcd/silcd.c
48
49 Wed Aug 24 18:27:48 CEST 2005  Patrik Weiskircher <pat@icore.at>
50
51         * Before creating a channel key we need to remove the private key
52           mode, otherwise no key is created. Affected file
53           apps/silcd/command.c
54
55 Fri Aug 19 15:20:05 CEST 2005  Patrik Weiskircher <pat@icore.at>
56
57         * Before checking ip/hostname of SilcSocketConnection, check
58           if its not doing a host lookup currently. Fixes atleast one
59           crash when many people connect at the same time.
60           Affected file apps/silcd/server_util.c.
61
62 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
63
64         * Check for valid return value from regcomp.  Affected file
65           lib/silcutil/unix/silcunixutil.c.
66
67 Tue May 10 19:55:13 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
68
69         * Check for FD_SETSIZE in silc_select to not go over.
70           Affected file lib/silcutil/unix/silcunixschedule.c.
71
72 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
73
74         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
75
76 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
77
78         * Fixed channel public key list saving on JOIN command reply
79           on backup router.  Affected file apps/silcd/command_reply.c.
80
81 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
82
83         * Added default limit how many channels client can join,
84           default is 50.  Added 'channel_join_limit' configuration
85           option to server too.  Affected files are apps/silcd/command.c
86           and serverconfig.[ch].
87
88 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
89
90         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
91           On Toolkit the server and client are not compiled by default.
92           Affected file configure.ad.
93
94 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
95
96         * Added lib/contrib/getopt.[ch] for platforms that don't
97           have it (it is not GPL implementation).
98
99         * Fixed compilation when pkg-config is used.
100
101 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
102
103         * A comma in invite/ban string is invalid, check for it.
104           Affected file apps/silcd/server_util.c.
105
106         * Added SERVICE command to the server.  It parses the command
107           request but SILC Server does not support services for the
108           time being.  Affected file apps/silcd/command.[ch].
109
110         * Added SERVICE command and command reply to client library.
111           It is however incomplete.  Updated Toolkit documentation.
112           Affected files are lib/silcclient/command[_reply].[ch].
113
114         * Fixed IDENTIFY/WHOWAS command reply to send the username
115           correctly (uninitialized buffer).  Affected file is
116           apps/silcd/server_query.c.
117
118 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
119
120         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
121           finalizes the major restructuring of the CVS tree.
122
123 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
124
125         * Send empty MOTD reply if MOTD file cannot be read.
126           Affected file silcd/command.c.
127
128 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
129
130         * Optimized primer number generator to use simpler conversion
131           routines.  Also assure that the prime number will have the
132           highest bit set after modifying it.  Affected file is
133           lib/silcmath/silcprimegen.c.
134
135         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
136
137         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
138           for now only for testing purposes, it will not be delivered
139           in any distribution for now.
140
141         * Removed NSS MPI from the source tree.  Due to upcoming
142           license change for the SILC Toolkit, we cannot deliver the
143           NSS MPI anymore.  I decided to replace it in all distributions
144           with public domain library.
145
146         * Removed GNU regex from lib/contrib and introduced free
147           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
148           GNU regex compatible API to it (only partial).
149
150         * Removed getopt routines from lib/contrib.
151
152 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
153
154         * Use silc_server_send_command_reply to send replies instead
155           of encoding packet itself.  Affected file silcd/command.c.
156
157         * Added command sending and receiving statistics to server.
158           Affected files in silcd/.
159
160         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
161           with GCC, for it not to warn about pointer signedness.
162
163 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
164
165         * Added context to the SilcIDCache destructor.  Affected
166           files are lib/silccore/silcidcache.[ch],
167           lib/silcclient/client.c and silcd/server.c.
168
169 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
170
171         * Added pkg-config check to configure.
172
173         * The PublicKeyDir must not be used with Admin block in server
174           config.  Affected file silcd/serverconfig.c.
175
176 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
177
178         * Added Autodist.
179
180 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
181
182         * Handle empty LIST command reply correcttly in server.  Affected
183           file silcd/command_reply.c.
184
185         * Handle empty LIST command reply correctly in client library.
186           The application will now receive one LIST command reply with
187           all arguments set to NULL if there are no channels.  Updated
188           Client Library documentation accordingly.  Affected file
189           lib/silcclient/command_reply.c.
190
191 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
192
193         * Added channel name string stringprep profile to the protocol
194           and implementation to allow a little free'er channel name
195           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
196
197         * Added silc_channel_name_[check|verify] to check and verify
198           channel name strings.  Affected files are
199           lib/silcutil/silcstrutil.[ch].
200
201         * Added support for the new channel name preparation in client
202           library and server.  Affected files in lib/silcclient and
203           silcd/.
204
205 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
206
207         * Added the Autodist into the source tree.  It replaces the
208           old ./prepare.  It can be used to create distributions as
209           previously.  See README.CVS and README.DIST.  See
210           distributions in distdir/.
211
212 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
213
214         * Make sure query sends at least an error back if nothing
215           more is sent.  Affected file silcd/server_query.c.
216
217 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
218
219         * During query, check if the original command caller goes
220           away.  If it does, stop the query.  Affected file
221           silcd/server_query.c.
222
223         * Check for valid channel creation in JOIN command reply.
224           Affected file lib/silcclient/command_reply.c.
225
226         * Handle the resolver counter in silc_client_get_users_by_channel
227           callback correctly.  Fixed auto-join bug in Gaim.  Affected
228           file lib/silcclient/idlist.c.
229
230 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
231
232         * Added some better error messages.  Affected file
233           silcd/command_reply.c and packet_receive.c.
234
235         * Handle error in WATCH command propely on backup router.
236           Affected file silcd/command.c.
237
238         * Fixed freeing of unfreeable variable in WHOIS command reply.
239           Affected file silcd/command_reply.c.
240
241 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
242
243         * Added pkg-config .pc file creation for silc core library
244           and silcclient library.  A patch by c0ffee.
245
246         * Removed the need for GNU Libidn.  Added the simple stringprep
247           from libidn into lib/contrib/.  It is now used also on Windows
248           build.
249
250 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
251
252         * Simplified the invite and ban string handling in the
253           server.  Check for valid invite and ban arguments also.
254           Affected file silcd/server_util.c.
255
256 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
257
258         * Added WATCH list announcing in backup router protocol.
259           Affected files are silcd/command.c, server.c, server_backup.c.
260
261         * Do not change users mode to founder on normal server/backup
262           if the founder mode is set, and user is first one to join.
263           Affected file silcd/pcaket_receive.c.
264
265         * Do not send CUMODE_CHANGE notify back to sender.  Affected
266           file silcd/packet_receive.c.
267
268         * Added getrusage() to take noise in SILC RNG.  A patch by
269           Mika Boström.  Affected files are configure.in.pre,
270           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
271
272 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
273
274         * Splitted the SILC libraries configuration into a configure
275           fragment into lib/configure.ad.  It is now possible, once
276           this feature is added, to specify whether to compile or not
277           compile included SILC libraries.  Affected files are
278           configure.in.pre, lib/silcmath/mpi/configure.ad,
279           lib/configure.ad, Makefile.defines.pre and
280           Makefile.defines_int.pre.
281
282         * Added --with-silc-includes and --with-silc-libs to configure.
283           If specified the included libs are not compiled, but the
284           specified libs are used.  Pkg-config is not yet supported.
285           Affected file configure.in.pre.
286
287         * Fixed WATCH command handling on backup router.  Router does not
288           send the watch command any more to backup if it originates from
289           backup.  Affected file silcd/command.c.
290
291 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
292
293         * Changed announcing to not announce unregistered clients.
294           Affected file silcd/server.c.
295
296         * Fixed username handling in command reply.  Affected file
297           silcd/command_reply.c.
298
299         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
300
301 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
302
303         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
304           Affected file: includes/silcincludes.h.in
305
306         * bool is defined as _Bool on Mac OS X now.
307           Affected file: lib/silcutil/silctypes.h
308
309 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
310
311         * Added support for UTF-8 nicknames, channel names and
312           server names in client library.  Affected files in
313           lib/silcclient/.
314
315         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
316           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
317           software to check how Toolkit has been compiled.
318
319 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
320
321         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
322
323         * Use silc_utf8_str[n]casecmp instead of strcmp routines
324           in library and in SILC Client when dealing with nicknames
325           and other identifier strings.  Affected file in client lib
326           and irssi.
327
328         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
329           irssi/src/silc/core/silc-servers.c.
330
331 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
332
333         * Fixed idcache to work with the new identifier strings.
334           Affected file lib/silccore/silcidcache.c.
335
336         * Added UTF-8 hash and compare function for SilcHashTable.
337           Affected file lib/silcutil/silcutil.[ch].
338
339         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
340           Affected file lib/silcutil/silcstringprep.[ch].
341
342         * Changed the identifier string handling to include the original
343           format in client, server, channel entries and normalized
344           format in cache.  Affected files in silcd/.
345
346 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
347
348         * Added support for the new identifier strings and their
349           validity checking.  Nicknames, channel names and usernames
350           can now include practically any kind of letters and various
351           other characters.  Affected files in silcd/ and in libraries.
352
353           NOTE: comparing these strings should now be done with memcmp()
354           to check binary compatibility.  All these strings are normalized
355           and casing is irrelevant.
356
357         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
358           as easy function for applications to check whether identifier
359           strings are valid.
360
361 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
362
363         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
364           file lib/silcutil/silcutf8.c.
365
366         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
367
368 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
369
370         * Make public key in getkey reply mandatory.  Affected file
371           lib/silcclient/command_reply.c
372
373 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
374
375         * Added Parameter dont_register_crypto_library to
376           SilcClientParam. If set to TRUE, silcclient library will
377           not initalize the Crypto Libraries and application
378           will need to do it. Affected file lib/silcclient/silcclient.h,
379           lib/silcclient/client.c.
380
381 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
382
383         * Imported new silc_utf8_[encode|decode] routines from
384           my internal SILC 1.1 source tree.  New encodings added:
385           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
386           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
387           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
388           SILC_STRING_LDAP_DN.
389
390         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
391
392         * Implemented stringprep (RFC 3454) API.  Internally we use
393           GNU Libidn's stringprep, for now, so it is required now to
394           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
395
396         * Added checking for GNU Libidn and --with-libidn to configure.
397
398 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
399
400         * If the passphrases entered do not match while generating a new key,
401           completly start over instead of going into an infinite loop asking
402           the user to re-enter the passphrase correctly.  Affected file
403           lib/silcutil/silcapputil.c
404
405 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
406
407         * Make sure server is removed from backup list when it is
408           deleted.  Affected files silcd/command.c, server.c,
409           server_util.c.
410
411         * Close socket when connecting to router fails.  Affected
412           file silcd/server.c.
413
414 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
415
416         * Adopt configuration toolchain to current auto-tools.
417           Affected files prepare, irssi/configure.in
418         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
419           redo that.  Affected files irssi/src/silc/core/client_ops.c,
420           irssi/src/fe-common/silc/fe-silc-channels.c
421         * Take over command line options into silcclient data structure.
422           Affected file irssi/src/silc/core/silc-core.c
423
424 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
425
426         * Do not try to initiate backup resuming protocol forever.
427           Affected file silcd/server_backup.c.
428
429 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
430
431         * ID change in resuming has to be done before changing
432           detached client's modes, since the ID change may fail and
433           leave ghosts on the network.  Affected file is
434           silcd/packet_receive.c.
435
436 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
437
438         * Fixed Win32 scheduler to not stuck anymore.  A patch from
439           Juha Räsänen.  Affected file is
440           lib/silcutil/win32/silcwin32schedule.c.
441
442         * Fixed QoS parsing for connection blocks in server.  Affected
443           file is silcd/serverconfig.c.
444
445         * Fixed server statistics increasing in server.  Affected file
446           is silcd/server.c.
447
448         * The CLOSE command now marks backup router as self disconnected
449           to avoid resuming problems.  Affected file silcd/command.c.
450
451 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
452
453         * When using silc_net_create_connection[_async], and your system can
454           create IPv6 sockets, it will try to connect to the IPv6 host.
455           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
456           file lib/silcutil/unix/silcunixnet.c
457
458 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
459
460         * Check for valid route when receiving packet from router and
461           when routing it to local server in the cell.  A patch from
462           Matt Miller.  Affected files silcd/router.c and server.c.
463
464 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
465
466         * Couldn't detach and reattach twice, because of the previous
467           commit. Affected file silcd/packet_receive.c
468
469 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
470
471         * Added check to ignore Port value if Initiator is FALSE.
472           Remote router coudln't connect if Port was set. Affected file
473           silcd/serverconfig.c
474
475         * If some client tries to resume more than once at the same time,
476           server crashed. Router didn't crash, but showed odd behaviour
477           (didn't allow clients to join anymore, ..). Affected files
478           silcd/packet_receive.c silcd/idlist.h
479
480 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
481
482         * Destroy the file transfer session in silc_client_file_close
483           with timeout.  Affected file lib/silcclient/client_ftp.c.
484
485         * Call SFTP server monitor in READ and WRITE after the actual
486           operations.  Affected file lib/silcsftp/sftp_server.c.
487
488 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
489
490         * Create one configure script from configure fragments
491           (configure.ad).  This is a first step towards new distribution
492           system.  Affected files prepare, configure.in.pre,
493           lib/silcmath/mpi/configure.ad.
494
495 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
496
497         * Removed expiring of client key pair.  Affected file is
498           irssi/src/silc/core/clientutil.c
499
500 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
501
502         * Check the number of connections from real number of
503           connections instead of socket number, when deciding if
504           server is full.  Affected files are silcd/server.c,
505           server_internal.h and silcd.c.
506
507         * Clarified the connections_max meaning in General section
508           in doc/example_silcd.conf.in.
509
510         * The reconnect_keep_trying default value set to TRUE
511           if it is not defined in the config file.  Affected file
512           silcd/serverconfig.c.
513
514 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
515
516         * Fixed crashbug in connection closing, after a protocol
517           completion callback, which might have closed it already.
518           Affected file silcd/server.c.
519
520         * Fixed rekey with PFS in backup router.  It did not allow
521           rekeys with PFS, and when the rekey protocol timedout
522           it crashed the backup router without the above fix.  Affected
523           file silcd/packet_send.c and server.c.
524
525 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
526
527         * The silc_client_add_channel_private_key now returns the
528           private key context if pointer is given as argument.
529           Affected files are lib/silcclient/silcclient.h and
530           client_channel.c.
531
532         * Added support for using channel private keys in SILC
533           Client Library even if the private key mode is not set
534           on the channel.  Affected file lib/silcclient/client_channel.c.
535
536         * The channel private key used to decrypt message is now
537           delivered to the application in the 'channel_messageÃ' client
538           operation.  Affected files are lib/silcclient/silcclient.h
539           and client_channel.c.
540
541         * Fixed wrong arg type for user limit in CMODE command reply.
542           Affected file silcd/command.c.
543
544         * The user limit is now taken and saved to SilcClientEntry in
545           JOIN and CMODE command replies and in CMODE_CHANGE notify.
546           Affected files lib/silcclient/silcclient.h, command_reply.c
547           and client_notify.c.
548
549         * Added support to the new private message key indicator
550           packet.  Added a new function to the client library:
551           silc_client_send_private_message_key_request.  The sender
552           indicates to be initiator, and receiver is responder.
553           Added the indicator to the SilcClientEntry as 'prv_resp'
554           boolean.  Affected files are lib/silcclient/silcclient.h
555           client.[ch], and client_prvmsg.c.
556
557 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
558
559         * Fixed the JOIN command calling when called with both
560          -auth and -founder.  Affected file is lib/silcclien/command.c.
561
562 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
563
564         * Check watcher list for resumed clients as well.  Affected
565           file is silcd/packet_receive.c.
566
567 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
568
569         * Implemented the user limit to the CMODE_CHANGE notify,
570           CMODE command reply and JOIN command reply in server.
571           Affected files are silcd/server.c, command.c, command_reply.c,
572           packet_send.c and packet_receive.c.
573
574 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
575
576         * Defined SILC_STRFMT_END that must be used now with
577           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
578           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
579           lib/silcclient/silcvcard.c, silcd/server_util.c.
580
581         * Fixed the adding of public key to the WATCH list in server.
582           Fixed the WATCH notify sending to client.  Affected files
583           are silcd/packet_send.[ch], command.c, server_util.c.
584
585         * Implemented the watching by public key in the SILC Client
586           Library and SILC Client.  Affected files are
587           lib/silcclient/command.c and client_notify.c.
588
589 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
590
591         * Added support for public key watching in server.  Affected
592           files are silcd/server.c, server_internal.h, command.c,
593           server_util.c.
594
595 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
596
597         * Added public key to the SIlcClientEntry.  Affected files
598           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
599
600         * Fixed the get_clients_whois reply processing to return
601           exactly same entries server returned.  Makes it possible
602           to search using attributes.  Affected file is
603           lib/silcclient/idlist.c.
604
605 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
606
607         * Save founder key to SilcChannelEntry.  Affected files are
608           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
609
610 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
611
612         * Call the monitor callback with _CLOSED status from the
613           silc_client_file_close.  Affected files are
614           lib/silcclient/client_fpt.c, silcclient.h
615
616         * Added silc_client_get_clients_whois which resolves using
617           WHOIS, and supports requested attributes as well.
618           Affected files are lib/silcclient/silcclient.h, idlist.c.
619
620 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
621
622         * Added support for asking the destination filename where
623           the downloaded file is saved in the file transfer.  Affected
624           files are lib/silccilent/silcclient.h, client_ftp.c.
625
626 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
627
628         * Fixed error handling in resuming data processing.  Affected
629           files are lib/silcclient/client_resume.c and client.c.
630
631 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
632
633         * Fixed silc_client_send_private_message to return TRUE correctly.
634           Affected file lib/silcclient/client_prvmsg.c.
635
636         * Added topic to the SilcChannelEntry.  Affected files are
637           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
638
639 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
640
641         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
642           file lib/silcclient/command.c
643
644 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
645
646         * Convert all commands to UTF-8 before passing them to the
647           client library.  Still need to convert replies from UTF-8 to
648           the locale encoding.  Affected file
649           irssi/src/silc/core/silc-cmdqueue.c
650
651 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
652
653         * redirect all silc_client_command_calls through a queueing framework.
654           This fixes /CYCLE and the annoying "nick change after auto-joining
655           a channel".  Furthermore it defines one central point where
656           command parameters can be UTF-8-ified.  Affected files
657           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
658           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
659
660 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
661
662         * use asynchronous connect() to establish router connections.
663           Fixes problem when the primary router goes down.  Affected files
664           silcd/server.c, silcd/server_backup.c
665
666 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
667
668         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
669           Fixed various compilation warnings when type casting ints
670           to pointers or vice versa, of different size.  Updates around
671           the source free.
672
673 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
674
675         * Surrogates not allowed in UTF-8 strings, updated decoder.
676           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
677           testers in lib/silcutil/tests/ directory.
678
679 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
680
681         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
682           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
683           files are lib/silcclient/silcclient.h, client.c.
684
685 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
686
687         * When resuming a session fails, notify the user that the session
688           file needs to be removed eventually.  Affected files
689           irssi/src/fe-common/silc/module-formats.[ch],
690           irssi/src/silc/core/client_ops.c.
691
692 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
693
694         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
695           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
696
697         * Typofix in Irssi::Silc module.  Affected file
698           irssi/src/perl/silc/Silc.xs.
699
700 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
701
702         * Changed the way NOTICE flagged messages are treated. Added support
703           for notices in queries and signing notices.  Affected files
704           irssi/default.theme; irssi/docs/help/in/notice.in;
705           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
706           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
707
708         * Fixed typo in /ACTION help.  Affected file
709           irssi/docs/help/in/action.in
710
711 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
712
713         * Fixed typo in perl module.  Affected file
714           irssi/src/perl/silc/Server.xs
715
716         * Changed the way ACTION flagged messages are treated. Added support
717           for actions in queries and signing actions.  Affected files
718           irssi/default.theme; irssi/docs/help/in/action.in;
719           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
720           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
721           silc-servers.[ch]
722
723 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
724
725         * Incorrectly reported error when client had to be resolved from
726           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
727
728 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
729
730         * Fixed whois public key hash table deleting and adding in
731           detached client case.  Affected file silcd/packet_receive.c.
732
733 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
734
735         * Changed filenames of silc/fe module not to collide with filenames
736           from core/fe.  Also seperated public messages printing from
737           query messages printing.  Affected files are all in
738           irssi/src/fe-common/silc.
739
740 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
741
742         * Fixed the invite process handling during joining to use
743           correct server name for the client that is matched against
744           the invite string for the channel.  Wrong server name caused
745           inability to join the channel.  Affected file is
746           silcd/command.c.
747
748 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
749
750         * Fixed the CUMODE channel founder authentication on normal
751           server to not remove the founder rights on existing founder
752           before checking that router accepts the mode change.  Affected
753           files are silcd/command.c and silcd/packet_receive.c.
754
755         * Remove the server entry correctly when rekey timeouts and
756           remote router connection on normal server is closed.  Fixes
757           a crash where server uses the freed server entry.  Affected
758           file silcd/server.c.
759
760 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
761
762         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
763           networks.  This is the first step in solving the bug about
764           /SERVER ADD -silcnet <silcnet>.  Affected files
765           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
766           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
767           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
768
769 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
770
771         * /SMSG and /MMSG now correctly create new queries. Affected files
772           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
773
774         * Add basic support for SILC protocol specific variables in perl.
775           Affected files irssi/src/perl/silc/*, irssi/configure.in,
776           irssi/src/perl/Makefile.am
777
778 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
779
780         * Don't use silc_get_input, it's obviously not reliable.  Fixes
781           issue when the current key expires.  Affect file
782           irssi/src/silc/core/clientutils.c
783
784         * Make the session data filename configurable.  This makes it
785           possible to have different session files for different
786           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
787           client_ops.[ch], silc-servers.c,
788           irssi/src/silc/fe-common/silc/module-formats.[ch]
789
790         * Use the same set of libtool files for the MPI lib as for the
791           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
792           config.sub, configure.in, install-sh, missing, mkinstalldirs
793
794 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
795
796         * Fixed server statistics decrementing error to not go to
797           negative.  Affected file silcd/packet_receive.c.
798
799 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
800
801         * Use silc_server_query_add_error to add error in public key
802           search error.  Added support in send_reply to send errors
803           without specific argument.  Affected file silcd/server_query.c.
804
805         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
806           Client for NO_SUCH_NICK.  It was against the protocol specs.
807           Affected file irssi/src/silc/core/client_ops.c.
808
809         * Added backwards support for the wrong NO_SUCH_NICK error sending
810           in server.  To be removed in SILC Server 1.0.  Both old clients
811           and clients with fixed error handling now works.  Affected file
812           silcd/server_query.c.
813
814 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
815
816         * fixed a bug in the whois using attributes function where no
817           error was sent if no nickname and client id but the attributes were
818           given to whois. Affected file silcd/server_query.c
819
820 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
821
822         * remove public key from public key hashtable on detach. Affected
823           file silcd/packet_receive.c
824
825         * free public key hashtable before removing clients on server
826           shutdown. Affected file silcd/server.c
827
828         * remove public key prior deleting client-data on killing a client.
829           Affected file silcd/server_util.c
830
831 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
832
833         * Getting the MOTD from other servers works now. Affected
834           files are silcd/command.c and silcd/command_reply.c
835
836 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
837
838         * Initialize the variable idletag, since it is tested in
839           silc_core_deinit for its default value.  Affected file
840           irssi/src/silc/core/silc-core.c
841
842 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
843
844         * Fixed signed channel messages across cells. Affected file
845           silcd/packet_send.c
846
847 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
848
849         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
850           is not defined.  They can now be safely used in if-statements
851           without braces.  Affected file lib/silcutil/silclog.h.
852
853         * Added the checks for backup closing connection due to error
854           (local or remote) and thus not allow the resuming to occur
855           in reconnect.  Affected files are silcd/packet_send.c
856           and server.c.
857
858 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
859
860         * Help file updates.  Affected files in irssi/src/docs/help/in/.
861
862 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
863
864         * Fixed channel messages across cells. Affected file
865           silcd/packet_send.c
866
867 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
868
869         * Fixed file transmission accepting in client library to not
870           start the negotiation if user hasn't accepted the transfer,
871           instead create new session for resent transfer.  Affected
872           file lib/silcclient/client_ftp.c.
873
874         * Show the session ID in the file transmision list.  Remove
875           session from list that failed to transfer.  Switch the current
876           session automatically after transmission, and in errors, to new
877           session if other sessions exists in the transfer list.  Affected
878           files are irssi/src/silc/core/silc-servers.c,
879           irssi/src/fe-common/silc/modfule-formats.c.
880
881 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
882
883         * Fixed MIME header parsing for the hopefully last time.  Affected
884           file lib/silcutil/silcstrutil.c
885
886 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
887
888         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
889
890         * The SILC RNG is now gauranteed to return non-zero random
891           values.  Affected files are lib/silccrypt/silcrng.[ch].
892
893 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
894
895         * Fixed nickname formatting when changing only case of the
896           nickname.  Affected file lib/silcclient/idlist.c.
897
898 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
899
900         * Fixed a memory leak and incorrect printing of the "appears as"
901           message.  Affected file irssi/src/silc/core/client_ops.c
902
903 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
904
905         * Added CRT (Chinese Remainder Theorem) supported RSA
906           private keys and private key operations.  This significantly
907           increases private key operation efficiency.  No compatibility
908           issues with new or old private keys.  Affected files are
909           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
910
911 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
912
913         * Fixed GCC-3.3.2 related compilation warnings from the
914           source tree.
915
916 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
917
918         * Removed RC6 from distributions.
919
920 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
921
922         * Added some better comments to lib/silccrypt/silcpkcs.h,
923           optimized some routines in lib/silccrypt/silcpkcs.c.
924           Added test_silcpkcs into lib/silccrypt/tests/.
925
926         * Fixed silc_rng_global_init to actually init the global RNG
927           if RNG wasn't provided for it.  Affected file is
928           lib/silccrypt/silrng.c.
929
930 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
931
932         * Added silc_hash_table_find_by_context_ext.  Affected files
933           lib/silcutil/silchashtable.[ch].
934
935         * Save the public key on normal server in WHOIS command reply
936           from attributes, if present, and add it to public key hash
937           table.  Fixes WHOIS resolving by public key on normal server.
938
939           Optimized the attributes resolving on normal server to not
940           resolve if we resolved them already from router.
941
942           Affected files are silcd/server_query.c, command_reply.c.
943
944 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
945
946         * Added support for whois using attributes.
947           Affected files silcd/command_reply.c, silcd/packet_receive.c,
948           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
949           silcd/server_util.c
950
951         * Added support for whois using public key attribute to /WHOIS i
952           client command. Affected files irssi/docs/help/in/whois.in,
953           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
954
955 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
956
957         * Fixed UMODE setting in server when the client has anonymous
958           mode set.  The mode setting was not working.  Affected file
959           silcd/command.c.
960
961 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
962
963         * Fixed some bugs and typos related to sending split messages.
964           Print notification when sending messages with /MMSG.  Affected
965           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
966
967 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
968
969         * Optimized the socket referencing in packet routines, client
970           library and server.  Affected files are lib/silccore/silcpacket.c,
971           lib/silcclient/client.c and silcd/server.c.
972
973         * If silc_socket_set_qos is given with NULL arguments the QoS is
974           reset from the socket.  Affected files are
975           lib/silcutil/silcsockconn.[ch].
976
977 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
978
979         * Add a /LISTKEYS command which lists the locally cached
980           client and server keys.  Affected files
981           irssi/src/fe-common/module-formats.[ch],
982           irssi/src/silc/core/silc-{channels,servers}.c
983           irssi/docs/help/in/listkeys.in
984
985 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
986
987         * Check that packet queue purging was successful.  Affected
988           files lib/silcclient/client.c and silcd/packet_send.c.  Related
989           to MAC failed errors.
990
991         * Do not clear the inbuf even if it is empty if QoS was applied
992           to it.  Otherwise the QoS data is cleared and MAC failed error
993           will occur.  Affected file lib/silccore/silcpacket.c.
994
995         * Use the rekey period time as rekey protocol timeout value.
996           If the rekey does not succeed during the rekey period there's
997           something very wrong, and we most likely end up with wrong keys,
998           do graceful reconnect then.   Affected file silcd/server.c.
999
1000         * Take reference of the socket in the parser context, as it's
1001           possible to have the parsers in queue after the socket is
1002           disconnected and this may cause crash.  Affected files are
1003           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1004           silcd/server.c.
1005
1006 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1007
1008         * Fixed KICK command reply sending, it sent to replies.
1009           Affected file silcd/command.c.
1010
1011 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1012
1013         * Finish the silc-mime.pl script. It now supports MIME type
1014           guessing using magic files, signing data messages, executing
1015           MIME handlers in background. Affected files
1016           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1017
1018         * Changed MIME signal handler to make things easier for the perl
1019           script. Affected files irssi/src/silc/core/client_ops.c,
1020           silc-servers.c, and irssi/docs/signals.txt
1021
1022         * Cleaned up the silc_mime_parse function and fixed detection
1023           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1024
1025 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1026
1027         * Resolve the IP for file transfer listener from the connection
1028           socket.  Affected file lib/silcclient/client_ftp.c.
1029
1030         * Accept NULL hostname parameter in the functions
1031           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1032           if hostname is not wanted.
1033
1034 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1035
1036         * Fixed race condition between silc_client_init and
1037           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1038
1039 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1040
1041         * Fixed file transfer connection closing when SIGNOFF for
1042           the client is received from server.  Affected file is
1043           lib/silcclient/client_ftp.c.
1044
1045 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1046
1047         * Check for disconnected socket in QUIT callback.  Affected
1048           file silcd/command.c.
1049
1050 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1051
1052         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1053           Affected files lib/silcutil/silcstrutil.c
1054
1055         * Cleaned up the escape/unescape functions for correctness and
1056           speed. Affected file irssi/src/silc/core/client_ops.c
1057
1058         * Removed handling for data messages with Content-Type: text/*,
1059           moved parsing of MIME headers to the signal handler, added
1060           support for signing and verifying data messages. Affected
1061           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1062           irssi/src/silc/core/silc-{servers,channels}.c
1063
1064         * Added a perl script for handling data messages based on
1065           information read from Mailcap files. New file
1066           irssi/scripts/silc-mime.pl
1067
1068 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1069
1070         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1071           acknowledge recepetion of a message to the sender.  Updated
1072           protocol specs.
1073
1074 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1075
1076         * Unregister channel key saving callback when deleting channel.
1077           Affected file lib/silcclient/idlist.c.
1078
1079         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1080           before calling notify client operation.  Affected file is
1081           lib/silcclient/client_notify.c.
1082
1083         * Unregister QoS tasks when deleting the socket connection.
1084           Affected files lib/silcutil/silcsockconn.[ch],
1085           unix/silcunixsockconn.c.
1086
1087         * Implemented latest presence-attrs draft changes.  Affected
1088           files lib/silccore/silcattrs.h and
1089           irssi/src/silc/core/silc-queries.c.
1090
1091 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1092
1093         * Save old channel keys in list to allow more rapid change
1094           of channel keys if server for some reason does that.  This
1095           avoids loosing so many channel messages due to not having
1096           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1097           idlist.c and client_channel.c.
1098
1099 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1100
1101         * Continued backup router tests and fixes.  Affected files
1102           silcd/server_backup, server_util.c, server.c.  See TODO.
1103
1104 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1105
1106         * Fixed SERVER_SIGNOFF handling in servers.  The client
1107           was removed from wrong list thus not removing the client
1108           at all.  Affected file silcd/packet_receive.c.
1109
1110         * Do not execute rekey protocol for disabled connections as
1111           it would never go through.  Affected file silcd/server.c.
1112
1113         * Added timeout for rekey protocol to catch if the protocol
1114           never executes successfully.  Affected files silcd/server.c
1115           and protocol.h.
1116
1117 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1118
1119         * Abandon packet processing for disconnected sockets.  Check
1120           this always after calling packet processing callback.
1121           Affected file lib/silccore/silcpacket.c.
1122
1123         * Fixed double registration disconnection code in server.
1124           Closed wrong connection.  Affected file silcd/packet_receive.c.
1125
1126 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1127
1128         * On normal server reconnect to primary during resuming 4
1129           times, then give up.  Affected file silcd/server_backup.c.
1130
1131         * If during reconnecting to routers we notice we have router
1132           connection but no primary router set, the server is in desync.
1133           Reconnect to primary to restore network.  Affected file
1134           silcd/server.c.
1135
1136         * Assure that only one protocol is exeucting at the same time.
1137           Added checks for all protocols.  Affected files are
1138           silcd/server.c and server_backup.c.
1139
1140 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1141
1142         * Check that a string is not already part on invite/ban
1143           string when processing it.  Affected file silcd/server_util.c.
1144
1145 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1146
1147         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1148           with 1.2 version of the protocol.  Affected file is
1149           silcd/packet_receive.c.
1150
1151 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1152
1153         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1154           where the passphrase was given.  Affected file is
1155           silcd/command.c.
1156
1157 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1158
1159         * INVITE and BAN notifys are now delivered from routers to
1160           servers (but not clients) on the channel.  Updated specs and
1161           code.  Affected files silcd/packet_[send|receive].[ch],
1162           command.c, server.c and server_util.c.
1163
1164         * Implemented INVITE and BAN announcing.  Affected files are
1165           silcd/server.[ch], server_util.c.
1166
1167         * Implemented SilcStatus error type argument returning in
1168           command reply error in server.  Affected file silcd/command.c.
1169
1170         * Implemented SilcStatus argument returning in comand reply
1171           in client library.  The command_reply client operation now
1172           returns error specific arguments as well.  Affected files
1173           are lib/silcclient/command_reply.[ch], client_resume.c,
1174           lib/silccore/silcstatus.[ch].
1175
1176 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1177
1178         * Backup router protocol version 1.2 implemented.  Testing still
1179           required.  Affected files in silcd/server_backup.[ch], server.c,
1180           packet_receive.c and server_internal.h.
1181
1182 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1183
1184         * silc_client_send_[channel|private]_message now return TRUE
1185           or FALSE.  Affected file lib/silcclien/client_channel.c and
1186           client_prvmsg.c.
1187
1188 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1189
1190         * Check for explicit nickname in INVITE and BAN processing
1191           during join as well (and don't expect only wildcards in
1192           invite/ban strings).  Affected file silcd/command.c.
1193
1194         * Fixed the INVITE and BAN by public key.  The public key saved
1195           is the PK payload (as specified) not the raw data.  Affected
1196           file silcd/server_util.c.
1197
1198 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1199
1200         * UTF-8 text message support for actions and notices in SILC
1201           Client.  Affected file irssi/src/silc/core/client_ops.c.
1202
1203         * silc_get_username and silc_get_real_name now returns sensible
1204           data on Win32.  Patch by Toni Willberg.  Affected file is
1205           lib/silcutil/win32/silcwin32util.c.
1206
1207 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1208
1209         * Provide a signal handler to send MIME encoded messages and emit
1210           a signal when a MIME encoded message is received. Also document
1211           the signals for usage with the perl interface.
1212
1213           A sample perl script will be supplied at a later point.
1214
1215           Affected files are irssi/docs/signals.txt,
1216           irssi/src/silc/core/client_ops.[ch],
1217           irssi/src/silc/core/silc-{channels,servers}.c
1218
1219 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1220
1221         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1222           server. Use this time to display a lag and disconnect when it
1223           exceeds a specified limit.
1224
1225           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1226
1227 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1228
1229         * Remove the channel auth list in normal server if router
1230           encofrces its list during connecting.  Send notify to channel
1231           to remove the mode to remove the list.  Affected files are
1232           silcd/server_util.c and silcd/packet_receive.c.
1233
1234 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1235
1236         * Added support for channel public keys.  Updated protocol specs
1237           and implemented it.  Affected files are
1238           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1239           lib/silcclient/command_reply.c.
1240
1241 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1242
1243         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
1244           terminate the process on Linux.  Affected file silcd/silcd.c.
1245
1246 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1247
1248         * Check for NULL buffer in silc_buffer_clear.  Affected file
1249           is lib/silcutil/silcbuffer.h.
1250
1251         * Simplified the backup router protocol by removing the _GLOBAL
1252           types.  Updated protocol specs and the code.  Affected files
1253           are silcd/server_backup.[ch].
1254
1255 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1256
1257         * Deny '@' and '!' from nicknames since they are reserved
1258           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
1259           Updated protocol specs and the code.
1260
1261           Affected files are silcd/server_util.[ch].
1262
1263 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1264
1265         * Fixed stack overflow in Irssi SILC client.  Affected
1266           file irssi/src/silc/core/client_ops.c.
1267
1268         * Check that Host is set in ServerConnection and RouterConnection
1269           in silcd.conf.  Affected file silcd/serverconfig.c.
1270
1271         * Fixed crash in server with protocol completion callbacks,
1272           namely rekey and backup resuming protocols.  Affected files
1273           are silcd/server_backup.c and silcd/server.c.
1274
1275         * Fixed rekey protocol to not restart if it is started already.
1276           Affected files are lib/silcclient/client.c and
1277           silcd/server.c.c
1278
1279 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1280
1281         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
1282
1283         * Fixed EOF handling in SILC Config, affected file
1284           lib/silcutil/silcconfig.c.
1285
1286         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
1287
1288         * Fixed RESOLVING flag handling in JOIN notify and other
1289           notifys to handle the resolvings correctly in client library.
1290           Affected file lib/silcclient/client_notify.c.
1291
1292         * Do not send full INVITE and BAN lists in INVITE and BAN
1293           notifys, only the changed information.  Affected file
1294           silcd/command.c.
1295
1296         * Fixed INVITE notify sending in INVITE command, send it
1297           only when needed.  Affected file silcd/command.c.
1298
1299         * Handle the founder key change properly in CMODE_CHANGE
1300           notify.  Bug #122.  Affected file silcd/packet_receive.c.
1301
1302 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1303
1304         * Remove the mark for output (mark it only for input) after
1305           purging outgoing queue.  Prevents the "Error in select()"
1306           floods.  Affected file silcd/packet_send.c.
1307
1308         * Fixed incorrect connection deletion from client library
1309           after calling "connect" client operation.  Could cause
1310           crashes for example during reconnect timeouts.  Affected
1311           files are lib/silcclient/client.c and
1312           irssi/src/silc/core/client_ops.c.
1313
1314         * Check server private key file permissions before starting
1315           the server.  Affected file silcd/serverconfig.c.
1316
1317 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1318
1319         * NULL terminate allocated string in silc_buffer_strformat.
1320           Affected file lib/silcutil/silcbuffmt.c.
1321
1322         * Rewrote the invite/ban list string handling in server to
1323           use SilcBuffer instead.  Affected files are silcd/command.c
1324           and silcd/server_util.c.
1325
1326 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1327
1328         * Fixed double free in CMODE command when setting new HMAC
1329           for channel.  Affected file silcd/command.c.
1330
1331         * Added couple of missing memset's to zero sensitive memory.
1332           Affected files silcd/command.c, lib/silcclient/command.c.
1333
1334 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1335
1336         * Fixed a double free in INVITE command error handling in
1337           server.  Affected file silcd/command.c.
1338
1339         * Added macros SILC_SWAB_[16|32] to swab byte order of
1340           16-bit and 32-bit unsigned integers.  Affected file
1341           lib/silcutil/silctypes.h.
1342
1343         * Use the SILC_SWAB_16 instead of htons() in server when
1344           handling ports since the ports in structures are always
1345           in little-endian order (regardless of platform).  Affected
1346           file silcd/serverid.c and silcd/server_backup.c.
1347
1348 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1349
1350         * Send DISCONNECT in close admin command in server.  Affected
1351           file silcd/command.c.
1352
1353         * Check whether we are already connecting to a remote router
1354           (in addition of checking whether we are already connected)
1355           before creating new connection.  Affected file silcd/server.c.
1356
1357 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1358
1359         * Added better compiler and compiler flags checking in
1360           configure.
1361
1362         * Check that socket is valid after QoS is applied to data.
1363           Affected file lib/silcutil/unix/silcunixsockconn.c.
1364
1365         * Make sure the socket connecetion is not closed to early
1366           when closing connection in server.  Also make sure the
1367           connection is always closed after error in a protocol.
1368           Affected file silcd/server.c.
1369
1370 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1371
1372         * Removed --session and --dummy options from Irssi SILC Client.
1373           -d option is available only if --enable-debug was given.
1374           Affected files are irssi/src/silc/core/silc-core,
1375           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
1376
1377 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1378
1379         * Added silc_buffer_steal to steal the data from the buffer.
1380           Affected file lib/silcutil/silcbuffer.h.
1381
1382 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
1383
1384         * Fixed server crash with double Primary block in config file.
1385
1386           Fixed also various memory leaks around the config file
1387           parser.  Affected files lib/silcutil/silcconfig.c,
1388           silcd/serverconfig.c.
1389
1390         * Changed my nickname (Johnny Mnemonic) to my real name, this
1391           means that bugs introduced by him were actually introduced
1392           by me!
1393
1394 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1395
1396         * Don't display "foo appears as foo\nYou're now known as foo"
1397           messages.  Affected file irssi/src/silc/core/client_ops.c
1398
1399 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1400
1401         * Fixed error handling of invalid client entry when calling
1402           commands in server.  Fixes a crash.  Affected file
1403           silcd/command.c.
1404
1405 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1406
1407         * Added some sanity checks in server for correctness of the
1408           server configuration.  Affected file silcd/serverconfig.c.
1409
1410 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1411
1412         * Prevent endless resolving of user informations in USERS
1413           command by checking the command reply status correctly.
1414           Affected file lib/silcclient/command_reply.c.
1415
1416 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1417
1418         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
1419           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
1420           Aldous <Matthew@Aldous.com>.
1421
1422         * Added better implementation using CriticalSection of
1423           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
1424           <mikko.lahteenmaki@pikabaana.net>.
1425
1426         * Added some Winsock WIN32 compatiblity defines into
1427           includes/silcwin32.h.
1428
1429 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1430
1431         * Fixed double free in async host lookup code.  Affected file
1432           lib/silcutil/silcsockconn.c.
1433
1434         * On backup router handle now the SERVER_SIGNOFF from router
1435           for local connected servers too, and close the connections.
1436
1437           Do not process them as normally signing off servers when they
1438           really signoff by sending EOF fe, but always assume that
1439           router sends the SERVER_SIGNOFF.
1440
1441           Affected files silcd/server.c and silcd/packet_receive.c.
1442
1443         * Fixed socket unsetting when closing connections.  Affected
1444           files silcd/server.c and silcd/packet_send.c.
1445
1446         * Do not print the nickname in SERVER_SIGNOFF if we do not
1447           have it.  Prevents asserts in Irssi core.  It is possible we
1448           don't have the nick if it was just being resolved when server
1449           signoff.  Affected file irssi/src/silc/core/client_ops.c.
1450
1451 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1452
1453         * Fixed autonick crashbug in client library.  Affected file
1454           lib/silcclient/client.c.
1455
1456         * Fixed Unix implementation of SilcMutex to really assert if
1457           the mutex is locked/unlcoked already.  Affected file
1458           lib/silcutil/unix/silcunixmutex.c.
1459
1460         * Fixed locking in silc_schedule_uninit.  It didn't lock
1461           when dispatching timeout tasks.  Affected file is
1462           lib/silcutil/silcschedule.c.
1463
1464         * Changed Win32 implementation of SilcThread to use modern
1465           Win32 interface.  Affected file is
1466           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
1467
1468 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1469
1470         * Don't print signed messages when sending failed.  Affected files
1471           irssi/src/silc/core/silc-[servers.c/commands.h]
1472
1473         * Send adquate signal when founding a channel by joing it.  Affect
1474           file irssi/src/silc/core/client_ops.c
1475
1476 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1477
1478         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
1479           irssi/src/fe-common/core/themes.c
1480
1481 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1482
1483         * Fixed close command to use the port correctly when closing
1484           server connections.  Affected file silcd/idlist.c.
1485
1486         * Check for NULL outbuf in silc_socket_write.  It is possible
1487           that it is NULL is some odd case.  Affected files are
1488           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
1489
1490         * Do not call final protocol callback for backup router
1491           resuming protocol when closing connection.  It is closed
1492           by timeout in case of error.  Affected file silcd/server.c.
1493
1494         * Backup reconnect to router if backup resuming protocol
1495           failed.  Affected file silcd/server_backup.c.
1496
1497 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1498
1499         * Fixed double free in SKE library error hadling when signature
1500           error occurred.  Affected file lib/silcske/silcske.c.
1501
1502         * Save the fingerprint to new SilcClientEntry after changing
1503           nickname.  Affected file lib/silcclient/client_notify.c.
1504
1505         * Print SIGNOFF in Irssi SILC client only if the nickname is
1506           known.  Prevents asserts in Irssi core.  It is possible we
1507           don't have the nick if it was just being resolved when it
1508           quit.  Affected file irssi/src/silc/core/client_ops.c.
1509
1510 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1511
1512         * Fixed double free in invite list adding code when adding
1513           invite strings.  Affected file silcd/server_util.c.
1514
1515 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1516
1517         * More log printing during backup router protocol.  Affected
1518           file silcd/server_backup.c.
1519
1520         * Removed backwards support for old private key file format.
1521           Affected file lib/silccrypt/silcpkcs.c.
1522
1523         * Removed backwards support for not-so-strict decryption length
1524           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
1525
1526         * GETKEY to update the client entrys fingerprint too.
1527           Affected file lib/silcclient/command_reply.c.
1528
1529         * Added --without-libtoolfix for package builders using weird
1530           wrappers around libtool (BSD at least).
1531
1532 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1533
1534         * Fixed backup router bugs:  When backup resumes router and
1535           receives a CHANNEL_MESSAGE packet the backup must not act
1536           as router since the packet header decryption would be
1537           different.  Also, when relaying packets to channel, do
1538           not re-encrypt packets on backup that came from the primary
1539           since the connection isn't really router-router connection.
1540           Affected files silcd/server.c, silcd/packet_send.c.
1541
1542         * Added checks in encryption/decryption that encryption/decryption
1543           length sent as argument really is multiple by block size.  Helps
1544           catching really weird bugs like the above backup router bugs
1545           when packets are being decrypted in wrong way.  Affected files
1546           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
1547
1548         * Fixed padding generation in private key file encryption.
1549           Affected file lib/silccrypt/silcpkcs.c.
1550
1551 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1552
1553         * Added ignore_message_signatures setting which can be used
1554           to ignore signatures in messages.  Affected files are
1555           irssi/src/silc/core/client_ops.c, silc-core.c.
1556
1557         * Fixed the libtoolfix to use command line options instead of
1558           environment variables.  They didn't work as expected.  Now,
1559           the libtool is fully run-time configurable.
1560
1561 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1562
1563         * Verify signature payload for signed messages. Affected files
1564           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
1565           irssi/src/silc/core/silc-core.h
1566
1567         * Display signature verification result in public and private
1568           messages using theme abstracts. See irssi/default.theme for
1569           examples on their usage. Affected files
1570           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
1571           irssi/src/fe-common/silc/module-formats.[ch],
1572           irssi/src/fe-common/silc/fe-common-silc.c,
1573           irssi/src/fe-common/silc/Makefile.am
1574           irssi/src/fe-common/core/fe-messages.[ch]
1575
1576         * Fixed bugs in Irssi's theme parsing. Affected files
1577           irssi/src/fe-common/core/themes.c
1578
1579 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1580
1581         * Calculate the correct length for signed messages before
1582           encrypting, it must be multiple by block size.  Affected
1583           file lib/silccore/silcmessage.c.
1584
1585         * silc_message_signed_get_public_key returns now both
1586           decoded and encoded public key.  Affected files are
1587           lib/silccore/silcmessage.[ch].
1588
1589         * Added libtoolfix script that makes the libtool more generic
1590           and configurable in run-time.  Now we can specify in run-time
1591           if what kind of libraries we want to create, regardless of
1592           configuration.  SIMs are now creates even if --disable-shared
1593           was explicitly given.
1594
1595 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1596
1597         * Fixed founder key sending in CMODE command in client.
1598           Affected file lib/silcclient/command.c.
1599
1600         * Fixed CUMODE founder authentication in server to not check
1601           for client's public key since it's not supposed to do that.
1602           Affected file silcd/command.c.
1603
1604 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1605
1606         * Set realname and hostname in NICK_REC records. Affected file
1607           irssi/src/silc/core/silc-nicklist.c
1608
1609 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1610
1611         * Remove 1.0 protocol backwards compat code from client
1612           library.
1613
1614         * Added more reliable check for whether nickname did change
1615           or not, or whether only Client ID changed in NICK_CHANGE
1616           notify.  Affected file lib/silcclient/client_notify.c.
1617           Fixes bug in '@' character handling in a nickname.
1618
1619         * Added support for automatically parsing signature from
1620           the message payload.  Added new function
1621           silc_message_get_signature to return the payload to
1622           application.  Affected files lib/silccore/silcmessage.[ch].
1623
1624         * Changed the private_message and channel_message client
1625           operations to deliver the SilcMessagePayload to the
1626           application too.  Application can use it fe. to get the
1627           signature from the message for verification.  Affected
1628           file lib/silcclient/silcclient.h, client_channel.c and
1629           client_prvmsg.c.
1630
1631         * Redefined the signed payload for message payloads.
1632           Updated protocol specs and implemented.
1633
1634 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1635
1636         * Fixed wrong invite and ban list handling in server command
1637           reply.  Affected files are silcd/command_reply.c,
1638           silcd/server_util.[ch].
1639
1640 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1641
1642         * Fixed CMODE setting in server when founder mode was set.
1643           Affected file silcd/command.c.  Bug #95.
1644
1645         * Added support to setting specific public key in CMODE in
1646           Irssi SILC client.  Affected file lib/silcclient/command.c.
1647
1648         * Added support to use specific public key in CUMODE in
1649           Irssi SILC Client.  Affected file lib/silcclient/command.c.
1650
1651         * Added support for inviting and banning by public key in
1652           Irssi SILC client.  Affected file lib/silcclient/command.c.
1653
1654         * Fixed fingerprint/babbleprint showing in invite and ban
1655           list command replys.  Affected file is
1656           irssi/src/silc/core/client_ops.c.
1657
1658 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1659
1660         * Format CMODE +c and +h to display both the mode and the argument
1661
1662 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1663
1664         * Added test vectors and test programs for SHA-1, MD5,
1665           HMAC-SHA1 and HMAC-MD5.  New tests are located in
1666           lib/silccrypt/tests/.  Fixed also argument decoding bug in
1667           MD5 implementation.  Affected file lib/silccrypt/md5.c.
1668
1669         * Changed the channel private key and private message key
1670           generation (with static keys) to use SHA1 instead of MD5,
1671           as SHA1 is the mandatory hash function in SILC.  Affected
1672           file lib/silcclient/client_[channel/prvmsg].c.
1673
1674         * Changed the private key file encryption to use SHA1 instead
1675           of MD5.  Added support for the old generation and added
1676           automatic change of the key (to be removed later).  Affected
1677           files lib/silccrypt/silcpkcs.c.
1678
1679 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1680
1681         * Load only files with .pub suffix in PublicKeyDir.  Affected
1682           file silcd/serverconfig.c.
1683
1684 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1685
1686         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
1687           channels.  Affected files silcd/silcd.c, silcd/server.h.
1688
1689         * Added the config directive PublicKeyDir for the client block.
1690           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
1691
1692 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1693
1694         * Merged Toni's irssi/silc.conf patch.
1695
1696         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
1697
1698         * Max alloc tests in allocation routines.  Affected file
1699           lib/silcutil/silcmemory.c.
1700
1701 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1702
1703         * Fixed a typo in resuming code that fixed detach/resume code
1704           in server.  Bug #93.  Affected file silcd/packet_receive.c.
1705
1706 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1707
1708         * Do reverse lookups for server when /connecting. Affected files
1709           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
1710           irssi/src/core/net-nonblock.*
1711
1712 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1713
1714         * Added library versioning for shared libraries.  Affected
1715           files configure.in.pre and lib/Makefile.am.pre.
1716
1717 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1718
1719         * Display INVITE and BAN lists as specified by SILC 1.2
1720
1721 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1722
1723         * Do not send invite list back unless asked (when sending
1724           no arguments) or when list was modified.  Affected file
1725           silcd/command.c.
1726
1727         * Remove client from invite list in KILLED notify and in
1728           KILL command.  Affected file silcd/command.c and
1729           silcd/server.[ch].
1730
1731         * Fixed bugs in invite list handling in INVITE command.
1732           Affected files silcd/command.c and silcd/server_util.c.
1733
1734         * Merged with Irssi 0.8.6.
1735
1736         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
1737           Affected file irssi/src/fe-text/silc.c.
1738
1739 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1740
1741         * The silc_argument_get_[first/next] now return the argument
1742           type to caller.  Added silc_argument_payload_encode_one.
1743
1744           Affected files are lib/silccore/silcargument.[ch].
1745
1746         * Added support for the SILC 1.2 INVITE command and new
1747           invite lists to server.  Affected files are silcd/command.c,
1748           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
1749
1750         * Added support for the SILC 1.2 BAN command and new
1751           ban lists to server.  Affected files are silcd/command.c,
1752           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
1753
1754         * Added support to client sending new INVITE command.  Affected
1755           file is lib/silcclient/command.c.
1756
1757         * Added support to client sending new BAN command.  Affected
1758           file is lib/silcclient/command.c.
1759
1760         * Added support for removing client from invite list when kicked
1761           from channel, as SILC 1.2 dictates.  Affected files are
1762           silcd/packet_receive.c and silcd/command.c.
1763
1764 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1765
1766         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
1767           automatically the cipher's internal IV.  Affected files
1768           lib/silccrypt/silccipher.[ch].
1769
1770         * Assure the RESUME_CLIENT packet is not sent to twice to
1771           backup router if the detached client was originated from
1772           the backup.  Affected file silcd/server.c.  Bug #76.
1773
1774         * Changed silc_sim_symname to not allocate memory.  Affected
1775           file lib/silcsim/silcsimutil.c.
1776
1777         * Fixed memory leaks with SIMs in server.  Affected files
1778           silcd/serverconfig.c, silcd/server.c.
1779
1780         * Fixed channel key distribution after resuming detached
1781           client.  Affected files silcd/packet_receive.c.
1782
1783         * Fixed channel's global_user boolean checking after detaching.
1784           Check it after changing the owner of the client not before.
1785           Affected file silcd/packet_receive.c.
1786
1787         * Fixed few double frees from client library.  Fixes at least
1788           Bug #81, possibly others too.
1789
1790         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
1791           notifys in Irssi SILC Client.  Affected file is
1792           irssi/src/silc/core/client_ops.c.  Bug #82.
1793
1794         * Applied Ville Räsänen's manual page and --mandir bugfix
1795           patch.  Affected files are configure.in.pre and Makefile.am.pre.
1796           Bug #88.
1797
1798 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1799
1800         * Added support to backup router protocol for backup to tell
1801           normal server that it cannot use the backup router as primary
1802           because the primary isn't really down.  Updated protocol
1803           specs.
1804
1805         * Added support for primary router to tell backup router that
1806           resuming is not possible because the backup really isn't primary
1807           in the cell.  For example if backup disconnected itself the
1808           resuming is not allowed since the primary really did not
1809           go down.  Updated protocol specs.
1810
1811         * Removed MARS from crypto library.
1812
1813         * Defined the CTR mode and Randomized CBC mode in SILC.  The
1814           CTR mode is RECOMMENDED now in specification.  Defined also
1815           Serpent cipher as optional cipher.  Updated the protocol specs.
1816
1817 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1818
1819         * Added support for inviting/banning by IP/MASK, public key,
1820           and explicit Client ID.  Redefined the command and notify
1821           types to allow easier forwards support for other methods
1822           of inviting/banning.  Updated protocol specs.
1823
1824         * Remove the client from channel's invite lists if the client
1825           is kicked or killed.  Updated protocol specs.
1826
1827         * Unified the Channel Message Payload and Private Message
1828           into one Message Payload.  Updated protocol specs and
1829           implemented.
1830
1831 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1832
1833         * Don't wait for EOF after socket error has occurred, but
1834           close the connection.  Affected file is silcd/server.c.
1835
1836 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1837
1838         * Added support for setting FOUNDER mode on channel with
1839           specific public key which can be set with CMODE command.
1840           Updated protocol specs and implemented in client and server.
1841
1842         * Fixed the Irssi SILC client to correctly shutdown the client
1843           library to avoid memory leaks.  Affected files are
1844           irssi/src/silc/core/silc-core.c and silc-servers.c.
1845
1846         * Deprecated the No Reply flag in SKE protocol and introduced
1847           "IV Included" flag which can be used to indicate that the IV
1848           is included in the ciphertext.  This makes it possible to use
1849           SILC on unreliable transport, such as UDP which may cause
1850           packet reordering and losses.  Updated protocol specs, did
1851           not implement yet.
1852
1853 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1854
1855         * Fixed the MPI implementation of silc_mp_sizeinbase to return
1856           < 32 bit values in correct size.  Affected file is
1857           lib/silcmath/mp_mpi.c.
1858
1859 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1860
1861         * Fixed the KE Start Payload parsing to check that mandatory
1862           fields are present.  Affected file lib/silcske/payload.c.
1863
1864         * Fixed compilation warnigs in Irssi SILC Client.  Affected
1865           files are irssi/src/silc/core/silc-query.c. client_ops.c.
1866
1867 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1868
1869         * Print "nick now appears as newnick" and update Irssi's nicklist
1870           when you change your nick to "nick". Closes #62
1871
1872         * Never format your own nick. Closes #63
1873
1874 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1875
1876         * SILC_UMODE_GONE changes are now propagated correctly to the
1877           Irssi client. Closes #54
1878
1879 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1880
1881         * Fixed example in /HELP KEY
1882
1883         * Added expando $j which expands to current SILC Client version
1884
1885 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1886
1887         * Fixed public key decoding in crypto library.
1888
1889         * Added better error printing to SKE library.
1890
1891 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1892
1893         * Fixed NICK command to not crash if nickname was not sent.
1894
1895 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1896
1897         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
1898           Deprecated the old Encrypt-And-MAC order.  Updated protocol
1899           specs and implemented.
1900
1901         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
1902           generation.  Updated specs and implemented.
1903
1904 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1905
1906         * Added support for rekey before 2^32 sequence number wraps.
1907           Affected files in server and client library.
1908
1909         * Padding must be at least 8 bytes now.  Implemented and updated
1910           protocol specs.
1911
1912         * Compute maximum padding for authentication packets to make
1913           passphrase approximation attacks impossible.  Affected files
1914           in client library and in server.
1915
1916         * Fixed PING command sending in client library and handling in
1917           server.  The server ID must be ID Payload, not raw ID data.
1918           Affected files in server and client library.
1919
1920         * Defined that all public keys sent in commands and notify
1921           payloads are actually Public Key Payloads not raw public key
1922           data.  Updated protocol specs and implemented.
1923
1924         * Updated protocol version to 1.2.  Updated specs and code.
1925
1926         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
1927           status types.  Updated specs and the code.
1928
1929         * Added support for normal client to kill its own entries from
1930           the network.  Updated protocol specs and the code.
1931
1932         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
1933           and added initial implementation.
1934
1935         * Added MAC field to the Private Message Payload to protect
1936           against chosen ciphertext attacks.  Updated the protocol specs
1937           and implemented.
1938
1939         * Added idle and signon fields to the ATTRIBUTE_SERVICE
1940           attribute to indicate the user's current idle and signon time
1941           of a service.  Updated protocol specs and implemented.
1942
1943 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1944
1945         * Added "do_not_bind" argument to silc_client_file_send what
1946           can be used to not bind locally but assume the file receiver
1947           provides the point of connect.  Usefull when sender is behind
1948           NAT device.  Affected file lib/silcclient/silcclient.h and
1949           client_ftp.c.
1950
1951         * Added -no-listener option to FILE SEND command in Irssi SILC
1952           client.  Affected file irssi/src/silc/core/silc-servers.c.
1953           Renamed FILE RECEIVE to FILE ACCEPT.
1954
1955         * Confirm passphrase for private key encryption in
1956           silc_create_key_pair and silc_change_private_key_passphrase.
1957           Affected files are lib/silcutil/silcapputil.c.
1958
1959 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1960
1961         * Move silc_client_packet_send back to internal, added
1962           silc_client_send_packet, a bit simpler function for application.
1963           Affected files lib/silcclient/silcclient.h, client.c and
1964           client_internal.h.
1965
1966         * Moved the SilcClientEntry, SilcChannelEntry and
1967           SilcServerEntry to silcclient.h to be public and documented
1968           them for application.  Affected files are
1969           lib/silcclient/silcclient.h and idlist.h.
1970
1971 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1972
1973         * Fixed manual page installation patch by Ville Räsänen.
1974           USERS help page fix patch by Ville Räsänen
1975
1976         * Changed the silc_client_command_call interface to make
1977           the command call simpler for the application.  The library
1978           now handles the command line parsing, command finding and
1979           execution.  Application only needs to call the function
1980           with the command line.  Affected files are
1981           lib/silcclient/silcclient.h, command.[ch].
1982
1983         * Fixed silc_get_input to NULL-terminate the returned input.
1984           Affected file lib/silcutil/silcutil.c.
1985
1986         * Resolve the client's public key in JOIN command if the
1987           founder auth data is being requested but we don't know the
1988           client's public key.  Affected file silcd/command.c.
1989           Bug #53.
1990
1991 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1992
1993         * Print notify for server opers when backup router comes
1994           online.  Affected file silcd/server.c.
1995
1996         * Fixed the INVITE command to send the invite list in
1997           command reply.  Affected file silcd/command_reply.c.
1998
1999         * Fixed MOTD command reply sending.  Affected file
2000           silcd/command.c.
2001
2002         * UTF-8 decode the topic in TOPIC command reply and LIST
2003           command reply in Irssi SILC client.  Affected file is
2004           irssi/src/silc/core/client_ops.c.
2005
2006 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2007
2008         * Fixed the INVITE command to not crash Irssi SILC client
2009           when given without nickname argument.  AFfected file
2010           irssi/src/silc/core/client_ops.c.
2011
2012         * Fixed double free in WHOIS query on normal server when
2013           forwarding query to router.  Affected file is
2014           silcd/server_query.c.
2015
2016         * Fixed WATCH command reply handling on normal server which
2017           was missing altogether.  Affected file silcd/command_reply.c.
2018           Bug #44.
2019
2020 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2021
2022         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2023           Included yodl sources for each of these. Also modified
2024           Makefile.am prototype to install these files to proper
2025           locations. Updated CREDITS. Affected file Makefile.am.pre,
2026           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2027           doc/silcd.8.
2028
2029 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2030
2031         * Added support for encrypted private key files.  Now
2032           passphrase must be provided when new key pair is created
2033           (can be empty though), and prompted when loading the
2034           private key.  Added support for loading the old-style
2035           non-encrypted private keys as well.  Affected files
2036           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2037           SILC Server.
2038
2039         * Fixed silc_get_input to accept input on all terminals.
2040           Affected file lib/silcutil/silcutil.c.
2041
2042         * Moved the Irssi SILC client key loading and other stuff
2043           to be called after the arguments and UI is initialized.
2044           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2045
2046         * Added -P option to Irssi SILC client which can be used
2047           to change the passphrase of the private key.  Affected
2048           file irssi/src/silc/core/silc-core.c.
2049
2050         * Added silc_change_private_key_passphrase apputil routine
2051           to lib/silcutil/silcapputil.[ch].
2052
2053 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2054
2055         * Fixed connection closing in client library to not crash.
2056           Moved the connection freeing totally to function
2057           silc_clinet_del_connection.  Affected file
2058           lib/silcclinet/client.c.
2059
2060 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2061
2062         * Changed includes/silcincludes.h to silcincludes.h.in to
2063           include configuration specific information.  The silcdefs.h
2064           is not included in to installation anymore (it's only
2065           compilation time header).
2066
2067 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2068
2069         * Moved the SilcClient and SilcClientConnection from client.h
2070           to the public lib/silcclient/silcclient.h.  Changed the
2071           structures a bit.
2072
2073 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2074
2075         * If version string in silc_clinet_alloc is NULL the library
2076           puts it automatically.  Affected file lib/silcclient/client.c.
2077
2078         * Changed the version strings from variables to #define's
2079           in includes/silcversion.h.
2080
2081 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2082
2083         * Added shared library complation support.
2084
2085 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2086
2087         * Added lib/silcutil/silcapputil.[ch] for application
2088           utility functions.  It includes routines for applications'
2089           convenience.  Added silc_create_key_pair, silc_show_public_key
2090           and silc_load_key_pair functions.
2091
2092 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2093
2094         * Send RESUME_CLIENT packet from router to backup routers
2095           to in resuming.  Affected file silcd/packet_receive.c.
2096
2097 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2098
2099         * In IDENTIFY command parsing, send all other IDs except
2100           Client IDs explicitly to router for resolving on normal
2101           server.  Also check that ID received in WHOIS command is
2102           always Client ID, others are not allowed.  Affected file
2103           silcd/server_query.c.
2104
2105         * Merged latest changes from irssi.org CVS.
2106
2107 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2108
2109         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2110           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2111
2112         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2113           the silc_client_packet_send to silcclient.h for application
2114           usage.  Affected files lib/silcclient/client_internal.h
2115           lib/silcclient/silcclient.h.
2116
2117         * Fixed a bug in query resolving in server.  Used wrong
2118           variable in a for loop and crashed.  Affected file is
2119           silcd/server_query.c.
2120
2121         * Server constructs requested attributes only to locally
2122           connected clients.  Affected file silcd/server_query.c.
2123           Bug #36.
2124
2125         * Fixed a bug when sending resolving from router to server
2126           with requested attributes.  The constructed WHOIS command
2127           was incorrect.  Affected file silcd/server_query.c.
2128           Bug #38.
2129
2130         * Fixed Requested Attributes saving in WHOIS command reply.
2131           The length of the data buffer must be saved too.  Affected
2132           file silcd/command_reply.c.
2133
2134         * Update the client entry's servername after detaching is
2135           over.  Affected file silcd/packet_receive.c.  Bug #37.
2136
2137         * Resolve incomplete client entrys in CUMODE_CHANGE and
2138           CMODE_CHANGE notifys.  Affected file is
2139           lib/silcclient/client_notify.c.  Bug #42.
2140
2141 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2142
2143         * Fixed channel key packet processing bug on backup router
2144           during backup resuming protocol.  Affected file is
2145           silcd/packet_receive.c.
2146
2147         * Fixed memory leaks in server.  Affected files are
2148           silcd/server.c and silcd/packet_receive.c.
2149
2150         * Fixed packet decryption problem when backup router encrypted
2151           channel message with wrong key during backup resuming
2152           protocol.  Affected file silcd/packet_send.c.
2153
2154         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2155           Toni Willberg (toniw@iki.fi)
2156
2157         * Changed the SilcCipher context to be private.  Changed the
2158           silc_cipher_get_iv to just return pointer to the IV.  Added
2159           silc_cipher_get_name to return the name of the cipher.
2160           Fixed code all around to support these changes.  Affected
2161           files are lib/silccrypt/silccipher.[ch], client library and
2162           server.
2163
2164 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2165
2166         * Fixed unaligned access in lib/silccore/silcattrs.c.
2167
2168         * Fixed libtool linking in lib/silcsim/Makefile.am.
2169
2170         * Fixed services attribute printing.  Affected files is
2171           irssi/src/silc/core/silc-queries.c.
2172
2173 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2174
2175         * Fixed a crashbug in incoming server accepting.  Affected
2176           file silcd/server.c.
2177
2178 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2179
2180         * Added automatically generated index to Toolkit Reference
2181           Manual.
2182
2183         * Added support for Postscript Toolkit Reference Manual.
2184
2185 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2186
2187         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2188           CVS.
2189
2190 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2191
2192         * Added 'send_events' boolean argument to the function
2193           silc_schedule_set_listen_fd which sends the set events to
2194           the application explicitly if set to TRUE.  Default action
2195           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2196           lib/silcclient/client_internal.h and silcd/server_internal.h.
2197
2198         * Added silc_compare_timeval to determine which time values
2199           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2200
2201         * Added sort-of "Quality of Service" (QoS) support to
2202           SilcSocketConnection.  Data reception can be controlled with
2203           rate limit per second and/or read data length limit.
2204           Added silc_socket_set_qos.  Affected files are
2205           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2206
2207         * Added the QoS configuration to SILC Server configuration
2208           file.  Affected files are silcd/serverconfig.[ch] and
2209           server.c.
2210
2211 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2212
2213         * Merged with irssi.org CVS.
2214
2215         * Failed OPER and SILCOPER authentications are now logged.
2216           Affected file silcd/command.c.  Bugs #25.
2217
2218 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2219
2220         * ROBODoc documented lib/silcutil/silcbuffer.h and
2221           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2222           <ville.rasanen@iki.fi>.
2223
2224 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2225
2226         * Added support for auto-passphrase authentication from the
2227           config file during connecting which was not implemented
2228           yet.  Affected file irssi/src/silc/core/client_ops.c.
2229
2230         * Fixed a bug in authentication protocol failure handling which
2231           was processing wrong callback context.  Affected files
2232           are lib/silcclient/client.c and protocol.c.
2233
2234         * Fixed the /ATTR allow off to actually work.  Affected file
2235           is irssi/src/silc/core/silc-queries.c.
2236
2237         * Fixed the /ATTR -del to work.  Affected file is
2238           irssi/src/silc/core/silc-queries.c.
2239
2240 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2241
2242         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
2243
2244         * Fixed mask attribute adding in Irssi SILC client.  Affected
2245           file irssi/src/silc/core/silc-queries.c.
2246
2247 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2248
2249         * Added support for saving the requested attributes in
2250           WHOIS to directory.  Affected file is
2251           irssi/src/silc/core/silc-queries.c.
2252
2253 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2254
2255         * Added support for parsing VCard fields that do not have
2256           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
2257
2258         * Fixed a double free bug in hash table foreach function
2259           if the entry was deleted in the foreach callback.  Affected
2260           file lib/silcutil/silchashtable.c.
2261
2262 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2263
2264         * Added silc_attribute_get_verify_data to return the signature
2265           verification data for either user digital signature or
2266           server digital signature in Requested Attributes.  Affected
2267           files are lib/silccore/silcattrs.[ch].
2268
2269         * Added silc_vcard_alloc which is used to allocated dynamic
2270           SilcVCard context.  The silc_vcard_free now checks whether
2271           the context is dynamically allocated or not.  Affected files
2272           are lib/silcutil/silcvcard.[ch].
2273
2274 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2275
2276         * Periodically remove the NOATTR status from client entry
2277           so that the client may take the attributes in use even after
2278           server has resolved them unsuccessfully earlier.  Affected
2279           file silcd/server_query.c and idlist.h.
2280
2281         * Moved sha1hash and md5hash from client->internal to
2282           SilcClient for application usage.  Affected files are
2283           lib/silcclient/client.h and client_internal.h.
2284
2285         * Fixed attribute encoding and decoding bugs.  Affected
2286           files lib/silccore/silcattrs.[ch].
2287
2288         * Added ATTR command to Irssi SILC Client which is used to
2289           manage user's Requested Attributes sending and values for
2290           WHOIS command.  Affected files around Irssi SILC client.
2291
2292 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2293
2294         * Added silc_buffer_strformat which can be used to format
2295           strings into a buffer which size is automatically increased.
2296           Affected file lib/silcutil/silcbuffmt.[ch].
2297
2298         * Added implementation of VCard (RFC 2426) which can be used
2299           as part of Requested Attributes in WHOIS command.  Affected
2300           file lib/silcutil/silcvcard.[ch].
2301
2302 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2303
2304         * Some strncat -> silc_strncat changes our the core and
2305           client library.
2306
2307         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
2308           errors.  Added better error printing to SKE library.
2309           Affected files lib/silcske/silcske.c, silcske_status.h and
2310           payload.c.
2311
2312         * Save the PKCS key length even if only private key is set to
2313           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
2314
2315         * Fixed the usage of silc_pkcs_get_key_len since it returns the
2316           length in bits not in bytes.  Affected files are
2317           lib/silcske/silcske.c, lib/silccore/silcauth.c and
2318           silcd/server_query.c.
2319
2320 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2321
2322         * Added silc_attribute_payload_encode_data to directly encode
2323           the data into the attributes buffer.  Renamed function
2324           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
2325           Affected files are lib/silccore/silcattrs.[ch].
2326
2327         * silc_hash_table_find_foreach calls the foreach function now
2328           once even if the nothing was found with context set to NULL.
2329           Affected file lib/silcutil/silchashtable.[ch].
2330
2331         * Remove the RESOLVING flag from client entry after received
2332           the Requested Attributes from the client.  Fixed memory leak
2333           in client entry freeing.  Affected files silcd/server_query.c
2334           and idlist.c.
2335
2336         * Added Requested Attributes support into SILC Client Library.
2337           It is not able to send requested attributes in WHOIS command,
2338           and also receive and process requested attributes.  Added
2339           silc_client_attribute_[add|del] and silc_client_attributes_get
2340           functions.  Added also `ignore_requested_attributes' to the
2341           SilcClientParams to not use attributes in client.  Affected
2342           files are lib/silcclient/command.c, client_attrs.[ch],
2343           silcclient.h, client_internal and client.[ch].
2344
2345         * Changed the silc_client_get_client_by_id to support Requested
2346           Attributes, it takes them as argument now.  Affected file
2347           is lib/silcclient/silcclient.h, and idlist.c.
2348
2349         * Added -details option to WHOIS command in Irssi SILC Client
2350           to support the requested attributes.  By default it requests
2351           all attributes.  Affected file lib/silcclient/command.c and
2352           irssi/doc/help/in/whois.in.
2353
2354 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2355
2356         * Add also SERVICE attribute for server-constructed attribute
2357           data.  Also digitally sign the attributes and add
2358           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
2359           silcd/server_query.c.
2360
2361 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2362
2363         * Changed the silc_attribute_payload_encode to support list
2364           of attributes (function may be called several times to add
2365           a new attribute).  Removed the silc_attribute_payload_encode_list
2366           function.  The encoding function now also automatically encodes
2367           the data, so the caller does not need to do that.  Affected
2368           files lib/silccore/silcattrs.[ch].
2369
2370         * Added support for replying on behalf of the user to the
2371           Requested Attributes in WHOIS command in the server.  Affected
2372           file silcd/server_query.c.
2373
2374         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
2375           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
2376
2377 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2378
2379         * Don't swtich to become primary router if we are backup if
2380           decryption error has occurred.  Affected file silcd/server.c.
2381
2382         * Fixed a bug in backup router IP address comparison in
2383           silc_server_backup_get.
2384
2385           Save now also the port of the server/router and use that
2386           in comparison as well.  Affected file silcd/server_backup.c.
2387
2388         * Normal server now reconnects to backup router automatically
2389           if connection is lost to it.  Affected file silcd/server.c.
2390
2391 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2392
2393         * If packet processing fails (like integrity check fails)
2394           the connection is closed now.  Affected files are
2395           lib/silccore/silcpacket.c and silcd/server.c.
2396
2397 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2398
2399         * Fixed double free in RSA public key set function
2400           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
2401           Bug #29.
2402
2403 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2404
2405         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
2406           Added server_query.[ch] which provides one interface for
2407           querying information using all three commands.
2408
2409         * Changed all "typedef unsigned char" in core library to
2410           "typedef SilcUInt8".
2411
2412 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2413
2414         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
2415
2416         * Renamed silc_server_get_client_resolve to
2417           silc_server_query_resolve and moved to server_query.[ch].
2418
2419 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2420
2421         * Resumed client packet handling from server put the resumed
2422           client on wrong list on router and caused the client not
2423           be present on the network anymore.  Now fixed to put the
2424           client to correct list.  Affected file silcd/packet_receive.c.
2425
2426 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2427
2428         * Various cleanup in error message output in config parsing code
2429           and in server init code.  Fixed error log files containing
2430           too many newlines ('\n') in some situations.  Affected files are
2431           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
2432
2433 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2434
2435         * Use the reverse lookupped hostname in client internals
2436           instead of one user provided us as remote server name.
2437           Affected file lib/silcclient/client.c.
2438
2439 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2440
2441         * Added 'app_context' to silc_schedule_init.  It is an
2442           application specific context that is delivered to application
2443           in task callback functions.  Affected files are
2444           lib/silcutil/silcutil.[ch].
2445
2446         * The hb_context in SilcSocketConnection is not freed
2447           automatically anymore (application must free it).  Freeing
2448           it automatic is inconsistent.  Affected files are
2449           lib/silcutil/silcsockconn.[ch].
2450
2451 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2452
2453         * Added support for removing explicitly added client connections
2454           in rehash and closing the client connections if they were
2455           unconfigured in the rehash.  Affected file silcd/server.c.
2456
2457         * Added support for aborting automatically pending commands
2458           that never receives the reply (to avoid memory leaks).
2459           Added also silc_server_command_pending_timed to set the
2460           specific timeout for pending command.  Affected files are
2461           silcd/command[_reply].[ch].
2462
2463         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
2464           specs and lib/silccore/silcstatus.h.
2465
2466 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2467
2468         * Changed the silc_get_time to accept time value as argument
2469           or if zero is sent return current local time.  Affected
2470           file lib/silcutil/silcutil.[ch].
2471
2472         * Added STATS command to client library and Irssi SILC client.
2473           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
2474
2475 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2476
2477         * Assure that channel key is set before sending it.  May
2478           crash server otherwise.  Affected file silcd/packet_send.c.
2479
2480 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2481
2482         * Assure that endless loop cannot happen with detached client
2483           resolving on normal server.  Added idlist status
2484           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
2485           silcd/idlist.h and silcd/packet_receive.c.
2486
2487 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2488
2489         * Incoming file transfer request cannot use same session as
2490           the sending session.  This can happen when sending file to
2491           yourself.  Crashed the client on quit.  Affected file
2492           lib/silcclient/client_ftp.c.  Bug #24.
2493
2494 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2495
2496         * Implemented the draft-riikonen-precense-attrs draft and
2497           the Attribute Payload into the lib/silccore/silcattrs.[ch].
2498
2499 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2500
2501         * Distribute the SERVER_SIGNOFF notify also to local backup
2502           routers from the primary router.  The backup router may not
2503           have the signing of local server directly connected and need
2504           to know about the signoff.  Affected file silcd/server_util.c.
2505
2506         * Use the primary router as the origin of the locally connected
2507           server when it is disconnecting from the backup router since
2508           that's where it really is coming from.  Now the clients from
2509           the disconnecting server are removed correctly and "shadow"
2510           clients are not left to the backup router.  Affected file
2511           silcd/server.c.
2512
2513 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2514
2515         * If normal server is standalone and found existing but disabled
2516           channel, do not re-create the channel since it creates
2517           duplicate same channels.  Affected file silcd/server.c.
2518
2519         * Added anonymous client connections support to server.  New
2520           "anonymous" configuration option to ConnectionParams section
2521           added.  If set to true, the username and hostname information
2522           of the client will be scrambled and anonymous user mode is
2523           set automatically to the user.  Affected files are
2524           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
2525
2526 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2527
2528         * In JOIN notify handling, mark that the cache entry of the
2529           client cannot be expired.  Can cause crashes on normal
2530           server (asserts client->channels).  Affected file is
2531           silcd/packet_receive.c.
2532
2533         * From now on distribution versions are used as protocol versions
2534           instead of by default using the Toolkit base version as protocol
2535           version.  Affected file prepare.
2536
2537         * Do not set the locally resolved hostname for local client
2538           entry but take what server sends.  This way the real hostname
2539           is showed in WHOIS for yourself.  Affected file is
2540           lib/silcclient/idlist.c and lib/silcclient/client.c.
2541
2542         * Resolve local info with IDENTIFY when connecting to server.y
2543
2544 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2545
2546         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
2547           for implied search (not needed on platforms which has native
2548           pthreads library).  Use --without-pthreads to disable threads.
2549           Affected file is configure.in.pre
2550
2551         * Fixed --with-iconv on platforms which need to bypass (broken)
2552           native iconv().  Affected file is configure.in.pre
2553
2554 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2555
2556         * Moved -C option parsing in Irssi SILC client at same time
2557           as other options.  The UI was initialized earlier and caused
2558           problems on command line.  Bug #16.  Affected file is
2559           irssi/src/silc/core/silc-core.c.
2560
2561 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2562
2563         * Added global variable silc_log_timestamp that tells silclog
2564           wether to print or not the timestamp in the logging files.
2565           Affected file lib/silcutil/silclog.[ch].
2566
2567         * Added silcd configuration option Timestamp in the Logging
2568           section.  Affected file silcd/serverconfig.[ch],
2569           doc/example_silcd.conf.in.
2570
2571 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2572
2573         * Fixed fingerprint checking to check for entirely empty
2574           fingerprint instead of two first bytes when determining
2575           if it is set.  Bug #18.  Affected file silcd/command.c.
2576
2577         * Fixed duplicate PKCS name registering to not allow it.
2578           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
2579
2580 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2581
2582         * Conditionalize non-gcc compiler optimizations for various
2583           platforms, enable those commented out.  Cleanups.
2584           Affected file lib/silcmath/mpi/configure.in
2585
2586 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
2587
2588         * silc_rng_exec_command() left zombie processes if command
2589           didn't generate any output.  Affected file
2590           lib/silccrypt/silcrng.c
2591
2592 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2593
2594         * Rewrote iconv checking, introduce --with-iconv for systems
2595           which rely on libiconv.  Check if iconv() provided by libc
2596           is good enough, otherwise demand libiconv.  Affected file
2597           configure.in.pre
2598
2599 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2600
2601         * Search for ldopen() also in libc.  This enables SIM support
2602           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
2603           file configure.in.pre
2604
2605 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2606
2607         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
2608           This fixes prepare on *BSD systems.  Affected file
2609           configure.in.pre
2610
2611 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2612
2613         * More fixed for not having purge timeout for global clients
2614           that are on channel.  Affected files silcd/command_reply.c
2615           and server_util.c.
2616
2617         * Fixed the rekey protocol to work with backup router connections.
2618           Rekey packets are now allowed on disabled connections as
2619           well.  Affected files silcd/packet_send.c and server.c.
2620
2621         * Do not switch to be as backup router when shutting down and
2622           closing the primary connection.  Affected file silcd/server.c.
2623
2624         * Fixed memory leaks in backup router deleting.  Added
2625           silc_server_backup_free to free all data during shutdown of
2626           server.  Affected files silcd/server_backup.[ch].
2627
2628 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2629
2630         * Do not process commands if the sock->user_data is NULL.
2631           Affected file silcd/command.c.
2632
2633 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2634
2635         * Fixed buffer overflow and security problems (loosing bits
2636           in CFB encryption) in SILC RNG.  Problems reported by
2637           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
2638
2639 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2640
2641         * Added yet more checks that client is not expired on global
2642           list if it is on channels.  Affected file is
2643           silcd/command_reply.c.
2644
2645 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2646
2647         * Merged c0ffee's MIME signal patch which adds support for
2648           sending also MIME messages in Irssi SILC Client, and handling
2649           received MIME messages in a signal (and perhaps doing something
2650           to non-textual MIME messages).
2651
2652 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2653
2654         * Fixed pending command deletion in server and client library
2655           to check the whole list instead of breaking after first found.
2656           The affected files are silcd/command.[ch] and
2657           lib/silcclient/command.[ch].
2658
2659 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2660
2661         * Return NO_SUCH_CHANNEL error in USERS for channel that is
2662           secret or private, otherwise it's possible to find out
2663           whether a secret channel exists or not.  Affected file
2664           silcd/command.c.
2665
2666         * If CMODE change fails during the mode setting, assure that
2667           the old mode mask is set for the channel back.  Affected
2668           file silcd/command.c.
2669
2670         * Fixed passphrase saving on +a channel on normal server
2671           after successful JOIN command.  Affected file silcd/command.c.
2672
2673 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2674
2675         * Remove server/router operator privileges in DETACH command,
2676           since it's possible to resume to server where these
2677           privileges would not be allowed for the client.  Affected
2678           file silcd/command.c.
2679
2680         * Do not set to wait for backup in rehash of the server.
2681           Affected file silcd/server.c.
2682
2683         * Do not check listener sockets when counting how many
2684           socket connections we have.  Affected file is
2685           silcd/server_util.c.
2686
2687         * Do not announce disconnected clients that are remaining
2688           in history (for WHOWAS).  This is because SIGNOFF notify
2689           for these has been sent earlier already.  Affected file
2690           silcd/server.c.
2691
2692 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2693
2694         * Buffer overflow with CUMODE command's mode->mode character
2695           conversion.  Reported by Ville Räsänen.  Affected file
2696           lib/silcutil/silcutil.c.
2697
2698 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2699
2700         * Allow heartbeat packets to go disabled connections anyway.
2701           Affected files silcd/server.c and silcd/packet_send.c.
2702
2703         * Do not broadcast New Channel packets with List flag set
2704           in the packet to backup routers.  The router must check
2705           for the correctness of the packets before sending them.
2706           It is possible that router will have enforce Channel ID
2707           change and this would cause desync in the backup router.
2708           Affected file silcd/packet_receive.c.
2709
2710         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
2711           are handled in list parsing.  They are not list packets
2712           anymore.  Affected file silcd/packet_receive.c.
2713
2714 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2715
2716         * Stop waiting for backup router through the timeout, not
2717           directly after backup router has arrived.  Affected file
2718           silcd/server.c.
2719
2720         * Do not re-create channel keys and send them when removing
2721           clients in server shutdown.  Affected files are
2722           silcd/server_internal.h and silcd/server_util.c.
2723
2724         * Notify distribution to backup routers was missing from
2725           the silc_server_send_notify_dest function which caused
2726           desyncing problems with backup router.  Affected file is
2727           silcd/packet_send.c.
2728
2729         * The client's channel removing was working wrong on
2730           backup router.  It assumed that it doesn't know global
2731           information but backup router does know.  For this reason
2732           it could remove channel when it wasn't supposed to do that.
2733           Affected file silcd/server.c and silcd/server_util.c.
2734
2735 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2736
2737         * Stop for a couple seconds after badkup router has become
2738           primary router.  Affected file silcd/server.c.
2739
2740         * Added silc_server_remove_servers_by_server, which is used
2741           to remove servers originated from some other server.  Also
2742           clients of those servers can be removed too.  Affected file
2743           silcd/server_util.[ch].
2744
2745         * When removing clients after a server has signed of remove
2746           also all servers behind that server (unless they are known
2747           to be available locally), and send SERVER_SIGNOFF for each
2748           of the server separately.  Also the signed off clients are
2749           sent now separately per signed off server.  The affected files
2750           are silcd/server.c and silcd/server_util.[ch].
2751
2752         * All servers added with silc_idlist_add_server must always
2753           have both "router" and "connection" pointers set.  Otherwise,
2754           bad server entries may be left around in the cache.
2755           Affected file silcd/command_reply.c.
2756
2757         * Do not create the channel key in NEW_CHANNEL packet
2758           processing if the channel is empty.  Affected file
2759           silcd/packet_receive.c.
2760
2761         * Completed backup router support for standalone routers.
2762           Supports also servers in the cell that do not use the backup
2763           at all.
2764
2765 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2766
2767         * Fixed a bug in silc_string_regexify which did not add '^'
2768           at the start of each string, and thus the matching was
2769           not explicit.  For example ban list iikone@*!*@* would
2770           match also "priikone", which is wrong, it would have to be
2771           *iikone@*!*@* to match also "priikone".  Affected
2772           file lib/silcutil/unix/silcunixutil.c.
2773
2774 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2775
2776         * Enable all local server connections before updating client
2777           caches when we've become backup router.  Otherwise, signoff
2778           packets may not reach the clients.  Affected files are
2779           silcd/server.c and silcd/server_util.[ch].
2780
2781         * Fixed a bug in version string parsing which could crash
2782           the program with specially formatted version string.
2783           Bug reported and patch provided by Ville Räsänen.  Affected
2784           file lib/silcutil/silcutil.c.
2785
2786         * Handle the disconnection immediately when DISCONNECT
2787           packet is received in server.  Affected file silcd/server.c.
2788
2789         * Primary router now waits a short time (10 seconds) for
2790           backup router connection before accepting any other
2791           connection (except local).  Affected file silcd/server.c,
2792           serverconfig.[ch].
2793
2794         * Fixed a crash in client libary in NICK_CHANGE notify when
2795           NICK_CHANGE arrived for client entry we are resolving
2796           currently.  Affected file lib/silcclient/client_notify.c.
2797
2798         * Call the sconn->callback completion even if error had
2799           occurred.  Start reconnecting always if connection to
2800           primary router fails during backup router protocol.
2801           Affected files silcd/server.c and server_backup.c.
2802
2803 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2804
2805         * Added functions silc_server_send_opers and
2806           silc_server_send_opers_notify to send packets stricly
2807           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
2808           to send variable argument notify to operators.
2809           Affected files silcd/packet_send.[ch] and silcd/server.h.
2810
2811         * Removed UMODE rights checking with UMODE_CHANGE notify.
2812           Affected file silcd/packet_receive.c.
2813
2814         * Server/router operator now receives notify when network
2815           switches to backup router and when it resumes the use of
2816           primary router.  Affected file silcd/server.c and
2817           silcd/server_backup.c.
2818
2819         * Fixed the updating of client information after backup
2820           resuming protocol is over; update all except local clients
2821           to the new primary router.  The affected file is
2822           silcd/server_util.c.
2823
2824         * Added support for closing active connections in rehash
2825           that were unconfigured by the user.  Supports currently
2826           closing server and router connections.  Affected file
2827           silcd/server.c.
2828
2829         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
2830
2831 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2832
2833         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
2834           is NULL since seems that on some platforms NULL is allowed
2835           and on some it's not.  Fallback encoding is used instead.
2836           Affected file lib/silcutil/silcstrutil.c.
2837
2838         * Fixed statistics updating for incoming server connection
2839           which could cause problems when re-connecting.  Affected
2840           file silcd/server.c.
2841
2842         * Preliminary backup router support for standalone router
2843           added.  Affected files in silcd/.
2844
2845         * Mark server connections in backup router disabled before
2846           and after backup protocol.  Affected file is
2847           silcd/server_backup.c.
2848
2849         * Added support for reconnecting to remote server connection
2850           even if the protocol fails, and if the configuration wants
2851           us to keep trying to connect anyway.
2852
2853           Server connection is not allowed to backup router if
2854           backup router does not have connection to primary router yet.
2855
2856           Affected file is silcd/server.c.
2857
2858 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2859
2860         * Added silc_client_udpate_server function to update changed
2861           server info.  Affected file lib/silcclient/idlist.[ch].
2862
2863         * Added check for server entries that are being resolved when
2864           notify is received.  If being resolved, handle the received
2865           notify only after it's resolved so that all notifys are
2866           handled in same order as received from the server.
2867
2868           Added similar resolver check to channel entries.  Every
2869           notify that cause resolving of any information that affects
2870           channel entry marks the channel entry in waiting state.
2871           After whatever resolving is over the waiters are signalled
2872           and only then the notifys are handled in the same order
2873           as delivered from the server.
2874
2875           Affected files are lib/silcclient/idlist.[ch], and
2876           client_notify.c.
2877
2878         * Fixed KILLED notify handling in normal server.  Affected
2879           file silcd/packet_receive.c.
2880
2881         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
2882           is locally connected, or was locally connected (but may
2883           be detached and connection is not active).  Added also
2884           SILC_IS_LOCAL for checking this status.  Affected files
2885           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
2886           silcd/server.c and silcd/server_internal.h.
2887
2888 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2889
2890         * Don't send or handle TOPIC_SET if topic is already set and
2891           is same as being set.  Affected files silcd/command.c and
2892           silcd/packet_receive.c.
2893
2894         * Fixed CMODE change rights checking to work correctly when
2895           removing modes by operator.  Affected file is
2896           silcd/server_util.c.
2897
2898         * Fixed some handling with New Channel packet in router and
2899           fixed some CMODE_CHANGE notify handling in server and router.
2900           Affected file is silcd/packet_receive.c.
2901
2902         * Changed "disconnect" client operation to include the
2903           reason of the disconnection and optional disconnection
2904           message.  Affected file lib/silcclient/silcclient.h.
2905
2906         * Made the compilation of lib/contrib/ stuff conditional.
2907           Affected files configure.in.pre, lib/contrib/Makefile.am.
2908
2909 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2910
2911         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
2912           to the sender of the notify too, to avoid situation where two
2913           notifys are in the network at the same time going to oppsite
2914           directions.  Affected file silcd/packet_receice.c.
2915
2916 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2917
2918         * Delete the client from channel even if the cilent->id is
2919           NULL.  It was possible that client was deleted without
2920           removing from channels (theoretically at least).  Affected
2921           file silcd/server.c and silcd/server_util.c.
2922
2923         * Free the client data too when resuming is not successful.
2924           Affected file silcd/packet_receive.c.
2925
2926         * Merged some code from c0ffee's silc-plugin.  Affected files
2927           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
2928
2929         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
2930           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
2931           to the primary router connection, the other one returns
2932           TRUE if packet must be broadcasted to network.
2933
2934         * All notifys that are destined to primary router (to network)
2935           are now automatically sent to backup routers even if the
2936           router is standalone (and has backup router).  Affected files
2937           in silcd/.
2938
2939         * Added --without-irssi and --without-silcd configuration
2940           options for disabling the compilation of these applications.
2941           Affected file configure.in.pre and prepare.
2942
2943 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2944
2945         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
2946           UTF-8 encoding and decoding.  Added also new encodings
2947           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
2948
2949           Added also SILC_STRING_LANGUAGE which is language and charset
2950           specific encoder and decoer for those platforms that support
2951           iconv().  It can convert the UTF-8 to and from the locale
2952           specific character set.
2953
2954           Affected file lib/silcutil/silcstrutil.[ch].
2955
2956         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
2957
2958         * Added function silc_get_command_name to the file
2959           lib/silcutil/silcutil.[ch].
2960
2961         * Improved the server debug output a bit.  Affected files are
2962           in silcd/.
2963
2964 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2965
2966         * Save the channel passphrase when received succesful JOIN
2967           command reply from router, on normal server.  Otherwise
2968           joinig +a channels from normal server is not possible.
2969           Affected file silcd/command.c.
2970
2971         * Fixed a bug in TOPIC_SET notify handling.  The notifier
2972           may be other than client too, like server or channel.
2973           It expected it to always be only client and ignored the
2974           notify.  Affected file silcd/packet_recieve.c.
2975
2976         * Removed some (unnecessary) debug printing from
2977           lib/silccore/silcid.c and lib/silccore/silcargument.c.
2978
2979         * Do not force CMODE_CHANGE when server is announcing new
2980           channel.
2981
2982           Router announces stuff only after server reannounces channel
2983           after CHANNEL_CHANGE notify.
2984
2985           These fixes optimizes the announcing procedure, and perhaps
2986           fixes some problems too.  Affected file silcd/packet_receive.c.
2987
2988         * Fixed SERVER_SIGNOFF sending to local clients.  It was
2989           totally broken and sent the notify to all local clients,
2990           instead of only to those that was on same channel as the
2991           signing off clients.  Affected file silcd/server_util.c.
2992
2993         * Added -D option to server.  It can be used to give debug
2994           level.  The levels are from 0 - 99, and are predefined for
2995           smooth server debugging.  (see silcd.c for the predefined
2996           levels).  Affected file silcd/server.c.
2997
2998 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2999
3000         * Fixed a bug in Irssi SILC client to close the connection
3001           properly when disconnecting from server.  Affected file
3002           irssi/src/silc/core/client_ops.c.
3003
3004 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3005
3006         * When authenticating as founder during JOIN command, check
3007           that the one authenticating becomes the only founder on the
3008           channel.  Affected file silcd/command.c.
3009
3010         * Better checking for founder mode setting when CUMODE_CHANGE
3011           notify is received.  Affected file silcd/packet_receive.c.
3012
3013         * Close all connections when shutting down the server by sending
3014           DISCONNECT packet.  Close all listeners too when shutting
3015           down the server.  Affected file silcd/server.c.
3016
3017         * Handle DISCONNECT packet correctly in client library by
3018           calling the "disconnect" client operation.  Affected file
3019           lib/silcclient/client.c.
3020
3021         * Handle local errors correctly during resuming.  Affected
3022           file lib/silcclient/client.c.
3023
3024 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3025
3026         * The log file is not dupped internally anymore in
3027           lib/silcutil/silclog.c.  Fixed memory leaks too.
3028
3029         * The scheduler now dispatches all pending timeout tasks
3030           when it is uninitialized with silc_schedule_uninit.
3031           Affected file lib/silcutil/silcschedule.c.
3032
3033 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3034
3035         * Added --enable-stack-trace option to configure.  Added
3036           memory allocation stack trace support.  Added files
3037           lib/silcutil/stacktrace.[ch].  Affected files are
3038           lib/silcutil/silcmemory.[ch].
3039
3040         * Fixed memory leaks from libraries and server.  Affected
3041           files around the tree.
3042
3043         * Reverted back a fix made to CUMODE which broke it.
3044           Affected file silcd/command.c.
3045
3046 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3047
3048         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3049           core library, and implemented it.  All textual messages SHOULD
3050           use this flag and the message MUST be UTF-8 encoded.
3051           All text messages sent by Irssi SILC client are now UTF-8
3052           encoded (regardless whether the terminal supports UTF-8 or not).
3053           Affected files are lib/silccore/silcchannel.h,
3054           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3055           client_ops.c.
3056
3057 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3058
3059         * Added lots of new statistics updating that was missing from
3060           the server and router code.  Affected files in silcd/.
3061
3062         * Sending SIGUSR1 signal to server now dumps the current
3063           server statistics into /tmp directory.  Affected file is
3064           silcd/silcd.c.
3065
3066         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3067           the SILC Hash Interface also.  Added new functions
3068           silc_hash_get_name, silc_hash_init, silc_hash_update and
3069           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3070
3071 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3072
3073         * Added some better info printing for client during connecting.
3074           Affected file silcd/server_util.c.
3075
3076         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3077           to silence a user on a channel.  Affected files are
3078           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3079           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3080           and silcd/packet_receive.c.
3081
3082         * Fixed a fatal bug in handling of malformed command payload.
3083           Affected file silcd/command.c.
3084
3085         * Fixed a double free when announcing channel users to router.
3086           Affected file silcd/server.c.
3087
3088         * After successful authentication to channel founder mode, check
3089           that there isn't anyone else with founder mode on the channel.
3090           The one that authenticated will become founder and anyone
3091           else is demoted.  Affected file silcd/command.c.
3092
3093         * Added error printing of any error that has occurred during
3094           any command in client library.  Affected file is
3095           irssi/src/silc/core/client_ops.c.
3096
3097         * Removed some error printing from the client library and left
3098           it for the application to worry (from the error status it
3099           receives in 'command' client operation.  Affected file is
3100           lib/silcclient/command.c.
3101
3102 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3103
3104         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3105           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3106           Starting key agreement with itself is denied.  Affected file
3107           is lib/silcclient/client_keyagr.c.
3108
3109         * Fixed some error checkings from the SFTP library which caused
3110           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3111           and lib/silcsftp/sftp_util.c.
3112
3113         * Added new "debug" and "debug_string" settings to Irssi SILC
3114           client which can be used to print runtime debugging on the
3115           Irssi's screen.  Available when compiled with --enable-debug
3116           option.  Affected file irssi/src/silc/core/silc-core.c.
3117
3118 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3119
3120         * Fixed a missing variadic parameter in a function call that
3121           caused server crash when a non-allowed connection arrived.
3122           Reported by Richard Becker.  Affected file silcd/server.c.
3123
3124 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3125
3126         * Added WATCH list sending to backup routers from router.
3127           The WATCH command is sent by the router to the backup
3128           router.  Affected file silcd/command.c.
3129
3130         * Mark the backup_router flag for RouterConnection entry
3131           if the backup router stuff is defined in the config file.
3132           Affected file silcd/serverconfig.c.
3133
3134         * Fixed some backup data sending around the code to work better
3135           if the router is standalone router.  Not all places were fixed.
3136           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3137           silcd/server.c.
3138
3139         * Fixed the router connecting when connecting to multiple
3140           routers.  It ignored every other router except the first
3141           one.  Affected file silcd/server.c.
3142
3143 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3144
3145         * Made the private key generation after expiration optional.
3146           If not created after expiration the old key will re-expire
3147           at a later time (and thus key pair is not necessary to
3148           change).  Affected file irssi/src/silc/core/clientutil.c.
3149
3150 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3151
3152         * The length arguments in bind() and connect() were wrong
3153           and fixed now to used SIZEOF_SOCKADDR in the
3154           lib/silcutil/unix/silcunixutil.c.
3155
3156 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3157
3158         * Fixed detach timeout handling to use Client ID and not
3159           the actual client entry which may be freed in the callback.
3160           Affected file silcd/command.c.
3161
3162 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3163
3164         * Merged c0ffee's multiple interface support patch.
3165           Affected files in silcd/.
3166
3167 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3168
3169         * Cleanup keys properly.  Affected file is
3170           irssi/src/silc/core/clientutil.c.
3171
3172 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3173
3174         * Display the user mode on the status bar.  Affected file
3175           irssi/src/silc/core/silc-expandos.c.
3176
3177 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3178
3179         * If private message key is not set, but the flag is set in
3180           the packet, ignore the packet since it cannot be decrypted.
3181           Affected file lib/silcclient/client_prvmsg.c.
3182
3183 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3184
3185         * When resuming client, remove the old client entry from
3186           the watcher list too.  Affected file silcd/packet_receive.c.
3187
3188         * Do not allow normal server to force founder mode away
3189           from router if the founder mode is already set.  Affected
3190           file silcd/packet_receive.c.
3191
3192         * Remove the client entry with watch notify types with short
3193           timeout, and not directly, so that other notifys can be
3194           retrieved too.  Affected file lib/silcclient/client_notify.c.
3195
3196         * Display notification about data messages that cannot be
3197           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3198           irssi/src/fe-common/silc/module-formats.[ch].
3199
3200 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3201
3202         * Fixed the CHANNEL_CHANGE notify handling in client libary
3203           to not use freed memory.  Affected file is
3204           lib/silcclient/client_notify.c.
3205
3206         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3207           file silcd/packet_receive.c.
3208
3209         * Fixed USERS command to support empty channels.  Affected
3210           file silcd/command.c.
3211
3212 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3213
3214         * Allow multiple identical pending commands to be registered
3215           in client library.  Affected file is lib/silcclient/command.c.
3216
3217         * Call the completion for resolving client information only
3218           after all resolvers has finished.  This fixes a crash in
3219           the client.  Added support for checking when the resolvers
3220           are finished.  Affected file is lib/silcclient/idlist.c.
3221
3222         * Wait by default 3 seconds before reconnecting to the server
3223           after being disconnected.  Makes the /detach command a bit
3224           more usable.
3225
3226 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3227
3228         * Check the watcher list before sending signoff notifys
3229           when closing client connection.  Affected file is
3230           silcd/server.c.
3231
3232         * Added better CMODE command rights checking.  Affected file
3233           silcd/server_util.c.
3234
3235 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3236
3237         * Fixed watcher list checking during server signoff.  It
3238           crashed the server.  Affected file silcd/server_util.c.
3239
3240         * The JOIN command reply returns now the founder's public
3241           key.  Affected file is silcd/command.c.
3242
3243         * Announce the channel mode, and the mode properties with
3244           CMODE_CHANGE notify.  Affected file silcd/server.c.
3245
3246         * Mark new channels by default disabled, untill at least
3247           one user joins the channel.  Affected file is
3248           silcd/packet_receive.c.
3249
3250 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3251
3252         * The nickname argument to watch notify can be optional.
3253           Fixes a crash in server.  Affected file silcd/packet_send.c.
3254
3255         * Remove the client entry from cache if the WATCH notify type
3256           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
3257           lib/silcclient/client_notify.c.
3258
3259         * Check the watcher list before and after changing nickname
3260           when the NICK_CHANGE notify is received.  Affected file is
3261           silcd/idlist.c.
3262
3263         * Fixed a crash in OPER and SILCOPER command sending.  Empty
3264           passphrase caused the crash.  Affected file is
3265           lib/silcclient/command.c.
3266
3267 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3268
3269         * Merged with Irssi CVS for Irssi SILC client.
3270
3271 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3272
3273         * Completed the protocol specifications.
3274
3275 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3276
3277         * Merged with Irssi CVS for Irssi SILC client.
3278
3279 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3280
3281         * Added the founder's public key delivery to the
3282           CUMODE_CHANGE notify type as well.  Updated the protocol
3283           specs and the code.  Affected files are silcd/packet_send.[ch],
3284           silcd/packet_receive.c and silcd/command.c.
3285
3286 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3287
3288         * Added silc_pkcs_public_key_copy function into the
3289           lib/silccrypt/silcpkcs.[ch].
3290
3291         * Remove the `iv' from the SilcChannelEntry since we can
3292           live without it.  Affected files are silcd/idlist.h and
3293           silcd/packet_receive.c.
3294
3295         * Added support for sending the founder's public key in
3296           the CMODE_CHANGE notify packet in the server.  Affected
3297           files are silcd/packet_send.[ch], silcd/packet_receive.c,
3298           silcd/command.c and silcd/server.c.
3299
3300         * Changed the FOUNDER_AUTH authentication to use only
3301           public key authentication as defined by new protocol
3302           specs.  Passphrase authentication with that mode cannot
3303           be used anymore.  It is now possible to reclaim founder
3304           mode from any server in the network.  Affected files are
3305           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
3306
3307         * Added permanent channels support by making the channel
3308           permanent when FOUNDER_AUTH mode is set on the channel.
3309           The channel will not be destroyed even if channel is empty
3310           when that mode is set.  Protocol TODO #17.  Affected
3311           files are silcd/server.[ch], server_util.[ch],
3312           silcd/command.c, silcd/packet_receive.c and
3313           lib/silcclient/command.c.
3314
3315 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3316
3317         * Added reference counter to the command reply context in
3318           the client library.  Affected files are
3319           lib/silcclient/command_reply.[ch].
3320
3321 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3322
3323         * Fixed rekey protocol with PFS in the client library.
3324           Affected file is lib/silcclient/protocol.c.
3325
3326         * Added support for list of errors in client library
3327           command reply handling.  Affected file is
3328           lib/silcclient/command_reply.c.
3329
3330         * Defined that the WHOIS and IDENTIFY commands can send
3331           list of errors.  Updated the protocol specs.  Protocol
3332           TODO #2.
3333
3334         * Added support for sending list of errors to WHOIS and
3335           IDENTIFY commands in server.  Added support for receiving
3336           list of errors in server.  Affected files are
3337           silcd/command.c and silcd/command_reply.c.
3338
3339         * Fixed client info resolving on LEAVE command in client
3340           library to not crash.  Affected file is
3341           lib/silcclient/client_notify.c.
3342
3343 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3344
3345         * Defined that the NICK command replies with thew changed
3346           nickname too, to make the nickname changing simpler at
3347           the client's end.  Updated protocol specs and the code
3348           in client and server.  Affected files are
3349           silcd/command.c, lib/silcclient/command_reply.c and
3350           lib/silcclient/command.c.
3351
3352 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3353
3354         * Added `Compressed' packet flag to indicate that the packet
3355           payload is compressed by the sender.  Updated the protocol
3356           specs and the core library.  The compression still is not
3357           implemented in the sources.  Affected file is
3358           lib/silccore/silcpacket.h.
3359
3360 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3361
3362         * Remove pending command callbacks also if the connection
3363           to the server is destroyed.  Affected file is
3364           lib/silcclient/client.c.
3365
3366 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3367
3368         * Added new QUIET channel user mode that can be used to
3369           quiet a user in a channel.  Updated the protocol specs but
3370           it wasn't implemented yet.  Protocol TODO #27.  Affected
3371           file is lib/silccore/silcmode.h.
3372
3373 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3374
3375         * Added BLOCK_INVITE user mode to be able to block incoming
3376           invite notifications.  Protoocol TODO #26.  Affected files
3377           are lib/silccore/silcmode.h, lib/silcclient/command.c and
3378           silcd/command.c.
3379
3380         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
3381           the protocol specs and the code.  Affected file is
3382           lib/silccrypt/silcpkcs.c.
3383
3384 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3385
3386         * Disconnect Payload includes now the status type.  Updated
3387           the protocol specs and the code.  Protocol TODO #25.
3388           Affected files are silcd/server.c, lib/silcclient/client.c.
3389
3390         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
3391           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
3392           Moved the silc_client_command_status_messages table to the
3393           lib/silcutil/silcutil.c and added new funtion
3394           silc_get_status_message, which deprecates function
3395           silc_client_status_message.  Affected files are
3396           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
3397           lib/silcutil/silcutil.[ch].
3398
3399 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3400
3401         * Defined that the nickname hash in Client ID MUST be from
3402           lowercase nickname.  This effectively changes nicknames in
3403           SILC to case-insensitive.  Updated the protocol specs and
3404           the code.  Affected files are lib/silcutil/silcutil.[ch],
3405           silcd/serverid.c, and silcd/idlist.c.
3406
3407         * Added new channel user modes BLOCK_MESSAGES_USERS and
3408           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
3409           code.  Affected files are lib/silccore/silcmode.h,
3410           lib/silcclient/command.c, and silcd/packet_send.c.
3411
3412         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
3413           specs and code.  Affected file lib/silccore/silcstatus.h.
3414
3415         * Added support for watch list.  It is possible to add nicknames
3416           to be watched, and when they come to network, leave network
3417           or user mode changes the watcher will be notified of this
3418           change.  Added SILC_COMMAND_WATCH command, added new
3419           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
3420           notifications.  Updated the protocol specs and implemented
3421           this to library, client and server.  Protocol TODO #21.
3422           Affected files are lib/silccore/silccomand.h,
3423           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
3424           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
3425           silcd/packet_send.[ch], silcd/packet_receive.c, and
3426           irssi/src/silc/core/client_ops.c.
3427
3428         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
3429           somebody watching you.  Updated the protocol specs and the
3430           code.  Affected files are lib/silccore/silcmode.h, and
3431           lib/silcclient/command.c.
3432
3433 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3434
3435         * Added service support to SILC protocol.  Added new command
3436           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
3437           core library.  Services are not implemented in server or
3438           client for now.  Protocol TODO #20.  Affected files are
3439           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
3440
3441         * Added SilcStatus argument to `command' client operation
3442           to return the error status when command sending fails
3443           locally.  Changed all command in client library to return
3444           correct command status.  Affected files are
3445           lib/silcclient/command.c, lib/silcclient/silcclient.h and
3446           irssi/src/silc/core/client_ops.c.
3447
3448 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3449
3450         * Added silc_mime_parse function to parse MIME headers.
3451           Affected files are lib/silcutil/silcstruti.[ch].
3452
3453         * Added MIME header parsing in Irssi SILC Client.  It displays
3454           all textual MIME objects, others it ignores.  Affected file
3455           is irssi/src/silc/core/clien_ops.c.
3456
3457 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3458
3459         * Fixed a bug in the pid writing function, which couldn't be
3460           written in a root-owned directory.
3461
3462 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3463
3464         * Defined that channel message to unknown Channel ID must
3465           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
3466           Updated the protocol specs and the code in server.  The
3467           affected file is silcd/packet_receive.c.
3468
3469 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3470
3471         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
3472           that it is used to send error notifys if error occurs during
3473           some SILC packet processing, except commands.  The error
3474           types are same as for command reply types.  Defined that
3475           if private message is sent to unknown Client ID the error
3476           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
3477           Updated the protocol specs and code.  Affected files are
3478           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
3479           lib/silcclient/client_notify.c, silcd/packet_receive.c,
3480           and irssi/src/silc/core/client_ops.c.  Renamed the
3481           SilcCommandStatus to SilcStatus.
3482
3483         * Defined the use of extra WHOIS attributes in WHOIS command.
3484           The <Requested Attributes> (defined in a separate document)
3485           can be used to request additional information about user
3486           not returned by standard WHOIS command.  Defined that server
3487           can send WHOIS command directly to client.  Client provides
3488           the requested attributes to the server.  Updated the protocol
3489           specs.  Protocol TODO #4.  Implementation is not done yet
3490           (Protocol TODO #24).
3491
3492         * Renamed function silc_client_command_status_message to
3493           silc_client_status_message.  Affected files are
3494           lib/silcclient/command_reply.[ch].
3495
3496 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3497
3498         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
3499           32 bit integers.  Updated the protcol specs and the code.
3500           Affected files are silcd/command.c and
3501           lib/silcclient/command.c.
3502
3503 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3504
3505         * Fixed a bug in library where sending a bogus authentication
3506           payload would lead to a crash.  Affected file is
3507           lib/silccore/silcauth.c.
3508
3509 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3510
3511         * Added detach_disabled and detach_timeout server config
3512           options to the server.  Affected files silcd/serverconfig.[ch],
3513           silcd/command.c and silcd/packet_receive.c.
3514
3515 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3516
3517         * Added resolve_cmd_ident field to the SilcClientEntry structure
3518           too so that if the entry is for example being resolved so
3519           another command may attach to the same pending command reply
3520           without requiring to resolve the same entry again.  Added
3521           support for adding multiple pending commands for one
3522           command idenfier.  Affected files lib/silcclient/command.[ch],
3523           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
3524
3525 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3526
3527         * Defined that server receives WHOIS command reply for private
3528           and secret channels too.  Updated protocol specs and the
3529           code in server.  Affected file silcd/command.c.
3530
3531         * Defined <channel user mode list> argument to WHOIS command
3532           reply for returning user modes on the channels.  The
3533           channel list now doesn't include the user mode anymore but the
3534           actual channel mode.  Updated protocol specs and the code in
3535           client and server.  Affected files are silcd/command_reply.c,
3536           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
3537           and lib/silcclient/command_reply.c.
3538
3539         * Save the channels list in WHOIS command reply in normal server
3540           so that WHOIS always shows joined channels also in normal
3541           server and not just on router.  Affected file is
3542           silcd/command_reply.c.
3543
3544 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3545
3546         * Defined that server receives USERS command reply for private
3547           and secret channels too.  Updated protocol specs and the
3548           code in server.  Affected file silcd/command.c.
3549
3550 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3551
3552         * Changed the UMODE's mode mask argument to be optional.  If
3553           not provided then the command merely returns the current mode
3554           mask to the client.  Updated protocol specs and the server.
3555           Affected file is silcd/command.c.
3556
3557         * Added SILC session detachment/resuming support.  It is possible
3558           to detach by closing the network connection and then re-connect
3559           and resume to the old client session.  Added DETACHED user
3560           mode that server will set for detached client.  Added new
3561           packet RESUME_CLIENT which is used to perform the resuming
3562           process.  Added DETACH command.  Updated the protocol specs,
3563           core library, client and server.  Protocol TODO #22.  Very
3564           many affected files around the tree.
3565
3566 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3567
3568         * Changed the CMODE's mode mask argument to be optional.  If
3569           not provided then the command merely returns the current mode
3570           mask to the client.  Updated protocol specs and the server.
3571           Affected file is silcd/command.c.
3572
3573         * Changed the Killer's Client ID in KILLED notify to be just
3574           any ID payload since router server is allowed to kill as well.
3575           Updated protocol specs, client libary and server.  Affected
3576           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
3577           and irssi/src/silc/core/client_ops.c.
3578
3579 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3580
3581         * Added new user modes ANONYMOUS for special anonymous servers
3582           that may set the mode for client, and BLOCK_PRIVMSG which
3583           client may set to block incoming private messages unless the
3584           Private Message Key flag is set (using private keys to protect
3585           private messages).  Updated protocol specs and code in client
3586           and server and core library.  Protocol TODO #23.  Affected
3587           files are lib/silccore/silcmode.h, silcd/server.[ch],
3588           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
3589           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
3590
3591         * Added new channel user mode BLOCK_MESSAGES which the client
3592           may set to itself to tell server not send channel messages.
3593           Other packets such as channel key packets are still sent.
3594           Protocol TODO #23.  Updated the protocol specs, client and
3595           server.  Affected files are lib/silccore/silcmode.h,
3596           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
3597           lib/silcutil/silcutil.c, silcd/command.c, and
3598           silcd/packet_send.c.
3599
3600 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3601
3602         * Redefined the Status Payload to include now two 8 bit fields,
3603           instead of one 16 bit field.  This now makes it possible to
3604           send list of errors.  Updated the protocol specs and the code
3605           in core library, client library and server.  Protocol TODO #1.
3606           Affected files are lib/silccore/silccommand.[ch],
3607           lib/silcclient/command_reply.[ch], silcd/command.c,
3608           silcd/command_reply.c and silcd/packet_receive.[ch].
3609
3610 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3611
3612         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
3613           must be handled by the application and should tell the application
3614           that an error message was already printed, and it should print the
3615           config coords (line, filename, ...).  Affected files are
3616           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
3617
3618         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
3619           server config parsing code more readable.
3620
3621           Fixed a bug in the fetch_logging() config callback.
3622
3623           Affected files is silcd/serverconfig.c.
3624
3625         * Drop root privileges when started in foreground.  Don't drop them
3626           if debugging also.  Affected file is silcd/silcd.c.
3627
3628 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3629
3630         * Added more IM-like features by introducing new user modes
3631           for setting various presence information.  Added new modes:
3632           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
3633           specs and code.  Protocol TODO #19. Affected files are
3634           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
3635           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
3636
3637 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3638
3639         * Added STATS command to the protocol after all, to return
3640           various statistical information about the network.  It can
3641           be used by clients to retrieve statistical information, and
3642           servers may use it to to fetch cell and network wide
3643           statistics from router.  Updated the protocol specs and
3644           implemented it to the server.  Protocol TODO #16.
3645           Affected files are lib/silccore/silccommand, silcd/command.[ch],
3646           silcd/command_reply.[ch].
3647
3648 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3649
3650         * The LIST command reply in client libary now adds new channel
3651           entry if the returned channel doesn't exist yet in cache,
3652           and returns the channel entry to the application in the
3653           command_reply client operation.  Affected file is
3654           lib/silcclient/command_reply.c.
3655
3656         * Changed the channel message payload's MAC generation to
3657           include the IV in the MAC as well.  This way all relevant
3658           parts of the channel message payload are authenticated also
3659           with the channel message MAC (and not only by packet MAC).
3660           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
3661           Affected file is lib/silccore/silcchannel.c.
3662
3663         * Fixed the SKE to save the remote version, since the
3664           silc_ske_parse_version mistakenly checked wrong version,
3665           after it replaced the start payload.  Affected files are
3666           lib/silcske/silcske.[ch].
3667
3668 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3669
3670         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
3671           string utility functions.  Added there also new functions
3672           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
3673           Affected files lib/silcutil/silcstrutil.[ch].
3674
3675         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
3676           files are lib/silcutil/silcstrutil.[ch].
3677
3678         * Defined that the security property fields in SKE SHOULD be
3679           UTF-8 encoded, defined that version string MUST be US-ASCII
3680           encoded, defined that passphrases sent in connection
3681           authentication protocol MUST be UTF-8 encoded.  Implemented
3682           these to the client and server.  Defined also that other
3683           passphrases sent in the protocol MUST be UTF-8 encoded.
3684           Affected files are lib/silcske/silcske.c,
3685           lib/silcclient/protocol.c, silcd/protocol.c,
3686           silcd/serverconfig.c, and lib/silccore/silcauth.c.
3687
3688         * Changed the silc_client_close_connection interface to not
3689           need the SilcSocketConnection which should not be visible
3690           to application.  Affected files are lib/silcclient/client.c
3691           and lib/silcclient/silcclient.h.
3692
3693         * Rewrote the text for Private Message Key Payload in the
3694           protocol specification.  Protocol TODO #11.
3695
3696 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3697
3698         * Upgraded the protocol version to 1.1, updated protocol specs
3699           and software.
3700
3701         * Added the nickname as new argument to NICK_CHANGE notify and
3702           added it to protocol specs and implemented it to client and
3703           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
3704           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
3705           lib/silcclient/client_notify.c.
3706
3707         * Added the killer's client ID to the KILLED notify and added
3708           it to protocol specs and implemented it to client and server.
3709           Protocol TODO #13.  Affected files are silcd/command.c,
3710           silcd/packet_receive.c, packet_send.[ch],
3711           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
3712           The killer's client entry is now returned to application in
3713           the `notify' client operation.
3714
3715         * Fixed the Max Argument fields that had too large value set
3716           in the protocol specs.  Protocol TODO #14.
3717
3718         * Added the LEAVE command reply to return the ID of parted
3719           channel.  Updated protocol specs and implemented it to the
3720           client and server.  Protocol TODO #15.  Affected files are
3721           silcd/command.c, lib/silcclient/command_reply.c.  The channel
3722           entry is now returned to application in the `command_reply'
3723           client operation.
3724
3725         * Rewrote the version SKE version checking in client libary
3726           and in server to use the silc_parse_version_string.  Affected
3727           files are lib/silcclient/protocol.c, silcd/protocol.c.
3728
3729         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
3730           commands that was missing it, and updated protocol specs and
3731           the server implementation.  Protocol TODO #10.  The affected
3732           file is silcd/command.c.
3733
3734         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
3735           generic reply to a generic request (REQUEST flag), and
3736           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
3737           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
3738           to define the payload for DATA flag.  Added the flags to
3739           the implementation.  Protocol TODO #9.  Affected file is
3740           lib/silccore/silcchannel.h.
3741
3742           Changed the client library to return the message length
3743           to application as well in the channel_message and private_message
3744           client operations.  Affected files are
3745           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
3746           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
3747           and lib/silcclient/client_ops_example.c.
3748
3749         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
3750           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
3751           the channel.  Updated protocol specs and impelemented this
3752           to client and server.  Protocol TODO #6.  Affected files are
3753           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
3754           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
3755
3756           Added new options m and M to CMODE command in Irssi SILC
3757           client to set these modes.
3758
3759         * Deprecated all administrative commands from SILC protocol
3760           since they are highly implementation specific commands.
3761           Updated protocol specs.  Moved the old commands in
3762           implementations to private range of command types.  Affected
3763           files are silcd/command.c, lib/silcclient/command.c and
3764           lib/silcclient/command_reply.c.  Protocol TODO #8.
3765
3766         * Fixed a bug in server where sending unknown command crashes
3767           the server.  Affected file silcd/command.c.
3768
3769 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3770
3771         * Added SILC_PROTOCOLVERSION macro to check protocol version
3772           of a socket connection.  The affected file is
3773           lib/silcutil/silcsockconn.h.
3774
3775         * Added better error logging in rekey protocol.  Affected file
3776           silcd/protocol.c.
3777
3778         * Do not check public key types in SKE during rekey.  Affected
3779           file lib/silcske/payload.c.
3780
3781         * Fixed the rekey protocol with PFS, which was totally broken.
3782           Affected file silcd/protocol.c.
3783
3784 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3785
3786         * Some client implementations quit network by doing first LEAVE
3787           and then immediately SIGNOFF (like Bombyx).  We now do check
3788           after a short time after LEAVE notify and check whether the
3789           client is still valid after LEAVE, and if not we remove it from
3790           cache.  Affected file is lib/silcclient/client_notify.c.
3791
3792 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3793
3794         * Merged version 1.1.4 of zlib. Even if it not currently in use,
3795           it's good not to have security holes here.
3796
3797         * Fixed a negative refcount situtuation for the config context.
3798           Affected file is silcd/serverconfig.c.
3799
3800 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3801
3802         * ROBOdoc documented lib/silcutil/silcutil.h.
3803
3804 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3805
3806         * Optimized even more the SilcPacketContext structure.  Now
3807           totally saved 16 bytes of memory per context after optimization.
3808           Affected files are lib/silccore/silcpacket.[ch].
3809
3810         * Made strict checks for valid SILC IDs.  Affected file is
3811           lib/silccore/silcid.c.
3812
3813 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3814
3815         * Changed the object argument for silc_cipher_register,
3816           silc_hash_register, silc_hmac_register and silc_pkcs_register
3817           to const.  Affected files are lib/silccrypt/silccipher.[ch],
3818           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
3819
3820         * Changed the silc_get_username and silc_get_real_name to
3821           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
3822
3823         * Fixed the Irssi SILC Client to use the silc_get_username and
3824           silc_get_real_name insted of glib routines since the glib
3825           routines only corrupt stack.  Fixes the Irssi SILC to work in
3826           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
3827
3828         * Fixed the Irssi to not use g_get_home_dir since it crashes
3829           or returns garbage on cygwin and corrupts stack.  Added function
3830           get_home_dir to Irssi routines.  Affected files are
3831           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
3832
3833 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3834
3835         * Made some structure optimizations.  SFTP memory FS MemFSEntry
3836           entry structure.  Optimized SilcTask structure.  Optimized
3837           SilcPacketContext structure.
3838
3839           Affected files lib/silcsftp/sftp_fs_memory.c,
3840           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
3841
3842 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3843
3844         * And yet again reverted back the config thing since Johnny
3845           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
3846           and silcd.c.
3847
3848         * Fixed memory leaks from config object.  Affected files are
3849           silcd/serverconfig.[ch].
3850
3851         * Added support for adding new connections to the server in rehash.
3852           After rehash they take effect.
3853
3854           Added support for changing the maximum allowed connections in
3855           rehash.  The number can grow but going smaller is not supported.
3856
3857           Added function silc_server_num_sockets_by_remote to the
3858           silcd/server_util.[ch].
3859
3860           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
3861
3862 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
3863
3864         * Added preliminary checking during config parsing for a valid
3865           public/private key and removed further checks in the code.
3866           Affected files are silcd/serverconfig.[ch], server.c.
3867
3868         * Moved functions silc_server_drop() and silc_server_daemonise()
3869           from server.c to silcd.c since they are stricly related to
3870           the application activity.
3871
3872         * Reverted a small part of the automatic ref/unref since
3873           it caused a double unref in some situations.  Affected
3874           files are silcd/silcd.[ch], server.c, serverconfig.c.
3875
3876         * Added some .cvsignore files in the lib directory.
3877
3878 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3879
3880         * Fixed silc_net_gethostbyaddr to correctly resolve by
3881           address.  Affected file lib/silcutil/silcnet.c.
3882
3883         * Fixed the notify relaying to client.  The HMAC to be used
3884           with relayed packets ws wrong and caused decryption failure
3885           at the client end.  Affected file is silcd/packet_receive.c.
3886
3887 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3888
3889         * Created new branch silc_protocol_1_0_branch.
3890
3891         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
3892
3893         * Changed the silc_server_config_* routines to be SilcServer
3894           independent.  They are now officially application specific code
3895           and not part of generic server implementation.  Affected files
3896           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
3897
3898 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3899
3900         * Added automatic referencing of config context in the
3901           silc_server_config_alloc, and automatic unreferencing in the
3902           silc_server_config_destroy.  Affected files are
3903           silcd/serverconfig.[ch], silcd/silcd.c.
3904
3905         * Fixed the silc_log_quick handling in the logging routines.
3906           It didn't log quickly when it was TRUE.  Affected file is
3907           lib/silcutil/silclog.c.  Also the flush delay was set even
3908           if it was 0 in config file.  Affected file is
3909           silcd/serverconfig.c.
3910
3911         * Added support for changing key pair of the server in rehash.
3912           Affected file silcd/server.c.
3913
3914 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3915
3916         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
3917           too early, before getting the channel entry.  Affected file
3918           is silcd/packet_receive.c.
3919
3920 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
3921
3922         * Added functions silc_server_config_[ref/unref], these are used
3923           to prevent that the config object is destroyed.
3924
3925           No longer directly affect global variables silc_log_quick and
3926           silc_log_delay, they are first cached inside the config object
3927           and then applied with silc_server_config_setlogfiles().
3928
3929           silc_server_config_set_defaults() is now internal to
3930           serverconfig.c, there are no reasons to show this internal stuff
3931           to the server.
3932
3933           Affected files are silcd/serverconfig.[ch].
3934
3935         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
3936           fprintf's to stderr, since some code may be executed again after
3937           the server went into the background.  Affected files are
3938           silcd/server.[ch].
3939
3940         * Added rehash support. Added function silc_server_rehash() that
3941           will perform all the basic tasks of the rehashing procedure.
3942
3943         * Added command line option `-x, --hexdump'. This will enable the
3944           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
3945           The option `--hexdump' implies `--debug'.
3946
3947         * Fixed a bad bug in the logging APIs (silcutil library) where
3948           the application would crash after calling silc_log_reset_all().
3949
3950 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3951
3952         * Fixed the KICKED notify handling in client library to
3953           correctly remove the channel and all entries from the
3954           channel when I was kicked.  This bug crashed the client.
3955
3956           Fixed yet another but in KICKED notify handling to remove
3957           the kicked client correctly from the channel.
3958
3959           Affected file is lib/silcclient/client_notify.c.
3960
3961         * Fixed a minor bug in looking up correct client entry
3962           in KICKED notify in server.  Affected file is
3963           silcd/packet_receive.c.
3964
3965         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
3966           sources correctly to distribution.  Fixes --with-gmp option.
3967
3968         * Removed the manual rehashing from ID Cache, and changed it
3969           to use the SILC Hash Table's auto rehash feature.  Affected
3970           file is lib/silccore/silcidcache.c.
3971
3972 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3973
3974         * Fixed a bug in the silc_client_nickname_format function that
3975           handles the multiple same nickname formatting.  Two clients
3976           with same nickname caused problems after the first one left
3977           and rejoined.  It didn't format the nickname correctly.
3978           Affected file is lib/silcclient/idlist.c.
3979
3980 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3981
3982         * Don't change the topic if olod topic is same as new one.
3983           Affected file is silcd/packet_receive.c.
3984
3985 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3986
3987         * Added cross-reference support to the SILC Documentation
3988           generator.  All types across all HTML files are now cross-
3989           referenced.  Affected files util/robodoc/generator.c and
3990           scripts/silcdoc/silcdoc.
3991
3992         * Added file lib/silcutil/silctypes.h to include all the
3993           arithmetic type definitions and some macros.  Removed
3994           includes/bitmove.h and moved macros to silctypes.h.
3995
3996 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3997
3998         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
3999
4000 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4001
4002         * Added `type' argument to silc_id_payload_parse_id function which
4003           now returns the type of the ID to the sent pointer.  Affected
4004           file is lib/silccore/silcid.[ch].
4005
4006         * Added check for CMODE_CHANGE notify type that mode change is
4007           allowed by the sender.  Affected file silcd/packet_receive.c.
4008
4009         * Added check for CUMODE_CHANGE notify type that mode change is
4010           allowed by the sender.  Affected file silcd/packet_receive.c.
4011           Added the ID type as CUMODE_CHANGE notify type as argument
4012           to the `notify' client operation.  Affected files are
4013           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4014
4015         * Added function silc_client_add_server to the client library.
4016           Added support for resolving also channel and server info when
4017           received unknown entity in notify packet.  Affected files are
4018           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4019
4020         * Added function silc_command_get_status to return the command
4021           status from the command reply's argument payload.  Affected files
4022           are lib/silccore/silccommand.[ch].
4023
4024         * Added check for KICKED notify type that the kicking is
4025           allowed by the client.  Affected file silcd/packet_receive.c.
4026
4027         * Created function silc_get_input which can be used to get input
4028           (echo on or off) from user on command line.  Affected files are
4029           lib/silcutil/silcutil.[ch].
4030
4031 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4032
4033         * Optimized silc_server_packet_relay_to_channel function.
4034           Added new function silc_channel_message_payload_encrypt which
4035           can be called directly if channel message payload needs to
4036           be encrypted and is already encoded (no need to call _encode
4037           function).  Packet relaying is now done by router without any
4038           extra memory allocations.  Affected files are
4039           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4040           silcd/packet_send.c.
4041
4042         * Fixed the INVITE notify handling.  It took wrong arguments
4043           as invite list and invite delete.  Affected file is
4044           silcd/packet_receive.c.
4045
4046         * Added check for TOPIC_SET notify type that the topic change is
4047           allowed by the client.  Affected file silcd/packet_receive.c.
4048
4049         * Added check for INVITE notify type that inviting is allowed by
4050           the client.  Affected file silcd/packet_receive.c.
4051
4052         * Changed the silc_server_client_on_channel to return the
4053           SilcChannelClientEntry as well.  Moved the function
4054           silc_server_check_cmode_rights to server_util.[ch].
4055           Affected files are silcd/server_util.[ch], silcd/command.c.
4056
4057         * Added function silc_server_check_umode_rights to check whether
4058           changing client's user mode is allowed.  Added check for
4059           UMODE_CHANGE notify type that the umode change is allowed
4060           by the client.  Affected files are silcd/server_util.[ch],
4061           silcd/packet_receive.c and silcd/command.c.
4062
4063 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4064
4065         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4066           ID length.  It ignored that ID can be IPv6 based as well.
4067           Affected file lib/silccore/silcpacket.h.
4068
4069         * Fixed the silc_id_id2str and silc_id_str2id to take the
4070           IPv6 address offset's into consideration.  Affecte file is
4071           lib/silccore/silcid.c.
4072
4073 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4074
4075         * Fixed the internal Unix scheduler functions to check for
4076           NULL context they may receive.  The affected file is
4077           lib/silcutil/unix/silcunixschedule.c.
4078
4079 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4080
4081         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4082           can specify different directory with --home command line
4083           parameter. Affected files irssi/src/silc/core/client_ops.c,
4084           clientutil.c
4085
4086         * SILC-specific commands aren't now executed if the active server
4087           isn't of SILC-type, so there won't be problems with having
4088           IRC and SILC protocol support in same client. Affected files
4089           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4090           silc-commands.h
4091
4092 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4093
4094         * Improved the signal support in SILC Schedule.  Added new
4095           function silc_schedule_signal_call which is used by application
4096           to mark a signal to be called.  It is now safe to perform
4097           any kind of tasks in signal callbacks since it is guaranteed
4098           that the application specified signal callback is called
4099           after the signal is over.  Affected files are
4100           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4101
4102 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4103
4104         * Added `name' field to SilcChannelPrivateKey to represent
4105           application given name for the key.  Moved also the context from
4106           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4107           Added the `name' argument also to the function
4108           silc_client_add_channel_private_key.
4109
4110           Added function silc_client_current_channel_private_key to set the
4111           current channel private key in use.
4112
4113           Added "change" command to KEY command which can be used to change
4114           the current channel private key.  Bound the command also to
4115           alt+K (Alt+Shift+k).
4116
4117           Also affected files lib/silcclient/client_channel.c,
4118           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4119
4120 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4121
4122         * Added silc_rng_get_byte_fast function in to the
4123           lib/silccrypt/silcrng.[ch].
4124
4125         * Changed the interface of silc_packet_assemble and the
4126           silc_packet_send_prepare.  If silc_packet_assmble is now
4127           called the application does not call silc_packet_send_prepare
4128           because the library will call it automatically.  These
4129           interfaces now also return a reference to the outgoing buffer
4130           which includes the assembled packet, which the application can
4131           use to encrypt the packet.
4132
4133           Affected files are lib/silccore/silcpacket.[ch],
4134           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4135           silcd/packet_send.c, server_backup.c and packet_receive.c.
4136
4137         * Fixed a packet sending bug on very high load, where outgoing
4138           packet queue wasn't handled correctly and packets got corrupted.
4139           Affected files are lib/silcutil/*/silc*sockconn.c,
4140           lib/silcclient/client.c and silcd/server.c.
4141
4142 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4143
4144         * Added macro SILC_PACKET_DATALEN which can be used during
4145           packet assembling to check whether the data to be added to
4146           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4147           len is truncated until it fits it.
4148
4149           Added checks for maximum length of channel message payload and
4150           private message payload also.
4151
4152           Added checks for maximum packet length in server and in
4153           client library.
4154
4155           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4156           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4157           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4158           lib/silcclient/client_prvmsg.c.
4159
4160 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4161
4162         * Added silc_server_packet_queue_purge call to the
4163           silc_server_disconnect_remote to assure that all data in the
4164           queue before disconnecting is sent to the network.  Affected
4165           file silcd/server.c.
4166
4167 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4168
4169         * Added the deleting of server's own ID cache entry to the
4170           silc_server_free function.  Free also everything else that
4171           has been allocated in silc_server_init.  The affected file
4172           is silcd/server.c.
4173
4174 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4175
4176         * Added functions silc_parse_version_string, silc_version_to_num,
4177           and silc_ske_parse_version to parse SILC protocol style version
4178           strings.  Affected files lib/silcutil/silcutil.[ch] and
4179           lib/silcske/silcske.[ch].
4180
4181         * Added new configuration params: version_protocol, version_software
4182           and version_software_vendor to specify what version the remote
4183           host must at least be to be able to connect to server.  The vendor
4184           string can be regex matched too.  Added new function
4185           silc_server_connection_allowed to check maximum number of allowed
4186           connections, and allowed versions for incoming connections.
4187           Affected files are silcd/server.c, server_util.[ch] and
4188           serverconfig.[ch].
4189
4190 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4191
4192         * Added preliminary support for signals in scheduler.  The
4193           signals we care about are now blocked always when the scheduler
4194           is locked.  This way we can synchronise the use of signal with
4195           scheduler.  It is guaranteed that when signal occurs the scheduler
4196           is not locked, and thus new tasks can be safely added to the
4197           scheduler.
4198
4199           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4200           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4201           Added new platform specific routines
4202           silc_schedule_internal_signals_[un]block and
4203           silc_schedule_internal_signal_[un]register.
4204
4205           Added new functions to SILC Schedule API:
4206           silc_schedule_signal_[un]register.  Each signal that application
4207           is going to use should be registered to the scheduler.
4208
4209           Affected files are lib/silcutil/silcschedule.[ch],
4210           lib/silcutil/*/silc*schedule.c.
4211
4212 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4213
4214         * Check for unauthenticated client and server in the
4215           silc_server_new_client and silc_server_new_server functions.
4216           Affected file silcd/packet_receive.c.
4217
4218         * Added function silc_string_is_ascii to check whether given
4219           string is 7-bit ASCII string.  Affected files are
4220           lib/silcutil/silcutil.[ch].
4221
4222         * Added function silc_id_is_valid_server_id into the
4223           silcd/serverid.c and added checking for valid Server ID's in
4224           silc_server_new_server.  The Server ID must always be based
4225           on the server's public IP address.
4226
4227         * Added logging of DISCONNECT packet message in the server.
4228           Affected file silcd/server.c.
4229
4230 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4231
4232         * Changed all library interfaces that use Global RNG to also
4233           accept SilcRng as argument.  Affected files are
4234           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4235           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4236           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4237           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4238           lib/silccrypt/rsa.c.
4239
4240         * Added function silc_pkcs_generate_key to the
4241           lib/silccrypt/silcpkcs.[ch] for applications so that they
4242           don't need to do pkcs->pkcs->init calls anymore.
4243
4244         * Remove SilcSocketConnection from the SFTP API since it really
4245           wasn't needed there.  The application has the information
4246           saved in its contexts anyway and the SFTP layer doesn't need
4247           know about it.  Affected files lib/silcsft/silcsftp.h and
4248           lib/silcsftp/sftp_[server/client].c.
4249
4250         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
4251           The SilcSimContext is not SilcSim.
4252
4253         * Fixed possible buffer overflows in silc_id_render in the
4254           lib/silcutil/silcutil.c.
4255
4256         * On EPOC the global crypto module lists are not used at all
4257           in the crypto library.  Added support for using the constant
4258           algorithm list on EPOC.  Affected files are
4259           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
4260           silcpkcs.c.
4261
4262         * Fixed the handling of third parameter of KICKED notify, since
4263           it was mistakenly updated to SILC Protocol 1.0 even though it
4264           is to be included in 1.1.  Since it is not in 1.0 it is not
4265           mandatory, and this fix now handles it only if it is provided,
4266           and it is not error if it is not provided.  Affected file
4267           lib/silcclient/client_notify.c.
4268
4269 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4270
4271         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
4272           client.  Affected file irssi/src/silc/core/client_ops.c.
4273
4274         * Merged with Irssi 0.8.4 from irssi.org CVS.
4275
4276 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4277
4278         * Check for valid socket connection in client entries before
4279           sending any messages.  Fixes a crash, but doesn't fix some
4280           other underlaying bug that is lurking there.  Affected
4281           file silcd/packet_send.c.
4282
4283 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
4284
4285         * $usermode, $cumode and $cumode_space expandos shouldn't do
4286           anything with non-SILC server records. Affected file
4287           irssi/src/silc/core/silc-expandos.c
4288
4289 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4290
4291         * Fixed the silc_net_check_[host/local]_by_sock to support
4292           IPv6 bound sockets as well.  Now they can return IPv6 addresses
4293           as well.  Affected file lib/silcutil/silcnet.c.
4294
4295         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
4296           Affected lib/silcutil/unix/silcunixnet.c.
4297
4298         * Fixed ID rendering (at least on some platforms, not NetBSD)
4299           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
4300
4301 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4302
4303         * Added silc_hash_public_key and silc_hash_public_key_compare
4304           functions to be used with SilcHashTable.  They can be used to
4305           hash public keys and compare public keys in hash table.  Affected
4306           file lib/silcutil/silcutil.[ch].
4307
4308         * Added support for specifying multiple public keys for Client
4309           connection section in server configuration file.  This makes it
4310           possible to accept multiple public keys from same host, or to
4311           make a section that accepts any incoming host, and have the
4312           accepted public keys listed in the section.
4313
4314           Added functions silc_sever_[find/get]_public_key,  added the
4315           support for this actually to all connection sections but only
4316           the Client section is currently allowed to specify multiple
4317           public keys.
4318
4319           Affected files are silcd/server.c, server_internal.h,
4320           command.c, protocol.c, server_util.[ch], packet_receive.c.
4321
4322 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4323
4324         * Merged Irssi 0.8.2 from irssi.org CVS.
4325
4326 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4327
4328         * If silc_debug is TRUE, also output standard logging messages
4329           to stderr with the debug output.
4330
4331           Made silc_log_reset_all() flushing all channels before returning.
4332           Also fixed some documentation typos.
4333
4334           Affected files are lib/silcutil/silclog.[ch].
4335
4336 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4337
4338         * Fixed the server to check correctly the amount of connections
4339           from single host, by checking also the type of the connection.
4340           Fixed also the comparison of number of connections and number
4341           of allowed connections.  Affected files are silcd/server.c,
4342           server_util.[ch].
4343
4344 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4345
4346         * Fixed the USERS command reply to save the user's mode on the
4347           channel as well.  Fixed JOIN command reply to check whether a
4348           client is on channel already and not join it twice.  Affected
4349           file lib/silcclient/command_reply.c.
4350
4351         * Added new file silc-expandos.c into irssi/silc/core/ to return
4352           various stuff for various signal for the statusbar etc. updating.
4353           Now Irssi SILC client prints channel user modes etc. on the
4354           statusbar.
4355
4356         * The user mode (like server/router operator changes) is now shown
4357           on the Irssi SILC client's statusbar.  The affected files are
4358           irssi/src/silc/core/client_ops.c, silc-expandos.c.
4359
4360 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4361
4362         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
4363           to SILC_SCHEDULE_[UN]LOCK macros.
4364
4365         * Added more error printing to logs in server code.  Affected
4366           files silcd/server.c and silcd/protocol.c.
4367
4368         * Fixed -S option parsing in Irssi SILC Client.  Affected file
4369           irssi/src/silc/core/silc-core.c.
4370
4371         * Added silc_buffer_alloc_size function.  Affected file is
4372           lib/silcutil/silcbuffer.h.
4373
4374 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4375
4376         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
4377           constants.  Affected files in
4378           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
4379           silccipher.[ch].
4380
4381         * Changed the internal SFTP Memory FS table to const.  Affected
4382           file lib/silcsftp/sftp_fs_memory.c.
4383
4384 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4385
4386         * Fixed the buffer formatting and unformatting routines to
4387           check the size of 64 bits types with sizeof().  Affected
4388           file is lib/silcutil/silcbuffmt.c.
4389
4390 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4391
4392         * Removed 0.6.x backwards support.
4393
4394 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4395
4396         * Changed all integer type names:
4397           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
4398           to avoid collisions with other libraries using same type names
4399           as we did.
4400
4401 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4402
4403         * Added `prefer_ipv6' argument to the functions
4404           silc_net_gethostbyname[_async].  If it is TRUE it will return
4405           IPv6 address over IPv4.  If FALSE IPv4 address is returned
4406           even if IPv6 address was found.  Affected files
4407           lib/silcutil/silcnet.[ch].
4408
4409         * Added support silc_net_create_connection[_async] to fallback
4410           to IPv4 address if IPv6 address could not be used (like if
4411           it doesn't work on a specific system).  Affected file in
4412           lib/silcutil/unix/silcunixnet.c.
4413
4414 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4415
4416         * Added silc_schedule_reinit function to do the enlarging
4417           of the max tasks handling capabilities of the scheduler.
4418           Affected files lib/silcutil/silcschedule.[ch].
4419
4420 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4421
4422         * Added automatic extern "C" { ... } for C++ compilers so the
4423           application does not need to define them.  Affected file
4424           includes/silcincludes.h.
4425
4426         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
4427           old name went against naming convention.  Applications now
4428           include "silcclient.h" instead of "clientlibincludes.h".
4429           Removed includes/clientlibincludes.h, it is redundant now.
4430
4431         * Renamed includes/version.h to silcversion.h.
4432
4433         * Added really preliminary support for OS/2 into the util
4434           library.  Only thread & mutex API is implemented, others
4435           are still to be implemented.  Created the lib/silcutil/os2/
4436           directory.  Created also file includes/silcos2.h.
4437
4438 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4439
4440         * Added preliminary BeOS support into the util library.
4441           Created lib/silcutil/beos/, and implemented all the needed
4442           functions to support SILC on BeOS.  Created also file
4443           includes/silcbeos.h.
4444
4445 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
4446
4447         * Added proper initializations to silc's irssi code, so it's
4448           now possible to load it as module.  Affected files
4449           irssi/src/silc/core/silc-core.c,
4450           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
4451
4452 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4453
4454         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
4455           the SILC tree.
4456
4457         * Fixed the silcdoc document generator to correct generate
4458           docs from all kinds of filenames.  Affected files are
4459           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
4460
4461         * ROBOdoc documented lib/silcutil/silcmemory.h.
4462           Added also new function silc_memdup.
4463
4464         * Removed lib/silcutil/silcbufutil.h and moved those routines
4465           to the lib/silcutil/silcbuffer.h.
4466
4467 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4468
4469         * Added `user_count' to the SilcChannelEntry which now tells the
4470           number of users on the channel.  The user count is now saved
4471           in normal server of global channels as well.  Affected files
4472           silcd/server.c, idlist.h, packet_receive.c and command.c.
4473
4474         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
4475           include file utility functions.
4476
4477         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
4478           instead of calling directly OS routines.
4479
4480         * Fixed NICK change printing in Irssi SILC Client. Fixed
4481           KICKED notify printing in Irssi SILC Client.  Affected file
4482           irssi/src/silc/core/client_ops.c.
4483
4484         * Fixed a NICK change bug in client library, to not recreate the
4485           client_entry->channels hash table everytime nick is changed.
4486           Affected file lib/silcclient/client.c.
4487
4488 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4489
4490         * ROBOdoc documented the lib/silcske/silcske.h, and improved
4491           the SKE interface a bit.
4492
4493         * Fixed padding problem in PKCS#1. The padding was not actually
4494           random since the random number generator was used incorrectly.
4495           This security bug affects only when encrypting with PKCS#1, and
4496           it is not currently used at all in SILC. SILC only use signing
4497           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
4498
4499 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4500
4501         * Rewrote the notify handling in Irssi SILC client to not call
4502           the events as signals.  Fixes problems with Perl support.
4503           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
4504
4505         * Send the auto-nicking NICK command in client library with
4506           little timeout after connecting.  The affected file is
4507           lib/silcclient/client.c.
4508
4509         * Added following new config file settings:
4510           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
4511           key_exchange_timeout, conn_auth_timeout, connections_max,
4512           links_max.
4513
4514           Implemented all the new config settings handling in the server.
4515
4516           Optimized the use of SKE Mutual flag usage.  Use it only
4517           if connection authentication protocol is not based in public
4518           key authentication.
4519
4520           Renamed all SilcServerConfigSection* to SilcServerConfig*
4521           to have a bit shorter names.
4522
4523           Affected files silcd/serverconfig.[ch], server.[ch], and
4524           protocol.[ch].
4525
4526 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4527
4528         * Cleaned up the listening sockets code, preparing for the rehash
4529           support.  Affected file is silcd/server.c.
4530
4531         * Fixed some output messages.  Affected files are silcd/silcd.c,
4532           and silcd/server.c.
4533
4534 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4535
4536         * Create lib/doc/silcrng_intro.html document as introduction
4537           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
4538
4539 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4540
4541         * Fixes to the silcd config template.  Affected file is
4542           doc/example_silcd.conf.in.
4543
4544         * Removed type casts from silc_calloc(), conforming to the
4545           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
4546
4547         * Removed param_name member from client, server, and router
4548           section structs, now identifying the param directly.
4549
4550           Added CONFIG_FREE_AUTH macro in config file parsing.
4551
4552           Affected files are silcd/serverconfig.[ch].
4553
4554 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
4555
4556         * Fixed command line parameter handling. All SILC initialization
4557           is now done in silc_core_init() which also fixes autoconnecting
4558           to servers.
4559
4560           Affected files irssi/src/silc/core/silc-core.c,
4561           irssi/src/fe-text/silc.c.
4562
4563 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4564
4565         * Added new configuration options and blocks:
4566           keepalive_secs, reconnect_count, reconnect_interval,
4567           reconnect_interval_max, reconnect_keep_trying and
4568           require_reverser_lookup.  Added ConnectionParam block, and
4569           implemented the connection parameters when connecting as
4570           initiator and when accepting connections as responder.
4571
4572           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
4573           whether given configuration value has been given already.
4574
4575           Affected files silcd/serverconfig.[c], server.[c].
4576
4577         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
4578           algorithm parts and created new file silcalgs.conf, that
4579           is now included from the example_silcd.conf.in.
4580
4581         * Optimized the silc_server_connect_to_router_second to take
4582           the connection configuration object from the SilcServerConnection
4583           object instead of finding it during the connecting phase.
4584           Added the configuration object to SilcServerConnection struct.
4585           Affected files silcd/server_internal.h, server.c.
4586
4587 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4588
4589         * Add the client on channel after it was resolved at the
4590           channel message receiving, and it was not already on the
4591           channel.  Affected file lib/silcclient/client_channel.c.
4592
4593 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4594
4595         * Fixed the public key authentication to allocate always the
4596           destination signature buffer instead of using static buffer.
4597           Affected file silcd/protocol.c.
4598
4599 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4600
4601         * Unified the serverconfig.[ch]'s helper function interface.
4602           Affected file silcd/serverconfig.[ch].
4603
4604         * Removed doc/example_silc.conf.in since it is redundant.
4605           The make install will now install irssi/silc.conf file.
4606
4607         * Added new Passphrase and Publickey authentication methods to
4608           config file, allowing both public key and passphrase based
4609           authentication to be set at the same time.
4610
4611           Added `prefer_passphrase_auth' setting in config file which
4612           can be used to set to prefer passwd auth if both passwd and
4613           public key is set.  If not set, public key is preferred.
4614           This has effect only when being initiator (responder will try
4615           both anyway).
4616
4617           Added support for authentication with passphrase and public key
4618           at the same time.  The passphrase is tried first always since
4619           it is faster to check.
4620
4621           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
4622
4623 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4624
4625         * Merged the new SILC Config library, with the server parsing
4626           support.  Read the header file silcconfig.h or the toolkit
4627           documentation for the news.  Affected files are
4628           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
4629           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
4630           silcd/protocol.c silcd/server.c silcd/server_backup.c
4631           silcd/serverconfig.[ch] silcd/silcd.c.
4632
4633         * Fixed some silclog documentation.  Affected file is
4634           lib/silcutil/silclog.h.
4635
4636 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4637
4638         * The silc_cipher_register, silc_hash_register and
4639           silc_hmac_register now checks if the object to be registered
4640           is registered already.  Affected files are
4641           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
4642
4643 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4644
4645         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
4646
4647 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4648
4649         * Allow zero length channel messages inside the Channel Message
4650           Payload.  Affected file lib/silccore/silcchannel.c.
4651
4652         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
4653           as header filenames.
4654
4655         * Removed lib/silcclient/README and created HTML file
4656           lib/silcclient/silcclient_using.html, which is now included
4657           as part of Toolkit documentation.
4658
4659 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4660
4661         * Fixed CUMODE_CHANGE notify handling to change the mode of
4662           correct client.  Affected file lib/silcclient/client_notify.c.
4663
4664         * Make silc_rng_alloc fail if it cannot allocate the sha1
4665           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
4666
4667 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4668
4669         * Fixed the file transfer's key agreement payload to include
4670           zero port also if the hostname is NULL because it could not
4671           be bound.
4672
4673           Call file transfer monitor callback now also if error occurs
4674           during key agreement protocol.
4675
4676           Changed the silc_client_file_send interface to return the
4677           SilcClientFileError instead of session id.  The session ID
4678           is returned into pointer provided as argument.
4679
4680           Check that the file exists locally before sending the
4681           file transfer request at all.
4682
4683           Affected file lib/silcclient/client_ftp.c, silcapi.h.
4684
4685         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
4686           error than can occur while key agreement protocol.  Affected
4687           file lib/silcclient/silcapi.h.
4688
4689         * Fixed the event_mode CMODE handler to not crash when mode
4690           is changed and +k mode is set in the channel.  Affected file
4691           irssi/src/silc/core/silc-channels.c.
4692
4693         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
4694           SILC_LOG_WARNING to give out Warning and not Error.  Affected
4695           file lib/silcutil/silclog.c.
4696
4697         * Fixed the channel message payload decryption in the function
4698           silc_channel_message_payload_decrypt to not modify the original
4699           buffer before it is verified that the message decrypted
4700           correctly.  Otherwise, next time it is called with correct
4701           channel key it won't encrypt since the payload is corrupted.
4702           Affected file lib/silccore/silcchannel.c.
4703
4704 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4705
4706         * Do not constantly resize the window.  A fix patch by cras.
4707           Affected file irssi/src/fe-text/screen.c.
4708
4709 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4710
4711         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
4712           Affected file lib/silcutil/silcnet.c.
4713
4714 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4715
4716         * Fixed a bug in hash table internal routine for traversing
4717           the table with foreach callback.  The current entry may
4718           become invalid in the callback but it was referenced after
4719           the callback returned.
4720
4721           Do not allow auto rehashing of hash table during the
4722           silc_hash_table_foreach operation, for same reasons as it is
4723           not allowed for SilcHashTableList.  Affected files are
4724           lib/silcutil/silchashtable.[ch].
4725
4726 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4727
4728         * Defined DLLAPI into silcincludes.h and silcwin32.h for
4729           Win32 DLL.  extern's in header files are now declared with
4730           DLLAPI.
4731
4732 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4733
4734         * Fixed private message handling.  It used some old code that
4735           caused the client to crash.  Affecte file is
4736           lib/silcclient/client_prvmsg.c.
4737
4738 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4739
4740         * Added function silc_client_add_channel,
4741           silc_client_replace_channel_id, and removed functions
4742           silc_client_new_channel_id and silc_idlist_get_channel_by_id
4743           from client library.
4744
4745         * Added cross reference of the joined channels to the
4746           SilcClientEntry, and changed the SilcChannelEntry's
4747           users list to SilcHashTable.  The affected files are
4748           lib/silcclient/idlist.[ch].
4749
4750         * Fixed a bug in hash table tarversing.  While the hash table
4751           is traversed with SilcHashTableList the table must not be
4752           rehashed.  It is now guaranteed that auto rehashable tables
4753           are not rehashed while tarversing the list.  Also defined that
4754           silc_hash_table_rehash must not be called while tarversing
4755           the table.  Added function silc_hash_table_list_reset that must
4756           be called after the tarversing is over.  The affected files are
4757           lib/silcutil/silchashtable.[ch].
4758
4759         * Changed all hash table traversing to call the new
4760           silc_hash_table_list_reset in server and in client library.
4761
4762         * Added function silc_client_on_channel to return the
4763           SilcChannelUser entry if the specified client entry is joined
4764           on the specified channel.  This is exported to application as
4765           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
4766
4767 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4768
4769         * Fixed founder regaining problem with JOIN command on normal
4770           server.  The notify for mode change must be sent always and
4771           not only if !cmd->pending.  Affected file silcd/command.c.
4772
4773         * Fixed the WHOWAS command's reply sending to support the
4774           lists correctly.  Affected file silcd/command.c.
4775
4776 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4777
4778         * When sending JOIN command to router for processing the
4779           sender's old command identifier was not saved back to the
4780           sender's command context, fixed now.  The affected file is
4781           silcd/command.c.
4782
4783         * Create the key in JOIN command of the router did not return
4784           the channel key, added check for this.  Affected file is
4785           silcd/command.c.
4786
4787         * Fixed a channel ID update bug in JOIN command reply.  Do
4788           not directly upgrade the ID but call the function
4789           silc_idlist_replace_channel_id if the ID was changed.
4790           Affected file silcd/command_reply.c.
4791
4792         * Fixed memory leaks from command calling if it would fail.
4793           Affected file silcd/command.c.
4794
4795 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4796
4797         * Applied patches from cras:
4798
4799           Memory leak fixes around libaries, irssi window resize fix,
4800           new silclist.h and silcdlist.h, all extern inline changed to
4801           static inline.
4802
4803         * Removed dotconf from lib/dotconf, not needed anymore.
4804
4805         * Removed TRQ from lib/trq, not needed anymore.
4806
4807         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
4808           with server connections.  Later this will be configurable
4809           in config file after new config file is done.  Affected file
4810           silcd/server.c.
4811
4812 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4813
4814         * Fixed a crash in server related to channel announcements.
4815           Affected file silcd/server.c.
4816
4817 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4818
4819         * Fixed memory leaks in silc_server_create_new_channel*
4820           functions.  Affected file silcd/server.c.
4821
4822         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
4823           which ID was changed.  This way the router will send the
4824           user list for the channel again, and server won't be in
4825           desync in some rare circumstances.  Affected file is
4826           silcd/packet_receive.c.
4827
4828 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4829
4830         * Check for NULL socket pointer in the function
4831           silc_server_packet_send_to_channel_real.  Affected file
4832           silcd/packet_send.c.
4833
4834         * Fixed the BAN notify handling to correctly remove ban
4835           list.  Affected file silcd/packet_receive.c.
4836
4837 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4838
4839         * Fixed some header addition to Toolkit distribution in
4840           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
4841
4842         * Added lib/silcclient/client_ops_example.h as an template
4843           file for application programmers to quickly start using
4844           the SilcClientOperation functions in their application.
4845           Updated the lib/silcclient/README as well to tell about this
4846           nice file made available.
4847
4848 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4849
4850         * Call silc_server_remove_from_channels when removing client
4851           entry when NO_SUCH_CLIENT_ID was received.  Affected file
4852           is silcd/command_reply.c.
4853
4854 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4855
4856         * Added server & router operator statistics updating.  Affected
4857           file silcd/packet_receive.c and silcd/command.c.
4858
4859         * Fixed the SERVER_SIGNOFF notify handling on normal server
4860           not to save the history information for clients.  Same was
4861           fixed earlier in remove_clients_by_server function, but not
4862           here.  Affected file silcd/packet_receive.c.
4863
4864         * Raised the default connection-retry count from 4 to 7 in
4865           server.  Affected file silcd/server.h.
4866
4867         * Cancel any possible reconnect timeouts when we start the
4868           key exchange.  Affected file silcd/server.c.
4869
4870         * Do not reconnect on connection failure when SCONNECT was
4871           given.  Affected files silcd/server.[ch].
4872
4873 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4874
4875         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
4876
4877         * Fixed the NICK command to always give the unformatted
4878           nickname to the one giving the NICK command.  If unformatted
4879           nickname is cached already it will be formatted and the
4880           local entry will always get the unformatted nickname.
4881           Affected file lib/silcclient/idlist.c.
4882
4883         * Fixed some double frees from client library commands.
4884           Affected file is lib/silcclient/command.c.
4885
4886         * Fixed CUMODE command in server to assure that no one can
4887           change founder's mode than the founder itself, there was a
4888           little bug.  Affected file silcd/command.c.
4889
4890 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4891
4892         * Removed the SilcClientCommandDestructor from the client
4893           libary, it is not needed anymore.  Affected files are
4894           lib/silcclient/silcapi.h, command[_reply].[ch],
4895           client_notify, idlist.c.
4896
4897         * Fixed GETKEY command to first resolve client, and then
4898           resolve the server only if the client was not found, instead
4899           of resolving both at the same time.  Affected file is
4900           lib/silcclient/command.c.
4901
4902         * Added silc_client_start_key_exchange_cb and lookup the
4903           remote hostname and IP address before starting the key
4904           exchange with server.  The affected file is
4905           lib/silcclient/client.c.
4906
4907         * The server's public key is now saved using the IP address
4908           of the server and not the servername for the filename.
4909           The hostname public key filename is checked as an fall back
4910           method if the IP address based filename is not found.
4911
4912           Fixed the GETKEY command to save the fetched server key
4913           in correct filename.
4914
4915           Print the remote server's hostname now when new key is
4916           received during connection process.  Affected file is
4917           irssi/src/silc/core/client_ops.c.
4918
4919         * Return always our own public key to the client if it asks
4920           for it with GETKEY command.  Affected file silcd/command.c.
4921
4922         * Removed the use_auto_addr variable from default config
4923           file since it was in wrong section.  Affected file is
4924           irssi/src/config.
4925
4926         * Fixed TOPIC_CHANGE notification to not route it when it
4927           was sent using silc_server_send_notify_to_channel function.
4928           Affected file silcd/command.c.
4929
4930         * Fixed silc_server_send_notify_kicked to send the kicker's
4931           Client ID also, it was missing.  Affected files are
4932           silcd/command.c, silcd/packet_send.[ch].
4933
4934 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4935
4936         * Do not save client history information in SERVER_SIGNOFF.
4937           Fixes the bug in normal server that it does not detect
4938           the client becoming valid after the server becomes back
4939           online.  Affected file silcd/server_util.c.
4940
4941         * Added `sock_error' field  into the SilcSocketConnection
4942           context.  When error occurs during socket operation (read
4943           or write) the error is saved.  Added also new function
4944           silc_socket_get_error to return human readable socket error
4945           message.  Affected files are lib/silcutil/silcsockconn.[ch],
4946           lib/silcutil/unix/silcunixsockconn.c, and
4947           lib/silcutil/win32/silcwin32sockconn.c.
4948
4949         * The server now prints the socket error message in the
4950           signoff for client.  Affected file silcd/server.c.
4951
4952         * Fixed the `created' channel information sending from router
4953           to server in JOIN command.  Checks now whether the channel
4954           really was created or not and set it according that.
4955
4956           Fixed the JOIN command to use the client entry's current
4957           ID during the joining procedure instead of the one it sent
4958           in the command (it is checked though), since it can change
4959           between the packet processing and command processing, and
4960           would just case unnecessary pain in the client end.  Affected
4961           file silcd/command.c.
4962
4963         * Fixed a channel key payload sending to use correct channel
4964           ID when the server was forced to change the channel's ID by
4965           router.  Router sent the key payload with the old Channel ID.
4966           Affected file silcd/packet_receive.c.
4967
4968 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4969
4970         * Call silc_server_save_channel_key only if the key payload
4971           was provided in the JOIN command's command reply.  Affected
4972           file silcd/command_reply.c.
4973
4974 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4975
4976         * Fixed silc_mp_sizeinbase to return the value correctly with
4977           MPI.  Affected file lib/silcmath/mp_mpi.c.
4978
4979         * Fixed the stop_server signal to correctly stop the scheduler
4980           and gracefully stop the server when SIGTERM or SIGINT signals
4981           are received.  Affected file silcd/silcd.c.
4982
4983 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4984
4985         * Simple handling of TERM and HUP signals. Also added some log
4986           flushing call around.  Affected file is
4987           silcd/silcd.c.
4988
4989         * Fixed small bugs in silclog.c. Now buffering output will take
4990           effect after 10 seconds since startup: This will ensure that
4991           no important startup messages are lost. Also output redirection
4992           will preserve original format ([Date] [Type] message).
4993           Affected file is lib/silcutil/silclog.c.
4994
4995         * Added two options to the config file, in the logging section:
4996           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
4997           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
4998
4999 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5000
5001         * Do not print the warning about log files not being initialized
5002           more than once to avoid excess logging.  Affected file is
5003           lib/silcutil/silclog.c.
5004
5005         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5006           the SIM copying in make install in Makefile.am.pre.
5007
5008 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5009
5010         * Rewritten silclog APIs. Globally interesting changes follows:
5011           silc_log_set_files() changed to silc_log_set_file().
5012           silc_log_set_callbacks() changed to silc_log_set_callback().
5013           ROBOdoc documented silclog header file.
5014           SilcLogCb now returns bool to wether inihibit the default
5015           handler or not (to keep the old behaviour return always TRUE).
5016           The new APIs should also fix the problem of the
5017           silcd_error.log file that was written in the current directory.
5018
5019           New features:
5020           Log files streams will remain opened after silc_log_set_file()
5021           call, means less CPU usage notably on high traffic servers.
5022           File streams are now full buffered, and flushed to the disk
5023           every 5 minutes, lesses HD activity and CPU usage.
5024           Messages can be redirected, allowing admins to configure
5025           one single logfile for all server messages.
5026           the silc_log_quick global variable to activate fast-logging.
5027           Affected files lib/silcutil/silclog.[ch]
5028
5029         * Changed some code to conform new silclog APIs. Affected
5030           files are doc/example_silcd.conf.in, silcd/server.c
5031           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5032           silcd/silcd.c.
5033
5034         * Fixed a memory leak that could occur in some situations.
5035           Affected file silcd/serverconfig.c.
5036
5037 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5038
5039         * Added the silc_client_del_client to remove the client from
5040           all channels as well.  Affected file lib/silcclient/idlist.c.
5041
5042         * Fixed the client library to correctly remove the client
5043           from all channels when the client entry is being destroyed.
5044           Affected file lib/silcclient/client_notify.c, command.c.
5045
5046         * Added auto-nicking support to the client library.  If the
5047           applicatio now sets client->nickname it will be sent to the
5048           server after connecting by the library.  This way for example
5049           SILCNICK (or IRCNICK) environment variables will have effect
5050           and always change the nickname automatically to whatever
5051           it is wanted.  Affected file lib/silcclient/client.[ch].
5052
5053         * Renamed silc_server_command_bad_chars to the
5054           silc_server_name_bad_chars and moved it to the
5055           silcd/server_util.[ch].  Added also new function
5056           silc_server_name_modify_bad to return nickname that
5057           includes bad characters as new nickname without those
5058           bad characters.  This check and modify is now used in
5059           silc_server_new_client when the username is initially set
5060           as nickname, so it must be checked to be valid nickname.
5061           Affected file silcd/packet_receive.c.
5062
5063         * The nickname length is now taken from the packet for real
5064           and not trusted to strlen() since it clearly can return
5065           wrong length for nickname including bad characters.  This
5066           also applies to channel names.  Affected file silcd/command.c.
5067
5068         * Removed the lib/silcsilm/modules directory.  Modules are now
5069           compiled into the lib/silcsim.  Fixed the copying of the
5070           modules to follow symbolic links in Makefile.am.pre.
5071
5072 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5073
5074         * Fixed silc_string_regexify list creation.  Fixes bugs with
5075           BAN and INVITE commands in server.  The affected file is
5076           lib/silcutil/unix/silcunixutil.c.
5077
5078 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5079
5080         * Removed the command destructor entirely from the server's
5081           command and command reply routines.  It is not needed, and
5082           its usage was buggy and caused crashes.  Affected files are
5083           silcd/command[_reply].[ch].
5084
5085 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5086
5087         * Cancel protocol and NULL sock->protocol if timeout
5088           occurred during protocol.  Affected file silcd/server.c.
5089
5090         * Cancel protocol timeouts always before calling the final
5091           callback, to assure that after final callback is called
5092           no other state will be called for the protocol anymore.
5093           Affected file silcd/protocol.c.
5094
5095         * Print error log if incoming connection configuration could
5096           not be found.  Affected file silcd/server.c.
5097
5098         * Fixed JOIN command to correctly save the founder mode
5099           to the client on normal SILC server, when the channel
5100           was created by the router.  Affected file silcd/command.c.
5101
5102         * Fixed LIST command (hopefully) to send correct reply
5103           packets.  Affected file silcd/command.c.
5104
5105 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5106
5107         * The silc_packet_receive_process now returns FALSE if the
5108           read data was invalid packet, and TRUE if it was ok.
5109
5110           The server now checks that if unauthenticated connection
5111           sends data and its processing fails the server will close
5112           the connection since it could be a malicious flooder.
5113
5114           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5115
5116 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5117
5118         * Make sure the warning about error opening a log file is
5119           printed only once and not everytime it fails (produces
5120           too much useless log).  Affected file lib/silcutil/silclog.c.
5121
5122 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5123
5124         * Made the silc_server_daemonise() function more readable.
5125           Affected file silcd/server.c.
5126
5127         * Pid file is now optional, the user may comment it out from
5128           the config file. Removed define SILC_SERVER_PID_FILE, we
5129           don't need a default any longer.  Affected file
5130           configure.in.pre, lib/Makefile.am.pre.
5131
5132         * Make some use of the pid file. The server now dies at startup
5133           if it detects a valid pid file on his path. The server would
5134           die anyway in this circumstance, because of the bind() failure.
5135           Affected file silcd/silcd.c.
5136
5137         * No longer compiling lib/dotconf.
5138
5139 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5140
5141         * Fixed JOIN command parsing not to crash.  Affected file
5142           lib/silcclient/command.c.
5143
5144         * Fied the NICK_CHANGE notify to add the new client entry
5145           even it is resolved.  This removes an <[unknown]> nick
5146           thingy bug in the client.  Affected file is
5147           lib/silcclient/client_notify.c.
5148
5149         * Do not try to allocate 0 bytes (efence does not like it)
5150           in lib/silccore/silccomand.c when encoding payload.
5151
5152         * Do not take IRCNICK as nickname in Irssi SILC client since
5153           it is not possible to set nickname before hand connecting
5154           the server (TODO has an entry about adding auto-nicking
5155           support).
5156
5157         * Changed the silc_server_command_pending to check whether
5158           there already exists an pending entry with the specified
5159           command, command identifier and pending callback.  This is
5160           to fix IDENTIFY and WHOIS related crashes that may register
5161           multiple pending commands with same identifier.  Affected
5162           file silcd/command.c.
5163
5164         * Fixed the server to reconnect to the router even if it
5165           was already reconnecting and EOF was received.  This to
5166           fix a possibility that the server wouldn't ever try to
5167           auto-reconnect to the router.  Affected file silcd/server.c.
5168
5169 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5170
5171         * Fixed the server's password authentication to use the
5172           length of the locally saved password, and not the one
5173           sent in the packet.  Affected file silcd/protocol.c.
5174
5175         * Fixed same password authentication problem in the
5176           Authentication Payload handling routines in
5177           lib/silccore/silcauth.c.
5178
5179         * Yet another password authentication problem fixed with
5180           channel password handling in silcd/command.c.
5181
5182 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5183
5184         * If first character of string in silc_parse_userfqdn is '@'
5185           then do not parse it.  Affected file is
5186           lib/silcutil/silcutil.c.
5187
5188 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5189
5190         * Fixed minor bug in IDENTIFY command reply sending, which
5191           caused various weird problems during JOIN when it was
5192           resolving names for users.  Affected file silcd/command.c.
5193
5194 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5195
5196         * Fixed the IDENTIFY command reply sending to chech better valid
5197           clients.  It was possible to send incomplete list of replies.
5198           Affected file silcd/command.c.
5199
5200 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5201
5202         * Added silc_client_command[s]_[un]register functions now to
5203           dynamically register the commands in client library.  Removed
5204           the static table of commands.  This allows the client library
5205           to call commands without causing the application to know about
5206           what commands library has called.
5207
5208           Removed the INFO command reply kludge to detect when the command
5209           was called by library.  Now library use its own command reply
5210           function for INFO command.
5211
5212           Added function silc_client_command_call to call a command.
5213           Application can use it to call command, not access the structure
5214           directly.
5215
5216           Now all commands that are sent by the client library (not
5217           explicitly sent by application) use own command reply functions.
5218
5219           Affected files around lib/silcclient/ and in
5220           irssi/src/silc/core/.
5221
5222         * Fixed the WHOIS command reply sending to chech better valid
5223           clients.  It was possible to send incomplete list of replies.
5224
5225           Fixed the WHOIS and IDENTIFY to send the request to router
5226           if normal server did not do it and did not find any results.
5227
5228           Affected file silcd/command.c.
5229
5230 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5231
5232         * Moved the internal data from SilcClient context into its
5233           own file, not accesible to application.  Affected files
5234           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5235           and other files in client library.
5236
5237 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5238
5239         * Added doc/examples installation target in Makefile.am.pre.
5240           A patch by salo.
5241
5242 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5243
5244         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
5245           commands the found client entry will be removed from the
5246           cache, after notifying application about the error.  Affected
5247           file lib/silcclient/command_reply.c.
5248
5249         * Changed the /MSG to check for exact nickname user gave, and
5250           not let `nick' match `nick@host' if it is only one found.  Now,
5251           user must type the exact nickname (like nick@host2) even if
5252           there are no more than one same nicks found.  This is to avoid
5253           a possibility of sending nickname to wrong nickname since
5254           `nick' could match `nick@host'.  Affected file is
5255           irssi/src/core/silc-servers.c.
5256
5257 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5258
5259         * Do not print "you are now server operator" or similar when
5260           giving /away command.  Affected files are
5261           irssi/src/silc/core/client_ops.c, silc-servers.h.
5262
5263         * Made the silc_server_command_pending_error_check to send
5264           the same command reply payload it received back to the
5265           original sender of the command.  This way all arguments
5266           that was received by the server will be received by the
5267           client too.  Affected file silcd/command.c.
5268
5269         * Added the silc_idcache_add to return the created cache entry
5270           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
5271
5272         * Add global clients to expire if they are not on any channel.
5273           This is because normal server will never know if they signoff
5274           if they are not on any channel.  The cache expiry will take
5275           case of these entries.  This is done by normal servers only.
5276           The affected files are silcd/command_reply.c,
5277           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
5278
5279         * If server receives invalid ID notification for WHOIS or
5280           IDENTIFY and the ID exists in the lists, it is removed.
5281           Affected file silcd/command_reply.c.
5282
5283         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
5284           in client then client entry that it matches is searched and
5285           the nickname is printed on the screen for user.  Affected
5286           file irssi/src/silc/core/client_ops.c.
5287
5288 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5289
5290         * Use cache entry expire time in the LIST command reply to
5291           purge old entries from the cache after the LIST command
5292           reply has been received.  This way we don't have non-existent
5293           entries in the cache for too long.  Affected file is
5294           silcd/command_reply.c.
5295
5296 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5297
5298         * If we are normal server, and we've not resolved client info
5299           in WHOIS or IDENTIFY from router, and it is global client,
5300           we'll check whether it is on some channel.  If it is not
5301           then we cannot be sure about its validity and will resolve it
5302           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
5303           file silcd/command.c.
5304
5305         * Search channel by name (if possible) rather than by ID
5306           in IDENTIFY command's command reply.  Affected file is
5307           silcd/command_reply.c.
5308
5309 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5310
5311         * Distribute to the channel passphrase in CMODE_CHANGE notify.
5312           Updated specs and implemented it.  Affected file silcd/command.c,
5313           silcd/packet_send.c and silcd/packet_receive.c.
5314
5315         * Implemented the <founder auth> payload handling in the JOIN
5316           command.  If provided all conditions for channel joining
5317           except requirement to provide correct passphrase can be
5318           overrided by the channel founder.  Updated the protocol specs.
5319           Affected file silcd/command.c.
5320
5321           Added support for founder auth in JOIN command in client
5322           library.  Fixed the parsing of the JOIN command now to support
5323           all options as they should be.  The affected file is
5324           lib/silcclient/command.c.
5325
5326         * Optimized the WHOIS and IDENTIFY commands to send the request
5327           to router only if it includes nicknames or other names.  If
5328           they include only IDs then check the local cache first before
5329           routing.  Affected file is silcd/command.c.
5330
5331         * Added channels topic announcements.  Affected file is
5332           silcd/packet_receive.c and silcd/server.c.
5333
5334         * Fixed the silc_server_send_notify_topic_set to really destine
5335           the packet to channel.  Affected file silcd/packet_send.c.
5336
5337         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
5338           library.  Affected file lib/silcclient/client_notify.c.
5339
5340         * Added UMODE announcements.  Affected file silcd/server.c.
5341
5342 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5343
5344         * Memory leak fixes in:
5345
5346           lib/silcutil/silcsockconn.c
5347           lib/silcske/silcske.c
5348           lib/silcske/groups.c
5349           lib/silccrypt/rsa.c
5350           lib/silccrypt/silcpkcs.c
5351           lib/silccore/silccommand.c
5352           lib/silccore/silcidcache.c
5353           silcd/idlist.c
5354           silcd/packet_send.c
5355           silcd/command.c
5356
5357         * ROBOdoc documented the lib/silcske/groups.h file and a
5358           bit changed the interface for better.
5359
5360 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5361
5362         * Update the client entry context in the ID cache after
5363           nick change.  Affected file lib/silcclient/command.c.
5364           Fixes the CUMODE command when regaining founder privileges,
5365           and a little WHOIS problem.
5366
5367         * Fixed silc_net_gethostbyname to correctly call the
5368           inet_ntop.  Affected file lib/silcutil/silcnet.c.
5369
5370 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5371
5372         * Added IPv6 support checking to the configure.in.pre, added
5373           also --enable-ipv6 option to override the check.  Affected
5374           file configure.in.pre.
5375
5376         * The silc_thread_create now calls the start function
5377           directly if threads support is not compiled in.  Removes
5378           ugly #ifdef's from generic code.  Affected files are
5379           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
5380
5381         * Added silc_net_gethostby[name/addr]_async to asynchronously
5382           resolve.  Affected files are lib/silcutil/silcnet.[ch].
5383
5384         * Added support for rendering IPv6 based server, client and
5385           channel IDs.  Affected file lib/silcutil/silcutil.c.
5386
5387         * Added support for creating IPv6 based server IDs.  Affected
5388           file is silcd/serverid.c.
5389
5390 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5391
5392         * Added silc_net_gethostby[addr/name] into the
5393           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
5394           routines.  Added silc_net_is_ip[4/6].  Affected file is
5395           lib/silcutil/unix/silcunixnet.c.  All routines that take
5396           address as argument now supports both IPv4 and IPv6 addresses.
5397
5398 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5399
5400         * Fixed LIST command reply sending in server.  Affected file
5401           silcd/command.c.
5402
5403         * Server now sends the kicker's client ID in the KICK notify
5404           to the kicked client.  Affected file silcd/command.c.
5405
5406         * The client library now parses the kickers client ID and
5407           UI displays it.  Affected files lib/silcclient/client_notify.c
5408           and irssi/src/silc/core/silc-channels.c, module-formats.c.
5409
5410         * Made all payload parsing function prototypes consistent.
5411           They all take now const unsigned char * and uint32 pair as
5412           the payload data instead of SilcBuffer.  Changes all around
5413           the source tree.  Other unsigned char* -> const unsigned char*
5414           changes around the tree as well.
5415
5416         * Optimized SFTP client and server packet sending not to
5417           allocate new buffer for each packet but to recycle the
5418           first allocated buffer.  Affected files are
5419           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
5420
5421         * Optimized the SFTP client to use SilcList instead of
5422           SilcDList for requests, because it is faster.  Affected file
5423           is lib/silcsftp/sftp_client.c.
5424
5425         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
5426           into lib/silccore/silcid.[ch].
5427
5428           Renamed silcpayload.[ch] into silcargument.[ch].
5429
5430 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5431
5432         * If client entry is deleted with active key agreement
5433           session, abort the session.
5434
5435           The silc_client_abort_key_agreement now calls the completion
5436           callback with new SILC_KEY_AGREEMENT_ABORTED status.
5437
5438           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
5439           idlist.c.
5440
5441 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5442
5443         * Don't use __restrict in older GCC's.  Affected file is
5444           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
5445
5446         * silc_net_localhost now attempts to reverse lookup the
5447           IP/hostname.  Affected file lib/silcutil/silcnet.c.
5448
5449         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
5450           command.  It can be used to gain founder privileges at
5451           the same time when joining the channel.
5452
5453           Defined that the SILC_NOTIFY_TYPE_KICKED send the
5454           kicker's client ID as well.  Updated protocol specs.
5455
5456           Defined that the server must send SILC_COMMAND_IDENTIFY
5457           command reply with error status to client who sent
5458           private message with invalid client ID.
5459
5460           Updated the protocol specification.
5461
5462         * Added silc_server_send_command_reply to send any
5463           command reply.  Affected file silcd/packet_send.[ch].
5464
5465         * Added silc_id_payload_encode_data to encode ID payload
5466           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
5467
5468         * The server now send IDENTIFY command reply with error
5469           status if client ID in private message is invalid.  Affected
5470           file silcd/packet_receive.c.
5471
5472         * Save the server key file with server's IP address in
5473           the filename instead of hostname.  The affected file is
5474           irssi/src/silc/core/client_ops.c.
5475
5476 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5477
5478         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
5479           A patch by Sunfall.
5480
5481         * Added libtool support for compiling shared objects in
5482           lib/silcsim.  Affected file configure.in.pre and
5483           lib/silcsim/Makefile.am.  Original patch by cras.
5484
5485 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5486
5487         * Pid file configuration, and server's config file fixes
5488           patch by toma.  Updated CREDITS file.
5489
5490 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5491
5492         * Fixed silc_client_channel_message to not try to decrypt
5493           the message twice if it resolved the destination client
5494           information.  This could cause of dropping one channel
5495           message.  Affected file lib/silcclient/client_channel.c.
5496
5497 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5498
5499         * Added silc_client_run_one into lib/silcclient/silcapi.h and
5500           lib/silcclient/client.c. This function is used when the SILC
5501           Client is run under some other scheduler, or event loop or
5502           main loop.  On GUI applications, for example this may be
5503           desired to used to run the client under the GUI application's
5504           main loop.  Typically the GUI application would register an
5505           idle task that calls this function multiple times in a second
5506           to quickly process the SILC specific data.
5507
5508 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5509
5510         * Fixed silc_server_drop() for dropping the supplementary
5511           groups as well, this could cause a security hole on some
5512           systems.
5513
5514 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5515
5516         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
5517           johnny.
5518
5519         * Write PID file after dropping privileges.  Added -F option
5520           to run server on foreground.  A patch by debolaz.
5521           Affected files silcd/server.c, silcd/silcd.c.
5522
5523         * Fixed MOTD to return the MOTD file server name.  Affected
5524           file silcd/command.c.
5525
5526         * Added INFO command reply handling to the Irssi SILC Client.
5527           Affected file irssi/src/silc/core/client_ops.c.
5528
5529 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5530
5531         * Fixed the silc_idcache_list_* routines to really support
5532           the dynamic list.  Fixes a crash.  Affected file is
5533           lib/silccore/silcidcache.c.
5534
5535         * Fixed the LIST command reply to really call LIST command's
5536           pending callbacks.  Affected file silcd/command_reply.c.
5537
5538 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5539
5540         * Update conn->local_entry->nickname after giving NICK
5541           command.  Affected file lib/silcclient/command.c.
5542
5543 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
5544
5545         * Added the [pid] option to the silcd configuration file
5546
5547           Affected files: serverconfig.[ch] and silcd.c
5548
5549 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5550
5551         * Save fingerprint in WHOIS command reply in server.
5552           Affected file silcd/command_reply.c.
5553
5554         * Fixed NICK commands pending callback registration.
5555           Affected file lib/silcclient/command.c.
5556
5557 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5558
5559         * Use ++server->cmd_ident when sending commands in server,
5560           instead of random number.  Affected file silcd/command.c.
5561
5562         * Fixed GETKEY command reply to call actually GETKEY pending
5563           command callbacks.  Affected file silcd/command_reply.c.
5564
5565         * A bit stricter check for nicknames.  Check for same nickname
5566           in NICK command also.  Affected file silcd/command.c.
5567
5568         * Do not call INFO command everytime client ID changes, only
5569           during first connecting.  Affected file lib/silcclient/client.c.
5570
5571         * Set the new nickname only after successful command reply for
5572           NICK command is returned by server.  Affected file
5573           lib/silcclient/command.c.
5574
5575         * Remove nicknames from nicklist during server_signoff notify.
5576           Should fix /NAMES bit more.  The affected file is
5577           irssi/src/silc/core/silc-channels.c.
5578
5579         * Added `fingerprint' field to the SilcIDListData in the
5580           silcd/idlist.h to hold the fingerprint of the client's
5581           public key.
5582
5583           Send the fingerprint of the client's public key in WHOIS
5584           command reply.
5585
5586           Affected files silcd/command.c, and silcd/idlist.[ch].
5587
5588         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
5589           create fingerprint from given data.
5590
5591         * Show the fingerprint of the client's public key in WHOIS.
5592           Affected files irssi/src/module-formats.[ch] and
5593           irssi/src/silc/core/client_ops.c.
5594
5595         * Format the multiple same nicknames also during JOIN and
5596           NICK_CHANGE notifys.  Affected file is
5597           lib/silcclient/client_notify.c.
5598
5599         * Do not print error on screen for invalid private message
5600           payload since it can come if someone is sending private
5601           messages with wrong key.  Affected file
5602           lib/silccore/silcprivate.c.
5603
5604         * Fixed multiple concurrent /PING crash.  Affected file
5605           lib/silcclient/command.c.
5606
5607         * Changed the wrong ID encoding.  All IP addresses must be
5608           in MSB first order in encoded format.  They were encoded
5609           wrong and was in LSB format.  Affected files are
5610           silcd/serverid.c, lib/silcutil/silcutil.c.
5611
5612         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
5613
5614         * Call the `connect' client operation through the scheduler
5615           in case of error.  Affected file lib/silcclient/client.c.
5616
5617         * Call the `failure' client operation even if the error
5618           occurred locally during a protocol.  Affected file is
5619           lib/silcclient/protocol.c.
5620
5621         * Added support of sending LIST command to router from normal
5622           server.  This way normal server can get list of all channels
5623           in the network too.  Fixed the channel list sending in the
5624           server too.  Affected files are silcd/command.c, and
5625           silcd/command_reply.[ch].
5626
5627         * Added silc_server_update_channels_by_server and
5628           silc_server_remove_channels_by_server.  They are used during
5629           disconnection of primary router and in backup router protocol.
5630           Affected file silcd/server_util.[ch], silcd/server.c and
5631           silcd/server_backup.c.
5632
5633         * Fixed channel adding to global list in IDENTIFY command
5634           reply in server.  Affected file silcd/command_reply.c.
5635
5636 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5637
5638         * If the incoming packet type is REKEY or REKEY_DONE process
5639           that packet always synchronously.  Fixes yet another MAC
5640           failed error on slow (dialup) connections.  Affected file
5641           lib/silcclient/client.c and silcd/server.c.
5642
5643 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5644
5645         * Call check_version SKE callback for initiator too.  Affected
5646           file lib/silcske/silcske.c.
5647
5648         * Implemented fix for security hole found in the SKE that was
5649           fixed in the specification few days back; the initiator's
5650           public key is now added to the HASH value computation.
5651           Added backwards support for the old way of doing it too, for
5652           old clients and old servers.  Affected file is
5653           lib/silcske/silcske.c.
5654
5655         * Enabled mutual authentication by default in SKE.  If initiator
5656           is not providing mutual authentication the responder will
5657           force it.  This will provide the proof of posession of the
5658           private key for responder.  The affected files are
5659           lib/silcclient/protocol.c and silcd/protocol.c.
5660
5661         * Do not cache anymore the server's public key during SKE.
5662           We do mutual authentication so the proof of posession of
5663           private key is done, and if the server is authenticated in
5664           conn auth protocol with public key we must have the public
5665           key already.  Affected file silcd/protocol.c.
5666
5667         * Added new global debug variable: silc_debug_hexdump.  If
5668           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
5669           file lib/silcutil/silclog.[ch].
5670
5671         * Fixed compilation warning due to char * -> const char *.
5672           Affected files lib/silcutil/silcnet.h, and
5673           lib/silccore/silcauth.[ch].
5674
5675 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5676
5677         * Fixed CMODE command when new channel key was created.  If
5678           the creation failed the old key was removed.  Next time giving
5679           same command would crash the server since the old key was
5680           freed already.  Affected file silcd/command.c.
5681
5682         * Fixed the silc_server_announce_get_channels to not crash
5683           on reconnect.  Affected file silcd/server.c.
5684
5685 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5686
5687         * Added silc_log_set_debug_string function to set a regex
5688           string to match for debug output.  Only the function names,
5689           or filenames matching the given debug string is actually
5690           printed.  This way it is possible to filter out those debug
5691           strings that user is not interested in.
5692
5693           Fixed a bug in silc_string_regexify.
5694
5695           Affected files lib/silcutil/silclog.[ch], and
5696           lib/silcutil/unix/silcunixutil.c.
5697
5698         * Changed the -d options in both server and Irssi SILC client
5699           to take the debug string as argument.  Affected files
5700           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
5701
5702 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5703
5704         * Added silc_hash_babbleprint to create a Bubble Babble
5705           Encoded fingerprint.  The encoding is developed by Antti
5706           Huima (draft-huima-babble-01.txt), and it creates human
5707           readable strings out of binary data.  Affected file
5708           lib/silccrypt/silchash.[ch].
5709
5710         * Print the babble print now in addition of fingerprint as well
5711           in Irssi SILC client.  Affected files are
5712           irssi/src/fe-common/silc/module-formats.[ch],
5713           irssi/src/fe-common/silc/core/client_ops.c.
5714
5715 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5716
5717         * Fixed a security problem found in SKE.  The initiator's
5718           public key too is now added to the HASH hash value creation
5719           which is signed by the responder to create the SIGN value.
5720           This will prevent anyone in the middle to lie to the responder
5721           about the initiator's public key.  If this is done now, the
5722           man in the middle will get caught.  Updated the protocol
5723           specification.
5724
5725 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5726
5727         * Better installation directory handling.  Configure module
5728           paths and other paths automatically to example_silc* files
5729           in doc/.  A patch by toma.
5730
5731         * Fixed compiler warning from MPI library, and from SILC RNG.
5732           A patch by johnny.
5733
5734         * Added SILC_SERVER_PID_FILE to define the pid file for server.
5735           It can be configured with ./configure.  A patch by toma.
5736
5737 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5738
5739         * Find correct make to use in prepare-clean.  A patch by
5740           toma.  Affected file prepare-clean.
5741
5742 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
5743
5744         * Added irssi variables use_auto_addr, auto_bind_ip,
5745           auto_bind_port and auto_public_ip.
5746
5747         * Changed the interface for silc_client_send_key_agreement
5748           in lib/silcclient/silcapi.h
5749
5750         Affected files:
5751
5752          irssi/src/silc/core/silc-core.c
5753          irssi/config
5754          lib/silcclient/silcapi.h
5755          irssi/src/silc/core/silc-channels.c
5756          lib/silcclient/client_keyagr.c
5757          irssi/docs/help/key
5758
5759 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5760
5761         * Added silc_pkcs_public_key_compare to compare two
5762           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
5763
5764         * Check that the client who set the founder mode on the
5765           channel is the same client that is giving the founder
5766           mode to itself.  It is done by comparing the saved public
5767           key (it is saved even in the authentication is passphrase).
5768           Affected file silcd/command.c.
5769
5770 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5771
5772         * Do not process packet for disconnected socket connection.
5773           Affected file lib/silccore/silcpacket.c.
5774
5775         * Process the DISCONNECT packet through scheduler in the
5776           client library.  Affected file lib/silcclient/client.c.
5777
5778         * Fixed the silc_client_packet_parse to not to increase
5779           the packet sequence number if the conn->sock and the
5780           current socket connection is not same.  This can happen
5781           for example during key agreement when the conn includes
5782           multiple socket connections (listeners).  Affected file
5783           lib/silcclient/client.c.
5784
5785         * The sender of the file transfer request now provides also
5786           the pointer (listener) for the key exchange protocol.  If
5787           the listener cannot be created then it sends empty key
5788           agreement and lets the receiver provide the listener.
5789
5790           Added `local_ip' and `local_port' arguments to the
5791           silc_client_file_send.  If they are provided they are used,
5792           if not then it will attempt to find local IP address, if
5793           not found or bind fails then the remote client will provide
5794           the listener.
5795
5796           Affected files are lib/silcclient/client_ftp.c and
5797           lib/silcclient/silcapi.h.
5798
5799         * Extended the FILE SEND command to support defining the
5800           local IP and port for key exchange listener.  They are
5801           optional.  Affected file irssi/src/silc/core/silc-servers.c.
5802
5803 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5804
5805         * Defined to WHOIS command reply the sending of fingerprint
5806           of the client's public key (if the proof of posession of the
5807           corresponding private key is verified by the server).
5808           Updated to the protocol specification.
5809
5810         * Added support of receiving the client's public key's
5811           fingerprint in command reply in client library.  Affected
5812           file is lib/silcclient/command_reply.c, and
5813           lib/silcclient/idlist.[ch].
5814
5815 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5816
5817         * Do not send over 128 chars long nickname to the server
5818           in NICK command.  Affected file lib/silcclient/command.c.
5819
5820         * Do not send over 256 chars long channel names to the server
5821           in JOIN command.  Affected file lib/silcclient/command.c.
5822
5823 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5824
5825         * Assure that silc_server_close_connection cannot be called
5826           twice for same socket context.  Affected file is
5827           silcd/server.c.
5828
5829 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5830
5831         * Send error message to application if opening file for
5832           writing during file transfer fails.  Affected file is
5833           lib/silcclient/client_ftp.c.
5834
5835           Remove all file transfer sessions for a client that we're
5836           removing from ID cache.
5837
5838           Affected file is lib/silcclient/client_ftp.c.
5839
5840         * Fixed silc_net_addr2bin to return correct address.  Affected
5841           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
5842
5843         * Fixed file transfer session removing on signoff notify.
5844           Affected file irssi/src/silc/core/silc-servers.c.
5845
5846         * Added the SilcClientFileError to be returned in the monitor
5847           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
5848           Affected file lib/silcclient/silcapi.h.
5849
5850 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5851
5852         * Fixed a crash in silc_client_ftp_free_sessions and
5853           silc_client_ftp_session_free_client.  Affected file
5854           lib/silcclient/client_ftp.c.
5855
5856         * Added `disabled' field in the SilcChannelEntry in the server
5857           to indicate if the server entry is disabled.  Affected file
5858           silcd/idlist.h, silcd/command[_reply].c.
5859
5860         * SILC server adds now /var/run/silcd.pid everytime it is
5861           started.  Affected file silcd/silcd.c.
5862
5863         * Added silc_server_packet_send_clients to send a packet to
5864           the provided table of client entries.  Affected file
5865           silcd/packet_send.[ch].
5866
5867         * Fixed a crash in client resolving in client_prvmsg.c in
5868           client library.  Affected file lib/silcclient/client_prvmsg.c.
5869
5870         * Do not actually remove the client directly from ID cache
5871           during SERVER_SIGNOFF, but invalidate it.  This way we
5872           preserve the WHOWAS info for the client.  Affected file
5873           silcd/server_util.c.
5874
5875         * Fixed SERVER_SIGNOFF notify handling in the server.  The
5876           server is now able to process incoming SERVER_SIGNOFF notify
5877           for a server that it doesn't even know about.  It will remove
5878           the clients provided in the notify.  Affected file
5879           silcd/packet_receive.c.
5880
5881         * Check for partial packet in data queue after every packet that
5882           was found from the queue.  Return and wait for more data if
5883           there is partial data in queue.  Affected file is
5884           lib/silccore/silcpacket.c.
5885
5886 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5887
5888         * Added SilcClietFileError enum to indicate error in
5889           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
5890           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
5891           Affected files lib/silcclient/silcapi.h and
5892           lib/silcclient/client_ftp.c.
5893
5894         * Check that newsize in silc_buffer_realloc is larger than
5895           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
5896
5897         * Added better monitor of file transfers.  It now monitors
5898           key agreement protocol during the file transfer too.  Added
5899           error reporting too.  Affected files
5900           irssi/src/silc/core/silc-servers.c,
5901           irssi/src/fe-common/silc/module-formats.[ch].
5902
5903         * Wrote a help file for FILE command.
5904
5905         * Added silc_rng_global_get_byte_fast to get not-so-secure
5906           random data as fast as possible.  Random data is read from
5907           /dev/urandom if available and from the SILC RNG if not
5908           available.  It is used in padding generation.  Affected file
5909           lib/silccrypt/silcrng.[ch].
5910
5911         * All packets in client library are now processed synchronously.
5912           Optimized packet processing a lot.  Affected file
5913           lib/silcclient/client.c.
5914
5915         * All server connection packets are processing synchronously
5916           now in server, to optimize packet processing.  Affected file
5917           silcd/server.c.
5918
5919         * Include files are installed now only in Toolkit distribution
5920           if make install is given.  Affected files: all Makefile.am's.
5921
5922 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5923
5924         * Assure that silc_client_notify_by_server_resolve does not
5925           resolve the client information multiple times.  If it cannot
5926           be found by the first it cannot be found at all.  Affected
5927           file lib/silcclient/client_notify.c.
5928
5929         * Fixed WHOWAS command reply calling.  Affected file
5930           lib/silcclient/command_reply.c.
5931
5932         * Removed all references to silc_idlist_get_client from the
5933           Irssi SILC client since that call is internal call used by
5934           the library.  The Irssi SILC client will use now client
5935           retrieval functions found in silcapi.h.
5936
5937         * Fixed a bug in resolving nickname info before sending
5938           private message.  It used freed memory.  Affected file
5939           irssi/src/silc/core/silc-servers.c.
5940
5941 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5942
5943         * Assure my_channels statistics cannot go negative in server.
5944           Affected files silcd/server.c, silcd/server_util.c.
5945
5946 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5947
5948         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
5949
5950 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5951
5952         * Win32 Toolkit changes.  Affected files
5953           win32/silc.dsw, win32/libsilc/libsilc.def,
5954           win32/libsilcclient/libsilc.def,
5955           lib/silcutil/silcutil.c, and
5956           lib/sftp/sftp_fs_memory.c.
5957
5958 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5959
5960         * Added silc_net_localip to return local host's IP address.
5961           Affected file lib/silcutil/silcnet.[ch].
5962
5963         * If key exchange or rekey protocol is active for a connection
5964           parse all packets syncronously since there might be packets
5965           in packet queue that we are not able to process without first
5966           processing packets before them.  Affected file silcd/server,
5967           lib/silcclient/client.c.
5968
5969         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
5970           whether library should continue processing the packet.
5971           Affected file lib/silccore/silcpacket.h.
5972
5973         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
5974           SilcSFTPMonitorData to SFTP server to monitor various
5975           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
5976           lib/silcsftp/sftp_server.c.
5977
5978         * Added silc_file_size to return file size.  Affected file
5979           lib/silcutil/silcutil.[ch].
5980
5981         * Implemented the file transfer support for the client library.
5982           Added preliminary support for simple client to client one-file
5983           transmission.  Affected file lib/silcclient/client_ftp.c,
5984           lib/silccilent/client.[ch].
5985
5986         * Added new local command FILE to the Irssi SILC Client.
5987           It is used to perform the file transfer.  It has subcommands
5988           SEND, RECEIVE, SHOW and CLOSE.  Affected files
5989           irssi/src/silc/core/client_ops.c,
5990           irssi/src/silc/core/silc-server.[ch].
5991
5992 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5993
5994         * Relay the SILC_PACKET_FTP in the server.  Affected files
5995           silcd/server.c and silcd/packet_receive.c.
5996
5997 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5998
5999         * Renamed silc_file_read and silc_file_write to functions
6000           silc_file_readfile and silc_file_writefile.  Added function
6001           silc_file_open and silc_file_close.  Affected files
6002           lib/silcutil/silcutil.[ch].
6003
6004 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6005
6006         * Resolve the client info when received private message or
6007           channel message for a client which nickname we don't know.
6008           Affected files lib/silcclient/client_prvmsg.c and
6009           lib/silcclient/client_channel.c.
6010
6011         * Do not crash in /KEY if client is not connected.  Affected
6012           file irssi/src/silc/core/silc-channels.c.
6013
6014         * Added SilcClientStatus field to the SilcClientEntry in the
6015           lib/silcclient/idlist.h.
6016
6017           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6018           is incomplete and is being resolved, it won't be resolved
6019           twice.
6020
6021           Make sure also that USERS command reply does not resolve
6022           twice information.  Affected file is
6023           lib/silcclient/command_reply.c.
6024
6025           Make sure that silc_client_get_clients_by_list does not
6026           resolve twice same information.
6027
6028         * Check for valid client->id in the silc_server_free_client_data.
6029           Affected file silcd/server.c.
6030
6031         * Fixed /GETKEY nick@server not to crash if the server entry
6032           is not found.  Affected file lib/silcclient/command.c.
6033
6034         * Fixed the silc_server_check_cmode_rights to check the
6035           requested modes correctly.  Affected file silcd/command.c.
6036
6037 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6038
6039         * Better checks for non-printable chars in nick added.
6040           Affected file silcd/command.c.
6041
6042 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6043
6044         * Call the silc_server_udpate_servers_by_server in the
6045           primary router that comes back online in the backup resuming
6046           protocol.  Otherwise it routes packets wrong.  Affected file
6047           silcd/server_util.[ch], silcd/server_backup.c.
6048
6049 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6050
6051         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6052           lib/silcutil/silcbuffmt.[ch].
6053
6054         * Redefined the SILC packet header to include the padding
6055           length.  Affected file lib/silccore/silcpacket.[ch].
6056
6057         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6058           length for maximum padding up to 128 bytes).  Affected
6059           file lib/silccore/silcpacket.h.
6060
6061         * Removed all backwards support for old 0.5.x MAC thingies.
6062           The SILC packet header change makes it impossible to be
6063           backwards compatible.
6064
6065         * Send the ENDING packet with timeout in the backup resuming
6066           protocol.  This is to assure that all routers has connected
6067           to the primary router.  Affected file silcd/server_backup.c.
6068
6069         * Changed the RNG to take the first IV from random data.  It
6070           used to take it from zero actually.  Changed the RNG also
6071           to use /dev/urandom during session.  /dev/random is used
6072           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6073
6074 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6075
6076         * Changed the SILC packet header to have the first two bytes
6077           (the packet length) encrypted.  Affected files aroung the
6078           code tree, lib/silccore/silcpacket.[ch].  Removed the
6079           SilcPacketCheckDecrypt callback.  It is not needed anymore
6080           since the silc_packet_receive_process will determine now
6081           whether the packet is normal or special.
6082
6083         * Implemented the unidirectional MAC keys.  Affected files
6084           lib/silcske/silcske.c, silcd/protocol.c and
6085           lib/silcclient/protocol.c.
6086
6087         * Implemented the packet sequence number to the MAC computation.
6088           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6089           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6090           lib/silcclient/protocol.c.
6091
6092 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6093
6094         * Allow backup router to announce servers.  All servers
6095           announced by backup router are added to the global list
6096           automatically.  Update hte server's socket to our primary
6097           router also when backup router announces a server.
6098           Affected file silcd/packet_receive.c.
6099
6100         * Do not update the client->router in the function
6101           silc_server_udpate_clients_by_server if the client is on
6102           global list.  We might fail to find any specific server
6103           for locally connected clients and local cell clients.  They
6104           should still use the `from' and not `to' as client->router.
6105           This fixes backup router resuming protocol.  Affected file
6106           silcd/server_util.c.
6107
6108         * Decrease channel statistics count only if the channel
6109           deletion worked.  Affected files are silcd/server.c and
6110           silcd/server_util.c.
6111
6112         * Added silc_server_update_servers_by_server to update origin
6113           of all server entries.  Used during backup router protocol.
6114           Affected files silcd/server_util.[ch], silcd/server.c. and
6115           silcd/backup_router.c.
6116
6117         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6118           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6119           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6120           lib/silccrypt/silchmac.c.
6121
6122 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6123
6124         * Assure that router cannot reroute the same channel message
6125           to the sender.  Affected file silcd/packet_receive.c.
6126
6127 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6128
6129         * Made better checks that the channel message is not sent
6130           to the router it came from.  Affected file is
6131           silcd/packet_send.c.  Fixed memory leak too.
6132
6133         * Announce informations for incoming router connection, but
6134           only after checking if it is replaced by backup router.
6135           Affected file silcd/packet_receive.c.
6136
6137 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6138
6139         * Fixed the backup resuming protocol to work in multiple
6140           router environment.  Affected file silcd/server_backup.c.
6141
6142         * Route packet only to one router in the function
6143           silc_server_packet_send_to_channel.  Affected file is
6144           silcd/packet_send.c.
6145
6146         * Fixed silc_server_send_notify_dest to set the broadcast
6147           flag.  Fixed the silc_server_send_notify_topic to actually
6148           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6149           Affected file silcd/packet_send.c.
6150
6151         * Changed the SFTP Filesystem interface.  Changed the
6152           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6153           the filesystem operation function.  The SilcSFTPFilesystem
6154           is now a context that is allocated by all filesystem allocation
6155           functions and it already includes the operations structure
6156           and filesystem specific context.  It is given as argument
6157           now to the silc_sftp_server_start.  This made the interface
6158           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6159           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6160
6161 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6162
6163         * Changed the backup router adding and getting interfaces
6164           in the server.  The router that will be replaced by the
6165           specified backup router is now sent as argument.  Affected
6166           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6167           silcd/server.c.
6168
6169         * Added silc_net_addr2bin_ne to return the binary form of
6170           the IP address in network byte order.  Affected files
6171           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6172
6173 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6174
6175         * Check for existing server ID in silc_server_new_server
6176           and in silc_server_connect_to_router_final and remove the
6177           old entry if it exists.  Affected file silcd/packet_receive.c,
6178           silcd/server.c.
6179
6180         * Send the channel message always to only one router, either
6181           in upstream or downstream.  Affected file is
6182           silcd/packet_send.c.
6183
6184 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6185
6186         * Wrote the definition of the backup resuming protocol to the
6187           protocol specification.
6188
6189         * Removed one redundant channel key generation from normal
6190           server during joining procedure.  Removed one redundant
6191           channel key sending from server to router during joining
6192           procedure.  Affected file silcd/command.c.
6193
6194         * Made minor bugfixes to the backup router resuming protocol.
6195           Affected file silcd/server_backup.c, server.c.
6196
6197 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6198
6199         * Added --disable-asm configuration option.  Affected files
6200           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6201           by salo.
6202
6203         * Implemented the backup resuming protocol that is used to
6204           resume the primary router position in the cell after the
6205           primary router comes back online.  Affected files
6206           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6207           and silcd/server_util.[ch].
6208
6209 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6210
6211         * Sleep two (2) seconds after sending QUIT command to server.
6212           Affected file lib/silcclient/command.c.
6213
6214         * Assure that if outgoing data buffer is pending do not force
6215           send any data.  Affected file silcd/packet_send.c.
6216
6217         * Assure that if outgoing data buffer is pending do not force
6218           send any data.  Affected file lib/silcclient/client.c.
6219
6220         * Implemented the backup router support when the primary router
6221           goes down.  The servers and routers can now use the backup
6222           router as new primary router without loosing connectivity.
6223
6224 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6225
6226         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6227           in the server to indicate disabled entry.  All data read
6228           from the connection will be ignored and no data is sent
6229           for entry that is disabled.  Affected files are
6230           silcd/idlist.h, silcd/server.c.
6231
6232 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6233
6234         * Created SFTP client and server test programs in the
6235           lib/silcsftp/tests directory.
6236
6237 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6238
6239         * Implemented memory filesystem (virtual filesystem) for
6240           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
6241           sftp_fs_memory.c.
6242
6243 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6244
6245         * Implemented the SFTP (SSH File Transfer Protocol) to the
6246           lib/silcsftp.  It includes SFTP client and SFTP server
6247           implementations.
6248
6249 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6250
6251         * Moved lib/silccore/silcprotocol.[ch] to the
6252           lib/silcutil library.
6253
6254         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
6255           take variable argument list pointer as argument.  Affected
6256           file lib/silcutil/silcbuffmt.[ch].
6257
6258         * Added silc_buffer_set function that is used to set data
6259           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
6260           Affected file lib/silcutil/silcbuffer.h.
6261
6262         * Changed various routines in the core library to use the new
6263           silc_buffer_set instead of allocating new buffer only for
6264           temporary purposes.
6265
6266         * Added 64-bit value formatting and unformatting support to the
6267           silc_buffer_[un]format routines.  Affected file is
6268           lib/silcutil/silcbuffmt.[ch].
6269
6270           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
6271           to includes/bitmove.h.
6272
6273 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6274
6275         * Fixed channel user mode saving in client library.  Affected
6276           file lib/silcclient/command[_reply].c.
6277
6278 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6279
6280         * Defined the file transfer to the SILC Protocol.  Added
6281           new packet type SILC_PACKET_FTP and defined File Transfer
6282           Payload.  The mandatory file transfer protocol is SFTP
6283           (SSH File Transfer Protocol).  Affected file in addition
6284           of the internet draft is lib/silccore/silcpacket.h.
6285
6286         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
6287           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
6288           is used as part of backup router protocol when the primary
6289           router of the cell is back online and wishes to resume
6290           the position as primary router.
6291
6292         * Redefined the MAC generation keys in the protocol.  The
6293           same key is not used anymore in both direction.  Both
6294           direction will now use different keys for sending and
6295           receiving.  This fixes a potential security flaw.  This
6296           change causes incompatibilities in the protocol.
6297
6298         * Redefined also the MAC computation from the packet.
6299           An packet sequence number is now added to the MAC
6300           computation.  This prevents possible replay attacks against
6301           the protocol.  This change too causes incompatibilities
6302           in the protocol.
6303
6304           Added `sequence' field to the SilcPacketContext to hold
6305           the current sequence number for the packet.
6306
6307 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6308
6309         * Added `created' field to the SilcIDListData in the file
6310           silcd/idlist.h to indicate the time when the entry was
6311           created.
6312
6313         * Added `created' field to the SilcChannelEntry too.  Affected
6314           file silcd/idlist.h.
6315
6316         * Added `creation_time' aguments to all the announcement functions
6317           in the server.  If it is provided then only the entries that
6318           was created after the provided time frame are actually
6319           announced.  Affected file silcd/server.[ch].
6320
6321         * The protocol says that the Channel ID's IP address must be
6322           based on the router's IP address.  Added check for this in
6323           the silc_server_new_channel when processing incoming New Channel
6324           Payload.  Affected file silcd/packet_receive.c.
6325
6326         * Print out the correct version with --version in SILC client.
6327           Affected file irssi/src/silc/core/silc-core.c.
6328
6329 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6330
6331         * Fixed WHOWAS command to check for completnes of the client
6332           entry always, not just when the command is coming from client.
6333           Affected file silcd/command.c.
6334
6335         * Added new function silc_server_packet_queue_purge to purge the
6336           outgoing data queue to the network.  After the function returns
6337           it is guaranteed that the outgoing packet queue is empty.
6338           Affected file silcd/packet_send.[ch].
6339
6340         * Purge the outgoing packet queue in the rekey protocol's final
6341           callback to assure that all rekey packets go to the network
6342           before quitting the protocol.  Affected file silcd/server.c.
6343
6344         * Added silc_client_packet_queue_parse as similar function as
6345           in server to the client library.  The affected file is
6346           lib/silcclient/client.c.
6347
6348 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6349
6350         * Splitted silcd/server.c and created silcd/server_util.[ch]
6351           for utility functions.
6352
6353         * Added new socket flag SILC_SF_DISABLED to indicate that the
6354           connection is open but nothing can be sent to or received from
6355           the connection.  Affected file lib/silcutil/silsockconn.[ch].
6356           The checking for disabled socket is checked in the low level
6357           silc_socket_write and silc_socket_read functions.
6358
6359 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6360
6361         * Allow only nicknames and channel names that fits into the
6362           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
6363
6364 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6365
6366         * When processing JOIN command reply in server check that if
6367           the channel exists in our global list we'll move it the local
6368           list.  Affected file silcd/command_reply.c.
6369
6370         * Fixed the check whether client is joined on the channel already
6371           in JOIN command.  Affected file lib/silcclient/command.c.
6372
6373         * Fixed the JOIN command reply to check whether the channel
6374           already exists.  Affected file lib/silcclient/command_reply.c.
6375
6376 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6377
6378         * Added silc_ske_status_string to map the SKE error numbers
6379           to readable strings.  The affected files are
6380           lib/silcske/silcske[_status].[ch].
6381
6382 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6383
6384         * Do not show the private channels on the WHOIS channel list
6385           as it is not allowed by the protocol.  The affected file is
6386           silcd/server.c.
6387
6388 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6389
6390         * Assure that the packet length digged from the actual packet
6391           is something sensible in the silc_packet_decrypt_rest_special
6392           in lib/silccrypt/silcpacket.c.
6393
6394         * Free and NULL the allocated pointer in silc_hmac_alloc if
6395           the HMAC allocation fails.  The affected file is
6396           lib/silccrypt/silchmac.c.
6397
6398         * Print the selected security properties to the log files in
6399           the server.  Affected file silcd/protocol.c.
6400
6401         * Add SKE's reference counter even if calling the completion
6402           callback manually.  Otherwise it goes negative, although it
6403           does not cause any problems.  The affected file is
6404           lib/silcske/silcske.c.
6405
6406         * Remove the client entry with short timeout after giving the
6407           KILL command.  Affected file lib/silcclient/command.c.
6408
6409         * Fixed to send error reply in WHOIS and IDENTIFY commands in
6410           case all found clients are already disconnected (WHOWAS would
6411           found them) in the server.  Affected file silcd/command.c.
6412
6413         * Update the last_receive (time of last data received) to be
6414           updated only when received private or channel message so that
6415           the idle time showed in WHOIS makes more sense.
6416
6417         * Added boolean field `valid' in to the SilcClientEntry in the
6418           client library to indicate whether the entry is valid or not.
6419           This fixes the nickname change bug on channel when changing
6420           the nickname to be same than the old (like nick to Nick) the
6421           nickname formatter doesn't set the new nick anymore to Nick@host.
6422           Affected file lib/silcclient/idlist.[ch].
6423
6424         * Now actually fixed the nickname changing on disconnection.
6425           Added new function silc_change_nick to the Irssi SILC Client.
6426           Affected file irssi/src/silc/core/client_ops.c,
6427           irssi/src/silc/core/silc-nicklist.[ch].
6428
6429 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6430
6431         * Check that the public key exists in the GETKEY command before
6432           trying to encode it.  Affected file silcd/command.c.
6433
6434         * Print some notifications on received public keys with GETKEY
6435           command in the Irssi SILC Client.  Affected files are
6436           irssi/src/fe-common/silc/module-formats.[ch],
6437           irssi/src/silc/core/client_ops.c.
6438
6439         * Use IDENTIFY command to resolve the server information in the
6440           GETKEY command instead of INFO command.  Affected file
6441           lib/silcclient/command.c.
6442
6443         * All command reply functions in the client library now calls
6444           the pending command reply callbacks even if an error has
6445           occurred.  The server has done this a long time and now it was
6446           time to move the client library to this as well.  Now all
6447           errors can be delivered back to the pending command reply
6448           callbacks if necessary.  Affected files are
6449           lib/silcclient/command[_reply].[ch].
6450
6451         * Change the nickname on disconnection back to the username
6452           because in reconnect the server will enforce it to it anyway.
6453           Affected file irssi/src/silc/core/silc-servers.c.
6454
6455         * Fixed a config file parsing bug in the Irssi SILC client.
6456           Affected file irssi/src/silc/core/clientconfig.c.
6457
6458 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6459
6460         * When printing the channel mode on JOIN, verify that the
6461           channel key and channel's HMAC are valid.  Affected file
6462           irssi/src/silc/core/client_ops.c.
6463
6464 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6465
6466         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
6467           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
6468           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
6469
6470         * Removed channel key rekey task deleting from the function
6471           silc_server_save_channel_key.  Affected file silcd/server.c.
6472           Added explicit timeout task context instead that is used to
6473           delete the task if we are registering a new task before the
6474           new task has elapsed.
6475
6476         * When channel key rekey occurs the client library now saves
6477           the old channel key for a short period of time (10 seconds) and
6478           is able to use it in case some is still sending channel
6479           messages encrypted with the old key after the rekey.  Affected
6480           file lib/silcclient/[idlist.h|client_channel.c].
6481
6482 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6483
6484         * Added check to the silc_server_new_id_real to not accept
6485           new ID if it is the sender's own ID.  Affected file is
6486           silcd/packet_receive.c.
6487
6488         * Assure that we do not announce ourself or the one we've
6489           sending our announcements when we're router and are announcing
6490           servers to our primary router.  Affected file silcd/server.c.
6491
6492         * Fixed silc_server_command_identify_check_client to assemble
6493           correct WHOIS packet.  It send corrupted WHOIS packet and
6494           caused problem with router to router connections.  Affected
6495           file silcd/command.c.
6496
6497           Fixed also silc_server_command_whois_check the same way
6498           as for the IDENTIFY command.
6499
6500         * Added new SilcIDListStatus to the server in the SilcIDListData
6501           structure.   The status now includes the current status of
6502           the entry (like registered, resolved etc.).  Affected file
6503           silcd/idlist.[ch].  Defined a bunch of different status types
6504           as well.  This replaced the old boolean registered field as well.
6505
6506           Added resolve_cmd_ident field to the SilcClientEntry structure
6507           too so that if the entry is for example being resolved so
6508           another command may attach to the same pending command reply
6509           without requiring to resolve the same entry again.  This concept
6510           should optimize the WHOIS and the IDENTIFY resolving under
6511           heavy load by taking away unnecessary resolving for entries
6512           that are being resolved already.
6513
6514           Added support for adding multiple pending commands for one
6515           command idenfier.  Affected file silcd/command[_reply].[ch].
6516
6517         * Fixed WHOIS and IDENTIFY save to remove the cache entry
6518           before deleting the data.  Otherwise the hash table will have
6519           freed data in comparison functions.  Affected file is
6520           silcd/command_reply.c.
6521
6522         * Fixed silc_idlist_replace_client_id to add the new entry to
6523           the cache with NULL nickname.  Otherwise there will be invalid
6524           memory as the nickname after the nickname is freed.  Affected
6525           file silcd/packet_receive.c.
6526
6527         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
6528           saved into wrong slots because the previous number of entries
6529           was not taken into account.  Affected file silcd/idlist.c.
6530           Fixed same thing in silc_idlist_get_clients_by_nickname too.
6531
6532         * If we are router and we receive JOIN notify to a channel that
6533           does not have any users then notified client is marked as the
6534           channel founder, as it is it.  The affected file is
6535           silcd/packet_receive.c
6536
6537         * Added to the extended hash table API's table_del_*ext functions
6538           the destructor as argument too, so that the caller can decide
6539           which destructor to use or whether to use destructor at all.
6540           Affected file lib/silcutil/silchashtable.[ch].
6541
6542         * Fixed ID Cache purging.  It actually deleted the entries from
6543           the hash table after the data was freed.  The hash table ended
6544           up comparing freed memory.  The affected file is
6545           lib/silccore/silcidcache.c.
6546
6547 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6548
6549         * Fixed Irssi SILC client's KILL command's HELP syntax.
6550
6551         * The USERS command now resolves the detailed user information
6552           if the userinfo field is missing.  Affected file is
6553           lib/silcclient/command_reply.c.
6554
6555         * Do not print error in silc_file_read if the read file does
6556           not exist.  Just silently return NULL.  Affected file is
6557           lib/silcutil/silcutil.c.
6558
6559         * Fixed the silc_log_output to not wine about NULL filename
6560           and to not create some bogus " " filename.  Affected file is
6561           lib/silcutil/silclog.c.
6562
6563 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6564
6565         * Fixed various printing bugs on the user interface in the
6566           Irssi SILC Client.  Minor changes that were forgotten from
6567           the release.
6568
6569 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6570
6571         * Fixed the configure.in.pre and the compilation and distribution
6572           environment to support the new autoconf 2.52.  That version is
6573           now required to compile the CVS trunk.
6574
6575 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6576
6577         * Renamed function silc_parse_nickname to silc_parse_userfqdn
6578           to generally parse user@fqdn format strings.  Affected file
6579           lib/silcutil/silcutil.c.
6580
6581         * Added nickname_format and nickname_force_format fields to the
6582           SilcClientParams structure.  The first one defines the format
6583           for the nicknames that the library will enforce if the receives
6584           multiple same nicknames.  The second one is boolean value and
6585           can be used to force the library to always enforce the format
6586           to the nicknames regardles whether there are multiple nicknames
6587           or not.  This configurable formatting was employed to flexibly
6588           support accessing multiple nicknames from the user interface.
6589           The userinterface can now set the nicknames to what ever format
6590           they prefer.  Affected file lib/silcclient/silcapi.h.
6591
6592           Added function silc_client_nickname_format to the file
6593           lib/silcclient/idlist.c.  It performs the nickname formatting.
6594
6595           Added new field `hostname´ to the SilcClientEntry context.
6596           It holds the hostname of the client.  Affected file is
6597           lib/silcclient/idlist.h.
6598
6599         * Irssi SILC Client sets the nicknames in nick@hostn format.
6600           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
6601           irssi/src/silc/core/silc-core.c.
6602
6603           The WHOIS printing now also shows both the real nickname and
6604           the formatted nickname so that user knows how to access the
6605           user if there are multiple same nicknames cached.  Affected
6606           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
6607           printing formatting too to take the hostname now as a separate
6608           argument.  The Affected file is
6609           irssi/src/fe-common/silc/modules-formats.[ch].
6610
6611         * Changed the silc_client_get_clients_local to accept the formatted
6612           nickname as argument.  It accepts the real nickname too but the
6613           formatted nickname can be used to find the true entry from
6614           multiple entries.  Affected file lib/silcclient/silcapi.h and
6615           lib/silcclient/idlist.c.
6616
6617         * Added nickname_format_parse field to the SilcClientParams.
6618           It is a callback function provided by the application to parse
6619           the nickname out of the formatted nickname string. The library
6620           calls it to get the nickname from the formatted string. Since
6621           the application generally knows better the format of the nickname
6622           string it parses it instead of the library, even though library
6623           encodes the formatted string.  If the callback function is not
6624           provided then the library will use the string as is.  The
6625           affected file is lib/silcclient/silcapi.h.
6626
6627         * All the nickname strings passed to the client library in
6628           commands are now expected to be formatted nickname strings.
6629           If the command does not support the formatted nickname string
6630           it will assume that the sent string is the actual nickname.
6631           Affected file lib/silcclient/command.c.
6632
6633 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6634
6635         * Added public key authentication support to OPER and SILCOPER
6636           commands in the client library.  Affected file is
6637           lib/silcclient/command.c.
6638
6639 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6640
6641         * Changed the get_auth_methdod client operation to be asynchronous.
6642           It can be async if the application resolves the authentication
6643           method from the server during the negotiation.  Added new
6644           SilcGetAuthMeth completion callback that the application will
6645           call after resolving the authentication method.
6646
6647           Added function silc_client_request_authentication_method that
6648           the application can use to resolve the authentication method
6649           from the server.  Added also SilcConnectionAuthRequest callback
6650           that the library will call after the server has replied.  The
6651           application can call this function if it does not know the
6652           current authentication method.
6653
6654           Affected files are lib/silcclient/client.c and
6655           lib/silcclient/silcapi.h.
6656
6657         * The Irssi SILC client now automatically resolves the authentication
6658           method incase any configuration information is not present (and
6659           currently there never is).  The affected file is
6660           irssi/src/silc/core/client_ops.c.
6661
6662         * Fixed public key authentication from the client library.
6663           Affected file lib/silcclient/protocol.c.  Changed also the
6664           protocol specification about the public key authentication in
6665           the connection authentication protocol.  The actual data to be
6666           signed is now computed with a hash function before signing.
6667
6668         * Fixed the public key authentication from the server as well.
6669           Affected file silcd/protocol.c.
6670
6671         * Removed the mlock()'s from the memory allocation routines.
6672           Affected file lib/silcutil/silcmemory.c.  The ./configure does
6673           not check anymore for the mlock().  Affected file is
6674           configure.in.pre.
6675
6676         * Fixed USERS command in server to allow the execution of the
6677           command for private and secret channels if the client sending
6678           the command is on the channel.  Affected file silcd/command.c.
6679
6680         * Fixed silc_client_get_clients_local to return the clients
6681           count correctly.  It could return wrong value.  Affected file
6682           lib/silcclient/idlist.c.
6683
6684 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6685
6686         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
6687           types.  The assembler optimizations seemed not to like 64-bit
6688           data types.  The assmebler optimizations thus are now enabled
6689           also for BSD systems as opposed to only enable them for Linux.
6690
6691         * Do not check for threads at all on BSD systems.  Affected
6692           file configure.in.pre.
6693
6694         * Removed -n and -h options from the Irssi SILC Client since
6695           they are not used in silc.
6696
6697         * Fixed the prime generation to assure that the first digit
6698           of the generated random number is not zero since our conversion
6699           routines does not like number strings that starts with zero
6700           digit.  If zero digit is seen the random number is regenerated.
6701           This caused some corrupted RSA keys when the zero first digit
6702           was met.  Affected file lib/silcmath/silcprimegen.c.
6703
6704 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6705
6706         * Fixed WIN32 configuration in the ./configure script.
6707           Fixed to include xti.h on environments that has it.
6708           Patches by Carsten Ilchmann and andrew.
6709
6710 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6711
6712         * Changed the silc_id_create_client_id to be collision
6713           resistant.  It is now assured that there cannot be created
6714           two same client ID's.  I suspect that some weird bugs in
6715           the server were actually caused by duplicate Client IDs.
6716           Affected file silcd/serverid.[ch].  A router receiving
6717           new ID now also assures and informs the sending server
6718           if the ID caused collision.
6719
6720         * Changed the silc_id_create_channel_id to also assure that
6721           there are no collisions.
6722
6723 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6724
6725         * Statement about ignoring the Mutual Authentication flag when
6726           performing rekey with PFS was a bit misleading.  It is ignored
6727           if it was set in the initial negotiation, it cannot be even
6728           set in the rekey.  Fixed in the ke-auth draft.  Started the
6729           new versions of the protocol drafts in the doc/.
6730
6731 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6732
6733         * Fixed a bug in silc_client_command_identify_save when saving
6734           new channel information.  The channel name was no duplicated
6735           and caused crash on exit.  Affected file is
6736           lib/silcclient/command_reply.c.
6737
6738 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6739
6740         * Fixed the getkey command handling in the server.  Send just
6741           empty OK reply to the sender if the key could not be fetched
6742           (but everything else was ok, like the key just was not available).
6743           Changed the public key parameter to optional in the protocol
6744           specs so that empty OK reply can be sent.  Affected file
6745           silcd/command.c.
6746
6747           Added a message to Irssi SILC client to tell to user if the
6748           server did not return a public key.
6749
6750 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6751
6752         * Fixed a channel key regeneration bug.  It registered new
6753           timeout tasks exponentially until all system resources were
6754           used.  Affected file silcd/server.c.
6755
6756 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6757
6758         * Added the SILC Document generator to the scripts/silcdoc.
6759           It can be used to generate the Toolkit Reference Manual out
6760           of the source tree.  Internally it will also use the RoboDoc
6761           generator now imported in util/robodoc.
6762
6763 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6764
6765         * Added couple of return's in rekey protocol if error orccurred
6766           during the protocol.  The execution must be terminated.
6767           Affected file silcd/protocol.c.  Also, terminate the protocol
6768           always with timeout.
6769
6770 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6771
6772         * The client's Client ID was created initally from the wrong
6773           nickname (it could have been in format nick@host) in the
6774           silc_server_new_client.  Affected file silcd/packet_receive.c
6775
6776 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6777
6778         * Added some SILC_LOG_ERROR's to various error conditions
6779           if client could not be added to ID cache.  Affected files
6780           silcd/packet_receive.c and silcd/server.c.
6781
6782         * When client's sock->user_data is freed, NULL also the
6783           client->router and client->connection pointers.  Added check
6784           for these pointers being NULL to various places around the
6785           code.  Affected file silcd/server.c.
6786
6787         * Added client->data.registered == TRUE checks to various
6788           places around the code to assure that unregistered client's
6789           are not handled when it is not allowed.  Affected file
6790           silcd/server.c.
6791
6792         * Added `bool registered' fields to all
6793           silc_idlist_[server|client]_get_* routines to indicate whether
6794           the fetched client needs to be registered or not.  Affected
6795           file silcd/idlist.[ch].
6796
6797         * Add your own entry as registered to the ID cache in the
6798           server.  Affected file server.c.
6799
6800         * Fixed a bug in silc_server_new_server.  The SilcServer was
6801           set as the new server's context instead of SilcServerEntry.
6802           This naturally caused some weird bugs.
6803
6804         * Added "updated" field the SilcChannelEntry which indicates
6805           the time since the channel entry was last accessed.  This
6806           can be used to determine whether it is necessary to
6807           announce the channel after backup resuming protocol.
6808           Affected files silcd/idlist.[ch].
6809
6810 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6811
6812         * Do not delete the channel rekey task when adding it
6813           for in silc_server_create_channel_key.
6814
6815         * Changed the silc_server_create_channel_key to return
6816           TRUE or FALSE to indicate the success of the channel key
6817           creation.
6818
6819 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6820
6821         * Fixed MSVC++ project files and added missing files to
6822           Makefiles under win32/.
6823
6824 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6825
6826         * Do not add TCP_NODELAY flag if the operating system
6827           does not have it defined.  Affected files are
6828           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6829
6830         * Fixed buffer overflow from Irssi SILC Client.  Affected
6831           file irssi/src/fe-common/core/themes.c.
6832
6833         * Fixed double free in client library in the file
6834           lib/silcclient/client.c when disconnecting from server.
6835
6836         * Applied double free patch from cras to Irssi SILC client.
6837           Affected files irssi/src/core/[modules/expandos].c
6838
6839         * Fixed the disconnection handling to Irssi SILC Client.
6840           The application must call silc_client_close_connection
6841           in ops->connect client operation in case of failure of
6842           the connection.  Affected file is
6843           irssi/src/silc/core/client_ops.c.
6844
6845         * Do not set sock->protocol to NULL in the function
6846           silc_client_close_connection after executing the protocol's
6847           final callback since the sock might not be valid anymore.
6848           Affected file lib/silcclient/client.c.
6849
6850 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6851
6852         * Do not enable SILC_THREADS if the linking with libpthread
6853           did not happen.  Affected file configure.in.pre.
6854
6855         * Added notion to protocol specification that server must
6856           verify the sent authentication payload with CMODE when
6857           setting the channel founder key.  Implemented it to the
6858           server.  Affected file silcd/command.c.
6859
6860 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6861
6862         * Added _EXTRA_DIST SILC distribution variable to the
6863           distributions file.  It is used to conditionally add extra
6864           files or directories to the specific distribution.  Affected
6865           files ./prepare, Makefile.am.pre and distributions.
6866
6867           Removed the `_' from the start of the distribution names.
6868           It is redundant.
6869
6870         * Added README.WIN32 for instructions to compile the Toolkit
6871           under WIN32.
6872
6873 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6874
6875         * Fixed a double free in disconnection in the server.  Affected
6876           file is silcd/server.c.
6877
6878         * Fixed the lib/silcske/groups.c to work now also with GMP
6879           MP library.  The string conversion did not work when using
6880           specific base and the base is indicated in the string as well.
6881
6882         * Created win32/ directory which now includes MSVC++ specific
6883           stuff so that toolkit (DLLs) may be compiled with MSVC++.
6884           It will appear only in the toolkit distribution
6885
6886 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6887
6888         * Changed the key material distribution function in case when
6889           the hash output is too short.  The data is now concatenated
6890           a bit differently than it used to.  Made the change to the
6891           SKE protocol specification.
6892
6893         * Added better GMP detection to configure.in.pre.  A patch
6894           by salo.
6895
6896 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6897
6898         * Fixed a minor bug in SKE that might cause some problem on
6899           some platforms.  Affected file lib/silcske/silcske.c.
6900
6901         * Added the cookie checking for initiator in the SKE.  It checks
6902           that the responder returns the sent cookie unmodified.  The
6903           affected file is lib/silcske/silcske.c.  Added new SKE
6904           error type INVALID_COOKIE that can be sent during the
6905           negotiation.  Fixed some memory leaks as well.
6906
6907         * Added the "invalid cookie" error message to Irssi SILC client's
6908           message formats.
6909
6910 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6911
6912         * Added `task_max' field to the SilcClientParams to indicate
6913           the maximum tasks the scheduler can handle.  If set to zero,
6914           default values are used.  Affected file lib/silcclient/silcapi.h.
6915
6916         * Fixed memory leaks in silc_client_close_connection.  Affected
6917           file lib/silcclient/client.c.
6918
6919         * Added silc_client_del_client_entry to client library to free
6920           all memory of given client entry.  Affected file is
6921           lib/silcclient/idlist.[ch].
6922
6923         * Added new functions silc_client_del_channel and
6924           silc_client_del_server to delete channel and server entries.
6925           Affected file lib/silcclient/[silcapi.h/idlist.c].
6926
6927         * Removed silc_client_del_client_by_id from silcapi.h.
6928
6929         * Fixed the INFO command to return the server's own info
6930           correctly when querying by Server ID.  Affected file is
6931           silcd/command.c.
6932
6933 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6934
6935         * Removed the non-blocking settings in WIN32 code in the
6936           silc_sock_[read/write] and added SleepEx instead.  Affected
6937           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
6938           of input data is now checked with FIONREAD and ioctlsocket.
6939
6940 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6941
6942         * Call silc_schedule_task_del_by_context in the
6943           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
6944           Affected file lib/silccore/silcprotocol.c.
6945
6946         * Call silc_protocol_cancel for active protocols in the
6947           silc_server_close_connection if the funtion
6948           silc_server_free_sock_user_data has not been called.
6949           Affected file silcd/server.c.
6950
6951         * Generic tasks cannot be deleted using the del_by_fd
6952           task deleting function since generic tasks does not match
6953           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
6954
6955         * Added a notion to SILCOPER help file that the SILCOPER works
6956           only on router server, not on normal server.
6957
6958 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6959
6960         * Added for WIN32 support for the new scheduler as well.
6961           Affected file lib/silcutil/win32/silcwin32schedule.c.
6962
6963         * Fixed the SHA1 implementation to work on various platforms.
6964
6965 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6966
6967         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
6968           API.  It is part of the scheduler now.  Everything else is
6969           as previously but some functions has changed their names.
6970           Checkout the lib/silcutil/silcschedule.h for the interface.
6971           Updated all applications to use the new interface.  Affected
6972           files are lib/silcutil/silcschedule.[ch].
6973
6974 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6975
6976         * Found a bug in the SKE implementation.  The HASH value,
6977           specified by the protocol, was not computed correctly.  The
6978           public key of the responder was not added to the computation
6979           even though it is mandatory.  Affected file lib/silcske/silcske.c.
6980           This unfortunately causes incompatibilities with older
6981           clients and servers.
6982
6983         * Added WIN32 specific network init and uninit functions:
6984           silc_net_win32_init and silc_net_win32_uninit to init and uninit
6985           the Winsock2.  Affected file lib/silcutil/silcnet.h and
6986           lib/silcutil/win32/silcwin32net.c.
6987
6988         * Set the socket always to nonblocking mode on WIN32 after
6989           reading data or writing data.  Affected file is
6990           lib/silcutil/win32/silcwin32sockconn.c.
6991
6992 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6993
6994         * Fixed various compilation problems under WIN32.  Affected
6995           files lib/silcutil/win32/silcwin32thread.c and
6996           lib/silcutil/win32/silcwin32schedule.c.
6997
6998         * Removed all _internal.h #includes from public header
6999           files.  Internal headers must never be included from
7000           public headers.
7001
7002           Removed also the lib/silcske/payload_internal.h file.
7003
7004         * All include files that may be needed (public and some others
7005           included by the public headers) by application developers are
7006           now copied to the ./includes directory.  It does not copy any
7007           internal headers.  Affected file Makefile.defines.pre and all
7008           Makefile.am's under lib/ and subdirs.
7009
7010 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7011
7012         * Do not change the ~/.silc directory's permissions automatically.
7013           Affected file irssi/src/silc/core/clientutil.c.
7014
7015 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7016
7017         * Do not cancel the protocol in silc_server_close_connection
7018           it might cause recursion.  Now cancelled in the function
7019           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7020
7021         * Fixed the silc_server_remove_clients_by_server to regenerate
7022           the channel keys correctly finally.  Added also new function
7023           silc_server_remove_clients_channels to actually do it.
7024           Affected file silcd/server.c.
7025
7026         * Fixed the silc_server_new_channel to not crash by giving
7027           wrong router to the new channel.  Affected file is
7028           silcd/packet_receive.c.
7029
7030 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7031
7032         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7033           which is given as argument to the silc_client_alloc now.
7034           It can be used to configure the client and set various parameters
7035           that affect the function of the client.
7036
7037         * The USERS command in server did not check whether the channel
7038           is private or secret.  Affected file silcd/command.c.
7039
7040         * Added new argument to the USERS command in protocol specification.
7041           The USERS command now can take the channel name as argument
7042           as well.  Added support for this in client and server and
7043           updated the protocol specs.
7044
7045         * Completed the GETKEY command in client. It can be now used
7046           to fetch also servers public key not only some clients.
7047           Affected files lib/silcclient/command[_reply].c.
7048
7049         * Added silc_client_get_server to return server entry by the
7050           server name.  Affected files lib/silcclient/silcapi.h and
7051           idlist.c.
7052
7053         * Redefined the IDENTIFY command in protocol specification to be
7054           more generic.  It now can be used to query information about
7055           any entity in the SILC Network, including clients, servers and
7056           channels.  The query may be based either the entity's name
7057           or the ID.  Added support for this in both client and server.
7058
7059           Affected files silcd/command.c and lib/silcclient/command.c
7060           and command_reply.c.
7061
7062         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7063           the _from_client and _from_server functions.  Affected file
7064           silcd/command.c.
7065
7066         * Added silc_client_get_channel_by_id_resolve to the file
7067           lib/silcclient/silcapi.h to resolve channel information by
7068           its ID.  Added also silc_client_get_channel_by_id that
7069           does not resolve it from the server.
7070
7071 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7072
7073         * Added SilcServerEntry context into the client library
7074           to represent one server.  The INFO command now allocates
7075           these to save the resolved server info.  For now on the
7076           client library will also keep information about servers,
7077           connected and resolved with INFO.
7078
7079           The INFO command now allocates the SilcServerEntry context
7080           and saves the server info there.  The COMMAND_REPLY in
7081           the INFO now returns the parameters to application in
7082           same order as defined in the protocol specification.
7083
7084           The entries are cached in the client->server_cache.
7085
7086         * The INFO command is now issued after received the Client ID
7087           from the server.  Affected file lib/silcclient/client.c.
7088
7089         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7090           to the application as the mode changer might be server.
7091           It is guaranteed that NULL is not returned anymore to the
7092           application.  Affected file lib/silcclient/client_notify.c.
7093
7094           The ID Type is now also passed to the application so that
7095           it can check whether the returned entry is SilcClientEntry
7096           or SilcServerEntry.
7097
7098           Added new function silc_client_get_server_by_id to return
7099           the server entry by ID.  Affected files are the
7100           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7101
7102         * Do not create the channel in the Irssi SILC Client when issuing
7103           the JOIN command but when received the sucessful JOIN command
7104           reply.  Otherwise the channel might get created even though we
7105           could not join it.  The Affected file is
7106           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7107
7108         * Fixed a channel joining bug in router.  The router must also
7109           check the channel modes, invite and ban lists etc. when serving
7110           the JOIN command sent by normal server.  Affected file is
7111           silcd/command.c.  The router now resolves the client's
7112           information from the server who sent the JOIN command if it
7113           does not know it, and processes the JOIN command only after
7114           that.
7115
7116         * Changed the SilcCommandCb to take new argument; void *context2.
7117           Affected file lib/silccore/silccommand.h
7118
7119           The second argument in the command callbacks in the server now
7120           includes the SilcServerCommandReplyContext if the command was
7121           called as pending command callback from the command reply.
7122           Otherwise it is NULL. When called as pending the status of the
7123           command reply will be checked and if it was erronous the
7124           error will be sent to the original sender of the command.
7125           This way the client always receives the error messages even
7126           though the server was actually the one who received the error
7127           when it resent the command to router, for example.  Affected
7128           files silcd/command[_reply].[ch].
7129
7130         * Fixed sending WHOWAS command's error message to client if
7131           the requested client could not be found.  It was missing.
7132           silcd/command.c.
7133
7134         * Changed the CMODE and CUMODE commands reply arguments in the
7135           protocol specification.  The Channel ID is now sent in both
7136           of the commands to identify the channel.  Implemented this
7137           new feature to the client and server.  Affected files
7138           lib/silcclient/command_reply.c and silcd/command.c.
7139
7140         * Made better checks for invite and ban lists in the JOIN
7141           command in server.  Affected file silcd/command.c.
7142
7143 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7144
7145         * The server now performs the incoming host IP/DNS lookup
7146           using the silc_socket_host_lookup and thus does not block
7147           the server anymore.  Affected file silcd/server.c.
7148
7149         * Completed the multi-thread support for SILC Scheduler in
7150           the lib/silcutil/silcschedule.c.
7151
7152         * Fixed the configure.in.pre to detect the pthread correctly
7153           on various systems.
7154
7155         * Fixed a deadlock in silc_task_queue_wakeup in the file
7156           lib/silcutil/silctask.c.
7157
7158 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7159
7160         * Added new function silc_schedule_wakeup that is used in
7161           multi-threaded environment to wakeup the main thread's
7162           schduler. It needs to be used when a thread adds a new task
7163           or removes a task from task queues. After waking up, the
7164           scheduler will detect the task queue changes. If threads
7165           support is not compiled in this function has no effect.
7166           Implemented the wakeup mechanism to both Unix and WIN32
7167           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7168           lib/silcutil/unix/silcunixschedule.c and the
7169           lib/silcutil/win32/silcwin32schedule.c.
7170
7171         * Added new function silc_task_queue_wakeup to wakeup the
7172           scheduler by the specified task queue.  Affected file
7173           lib/silcutil/silctask.[ch].
7174
7175         * The silc_socket_host_lookup_start now wakes up the scheduler
7176           after adding the timeout task.  Affected file is
7177           lib/silcutil/silcsockconn.c.
7178
7179         * The silc_socket_host_lookup is synchronous now if the threads
7180           support is not compiled in.  However, the callback is still
7181           called asyncronously through the scheduler, anyway.  Affected
7182           file lib/silcutil/silcsockconn.c.
7183
7184 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7185
7186         * Added new function silc_socket_host_lookup to perform
7187           asynchronous IP and FQDN lookups for the socket connection.
7188           Affected files lib/silcutil/silcsockconn.[ch].
7189
7190 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7191
7192         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7193           that may or may not compile the mutex support in.
7194
7195           Changed the silc_mutex_alloc interface. It allocates the
7196           mutex now to the sent pointer and returns TRUE or FALSE.
7197
7198           Affected file lib/silcutil/silcmutex.h.
7199
7200         * Wrote the SILC Task Queue interface to support multi-threads.
7201           Affected file lib/silcutil/silctask.[ch].
7202
7203         * Wrote the SILC Scheduler to support multi-threads.  Affected
7204           file lib/silcutil/silcschedule.c.
7205
7206 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7207
7208         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7209           in lib/silcutil/win32/.
7210
7211 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7212
7213         * Defined SILC Mutex API and SILC Thread API and implemented
7214           them for Unix.  Affected files are
7215           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7216           lib/silcutil/unix/silcunixmutex.c and
7217           lib/silcutil/unix/silcunixthread.c.
7218
7219 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7220
7221         * Fixed the silc_server_remove_clients_by_server's channel
7222           key re-generation.  The hash table handling was incorrect
7223           and would not work with many channels.  Affected file is
7224           silcd/server.c.
7225
7226         * Fixed some memory leaks around the server code.
7227
7228         * Rewrote the silc_server_get_users_on_channel to support IPv6
7229           based Client ID's.  Affected file silcd/server.c.
7230
7231         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7232           specification.  However, a separate document must be written
7233           to define the detailed signing procedure and the payload
7234           associated with the flag.  Defined the flag to the
7235           lib/silccore/silcchannel.h as well.
7236
7237 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7238
7239         * Changed the dynamic tables to static size tables in the
7240           lib/silccrypt/silchmac.c.
7241
7242         * Removed GCC dependencies from the code.  A patch by cras.
7243
7244 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7245
7246         * Do not show the error "Error receiving packet bla bla"
7247           in server if it really was not an error (-2 means that reading
7248           is pending).  Affected file silcd/server.c.
7249
7250 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7251
7252         * Fixed a possible crash in silc_server_remove_clients_by_server
7253           in silcd/server.c.  Fixed there also some memory leaks.
7254
7255         * Fixed the silc_idlist_replace_client_id.  It could replace
7256           wrong key in the hash table.  Affected file silcd/idlist.c.
7257
7258         * Do not check whether there are global users on the channel
7259           if the channel->global_users is FALSE.  Affected functions
7260           silc_server_remove_from_one_channel and
7261           silc_server_remove_from_channels in silcd/server.c.  Also,
7262           do not check if the removed client is local as we can be
7263           sure that global client was not removed from the channel
7264           and checking for global users is not needed.
7265
7266         * The silc_server_remove_clients_by_server now re-generates
7267           the channel keys correctly for those channels that had
7268           clients removed from them.  Affected file silcd/server.c.
7269
7270 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7271
7272         * Found the reason of random crashes in the server.  We weren't
7273           ignoring the SIGPIPE signal (which can be sent in write())
7274           and it crashed the server.  Affected file silcd/silcd.c.
7275
7276 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7277
7278         * Assure that sock->user_data is not NULL in the function
7279           silc_server_packet_send in silcd/packet_send.c.
7280
7281         * Disconnect the remote connection if it could not be added
7282           to any ID lists in the server.  The affected file is
7283           silcd/server.c.
7284
7285         * Check in silc_server_packet_send[_real/dest] that the
7286           socket is not disconnecting and ignore the data if it is.
7287           Affected file silcd/packet_send.c.
7288
7289         * Define inline to __inline on native WIN32 compilation.
7290           Affected file includes/silcwin32.h.
7291
7292         * Added some explicit type casts for inline code since MSVC
7293           require them.  Affected files lib/silcutil/silcbuffer.h,
7294           lib/trq/silcdlist.h and lib/trq/silclist.h.
7295
7296         * Print warning in log files from now on if the packet
7297           decryption fails.  Affected file silcd/server.c.
7298
7299 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7300
7301         * Changed the `say' client operation's interface to accept
7302           new `type' argument to indicate the type of the message sent
7303           by the library.  The application may filter the library's
7304           messages according the type.  The affected file is the
7305           lib/silcclient/silcapi.h.
7306
7307         * Added two new functions to lib/silcclient/silcapi.h:
7308           silc_client_del_client and silc_client_del_client_by_id.
7309           Affected file lib/silcclient/idlist.c.
7310
7311         * Moved the clientincludes.h from includes/ to silc/ and
7312           serverincludes.h from includes/ to silcd/.
7313
7314         * The modes for the CMODE and CUMODE are now passed as
7315           uint32 for application with COMMAND_REPLY.  The affected
7316           file is lib/silcclient/command_reply.c.
7317
7318 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7319
7320         * /WHOIS without arguments shows client's own information.
7321           Affected file lib/silcclient/command.c.
7322
7323         * Changed PING to not accept any arguments.  The specs
7324           says that client can ping only the connected server so
7325           requiring an argument is not needed.  Affected file is
7326           lib/silcclient/command.c.
7327
7328 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7329
7330         * Fixed a fatal bug in private message sending and reception
7331           encryption and decryption when using private message keys.
7332           The implementation was incorrect and did not follow the
7333           specification.  It causd that some of the message were
7334           lost since it did not use the sending and receiving keys
7335           as the protocol suggests.  This has been fixed and will cause
7336           incompatibilities with older clients when sending private
7337           message encrypted with private message keys.  Affected files
7338           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
7339           and various other in Irssi SILC Client.
7340
7341           Added `responder' boolean argument to the functions
7342           silc_client_add_private_message_key[_ske] to indicate when
7343           the key is added as responder or initiator of the key
7344           negotiation.
7345
7346 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7347
7348         * Removed the silc_ske_check_version function and created
7349           a SilcSKECheckVersion callback.  Added also a function
7350           silc_ske_set_callbacks that is now used to set all SKE
7351           callbacks.  The callback functions are not given to
7352           the SKE functions anymore, but this function is used to
7353           set the callbacks.
7354
7355         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
7356
7357         * Added `silc_version' argument to the silc_client_alloc
7358           to define the version of the application for the library.
7359           The library will use the version string to compare it
7360           against the remote host's (usually a server) version
7361           string.  Affected file lib/silcclient/silcapi.h
7362
7363         * Added the KE protocol context to Key Agreement context
7364           in client library so that we can abort the SKE if it
7365           is in process when we get timeout.  Affected file is
7366           lib/silcclient/client_keyagr.c.
7367
7368         * Do not resolve the client ID forever if it returns in the
7369           first time that such client does not exist.  This was done
7370           for example with private message.  Affected file is
7371           lib/silcclient/client_prvmsg.c.
7372
7373 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7374
7375         * Do not add regex.h for WIN32.  The affected file
7376           includes/silcincludes.h.
7377
7378         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
7379           not work yet 100%.  It generates the DLL's automatically
7380           when compiling with --with-win32 under cygwin.
7381
7382 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7383
7384         * lib/contrib/regex.c is not compiled on WIN32.
7385
7386         * Added silc_net_get_socket_opt function to the
7387           lib/silcutil/silcnet.h.
7388
7389         * Added includes/silcwin32.h for WIN32 specific includes
7390           and definitions.
7391
7392         * Do not use ptime structure or any of the posix process
7393           functions on WIN32 in lib/silccrypt/silrng.c.
7394
7395         * Added silc_gettimeofday to provide generic function
7396           for struct timeval on all platforms.  Added the function
7397           to lib/silcutil/silcutil.h.
7398
7399 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7400
7401         * Moved the lib/silccore/silcsockconn.[ch] to the utility
7402           library as they clearly belong there.  As a plus side we
7403           can make the actual socket connection routines platform
7404           specific.
7405
7406           Added also new generic function silc_socket_read and
7407           silc_socket_write (that used to be silc_packet_[read/write].
7408           The implementation of these are platform specific.
7409
7410         * Added WIN32 specific routines of silc_socket_[read/write]
7411           to lib/silcutil/win32/silcwin32sockconn.c.
7412
7413 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7414
7415         * Added preliminary support for native WIN32 compilation under
7416           cygwin (using the -mno-cygwin option for GCC) to the
7417           ./configure.in.pre.  The --with-win32 now prepares the
7418           compilation for native WIN32.
7419
7420         * Rewrote the SILC Scheduler interface in the file
7421           lib/silcutil/silcschedule.h.  The scheduler is now context
7422           based and does not have anymore any global static scheduler.
7423           Moved the Unix scheduler to the lib/silcutil/unix/ directory
7424           and created lib/silcutil/win32 directory for WIN32 based
7425           scheduler.
7426
7427         * Added Unix specific network routines to the
7428           lib/silcutil/unix/silcunixnet.c and the old
7429           lib/silcutil/silcnet.c includes now only generic routines.
7430
7431           Added WIN32 specific network routines to the
7432           lib/silcutil/win32/silcwin32net.c.
7433
7434         * Added Unix specific utility functions from the
7435           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
7436
7437         * Added WIN32 SILC Scheduler to the file
7438           lib/silcutil/win32/silcwin32schedule.c. The code is of course
7439           untested.
7440
7441 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7442
7443         * Do not handle JOIN notify in the server if the target client
7444           is not registered (idata->registered == FALSE).  The affected
7445           file is silcd/packet_receive.c.
7446
7447         * Update the nickrec->founder in event_cumode in the Irssi SILC
7448           client.  Affected file irssi/src/silc/core/silc-channels.c.
7449
7450         * Fixed the CUMODE_CHANGE notify handling in the server when
7451           server and router are announcing their clients on channels.
7452           Now the mode changes are saved and notified correctly.  The
7453           affected file is /silcd/packet_receive.c.
7454
7455         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
7456           They really did not replace the cache entry in the ID Cache.
7457           Now they do that.  Affected file silcd/idlist.c.
7458
7459         * Fixed the KICK notify handling in the Irssi SILC client to
7460           update the channel records so that the kicked client does not
7461           appear to be on the channel.  The affected file is
7462           irssi/src/silc/core/silc-channels.c.
7463
7464         * Always update the conn->current_channel when executing command
7465           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
7466
7467         * Fixed the KILL notify handling in Irssi SILC client to remove
7468           the killed client on all channels.
7469
7470 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7471
7472         * Fixed the silc_parse_command_line to remove extra spaces
7473           from the start and end of the arguments.  Affected file is
7474           lib/silcutil/silcutil.c.
7475
7476         * Cancel and free any active protocol in the function
7477           silc_server_close_connection.  Affected file silcd/server.c.
7478
7479         * Cancel and free any active protocol in the function
7480           silc_client_close_connction.  Affected file is
7481           lib/silcclient/client.c.
7482
7483         * Do not execute the KILL command for clients that are in
7484           history (ie. they are not in the network).  Affected file is
7485           silcd/command.c.
7486
7487         * Fixed KILL notify handling, client does not crash anymore.
7488           Affected file irssi/src/silc/core/silc-channels.c.
7489
7490         * Reduced the default packet buffer size from 2048 to 1024 in
7491           lib/silccore/silcpacket.c.
7492
7493         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
7494           counter to the SKE context that is incresed when the SKE library
7495           performs async operation outside the library.  If the outside
7496           process frees the SKE context and FREED status will be set
7497           and the library will detect after the sync operation that the
7498           libary is freed.  The affected files are
7499           lib/silcske/silcske[_status].[ch].
7500
7501         * Resolve the client entry information in the function
7502           silc_client_channel_message to assure that NULL pointer is not
7503           passed as client entry to the application. */
7504
7505         * Fixed the task timeout calculation to assure that there is
7506           never negative timeouts.  The affected file is
7507           lib/silcutil/silcschedule.c.
7508
7509         * Fixed the channel user mode notification sending in server.
7510           It was sent point-to-point to the router (or to server by router)
7511           but it needs to be destined to a channel.  The routines now
7512           supports sending the channel user mode notifys to the channels
7513           when announcing clients and channels.  Affected files are
7514           silcd/server.c and silcd/packet_receive.c.
7515
7516         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
7517           It did not actually replace the old channel entry in the cache.
7518           Affected file lib/silcclient/client_notify.c.
7519
7520 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7521
7522         * Fixed a possible crash in silc_packet_send_prepare.  It now
7523           assures always that there is enough space in the buffer and
7524           at the tail area of the buffer (for MAC).
7525
7526           Fixed the inbound buffer reallocation in silc_packet_read.
7527           It was old code and did not handle the reallocation correctly.
7528           Affected
7529
7530           The affected file is lib/silccore/silcpacket.c.
7531
7532         * Fixed buffer overflow in silc_parse_nickname in the file
7533           lib/silcutil/silcutil.c.
7534
7535 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7536
7537         * make install generates new server keys only if there is not
7538           keys already.
7539
7540 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7541
7542         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
7543           Added check that if the NOREPLY is set then we will not send
7544           the away message.  This avoids infinite loop of away messages
7545           if both clients are away.  The affected file is
7546           lib/silcclient/client_prvmsg.c.
7547
7548         * Fixed client crash if /NICK was given without arguments.
7549           Affected file lib/silcclient/command.c.
7550
7551         * Server does not send the invite list in INVITE command back
7552           to the client if the list was not altered.  Added this notion
7553           to the protocol spec as well.  Affected file silcd/command.c.
7554
7555           Fixed possible crash in INVITE command by checking the
7556           value of silc_server_get_client_route command.
7557
7558         * Fixed the INVITE notify type handling.  The arguments are now
7559           taken in correct order and client does not crash.  The affected
7560           file is irssi/src/silc/core/silc-channels.c.
7561
7562           Removed the "Inviting xxx to channel" message from the
7563           client library away and let the application handle it.
7564           Affected file lib/silcclient/command.c.  Added that message
7565           to Irssi SILC client's message formats.
7566
7567         * Fixed CMODE command crash in client.  It now checks the
7568           amount of arguments correctly and does not crash.  The affected
7569           file is lib/silcclient/command.c.
7570
7571         * Do not create new channel automatically in silc_channels_join
7572           but check whether the channel by that name already exists.
7573           Affected file irssi/silc/core/silc-channels.c.
7574
7575         * Do not send the SERVER_SIGNOFF to router if the disconnected
7576           entity was the router.  Affected file silcd/server.c.
7577
7578         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
7579           SILC client as it was missing from there.
7580
7581           Added the handling of the KICK notify to the Irssi SILC client
7582           as it was missing.  Added "you have been kicked" message to
7583           Irssi SILC client's message modules formats.
7584
7585           Added the handing of the KILL notify to the Irssi SILC client
7586           as it was missing.  Added the kill message module formats
7587           as well.
7588
7589           The affected file is irssi/src/silc/core/silc-channels.c.
7590
7591         * The router did not save the channel mode the server announced.
7592           Affected file silcd/packet_receive.c.
7593
7594         * Fixed a possible crash in INFO command in server.  If the
7595           server did not provide the server info it crashed.  Affected
7596           file silcd/command.c.
7597
7598 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7599
7600         * Fixed the GETKEY command in the server to check also the
7601           global list.  Otherwise the GETKEY would not work correctly
7602           in normal SILC server.  Affected file silcd/command.c.
7603
7604 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7605
7606         * Fixed GETKEY crash, it crashed if the command did not succseed.
7607
7608 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7609
7610         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
7611           is now real and not just an macro interface to GMP.
7612
7613           Removed the entire GMP from the source tree and imported new
7614           NSS MPI library instead.  Reason for removing GMP is that it is
7615           extremely large and compiles extremely slow.  The NSS MPI
7616           is only a few files and compiles in less than 10 seconds.
7617           The speed is also about the same as GMP.  The MPI is imported
7618           to lib/silcmath/mpi.
7619
7620           If the system has GMP installed we will still use the GMP.
7621           If it is not then the NSS MPI will be compiled.
7622
7623 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7624
7625         * Merged a long nickname (127 characters long) crash bugfix from
7626           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
7627
7628         * Merged a freed memory reference bugfix from Irssi CVS tree.
7629           Affected file irssi/src/core/commands.c.
7630
7631 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7632
7633         * Added the server's public key sving and verification to the
7634           server when performing the SKE.  This was missing and the
7635           remote server's (or router's) public key was accepted without
7636           checking whether we have it previously or trust it at all.
7637           Affected file silcd/protocol.c.
7638
7639 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7640
7641         * Check in the silc_server_timeout_remote if protocol is active
7642           and make sure that the protocol's final callback is called so
7643           that all memory if freed.  Affected file silcd/server.c.
7644
7645 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7646
7647         * silc_server_whois_send_reply crashed the server if the nickname
7648           was 127 characters long.  Affected file silcd/command.c.
7649
7650 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7651
7652         * Added sanity check to the silc_server_new_client. If the hostname
7653           is provided inside username then check that the provided hostname
7654           really is the same as the resolved one.  If the hostname was not
7655           resolved then check it from the public key.  Affected file is
7656           silcd/packet_receive.c.
7657
7658         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
7659           if the server disconnected us and the connection is not valid
7660           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
7661
7662         * Moved the silc_client_[chmode|chumode|chumode_char] away from
7663           the library to the lib/silcutil/silcutil.[ch].
7664
7665 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7666
7667         * Close log file after open.  Affected file
7668           lib/silcutil/silclog.c.
7669
7670         * Check whether sock == NULL in silc_client_send_packet and return
7671           if it is.  Affected file lib/silcclient/silcclient.c.
7672
7673         * Check rec->entry == NULL in the Irssi SILC Client before
7674           sending the channel message.  Affecte file is
7675           irssi/src/silc/core/silc-servers.c.
7676
7677 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7678
7679         * Merged a splitted window bugfix from Irssi CVS tree.  The
7680           affected file is irssi/src/fe-text/textbuffer-view.c.
7681
7682         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
7683           It did not print nickname.
7684
7685         * Improved the distributions system a bit.
7686
7687 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7688
7689         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
7690           irssi/src/fe-text/gui-window.c.
7691
7692         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
7693           to in-active server.  The affected file is
7694           irssi/src/silc/core/client_ops.c.
7695
7696         * Resolve the client in USERS command reply if the entry does
7697           not have username resolved.  The affected file is
7698           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
7699           command to WHOIS command to really resolve stuff.  The USERS
7700           is not used any more in any critical section so WHOIS can
7701           be used even though it might be slower than IDENTIFY.
7702
7703         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
7704           format.
7705
7706 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7707
7708         * Changed the protocol API a bit more consistent in the
7709           lib/silccore/silcprotocol.[ch].
7710
7711         * Changed the following headers to ROBODoc format:
7712
7713                 lib/silccore/silcpayload.h
7714                 lib/silccore/silcprotocol.h
7715                 lib/silccore/silcsockconn.h
7716
7717           All core library headers are now formatted.
7718
7719 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7720
7721         * Fixed a bug in Irssi SILC client; do not show that you are
7722           server/router operator if you really are not.  Affected file is
7723           irssi/src/silc/core/client_ops.c.
7724
7725         * Renamed silc_command_free_payload to silc_command_payload_free.
7726           Affected file lib/silccore/silccommand.h
7727
7728         * Added silcmath.h to include the prototoypes of various routines
7729           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
7730           silcprimegen.h.
7731
7732         * Changed the following headers to ROBODoc format:
7733
7734                 lib/silccore/silcchannel.h
7735                 lib/silccore/silccommand.h
7736                 lib/silccore/silcid.h
7737                 lib/silccore/silcidcache.h
7738                 lib/silccore/silcmode.h
7739                 lib/silccore/silcnotify.h
7740                 lib/silccore/silcpacket.h
7741                 lib/silcmath/silcmath.h
7742
7743 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7744
7745         * Added checking to the server code not to start the server if
7746           ciphers and stuff are not configured properly.  Affected files
7747           silcd/serverconfig.[h] and silcd/server.c.
7748
7749         * Changed the layout of the header files of the public interfaces
7750           in the SILC libraries.  The new layout supports ROBODoc
7751           documentation tool (and some others) so that it is easy to create
7752           a library reference manual.  All the other headers and source
7753           code must still follow the CodingStyle document.  Also source
7754           code must not include these ROBODoc stuffs, only the headers.
7755           Furthermore, all public interface headers must now be named
7756           by using `silc' prefix, example: silcapi.h, silccipher.h.
7757           Some files were renamed due to this.  All the other headers
7758           must not be used as public interfaces.  I will update the
7759           CodingStyle document later.  Changed following headers, so far:
7760
7761                 lib/silcclient/silcapi.h
7762                 lib/silccore/silcauth.h
7763                 lib/silccore/silcprivate.h
7764                 lib/silccrypt/silcdh.h
7765
7766 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7767
7768         * Updated TODO.
7769
7770         * Removed silc_client_packet_send_flush from the client library
7771           as it is not needed.  Affected file lib/silcclient/client.[ch].
7772
7773         * Added printing of message of unresolved authentication method
7774           to the Irssi SILC client.  Added it to the module formats.
7775           Removed the same message from the client library.
7776
7777 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7778
7779         * Added new distribution feature, DISTLABEL.  Every distribution
7780           can define own preprocessor label that can be used in the
7781           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
7782           file distributions, acconfig.h.pre and prepare.
7783
7784 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7785
7786         * Added Makefile.defines_int to include the actual definitions
7787           for Makefile.defines.in.  Tested the new distribution system,
7788           created distributions and tested installation.
7789
7790         * Added AWAY message printing to the Irssi SILC client.  Added
7791           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
7792
7793         * Added SCONNECT command to call the SILC's CONNECT command.
7794           Cannot use CONNECT directly since Irssi uses that internally.
7795           Affected file irssi/src/silc/core/silc-servers.c.
7796
7797           Added ACTION local command.  It is same as ME command but takes
7798           the channel as mandatory argument.
7799
7800           Rewrote some of the Irssi's help files to suite for SILC
7801           protocol.
7802
7803 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7804
7805         * Added Makefile.defines[.in] that should for now on be included
7806           in all Makefile.am file in the source tree.  That file includes
7807           all common compilation definitions for SILC source tree.
7808
7809 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7810
7811         * Minor changes to the ./prepare script to change the package
7812           name according the distribution name to the configure.in.
7813
7814 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7815
7816         * Created new distribution system.  Added file `distributions'
7817           that defines all the distributions that can be created out of
7818           the SILC source tree.  The ./prepare script now reads that
7819           file to determine how to prepare the distributions.  The
7820           first argument to the ./prepare is the name of the distribution
7821           and second is the version of the distribution.  If given
7822           without arguments it creates the default (toolkit) distribution
7823           with the default version (defined in ./prepare).
7824
7825           All Makefile.am files that are subject to the distributions
7826           are now named as Makefile.am.pre.  These are ./Makefile.am
7827           and lib/Makefile.am.  Others may be changed later.
7828
7829 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7830
7831         * Added invite list, ban list, some key management and connection
7832           error message printing to module formats in the Irssi SILC client.
7833
7834         * Added new silc_client_set_away_message to set the away message
7835           that is back to the person who sent private message.  The
7836           affected file lib/silcclient/silcapi.h and the
7837           lib/silcclient/client_prvmsg.c.
7838
7839 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7840
7841         * Fixed the private message sending in the Irssi SILC client,
7842           added local command KEY to the Irssi SILC client.
7843
7844           Added key management and key agreement message formats to the
7845           irssi/src/fe-common/silc/module-formats.[ch].
7846
7847           Added USERS (alias WHO) printing, server/router operator
7848           indication and LIST command printing to the module formats.
7849
7850 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7851
7852         * Fixed channel joining notify handling, cumode notify handling
7853           from Irssi SILC client.
7854
7855         * Added SILC specific module-formats to the Irssi SILC client so
7856           that SILC specific message hilighting, colors etc is possible.
7857           Affected file irssi/src/fe-common/silc/module-formats.[ch].
7858
7859           Added channel mode, channel user mode, actions, notices,
7860           whois and whowas printing to the the module-formats.c.
7861
7862         * Fixed a bug in channel deletion in the server.  The channel
7863           is not left to the cache even if the channel founder auth mode
7864           is set when there are no users anymore on the channel.  Affected
7865           file silcd/server.c.
7866
7867         * The silc_net_localhost now resolves the entire hostname including
7868           the domain name.  Affected file lib/silcutil/silcnet.c.
7869
7870 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7871
7872         * Changed the ask_passphrase client operation to be ascynchronous.
7873           It has now a completion callback and a context that the
7874           application must call after it has got the passphrase from
7875           the user.  Affected files lib/silcclient/silcapi.h,
7876           lib/silcclient/protocol.c, lib/silcclient/command.c and
7877           silc/client_ops.c.
7878
7879           Added SilcAskPassphrase callback that the application calls
7880           to deliver the passphrase to the library.
7881
7882         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
7883           The public key verification and especially a certificate
7884           verification is asynchronous procedure.
7885
7886           Added new SILC_SKE_STATUS_PENDING status to indicate the
7887           request is pending and a callback will be called to finalize
7888           the request.
7889
7890           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
7891           indicate that remote end did not send its public key (or
7892           certificate), even though we require it.  Added check for this
7893           condition in the SKE.  This was a security bug, now fixed.
7894
7895           Defined new SilcSKEVerifyCbCompletion callback that is called
7896           when the verification process is completed.
7897
7898           The affected files lib/silcske/silcske_status.h and
7899           lib/silcske/silcske.[ch].
7900
7901         * Changed the verify_public_key client operation to be async
7902           as well.  Defined SilcVerifyPublicKey callback that is used to
7903           indicate the success of the public key verification process.
7904
7905           Changed the server and client to use the new async client
7906           operations.
7907
7908         * Changed the Irssi SILC client's internal scheduler to be called
7909           twice as many times as it used to be.  As a result the client
7910           should be a bit faster now.  Affected file is
7911           irssi/src/silc/core/silc-core.c.
7912
7913         * Added support to Irssi SILC client of asynchronous public key
7914           verification and passphrase inquiry.  Affected file is
7915           irssi/src/silc/core/silc-core.c.
7916
7917 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7918
7919         * Do not say "You have left channel %s" in client library.
7920           Moved it to the application.  Affected files are
7921           lib/silcclient/command.c and silc/client_ops.c.
7922
7923         * Fixed silc_client_get_clients.  Command context was not
7924           duplicated and was freed memory in the callback.  Affected
7925           file lib/silcclient/idlist.c.
7926
7927         * Do not say "you are now talking..." on JOIN command in the
7928           client library.  The appliation must handle it.
7929
7930         * Do not say ".. changed topic to" in command reply in the
7931           client libary.  The application must handle it.
7932
7933         * Fixed TOPIC command sending in the client library.
7934
7935         * Fixed a memory leak in silc_client_command_free in the file
7936           lib/silcclient/command.c.
7937
7938 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7939
7940         * Imported a modified version of Irssi client to the source tree.
7941           The Irssi will be used to create a new client called
7942           Irssi SILC.  Imported to irssi/.
7943
7944           Added silc_core_init_finish function to the Irssi.  Affected
7945           file irssi/configure.in.
7946
7947           A lot changes in the Makefile.ams around the irssi tree.
7948
7949 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7950
7951         * Do not rehash if the new size is same as the old size of the
7952           hash table, in the silc_hash_table_rehash*.  The affected file
7953           lib/silcutil/silchashtable.c.
7954
7955         * Replaced hash_table_del_by_context calls from the server
7956           (when channel->user_list and client->channels) to the
7957           hash_table_del as it is sufficient and faster.
7958
7959 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7960
7961         * Added silc_hash_table_list, silc_hash_table_get and the
7962           SilcHashTableList structure to provide an alternative way to
7963           traverse the hash table.  The affected files are
7964           lib/silcutil/silchashtable.[ch].
7965
7966         * Changed the server's idlist routines to use the hash table
7967           routines to optimize the code.
7968
7969 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7970
7971         * Replaced the client entry's `channel' list and channel entry's
7972           `user_list' list to hash tables for optimized lookup.  Changed
7973           the code to use the hash table interface around the code.
7974           Affected file lib/silcd/idlist.[ch].
7975
7976         * Added `auto_rehash' boolean argument to the function
7977           silc_hash_table_alloc to indicate whether the hash table should
7978           auto-rehash when it thinks is appropriate time.  It will
7979           increase the hash table size if the there is twice as much
7980           entries in the table than the size of the table, and will
7981           decrease the size if there are twice as less entries than
7982           the size of the table.
7983
7984 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7985
7986         * Fixed silc_xxx_get_supported to not crash at some circumstances.
7987
7988 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7989
7990         * silc_idcache_purge_by_context deletes the entry now by context
7991           as it is supposed to do.  Affected file lib/silccore/idcache.c.
7992
7993         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
7994           client is not anymore valid (WHOWAS givens the info) and not
7995           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
7996
7997 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7998
7999         * Removed the `data' and `data_len' arguments from the ID Cache
8000           interfaces and added `name' argument.  ID Cache does not handle
8001           anymore the binary data only a names associated with given ID.
8002
8003         * When hashing a Client ID with silc_hash_id the entire ID is
8004           not hashed anymore, instead only the hash of the Client ID is
8005           hashed.  This way we can access the Client ID from the cache
8006           with Client ID but with the hash of the ID (which is a hash of
8007           the nickname) as well without any difference in performance.
8008
8009           Added also silc_idcache_find_by_id_one_ext to do one on one
8010           searching when we have the actual ID.  Added also function
8011           silc_hash_client_id_compare.  The affected files are
8012           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8013
8014         * When hashing the name associated with a ID it is always done
8015           in lowercase.  This way we can access the cache without worrying
8016           about case-sensitivity, even though, for example nicknames are
8017           case sensitive.
8018
8019         * Fixed a bug in server with channel message sending.  It put
8020           wrong ID type as destination ID.  The affected file
8021           silcd/packet_send.c.
8022
8023         * silc_idcache_del_by_context now deletes from all hash tables
8024           by context.  Affected file lib/silccore/idcache.c.
8025
8026 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8027
8028         * Changed the client library to use the new ID Cache interface.
8029           Changes around the source tree.
8030
8031         * Added silc_hash_table_rehash_ext to rehash with specific
8032           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8033
8034         * Added silc_hash_string_compare to compare two strings in the
8035           hash table.  Affected file lib/silcutil/silcutil.[ch].
8036
8037 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8038
8039         * Added new function silc_idcache_del_by_context into the
8040           lib/silccore/idcache.[ch].
8041
8042         * Changed the server's ID list routines to use the new ID Cache
8043           interface.  Changes around the source tree.
8044
8045 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8046
8047         * Added silc_hash_table_del[_by_context]_ext functions in to the
8048           lib/silcutil/silchashtable.[ch].
8049
8050           Removed silc_hash_table_find_all* routines and added new
8051           silc_hash_table_find_foreach to replace them.
8052
8053           Added silc_hash_table_replace_ext function as extended
8054           replacing function.  Separated the simple hash table interface
8055           from the extended hash table interface in the file
8056           lib/silcutil/silchashtable.h.
8057
8058         * Fixed minor bugs and changed it to use some of the new
8059           hash table functions in lib/silccore/idcache.c
8060
8061 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8062
8063         * Added new function silc_hash_table_find_all to return all keys
8064           in the hash table by the specified key.  As the hash table is
8065           collision resistant it also makes it possible to have several
8066           duplicate keys in the hash table.  This function may be used to
8067           find all of the keys from the hash.
8068
8069           Added user_context arguments to the SilcHashFunction,
8070           SilcHashCompare and SilcHashDestructor to deliver user specified
8071           context.
8072
8073           Added new fuctions silc_hash_table_find[_all]_ext to do
8074           extended lookup with specified hash and compare functions and
8075           specified user contexts.
8076
8077           Added new function silc_hash_table_add_ext to add the key
8078           with specified hash function and user context.
8079
8080           Added new function silc_hash_table_foreach to traverse all
8081           entrys in the hash table.  Added SilcHashForeach callback
8082           function.
8083
8084           Added new function silc_hash_table_del_by_context to delete
8085           the entry only if the context associated with the key matches.
8086
8087           Affected files are lib/silcutil/silchashtable.[ch].
8088
8089         * Removed silc_hash_[server/client/channel]_id and added just
8090           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8091           silc_hash_id_compare to compare two ID's using as the hash table
8092           comparison function.  Added also silc_hash_data to hash
8093           binary data and silc_hash_data_compare to compare it.
8094
8095         * Removed silc_idlist_find_client_by_hash as it is not needed
8096           anymore.  Affected file silcd/idlist.[ch].
8097
8098         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8099           to use internally the SilcHashTable.  The new ID Cache is a lot
8100           faster than the old one.  Some of the ID Cache interface was also
8101           rewritten and obsolete and stupid functions were removed.
8102
8103 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8104
8105         * Added entry_count field to the SilcHashTable to keep the number
8106           of the entries in the table.  Implemented the function
8107           silc_hash_table_rehash.  Added new function
8108           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8109
8110           Fixed a minor bug in silc_hash_table_free.
8111
8112         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8113           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8114           into the lib/silcutil/silcutil.[ch].
8115
8116 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8117
8118         * Implemented a collision resistant hash table into the
8119           lib/silcutil/silchashtable[ch].  See the header and the source
8120           for the SilcHashTable API.
8121
8122 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8123
8124         * Merged dotconf version 1.0.2 into lib/dotconf.
8125
8126 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8127
8128         * Do not compile anything in lib/silcsim/* if the SIM support
8129           is not enabled.  The tree should now compile without problems
8130           under cygwin.
8131
8132 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8133
8134         * Compiled the SILC under cygwin.  Compiled and tested briefly
8135           without problems.  More tests needed.  The SIMs didn't compile
8136           though.
8137
8138         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8139
8140         * Fixed possible crash in silc_get_username in the
8141           lib/silcutil/silcutil.c.
8142
8143 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8144
8145         * Fixed a va_arg in silc/client_ops.c.
8146
8147         * Oops, RC5 routines were named AES and caused some problems
8148           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8149
8150 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8151
8152         * Added new SilcIDIP structure into the lib/silccore/id.h and
8153           replaced the old `ip' fields from all SILC ID's to that type.
8154           This is a step towards IPv6 support.
8155
8156           The silc_id_get_len takes now the ID as an extra argument.
8157           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8158           both IPv4 and IPv6 based ID's.
8159
8160           The affected files are lib/silccore/id.[ch] and other files
8161           around the tree using these routines.
8162
8163         * Removed the ID length arguments in server from various
8164           silc_server_send_notify_* routines -> they are not needed
8165           anymore.
8166
8167 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8168
8169         * Fixed memory leak in silc_encode_pem_file in the file
8170           lib/silcutil/silcutil.c.
8171
8172 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8173
8174         * Check minor version as well in the SKE.  Affected files are
8175           silcd/protocol.c and lib/silcclient/protocol.c.
8176
8177         * Added --identifier option to the server so that an identifier
8178           can be when creating the public key for the server.  Affected
8179           file is silcd/silcd.c.
8180
8181         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8182           lib/silccrypt/silcpkcs.c.
8183
8184 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8185
8186         * Register default ciphers and stuff when using -C option with
8187           the server.  Affected file sildc/silcd.c.
8188
8189         * Put back the servers public key filename format, it is better
8190           than the new one.  For now, the client keys are saved with the
8191           new filename format.  The affected file silc/client_ops.c.
8192
8193         * Implemented the Cipher API for the rest of the ciphers that
8194           did not implement it or implemented it the wrong way.
8195
8196 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8197
8198         * Register default ciphers and stuff when using the -S option
8199           in the client.  Affected file silc/silc.c.  Same also when
8200           creating new key pair with -C option.
8201
8202 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8203
8204         * Fixed the silc_verify_public_key client operation function to
8205           save the public keys differently.  The fingerprint is now
8206           used as filename and not the hostname.  This way also the
8207           client keys are saved uniquely and not with hostnames.  The
8208           affected file is silc/client_ops.c.
8209
8210         * Trimmed the silc_hash_fingerprint function to remove extra
8211           whitespaces from the end of the fingerprint.  The affected
8212           file is lib/silccrypt/silchash.c.
8213
8214         * Updated TODO.
8215
8216         * Added silc_cipher_register_default function to register all
8217           default ciphers.  It can be used when configuration files
8218           does not exist and the application does not want any specific
8219           ciphers in any specific order.
8220
8221           The SilcDList is now used as silc_cipher_list dynamically
8222           allocated cipher list.  Removed the static list all together
8223           and now all ciphers must be allocated to the dynamic list.
8224           The silc_cipher_alloc routine was changed to check only the
8225           dynamic list.
8226
8227           All silc_cipher_* routines that used to return int returns
8228           now bool.
8229
8230           The affected files lib/silccrypt/silccrypt.[ch].
8231
8232         * The same thing was done to silc_hash_* as for silc_cipher_*
8233           routines.  Affected files lib/silccrypt/silchash.[ch].
8234
8235         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8236           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8237           Added also silc_pkcs_[un]register[_default] functions.
8238           Removed the data_context from the PKCS API.
8239
8240         * Added silc_hmac_register_default function to register default
8241           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
8242           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
8243           to unregister all hmacs at once.
8244
8245         * Register the default ciphers, hash functions, PKCSs and HMACs
8246           if client's configuration file does not exist.  The affected
8247           file silc/silc.c.
8248
8249         * The client did not load the hash functions from the SIM
8250           modules at all.  Added support for this.  Affected file is
8251           silc/clientconfig.c.
8252
8253         * When decoding public key with silc_pkcs_public_key_decode, check
8254           the supported algorithm only if PKCS are registered.  Affected
8255           file lib/silccrypt/silcpkcs.c.  The same was done with the
8256           silc_pkcs_private_key_decode.
8257
8258         * Fixed the SILC List routines to keep the list always in order.
8259           It used to change the list's order when traversing the list but
8260           not it preserves the order.  Affected file lib/trq/silclist.h.
8261
8262 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8263
8264         * Added the client library to use the SilcSocketConnection's
8265           reference counter (by silc_socket_dup) to prevent the bug that
8266           the socket object may be freed underneath async operation.
8267
8268         * The name resolv library checking fixes in the configure.in.pre.
8269           The patch by salo.
8270
8271         * Created new version of the protocol drafts for future
8272           development. The -03 drafts are the ones that will be changed
8273           in the trunk now and the -02 will remain as they are.
8274
8275         * Send list of CUMODE notifys to the router when announcing
8276           the channel users to the router.  Affected file silcd/server.c.
8277           If the router receiving channel founder CUMODE for a channel
8278           that already has channel founder it will send CUMODE notify
8279           to the sender to remove the channel founder rights from the
8280           announced client.  Affected file silcd/packet_receive.c.
8281
8282         * The CUMODE notify may now use Server ID as well as the entity
8283           who changes the mode.  Updated protocool specs.
8284
8285         * Updated INSTALL and README files.
8286
8287 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8288
8289         * New web pages in the http://silc.pspt.fi.  The pages was
8290           designed by salo.
8291
8292         * Updated CREDITS.
8293
8294 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8295
8296         * Implemented the [DenyConnectin] config section in the server.
8297           Added silc_server_config_denied_conn to check whether incoming
8298           connection is denied.  Affected file silcd/serverconfig.[ch].
8299
8300         * Do not check the ports when checking the incoming configuration
8301           data if the port is 0, meaning any.  Affected file is
8302           silcd/serverconfig.c.
8303
8304 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8305
8306         * Fixed buffer overflow in silc_string_compare in the file
8307           lib/silcutil/silcutil.c.
8308
8309         * Fixed double free in silc_server_command_leave in the file
8310           silcd/command.c.
8311
8312 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8313
8314         * Fixed the version checking in the server.  Affected file is
8315           silcd/protocol.c.
8316
8317 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8318
8319         * Fixed the configuration data fetching when accepting new
8320           connections in the server.  Affected file silcd/server.c.
8321
8322 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8323
8324         * Added `sender_entry' argument to the function
8325           silc_server_packet_relay_to_channel so that we can check
8326           whether some destination actually belongs to the same route
8327           the sender belongs (ie, we must not resend the packet to the
8328           sender).  Affected file silcd/packet_send.[ch].
8329
8330         * Added `servername' field to the SilcClientEntry in the server
8331           to hold the name of the server where client is from.  Affected
8332           file is silcd/idlist.h.
8333
8334 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8335
8336         * Moved the channel message encrypting in the router betwen
8337           router connections from silc_server_channel_message to the
8338           silc_server_packet_relay_to_channel since we want to check
8339           whether we have anybody channel before encrypting anything.
8340           Affected files silcd/packet_[receive/send].c.
8341
8342 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8343
8344         * Fixed the [AdminConnection] server config section to support
8345           multiple entries.  Affected file silcd/serverconfig.c.
8346
8347         * Added support into the server to check the validity of the
8348           incoming connection before executing any KE or authentication
8349           protocols.
8350
8351         * The connection configuration is now saved to the KE and
8352           connection auth protocol contexts and not fetched anymore in
8353           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
8354
8355         * The local hosts listenning address and port is also resolved
8356           now when starting the server.  We want to have the socket object
8357           to include the real address and port for the listener.  Added
8358           new function silc_net_check_local_by_sock into the files
8359           lib/silcutil/silcnet.[ch].
8360
8361         * Fixed a broadcast bug in server -> do not broadcast if we
8362           are standalone.
8363
8364         * Fixed a routing bug.  Do not route broadcast packets ever.
8365           Broadcast packets must be processed always and not routed since
8366           they may be destined to some other host than yourself and thus
8367           would get routed without no good reason.  Affected file is
8368           silcd/server.c.
8369
8370         * Added function silc_server_config_is_primary_route to check
8371           whether primary router connection has been configured (a router
8372           configuration that we are initiating).  If there is not, we
8373           will assume that there is only two routers in the SILC network
8374           and we will use the incoming router connection as our primary
8375           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
8376
8377         * Changed the order of the broadcasting.  Broadcast _after_ the
8378           packet has been processed not before.  Affected file is
8379           silcd/server.c.
8380
8381         * Fixed a [ClientConnection] parsing bug.  The port was never
8382           parsed correctly thus resulting to port 0.  Affected file
8383           silcd/serverconfig.c.
8384
8385         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
8386           argument and did not set the broadcast packet flag.  Affected
8387           file silcd/packet_send.c.  Fixed same bug in the function
8388           silc_server_send_notify as well.
8389
8390         * If we receive NEW_ID packet for our own ID in the server, ignore
8391           the packet.
8392
8393 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8394
8395         * Updated TODO.
8396
8397         * Removed the nickname from the Private Message Payload.
8398           Updated the code and the protocol specs.
8399
8400         * Updated protocol specs for submitting to the IETF.
8401
8402         * Tweaked the Random Number Generator a bit.  Affected file
8403           lib/silccrypt/silcrng.c.  Exported a new function
8404           silc_rng_[global]_add_noise which can be used to add more
8405           noise to the RNG.
8406
8407 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8408
8409         * Do not parse packets with different timeout when protocol
8410           is active -> may cause problem with rekey.  Affected file
8411           silcd/server.c.
8412
8413         * When server receives signoff notify it must not create
8414           new channel key if the client is on any channels since the
8415           sender of the signoff notify will create it.
8416
8417 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8418
8419         * Added printing of error messages during SKE protocol from the
8420           failure packet sent by server during SKE.  Affected file
8421           silc/client_ops.c.
8422
8423         * Removed the client's failure_callback handling with timeout
8424           and handle it immediately when received.
8425
8426         * The SKE library returned wrong type in SUCCESS and FAILURE
8427           packets.  They must be 32 bit MSB not 16 bit MSB.
8428
8429 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8430
8431         * Ok, rewrote the logic of the re-key and now it seems to work.
8432           I tested it on high traffic with frequent re-keys without
8433           problems.  Added hmac_receive (and renamed hmac to hmac_send)
8434           in SilcClientConnection in lib/silcclient/client.h and
8435           in SilcIDListData in silcd/idlist.h.  Also, removed the
8436           SilcPacketParserContext's cipher and hmac fields as they are
8437           not needed anymore and actually caused some problems when
8438           the ciphers and hmac's changed underneath the packet parser.
8439
8440 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8441
8442         * If re-key protocol is active then process the incoming packets
8443           synchronously since we must assure that icoming packets encrypted
8444           with the old key is processed before the new keys is set to
8445           use.  This is true other packets than for REKEY packets.
8446           Affected file silcd/server.c.  The same was done to client library
8447           as well, affected file lib/silcclient/client.c.
8448
8449 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8450
8451         * Fixed bug in client and server to accept the force send if
8452           the packet is send from silc_[server/client]_packet_process
8453           function.  Otherwise the packets are never delivered, oops.
8454
8455 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8456
8457         * Disable force sending of packets when REKEY protocol is active.
8458           We must assure that no packet is sent directly when rekey is
8459           performed.  All packets must be sent through packet queue.
8460           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
8461           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
8462           function is silc_[server/client]_packet_send_real to check
8463           the situation.
8464
8465         * Replaced the SIM paths from example config files to
8466           /usr/local/modules.  Also, make install creates now
8467           /usr/local/silc/logs directory to hold all the SILC server
8468           logs.
8469
8470 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8471
8472         * Made the configure.in.pre work on Solaris.  Patch by salo.
8473
8474         * Made all ciphers compatible with non-x86 machines.  Defined
8475           CBC mode macros into lib/silccrypt/ciphers_def.h.
8476
8477 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8478
8479         * Fixed the make install.
8480
8481 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8482
8483         * When MAC computation fails the silc_packet_decrypt returned 0
8484           even though it was supposed to return -1.  Fixed this.  The
8485           affected file is lib/silccore/silcpacket.c.
8486
8487         * Do not replace the config files in /etc/silc (in make install)
8488           if they already exist.  Affected file ./Makefile.am.
8489
8490         * Do not send re-key packets immediately but through packet queue.
8491           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
8492
8493         * Changed silc_net_check_host_by_sock to return FALSE if the
8494           IP/DNS could not be resolved.  Though, it returns the IP address
8495           now even if it could not resolve it (but returns also FALSE).
8496           Affected file lib/silcutil/silcnet.[ch].
8497
8498 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8499
8500         * Added silc_pkcs_decode_identifier to decode the public key's
8501           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
8502           Added also silc_pkcs_free_identifier.  Added also new context
8503           SilcPublicKeyIdentifier.
8504
8505         * Added -S option to the silc client.  It is used to dump the
8506           contents of the specified public key file.
8507
8508         * Changed the PKCS api to return the public key length when
8509           setting the public key.
8510
8511         * Fixed a fatal bug in the public and private key file loading.
8512           Affected file lib/silccrypt/silcpkcs.c.
8513
8514         * Execute the packet parsing for client with zero (0) timeout
8515           if the protocol is active.  Affected file silcd/server.c.
8516
8517 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8518
8519         * Made the key generation options to the silcd program.  Added
8520           -C option, equivalent to client's option.
8521
8522         * Added new [ServerKeys] config section to the server.  It
8523           configures the server's public and private key.
8524
8525         * Defined generic Public Key Payload into the protocol
8526           specification to send specific type of public keys and
8527           certificates.
8528
8529         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
8530           public key or certificate.
8531
8532         * Implemented the GETKEY command to the server and to the
8533           client library and on user interface.
8534
8535 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8536
8537         * Made preliminary `make install' work.
8538
8539 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8540
8541         * Added SilcServerRekey context into silcd/idlist.h.
8542
8543         * Added the PFS support as defined in the specification to the
8544           SKE protocol.  Affected files lib/silcske/*.c.
8545
8546         * Added `ske_group' field to the SilcServerRekey context to hold
8547           the number of the SKE group that is used with PFS in re-key.
8548           Affected file silcd/idlist.h.
8549
8550         * Added PFS re-key support to the server.  Affected file is
8551           silcd/protocol.c.
8552
8553         * Added silc_protocol_cancel to cancel execution of the next
8554           state of the protocol.  Affected file is
8555           lib/silccore/silcprotocol.[ch].
8556
8557         * Added the re-key support with and without PFS to the client
8558           library.  Re-key is performed once in an hour, by default.
8559
8560           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
8561           Added silc_client_rekey_callback and silc_client_rekey_final.
8562           Affected files are lib/silcclient/protocol.[ch] and
8563           lib/silcclient/client.[ch].
8564
8565         * Removed the `hmac_key' and `hmac_key_len' fields from the
8566           SilcClientConnection structure; not needed.  Affected file is
8567           lib/silcclient/client.h.
8568
8569         * Updated TODO.
8570
8571 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8572
8573         * Do not ask whether user wants to use the negotiated private key
8574           for private messages, just use it.  Affected file is
8575           silc/local_command.c.
8576
8577         * Added `send_enc_key' and `enc_key_len' fields to the
8578           SilcIDListData structure since they are needed in the re-key
8579           phase.  Affected file is silcd/idlist.[ch].
8580
8581         * Implemented the simple re-key protocol into the server.
8582           Affected files silcd/server.c and silcd/protocol.[ch].  The
8583           re-key will be performed once in an hour, by default.
8584
8585           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
8586           Added silc_server_rekey, silc_server_rekey_callback and
8587           silc_server_rekey_final.
8588
8589         * Removed Tunneled flag from the protocol.  Updated the code
8590           and the specifications.
8591
8592         * Adde `pfs' field to the SilcIDListData to indicate whether
8593           the PFS is to be performed in the re-key.  Affected file is
8594           silcd/idlist.h.
8595
8596 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8597
8598         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
8599           int64 of at least the xintXX size.  If void * is less that 4
8600           bytes uint32 * will be used.  Defined bool as boolean.
8601
8602         * Changed _ALL_ unsigned long and unsigned int to uint32,
8603           unsgined short to uint16 in the source tree.
8604
8605         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
8606           not handle clients that has entry->data.registered == FALSE.
8607           They are not in the network anymore.  Affected file is
8608           silcd/server.c.
8609
8610 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8611
8612         * Implemented the sending of the SERVER_SIGNOFF notify in the
8613           server.  Affected file is silcd/server.c.
8614
8615         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
8616           Added also silc_notify_payload_encode_args into the
8617           lib/silccore/silcnotify.[ch].
8618
8619         * Implemented ther SERVER_SIGNOFF notify handling in the server.
8620           Affected file silcd/packet_receive.c.
8621
8622         * Implemented the SERVER_SIGNOFF notify handling in the client
8623           library.  Affected file lib/silcclient/client_notify.c.  Also,
8624           implemnted the printing of the SERVER_SIGNOFF info to the
8625           application.  Affected file silc/client_ops.c.
8626
8627         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
8628           if the deleting was successful.  Affected file silcd/idlist.[ch].
8629
8630         * Added support for public key authentication in the connection
8631           authentication protocol in the client library.  Affected file
8632           lib/silcclient/protocol.c.
8633
8634         * Changed the server's silc_idlist_get_clients_by_* interface
8635           to support already allocated array so that new entries may be
8636           added to pre-allocated array.  Affected file silcd/idlist.[ch].
8637           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
8638           and command replies.
8639
8640         * All command reply functions in the server now calls the
8641           pending command callback even if error occured.  This way the
8642           error will be delivered to the client as well.  Affected files
8643           silcd/command.c and silcd/command_reply.c.
8644
8645         * Fixed INFO command to return local server's info if no server
8646           was provided.  Affected file lib/silcclient/command.c.
8647
8648         * Removed RESTART command for good.  Updated the code and the
8649           protocol specs.
8650
8651         * Rewrote parts of the task system.  It is a bit simpler now.
8652           Removed unsued task priorities. The affected files are
8653           lib/silcutil/silctask.[ch].
8654
8655 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8656
8657         * Moved the USERS printing from the library to the application.
8658           Affected files lib/silcclient/command.c and silc/client_ops.c.
8659
8660 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8661
8662         * Updated TODO.
8663
8664         * Added channel key re-key support.  The re-key is perfomed
8665           only by the router and is done once in an hour.  Added `rekey'
8666           field to the SilcChannelEntry in the server.  Affected files
8667           silcd/server.c and silcd/idlist.h.
8668
8669         * Added silc_task_unregister_by_context into the file
8670           lib/silcutil/silctask.[ch].
8671
8672 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8673
8674         * Added SILC_UMODE_GONE mode to indicate when the client is not
8675           present in the SILC network.  Added also support to the local
8676           command AWAY that will set this mode.  Added support of showing
8677           "xxx is gone" in WHOIS command.  The USERS command shows the
8678           gone status as well.
8679
8680         * Fixed setting server and router operator privileges in the
8681           server's UMODE command.  Affected file silcd/command.c.
8682
8683         * Merged the SKE KE1 and KE2 payloads into one payload.  The
8684           new KE payload is equivalent to the old KE2 payload.
8685
8686           Cleaned up the SKE Start Payload parsing.  It now uses the
8687           simple buffer unformatting to do the parsing.  A lot faster
8688           now.
8689
8690           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
8691           to the SKE that is used to indicate whether both of the SKE
8692           parties should perform authentication.  By default only the
8693           responder performs authentication.  By setting this flag also
8694           the initiator must do authentication.  By default it is unset
8695           since in normal SKE case, client to server connection, only
8696           the responder should do authentication.  When doing SKE between
8697           two clients both should perform authentication.  Updated the
8698           code and the protocol specs.
8699
8700         * A little fix to IDENTIFY command in the server.  Search the
8701           client first by hash not nickname.  Affected file is
8702           silcd/command.c.
8703
8704         * Fixed the silc_client_close_connection to support closing
8705           the client to client connections wihtout deleting too much
8706           data.  Affected file lib/silcclient/client.c.
8707
8708         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
8709           are received if protocol used to be active but is not anymore
8710           the application would crash due to NULL pointer dereference.
8711           Affected files silcd/server.c and lib/silcclient/client.c.
8712
8713         * Added `hash' field to the SilcClientConnection to include
8714           the hash function negotiated in the SKE protocol.
8715
8716         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
8717           to set the channel founder authentication data.  A client can
8718           claim the founder rights later by providing the authentication
8719           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
8720           This way the channel founder can regain the channel founder
8721           privileges even it is left the channel.  This works only on
8722           local server and the client must be connected to the same
8723           server to be able to regain the founder rights.  Updated the
8724           protocol specs accordingly.
8725
8726           Added support to the CMODE command in the client to set the
8727           founder auth data.  Read the README to see how to set it.
8728
8729           Added support to the CUMODE command to claim the founder
8730           rights.  Read the README to see how to do it.
8731
8732           Added support for the founder authentication to the Channel
8733           Entry in the server.  Affected file silcd/idlist.h.
8734
8735           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
8736           server's CMODE command.  Affected file silcd/command.c.
8737
8738         * Added the following new functions into lib/silccore/silcauth.[ch]:
8739           silc_auth_get_method and silc_auth_get_data.
8740
8741         * The server now saves the remote hosts public key to the
8742           SilcIDListData pointer.  Affected file silcd/protocol.c.
8743
8744         * The normal server now does not remove the channel entry from
8745           the cache if the founder authentication data is set.  It used
8746           to remove it if the founder was the last one on the channel on
8747           the server and left the channel.  The auth data is saved and
8748           if the channel is re-joined later the old entry is used with
8749           the old auth data.  Affected files silcd/command_reply.c and
8750           silcd/server.c.
8751
8752         * Removed the `pkcs' field from the SilcIDListData structure
8753           in the server; it is not used.  Affected file silcd/idlist.h.
8754
8755 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8756
8757         * Fixed packet processing on slow links.  Partial packets were
8758           never re-processed because the incoming data buffer was cleared
8759           by the application.  Application must not directly clear the
8760           sock->inbuf, the packet processing routines handle it.  Fixed
8761           this in client library and in server.
8762
8763 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8764
8765         * Fixed the WHOIS and IDENTIFY send reply function to really
8766           check whether to send list or just one entry.  Affected file
8767           silcd/command.c.
8768
8769         * Cleaned up the LEAVE command's channel key distribution.  The
8770           affected file silcd/command.c.
8771
8772         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
8773           can enforce the channel mode as well.  In that case the ID
8774           includes the ID of the server.  The code now enforces the
8775           mode change if the router have different mode than the server.
8776
8777         * The notify client operation with CMODE_CHANGE notify can now
8778           return NULL client_entry pointer if the CMODE was not changed
8779           by client.  Application must check for this.
8780
8781         * Added <Server ID> argument to INFO command to support server
8782           info fetching by Server ID.
8783
8784         * Added silc_server_announce_get_channel_users to get assembled
8785           packets of channel users of the specified channel.  Affected
8786           file silcd/server.[ch].
8787
8788         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
8789           was freed underneath the ID Cache.
8790
8791         * Re-announce clients when the server received CHANNEL_CHANGE
8792           notify from the router.  Affected file silcd/packet_send.c.
8793
8794 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8795
8796         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
8797           crashed since it did not handle the fact that there is no cipher
8798           called "3" and didn't check the error condition.  Now fixed.
8799
8800         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
8801           flag.  It can be used to send message requests.
8802
8803 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8804
8805         * Implemented the RESTART command in the client.
8806
8807         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
8808           notice type messages.  Added notice printing to the user
8809           interface.
8810
8811         * The channel keys are not re-generated if the channel's mode
8812           is PRIVKEY, ie private key on the channel exists.  Affected
8813           files silcd/server.c and silcd/command.c.
8814
8815         * Fixed a little bug in channel message delivery when channel
8816           private keys are set in the server.  Affected file is
8817           silcd/packet_send.c.
8818
8819         * Changed the setting on channel->on_channel = TRUE from the
8820           silc_client_save_channel_key to the JOIN command reply.  The
8821           key payload is not received if the private channel key is set.
8822           Affected file lib/silcclient/command_reply.c and the
8823           lib/silcclient/client_channel.c.
8824
8825         * When the CMODE_CHANGE notify is sent and the channel private
8826           key mode is removed the channel key must be re-generated in
8827           other cells as well.  Added this support for the router in the
8828           silcd/packet_receive.c.
8829
8830         * Added new local command NOTICE to send notice message on
8831           channel.  Affected file silc/local_command.[ch].
8832
8833 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8834
8835         * Added new local command ME to the client.  It is used to send
8836           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
8837           some action.  Affected file silc/local_command.[ch].
8838
8839         * Changed channel_message and private_message client operations
8840           to deliver the message flags to the application.  Added also
8841           the `flags' arguments to the silc_client_send_channel_message
8842           and silc_client_send_private_message functions.  Affected file
8843           silcapi.h.
8844
8845 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8846
8847         * Redefined the Private Message Payload to support private message
8848           keys and to support the new private message flags.  Updated
8849           the protocol specs.  Flags makes it possible to have for example
8850           CTCP style messages.
8851
8852         * Added new type SilcPrivateMessagePayload and defined an API
8853           for it in the lib/silcclient/silcprivate.[ch].
8854
8855         * Tested private message private keys successfully.  Tested the
8856           private message key set, unset and list commands with the new
8857           KEY command.
8858
8859         * Redefined the Channel Message Payload to include the channel
8860           message flags (equal with private message flags) to support
8861           for example CTCP style messages.
8862
8863         * Defined some of the message (for channel and private message)
8864           flags.  Updated the protocol specs and added the flags to the
8865           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
8866
8867 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8868
8869         * Added SilcKeyAgreementStatus type to the key agreement routines
8870           to indicate the current status and error if one occured.
8871           The status types are defined in the lib/silcclient/silcapi.h.
8872
8873         * Added new local command KEY that is used to set and unset private
8874           keys for channels, set and unset private keys for private messages
8875           with remote clients and to send key agreement requests and
8876           negotiate the key agreement protocol with remote client.  The
8877           key agreement is supported only to negotiate private message keys,
8878           it currently cannot be used to negotiate private keys for channels,
8879           as it is not convenient for that purpose.
8880
8881         * Fixed a minor pending callback setting bug in the function
8882           silc_client_get_client_by_id_resolve, now the function works.
8883           Affected file lib/silcclient/idlist.c.
8884
8885         * Added function silc_net_get_local_port to get local bound
8886           port by socket.  Added to lib/silcutil/silcnet.[ch].
8887
8888         * Added `sockets' and `sockets_count' fields to the SilcClient
8889           object.  They hold the sockets of the listenning sockets in
8890           the client.  Listenning sockets may be for example the key
8891           agreement server.  Affected file lib/silcclient/client.[ch].
8892           Added functions the silc_client_add_socket and the
8893           silc_client_del_socket.  They are exported to the application
8894           as well.
8895
8896         * Added ~./silc/clientkeys to support other client's public keys.
8897
8898         * Renamed verify_server_key client operation to verify_public_key
8899           and added one argument to indicate the type of the connection
8900           (server, client etc.).
8901
8902 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8903
8904         * Added silc_server_connection_auth_request to handle the
8905           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
8906           silcd/packet_receive.[ch].
8907
8908         * Added silc_server_send_connection_auth_request into the
8909           silcd/packet_send.c to send the connection auth request packet.
8910
8911         * Cleaned up the silcd/protocol.c a bit and fixed some memory
8912           leaks.
8913
8914         * Fixed the public key authentication in responder side in the
8915           server.  The `auth_data' pointer includes the SilcPublicKey
8916           not the path to the public key.  Affected file silcd/protocol.c.
8917
8918         * Implemented the public key authentication in the initiator side
8919           in the server.  Affected file silcd/protocol.c.
8920
8921         * Removed the [RedirectClient] config section from the server
8922           configuration.  Is not needed and I don't want to implement it.
8923
8924 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8925
8926         * Cleaned up the CMODE command in the server.  It now works
8927           correctly and supports all the modes defined in the protocol.
8928           Affected file is silcd/command.c.
8929
8930         * Added `hmac_name' field to the SilcChannelEntry in the server
8931           to hold the default HMAC of the channel.  It can be set when
8932           creating the channel (with JOIN command).  Affected files
8933           silcd/idlist.[ch].
8934
8935         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
8936           type to indicate the change of the current cipher and hmac
8937           on the channel.  Client can safely ignore the <cipher> argument
8938           (if it chooses to do so) since the CHANNEL_KEY packet will
8939           force the channel key change anyway.  The <hmac> argument is
8940           important since the client is responsible of setting the new
8941           HMAC and the hmac key into use.
8942
8943         * Fixed the CMODE command in the client library as well.
8944
8945         * Tested CMODE command in router environment successfully.
8946
8947 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8948
8949         * Show the version of the remote client (or server) when connecting
8950           to the server.  It is logged to the log file.  Affected file
8951           is silcd/protocol.c.
8952
8953         * Fixed the KILLED notify handling in the client library.  The
8954           client must be removed from all channels when receiving the
8955           KILLED notify.
8956
8957           Also, do not remove the client entry when giving the KILL
8958           command but when the KILLED notify is received.
8959
8960         * Removed silc_idlist_find_client_by_nickname from the server.
8961           Not needed anymore.  Affected files silcd/idlist.[ch].
8962
8963         * Implemented the CHANNEL_CHANGE notify type handling to the
8964           server.  Affected file silcd/server.c.
8965
8966         * Updated TODO.
8967
8968 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8969
8970         * Added silc_server_send_notify_invite to send the INVITE
8971           notify between routers.
8972
8973         * Implemented the INVITE command correctly to the server.
8974
8975         * Implemented the INVITE notify type handling in the server.
8976
8977         * Implemented the INVITE command to the client library and on the
8978           user interface.
8979
8980 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8981
8982         * Added function silc_server_get_client_resolve to find the
8983           client entry by ID from all ID lists and then resolve it
8984           (using WHOIS) if it cannot be found.  Affected file is
8985           silcd/server.[ch].
8986
8987 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8988
8989         * Implemented the BAN command to the client library.
8990
8991         * The JOIN command in the server now checks the invite list
8992           and the ban list.
8993
8994         * Changed the silc_command_reply_payload_encode_va and the
8995           silc_command_payload_encode_va to support that if argument is
8996           NULL it ignores and checks the next argument.  Affected file
8997           lib/silccore/silccommand.c.
8998
8999         * Added silc_server_send_notify_ban to send the BAN notify
9000           type between routers.
9001
9002         * Chaned the silc_notify_payload_encode to support that if
9003           argument is NULL it ignores and checks the next argument.
9004           Affected file lib/silccore/silcnotify.c.
9005
9006         * Tested ban lists in router environment successfully.
9007
9008 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9009
9010         * Implemented BAN command to the server, in silcd/command.[ch].
9011
9012         * Removed the BAN and INVITE_LIST modes from the CMODE command
9013           in the server code.
9014
9015         * Added function silc_string_match to regex match two strings.
9016           Affected files lib/silcutil/silcutil.[ch].
9017
9018 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9019
9020         * Redefined parts of the SilcChannelEntry in the server to support
9021           the new ban and invite lists.
9022
9023 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9024
9025         * Redefined the INVITE command.  The same command can be used to
9026           invite individuals to the channel but also to manage the invite
9027           list of the channel (to add to and remove from the invite list).
9028           Updated the protocol specs.
9029
9030         * Added new command SILC_COMMAND_BAN that can be used to manage
9031           the ban list of the channel.  Updated the protocol specs.
9032
9033         * Removed the channel modes: the SILC_CMODE_BAN and the
9034           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9035           in the CMODE command.  The equivalent features are now available
9036           using INVITE and BAN commands.  Updated the protocol specs.
9037
9038         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9039           in the network about change in the current ban list.  The notify
9040           type is not used by the client.
9041
9042         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9043           support the invite lists.
9044
9045 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9046
9047         * Added new function silc_string_regexify that converts string
9048           including wildcard characters into regex string that can
9049           be used by the GNU regex library.  Added into the file
9050           lib/silcutil/silcutil.[ch].
9051
9052           Added silc_string_regex_combine to combine to regex strings
9053           into one so that they can be used as one regex string by
9054           the GNU regex library.  Added into the file
9055           lib/silcutil/silcutil.[ch].
9056
9057           Added silc_string_regex_match to match two strings.  It returns
9058           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9059
9060 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9061
9062         * Imported GNU regex to the soruce tree into lib/contrib.
9063           Fixed some compiler warning from the regex.c.
9064
9065 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9066
9067         * Fixed MOTD command in the server to work in router environment.
9068
9069         * Fixed the MOTD command in the client library to support
9070           the server argument in the command.
9071
9072         * Added `nickname_len' argument to the silc_idlist_add_client
9073           in the server, as the `nickname' argument may be binary data
9074           (it may be hash).
9075
9076         * Added silc_idlist_get_channels to return all channels from
9077           the ID list.
9078
9079         * Implemented LIST command to the server.  Affected file is
9080           silcd/command.c.
9081
9082         * Implemented the LIST command to the client library and on the
9083           user interface.
9084
9085         * Added [<user count>] argument to the LIST command reply.
9086           With private channels the user count is not shown.
9087
9088         * Updated TODO and README.
9089
9090 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9091
9092         * The client entry's data.registered must be TRUE even with
9093           global client entry on global client list.  The data.registered
9094           is used to check whether the client is anymore in the network,
9095           for example with WHOWAS command so it must be valid.
9096
9097         * Fixed the WHOWAS command in the server.  It now actually works
9098           in router environment.  Added function into silcd/command_reply.c
9099           silc_server_command_reply_whowas_save.
9100
9101         * Added silc_idlist_purge function to the silcd/idlist.c
9102           to periodically purge the ID Cache.
9103
9104         * Fixed INFO command in the server.  It works now in router
9105           environment.  Added <server name> argument to the INFO command
9106           reply.  Updated the protocol specs.
9107
9108         * Fixed minor bug in silc_idcache_purge to not purge if the
9109           expire value is zero.
9110
9111         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9112           they were buggy because of the WHOWAS information.
9113
9114         * Fixed local command MSG to handle the async resolving of
9115           the remote client properly.  It used to fail the first MSG.
9116           Affected file silc/local_command.c.
9117
9118         * Added `data_len' field to SilcIDCache context.
9119
9120 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9121
9122         * Update TODO.  Todo in commands in the server.
9123
9124 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9125
9126         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9127           used by routers as broadcast packet to inform other routers
9128           about the changed user mode.
9129
9130           Implemented the notify handling in the server.  Affected file is
9131           silcd/packet_receive.c.  Added the function
9132           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9133
9134         * Added new generic Channel Payload and deprecated the New Channel
9135           Payload.  The New Channel Payload is now the generic Channel
9136           Payload.
9137
9138         * Added new argument `mode' to the silc_server_send_new_channel
9139           as it is required in the Channel Payload now.
9140
9141         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9142           and created a new and real SilChannelPayload to represent the
9143           new generic Channel Payload.  Implemented the encode/decode
9144           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9145
9146         * Added silc_server_get_client_channel_list to return the list
9147           of channels the client has joined for WHOIS command reply.
9148           Affected file silcd/server.[ch].
9149
9150         * Implemented the channel list sending in the WHOIS command reply
9151           in server and in the client.
9152
9153           Implemented the channel list displaying on the user interface
9154           as well.  Affected file silc/client_ops.c.
9155
9156         * Added silc_channel_payload_parse_list to parse list of Channel
9157           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9158           Client for example can use this function to parse the list of
9159           channels it receives in the WHOIS command reply.  The caller
9160           must free the list by calling silc_channel_payload_list_free.
9161           Affected files lib/silccore/silcchannel.[ch].
9162
9163 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9164
9165         * Added one new argument <user mode> to the WHOIS command reply
9166           to return the mode of the user in SILC.  Updated the protocol
9167           specs.
9168
9169           Implemented it to the server and client.
9170
9171 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9172
9173         * Fixed the mode printing on the user interface on joining.
9174           Affected file silc/client_ops.c.
9175
9176         * Implemented the UMODE command and user modes in general to the
9177           client library and to the user interface.
9178
9179         * Implemented the UMODE command to the server.
9180
9181         * The server now sends UNKNOWN_COMMAND error status if client sends
9182           unknown command.  Affected file silcd/command.c.
9183
9184         * All server commands now handle the command identifier the right
9185           way when sending the command reply to the client.  The client can
9186           use to identify the command replies with the identifier.
9187
9188 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9189
9190         * Added silc_server_get_client_route to resolve the route to
9191           the client indicated by the client ID.  Affected file is
9192           silcd/server.[ch].
9193
9194         * Added silc_server_relay_packet as general function to relay
9195           packet to arbitrary destination.  This deprecates functions
9196           like _send_private_message_key, _relay_notify etc.  Affected
9197           file is silcd/packet_send.[ch].
9198
9199           Removed silc_server_send_key_agreement,
9200           silc_server_send_private_message_key and
9201           silc_server_packet_relay_notify functions from the file
9202           silcd/packet_send.[ch].
9203
9204         * Updated TODO.
9205
9206         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9207           server.  Affected file silcd/packet_receive.[ch].
9208
9209         * Implemented the KILL command to the client.  Implemented the
9210           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9211           Affected files lib/silcclient/command[_reply].c and
9212           lib/silcclient/client_notify.c.  Implemented the KILL notify
9213           printing in the user inteface.
9214
9215         * Fixed a lot silc_parse_nick memory leaks from the client
9216           library in the file lib/silcclient/command.c.
9217
9218         * Changed the silc_server_send_notify_on_channels's `sender'
9219           argument from SilcSocketConnection to SilcClientEntry to
9220           check the sender as entry and not as connection object and not
9221           to send to the client provided as argument.  The affected file
9222           is silcd/packet_send.[ch].
9223
9224         * The notify packets that are destined directly to the client used
9225           to not to be processed by the server.  Now changed that and the
9226           server processes all notify packets.  After relaying the packet
9227           to the client the notify packet is processed in the server.
9228
9229         * The silc_server_free_client_data now checks whether there is
9230           pending outgoing traffic for the client and purges the data to
9231           the network before removing the client entry.
9232
9233 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9234
9235         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9236           an client is killed from the SILC Network.  Updated the protocol
9237           specs accordingly.
9238
9239           Added new function silc_server_send_notify_killed to the
9240           silcd/packet_send.[ch].
9241
9242         * Added function silc_server_packet_relay_notify to relay notify
9243           packets that are destined directly to a client.  In this case
9244           the server does not process the notify packets but merely relays
9245           it to the client.  Affected file silcd/packet_send.[ch].
9246
9247           Added also silc_server_packet_process_relay_notify to check
9248           whereto relay the notify.  Affected file is
9249           silcd/packet_receive.[ch].
9250
9251         * Implemented the KILL command to the server.
9252
9253         * Updated TODO.
9254
9255         * Added the backup schema desgined last fall to the protocol
9256           specs for everyone to see.  The specification is in the
9257           *-spec-xx.txt draft and the packet type definitions for the
9258           backup routers is in *-pp-xx.txt draft.  Thusly, added also
9259           new packet type SILC_PACKET_CELL_ROUTERS.
9260
9261         * A big security problem in the implementation discovered.  The
9262           signoff of an client did not cause new channel key generation
9263           which it of course should've done.  The channel keys must be
9264           always re-generated when client leaves (or signoffs) the channel.
9265           The silc_server_remove_from_channels funtion now handles
9266           the channel key re-generation.
9267
9268         * Added `sender' argument to the silc_server_send_notify_on_channels
9269           to not to send the client provided as argument.  Affected file
9270           silcd/packet_send.[ch].
9271
9272 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9273
9274         * Implemented OPER and SILCOPER commands into the server and
9275           the client library.
9276
9277         * Added silc_auth_verify and silc_auth_verify_data to verify
9278           the authentication directly from the authentication payload.
9279           It supports verifying both passphrase and public key based
9280           authentication.  Affected file lib/silccore/silcauth.[ch].
9281
9282         * Added `hash' field to the SilcIDListData structure.  It is the
9283           hash negotiated in the SKE protocol.  Affected file is
9284           silcd/idlist.[ch].
9285
9286         * Slight redesigning of the SilcAuthPayload handling routines.
9287           Do not send SilcPKCS but SilcPublicKey as argument.
9288
9289         * Implemented the public key authentication support to the
9290           serverconfig.  The public key is loaded from the provided path
9291           and saved as authentication data to void * pointer.  Thus,
9292           changed the unsigned char *auth_data to void *auth_data;
9293
9294         * Fixed SHUTDOWN command to send the reply before the server
9295           is shutdown. :)  Affected file silcd/command.c.
9296
9297         * Fixed fatal bug in CONNECT command.  The hostname was invalid
9298           memory and server crashed.  Affected file silcd/command.c.
9299
9300         * Fixed fatal bug in CLOSE command.  The server_entry became
9301           invalid but was referenced later in the command.  Affected file
9302           silcd/command.c.
9303
9304 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9305
9306         * Fixed fatal bug in failure packet handling.  Server ignored
9307           the failure and thus crashed when it came.
9308
9309         * Updated TODO.
9310
9311 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9312
9313         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
9314           that the command may be executed only once in (about) 2 seconds.
9315           The old SILC_CF_LAG flag is same but allows command bursts up
9316           to five before limiting.
9317
9318           Added the support for CF_LAG and CF_LAG_STRICT flags to the
9319           server code.  Various commands now includes the CF_LAG_STRICT
9320           flag to disallow any kind of miss-use of the command.
9321
9322         * Fixed the silc_buffer_unformat to not to allocate any data
9323           if the length of the data is zero.  It used to allocate the
9324           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
9325
9326 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9327
9328         * Changed the format of AdminConnection configuration section
9329           in the server.  Added username of the admin to the format.
9330           Affected files silcd/serverconfig.[ch].
9331
9332           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
9333           to return admin configuration data by host, username and/or
9334           nickname.
9335
9336 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9337
9338         * Implemented WHOWAS command to the server.  Added the functions:
9339
9340           silc_server_command_whowas_parse,
9341           silc_server_command_whowas_send_reply,
9342           silc_server_command_whowas_from_client and
9343           silc_server_command_whowas_from_server
9344
9345         * Added <Client ID> argument to the WHOWAS command reply.  Updated
9346           the protocol specs accordingly.
9347
9348         * Implemented WHOWAS command and command_reply to the client
9349           library.
9350
9351           Implemented the WHOWAS printing on the user interface.
9352
9353 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9354
9355         * Added new argument to the WHOWAS command reply, the real name.
9356           It is an optional argument.  Updated the protocol specs.
9357
9358         * Added SilcIDCacheDestructor callback that is registered when
9359           the SilcIDCache is allocated.  The callback is called when
9360           an cache entry in the ID Cache expires, or is purged from the
9361           cache.  Added into lib/silccore/idcache.[ch].
9362
9363           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
9364           to destruct the client entries when the cache entry expires.
9365           Other ID Cache's in server and in the client library ignores
9366           the destructor.
9367
9368         * If the ID Cache entry's `expire' field is zero then the entry
9369           never expires.  Added boolean `expire' argument to the
9370           silc_idcache_add function in the lib/silccore/idcache.[ch].
9371           If it is TRUE the default expiry value is used.
9372
9373         * Added silc_server_free_client_data_timeout that is registered
9374           when client disconnects.  By default for 5 minutes we preserve
9375           the client entry for history - for WHOWAS command.
9376
9377 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9378
9379         * Added support to the server to enforce that commands are not
9380           executed more than once in 2 seconds.  If server receives
9381           commands from client more frequently, timeout is registered
9382           to process the commands.  Affected file silcd/command.c.
9383           Added new function silc_server_command_process_timeout.
9384
9385         * Changed NICK_NOTIFY handling in client library to check that
9386           if the client's nickname was changed, so there is no need to
9387           resolve anything from the server.
9388
9389         * Removed error printing from the WHOIS and IDENTIFY commands.
9390           If error occurs then it is ignored silently in the client library.
9391           The application, however, may map the received error to
9392           human readable error string.  The application currently maps
9393           the NO_SUCH_NICKNAME error to string.
9394
9395         * Made the command status message public to the application.  Moved
9396           them from lib/silcclient/command_reply.c to
9397           lib/silcclient/command_reply.h.  The application can map the
9398           received command status to the string with the
9399           silc_client_command_status_message function.
9400
9401         * Added check to the server to check that client's ID is same
9402           as the Source ID in the packet the client sent.  They must
9403           match.
9404
9405 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9406
9407         * Added dist-bzip hook to the Makefile.am to make bzip2
9408           compressed distributions.
9409
9410 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9411
9412         * Server now enforces the maximum length for the nickname and
9413           the channel as protocol specification dictates.  128 bytes for
9414           nickname and 256 bytes for channel name.
9415
9416         * Moved the WHOIS printing to the application.  The client libary
9417           does not print out the WHOIS information anymore, the application
9418           must do it.  Renamed silc_client_command_reply_whois_print to
9419           the silc_client_command_reply_whois_save.
9420
9421           The client's idle time is also sent to the application now, and
9422           the idle is shown on screen.
9423
9424         * Added silc_client_command_reply_identify_save to save the
9425           received IDENTIFY entries.
9426
9427         * Do not check for channel private keys in message sending and
9428           reception if the channel does not have the PRIVKEY mode set.
9429           Affected file lib/silclient/client_channel.c.
9430
9431 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9432
9433         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
9434           just surfaced after chaning the JOIN procedure.
9435
9436 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9437
9438         * Added silc_client_get_clients_by_list to get client entries
9439           from Client ID list, that is returned for example by JOIN
9440           and USERS command replies.  The application should use this
9441           function for example when JOIN command reply is received to
9442           resolve the clients already on the channel (library does not
9443           do that anymore as USERS command reply is not used in the JOIN
9444           procedure anymore).  Affected files lib/silcclient/silcapi.h and
9445           lib/silcclient/idlist.c.
9446
9447         * JOIN command reply and USERS command reply returns now SilcBuffer
9448           pointers instead of unsigned char pointers when returning
9449           the client list and mode list.
9450
9451         * Added <Client ID> argument to the JOIN command reply, mainly
9452           for the server to identify for which client the command was
9453           originally sent.  Updated protocol specs accordingly.
9454
9455         * Added SilcDlist private_key pointer to the SilcChannelEntry
9456           in the client to support the channel private keys.  Affected
9457           file is lib/silcclient/idlist.h.
9458
9459         * Added SilcChannelPrivateKey argument to the function
9460           silc_client_send_channel_message so that application can choose
9461           to use specific private ke if it wants to.  If it is not provided,
9462           the normal channel key is used, unless private keys are set.
9463           In this case the first (key that was added first) is used
9464           as the encryption key.
9465
9466         * Implemented the support for channel private key handling.
9467           Implemented the following functions:
9468
9469           silc_client_add_channel_private_key,
9470           silc_client_del_channel_private_keys,
9471           silc_client_del_channel_private_key,
9472           silc_client_list_channel_private_keys and
9473           silc_client_free_channel_private_keys
9474
9475           Affected file lib/silcclient/client_channel.c.
9476
9477         * Added the support for the private keys in the channel message
9478           sending and encryption and in the message reception and
9479           decryption.  Affected funtions are
9480           silc_client_send_channel_message and silc_client_channel_message.
9481
9482 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9483
9484         * Added SKE's key verify callback to the client library's
9485           KE protocol context. Affected files lib/silcclient/protocol.[ch].
9486
9487         * Removed the statement that server (or router) must send USERS
9488           command reply when joining to the channel so that the client
9489           knows who are on the channel.  Instead, the client list and
9490           client's mode list is now sent in the JOIN command reply to the
9491           client who joined channel.  This is better solution.
9492
9493         * Added function silc_server_get_users_on_channel and function
9494           silc_server_save_users_on_channel to the silcd/server.[ch].
9495
9496         * Removed function silc_server_command_send_users from the
9497           silcd/command.c.
9498
9499         * Do not show topic on the client library anymore.  The topic is
9500           sent in the command reply notify to the application and the
9501           application must show the topic now.
9502
9503 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9504
9505         * Added client searching by nickname hash into the IDENTIFY and
9506           WHOIS commands in the server as they were clearly missing from
9507           them.  Affected file is silcd/command.c.
9508
9509         * Fixed a bug in private message receiving in the client library.
9510           The remote ID was freed and it wasn't supposed, now it is
9511           duplicated.
9512
9513 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9514
9515         * Minor fix to the channel payload; allocate the data area, as it
9516           needs to be of specific length.
9517
9518         * If the key agreement port is zero then the operating
9519           system will define the bound port.  Affected files are
9520           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
9521
9522         * Added new function silc_channel_payload_decrypt into the file
9523           lib/silccore/silcchannel.[ch].
9524
9525         * Moved the channel message etc, check from silc_packet_decrypt
9526           to applications.  The library calls now a generic
9527           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
9528           when the packet is either normal or special.  This was done to
9529           allow more wide range of checking that was not allowed when
9530           the code was in library.  Now applications can do virtually any
9531           checks to the packet and return to the library the decision how
9532           the packet should be processed.  Affected files are
9533           lib/silccore/silcpacket.[ch].
9534
9535           Added silc_server_packet_decrypt_check to the server and
9536           silc_client_packet_decrypt_check to the client library.
9537
9538         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
9539           to send with specified source and destination information.
9540
9541         * Channel message delivery between routers was broken after the
9542           channel key distribution was fixed earlier.  The channel key
9543           was used be to distributed to other routers as well which is not
9544           allowed by the protocol.  Now this is fixed and channel keys
9545           really are cell specific and the channel message delivery between
9546           routers comply with the protocol specification.
9547
9548         * Fixed various commands in server to check also the global list
9549           for the channel entry and not just the local list.  The affected
9550           file silcd/command.c.
9551
9552 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9553
9554         * Added assert()s to buffer formatting and unformatting routines
9555           to assert (if --enable-debug) when error occurs.  Affected
9556           file: lib/silcutil/silcbuffmt.c.
9557
9558         * Changed to auto-reconnect to check whether the remote host is
9559           router and register the re-connect timeout if it is.  It used
9560           to check that whether we are normal server, but router must do
9561           auto-reconnect with another router as well.  Affected file
9562           silcd/server.c.
9563
9564         * Removed the [<key len>] option from CMODE command as the cipher
9565           name decides the key length, nowadays.  See the defined ciphers
9566           from the protocol specification.
9567
9568         * Added [<hmac>] option to the CMODE command to define the HMAC
9569           for the channel.  Added SILC_CMODE_HMAC channel mode.
9570
9571         * Added [<hmac>] option for the JOIN command so that user can
9572           select which HMAC is used to compute the MACs of the channel
9573           messages.
9574
9575         * Added Hmac field to the Channel Message Payload.  The integrity
9576           of plaintext channel messages are now protected by computing
9577           MAC of the message and attaching the MAC to the payload.  The
9578           MAC is encrypted.  Now, it is clear that this causes some
9579           overhead to the size of the packet but rationale for this is that
9580           now the receiver can verify whether the channel message decrypted
9581           correctly and also when private keys are set for the channel the
9582           receiver can decrypt the packet with several keys and check from
9583           the MAC which key decrypted the message correctly.
9584
9585         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
9586           lib/silccrypt/silccipher.[ch].
9587
9588         * Added silc_hash_len to return the digest length into the
9589           lib/silcrypt/silchash.[ch].
9590
9591         * Rewrote parts of Silc Channel Payload interface in the
9592           lib/silccore/silcchannel.[ch].  The encode function now also
9593           encrypts the packet and parse function decrypts it.
9594
9595 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9596
9597         * Fixed a minor formatting bug in the SKE's key material processing.
9598           It actually might have processed the keys wrong way resulting
9599           into wrong keys.
9600
9601         * Redefined the mandatory HMAC algorithms and added new algorithms.
9602           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
9603           and hmac-md5 truncated to 96 bits.  The mandatory is now
9604           hmac-sha1-96.  Rest are optional (including the one that used
9605           to be mandatory).  Rationale for this is that the truncated HMAC
9606           length is sufficient from security point of view and can actually
9607           make the attack against the HMAC harder.  Also, the truncated
9608           HMAC causes less overhead to the packets.  See the RFC2104 for
9609           more information.
9610
9611         * Added new [hmac] configuration section.  The SKE used to use
9612           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
9613           is of course wrong.  The official names that must be proposed in
9614           the SKE are the ones defined in the protocol specification
9615           (hmac-sha1-96 for example).  The user can configure any hmac
9616           using any hash function configured in the [hash] section.  At
9617           least, the mandatory must be configured.
9618
9619           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
9620
9621         * Added HMAC list to the SKE proposal list.  It has now both
9622           hash algorithm list and HMAC list.  This makes the protocol
9623           incompatible with previous versions.  The SKE now seems to work
9624           the way it is supposed to work, for the first time actually.
9625
9626         * Defined plain Hash algorithms to the protocol specification.
9627           Added sha1 and md5.
9628
9629 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9630
9631         * Implemented support for key agreement packets into the server.
9632           Added functions silc_server_key_agreement and
9633           silc_server_send_key_agreement.  Other than these functions,
9634           server has nothing to do with this packet.
9635
9636         * Added support for private message key packets into the server.
9637           Added functions silc_server_private_message_key and
9638           silc_server_send_private_message_key.
9639
9640         * Updated TODO.
9641
9642         * Changed the silc_[client|server]_protocol_ke_set_keys to be
9643           called in the protocol's final callback instead in the END
9644           protocol state.  This makes a little more sense and in the same
9645           time in client we can use the same protocol routines for normal
9646           key exchange and to key agreement packet handling as well.
9647
9648         * Added to both client's and server's KE protocol context the
9649           SilcSKEKeyMaterial pointer to save the key material.  We will
9650           bring the key material to the protocol's final callback by doing
9651           this.  The final callback must free the key material.
9652
9653         * Added SKE's packet_send callback into client's KE protocol
9654           context so that the caller can choose what packet sending function
9655           is used.  This way we can use different packet sending when
9656           doing normal SKE when doing key agreement packet handling (in
9657           the key agreement packet handling we do not want to encrypt
9658           the packets).
9659
9660         * Implemented the responder side of the key agreement routines
9661           in the client.  The client can now bind to specified port and
9662           accept incoming key negotiation.  The key material is passed
9663           to the application after the protocol is over.
9664
9665         * Implemented the processing of incoming Key Agreement packet
9666           in the client.  Added function silc_client_key_agreement to
9667           process the packet.
9668
9669         * Implemented the intiator side of the key agreement routines
9670           in the client.  The client can now initiate key agreement with
9671           another remote client.  The key material is passed to the
9672           application after the protocol is over.
9673
9674         * Created client_keyagr.c to include all the key agreement
9675           routines.
9676
9677         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
9678           SILC_TASK_CALLBACK except that it is not static.
9679
9680         * Created client_notify.c and moved the Notify packet handling
9681           from the client.[ch] into that file.
9682
9683         * Created client_prvmsg.c and moved all private message and
9684           private message key routines from the client.[ch] into that file.
9685
9686         * Create client_channel.c and moved all channel message and
9687           channel private key routines from the client.[ch] into that file.
9688
9689         * Changed silc_client_get_client_by_id_resolve to resolve with
9690           WHOIS command instead of IDENTIFY command, in the file
9691           lib/silclient/idlist.c.
9692
9693 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9694
9695         * Implemented the SKE's responder side to the Client library.
9696
9697         * When FAILURE is received to the protocol do not trust it
9698           blindly.  Register a timeout to wait whether the remote closes
9699           the connection as it should do it, only after that process the
9700           actual failure.  This was changed to both client and server.
9701
9702         * Added client_internal.h to include some of the structures
9703           there instead of client.h in lib/silcclient/.
9704
9705         * Added function silc_task_unregister_by_callback to unregister
9706           timeouts by the callback function.
9707
9708 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9709
9710         * Some "Incomplete WHOIS info" errors has been appearing on the
9711           log files.  Took away the entry->userinfo check from WHOIS
9712           reply sending.  The entry->userinfo is now " " if client did not
9713           provide one.  I thought this was fixed earlier but something
9714           is wrong still.  Let's see if the error still appears.
9715
9716 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9717
9718         * Fixed a minor bug in the login when the channel key is
9719           re-generated in the server.  It used to generate the key in
9720           wrong order and thus caused problems in the channel traffic.
9721
9722         * Fixed a minor bug in channel key distsribution after
9723           KICK command.  The key was not sent to the router even though
9724           it should've been.
9725
9726 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9727
9728         * Added silc_ske_process_key_material_data as generic routine
9729           to process any key material as the SILC protocol dictates.  The
9730           function is used by the actual SKE library but can be used by
9731           applications as well.  This relates to the private message keys
9732           and the channel private keys since they must be processed the
9733           same way the normal SILC session keys.  The protocol dictates
9734           this.  Affected files: lib/silcske/silcske.[ch].
9735
9736           Added also silc_ske_free_key_material to free the
9737           SilcSKEKeyMaterial structure.
9738
9739         * Defined silc_cipher_set_key function to set the key for
9740           cipher without using the object's method function.  The affected
9741           files: lib/silccrypt/silccipher.[ch].
9742
9743         * Implemented silc silc_client_add_private_message_key,
9744           silc_client_add_private_message_key_ske,
9745           silc_client_del_private_message_key,
9746           silc_client_list_private_message_keys and
9747           silc_client_free_private_message_keys functions in the
9748           client library.
9749
9750           Added functions silc_client_send_private_message_key to send
9751           the Private Message Key payload and silc_client_private_message_key
9752           to handle incoming Private Message Key payload.
9753
9754         * Added Cipher field to the Private Message Key payload to set
9755           the cipher to be used.  If ignored, the default cipher defined
9756           in the SILC protocol (aes-256-cbc) is used.
9757
9758 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9759
9760         * Removed lib/silcclient/ops.h file.
9761
9762           Redefined parts of the SILC Client Library API. Created new
9763           file silcapi.h that deprecates the ops.h file and defines the
9764           published Client Library API.  Defined also private message key
9765           API and channel private key API into the file.
9766
9767           This is the file that the application must include from the
9768           SILC Client Library.  Other files need not be included by
9769           the application anymore.
9770
9771         * Added new key_agreement client operation callback and also
9772           defined the Key Agreement library API for the application.
9773
9774 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9775
9776         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
9777           is used by clients to request key negotiation  between another
9778           client in the SILC network.  If the negotiation is started it
9779           is performed using the SKE protocol.  The result of the
9780           negotiation, the secret key material, can be used for example
9781           as private message key.
9782
9783           Implemented the Key Agreement payload into the files
9784           lib/silccore/silauth.[ch].
9785
9786 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9787
9788         * Redefined ciphers for the SILC protocol.  Added some new ciphers
9789           and defined the key lengths for the algorithms.  Changed the
9790           code accordingly.  The default key length is now 256 bits.
9791
9792         * Fixed SKE key distribution function silc_ske_process_key_material
9793           when the key length is more than 128 bits.  The default key
9794           length in SILC is now 256 bits.
9795
9796         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
9797           to indicate unsupported algorithm.
9798
9799         * Renamed rijndael.c to aes.c and all functions as well.
9800
9801         * Fixed a long standing channel key setting bug in client library.
9802           Weird that it has never surfaced before.
9803
9804         * Fixed bug in channel deletion.  If the entire channel is removed
9805           then it must also delete the references of the channel entry
9806           from the client's channel list as the client's channel entry and
9807           the channel's client entry share same memory.
9808
9809 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9810
9811         * Implemented CONNECT and SHUTDOWN commands in the client.
9812
9813         * Implemented CLOSE command to the client.
9814
9815         * Added the function silc_idlist_find_server_by_name into the
9816           files silcd/idlist.[ch].
9817
9818           Added the function silc_idlist_find_server_by_conn into the
9819           files silcd/idlist.[ch].
9820
9821 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9822
9823         * DIE command was renamed to SHUTDOWN.  Updated the both code
9824           and protocol specs.
9825
9826         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
9827           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
9828
9829         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
9830           side.
9831
9832         * Added function silc_server_create_connection function to create
9833           connection to remote router.  My server implementation actually
9834           does not allow router to connect to normal server (it expects
9835           that normal server always initiates the connection to the router)
9836           so the CONNECT command is only good for connecting to another
9837           router.
9838
9839 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9840
9841         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
9842           or some other client was kicked from the channel.
9843
9844           Implemented the handling of the notify type to both client
9845           and server.
9846
9847           Implemented silc_server_send_notify_kicked to send the KICKED
9848           notify.  It is used to send it to the server's primary router.
9849
9850         * Implemented the KICK command into server and client.
9851
9852         * Added `query' argument to the silc_idlist_get_client function
9853           to indicate whether to query the client from server or not if
9854           it was not found.
9855
9856         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
9857           to indicate that the client is not channel founder.
9858
9859         * Updated TODO.
9860
9861 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9862
9863         * Removed the rng context from SilcPacketContext structure and
9864           changed that the packet routine uses the Global RNG API.
9865
9866 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9867
9868         * Added support for quit message that client can "leave" on the
9869           channel when it quits the SILC.  It is ditributed inside the
9870           SILC_NOTIFY_TYPE_SIGNOFF notify type.
9871
9872           Added silc_server_free_client_data that will take the
9873           signoff message as argument.
9874
9875         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
9876
9877 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9878
9879         * Updated parts of the protocol specification to keep it up
9880           to date.
9881
9882 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9883
9884         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
9885           payloads in one packet.
9886
9887         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
9888           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
9889           use now the new List flag.
9890
9891         * Also deprecated the following packet types: REPLACE_ID,
9892           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
9893
9894         * Added list support for Notify packet in server.
9895
9896         * Added silc_server_send_notify_channel_change to send the
9897           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
9898           the silc_server_send_replace_id.
9899
9900         * Added silc_server_send_notify_nick_change to send the
9901           NICK_CHANGE notify type.  Deprecates the function
9902           silc_server_send_replace_id.
9903
9904         * Added silc_server_send_notify_join to send the JOIN notify type.
9905           Deprecates the function silc_server_send_new_channel_user.
9906
9907         * Added silc_server_send_notify_leave to send LEAVE notify type.
9908           Deprecates the function silc_server_send_remove_channel_user.
9909
9910         * Added silc_server_send_notify_cmode and
9911           silc_server_send_notify_cumode to send CMODE and CUMODE notify
9912           types.  Deprecates the silc_server_send_set_mode function.
9913
9914         * Added SERVER_SIGNOFF notify type to indicate that server has
9915           quit.  This means that all clients on the channel from that
9916           server will drop.  This can be also used when netsplit happens.
9917
9918           Deprecated REMOVE_ID packet type since it is not needed anymore
9919           even from server.
9920
9921           Added silc_server_send_notify_server_signoff to send the
9922           SERVER_SIGNOFF notify type.  Deprecates the function
9923           silc_server_send_remove_id.
9924
9925           Added also silc_server_send_notify_signoff to send the
9926           SIGNOFF notify type.
9927
9928         * Employed the PKCS #1. It is the mandatory way to do RSA in the
9929           SILC protocol from this day on.  Changed the protocol
9930           specification as well.
9931
9932         * Added silc_server_send_notify_topic_set to send TOPIC_SET
9933           notify type.  It is used between routers to notify about
9934           topic changes on a channel.
9935
9936         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
9937           ID data.
9938
9939         * Partly updated the protocol specification to comply with the
9940           changes now made.  It is still though a bit outdated.
9941
9942         * The JOIN notify type now takes one extra argument <Channel ID>.
9943           The packet used to be destined to the channel but now the
9944           JOIN type may be sent as list thus it is impossible to
9945           destine it to any specific channel.  By adding this argument
9946           it is again possible.
9947
9948 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9949
9950         * Added CREDITS file.  The CHANGES and CREDITS file will appear
9951           in the distribution as well.
9952
9953 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9954
9955         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
9956           types in the server's silcd/packet_receive.c.
9957
9958         * Implemented CMODE and CUMODE to work in router environment.
9959
9960         * Fixed minor encoding and decoding buglet from the
9961           lib/silccore/silcmode.c.
9962
9963         * Fixed buffer overflow from lib/silcclient/command.c in USERS
9964           command parsing.
9965
9966 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
9967
9968         * Changed all SilcConfigServer* and silc_config_server* to
9969           SilcServerConfig* and silc_server_config*, respectively.
9970           Patch by Bostik.
9971
9972 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9973
9974         * Associated the ID (client or server ID) to the Authentication
9975           Payload to avoid any possibility of forging.  Updated the
9976           protocol specification and the code accordingly.
9977
9978 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9979
9980         * The RSA key length is now save to the RsaKey context in the
9981           key generation process in lib/silccrypt/rsa.c.  The key length
9982           is now used to figure out the maximum size of the block allowed
9983           to be encrypted/signed.
9984
9985         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
9986           is equivalent to the silc_mp_mp2bin but does not allocate any
9987           memory.
9988
9989         * Changed silc_mp_mp2bin API to take length argument.  If it is
9990           non-zero then the buffer is allocated that large.  If zero, then
9991           the size is approximated using silc_mp_sizeinbase, which however
9992           is not relieable.
9993
9994         * Created Global RNG API which is global RNG that application can
9995           initialize.  After initializing, any routine anywhere in the
9996           code (including library) can use RNG without allocating a new
9997           RNG object.  This was done to allow this sort of use of the
9998           RNG in code that has no chance to allocate RNG object.  All
9999           applications currently allocate this and many routines in the
10000           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10001
10002         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10003           it to use the Global RNG API.
10004
10005         * Defined Authentication Payload into protocol specification that
10006           is used during SILC session to authenticate entities.  It is
10007           used for example by client to authenticate itself to the server
10008           to obtain server operator privileges.
10009
10010           Implemented this payload into the lib/silccore/silcauth.[ch].
10011           Implemented also routines for public key based authentication
10012           as the new protocol specification dictates.
10013
10014           Moved definitions of different authentication methods from
10015           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10016
10017         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10018           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10019           silc_pkcs_verify_with_hash functions into the file
10020           lib/silccrypt/silcpkcs.[ch].
10021
10022 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10023
10024         * The client entry's userinfo pointer must be always valid.
10025           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10026           will fail since it requires the userinfo.  Now, the userinfo
10027           is allocated as "" if actual userinfo does not exist.  Actually,
10028           it must exist and it is totally Ok to drop client connections
10029           that does not announce the userinfo.  However, we will make
10030           this workaround for now.
10031
10032         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10033           to return the remote port by socket.
10034
10035 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10036
10037         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10038           SILC_SERVER_PENDING_EXEC and added an new macro
10039           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10040           data or when error occurs while processing the pending command.
10041
10042           Added new argument `destructor' into silc_server_command_pending
10043           and to the SilcServerCommandPending object.  This destructor is
10044           now called after calling the pending callback or if error occurs
10045           immediately.  If error occurs the actual pending callback won't
10046           be called at all - only the destructor.  The destructor may be
10047           NULL if destructor is not needed.
10048
10049           All this applies for client library code as well.  Similar
10050           changes were made there as well for the pending commands.
10051
10052           In the client, the application must now allocate the
10053           SilcClientCommandContext with the silc_client_command_alloc
10054           function.
10055
10056         * Added reference counter to the SilcServerCommandContext.  Added
10057           function silc_server_command_alloc and silc_server_command_dup
10058           functions.
10059
10060           Same type of functions added to the client library for the same
10061           purpose as well.
10062
10063         * Removed the cmd_ident from IDListData away since it is now
10064           global for all connections.  It is the command identifier used
10065           in command sending and with pending commands.  The affected file
10066           is silcd/idlist.h.
10067
10068         * Added reference counter to the SilcSocketConnection objecet to
10069           indicate the usage count of the object.  The object won't be
10070           freed untill the reference counter hits zero.  Currently only
10071           server uses this, and client ignores it.  The client must be
10072           set to use this too later.  The affected files are
10073           lib/silccore/silcsockconn.[ch].  Added also the function
10074           silc_socket_dup to increase the reference counter.
10075
10076           This was mainly added because it is possible that the socket
10077           is removed underneath of pending command or other async
10078           operation.  Now it won't be free'd and proper DISCONNECTING
10079           flags, etc. can be set to avoid sending data to connection that
10080           is not valid anymore.
10081
10082         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10083           the connection.  After that it sets SILC_SET_DISCONNECTED.
10084           It is, however, possible that the socket data is not still freed.
10085           The silc_server_packet_process now checks that data is not
10086           read or written to connection that is DISCONNECTED.  The socket
10087           get's freed when the reference counter hits zero.
10088
10089 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10090
10091         * Changed the client operation API: channel_message operation's
10092           `sender' is now the client entry of the sender, not the nickname
10093           and the `channel' is the channel entry, not the channel name.
10094
10095           In the private_message operation the `sender' is now also the
10096           client entry of the sender not the nickname.
10097
10098           Affected file is lib/silcclient/ops.h and all applications
10099           using the client operations.
10100
10101 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10102
10103         * Moved the calling of ops->connect() from connect_to_server_final
10104           into receive_new_id functin since that is the point when the
10105           client is actually allowed to send traffic to network.  The
10106           affected file is lib/silcclient/client.c.
10107
10108 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10109
10110         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10111           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10112           (if needs broadcasting) instead of broadcasting the packets one
10113           by one which would make a burst in the network traffic.
10114
10115         * Added `broadcast' argument to the functions in silcd/server.[ch]
10116           silc_server_create_new_channel[_with_id] to indicate whether
10117           to send New Channel packet to primary router.
10118
10119 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10120
10121         * Added new function into the silcd/server.[ch] files:
10122           silc_server_create_new_channel_with_id to create new channel with
10123           already existing Channel ID.
10124
10125         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10126           lib/silccore/silcpacket.h.  This packet is used t send list of
10127           Set Mode payloads inside one packet.  Server uses this to set
10128           the modes for the channels and clients on those channels, that it
10129           announced to the router when it connected to it.  The protocol
10130           specification has been updated accordingly.
10131
10132         * The silc_server_new_channel did not handle the packet coming
10133           from normal server as it normally does not send that.  However,
10134           when it announces its channels it does send it.  Implemented
10135           the support for that.
10136
10137         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10138           into the file lib/silccore/id.h.
10139
10140 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10141
10142         * Fixed memory leaks in the functions silc_idlist_del_client,
10143           silc_idlist_del_channel and silc_idlist_del_server in the file
10144           silcd/idlist.c.  All of those leaked like a sieve.
10145
10146         * Fixed some small memory leaks in the client's function
10147           silc_client_notify_by_server.
10148
10149         * Added functions into silcd/server.c: silc_server_announce_clients,
10150           silc_server_announce_channels and silc_server_announce_server.
10151           These functions are used by normal and router server to announce
10152           to its primary router about clients, channels and servers (when
10153           router) that we own.  This is done after we've connected to the
10154           router.
10155
10156           These functions effectively implements the following packet types:
10157           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10158           and SILC_PACKET_NEW_ID_LIST.
10159
10160         * Added new functions into the silcd/packet_receive.[ch]:
10161           silc_server_new_id_list, silc_server_new_channel_list and
10162           silc_server_new_channel_user_list to handle the incoming
10163           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10164
10165         * Added support of changing Channel ID in the function
10166           silc_server_replace_id.  If the server that announces a channel
10167           to the router already exists in the router (with same name but
10168           with different Channel ID), router is responsible to send
10169           Replace ID packet to the server and force the server to change
10170           the Channel ID to the one router has.
10171
10172         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10173           client that the Channel ID has been changed by the router.  The
10174           normal server sends this to the client.  Client must start using
10175           the new Channel ID as the channel's ID.
10176
10177           Implemented handling of this new type into lib/silcclient/client.c
10178           into the function silc_client_notify_by_server.
10179
10180         * Added new function silc_idlist_replace_channel_id into the files
10181           silcd/idlist.[ch] to replace the Channel ID.
10182
10183 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10184
10185         * Call silc_server_command_identify_check always when processing
10186           the IDENTIFY command in silcd/command.c
10187
10188 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10189
10190         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10191           send keepalive packets.  The packet can be sent by clients,
10192           servers and routers.
10193
10194           Added function silc_socket_set_heartbeat into the file
10195           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10196           If not set, the heartbeat is not performed.  The actual
10197           heartbeat is implemented in the low level socket connection
10198           library.  However, application is responsible of actually
10199           sending the packet.
10200
10201           Added silc_server_send_heartbeat to send the actual heartbeat
10202           packet into silcd/packet_send.[ch].  Server now performs
10203           keepalive with all connections.
10204
10205         * Added silc_task_get_first function into lib/silcutil/silctask.c
10206           to return the timeout task with shortest timeout.  There was a bug
10207           in task unregistration that caused problems.  TODO has been
10208           updated to include that task system must be rewritten.
10209
10210         * The client library will now resolve the client information when
10211           receiving JOIN notify from server for client that we know but
10212           have incomplete information.
10213
10214         * Rewrote parts of silc_server_remove_from_channels and
10215           silc_server_remove_from_one_channel as they did not remove the
10216           channel in some circumstances even though they should've.
10217
10218         * Encryption problem encountered in server:
10219
10220           The LEAVE command used to send the Channel Key packet to the
10221           router immediately after generating it.  However, the code
10222           had earlier sent Remove Channel user packet but not immediately,
10223           ie. it was put to queue.  The order of packets in the router
10224           was that Channel Key packet was first and Remove Channel User
10225           packet was second, even though they were encrypted in the
10226           reverse order.  For this reason, MAC check failed.  Now, this
10227           is fixed by not sending the Channel Key packet immediately but
10228           putting it to queue.  However, this is more fundamental problem:
10229           packets that are in queue should actually not be encrypted
10230           because packets that are sent immediately gets encrypted
10231           actually with wrong IV (and thus MAC check fails).  So, packets
10232           that are in queue should be encrypted when they are sent to
10233           the wire and not when they put to the queue.
10234
10235           However, the problem is that the current system has not been
10236           designed to work that way.  Instead, the packet is encrypted
10237           as soon as possible and left to the queue.  The queue is then
10238           just purged into wire.  There won't be any fixes for this
10239           any time soon.  So, the current semantic for packet sending
10240           is as follows:
10241
10242           o If you send packet to remote host and do not force the send
10243           (the packet will be in queue) then all subsequent packets to the
10244           same remote host must also be put to the queue.  Only after the
10245           queue has been purged is it safe again to force the packet
10246           send immediately.
10247
10248           o If you send all packets immediately then it safe to send
10249           any of subsequent packets through the queue, however, after
10250           the first packet is put to queue then any subsequent packets
10251           must also be put to the queue.
10252
10253           Follow these rules and everything works fine.
10254
10255 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10256
10257         * Added new function silc_server_remove_clients_by_server to
10258           remove all client entries from ID list when the server connection
10259           is lost.  In this case it is also important to invalidate all
10260           client entires as they hold the invalid server entry.  This
10261           fixes fatal bug when server has lost connection and will reconnect
10262           again.
10263
10264 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10265
10266         * Made some sanity checks to silc_server_daemonise like to check
10267           whether the requested user and group actually exists.
10268
10269         * Added sanity check to SKE's silc_ske_responder_finish to check
10270           that the public and private key actually is valid.
10271
10272         * Invalidate the client's nickname when receiving Replace ID
10273           packet and the Client ID is being replaced.  This means that the
10274           server will query the nickname if someone needs it (client)
10275           a bit later.
10276
10277         * Sort the ID Cache in client library when the ID Cache data
10278           has changed (needs sorting).
10279
10280         * Do not allow for SILC client to create several connections to
10281           several servers.  The client does not support windows right now
10282           and generating multiple connections causes weird behaviour.
10283
10284           Irssi-silc client does support windows and can handle several
10285           connections without problems, see: www.irssi.org and SILC plugin.
10286
10287         * Fixed some places where client was added to the IDList.  The
10288           rule of thumb is following (in order to get everything right):
10289           If the client is directly connected local client then the
10290           `connection' argument must be set and `router' argument must be
10291           NULL to silc_idlist_add_client function.  If the client is not
10292           directly connected client then the `router' argument must
10293           bet set and the `connection' argument must be NULL to the
10294           silc_idlist_add_client function.
10295
10296         * The funtion silc_server_packet_send_local_channel actually did
10297           not check whether the client was locally connected or not.  It
10298           does that now.  Fixed a bug related to LEAVE command.
10299
10300         * Fixed Remove Channel User payload parsing bug in server's
10301           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
10302
10303         * The server's silc_server_save_channel_key now checks also the
10304           global ID list for the channel as it might not be in the local
10305           list.  Fixed a bug related to LEAVE command.
10306
10307         * Is this the end of the [<unknown>] buglet that has been lurking
10308           around for a long time?  A little for loop fix in server's
10309           silc_server_command_whois_parse that is used by both IDENTIFY
10310           and WHOIS command.  At least, this was a clear bug and a cause
10311           of one type of [<unknown>] buglet.
10312
10313         * WHOIS and IDENTIFY commands call the function
10314           silc_server_command_[whois/identify]_check function even if
10315           we are not router server.
10316
10317 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10318
10319         * Added --with-gmp configuration option.  If set the GMP
10320           is always compiled in the SILC source tree.  If not set then
10321           it is checked whether the system has the GMP3 installed.  If
10322           it has then the GMP won't be compiled (the system's headers
10323           and library is used), if it doesn't have it then the GMP is
10324           compiled in the SILC source tree.
10325
10326 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10327
10328         * Changed RSA private exponent generation to what PKCS #1
10329           suggests.  We try to find the smallest possible d by doing
10330           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
10331           not security fix but optimization.
10332
10333 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10334
10335         * Added new config entry [Identity] to fork the server and run
10336           it as specific user and group.  A patch from Bostik.
10337
10338         * Imported Dotconf configuration library into lib/dotconf.
10339           This will be used to create the SILC configuration files later.
10340           It will appear in the distsribution after this commit.
10341
10342 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10343
10344         * A big code auditing weekend happening.  Auditing code for
10345           obvious mistakes, bugs and errors.  Also, removing any code
10346           that is obsolete.
10347
10348           Removed files for being obsolete:
10349
10350           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
10351           inline in the file lib/silcutil/silcbuffer.h)
10352
10353           o lib/silcutil/silcbufutil.c (the header has inline versions)
10354
10355           Changed code to fix possible error conditions:
10356
10357           o The buffer formatting routines now check that the destination
10358           buffer really has enough space to add the data.  This applies for
10359           both buffer formatting and unformatting
10360           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
10361           unformatting was changed to accomodate following rules:
10362           XXX_*STRING_ALLOC will allocate space for the data into the pointer
10363           sent to the function while XXX_*STRING will not allocate or copy
10364           the data into the buffer.  Instead it sets the pointer from the
10365           buffer into the pointer sent as argument (XXX_*STRING used to
10366           require that the pointer must be allocated already).  This change
10367           makes this whole thing a bit more consistent and more optimized
10368           (note that the data returned in the unformatting with XXX_*STRING
10369           must not be freed now).  The routines return now -1 on error.
10370
10371           o Tried to find all code that use buffer_format and buffer_unformat
10372           and added return value checking to prevent formatting and
10373           especially unformatting errors and possible subsequent fatal
10374           errors.
10375
10376           o Changed ske->x and ske->KEY to mallocated pointers in
10377           lib/silcske/silcske.h.  Fixed possible data and memory leak.
10378
10379           o Added return value checking to all *_parse* functions.  Fixed
10380           many memory leaks as well.
10381
10382           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
10383           so that buffer overflows would not happen.  All code now also
10384           checks the return value as it can fail.
10385
10386 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10387
10388         * Added reconnection support to server if the normal server looses
10389           its connection to the router (for example if router is rebooted).
10390           The server performs normal reconnection strategy implemented
10391           to the server.  Affected file silcd/server.c.
10392
10393 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10394
10395         * Added new packet type SILC_PACKET_SET_MODE that is used to
10396           distribute the information about changed modes (for clients,
10397           channels and clients channel modes) to all routers in the
10398           network.  Updated the protocol specification accordingly.
10399
10400           Added functions into silcd/packet_send.c and
10401           silcd/packet_receive.c: silc_server_send_set_mode,
10402           silc_server_set_mode.
10403
10404           Added new files silcmode.[ch] into lib/silccore that implements
10405           the encoding and decoding of Set Mode Payload.  Added new type
10406           SilcSetModePayload.  Moved the definitions of different modes
10407           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
10408
10409 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10410
10411         * Oops, a little mistake in server's connection authentication
10412           protocol.  The protocol is not ended with FAILURE but with
10413           SUCCESS if the authentication is Ok. :)  Affected file is
10414           silcd/protocol.c.
10415
10416         * Implemented NICK_CHANGE notify handling in server in the file
10417           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
10418           the local clients on the channel.  After the changing nickname
10419           in router environment snhould work and the [<unknown>] nickname
10420           should appear no more.
10421
10422           The silc_server_replace_id function that receives the Replace ID
10423           payload now sends the NICK_CHANGE notify type also in the file
10424           silcd/packet_receive.c
10425
10426         * Changed WHOIS and IDENTIFY command to support the maximum amount
10427           of arguments defined in protocol specs (3328 arguments).  This
10428           fixed a bug that caused problems when there were more than three
10429           users on a channel.
10430
10431 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10432
10433         * Added extra parameter, command identifier, to the
10434           silc_client_send_command so that explicit command identifier
10435           can be defined.
10436
10437           Changed that ID list routines uses specific command identifier
10438           when sending WHOIS/IDENTIFY requests to the server so that they
10439           can be identified when the reply comes back.
10440
10441           Affected files lib/silcclient/command.[ch],
10442           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
10443
10444         * Added `sender' argument to silc_server_packet_send_to_channel
10445           to indicaet the sender who originally sent the packet to us
10446           that we are now re-sending.  Ignored if NULL.  Affected file
10447           silcd/packet_send.[ch].
10448
10449         * Added some server statistics support in silcd/server_internal.h
10450           SilcServerStatistics structure and around the server code.  Also
10451           send some nice statistics information when client is connecting
10452           to the client.
10453
10454 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10455
10456         * Fixed channel ID decoding in server's JOIN command reply in
10457           silcd/command_reply.c
10458
10459         * Fixed braodcasting of replace ID payload to not to send it if
10460           we are standalone server in silcd/packet_receive.c.
10461
10462         * Fixed all channel message sending routines to not to send
10463           packets to clients that has router set, since they are routed
10464           separately in the same function earlier.  Affects file
10465           silcd/packet_send.c and all channel packet sending functions.
10466
10467         * In USERS reply, res_argv[i] are not allocated, the table
10468           is allocated.  Thus changed that free the table, not its
10469           internals.
10470
10471         * In server's whois_check and identify_check if the client is
10472           locally connected do not send any WHOIS commands - they are not
10473           needed.
10474
10475 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10476
10477         * Fixed some minor bugs in client when sending WHOIS command.  The
10478           arguments was in wrong order.
10479
10480         * Removed statis function add_to_channel from server in
10481           silcd/command.c that was previously used with the joining but
10482           is obsolete now.
10483
10484         * Tested USERS command in router environment successfully with two
10485           routers, two servers and two clients.
10486
10487 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10488
10489         * Reorganized the USERS command and command reply in client library
10490           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
10491           When the command is given by user we register a pending command
10492           callback that will reprocess the command after the reply has been
10493           received from the server.  When reprocessing the packet we then
10494           display the information.  Thus, the USERS information is displayed
10495           now in the command callback instead of in the command reply
10496           callback.  The processing of the command is same as previously
10497           when server has sent the command reply in the JOINing process.
10498
10499         * Added to USERS command in silcd/command_reply.c to join the client,
10500           we didn't use to know about, to the channel after we've created
10501           a client entry for it.  Also, for clienet we did know already still
10502           check whether it is on the channel or not and add it if not.
10503
10504         * Removed silc_server_command_join_notify as the function and its
10505           use was obsolete.
10506
10507 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10508
10509         * Changed the client's pending command handling to the same as the
10510           server's pending command handling.  It is also now possible to
10511           execute command reply functions from other command reply
10512           function as the function callbacks for commands and command
10513           replies are one and same.  The pending commands are not static
10514           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
10515           in client connection context.  Thus, pending commands are server
10516           connection specific as it is convenient.
10517
10518           Changed the function silc_client_command_pending and
10519           silc_client_command_pending_del and added new function
10520           silc_client_command_pending_check.  Removed the
10521           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
10522           macros.
10523
10524         * Added cmd_ident, current command identifier, to the client
10525           connection context in lib/silcclient/client.h to keep track on
10526           command identifiers used in command sending.  Client's command reply
10527           function handling now supports the mandatory command identifiers.
10528
10529         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
10530           funtions in client to fully support pending command callbacks.
10531
10532         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
10533           as one of the arguments to the application in the command reply
10534           client operation.
10535
10536         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
10537           before first releasing SILC but came back.  Now it is removed again
10538           and should come back nomore.  The FORWARDED flag was used only
10539           by the JOINing procedure by forwarding the command packet to router.
10540           Now, the JOINing procedure has been changed to more generic (due
10541           to various router environment issues) and FORWARDED is not needed
10542           anymore for anything.  The protocol specification is yet to be
10543           updated.
10544
10545           Now, removed silc_server_packet_forward from server and the flag
10546           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
10547
10548 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10549
10550         * Renamed NAMES command to USERS command.  The NAMES was named that
10551           due to historical reasons.  Now it is renamed.  Also, rewrote
10552           parts of the USERS command.  The nickname list is not sent anymore
10553           by the server.  Only Client ID and mode lists are sent in the USERS
10554           command.  Changed this also to the protocol specification.
10555
10556           The client now resolves the names and stuff after it receives
10557           the USERS list from the server when joining to the channel.
10558
10559         * WHOIS and IDENTIFY commands has been changed to support multiple
10560           Client ID's per command.  One can now search for multiple users
10561           in the network by sending only one WHOIS or IDENTIFY command.
10562           Changed the code and the protocol specifications.
10563
10564         * Removed silc_server_command_identify_parse and changed that IDENTIFY
10565           uses silc_server_command_whois_parse to parse the request. */
10566
10567         * If normal server, do not parse the WHOIS and IDENTIFY requests
10568           before sending it to the router.  Saves some time.
10569
10570 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10571
10572         * Fixed JOIN command on client library.  Wrong number of arguments
10573           used to crash the client.
10574
10575         * Added silc_server_channel_has_global function to check whether
10576           channel has global users or not.
10577
10578         * Added silc_server_channel_has_local function to check whether channel
10579           has locally connected clients on the channel.
10580
10581         * The silc_server_remove_from_one_channel now checks whether the
10582           channel has global users or not after given client was removed from
10583           the channel.  It also checks whether the channel has local clients
10584           on the channel anymore.  If it does not have then the channel entry
10585           is removed as it is not needed anymore.
10586
10587         * The silc_server_notify now checks on JOIN notify whether the joining
10588           client is one of locally connected or global.  If it is global then
10589           the channel has now global users on the channel and that is marked
10590           to the channel entry.  Also, it now saves the global client to
10591           global list who is joining and JOINs it to the channel.  This is
10592           for normal server, that is.
10593
10594           Changed silc_server_send_notify_on_channel,
10595           silc_server_packet_relay_to_channel and
10596           silc_server_packet_send_to_channel check if we are normal server
10597           and client has router set (ie. global client) do not send the
10598           message to that client, as it is already routed to our router.
10599
10600         * Implemented LEAVE notify type handling in silc_server_notify
10601           function.
10602
10603         * Tested LEAVE command in router environment successfully.  Tested
10604           with two routers, two servers and two clients.
10605
10606         * Updated TODO.
10607
10608         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
10609
10610         * Implemented SIGNOFF notify type handling in silc_server_notify
10611           function.
10612
10613         * silc_server_remove_id now removes the client entry from all channels
10614           it has joined and thusly sends SIGNOFF notify type.
10615
10616         * Rewrote the NAMES list generation in server by removing two excess
10617           loops.  The lists are created now inside one loop.
10618
10619 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10620
10621         * silc_server_remove_channel_user checks now also global list
10622           for channel and client.
10623
10624         * silc_server_new_channel_user checks now both local and global
10625           list for channel and client.  Fixed a bug in client id decoding.
10626           Used to decode wrong buffer.
10627
10628         * silc_server_channel_message checks now both local and global
10629           list for channel entry.
10630
10631         * Tested channel joining (hence JOIN) in router environment
10632           successfully.  Tested with two routers, two servers and two
10633           clients.
10634
10635         * Tested channel message sending in router environment successfully.
10636
10637 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10638
10639         * Added silc_server_save_channel_key into server.[ch] to save the
10640           received channel key in Channel Key payload processing. It is
10641           also used in JOIN command reply handling.
10642
10643           Equivalent function silc_client_save_channel_key added into
10644           client.[ch] into client library.
10645
10646         * Changed JOIN command reply to send information whether the channel
10647           was created or not (is existing already) and the channel key
10648           payload.  Changed protocol specs accordingly.
10649
10650         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
10651           the request was sent by ID and not by nickname.  Crashed on
10652           NULL dereference.
10653
10654 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10655
10656         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
10657           now correctly save the received data.
10658
10659         * silc_server_free_sock_user_data now notifies routers in the
10660           network about entities leaving the network.
10661
10662           At the same time implemented functions silc_server_remove_id
10663           and silc_server_send_remove_id to receive and send REMOVE_ID
10664           packets.  The packet is used to notify routers in the network
10665           about leaving entities.  The ID removed will become invalid in
10666           the network.
10667
10668         * Added function silc_idlist_del_server into server. Removes and
10669           free's server entry from ID list.
10670
10671         * silc_server_private_message function now checks, if we are router,
10672           that the destination ID really is valid ID, naturally.
10673
10674         * In router when NEW_ID packet is received (for new client) the
10675           hash of the Client ID is saved in the ID Cache but the
10676           client->nickname is set to NULL, instead of putting the hash
10677           to it as well.
10678
10679           IDENTIFY command now also checks that client->nickname must be
10680           valid. If it is not if will request the data from the server who
10681           owns the client.  Added new function
10682           silc_server_command_identify_check.
10683
10684         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
10685           to set the command to already allocated Command Payload.
10686
10687         * Tested private message sending in router environment with two
10688           routers, two servers and two clients.  Fixed minor bugs and now
10689           it works fine.
10690
10691         * Fixed segfault from client's NAMES command. Used to crash if
10692           not on any channel.
10693
10694         * Forwarded packets must not be routed even if it is not destined
10695           to the receiver.  Changed server code comply with this.
10696
10697 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10698
10699         * Added `require_reverse_mapping' boolean value to ServerParams
10700           structure. If TRUE (not default) the server will require that
10701           the connecting host has fully qualified domain name.
10702
10703           If the reverse mapping is not required and hostname could not be
10704           found the IP address is used as hostname.
10705
10706 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10707
10708         * Implemented version string checking to both client and server.
10709           The check is incomplete currently due to the abnormal version
10710           strings used in development version of SILC.
10711
10712         * Changed all command functions in server to use the new
10713           CHECK_ARGS macro.
10714
10715 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10716
10717         * Changed char *data to unsigned char *data in ID Cache system to
10718           support binary data as ID Cache data. Changed code to support
10719           binary data in lib/silccore/idcache.c.
10720
10721         * Renamed silc_server_packet_relay_command_reply to
10722           silc_server_command_reply as it is normal packet receiving
10723           function. Rewrote the function to accept command replys for
10724           servers and not only for clients.
10725
10726         * Mark remote router always as registered server if we are connecting
10727           to it.  Otherwise, commands sent by the router to us are ignored.
10728
10729         * All ID List find routines now returns the ID Cache Entry pointer
10730           as well if requested.
10731
10732         * WHOIS command works now in router environment, tested with two
10733           routers, two servers and two clients.
10734
10735         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
10736           in router environment (as it is almost equivalent to WHOIS) but
10737           hasn't been tested thoroughly.  Added new functions:
10738
10739           silc_server_command_identify_parse
10740           silc_server_command_identify_send_reply
10741           silc_server_command_identify_from_client
10742           silc_server_command_identify_from_server
10743
10744         * Disabled route cache adding because adding two different ID's with
10745           same IP replaces the old cache entry thus giving wrong route.
10746           The entry->router->connection is always the fastest route anyway
10747           so route cache may not be needed.  Of course, new routes maybe
10748           established after receiving the ID when the entry->router->connection
10749           might not be anymore the most optimal.
10750
10751 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10752
10753         * Add route cache for received ID for fast routing.
10754
10755         * Added silc_server_packet_route to route received packet on router
10756           that is not destined to us.
10757
10758         * Renamed silc_server_get_route to silc_server_route_get.
10759
10760         * Added id_string and id_string_len fields into SilcServer to
10761           include encoded ServerID for fast comparing without excess
10762           encoding of the ID's.
10763
10764         * Cleaned up WHOIS command on server side. Added following static
10765           functions:
10766
10767           silc_server_command_whois_parse
10768           silc_server_command_whois_check
10769           silc_server_command_whois_send_reply
10770           silc_server_command_whois_from_client
10771           silc_server_command_whois_from_server
10772
10773         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
10774           arguments in command replies. All command functions should be
10775           updated to use this macro.
10776
10777 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10778
10779         * Minor typo fixes on command reply handling on server.
10780
10781 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10782
10783         * Added silc_server_command_add_to_channel internal routine to add
10784           the client to the channel after router has created the channel and
10785           sent command reply to the server.
10786
10787         * Added generic silc_server_send_command to send any command from
10788           server.
10789
10790         * Use static buffer with ID rendering instead of duplicating data.
10791
10792 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10793
10794         * Fixed a channel user mode bug when joining to a channel server gave
10795           everybody channel founder rights, oops.
10796
10797         * We mark ourselves as the router of the incoming server connection
10798           if we are router ourselves.  This way we can check in some packet
10799           sending functions whether it is locally connected server.  For
10800           incoming router connections we put NULL.
10801
10802         * For router sending packets locally means now always sending the
10803           packet cell wide; to local clients and local servers.  For normal
10804           server sending packet locally means sending it to only local
10805           clients.
10806
10807         * Fixed the JOIN command to really work in router environment.  If the
10808           channel is created it is always created by the router.  Router is
10809           also responsible of making the initial joining to the channel,
10810           sending JOIN notify to the sending server and distributing
10811           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
10812           does not exist server doesn't do anything else but forward the
10813           command to the router which performs everything.
10814
10815         * Added silc_server_send_channel_key function to send the Channel Key
10816           payload.
10817
10818         * Added silc_server_create_channel_key to create new channel key.  The
10819           channel key is now re-generated everytime someone joins or leaves
10820           a channel, as protocol dictates.  Note: channel->key_len is the
10821           key length in bits.
10822
10823 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10824
10825         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
10826           packet_receive.[ch] to separate packet sending and receiving
10827           routines.  The server.[ch] now includes everything else including
10828           actual packet processing (writing and reading data) and other
10829           server issues.
10830
10831           Renamed silc_server_private_message_send_internal to
10832           silc_server_send_private_message.  The routine is still though
10833           used only to relay private messages as server does not send
10834           private messages itself.
10835
10836           Renamed silc_server_new_channel to silc_server_create_new_channel
10837           and added new function sicl_server_new_channel that handles the
10838           incoming New Channel packet.  Added also new sending function
10839           silc_server_send_new_channel to send New Channel Payload.
10840
10841         * Added new function silc_server_notify to process incoming notify
10842           packet to the server/router. Server may then relay the notify
10843           to clients if needed.
10844
10845         * Added new function silc_server_new_channel_user to process incoming
10846           New Channel User packet.  Router will redistribute the packet and
10847           send JOIN notify to its local clients and locally connected servers
10848           if needed.  Normal server will send JOIN notify to its local client
10849           on same channel when received this packet.  Added also corresponding
10850           sending function silc_server_send_new_channel_user to sent the
10851           payload.
10852
10853         * Added boolean route argument to send_notif_to_channel and
10854           packet_send_to_channel functions to attempt to route the packet
10855           if it is TRUE and send only locally if it is FALSE.
10856
10857 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10858
10859         * silc_server_replace_id now broadcasts the received replace ID
10860           packet if it is not broadcast packet already. The router must
10861           broadcast to inform other routers about changed ID.
10862
10863         * Added backpointer to server's router into SilcServer context in
10864           silcd/server_internal.h.
10865
10866         * Fixed silc_server_packet_broadcast to send correct broadcast
10867           packets.
10868
10869         * The channel key is now distributed to the local client as soon
10870           as it is received from the router (in router environment) so that
10871           no other packet may be sent for the channel until client has
10872           received the key.
10873
10874         * silc_server_remove_channel_user now broadcasts the received
10875           Remove Channel User packet if it is not broadcast packet already.
10876           The router must broadcast to inform other routers about removed
10877           channel user.
10878
10879         * Added users field into SilcPacketContext that is a reference count
10880           of the context.  One can increase the reference count by calling
10881           silc_packet_context_dup which is now changed to just increase the
10882           reference count instead of duplicating the data.  The reference
10883           count is decresed by calling silc_packet_context_free that will
10884           free the data after the reference count hits zero.
10885
10886           For now on the packet context and everything allocated into it
10887           (including the raw packet from network) must be freed by calling
10888           the new silc_packet_context_free function.  Added also new function
10889           silc_packet_context_alloc that must be used now to allocate the
10890           context.  This also means that if a routine is asynchronous from
10891           silc_[client/server]_packet_parse_type the packet context must
10892           be duplicated by calling silc_packet_context_dup.  Otherwise it
10893           gets free'd after silc_[client/server]_packet_parse_type returns.
10894           Also, one must remember that if packet is duplicated then its
10895           reference count must be decresed by calling the free function as
10896           many times as it was duplicated.
10897
10898         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
10899           from both client and server.
10900
10901 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10902
10903         * Made joining to a channel working in router environment.
10904
10905         * Cleaned up JOIN command on server side and create function
10906           silc_server_command_join_channel internal routine to make the
10907           joining happen.
10908
10909 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10910
10911         * Changed silc_command_pending list to SilcDList.  Also, added
10912           `ident' field to SilcServerCommandPending structure to identify
10913           the reply and to call correct callback.
10914
10915           Added silc_server_command_pending_check function to replace the
10916           corresnponding macro.  The silc_command_pending list is not
10917           extern anymore.
10918
10919         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
10920           to set identifier to previously allocated Command Payload.  It
10921           is used to set identifier for command when resending Command
10922           Payload.
10923
10924         * Added silc_command_payload_encode_payload to encode Command
10925           Payload buffer from SilcCommandPayload structure.
10926
10927         * Added silc_argument_payload_encode_payload to encode Argument
10928           payload buffer from SilcArgumentPayload structure.
10929
10930 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10931
10932         * Changed WHOIS command to support router connection on server side.
10933           The whois request is always sent to router unless the server is
10934           standalone server.  After server has received the reply from the
10935           router will it send the reply to the client.
10936
10937         * Added silc_server_packet_broadcast into silcd/server.[ch] to
10938           broadcast received broadcast packet.  The function is used only
10939           by router.  The broadcast packet is always sent to the router's
10940           primary route.
10941
10942         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
10943           render given ID to printable string, for log files for example.
10944
10945 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10946
10947         * Made basic router to router connections working.  At least they
10948           can now connect to each other but nothing really works the way
10949           they are supposed - yet.
10950
10951         * Added new initiator token to RouterConnection configuration
10952           file in silcd/serverconfig.[ch].  It is used to tell whether we
10953           are the initiator to the remote router or whether we'll expect
10954           the other end to connect.
10955
10956         * Moved registering of listener task to silc_server_init, hence
10957           the server starts listenning as soon as it is run, even if it
10958           does not have connections to other routers.  Let's see how well
10959           this will work.
10960
10961         * Changed default connection retry timeouts for more suitable in
10962           silcd/server.h.
10963
10964         * Removed cipher and such arguments from silc_idlist_add_client
10965           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
10966           Added new function silc_idlist_add_data to add the keys and stuff
10967           to any ID entry.
10968
10969         * Added SilcIDListData structure and added it to SilcClientEntry
10970           and SilcServerEntry as their first field in the structure.  This
10971           way we can explicitly cast the ID entries to the SilcIDListData
10972           structure and get common data for the entries.  In past, we had
10973           to first check what type of connection it is and then cast it to
10974           correct ID entry type.  Now, we can directly cast the opaque
10975           pointer to the SilcIDListData (no matter what ID entry it actually
10976           is) and get the data needed.
10977
10978 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10979
10980         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
10981           in some circumstances even if threre were timeout tasks, though not
10982           IO tasks, but tasks anyway.  Now fixed.
10983
10984         * Defined SilcServerConnection structure to hold connection specific
10985           stuff about directly connected servers and routers.  The definition
10986           is currently in silcd/server_internal.h.  I thought about having
10987           a bit more important role fro this struct but for now it is used
10988           only when connecting to other server (or router actually).
10989
10990         * Added connecting retry support in server when connecting to
10991           router(s).  The retry feature implement exponential backoff
10992           algorithm.  Also, added SilcServerParams structure to hold default
10993           parameters for server.  For now, it include these retry settings
10994           and are hard coded.  After server is moded to be as Silc Server
10995           Library this structure will be more important.
10996
10997 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10998
10999         * Changed client librarys channel->clients table to SilcList and
11000           changed code accordingly.
11001
11002 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11003
11004         * Changed client's channel table to SilcList and changed code
11005           accordingly.  Also changed SilcChannelClientEntry to include back-
11006           pointer to the channel so that client entry can use that structure
11007           as list as well and we have fast cross-reference to the channel.
11008           This change dramatically decreased the complexity of channel
11009           handling with client entry and vice versa (removed one extra
11010           loop when searching for channel entry from many functions).
11011
11012         * Changed server->sim from table to SilcDList and changed code
11013           accordingly.
11014
11015         * NAMES command can now be used from user interface.  It will show
11016           the user list on the channel, neatly.
11017
11018         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11019           Code now saves realname of the user if it becomes available.
11020
11021         * Renamed configure.in to configure.in.pre and made ./prepare
11022           script to automatically add correct version string to
11023           configure.in which it creates from configure.in.pre.
11024
11025 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11026
11027         * NAMES command reply now shows users mode with the nickname when
11028           joining to channel.
11029
11030         * Moved silc_client_ch[u]mode[_char] functions from
11031           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11032           place sucks, they are utility functions and should be in some
11033           other file.
11034
11035         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11036
11037         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11038           cras.
11039
11040 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11041
11042         * Updated README.
11043
11044         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11045           a very good list library that is currently used in the SILC.  Defined
11046           SilcList API over the library because I didn't like the API very
11047           much.  See lib/trq/silclist.h for the API and examples of how to
11048           use the API.  Fixed various places in the code to use the new
11049           SilcList API. The SilcList is meant for lists that has a structure
11050           already defined as a list.  It is not suitable to add just some
11051           context to the list (in TRQ, the context is the list actually).
11052
11053           So, I defined SilcDList that can be used for the purpose where
11054           predefined list structure does not exit.  This can be used as
11055           such list.  Now some context just can be added to the SilcDList.
11056           Currently this list is not used in the SILC just yet, though there
11057           are a lot places where this can replace dynamically allocated
11058           tables and I will fix these places, later, to use SilcDList.
11059           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11060           and use TRQ internally).
11061
11062           Also fixed some annoying warning messages that the original TRQ
11063           code generated.  Also minor changes to TRQ's Makefile.in.
11064
11065         * Added support for querying by Client ID to both WHOIS and
11066           IDENTIFY commands into server, as required by the protocol.
11067
11068         * Removed method function pointers from SilcBuffer structure. They
11069           weren't used to anything and just increased the context size for
11070           no good reason.  This change also made silc_buffer_alloc and
11071           silc_buffer_free functions inline functions.
11072
11073         * Disabled command flooding detection support until it's fixed so
11074           that it accepts commands in but does not execute them more than once
11075           in two seconds.
11076
11077         * Added silc_net_localhost(), to return local hostname, into
11078           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11079           that must be initialized before calling silc_client_init.
11080
11081         * Added new function: silc_server_send_notify_on_channels to send
11082           notify messages to all channels client has joined.  It is assured
11083           that the message is sent only once per client.
11084
11085         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11086           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11087           function is generic and is used by server as well, not only by
11088           the logging routines.
11089
11090         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11091           the provided version string was not acceptable.  Added new function:
11092           silc_ske_check_version into lib/silcske/silcske.h.  The function
11093           must be implemented by the application (client or server) and it
11094           does not reside in the SKE library.  The function checks the version
11095           string remote end sent.
11096
11097         * Added back pointers (to opaque context and to SilcSocketConnection)
11098           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11099
11100         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11101           duplicate packet context structure.
11102
11103         * Changed `notify' client operation to send same arguments as client
11104           receives from server except for ID's.  ID's are mapped to correct
11105           ID entry and that is returned.  Also, if channel entry is not sent
11106           by server but the notify is for channel the channel entry is sent
11107           to application (otherwise application doesn't know that it is for
11108           channel (library gets it from packet's Destination ID)).
11109
11110         * Added silc_client_remove_from_channels into client library to
11111           remove a client from all channels it has joined to.  Used when
11112           received SIGNOFF notify from server.  Added also new function
11113           silc_client_replace_from_channels to replace old ID entry with
11114           new ID entry on all channels.  Used when received NICK_CHANGE
11115           notify from server.
11116
11117         * Fixed ID Cache list handling in silc_idlist_get_client in
11118           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11119           to get (or query) client by ID.
11120
11121         * Updated TODO list.
11122
11123         * Added connection authentication status message defined by the
11124           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11125           support for these into the code in client and server side.
11126
11127         * Added generic function silc_client_send_command to send any command
11128           with variable argument list.  Application should use this function
11129           to send commands if the command functions provided by the library
11130           does not suite for the application's user interface needs.
11131
11132         * Added new `failure' client operation.  Application is notified about
11133           received failure packet if client is executing a protocol.  In this
11134           case the protocol's execution has failed.
11135
11136         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11137           is required by the protocol.
11138
11139         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11140           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11141           error at our end.
11142
11143         * Added status flag to SilcSKE object to indicate realtime status
11144           of the SKE protocol.
11145
11146         * Application receives now exactly same command reply arguments as
11147           the library receives from server.  However, if ID is received the
11148           corresponding ID entry is returned to the application (eg. Client
11149           ID is mapped to correct SilcClientEntry entry and that is returned).
11150           Changed command_reply client operation due to this change.
11151
11152         * Changed all ID's in commands and in command replys as ID Payloads.
11153           Change affected both client and server side codes.
11154
11155           All ID's sent in SILC network (with execption of ID's in SILC
11156           Packet header) are sent in ID Payload to support variable length
11157           ID's.
11158
11159         * Server now notifies nick changes and notifies all clients on
11160           the channels about the new nickname (about the new Client ID,
11161           actually).
11162
11163         * Implemented CMODE command to change channel modes. Supports all
11164           channel modes defined by the protocol specs except ban and invite
11165           lists. (Also, private channel key mode is supported but support for
11166           setting private channel key in client is missing, thus, this mode
11167           has no effect on client side (except that server requires that the
11168           client uses private channel key and normal channel traffic does not
11169           work anymore)).
11170
11171           Also, invite mode works per se, but INVITE command does not work
11172           yet correctly, so you can set channel as invite only channel but
11173           inviting clients to the channel does not work (it is yet to be
11174           thought what's the best way to do it).
11175
11176         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11177           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11178           Implemented CUMODE command to change user's mode on the channel.
11179           Supports all modes defined by the protocol specs.
11180
11181         * Added NAMES command reply to return users modes on the channel.
11182
11183         * Removed unnecessary and slow ciphers from lib/silccrypt.
11184
11185         * Set SO_KEEPALIVE option to connection sockets by default.
11186
11187         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11188
11189         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11190           redefined the Notify Payload into protocol specs.
11191
11192         * Added silc_id_payload_parse_id to get ID directly from raw
11193           ID payload data.
11194
11195 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11196
11197         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11198           accept searching by Client ID as well.
11199
11200         * Added support for LEAVE and SIGNOFF notify types in client library.
11201
11202         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11203           to parse ID Payload from raw data.
11204
11205 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11206
11207         * Added flags parameter into silc_ske_assemble_security_properties
11208           function in lib/silcske/silcske.[ch].
11209
11210         * Changed notify client operation to fit better for notify messages
11211           sent by server.  The notify payload received from server is now
11212           passed to the application (after parsing it to SilcNotifyPayload).
11213           It is application's responsibility to retrieve the arguments
11214           from the payload and show the message the way it wants.  The message
11215           sent by server is implementation specific.
11216
11217         * Changed public keys to comply with the protocol specification.
11218           Old public keys are not supported anymore and are not compatible.
11219
11220         * Removed nickname from Channel Payload as the latest draft removed
11221           it.  The client must resolve the nickname from the NAMES command
11222           reply received when it joined the channel.
11223
11224           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11225
11226 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11227
11228         * Fixed some errors in protocol specification drafts.
11229
11230         * Created lib/silccore/silcnotify.c to implement Notify Payload
11231           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11232           generic payloads described by protocol specifications.  The file
11233           includes implementations for ID Payload and Argument Payload.
11234
11235         * Changed Command Payload implementation to use the new Argument
11236           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11237           to comply with SILC coding conventions.
11238
11239         * Added suppport for Argument Payload handling in Notify Payload
11240           implementation as protocol requires it.  Added the new support
11241           into server and client lib as well.
11242
11243 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11244
11245         * Added support for multiple nicknames on same channel.  [n] is
11246           added locally to the nickname if there are more than one same
11247           nicknames on the channel.
11248
11249         * Server now sends all nicknames that matched WHOIS request.
11250           Client also shows the list received from server.
11251
11252         * Added TOPIC command to client side.  User can now set and show
11253           current topic on channel.
11254
11255         * Added MOTD command to client and server.  Also, server sends the
11256           motd when client connects to the server.
11257
11258         * Changed version strings to comply ISO 8601.
11259
11260 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11261
11262         * Fixed protocol error handling in client library.  It should now
11263           cope even if the SKE fails for some reason.
11264
11265         * Made new protocol specification drafts for submitting to IETF.
11266
11267         * Implemented TOPIC command to server in silcd/command.c.
11268
11269         * Added two new notify types into lib/silccore/silcnotify.h:
11270           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
11271           notify nickname change and topic setting/change on a channel.
11272
11273         * API change of command_reply operation in client library.  The
11274           application gets now the status type received from server as well.
11275
11276 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11277
11278         * Removed the function just added to lib/silcutil/silcschedule.[ch].
11279
11280         * Cras fixed and optimized the packet handling even further and
11281           it should work now.  Minor change to the prototype of function
11282           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
11283
11284 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11285
11286         * Added new function into lib/silcutil/silcschedule.[ch]:
11287           silc_schedule_with_fd to select() a specified fd.  The function
11288           returns after timeout expires or data arrives or goes.  The
11289           function is used by packet routines to wait that all data is
11290           received from network.
11291
11292         * Fixed data reading from network in lib/silccore/silcpacket.c.
11293           The code now assures that all data is read from the fd and then
11294           continues packet processing.  This was a bug fix since the code
11295           used to drop some data in some circumstances.
11296
11297         * Added new function into lib/silcclient/client.[ch]:
11298           silc_client_start_key_exchange to start key exchange after
11299           connection has been established to server.  The code internally
11300           now uses this funtion but its main purpose was to provide it
11301           for applications that perform their own connecting.  After
11302           application has created a connection it merely calls this
11303           function to start the key exchange between client and server.
11304           The library takes care of everything else after that.
11305
11306           Updated also lib/silcclient/README to explain the usage of
11307           this new function.
11308
11309         * Do not send to application information that connection has
11310           been established.  Application gets notified it by connect
11311           operation anyway.
11312
11313 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11314
11315         * Applied cras's patch to add silc_schedule_one function.  The
11316           function runs scheduler once and returns.
11317
11318         * Fixed the scheduler after cras messed it up.  The timeout
11319           handling works now as it's supposed to work.
11320
11321         * Added into lib/silccore/ silcnotify.h to include notify
11322           message types support.  Changed silc_server_send_notify*
11323           functions, in server.[ch], to support those new notify types.
11324           Added the support for the notify types into client library,
11325           as well.  Added new notify client operation into ops.h in
11326           lib/silcclient/.
11327
11328         * Changed silc_server_packet_send_to_channel to send normal
11329           packets instead of just channel message packets.  The function
11330           is now used to send the notify packets to channels.  It is not
11331           used to send channel message packets anymore, as server never
11332           sends them anymore.
11333
11334         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
11335           va_arg()s as it seems to require it nowadays.  I guess, if SILC
11336           is compiled with older va_arg() the new code should work anyway.
11337
11338 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11339
11340         * Splitted core library.  Core library (lib/silccore) includes
11341           now only SILC protocol specific core (and common) components.
11342           Created new utility library (lib/silcutil) that includes more
11343           generic purpose stuff.  The stuff for util library was taken
11344           from the old core library.  This was minor and easy split.
11345
11346         * Created SILC Client Library (lib/silcclient) that includes
11347           implementation of the SILC client without user interface.  This
11348           was major move from silc/ directory.  The code has been changed
11349           so that it is transparent towards the user interface.  The
11350           silc/ directory includes now the same user interface as before
11351           and it uses the new client library.  Read lib/silcclient/README.
11352           Basicly, the client library performs everything else related
11353           to SILC except user interface handling.  Also, configuration
11354           files are considered to be part of user interface and library
11355           does not handle them.
11356
11357           This change also changed a lot of structures, function naming etc.
11358           Most important change was that SilcClientWindow object was
11359           renamed to SilcClientConnection in the client library.  Created
11360           also new file lib/silcclient/ops.h.  Also added new files
11361           silc/local_command.[ch] and silc/client_ops.[ch].
11362
11363           All these changes were made to make it easier for user interface
11364           designers to create what ever user interface for the SILC client
11365           they want.
11366
11367           It is also expected that the server will be moved to lib
11368           directory as well and SILC Server Library will be created;
11369           sometimes in the future.
11370
11371         * Removed Local commands from lib/silccore/silccommand.h as
11372           they are application specific and new client library does not
11373           handle any of those anymore.
11374
11375         * Several functions moved to lib/silcutil/silcutilc.[ch] from
11376           old client implementation in silc/.
11377
11378         * Added support for callback functions in SILC_LOG_* macros.
11379           Application can now set its own callbacks that will be called
11380           instead of using the default functions that will always print
11381           the debug messages to stderr (or stdout).  Also, debugging can
11382           now be disabled by setting silc_debug to FALSE and re-enabled by
11383           setting it to TRUE.  Note, that logging will still work even
11384           if debugging is disabled.
11385
11386           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
11387           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
11388           silc_log_reset_debug_callbacks.
11389
11390         * To enable debugging in silc client one must give now -d
11391           option on command line.
11392
11393         * Changed silc_schedule_init to automatically allocate task queues
11394           if they are not allocated before calling it.
11395
11396 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11397
11398         * Added GMP 3.1 into math library.
11399
11400 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11401
11402         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
11403           a channel in SILC network.  The packet is used by servers and
11404           routers to notify other routers that user has left a channel.
11405           This little feature was missing until now.  Added the feature
11406           to protocol specification as well.
11407
11408           Added functions: silc_server_send_remove_channel_user and
11409           silc_server_remove_channel_user into server.[ch].
11410
11411         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
11412           lib/silccore/silcpacket.h.  However, they are not implemented
11413           yet.
11414
11415 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11416
11417         * Fixed joining to a channel and sending channel messages
11418           between server and router.  The channel message sending should
11419           now work inside a cell.
11420
11421 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11422
11423         * Fixed the private message sending between server and router.
11424           The private message sending should now work inside a cell.
11425
11426         * Added silc_server_replace_id into server.[ch] to replace
11427           existing ID in the SILC network.
11428
11429         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
11430           and silc_idlist_replace_server_id into idlist.[ch] in server.
11431
11432 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11433
11434         * Fixed the server to server connections.  Server can again now
11435           connect to router.  Router to router connections probably does
11436           not work just yet.
11437
11438 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11439
11440         * Added dynamic protocol registering support.  Now protocols can
11441           registered and unregistered on the fly.  Patch by cras.
11442
11443 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11444
11445         * Added lib/contrib directory to hold routines that some platforms
11446           don't have but are needed by SILC.
11447
11448         * Added getopt.c, getopt1.c and getopt.h from GNU C library
11449           into lin/contrib to provide getopt() and getopt_long() for
11450           those who don't have it.
11451
11452 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11453
11454         * Added AWAY command to client.  When away message is set and
11455           client receives a private message packet the client automatically
11456           replies to the sender with the away message.
11457
11458         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
11459           bug seemed to be the cause of recent problems when compiling
11460           with gcc-2.95.
11461
11462         * Added version detection support to SKE protocol specification
11463           and added the new changes to the SKE implementation as well.
11464           There were other minor changes in the SKE protocol as well.
11465
11466           Many changes in lib/silcske/silcske.[ch] and in
11467           lib/silcske/payload.[ch].
11468
11469         * Added ^U functionality, clear input line.  Patch from cras.
11470
11471 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11472
11473         * Mainly small bugfixes on core library.  Fixed some debugging
11474           logging and buffer overflow in silclog.c.
11475
11476         * Updated config.sub and config.guess on the distribution tree.
11477
11478 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11479
11480         * Added command lagging support in server. Client may execute
11481           commands now only once in two seconds.
11482
11483 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11484
11485         * Optimized packet reception. MAC computation and checking is now
11486           also more optimized.  A lot previously duplicated code is now
11487           used as generic by both client and server.
11488
11489         * Fixed key pair generation in clientutil.c
11490
11491 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11492
11493         * Added into lib/silccore/silcbufutil.[ch] new function;
11494           silc_buffer_realloc.
11495
11496         * Moved generic packet sending/encryption functions to
11497           lib/silccore/silcpacket.[ch] from client and server.  Some
11498           rewriting of the functions.
11499
11500         * Moved all generic packet reception/decryption functions to
11501           lib/silccore/silcpacket.[ch] from client and server.  The
11502           packet processing is now much cleaner in both client and server.
11503           These were major changes in both client and server.
11504
11505         * Created many common functions in server to do packet sending.
11506           Previously code were duplicated a lot, this has been removed
11507           with these changes.
11508
11509 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11510
11511         * Rewrote major parts of the ID cache system.  Don't know
11512           whether it is better now or not but at least the API is more
11513           cleaner now.
11514
11515         * Major rewrite on ID cache stuff on client because of the ID
11516           cache API changes.  Added idlist.c to client.
11517
11518         * Also major rewrite on ID cache stuff on server as well.
11519           Major rewrite of idlist.[ch]. SilcXXXList's are now named
11520           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
11521           in hand, instead they are all put into the ID cache system now.
11522           All server_idlist_* routines uses ID cache now instead of
11523           traversing its own lists (those lists does not exist anymore).
11524           SilcIDList though still exists.  Also, SilcXXXEntry's are
11525           now pointers.
11526
11527 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11528
11529         * Finally made the SKE implementation compliant to the protocol
11530           specification.  All mp integers are now binary encoded as
11531           opposed being HEX encoded.
11532
11533         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
11534           from binary data.
11535
11536         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
11537           functions: silc_[encode/decode]_pem.  Also added function
11538           silc_encode_pem_file to PEM encode with newlines ('\n') for
11539           saving into a file.
11540
11541         * SILC public keys are now encoded either PEM or binary.  Same
11542           option is for private keys as well.  By default private keys
11543           are binary encoded and public keys PEM encoded.  Silly HEX
11544           encoding were removed.
11545
11546         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
11547           function to create fingerprints.
11548
11549         * Fixed a bug in SHA1; does not change the original data anymore.
11550
11551         * Partly implemented INFO command on client and server side.
11552           Fixed CLEAR command.  Changes to SERVER command; show current
11553           server(s) when giving command without arguments.  Added
11554           VERSION command to client.
11555
11556         * Added check to server that unregistered connections cannot
11557           execute commands (unless it is specificly allowed).
11558
11559 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11560
11561         * Fixed screen refresh.
11562
11563         * Fixed channel joining bug from client.  On some circumstances
11564           client tried to join to a channel it had already joined.
11565
11566         * Added public key verification process into client's protocol.c.
11567           The client now verifies the public key from user and saves
11568           it into ~./silc/serverkeys/ directory.
11569
11570           Added into: clientutil.[ch]: silc_client_verify_server_key.
11571
11572         * Changed SKE protocol's silc_ske_initiator_finish function
11573           to accept callback function that verifies the received public
11574           key.  Removed old silc_ske_verify_public_key function.
11575
11576 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11577
11578         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
11579           silc_pkcs_private_key[_data]_set.
11580
11581         * Made the password and public authentication more cleaner in
11582           server's protocol.c.
11583
11584         * Removed historic and obsolete protocol `channel_auth' from
11585           both client and server.
11586
11587         * Removed wrong way of sending command status messages from
11588           server to client in server's command.c.  The old way violated
11589           protocol specification.
11590
11591           Changes to silccore/silccommand.[ch]: removed
11592           silc_command_encode_status_payload -> not needed anymore,
11593           changed silc_command_encode_payload_va to accept extra
11594           argument on variable argument list.  The argument type must
11595           now be provided to the function.  Also, added new function:
11596           silc_command_encode_reply_payload_va which is same as
11597           normal command_encode_payload_va except command status type
11598           is provided as extra argument.
11599
11600 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11601
11602         * Added ~./silc directory handling.  The directory includes the
11603           public and private keys for the client.
11604
11605           Added silc_client_check_silc_dir, silc_client_create_identifier
11606           and silc_client_load_keys.
11607
11608         * Implemented SILC protocol compliant public key.  Added public
11609           and private key saving to and loading from files.
11610
11611           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
11612           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
11613           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
11614           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
11615           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
11616
11617           Implemented: silc_pkcs_save_[public/private]_key[_data] and
11618           silc_pkcs_load_[public/private]_key.
11619
11620 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11621
11622         * Added silc_server_get_route (route.[ch]) to get connection
11623           data for the fastest route for given ID.
11624
11625         * Implemented INVITE command on client and server.  The command
11626           were re-defined in the SILC Protocol Specification and the
11627           implementation now complies with the specification.
11628
11629         * Implemented PING command on client and server.
11630
11631         * Implemented NAMES command on client and server.  The server side
11632           supports currently only normal server not router server yet.
11633           Some changes to NAMES definition in SILC protocol specification.
11634
11635 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11636
11637         * Implemented LEAVE command on client and server.
11638
11639         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
11640           again.  This change was made to the protocol as well.  Server
11641           should not violate the protocol specification anymore.
11642
11643 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11644
11645         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
11646           was tested.  SOCKS4 was not but should work anyway.