make sure session->hostname and session->port are valid before the
[crypto.git] / CHANGES
1 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
2
3         * make sure session->hostname and session->port are valid before the
4           application callback is done, since things will go wrong if the
5           application immediately calls silc_client_file_receive. Affected
6           file lib/silcclient/client_ftp.c.
7           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
8
9 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
10
11         * New SILC PKCS API enabling support for other public keys
12           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
13
14         * Separated SILC Public Key Payload routines from the PKCS API
15           to lib/silccore/silcpubkey.[ch].
16
17 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
18
19         * Added SILC Key Repository library, lib/silcskr.
20
21         * Added SILC Server library, lib/silcserver.
22
23 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
24
25         * MIME objects in attributes now use SilcMime.  Affected files
26           are lib/silccore/silcattrs.[ch].
27
28 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
29
30         * Synchronize semaphore posting for real threads in FSM.
31           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
32
33 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
34
35         * Added silc_file_set_nonblock.  Affected file is
36           lib/silcutil/silcfileutil.h.
37
38         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
39
40 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
41
42         * FSM based implementation of SILC SKE.  Simpler interface also.
43           Affected files are in lib/silcske/.
44
45         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
46
47 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
48
49         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
50           silc_mime_parse is available but deprecated.
51
52         * Check that packet is valid when processing key exchange,
53           authentication and rekey protocols.  Fixes a crashbug.
54           Affected files are apps/silcd/protocol.c and
55           lib/silcclient/protocol.c.
56
57         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
58           all hash buffers to use that instead of fixed values.
59
60 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
61
62         * Added SHA-256 to crypto library.  The SHA-256 takes now
63           precedence over SHA-1.
64
65 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
66
67         * Check for valid return value from regcomp.  Affected file
68           lib/silcutil/unix/silcunixutil.c.
69
70 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
71
72         * Fixed silc_hash_uint to work with integers.  Affected
73           file lib/silcutil/silcutil.c.
74
75 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
76
77         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
78
79 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
80
81         * Fixed channel public key list saving on JOIN command reply
82           on backup router.  Affected file apps/silcd/command_reply.c.
83
84 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
85
86         * Added default limit how many channels client can join,
87           default is 50.  Added 'channel_join_limit' configuration
88           option to server too.  Affected files are apps/silcd/command.c
89           and serverconfig.[ch].
90
91 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
92
93         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
94           On Toolkit the server and client are not compiled by default.
95           Affected file configure.ad.
96
97 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
98
99         * Added lib/contrib/getopt.[ch] for platforms that don't
100           have it (it is not GPL implementation).
101
102         * Fixed compilation when pkg-config is used.
103
104 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
105
106         * A comma in invite/ban string is invalid, check for it.
107           Affected file apps/silcd/server_util.c.
108
109         * Added SERVICE command to the server.  It parses the command
110           request but SILC Server does not support services for the
111           time being.  Affected file apps/silcd/command.[ch].
112
113         * Added SERVICE command and command reply to client library.
114           It is however incomplete.  Updated Toolkit documentation.
115           Affected files are lib/silcclient/command[_reply].[ch].
116
117         * Fixed IDENTIFY/WHOWAS command reply to send the username
118           correctly (uninitialized buffer).  Affected file is
119           apps/silcd/server_query.c.
120
121 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
122
123         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
124           finalizes the major restructuring of the CVS tree.
125
126 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
127
128         * Send empty MOTD reply if MOTD file cannot be read.
129           Affected file silcd/command.c.
130
131 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
132
133         * Optimized primer number generator to use simpler conversion
134           routines.  Also assure that the prime number will have the
135           highest bit set after modifying it.  Affected file is
136           lib/silcmath/silcprimegen.c.
137
138         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
139
140         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
141           for now only for testing purposes, it will not be delivered
142           in any distribution for now.
143
144         * Removed NSS MPI from the source tree.  Due to upcoming
145           license change for the SILC Toolkit, we cannot deliver the
146           NSS MPI anymore.  I decided to replace it in all distributions
147           with public domain library.
148
149         * Removed GNU regex from lib/contrib and introduced free
150           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
151           GNU regex compatible API to it (only partial).
152
153         * Removed getopt routines from lib/contrib.
154
155 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
156
157         * Use silc_server_send_command_reply to send replies instead
158           of encoding packet itself.  Affected file silcd/command.c.
159
160         * Added command sending and receiving statistics to server.
161           Affected files in silcd/.
162
163         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
164           with GCC, for it not to warn about pointer signedness.
165
166 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
167
168         * Added context to the SilcIDCache destructor.  Affected
169           files are lib/silccore/silcidcache.[ch],
170           lib/silcclient/client.c and silcd/server.c.
171
172 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
173
174         * Added pkg-config check to configure.
175
176         * The PublicKeyDir must not be used with Admin block in server
177           config.  Affected file silcd/serverconfig.c.
178
179 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
180
181         * Added Autodist.
182
183 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
184
185         * Handle empty LIST command reply correcttly in server.  Affected
186           file silcd/command_reply.c.
187
188         * Handle empty LIST command reply correctly in client library.
189           The application will now receive one LIST command reply with
190           all arguments set to NULL if there are no channels.  Updated
191           Client Library documentation accordingly.  Affected file
192           lib/silcclient/command_reply.c.
193
194 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
195
196         * Added channel name string stringprep profile to the protocol
197           and implementation to allow a little free'er channel name
198           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
199
200         * Added silc_channel_name_[check|verify] to check and verify
201           channel name strings.  Affected files are
202           lib/silcutil/silcstrutil.[ch].
203
204         * Added support for the new channel name preparation in client
205           library and server.  Affected files in lib/silcclient and
206           silcd/.
207
208 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
209
210         * Added the Autodist into the source tree.  It replaces the
211           old ./prepare.  It can be used to create distributions as
212           previously.  See README.CVS and README.DIST.  See
213           distributions in distdir/.
214
215 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
216
217         * Make sure query sends at least an error back if nothing
218           more is sent.  Affected file silcd/server_query.c.
219
220 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
221
222         * During query, check if the original command caller goes
223           away.  If it does, stop the query.  Affected file
224           silcd/server_query.c.
225
226         * Check for valid channel creation in JOIN command reply.
227           Affected file lib/silcclient/command_reply.c.
228
229         * Handle the resolver counter in silc_client_get_users_by_channel
230           callback correctly.  Fixed auto-join bug in Gaim.  Affected
231           file lib/silcclient/idlist.c.
232
233 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
234
235         * Added some better error messages.  Affected file
236           silcd/command_reply.c and packet_receive.c.
237
238         * Handle error in WATCH command propely on backup router.
239           Affected file silcd/command.c.
240
241         * Fixed freeing of unfreeable variable in WHOIS command reply.
242           Affected file silcd/command_reply.c.
243
244 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
245
246         * Added pkg-config .pc file creation for silc core library
247           and silcclient library.  A patch by c0ffee.
248
249         * Removed the need for GNU Libidn.  Added the simple stringprep
250           from libidn into lib/contrib/.  It is now used also on Windows
251           build.
252
253 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
254
255         * Simplified the invite and ban string handling in the
256           server.  Check for valid invite and ban arguments also.
257           Affected file silcd/server_util.c.
258
259 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
260
261         * Added WATCH list announcing in backup router protocol.
262           Affected files are silcd/command.c, server.c, server_backup.c.
263
264         * Do not change users mode to founder on normal server/backup
265           if the founder mode is set, and user is first one to join.
266           Affected file silcd/pcaket_receive.c.
267
268         * Do not send CUMODE_CHANGE notify back to sender.  Affected
269           file silcd/packet_receive.c.
270
271         * Added getrusage() to take noise in SILC RNG.  A patch by
272           Mika Boström.  Affected files are configure.in.pre,
273           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
274
275 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
276
277         * Splitted the SILC libraries configuration into a configure
278           fragment into lib/configure.ad.  It is now possible, once
279           this feature is added, to specify whether to compile or not
280           compile included SILC libraries.  Affected files are
281           configure.in.pre, lib/silcmath/mpi/configure.ad,
282           lib/configure.ad, Makefile.defines.pre and
283           Makefile.defines_int.pre.
284
285         * Added --with-silc-includes and --with-silc-libs to configure.
286           If specified the included libs are not compiled, but the
287           specified libs are used.  Pkg-config is not yet supported.
288           Affected file configure.in.pre.
289
290         * Fixed WATCH command handling on backup router.  Router does not
291           send the watch command any more to backup if it originates from
292           backup.  Affected file silcd/command.c.
293
294 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
295
296         * Changed announcing to not announce unregistered clients.
297           Affected file silcd/server.c.
298
299         * Fixed username handling in command reply.  Affected file
300           silcd/command_reply.c.
301
302         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
303
304 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
305
306         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
307           Affected file: includes/silcincludes.h.in
308
309         * bool is defined as _Bool on Mac OS X now.
310           Affected file: lib/silcutil/silctypes.h
311
312 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
313
314         * Added support for UTF-8 nicknames, channel names and
315           server names in client library.  Affected files in
316           lib/silcclient/.
317
318         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
319           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
320           software to check how Toolkit has been compiled.
321
322 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
323
324         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
325
326         * Use silc_utf8_str[n]casecmp instead of strcmp routines
327           in library and in SILC Client when dealing with nicknames
328           and other identifier strings.  Affected file in client lib
329           and irssi.
330
331         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
332           irssi/src/silc/core/silc-servers.c.
333
334 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
335
336         * Fixed idcache to work with the new identifier strings.
337           Affected file lib/silccore/silcidcache.c.
338
339         * Added UTF-8 hash and compare function for SilcHashTable.
340           Affected file lib/silcutil/silcutil.[ch].
341
342         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
343           Affected file lib/silcutil/silcstringprep.[ch].
344
345         * Changed the identifier string handling to include the original
346           format in client, server, channel entries and normalized
347           format in cache.  Affected files in silcd/.
348
349 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
350
351         * Added support for the new identifier strings and their
352           validity checking.  Nicknames, channel names and usernames
353           can now include practically any kind of letters and various
354           other characters.  Affected files in silcd/ and in libraries.
355
356           NOTE: comparing these strings should now be done with memcmp()
357           to check binary compatibility.  All these strings are normalized
358           and casing is irrelevant.
359
360         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
361           as easy function for applications to check whether identifier
362           strings are valid.
363
364 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
365
366         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
367           file lib/silcutil/silcutf8.c.
368
369         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
370
371 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
372
373         * Make public key in getkey reply mandatory.  Affected file
374           lib/silcclient/command_reply.c
375
376 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
377
378         * Added Parameter dont_register_crypto_library to
379           SilcClientParam. If set to TRUE, silcclient library will
380           not initalize the Crypto Libraries and application
381           will need to do it. Affected file lib/silcclient/silcclient.h,
382           lib/silcclient/client.c.
383
384 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
385
386         * Imported new silc_utf8_[encode|decode] routines from
387           my internal SILC 1.1 source tree.  New encodings added:
388           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
389           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
390           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
391           SILC_STRING_LDAP_DN.
392
393         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
394
395         * Implemented stringprep (RFC 3454) API.  Internally we use
396           GNU Libidn's stringprep, for now, so it is required now to
397           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
398
399         * Added checking for GNU Libidn and --with-libidn to configure.
400
401 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
402
403         * If the passphrases entered do not match while generating a new key,
404           completly start over instead of going into an infinite loop asking
405           the user to re-enter the passphrase correctly.  Affected file
406           lib/silcutil/silcapputil.c
407
408 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
409
410         * Make sure server is removed from backup list when it is
411           deleted.  Affected files silcd/command.c, server.c,
412           server_util.c.
413
414         * Close socket when connecting to router fails.  Affected
415           file silcd/server.c.
416
417 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
418
419         * Adopt configuration toolchain to current auto-tools.
420           Affected files prepare, irssi/configure.in
421         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
422           redo that.  Affected files irssi/src/silc/core/client_ops.c,
423           irssi/src/fe-common/silc/fe-silc-channels.c
424         * Take over command line options into silcclient data structure.
425           Affected file irssi/src/silc/core/silc-core.c
426
427 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
428
429         * Do not try to initiate backup resuming protocol forever.
430           Affected file silcd/server_backup.c.
431
432 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
433
434         * ID change in resuming has to be done before changing
435           detached client's modes, since the ID change may fail and
436           leave ghosts on the network.  Affected file is
437           silcd/packet_receive.c.
438
439 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
440
441         * Fixed Win32 scheduler to not stuck anymore.  A patch from
442           Juha Räsänen.  Affected file is
443           lib/silcutil/win32/silcwin32schedule.c.
444
445         * Fixed QoS parsing for connection blocks in server.  Affected
446           file is silcd/serverconfig.c.
447
448         * Fixed server statistics increasing in server.  Affected file
449           is silcd/server.c.
450
451         * The CLOSE command now marks backup router as self disconnected
452           to avoid resuming problems.  Affected file silcd/command.c.
453
454 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
455
456         * When using silc_net_create_connection[_async], and your system can
457           create IPv6 sockets, it will try to connect to the IPv6 host.
458           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
459           file lib/silcutil/unix/silcunixnet.c
460
461 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
462
463         * Check for valid route when receiving packet from router and
464           when routing it to local server in the cell.  A patch from
465           Matt Miller.  Affected files silcd/router.c and server.c.
466
467 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
468
469         * Couldn't detach and reattach twice, because of the previous
470           commit. Affected file silcd/packet_receive.c
471
472 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
473
474         * Added check to ignore Port value if Initiator is FALSE.
475           Remote router coudln't connect if Port was set. Affected file
476           silcd/serverconfig.c
477
478         * If some client tries to resume more than once at the same time,
479           server crashed. Router didn't crash, but showed odd behaviour
480           (didn't allow clients to join anymore, ..). Affected files
481           silcd/packet_receive.c silcd/idlist.h
482
483 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
484
485         * Destroy the file transfer session in silc_client_file_close
486           with timeout.  Affected file lib/silcclient/client_ftp.c.
487
488         * Call SFTP server monitor in READ and WRITE after the actual
489           operations.  Affected file lib/silcsftp/sftp_server.c.
490
491 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
492
493         * Create one configure script from configure fragments
494           (configure.ad).  This is a first step towards new distribution
495           system.  Affected files prepare, configure.in.pre,
496           lib/silcmath/mpi/configure.ad.
497
498 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
499
500         * Removed expiring of client key pair.  Affected file is
501           irssi/src/silc/core/clientutil.c
502
503 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
504
505         * Check the number of connections from real number of
506           connections instead of socket number, when deciding if
507           server is full.  Affected files are silcd/server.c,
508           server_internal.h and silcd.c.
509
510         * Clarified the connections_max meaning in General section
511           in doc/example_silcd.conf.in.
512
513         * The reconnect_keep_trying default value set to TRUE
514           if it is not defined in the config file.  Affected file
515           silcd/serverconfig.c.
516
517 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
518
519         * Fixed crashbug in connection closing, after a protocol
520           completion callback, which might have closed it already.
521           Affected file silcd/server.c.
522
523         * Fixed rekey with PFS in backup router.  It did not allow
524           rekeys with PFS, and when the rekey protocol timedout
525           it crashed the backup router without the above fix.  Affected
526           file silcd/packet_send.c and server.c.
527
528 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
529
530         * The silc_client_add_channel_private_key now returns the
531           private key context if pointer is given as argument.
532           Affected files are lib/silcclient/silcclient.h and
533           client_channel.c.
534
535         * Added support for using channel private keys in SILC
536           Client Library even if the private key mode is not set
537           on the channel.  Affected file lib/silcclient/client_channel.c.
538
539         * The channel private key used to decrypt message is now
540           delivered to the application in the 'channel_messageÃ' client
541           operation.  Affected files are lib/silcclient/silcclient.h
542           and client_channel.c.
543
544         * Fixed wrong arg type for user limit in CMODE command reply.
545           Affected file silcd/command.c.
546
547         * The user limit is now taken and saved to SilcClientEntry in
548           JOIN and CMODE command replies and in CMODE_CHANGE notify.
549           Affected files lib/silcclient/silcclient.h, command_reply.c
550           and client_notify.c.
551
552         * Added support to the new private message key indicator
553           packet.  Added a new function to the client library:
554           silc_client_send_private_message_key_request.  The sender
555           indicates to be initiator, and receiver is responder.
556           Added the indicator to the SilcClientEntry as 'prv_resp'
557           boolean.  Affected files are lib/silcclient/silcclient.h
558           client.[ch], and client_prvmsg.c.
559
560 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
561
562         * Fixed the JOIN command calling when called with both
563          -auth and -founder.  Affected file is lib/silcclien/command.c.
564
565 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
566
567         * Check watcher list for resumed clients as well.  Affected
568           file is silcd/packet_receive.c.
569
570 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
571
572         * Implemented the user limit to the CMODE_CHANGE notify,
573           CMODE command reply and JOIN command reply in server.
574           Affected files are silcd/server.c, command.c, command_reply.c,
575           packet_send.c and packet_receive.c.
576
577 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
578
579         * Defined SILC_STRFMT_END that must be used now with
580           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
581           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
582           lib/silcclient/silcvcard.c, silcd/server_util.c.
583
584         * Fixed the adding of public key to the WATCH list in server.
585           Fixed the WATCH notify sending to client.  Affected files
586           are silcd/packet_send.[ch], command.c, server_util.c.
587
588         * Implemented the watching by public key in the SILC Client
589           Library and SILC Client.  Affected files are
590           lib/silcclient/command.c and client_notify.c.
591
592 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
593
594         * Added support for public key watching in server.  Affected
595           files are silcd/server.c, server_internal.h, command.c,
596           server_util.c.
597
598 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
599
600         * Added public key to the SIlcClientEntry.  Affected files
601           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
602
603         * Fixed the get_clients_whois reply processing to return
604           exactly same entries server returned.  Makes it possible
605           to search using attributes.  Affected file is
606           lib/silcclient/idlist.c.
607
608 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
609
610         * Save founder key to SilcChannelEntry.  Affected files are
611           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
612
613 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
614
615         * Call the monitor callback with _CLOSED status from the
616           silc_client_file_close.  Affected files are
617           lib/silcclient/client_fpt.c, silcclient.h
618
619         * Added silc_client_get_clients_whois which resolves using
620           WHOIS, and supports requested attributes as well.
621           Affected files are lib/silcclient/silcclient.h, idlist.c.
622
623 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
624
625         * Added support for asking the destination filename where
626           the downloaded file is saved in the file transfer.  Affected
627           files are lib/silccilent/silcclient.h, client_ftp.c.
628
629 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
630
631         * Fixed error handling in resuming data processing.  Affected
632           files are lib/silcclient/client_resume.c and client.c.
633
634 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
635
636         * Fixed silc_client_send_private_message to return TRUE correctly.
637           Affected file lib/silcclient/client_prvmsg.c.
638
639         * Added topic to the SilcChannelEntry.  Affected files are
640           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
641
642 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
643
644         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
645           file lib/silcclient/command.c
646
647 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
648
649         * Convert all commands to UTF-8 before passing them to the
650           client library.  Still need to convert replies from UTF-8 to
651           the locale encoding.  Affected file
652           irssi/src/silc/core/silc-cmdqueue.c
653
654 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
655
656         * redirect all silc_client_command_calls through a queueing framework.
657           This fixes /CYCLE and the annoying "nick change after auto-joining
658           a channel".  Furthermore it defines one central point where
659           command parameters can be UTF-8-ified.  Affected files
660           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
661           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
662
663 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
664
665         * use asynchronous connect() to establish router connections.
666           Fixes problem when the primary router goes down.  Affected files
667           silcd/server.c, silcd/server_backup.c
668
669 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
670
671         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
672           Fixed various compilation warnings when type casting ints
673           to pointers or vice versa, of different size.  Updates around
674           the source free.
675
676 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
677
678         * Surrogates not allowed in UTF-8 strings, updated decoder.
679           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
680           testers in lib/silcutil/tests/ directory.
681
682 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
683
684         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
685           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
686           files are lib/silcclient/silcclient.h, client.c.
687
688 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
689
690         * When resuming a session fails, notify the user that the session
691           file needs to be removed eventually.  Affected files
692           irssi/src/fe-common/silc/module-formats.[ch],
693           irssi/src/silc/core/client_ops.c.
694
695 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
696
697         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
698           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
699
700         * Typofix in Irssi::Silc module.  Affected file
701           irssi/src/perl/silc/Silc.xs.
702
703 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
704
705         * Changed the way NOTICE flagged messages are treated. Added support
706           for notices in queries and signing notices.  Affected files
707           irssi/default.theme; irssi/docs/help/in/notice.in;
708           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
709           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
710
711         * Fixed typo in /ACTION help.  Affected file
712           irssi/docs/help/in/action.in
713
714 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
715
716         * Fixed typo in perl module.  Affected file
717           irssi/src/perl/silc/Server.xs
718
719         * Changed the way ACTION flagged messages are treated. Added support
720           for actions in queries and signing actions.  Affected files
721           irssi/default.theme; irssi/docs/help/in/action.in;
722           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
723           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
724           silc-servers.[ch]
725
726 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
727
728         * Incorrectly reported error when client had to be resolved from
729           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
730
731 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
732
733         * Fixed whois public key hash table deleting and adding in
734           detached client case.  Affected file silcd/packet_receive.c.
735
736 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
737
738         * Changed filenames of silc/fe module not to collide with filenames
739           from core/fe.  Also seperated public messages printing from
740           query messages printing.  Affected files are all in
741           irssi/src/fe-common/silc.
742
743 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
744
745         * Fixed the invite process handling during joining to use
746           correct server name for the client that is matched against
747           the invite string for the channel.  Wrong server name caused
748           inability to join the channel.  Affected file is
749           silcd/command.c.
750
751 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
752
753         * Fixed the CUMODE channel founder authentication on normal
754           server to not remove the founder rights on existing founder
755           before checking that router accepts the mode change.  Affected
756           files are silcd/command.c and silcd/packet_receive.c.
757
758         * Remove the server entry correctly when rekey timeouts and
759           remote router connection on normal server is closed.  Fixes
760           a crash where server uses the freed server entry.  Affected
761           file silcd/server.c.
762
763 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
764
765         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
766           networks.  This is the first step in solving the bug about
767           /SERVER ADD -silcnet <silcnet>.  Affected files
768           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
769           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
770           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
771
772 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
773
774         * /SMSG and /MMSG now correctly create new queries. Affected files
775           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
776
777         * Add basic support for SILC protocol specific variables in perl.
778           Affected files irssi/src/perl/silc/*, irssi/configure.in,
779           irssi/src/perl/Makefile.am
780
781 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
782
783         * Don't use silc_get_input, it's obviously not reliable.  Fixes
784           issue when the current key expires.  Affect file
785           irssi/src/silc/core/clientutils.c
786
787         * Make the session data filename configurable.  This makes it
788           possible to have different session files for different
789           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
790           client_ops.[ch], silc-servers.c,
791           irssi/src/silc/fe-common/silc/module-formats.[ch]
792
793         * Use the same set of libtool files for the MPI lib as for the
794           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
795           config.sub, configure.in, install-sh, missing, mkinstalldirs
796
797 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
798
799         * Fixed server statistics decrementing error to not go to
800           negative.  Affected file silcd/packet_receive.c.
801
802 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
803
804         * Use silc_server_query_add_error to add error in public key
805           search error.  Added support in send_reply to send errors
806           without specific argument.  Affected file silcd/server_query.c.
807
808         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
809           Client for NO_SUCH_NICK.  It was against the protocol specs.
810           Affected file irssi/src/silc/core/client_ops.c.
811
812         * Added backwards support for the wrong NO_SUCH_NICK error sending
813           in server.  To be removed in SILC Server 1.0.  Both old clients
814           and clients with fixed error handling now works.  Affected file
815           silcd/server_query.c.
816
817 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
818
819         * fixed a bug in the whois using attributes function where no
820           error was sent if no nickname and client id but the attributes were
821           given to whois. Affected file silcd/server_query.c
822
823 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
824
825         * remove public key from public key hashtable on detach. Affected
826           file silcd/packet_receive.c
827
828         * free public key hashtable before removing clients on server
829           shutdown. Affected file silcd/server.c
830
831         * remove public key prior deleting client-data on killing a client.
832           Affected file silcd/server_util.c
833
834 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
835
836         * Getting the MOTD from other servers works now. Affected
837           files are silcd/command.c and silcd/command_reply.c
838
839 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
840
841         * Initialize the variable idletag, since it is tested in
842           silc_core_deinit for its default value.  Affected file
843           irssi/src/silc/core/silc-core.c
844
845 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
846
847         * Fixed signed channel messages across cells. Affected file
848           silcd/packet_send.c
849
850 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
851
852         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
853           is not defined.  They can now be safely used in if-statements
854           without braces.  Affected file lib/silcutil/silclog.h.
855
856         * Added the checks for backup closing connection due to error
857           (local or remote) and thus not allow the resuming to occur
858           in reconnect.  Affected files are silcd/packet_send.c
859           and server.c.
860
861 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
862
863         * Help file updates.  Affected files in irssi/src/docs/help/in/.
864
865 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
866
867         * Fixed channel messages across cells. Affected file
868           silcd/packet_send.c
869
870 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
871
872         * Fixed file transmission accepting in client library to not
873           start the negotiation if user hasn't accepted the transfer,
874           instead create new session for resent transfer.  Affected
875           file lib/silcclient/client_ftp.c.
876
877         * Show the session ID in the file transmision list.  Remove
878           session from list that failed to transfer.  Switch the current
879           session automatically after transmission, and in errors, to new
880           session if other sessions exists in the transfer list.  Affected
881           files are irssi/src/silc/core/silc-servers.c,
882           irssi/src/fe-common/silc/modfule-formats.c.
883
884 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
885
886         * Fixed MIME header parsing for the hopefully last time.  Affected
887           file lib/silcutil/silcstrutil.c
888
889 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
890
891         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
892
893         * The SILC RNG is now gauranteed to return non-zero random
894           values.  Affected files are lib/silccrypt/silcrng.[ch].
895
896 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
897
898         * Fixed nickname formatting when changing only case of the
899           nickname.  Affected file lib/silcclient/idlist.c.
900
901 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
902
903         * Fixed a memory leak and incorrect printing of the "appears as"
904           message.  Affected file irssi/src/silc/core/client_ops.c
905
906 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
907
908         * Added CRT (Chinese Remainder Theorem) supported RSA
909           private keys and private key operations.  This significantly
910           increases private key operation efficiency.  No compatibility
911           issues with new or old private keys.  Affected files are
912           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
913
914 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
915
916         * Fixed GCC-3.3.2 related compilation warnings from the
917           source tree.
918
919 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
920
921         * Removed RC6 from distributions.
922
923 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
924
925         * Added some better comments to lib/silccrypt/silcpkcs.h,
926           optimized some routines in lib/silccrypt/silcpkcs.c.
927           Added test_silcpkcs into lib/silccrypt/tests/.
928
929         * Fixed silc_rng_global_init to actually init the global RNG
930           if RNG wasn't provided for it.  Affected file is
931           lib/silccrypt/silrng.c.
932
933 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
934
935         * Added silc_hash_table_find_by_context_ext.  Affected files
936           lib/silcutil/silchashtable.[ch].
937
938         * Save the public key on normal server in WHOIS command reply
939           from attributes, if present, and add it to public key hash
940           table.  Fixes WHOIS resolving by public key on normal server.
941
942           Optimized the attributes resolving on normal server to not
943           resolve if we resolved them already from router.
944
945           Affected files are silcd/server_query.c, command_reply.c.
946
947 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
948
949         * Added support for whois using attributes.
950           Affected files silcd/command_reply.c, silcd/packet_receive.c,
951           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
952           silcd/server_util.c
953
954         * Added support for whois using public key attribute to /WHOIS i
955           client command. Affected files irssi/docs/help/in/whois.in,
956           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
957
958 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
959
960         * Fixed UMODE setting in server when the client has anonymous
961           mode set.  The mode setting was not working.  Affected file
962           silcd/command.c.
963
964 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
965
966         * Fixed some bugs and typos related to sending split messages.
967           Print notification when sending messages with /MMSG.  Affected
968           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
969
970 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
971
972         * Optimized the socket referencing in packet routines, client
973           library and server.  Affected files are lib/silccore/silcpacket.c,
974           lib/silcclient/client.c and silcd/server.c.
975
976         * If silc_socket_set_qos is given with NULL arguments the QoS is
977           reset from the socket.  Affected files are
978           lib/silcutil/silcsockconn.[ch].
979
980 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
981
982         * Add a /LISTKEYS command which lists the locally cached
983           client and server keys.  Affected files
984           irssi/src/fe-common/module-formats.[ch],
985           irssi/src/silc/core/silc-{channels,servers}.c
986           irssi/docs/help/in/listkeys.in
987
988 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
989
990         * Check that packet queue purging was successful.  Affected
991           files lib/silcclient/client.c and silcd/packet_send.c.  Related
992           to MAC failed errors.
993
994         * Do not clear the inbuf even if it is empty if QoS was applied
995           to it.  Otherwise the QoS data is cleared and MAC failed error
996           will occur.  Affected file lib/silccore/silcpacket.c.
997
998         * Use the rekey period time as rekey protocol timeout value.
999           If the rekey does not succeed during the rekey period there's
1000           something very wrong, and we most likely end up with wrong keys,
1001           do graceful reconnect then.   Affected file silcd/server.c.
1002
1003         * Take reference of the socket in the parser context, as it's
1004           possible to have the parsers in queue after the socket is
1005           disconnected and this may cause crash.  Affected files are
1006           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1007           silcd/server.c.
1008
1009 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1010
1011         * Fixed KICK command reply sending, it sent to replies.
1012           Affected file silcd/command.c.
1013
1014 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1015
1016         * Finish the silc-mime.pl script. It now supports MIME type
1017           guessing using magic files, signing data messages, executing
1018           MIME handlers in background. Affected files
1019           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1020
1021         * Changed MIME signal handler to make things easier for the perl
1022           script. Affected files irssi/src/silc/core/client_ops.c,
1023           silc-servers.c, and irssi/docs/signals.txt
1024
1025         * Cleaned up the silc_mime_parse function and fixed detection
1026           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1027
1028 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1029
1030         * Resolve the IP for file transfer listener from the connection
1031           socket.  Affected file lib/silcclient/client_ftp.c.
1032
1033         * Accept NULL hostname parameter in the functions
1034           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1035           if hostname is not wanted.
1036
1037 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1038
1039         * Fixed race condition between silc_client_init and
1040           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1041
1042 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1043
1044         * Fixed file transfer connection closing when SIGNOFF for
1045           the client is received from server.  Affected file is
1046           lib/silcclient/client_ftp.c.
1047
1048 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1049
1050         * Check for disconnected socket in QUIT callback.  Affected
1051           file silcd/command.c.
1052
1053 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1054
1055         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1056           Affected files lib/silcutil/silcstrutil.c
1057
1058         * Cleaned up the escape/unescape functions for correctness and
1059           speed. Affected file irssi/src/silc/core/client_ops.c
1060
1061         * Removed handling for data messages with Content-Type: text/*,
1062           moved parsing of MIME headers to the signal handler, added
1063           support for signing and verifying data messages. Affected
1064           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1065           irssi/src/silc/core/silc-{servers,channels}.c
1066
1067         * Added a perl script for handling data messages based on
1068           information read from Mailcap files. New file
1069           irssi/scripts/silc-mime.pl
1070
1071 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1072
1073         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1074           acknowledge recepetion of a message to the sender.  Updated
1075           protocol specs.
1076
1077 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1078
1079         * Unregister channel key saving callback when deleting channel.
1080           Affected file lib/silcclient/idlist.c.
1081
1082         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1083           before calling notify client operation.  Affected file is
1084           lib/silcclient/client_notify.c.
1085
1086         * Unregister QoS tasks when deleting the socket connection.
1087           Affected files lib/silcutil/silcsockconn.[ch],
1088           unix/silcunixsockconn.c.
1089
1090         * Implemented latest presence-attrs draft changes.  Affected
1091           files lib/silccore/silcattrs.h and
1092           irssi/src/silc/core/silc-queries.c.
1093
1094 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1095
1096         * Save old channel keys in list to allow more rapid change
1097           of channel keys if server for some reason does that.  This
1098           avoids loosing so many channel messages due to not having
1099           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1100           idlist.c and client_channel.c.
1101
1102 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1103
1104         * Continued backup router tests and fixes.  Affected files
1105           silcd/server_backup, server_util.c, server.c.  See TODO.
1106
1107 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1108
1109         * Fixed SERVER_SIGNOFF handling in servers.  The client
1110           was removed from wrong list thus not removing the client
1111           at all.  Affected file silcd/packet_receive.c.
1112
1113         * Do not execute rekey protocol for disabled connections as
1114           it would never go through.  Affected file silcd/server.c.
1115
1116         * Added timeout for rekey protocol to catch if the protocol
1117           never executes successfully.  Affected files silcd/server.c
1118           and protocol.h.
1119
1120 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1121
1122         * Abandon packet processing for disconnected sockets.  Check
1123           this always after calling packet processing callback.
1124           Affected file lib/silccore/silcpacket.c.
1125
1126         * Fixed double registration disconnection code in server.
1127           Closed wrong connection.  Affected file silcd/packet_receive.c.
1128
1129 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1130
1131         * On normal server reconnect to primary during resuming 4
1132           times, then give up.  Affected file silcd/server_backup.c.
1133
1134         * If during reconnecting to routers we notice we have router
1135           connection but no primary router set, the server is in desync.
1136           Reconnect to primary to restore network.  Affected file
1137           silcd/server.c.
1138
1139         * Assure that only one protocol is exeucting at the same time.
1140           Added checks for all protocols.  Affected files are
1141           silcd/server.c and server_backup.c.
1142
1143 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1144
1145         * Check that a string is not already part on invite/ban
1146           string when processing it.  Affected file silcd/server_util.c.
1147
1148 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1149
1150         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1151           with 1.2 version of the protocol.  Affected file is
1152           silcd/packet_receive.c.
1153
1154 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1155
1156         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1157           where the passphrase was given.  Affected file is
1158           silcd/command.c.
1159
1160 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1161
1162         * INVITE and BAN notifys are now delivered from routers to
1163           servers (but not clients) on the channel.  Updated specs and
1164           code.  Affected files silcd/packet_[send|receive].[ch],
1165           command.c, server.c and server_util.c.
1166
1167         * Implemented INVITE and BAN announcing.  Affected files are
1168           silcd/server.[ch], server_util.c.
1169
1170         * Implemented SilcStatus error type argument returning in
1171           command reply error in server.  Affected file silcd/command.c.
1172
1173         * Implemented SilcStatus argument returning in comand reply
1174           in client library.  The command_reply client operation now
1175           returns error specific arguments as well.  Affected files
1176           are lib/silcclient/command_reply.[ch], client_resume.c,
1177           lib/silccore/silcstatus.[ch].
1178
1179 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1180
1181         * Backup router protocol version 1.2 implemented.  Testing still
1182           required.  Affected files in silcd/server_backup.[ch], server.c,
1183           packet_receive.c and server_internal.h.
1184
1185 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1186
1187         * silc_client_send_[channel|private]_message now return TRUE
1188           or FALSE.  Affected file lib/silcclien/client_channel.c and
1189           client_prvmsg.c.
1190
1191 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1192
1193         * Check for explicit nickname in INVITE and BAN processing
1194           during join as well (and don't expect only wildcards in
1195           invite/ban strings).  Affected file silcd/command.c.
1196
1197         * Fixed the INVITE and BAN by public key.  The public key saved
1198           is the PK payload (as specified) not the raw data.  Affected
1199           file silcd/server_util.c.
1200
1201 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1202
1203         * UTF-8 text message support for actions and notices in SILC
1204           Client.  Affected file irssi/src/silc/core/client_ops.c.
1205
1206         * silc_get_username and silc_get_real_name now returns sensible
1207           data on Win32.  Patch by Toni Willberg.  Affected file is
1208           lib/silcutil/win32/silcwin32util.c.
1209
1210 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1211
1212         * Provide a signal handler to send MIME encoded messages and emit
1213           a signal when a MIME encoded message is received. Also document
1214           the signals for usage with the perl interface.
1215
1216           A sample perl script will be supplied at a later point.
1217
1218           Affected files are irssi/docs/signals.txt,
1219           irssi/src/silc/core/client_ops.[ch],
1220           irssi/src/silc/core/silc-{channels,servers}.c
1221
1222 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1223
1224         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1225           server. Use this time to display a lag and disconnect when it
1226           exceeds a specified limit.
1227
1228           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1229
1230 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1231
1232         * Remove the channel auth list in normal server if router
1233           encofrces its list during connecting.  Send notify to channel
1234           to remove the mode to remove the list.  Affected files are
1235           silcd/server_util.c and silcd/packet_receive.c.
1236
1237 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1238
1239         * Added support for channel public keys.  Updated protocol specs
1240           and implemented it.  Affected files are
1241           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1242           lib/silcclient/command_reply.c.
1243
1244 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1245
1246         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
1247           terminate the process on Linux.  Affected file silcd/silcd.c.
1248
1249 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1250
1251         * Check for NULL buffer in silc_buffer_clear.  Affected file
1252           is lib/silcutil/silcbuffer.h.
1253
1254         * Simplified the backup router protocol by removing the _GLOBAL
1255           types.  Updated protocol specs and the code.  Affected files
1256           are silcd/server_backup.[ch].
1257
1258 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1259
1260         * Deny '@' and '!' from nicknames since they are reserved
1261           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
1262           Updated protocol specs and the code.
1263
1264           Affected files are silcd/server_util.[ch].
1265
1266 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1267
1268         * Fixed stack overflow in Irssi SILC client.  Affected
1269           file irssi/src/silc/core/client_ops.c.
1270
1271         * Check that Host is set in ServerConnection and RouterConnection
1272           in silcd.conf.  Affected file silcd/serverconfig.c.
1273
1274         * Fixed crash in server with protocol completion callbacks,
1275           namely rekey and backup resuming protocols.  Affected files
1276           are silcd/server_backup.c and silcd/server.c.
1277
1278         * Fixed rekey protocol to not restart if it is started already.
1279           Affected files are lib/silcclient/client.c and
1280           silcd/server.c.c
1281
1282 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1283
1284         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
1285
1286         * Fixed EOF handling in SILC Config, affected file
1287           lib/silcutil/silcconfig.c.
1288
1289         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
1290
1291         * Fixed RESOLVING flag handling in JOIN notify and other
1292           notifys to handle the resolvings correctly in client library.
1293           Affected file lib/silcclient/client_notify.c.
1294
1295         * Do not send full INVITE and BAN lists in INVITE and BAN
1296           notifys, only the changed information.  Affected file
1297           silcd/command.c.
1298
1299         * Fixed INVITE notify sending in INVITE command, send it
1300           only when needed.  Affected file silcd/command.c.
1301
1302         * Handle the founder key change properly in CMODE_CHANGE
1303           notify.  Bug #122.  Affected file silcd/packet_receive.c.
1304
1305 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1306
1307         * Remove the mark for output (mark it only for input) after
1308           purging outgoing queue.  Prevents the "Error in select()"
1309           floods.  Affected file silcd/packet_send.c.
1310
1311         * Fixed incorrect connection deletion from client library
1312           after calling "connect" client operation.  Could cause
1313           crashes for example during reconnect timeouts.  Affected
1314           files are lib/silcclient/client.c and
1315           irssi/src/silc/core/client_ops.c.
1316
1317         * Check server private key file permissions before starting
1318           the server.  Affected file silcd/serverconfig.c.
1319
1320 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1321
1322         * NULL terminate allocated string in silc_buffer_strformat.
1323           Affected file lib/silcutil/silcbuffmt.c.
1324
1325         * Rewrote the invite/ban list string handling in server to
1326           use SilcBuffer instead.  Affected files are silcd/command.c
1327           and silcd/server_util.c.
1328
1329 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1330
1331         * Fixed double free in CMODE command when setting new HMAC
1332           for channel.  Affected file silcd/command.c.
1333
1334         * Added couple of missing memset's to zero sensitive memory.
1335           Affected files silcd/command.c, lib/silcclient/command.c.
1336
1337 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1338
1339         * Fixed a double free in INVITE command error handling in
1340           server.  Affected file silcd/command.c.
1341
1342         * Added macros SILC_SWAB_[16|32] to swab byte order of
1343           16-bit and 32-bit unsigned integers.  Affected file
1344           lib/silcutil/silctypes.h.
1345
1346         * Use the SILC_SWAB_16 instead of htons() in server when
1347           handling ports since the ports in structures are always
1348           in little-endian order (regardless of platform).  Affected
1349           file silcd/serverid.c and silcd/server_backup.c.
1350
1351 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1352
1353         * Send DISCONNECT in close admin command in server.  Affected
1354           file silcd/command.c.
1355
1356         * Check whether we are already connecting to a remote router
1357           (in addition of checking whether we are already connected)
1358           before creating new connection.  Affected file silcd/server.c.
1359
1360 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1361
1362         * Added better compiler and compiler flags checking in
1363           configure.
1364
1365         * Check that socket is valid after QoS is applied to data.
1366           Affected file lib/silcutil/unix/silcunixsockconn.c.
1367
1368         * Make sure the socket connecetion is not closed to early
1369           when closing connection in server.  Also make sure the
1370           connection is always closed after error in a protocol.
1371           Affected file silcd/server.c.
1372
1373 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1374
1375         * Removed --session and --dummy options from Irssi SILC Client.
1376           -d option is available only if --enable-debug was given.
1377           Affected files are irssi/src/silc/core/silc-core,
1378           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
1379
1380 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1381
1382         * Added silc_buffer_steal to steal the data from the buffer.
1383           Affected file lib/silcutil/silcbuffer.h.
1384
1385 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
1386
1387         * Fixed server crash with double Primary block in config file.
1388
1389           Fixed also various memory leaks around the config file
1390           parser.  Affected files lib/silcutil/silcconfig.c,
1391           silcd/serverconfig.c.
1392
1393         * Changed my nickname (Johnny Mnemonic) to my real name, this
1394           means that bugs introduced by him were actually introduced
1395           by me!
1396
1397 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1398
1399         * Don't display "foo appears as foo\nYou're now known as foo"
1400           messages.  Affected file irssi/src/silc/core/client_ops.c
1401
1402 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1403
1404         * Fixed error handling of invalid client entry when calling
1405           commands in server.  Fixes a crash.  Affected file
1406           silcd/command.c.
1407
1408 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1409
1410         * Added some sanity checks in server for correctness of the
1411           server configuration.  Affected file silcd/serverconfig.c.
1412
1413 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1414
1415         * Prevent endless resolving of user informations in USERS
1416           command by checking the command reply status correctly.
1417           Affected file lib/silcclient/command_reply.c.
1418
1419 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1420
1421         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
1422           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
1423           Aldous <Matthew@Aldous.com>.
1424
1425         * Added better implementation using CriticalSection of
1426           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
1427           <mikko.lahteenmaki@pikabaana.net>.
1428
1429         * Added some Winsock WIN32 compatiblity defines into
1430           includes/silcwin32.h.
1431
1432 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1433
1434         * Fixed double free in async host lookup code.  Affected file
1435           lib/silcutil/silcsockconn.c.
1436
1437         * On backup router handle now the SERVER_SIGNOFF from router
1438           for local connected servers too, and close the connections.
1439
1440           Do not process them as normally signing off servers when they
1441           really signoff by sending EOF fe, but always assume that
1442           router sends the SERVER_SIGNOFF.
1443
1444           Affected files silcd/server.c and silcd/packet_receive.c.
1445
1446         * Fixed socket unsetting when closing connections.  Affected
1447           files silcd/server.c and silcd/packet_send.c.
1448
1449         * Do not print the nickname in SERVER_SIGNOFF if we do not
1450           have it.  Prevents asserts in Irssi core.  It is possible we
1451           don't have the nick if it was just being resolved when server
1452           signoff.  Affected file irssi/src/silc/core/client_ops.c.
1453
1454 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1455
1456         * Fixed autonick crashbug in client library.  Affected file
1457           lib/silcclient/client.c.
1458
1459         * Fixed Unix implementation of SilcMutex to really assert if
1460           the mutex is locked/unlcoked already.  Affected file
1461           lib/silcutil/unix/silcunixmutex.c.
1462
1463         * Fixed locking in silc_schedule_uninit.  It didn't lock
1464           when dispatching timeout tasks.  Affected file is
1465           lib/silcutil/silcschedule.c.
1466
1467         * Changed Win32 implementation of SilcThread to use modern
1468           Win32 interface.  Affected file is
1469           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
1470
1471 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1472
1473         * Don't print signed messages when sending failed.  Affected files
1474           irssi/src/silc/core/silc-[servers.c/commands.h]
1475
1476         * Send adquate signal when founding a channel by joing it.  Affect
1477           file irssi/src/silc/core/client_ops.c
1478
1479 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1480
1481         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
1482           irssi/src/fe-common/core/themes.c
1483
1484 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1485
1486         * Fixed close command to use the port correctly when closing
1487           server connections.  Affected file silcd/idlist.c.
1488
1489         * Check for NULL outbuf in silc_socket_write.  It is possible
1490           that it is NULL is some odd case.  Affected files are
1491           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
1492
1493         * Do not call final protocol callback for backup router
1494           resuming protocol when closing connection.  It is closed
1495           by timeout in case of error.  Affected file silcd/server.c.
1496
1497         * Backup reconnect to router if backup resuming protocol
1498           failed.  Affected file silcd/server_backup.c.
1499
1500 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1501
1502         * Fixed double free in SKE library error hadling when signature
1503           error occurred.  Affected file lib/silcske/silcske.c.
1504
1505         * Save the fingerprint to new SilcClientEntry after changing
1506           nickname.  Affected file lib/silcclient/client_notify.c.
1507
1508         * Print SIGNOFF in Irssi SILC client only if the nickname is
1509           known.  Prevents asserts in Irssi core.  It is possible we
1510           don't have the nick if it was just being resolved when it
1511           quit.  Affected file irssi/src/silc/core/client_ops.c.
1512
1513 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1514
1515         * Fixed double free in invite list adding code when adding
1516           invite strings.  Affected file silcd/server_util.c.
1517
1518 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1519
1520         * More log printing during backup router protocol.  Affected
1521           file silcd/server_backup.c.
1522
1523         * Removed backwards support for old private key file format.
1524           Affected file lib/silccrypt/silcpkcs.c.
1525
1526         * Removed backwards support for not-so-strict decryption length
1527           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
1528
1529         * GETKEY to update the client entrys fingerprint too.
1530           Affected file lib/silcclient/command_reply.c.
1531
1532         * Added --without-libtoolfix for package builders using weird
1533           wrappers around libtool (BSD at least).
1534
1535 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1536
1537         * Fixed backup router bugs:  When backup resumes router and
1538           receives a CHANNEL_MESSAGE packet the backup must not act
1539           as router since the packet header decryption would be
1540           different.  Also, when relaying packets to channel, do
1541           not re-encrypt packets on backup that came from the primary
1542           since the connection isn't really router-router connection.
1543           Affected files silcd/server.c, silcd/packet_send.c.
1544
1545         * Added checks in encryption/decryption that encryption/decryption
1546           length sent as argument really is multiple by block size.  Helps
1547           catching really weird bugs like the above backup router bugs
1548           when packets are being decrypted in wrong way.  Affected files
1549           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
1550
1551         * Fixed padding generation in private key file encryption.
1552           Affected file lib/silccrypt/silcpkcs.c.
1553
1554 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1555
1556         * Added ignore_message_signatures setting which can be used
1557           to ignore signatures in messages.  Affected files are
1558           irssi/src/silc/core/client_ops.c, silc-core.c.
1559
1560         * Fixed the libtoolfix to use command line options instead of
1561           environment variables.  They didn't work as expected.  Now,
1562           the libtool is fully run-time configurable.
1563
1564 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1565
1566         * Verify signature payload for signed messages. Affected files
1567           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
1568           irssi/src/silc/core/silc-core.h
1569
1570         * Display signature verification result in public and private
1571           messages using theme abstracts. See irssi/default.theme for
1572           examples on their usage. Affected files
1573           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
1574           irssi/src/fe-common/silc/module-formats.[ch],
1575           irssi/src/fe-common/silc/fe-common-silc.c,
1576           irssi/src/fe-common/silc/Makefile.am
1577           irssi/src/fe-common/core/fe-messages.[ch]
1578
1579         * Fixed bugs in Irssi's theme parsing. Affected files
1580           irssi/src/fe-common/core/themes.c
1581
1582 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1583
1584         * Calculate the correct length for signed messages before
1585           encrypting, it must be multiple by block size.  Affected
1586           file lib/silccore/silcmessage.c.
1587
1588         * silc_message_signed_get_public_key returns now both
1589           decoded and encoded public key.  Affected files are
1590           lib/silccore/silcmessage.[ch].
1591
1592         * Added libtoolfix script that makes the libtool more generic
1593           and configurable in run-time.  Now we can specify in run-time
1594           if what kind of libraries we want to create, regardless of
1595           configuration.  SIMs are now creates even if --disable-shared
1596           was explicitly given.
1597
1598 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1599
1600         * Fixed founder key sending in CMODE command in client.
1601           Affected file lib/silcclient/command.c.
1602
1603         * Fixed CUMODE founder authentication in server to not check
1604           for client's public key since it's not supposed to do that.
1605           Affected file silcd/command.c.
1606
1607 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1608
1609         * Set realname and hostname in NICK_REC records. Affected file
1610           irssi/src/silc/core/silc-nicklist.c
1611
1612 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1613
1614         * Remove 1.0 protocol backwards compat code from client
1615           library.
1616
1617         * Added more reliable check for whether nickname did change
1618           or not, or whether only Client ID changed in NICK_CHANGE
1619           notify.  Affected file lib/silcclient/client_notify.c.
1620           Fixes bug in '@' character handling in a nickname.
1621
1622         * Added support for automatically parsing signature from
1623           the message payload.  Added new function
1624           silc_message_get_signature to return the payload to
1625           application.  Affected files lib/silccore/silcmessage.[ch].
1626
1627         * Changed the private_message and channel_message client
1628           operations to deliver the SilcMessagePayload to the
1629           application too.  Application can use it fe. to get the
1630           signature from the message for verification.  Affected
1631           file lib/silcclient/silcclient.h, client_channel.c and
1632           client_prvmsg.c.
1633
1634         * Redefined the signed payload for message payloads.
1635           Updated protocol specs and implemented.
1636
1637 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1638
1639         * Fixed wrong invite and ban list handling in server command
1640           reply.  Affected files are silcd/command_reply.c,
1641           silcd/server_util.[ch].
1642
1643 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1644
1645         * Fixed CMODE setting in server when founder mode was set.
1646           Affected file silcd/command.c.  Bug #95.
1647
1648         * Added support to setting specific public key in CMODE in
1649           Irssi SILC client.  Affected file lib/silcclient/command.c.
1650
1651         * Added support to use specific public key in CUMODE in
1652           Irssi SILC Client.  Affected file lib/silcclient/command.c.
1653
1654         * Added support for inviting and banning by public key in
1655           Irssi SILC client.  Affected file lib/silcclient/command.c.
1656
1657         * Fixed fingerprint/babbleprint showing in invite and ban
1658           list command replys.  Affected file is
1659           irssi/src/silc/core/client_ops.c.
1660
1661 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1662
1663         * Format CMODE +c and +h to display both the mode and the argument
1664
1665 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1666
1667         * Added test vectors and test programs for SHA-1, MD5,
1668           HMAC-SHA1 and HMAC-MD5.  New tests are located in
1669           lib/silccrypt/tests/.  Fixed also argument decoding bug in
1670           MD5 implementation.  Affected file lib/silccrypt/md5.c.
1671
1672         * Changed the channel private key and private message key
1673           generation (with static keys) to use SHA1 instead of MD5,
1674           as SHA1 is the mandatory hash function in SILC.  Affected
1675           file lib/silcclient/client_[channel/prvmsg].c.
1676
1677         * Changed the private key file encryption to use SHA1 instead
1678           of MD5.  Added support for the old generation and added
1679           automatic change of the key (to be removed later).  Affected
1680           files lib/silccrypt/silcpkcs.c.
1681
1682 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1683
1684         * Load only files with .pub suffix in PublicKeyDir.  Affected
1685           file silcd/serverconfig.c.
1686
1687 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
1688
1689         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
1690           channels.  Affected files silcd/silcd.c, silcd/server.h.
1691
1692         * Added the config directive PublicKeyDir for the client block.
1693           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
1694
1695 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1696
1697         * Merged Toni's irssi/silc.conf patch.
1698
1699         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
1700
1701         * Max alloc tests in allocation routines.  Affected file
1702           lib/silcutil/silcmemory.c.
1703
1704 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1705
1706         * Fixed a typo in resuming code that fixed detach/resume code
1707           in server.  Bug #93.  Affected file silcd/packet_receive.c.
1708
1709 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1710
1711         * Do reverse lookups for server when /connecting. Affected files
1712           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
1713           irssi/src/core/net-nonblock.*
1714
1715 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1716
1717         * Added library versioning for shared libraries.  Affected
1718           files configure.in.pre and lib/Makefile.am.pre.
1719
1720 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1721
1722         * Display INVITE and BAN lists as specified by SILC 1.2
1723
1724 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1725
1726         * Do not send invite list back unless asked (when sending
1727           no arguments) or when list was modified.  Affected file
1728           silcd/command.c.
1729
1730         * Remove client from invite list in KILLED notify and in
1731           KILL command.  Affected file silcd/command.c and
1732           silcd/server.[ch].
1733
1734         * Fixed bugs in invite list handling in INVITE command.
1735           Affected files silcd/command.c and silcd/server_util.c.
1736
1737         * Merged with Irssi 0.8.6.
1738
1739         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
1740           Affected file irssi/src/fe-text/silc.c.
1741
1742 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1743
1744         * The silc_argument_get_[first/next] now return the argument
1745           type to caller.  Added silc_argument_payload_encode_one.
1746
1747           Affected files are lib/silccore/silcargument.[ch].
1748
1749         * Added support for the SILC 1.2 INVITE command and new
1750           invite lists to server.  Affected files are silcd/command.c,
1751           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
1752
1753         * Added support for the SILC 1.2 BAN command and new
1754           ban lists to server.  Affected files are silcd/command.c,
1755           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
1756
1757         * Added support to client sending new INVITE command.  Affected
1758           file is lib/silcclient/command.c.
1759
1760         * Added support to client sending new BAN command.  Affected
1761           file is lib/silcclient/command.c.
1762
1763         * Added support for removing client from invite list when kicked
1764           from channel, as SILC 1.2 dictates.  Affected files are
1765           silcd/packet_receive.c and silcd/command.c.
1766
1767 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1768
1769         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
1770           automatically the cipher's internal IV.  Affected files
1771           lib/silccrypt/silccipher.[ch].
1772
1773         * Assure the RESUME_CLIENT packet is not sent to twice to
1774           backup router if the detached client was originated from
1775           the backup.  Affected file silcd/server.c.  Bug #76.
1776
1777         * Changed silc_sim_symname to not allocate memory.  Affected
1778           file lib/silcsim/silcsimutil.c.
1779
1780         * Fixed memory leaks with SIMs in server.  Affected files
1781           silcd/serverconfig.c, silcd/server.c.
1782
1783         * Fixed channel key distribution after resuming detached
1784           client.  Affected files silcd/packet_receive.c.
1785
1786         * Fixed channel's global_user boolean checking after detaching.
1787           Check it after changing the owner of the client not before.
1788           Affected file silcd/packet_receive.c.
1789
1790         * Fixed few double frees from client library.  Fixes at least
1791           Bug #81, possibly others too.
1792
1793         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
1794           notifys in Irssi SILC Client.  Affected file is
1795           irssi/src/silc/core/client_ops.c.  Bug #82.
1796
1797         * Applied Ville Räsänen's manual page and --mandir bugfix
1798           patch.  Affected files are configure.in.pre and Makefile.am.pre.
1799           Bug #88.
1800
1801 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1802
1803         * Added support to backup router protocol for backup to tell
1804           normal server that it cannot use the backup router as primary
1805           because the primary isn't really down.  Updated protocol
1806           specs.
1807
1808         * Added support for primary router to tell backup router that
1809           resuming is not possible because the backup really isn't primary
1810           in the cell.  For example if backup disconnected itself the
1811           resuming is not allowed since the primary really did not
1812           go down.  Updated protocol specs.
1813
1814         * Removed MARS from crypto library.
1815
1816         * Defined the CTR mode and Randomized CBC mode in SILC.  The
1817           CTR mode is RECOMMENDED now in specification.  Defined also
1818           Serpent cipher as optional cipher.  Updated the protocol specs.
1819
1820 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1821
1822         * Added support for inviting/banning by IP/MASK, public key,
1823           and explicit Client ID.  Redefined the command and notify
1824           types to allow easier forwards support for other methods
1825           of inviting/banning.  Updated protocol specs.
1826
1827         * Remove the client from channel's invite lists if the client
1828           is kicked or killed.  Updated protocol specs.
1829
1830         * Unified the Channel Message Payload and Private Message
1831           into one Message Payload.  Updated protocol specs and
1832           implemented.
1833
1834 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1835
1836         * Don't wait for EOF after socket error has occurred, but
1837           close the connection.  Affected file is silcd/server.c.
1838
1839 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1840
1841         * Added support for setting FOUNDER mode on channel with
1842           specific public key which can be set with CMODE command.
1843           Updated protocol specs and implemented in client and server.
1844
1845         * Fixed the Irssi SILC client to correctly shutdown the client
1846           library to avoid memory leaks.  Affected files are
1847           irssi/src/silc/core/silc-core.c and silc-servers.c.
1848
1849         * Deprecated the No Reply flag in SKE protocol and introduced
1850           "IV Included" flag which can be used to indicate that the IV
1851           is included in the ciphertext.  This makes it possible to use
1852           SILC on unreliable transport, such as UDP which may cause
1853           packet reordering and losses.  Updated protocol specs, did
1854           not implement yet.
1855
1856 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1857
1858         * Fixed the MPI implementation of silc_mp_sizeinbase to return
1859           < 32 bit values in correct size.  Affected file is
1860           lib/silcmath/mp_mpi.c.
1861
1862 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1863
1864         * Fixed the KE Start Payload parsing to check that mandatory
1865           fields are present.  Affected file lib/silcske/payload.c.
1866
1867         * Fixed compilation warnigs in Irssi SILC Client.  Affected
1868           files are irssi/src/silc/core/silc-query.c. client_ops.c.
1869
1870 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1871
1872         * Print "nick now appears as newnick" and update Irssi's nicklist
1873           when you change your nick to "nick". Closes #62
1874
1875         * Never format your own nick. Closes #63
1876
1877 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1878
1879         * SILC_UMODE_GONE changes are now propagated correctly to the
1880           Irssi client. Closes #54
1881
1882 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1883
1884         * Fixed example in /HELP KEY
1885
1886         * Added expando $j which expands to current SILC Client version
1887
1888 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1889
1890         * Fixed public key decoding in crypto library.
1891
1892         * Added better error printing to SKE library.
1893
1894 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1895
1896         * Fixed NICK command to not crash if nickname was not sent.
1897
1898 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1899
1900         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
1901           Deprecated the old Encrypt-And-MAC order.  Updated protocol
1902           specs and implemented.
1903
1904         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
1905           generation.  Updated specs and implemented.
1906
1907 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1908
1909         * Added support for rekey before 2^32 sequence number wraps.
1910           Affected files in server and client library.
1911
1912         * Padding must be at least 8 bytes now.  Implemented and updated
1913           protocol specs.
1914
1915         * Compute maximum padding for authentication packets to make
1916           passphrase approximation attacks impossible.  Affected files
1917           in client library and in server.
1918
1919         * Fixed PING command sending in client library and handling in
1920           server.  The server ID must be ID Payload, not raw ID data.
1921           Affected files in server and client library.
1922
1923         * Defined that all public keys sent in commands and notify
1924           payloads are actually Public Key Payloads not raw public key
1925           data.  Updated protocol specs and implemented.
1926
1927         * Updated protocol version to 1.2.  Updated specs and code.
1928
1929         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
1930           status types.  Updated specs and the code.
1931
1932         * Added support for normal client to kill its own entries from
1933           the network.  Updated protocol specs and the code.
1934
1935         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
1936           and added initial implementation.
1937
1938         * Added MAC field to the Private Message Payload to protect
1939           against chosen ciphertext attacks.  Updated the protocol specs
1940           and implemented.
1941
1942         * Added idle and signon fields to the ATTRIBUTE_SERVICE
1943           attribute to indicate the user's current idle and signon time
1944           of a service.  Updated protocol specs and implemented.
1945
1946 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1947
1948         * Added "do_not_bind" argument to silc_client_file_send what
1949           can be used to not bind locally but assume the file receiver
1950           provides the point of connect.  Usefull when sender is behind
1951           NAT device.  Affected file lib/silcclient/silcclient.h and
1952           client_ftp.c.
1953
1954         * Added -no-listener option to FILE SEND command in Irssi SILC
1955           client.  Affected file irssi/src/silc/core/silc-servers.c.
1956           Renamed FILE RECEIVE to FILE ACCEPT.
1957
1958         * Confirm passphrase for private key encryption in
1959           silc_create_key_pair and silc_change_private_key_passphrase.
1960           Affected files are lib/silcutil/silcapputil.c.
1961
1962 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1963
1964         * Move silc_client_packet_send back to internal, added
1965           silc_client_send_packet, a bit simpler function for application.
1966           Affected files lib/silcclient/silcclient.h, client.c and
1967           client_internal.h.
1968
1969         * Moved the SilcClientEntry, SilcChannelEntry and
1970           SilcServerEntry to silcclient.h to be public and documented
1971           them for application.  Affected files are
1972           lib/silcclient/silcclient.h and idlist.h.
1973
1974 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1975
1976         * Fixed manual page installation patch by Ville Räsänen.
1977           USERS help page fix patch by Ville Räsänen
1978
1979         * Changed the silc_client_command_call interface to make
1980           the command call simpler for the application.  The library
1981           now handles the command line parsing, command finding and
1982           execution.  Application only needs to call the function
1983           with the command line.  Affected files are
1984           lib/silcclient/silcclient.h, command.[ch].
1985
1986         * Fixed silc_get_input to NULL-terminate the returned input.
1987           Affected file lib/silcutil/silcutil.c.
1988
1989         * Resolve the client's public key in JOIN command if the
1990           founder auth data is being requested but we don't know the
1991           client's public key.  Affected file silcd/command.c.
1992           Bug #53.
1993
1994 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1995
1996         * Print notify for server opers when backup router comes
1997           online.  Affected file silcd/server.c.
1998
1999         * Fixed the INVITE command to send the invite list in
2000           command reply.  Affected file silcd/command_reply.c.
2001
2002         * Fixed MOTD command reply sending.  Affected file
2003           silcd/command.c.
2004
2005         * UTF-8 decode the topic in TOPIC command reply and LIST
2006           command reply in Irssi SILC client.  Affected file is
2007           irssi/src/silc/core/client_ops.c.
2008
2009 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2010
2011         * Fixed the INVITE command to not crash Irssi SILC client
2012           when given without nickname argument.  AFfected file
2013           irssi/src/silc/core/client_ops.c.
2014
2015         * Fixed double free in WHOIS query on normal server when
2016           forwarding query to router.  Affected file is
2017           silcd/server_query.c.
2018
2019         * Fixed WATCH command reply handling on normal server which
2020           was missing altogether.  Affected file silcd/command_reply.c.
2021           Bug #44.
2022
2023 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2024
2025         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2026           Included yodl sources for each of these. Also modified
2027           Makefile.am prototype to install these files to proper
2028           locations. Updated CREDITS. Affected file Makefile.am.pre,
2029           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2030           doc/silcd.8.
2031
2032 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2033
2034         * Added support for encrypted private key files.  Now
2035           passphrase must be provided when new key pair is created
2036           (can be empty though), and prompted when loading the
2037           private key.  Added support for loading the old-style
2038           non-encrypted private keys as well.  Affected files
2039           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2040           SILC Server.
2041
2042         * Fixed silc_get_input to accept input on all terminals.
2043           Affected file lib/silcutil/silcutil.c.
2044
2045         * Moved the Irssi SILC client key loading and other stuff
2046           to be called after the arguments and UI is initialized.
2047           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2048
2049         * Added -P option to Irssi SILC client which can be used
2050           to change the passphrase of the private key.  Affected
2051           file irssi/src/silc/core/silc-core.c.
2052
2053         * Added silc_change_private_key_passphrase apputil routine
2054           to lib/silcutil/silcapputil.[ch].
2055
2056 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2057
2058         * Fixed connection closing in client library to not crash.
2059           Moved the connection freeing totally to function
2060           silc_clinet_del_connection.  Affected file
2061           lib/silcclinet/client.c.
2062
2063 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2064
2065         * Changed includes/silcincludes.h to silcincludes.h.in to
2066           include configuration specific information.  The silcdefs.h
2067           is not included in to installation anymore (it's only
2068           compilation time header).
2069
2070 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2071
2072         * Moved the SilcClient and SilcClientConnection from client.h
2073           to the public lib/silcclient/silcclient.h.  Changed the
2074           structures a bit.
2075
2076 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2077
2078         * If version string in silc_clinet_alloc is NULL the library
2079           puts it automatically.  Affected file lib/silcclient/client.c.
2080
2081         * Changed the version strings from variables to #define's
2082           in includes/silcversion.h.
2083
2084 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2085
2086         * Added shared library complation support.
2087
2088 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2089
2090         * Added lib/silcutil/silcapputil.[ch] for application
2091           utility functions.  It includes routines for applications'
2092           convenience.  Added silc_create_key_pair, silc_show_public_key
2093           and silc_load_key_pair functions.
2094
2095 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2096
2097         * Send RESUME_CLIENT packet from router to backup routers
2098           to in resuming.  Affected file silcd/packet_receive.c.
2099
2100 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2101
2102         * In IDENTIFY command parsing, send all other IDs except
2103           Client IDs explicitly to router for resolving on normal
2104           server.  Also check that ID received in WHOIS command is
2105           always Client ID, others are not allowed.  Affected file
2106           silcd/server_query.c.
2107
2108         * Merged latest changes from irssi.org CVS.
2109
2110 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2111
2112         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2113           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2114
2115         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2116           the silc_client_packet_send to silcclient.h for application
2117           usage.  Affected files lib/silcclient/client_internal.h
2118           lib/silcclient/silcclient.h.
2119
2120         * Fixed a bug in query resolving in server.  Used wrong
2121           variable in a for loop and crashed.  Affected file is
2122           silcd/server_query.c.
2123
2124         * Server constructs requested attributes only to locally
2125           connected clients.  Affected file silcd/server_query.c.
2126           Bug #36.
2127
2128         * Fixed a bug when sending resolving from router to server
2129           with requested attributes.  The constructed WHOIS command
2130           was incorrect.  Affected file silcd/server_query.c.
2131           Bug #38.
2132
2133         * Fixed Requested Attributes saving in WHOIS command reply.
2134           The length of the data buffer must be saved too.  Affected
2135           file silcd/command_reply.c.
2136
2137         * Update the client entry's servername after detaching is
2138           over.  Affected file silcd/packet_receive.c.  Bug #37.
2139
2140         * Resolve incomplete client entrys in CUMODE_CHANGE and
2141           CMODE_CHANGE notifys.  Affected file is
2142           lib/silcclient/client_notify.c.  Bug #42.
2143
2144 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2145
2146         * Fixed channel key packet processing bug on backup router
2147           during backup resuming protocol.  Affected file is
2148           silcd/packet_receive.c.
2149
2150         * Fixed memory leaks in server.  Affected files are
2151           silcd/server.c and silcd/packet_receive.c.
2152
2153         * Fixed packet decryption problem when backup router encrypted
2154           channel message with wrong key during backup resuming
2155           protocol.  Affected file silcd/packet_send.c.
2156
2157         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2158           Toni Willberg (toniw@iki.fi)
2159
2160         * Changed the SilcCipher context to be private.  Changed the
2161           silc_cipher_get_iv to just return pointer to the IV.  Added
2162           silc_cipher_get_name to return the name of the cipher.
2163           Fixed code all around to support these changes.  Affected
2164           files are lib/silccrypt/silccipher.[ch], client library and
2165           server.
2166
2167 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2168
2169         * Fixed unaligned access in lib/silccore/silcattrs.c.
2170
2171         * Fixed libtool linking in lib/silcsim/Makefile.am.
2172
2173         * Fixed services attribute printing.  Affected files is
2174           irssi/src/silc/core/silc-queries.c.
2175
2176 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2177
2178         * Fixed a crashbug in incoming server accepting.  Affected
2179           file silcd/server.c.
2180
2181 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2182
2183         * Added automatically generated index to Toolkit Reference
2184           Manual.
2185
2186         * Added support for Postscript Toolkit Reference Manual.
2187
2188 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2189
2190         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2191           CVS.
2192
2193 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2194
2195         * Added 'send_events' boolean argument to the function
2196           silc_schedule_set_listen_fd which sends the set events to
2197           the application explicitly if set to TRUE.  Default action
2198           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2199           lib/silcclient/client_internal.h and silcd/server_internal.h.
2200
2201         * Added silc_compare_timeval to determine which time values
2202           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2203
2204         * Added sort-of "Quality of Service" (QoS) support to
2205           SilcSocketConnection.  Data reception can be controlled with
2206           rate limit per second and/or read data length limit.
2207           Added silc_socket_set_qos.  Affected files are
2208           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2209
2210         * Added the QoS configuration to SILC Server configuration
2211           file.  Affected files are silcd/serverconfig.[ch] and
2212           server.c.
2213
2214 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2215
2216         * Merged with irssi.org CVS.
2217
2218         * Failed OPER and SILCOPER authentications are now logged.
2219           Affected file silcd/command.c.  Bugs #25.
2220
2221 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2222
2223         * ROBODoc documented lib/silcutil/silcbuffer.h and
2224           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2225           <ville.rasanen@iki.fi>.
2226
2227 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2228
2229         * Added support for auto-passphrase authentication from the
2230           config file during connecting which was not implemented
2231           yet.  Affected file irssi/src/silc/core/client_ops.c.
2232
2233         * Fixed a bug in authentication protocol failure handling which
2234           was processing wrong callback context.  Affected files
2235           are lib/silcclient/client.c and protocol.c.
2236
2237         * Fixed the /ATTR allow off to actually work.  Affected file
2238           is irssi/src/silc/core/silc-queries.c.
2239
2240         * Fixed the /ATTR -del to work.  Affected file is
2241           irssi/src/silc/core/silc-queries.c.
2242
2243 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2244
2245         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
2246
2247         * Fixed mask attribute adding in Irssi SILC client.  Affected
2248           file irssi/src/silc/core/silc-queries.c.
2249
2250 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2251
2252         * Added support for saving the requested attributes in
2253           WHOIS to directory.  Affected file is
2254           irssi/src/silc/core/silc-queries.c.
2255
2256 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2257
2258         * Added support for parsing VCard fields that do not have
2259           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
2260
2261         * Fixed a double free bug in hash table foreach function
2262           if the entry was deleted in the foreach callback.  Affected
2263           file lib/silcutil/silchashtable.c.
2264
2265 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2266
2267         * Added silc_attribute_get_verify_data to return the signature
2268           verification data for either user digital signature or
2269           server digital signature in Requested Attributes.  Affected
2270           files are lib/silccore/silcattrs.[ch].
2271
2272         * Added silc_vcard_alloc which is used to allocated dynamic
2273           SilcVCard context.  The silc_vcard_free now checks whether
2274           the context is dynamically allocated or not.  Affected files
2275           are lib/silcutil/silcvcard.[ch].
2276
2277 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2278
2279         * Periodically remove the NOATTR status from client entry
2280           so that the client may take the attributes in use even after
2281           server has resolved them unsuccessfully earlier.  Affected
2282           file silcd/server_query.c and idlist.h.
2283
2284         * Moved sha1hash and md5hash from client->internal to
2285           SilcClient for application usage.  Affected files are
2286           lib/silcclient/client.h and client_internal.h.
2287
2288         * Fixed attribute encoding and decoding bugs.  Affected
2289           files lib/silccore/silcattrs.[ch].
2290
2291         * Added ATTR command to Irssi SILC Client which is used to
2292           manage user's Requested Attributes sending and values for
2293           WHOIS command.  Affected files around Irssi SILC client.
2294
2295 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2296
2297         * Added silc_buffer_strformat which can be used to format
2298           strings into a buffer which size is automatically increased.
2299           Affected file lib/silcutil/silcbuffmt.[ch].
2300
2301         * Added implementation of VCard (RFC 2426) which can be used
2302           as part of Requested Attributes in WHOIS command.  Affected
2303           file lib/silcutil/silcvcard.[ch].
2304
2305 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2306
2307         * Some strncat -> silc_strncat changes our the core and
2308           client library.
2309
2310         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
2311           errors.  Added better error printing to SKE library.
2312           Affected files lib/silcske/silcske.c, silcske_status.h and
2313           payload.c.
2314
2315         * Save the PKCS key length even if only private key is set to
2316           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
2317
2318         * Fixed the usage of silc_pkcs_get_key_len since it returns the
2319           length in bits not in bytes.  Affected files are
2320           lib/silcske/silcske.c, lib/silccore/silcauth.c and
2321           silcd/server_query.c.
2322
2323 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2324
2325         * Added silc_attribute_payload_encode_data to directly encode
2326           the data into the attributes buffer.  Renamed function
2327           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
2328           Affected files are lib/silccore/silcattrs.[ch].
2329
2330         * silc_hash_table_find_foreach calls the foreach function now
2331           once even if the nothing was found with context set to NULL.
2332           Affected file lib/silcutil/silchashtable.[ch].
2333
2334         * Remove the RESOLVING flag from client entry after received
2335           the Requested Attributes from the client.  Fixed memory leak
2336           in client entry freeing.  Affected files silcd/server_query.c
2337           and idlist.c.
2338
2339         * Added Requested Attributes support into SILC Client Library.
2340           It is not able to send requested attributes in WHOIS command,
2341           and also receive and process requested attributes.  Added
2342           silc_client_attribute_[add|del] and silc_client_attributes_get
2343           functions.  Added also `ignore_requested_attributes' to the
2344           SilcClientParams to not use attributes in client.  Affected
2345           files are lib/silcclient/command.c, client_attrs.[ch],
2346           silcclient.h, client_internal and client.[ch].
2347
2348         * Changed the silc_client_get_client_by_id to support Requested
2349           Attributes, it takes them as argument now.  Affected file
2350           is lib/silcclient/silcclient.h, and idlist.c.
2351
2352         * Added -details option to WHOIS command in Irssi SILC Client
2353           to support the requested attributes.  By default it requests
2354           all attributes.  Affected file lib/silcclient/command.c and
2355           irssi/doc/help/in/whois.in.
2356
2357 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2358
2359         * Add also SERVICE attribute for server-constructed attribute
2360           data.  Also digitally sign the attributes and add
2361           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
2362           silcd/server_query.c.
2363
2364 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2365
2366         * Changed the silc_attribute_payload_encode to support list
2367           of attributes (function may be called several times to add
2368           a new attribute).  Removed the silc_attribute_payload_encode_list
2369           function.  The encoding function now also automatically encodes
2370           the data, so the caller does not need to do that.  Affected
2371           files lib/silccore/silcattrs.[ch].
2372
2373         * Added support for replying on behalf of the user to the
2374           Requested Attributes in WHOIS command in the server.  Affected
2375           file silcd/server_query.c.
2376
2377         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
2378           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
2379
2380 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2381
2382         * Don't swtich to become primary router if we are backup if
2383           decryption error has occurred.  Affected file silcd/server.c.
2384
2385         * Fixed a bug in backup router IP address comparison in
2386           silc_server_backup_get.
2387
2388           Save now also the port of the server/router and use that
2389           in comparison as well.  Affected file silcd/server_backup.c.
2390
2391         * Normal server now reconnects to backup router automatically
2392           if connection is lost to it.  Affected file silcd/server.c.
2393
2394 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2395
2396         * If packet processing fails (like integrity check fails)
2397           the connection is closed now.  Affected files are
2398           lib/silccore/silcpacket.c and silcd/server.c.
2399
2400 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2401
2402         * Fixed double free in RSA public key set function
2403           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
2404           Bug #29.
2405
2406 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2407
2408         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
2409           Added server_query.[ch] which provides one interface for
2410           querying information using all three commands.
2411
2412         * Changed all "typedef unsigned char" in core library to
2413           "typedef SilcUInt8".
2414
2415 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2416
2417         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
2418
2419         * Renamed silc_server_get_client_resolve to
2420           silc_server_query_resolve and moved to server_query.[ch].
2421
2422 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2423
2424         * Resumed client packet handling from server put the resumed
2425           client on wrong list on router and caused the client not
2426           be present on the network anymore.  Now fixed to put the
2427           client to correct list.  Affected file silcd/packet_receive.c.
2428
2429 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2430
2431         * Various cleanup in error message output in config parsing code
2432           and in server init code.  Fixed error log files containing
2433           too many newlines ('\n') in some situations.  Affected files are
2434           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
2435
2436 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2437
2438         * Use the reverse lookupped hostname in client internals
2439           instead of one user provided us as remote server name.
2440           Affected file lib/silcclient/client.c.
2441
2442 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2443
2444         * Added 'app_context' to silc_schedule_init.  It is an
2445           application specific context that is delivered to application
2446           in task callback functions.  Affected files are
2447           lib/silcutil/silcutil.[ch].
2448
2449         * The hb_context in SilcSocketConnection is not freed
2450           automatically anymore (application must free it).  Freeing
2451           it automatic is inconsistent.  Affected files are
2452           lib/silcutil/silcsockconn.[ch].
2453
2454 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2455
2456         * Added support for removing explicitly added client connections
2457           in rehash and closing the client connections if they were
2458           unconfigured in the rehash.  Affected file silcd/server.c.
2459
2460         * Added support for aborting automatically pending commands
2461           that never receives the reply (to avoid memory leaks).
2462           Added also silc_server_command_pending_timed to set the
2463           specific timeout for pending command.  Affected files are
2464           silcd/command[_reply].[ch].
2465
2466         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
2467           specs and lib/silccore/silcstatus.h.
2468
2469 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2470
2471         * Changed the silc_get_time to accept time value as argument
2472           or if zero is sent return current local time.  Affected
2473           file lib/silcutil/silcutil.[ch].
2474
2475         * Added STATS command to client library and Irssi SILC client.
2476           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
2477
2478 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2479
2480         * Assure that channel key is set before sending it.  May
2481           crash server otherwise.  Affected file silcd/packet_send.c.
2482
2483 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2484
2485         * Assure that endless loop cannot happen with detached client
2486           resolving on normal server.  Added idlist status
2487           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
2488           silcd/idlist.h and silcd/packet_receive.c.
2489
2490 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2491
2492         * Incoming file transfer request cannot use same session as
2493           the sending session.  This can happen when sending file to
2494           yourself.  Crashed the client on quit.  Affected file
2495           lib/silcclient/client_ftp.c.  Bug #24.
2496
2497 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2498
2499         * Implemented the draft-riikonen-precense-attrs draft and
2500           the Attribute Payload into the lib/silccore/silcattrs.[ch].
2501
2502 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2503
2504         * Distribute the SERVER_SIGNOFF notify also to local backup
2505           routers from the primary router.  The backup router may not
2506           have the signing of local server directly connected and need
2507           to know about the signoff.  Affected file silcd/server_util.c.
2508
2509         * Use the primary router as the origin of the locally connected
2510           server when it is disconnecting from the backup router since
2511           that's where it really is coming from.  Now the clients from
2512           the disconnecting server are removed correctly and "shadow"
2513           clients are not left to the backup router.  Affected file
2514           silcd/server.c.
2515
2516 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2517
2518         * If normal server is standalone and found existing but disabled
2519           channel, do not re-create the channel since it creates
2520           duplicate same channels.  Affected file silcd/server.c.
2521
2522         * Added anonymous client connections support to server.  New
2523           "anonymous" configuration option to ConnectionParams section
2524           added.  If set to true, the username and hostname information
2525           of the client will be scrambled and anonymous user mode is
2526           set automatically to the user.  Affected files are
2527           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
2528
2529 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2530
2531         * In JOIN notify handling, mark that the cache entry of the
2532           client cannot be expired.  Can cause crashes on normal
2533           server (asserts client->channels).  Affected file is
2534           silcd/packet_receive.c.
2535
2536         * From now on distribution versions are used as protocol versions
2537           instead of by default using the Toolkit base version as protocol
2538           version.  Affected file prepare.
2539
2540         * Do not set the locally resolved hostname for local client
2541           entry but take what server sends.  This way the real hostname
2542           is showed in WHOIS for yourself.  Affected file is
2543           lib/silcclient/idlist.c and lib/silcclient/client.c.
2544
2545         * Resolve local info with IDENTIFY when connecting to server.y
2546
2547 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2548
2549         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
2550           for implied search (not needed on platforms which has native
2551           pthreads library).  Use --without-pthreads to disable threads.
2552           Affected file is configure.in.pre
2553
2554         * Fixed --with-iconv on platforms which need to bypass (broken)
2555           native iconv().  Affected file is configure.in.pre
2556
2557 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2558
2559         * Moved -C option parsing in Irssi SILC client at same time
2560           as other options.  The UI was initialized earlier and caused
2561           problems on command line.  Bug #16.  Affected file is
2562           irssi/src/silc/core/silc-core.c.
2563
2564 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2565
2566         * Added global variable silc_log_timestamp that tells silclog
2567           wether to print or not the timestamp in the logging files.
2568           Affected file lib/silcutil/silclog.[ch].
2569
2570         * Added silcd configuration option Timestamp in the Logging
2571           section.  Affected file silcd/serverconfig.[ch],
2572           doc/example_silcd.conf.in.
2573
2574 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2575
2576         * Fixed fingerprint checking to check for entirely empty
2577           fingerprint instead of two first bytes when determining
2578           if it is set.  Bug #18.  Affected file silcd/command.c.
2579
2580         * Fixed duplicate PKCS name registering to not allow it.
2581           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
2582
2583 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2584
2585         * Conditionalize non-gcc compiler optimizations for various
2586           platforms, enable those commented out.  Cleanups.
2587           Affected file lib/silcmath/mpi/configure.in
2588
2589 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
2590
2591         * silc_rng_exec_command() left zombie processes if command
2592           didn't generate any output.  Affected file
2593           lib/silccrypt/silcrng.c
2594
2595 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2596
2597         * Rewrote iconv checking, introduce --with-iconv for systems
2598           which rely on libiconv.  Check if iconv() provided by libc
2599           is good enough, otherwise demand libiconv.  Affected file
2600           configure.in.pre
2601
2602 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2603
2604         * Search for ldopen() also in libc.  This enables SIM support
2605           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
2606           file configure.in.pre
2607
2608 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2609
2610         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
2611           This fixes prepare on *BSD systems.  Affected file
2612           configure.in.pre
2613
2614 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2615
2616         * More fixed for not having purge timeout for global clients
2617           that are on channel.  Affected files silcd/command_reply.c
2618           and server_util.c.
2619
2620         * Fixed the rekey protocol to work with backup router connections.
2621           Rekey packets are now allowed on disabled connections as
2622           well.  Affected files silcd/packet_send.c and server.c.
2623
2624         * Do not switch to be as backup router when shutting down and
2625           closing the primary connection.  Affected file silcd/server.c.
2626
2627         * Fixed memory leaks in backup router deleting.  Added
2628           silc_server_backup_free to free all data during shutdown of
2629           server.  Affected files silcd/server_backup.[ch].
2630
2631 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2632
2633         * Do not process commands if the sock->user_data is NULL.
2634           Affected file silcd/command.c.
2635
2636 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2637
2638         * Fixed buffer overflow and security problems (loosing bits
2639           in CFB encryption) in SILC RNG.  Problems reported by
2640           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
2641
2642 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2643
2644         * Added yet more checks that client is not expired on global
2645           list if it is on channels.  Affected file is
2646           silcd/command_reply.c.
2647
2648 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2649
2650         * Merged c0ffee's MIME signal patch which adds support for
2651           sending also MIME messages in Irssi SILC Client, and handling
2652           received MIME messages in a signal (and perhaps doing something
2653           to non-textual MIME messages).
2654
2655 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2656
2657         * Fixed pending command deletion in server and client library
2658           to check the whole list instead of breaking after first found.
2659           The affected files are silcd/command.[ch] and
2660           lib/silcclient/command.[ch].
2661
2662 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2663
2664         * Return NO_SUCH_CHANNEL error in USERS for channel that is
2665           secret or private, otherwise it's possible to find out
2666           whether a secret channel exists or not.  Affected file
2667           silcd/command.c.
2668
2669         * If CMODE change fails during the mode setting, assure that
2670           the old mode mask is set for the channel back.  Affected
2671           file silcd/command.c.
2672
2673         * Fixed passphrase saving on +a channel on normal server
2674           after successful JOIN command.  Affected file silcd/command.c.
2675
2676 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2677
2678         * Remove server/router operator privileges in DETACH command,
2679           since it's possible to resume to server where these
2680           privileges would not be allowed for the client.  Affected
2681           file silcd/command.c.
2682
2683         * Do not set to wait for backup in rehash of the server.
2684           Affected file silcd/server.c.
2685
2686         * Do not check listener sockets when counting how many
2687           socket connections we have.  Affected file is
2688           silcd/server_util.c.
2689
2690         * Do not announce disconnected clients that are remaining
2691           in history (for WHOWAS).  This is because SIGNOFF notify
2692           for these has been sent earlier already.  Affected file
2693           silcd/server.c.
2694
2695 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2696
2697         * Buffer overflow with CUMODE command's mode->mode character
2698           conversion.  Reported by Ville Räsänen.  Affected file
2699           lib/silcutil/silcutil.c.
2700
2701 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2702
2703         * Allow heartbeat packets to go disabled connections anyway.
2704           Affected files silcd/server.c and silcd/packet_send.c.
2705
2706         * Do not broadcast New Channel packets with List flag set
2707           in the packet to backup routers.  The router must check
2708           for the correctness of the packets before sending them.
2709           It is possible that router will have enforce Channel ID
2710           change and this would cause desync in the backup router.
2711           Affected file silcd/packet_receive.c.
2712
2713         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
2714           are handled in list parsing.  They are not list packets
2715           anymore.  Affected file silcd/packet_receive.c.
2716
2717 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2718
2719         * Stop waiting for backup router through the timeout, not
2720           directly after backup router has arrived.  Affected file
2721           silcd/server.c.
2722
2723         * Do not re-create channel keys and send them when removing
2724           clients in server shutdown.  Affected files are
2725           silcd/server_internal.h and silcd/server_util.c.
2726
2727         * Notify distribution to backup routers was missing from
2728           the silc_server_send_notify_dest function which caused
2729           desyncing problems with backup router.  Affected file is
2730           silcd/packet_send.c.
2731
2732         * The client's channel removing was working wrong on
2733           backup router.  It assumed that it doesn't know global
2734           information but backup router does know.  For this reason
2735           it could remove channel when it wasn't supposed to do that.
2736           Affected file silcd/server.c and silcd/server_util.c.
2737
2738 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2739
2740         * Stop for a couple seconds after badkup router has become
2741           primary router.  Affected file silcd/server.c.
2742
2743         * Added silc_server_remove_servers_by_server, which is used
2744           to remove servers originated from some other server.  Also
2745           clients of those servers can be removed too.  Affected file
2746           silcd/server_util.[ch].
2747
2748         * When removing clients after a server has signed of remove
2749           also all servers behind that server (unless they are known
2750           to be available locally), and send SERVER_SIGNOFF for each
2751           of the server separately.  Also the signed off clients are
2752           sent now separately per signed off server.  The affected files
2753           are silcd/server.c and silcd/server_util.[ch].
2754
2755         * All servers added with silc_idlist_add_server must always
2756           have both "router" and "connection" pointers set.  Otherwise,
2757           bad server entries may be left around in the cache.
2758           Affected file silcd/command_reply.c.
2759
2760         * Do not create the channel key in NEW_CHANNEL packet
2761           processing if the channel is empty.  Affected file
2762           silcd/packet_receive.c.
2763
2764         * Completed backup router support for standalone routers.
2765           Supports also servers in the cell that do not use the backup
2766           at all.
2767
2768 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2769
2770         * Fixed a bug in silc_string_regexify which did not add '^'
2771           at the start of each string, and thus the matching was
2772           not explicit.  For example ban list iikone@*!*@* would
2773           match also "priikone", which is wrong, it would have to be
2774           *iikone@*!*@* to match also "priikone".  Affected
2775           file lib/silcutil/unix/silcunixutil.c.
2776
2777 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2778
2779         * Enable all local server connections before updating client
2780           caches when we've become backup router.  Otherwise, signoff
2781           packets may not reach the clients.  Affected files are
2782           silcd/server.c and silcd/server_util.[ch].
2783
2784         * Fixed a bug in version string parsing which could crash
2785           the program with specially formatted version string.
2786           Bug reported and patch provided by Ville Räsänen.  Affected
2787           file lib/silcutil/silcutil.c.
2788
2789         * Handle the disconnection immediately when DISCONNECT
2790           packet is received in server.  Affected file silcd/server.c.
2791
2792         * Primary router now waits a short time (10 seconds) for
2793           backup router connection before accepting any other
2794           connection (except local).  Affected file silcd/server.c,
2795           serverconfig.[ch].
2796
2797         * Fixed a crash in client libary in NICK_CHANGE notify when
2798           NICK_CHANGE arrived for client entry we are resolving
2799           currently.  Affected file lib/silcclient/client_notify.c.
2800
2801         * Call the sconn->callback completion even if error had
2802           occurred.  Start reconnecting always if connection to
2803           primary router fails during backup router protocol.
2804           Affected files silcd/server.c and server_backup.c.
2805
2806 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2807
2808         * Added functions silc_server_send_opers and
2809           silc_server_send_opers_notify to send packets stricly
2810           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
2811           to send variable argument notify to operators.
2812           Affected files silcd/packet_send.[ch] and silcd/server.h.
2813
2814         * Removed UMODE rights checking with UMODE_CHANGE notify.
2815           Affected file silcd/packet_receive.c.
2816
2817         * Server/router operator now receives notify when network
2818           switches to backup router and when it resumes the use of
2819           primary router.  Affected file silcd/server.c and
2820           silcd/server_backup.c.
2821
2822         * Fixed the updating of client information after backup
2823           resuming protocol is over; update all except local clients
2824           to the new primary router.  The affected file is
2825           silcd/server_util.c.
2826
2827         * Added support for closing active connections in rehash
2828           that were unconfigured by the user.  Supports currently
2829           closing server and router connections.  Affected file
2830           silcd/server.c.
2831
2832         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
2833
2834 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2835
2836         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
2837           is NULL since seems that on some platforms NULL is allowed
2838           and on some it's not.  Fallback encoding is used instead.
2839           Affected file lib/silcutil/silcstrutil.c.
2840
2841         * Fixed statistics updating for incoming server connection
2842           which could cause problems when re-connecting.  Affected
2843           file silcd/server.c.
2844
2845         * Preliminary backup router support for standalone router
2846           added.  Affected files in silcd/.
2847
2848         * Mark server connections in backup router disabled before
2849           and after backup protocol.  Affected file is
2850           silcd/server_backup.c.
2851
2852         * Added support for reconnecting to remote server connection
2853           even if the protocol fails, and if the configuration wants
2854           us to keep trying to connect anyway.
2855
2856           Server connection is not allowed to backup router if
2857           backup router does not have connection to primary router yet.
2858
2859           Affected file is silcd/server.c.
2860
2861 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2862
2863         * Added silc_client_udpate_server function to update changed
2864           server info.  Affected file lib/silcclient/idlist.[ch].
2865
2866         * Added check for server entries that are being resolved when
2867           notify is received.  If being resolved, handle the received
2868           notify only after it's resolved so that all notifys are
2869           handled in same order as received from the server.
2870
2871           Added similar resolver check to channel entries.  Every
2872           notify that cause resolving of any information that affects
2873           channel entry marks the channel entry in waiting state.
2874           After whatever resolving is over the waiters are signalled
2875           and only then the notifys are handled in the same order
2876           as delivered from the server.
2877
2878           Affected files are lib/silcclient/idlist.[ch], and
2879           client_notify.c.
2880
2881         * Fixed KILLED notify handling in normal server.  Affected
2882           file silcd/packet_receive.c.
2883
2884         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
2885           is locally connected, or was locally connected (but may
2886           be detached and connection is not active).  Added also
2887           SILC_IS_LOCAL for checking this status.  Affected files
2888           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
2889           silcd/server.c and silcd/server_internal.h.
2890
2891 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2892
2893         * Don't send or handle TOPIC_SET if topic is already set and
2894           is same as being set.  Affected files silcd/command.c and
2895           silcd/packet_receive.c.
2896
2897         * Fixed CMODE change rights checking to work correctly when
2898           removing modes by operator.  Affected file is
2899           silcd/server_util.c.
2900
2901         * Fixed some handling with New Channel packet in router and
2902           fixed some CMODE_CHANGE notify handling in server and router.
2903           Affected file is silcd/packet_receive.c.
2904
2905         * Changed "disconnect" client operation to include the
2906           reason of the disconnection and optional disconnection
2907           message.  Affected file lib/silcclient/silcclient.h.
2908
2909         * Made the compilation of lib/contrib/ stuff conditional.
2910           Affected files configure.in.pre, lib/contrib/Makefile.am.
2911
2912 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2913
2914         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
2915           to the sender of the notify too, to avoid situation where two
2916           notifys are in the network at the same time going to oppsite
2917           directions.  Affected file silcd/packet_receice.c.
2918
2919 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2920
2921         * Delete the client from channel even if the cilent->id is
2922           NULL.  It was possible that client was deleted without
2923           removing from channels (theoretically at least).  Affected
2924           file silcd/server.c and silcd/server_util.c.
2925
2926         * Free the client data too when resuming is not successful.
2927           Affected file silcd/packet_receive.c.
2928
2929         * Merged some code from c0ffee's silc-plugin.  Affected files
2930           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
2931
2932         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
2933           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
2934           to the primary router connection, the other one returns
2935           TRUE if packet must be broadcasted to network.
2936
2937         * All notifys that are destined to primary router (to network)
2938           are now automatically sent to backup routers even if the
2939           router is standalone (and has backup router).  Affected files
2940           in silcd/.
2941
2942         * Added --without-irssi and --without-silcd configuration
2943           options for disabling the compilation of these applications.
2944           Affected file configure.in.pre and prepare.
2945
2946 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2947
2948         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
2949           UTF-8 encoding and decoding.  Added also new encodings
2950           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
2951
2952           Added also SILC_STRING_LANGUAGE which is language and charset
2953           specific encoder and decoer for those platforms that support
2954           iconv().  It can convert the UTF-8 to and from the locale
2955           specific character set.
2956
2957           Affected file lib/silcutil/silcstrutil.[ch].
2958
2959         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
2960
2961         * Added function silc_get_command_name to the file
2962           lib/silcutil/silcutil.[ch].
2963
2964         * Improved the server debug output a bit.  Affected files are
2965           in silcd/.
2966
2967 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2968
2969         * Save the channel passphrase when received succesful JOIN
2970           command reply from router, on normal server.  Otherwise
2971           joinig +a channels from normal server is not possible.
2972           Affected file silcd/command.c.
2973
2974         * Fixed a bug in TOPIC_SET notify handling.  The notifier
2975           may be other than client too, like server or channel.
2976           It expected it to always be only client and ignored the
2977           notify.  Affected file silcd/packet_recieve.c.
2978
2979         * Removed some (unnecessary) debug printing from
2980           lib/silccore/silcid.c and lib/silccore/silcargument.c.
2981
2982         * Do not force CMODE_CHANGE when server is announcing new
2983           channel.
2984
2985           Router announces stuff only after server reannounces channel
2986           after CHANNEL_CHANGE notify.
2987
2988           These fixes optimizes the announcing procedure, and perhaps
2989           fixes some problems too.  Affected file silcd/packet_receive.c.
2990
2991         * Fixed SERVER_SIGNOFF sending to local clients.  It was
2992           totally broken and sent the notify to all local clients,
2993           instead of only to those that was on same channel as the
2994           signing off clients.  Affected file silcd/server_util.c.
2995
2996         * Added -D option to server.  It can be used to give debug
2997           level.  The levels are from 0 - 99, and are predefined for
2998           smooth server debugging.  (see silcd.c for the predefined
2999           levels).  Affected file silcd/server.c.
3000
3001 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3002
3003         * Fixed a bug in Irssi SILC client to close the connection
3004           properly when disconnecting from server.  Affected file
3005           irssi/src/silc/core/client_ops.c.
3006
3007 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3008
3009         * When authenticating as founder during JOIN command, check
3010           that the one authenticating becomes the only founder on the
3011           channel.  Affected file silcd/command.c.
3012
3013         * Better checking for founder mode setting when CUMODE_CHANGE
3014           notify is received.  Affected file silcd/packet_receive.c.
3015
3016         * Close all connections when shutting down the server by sending
3017           DISCONNECT packet.  Close all listeners too when shutting
3018           down the server.  Affected file silcd/server.c.
3019
3020         * Handle DISCONNECT packet correctly in client library by
3021           calling the "disconnect" client operation.  Affected file
3022           lib/silcclient/client.c.
3023
3024         * Handle local errors correctly during resuming.  Affected
3025           file lib/silcclient/client.c.
3026
3027 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3028
3029         * The log file is not dupped internally anymore in
3030           lib/silcutil/silclog.c.  Fixed memory leaks too.
3031
3032         * The scheduler now dispatches all pending timeout tasks
3033           when it is uninitialized with silc_schedule_uninit.
3034           Affected file lib/silcutil/silcschedule.c.
3035
3036 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3037
3038         * Added --enable-stack-trace option to configure.  Added
3039           memory allocation stack trace support.  Added files
3040           lib/silcutil/stacktrace.[ch].  Affected files are
3041           lib/silcutil/silcmemory.[ch].
3042
3043         * Fixed memory leaks from libraries and server.  Affected
3044           files around the tree.
3045
3046         * Reverted back a fix made to CUMODE which broke it.
3047           Affected file silcd/command.c.
3048
3049 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3050
3051         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3052           core library, and implemented it.  All textual messages SHOULD
3053           use this flag and the message MUST be UTF-8 encoded.
3054           All text messages sent by Irssi SILC client are now UTF-8
3055           encoded (regardless whether the terminal supports UTF-8 or not).
3056           Affected files are lib/silccore/silcchannel.h,
3057           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3058           client_ops.c.
3059
3060 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3061
3062         * Added lots of new statistics updating that was missing from
3063           the server and router code.  Affected files in silcd/.
3064
3065         * Sending SIGUSR1 signal to server now dumps the current
3066           server statistics into /tmp directory.  Affected file is
3067           silcd/silcd.c.
3068
3069         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3070           the SILC Hash Interface also.  Added new functions
3071           silc_hash_get_name, silc_hash_init, silc_hash_update and
3072           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3073
3074 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3075
3076         * Added some better info printing for client during connecting.
3077           Affected file silcd/server_util.c.
3078
3079         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3080           to silence a user on a channel.  Affected files are
3081           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3082           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3083           and silcd/packet_receive.c.
3084
3085         * Fixed a fatal bug in handling of malformed command payload.
3086           Affected file silcd/command.c.
3087
3088         * Fixed a double free when announcing channel users to router.
3089           Affected file silcd/server.c.
3090
3091         * After successful authentication to channel founder mode, check
3092           that there isn't anyone else with founder mode on the channel.
3093           The one that authenticated will become founder and anyone
3094           else is demoted.  Affected file silcd/command.c.
3095
3096         * Added error printing of any error that has occurred during
3097           any command in client library.  Affected file is
3098           irssi/src/silc/core/client_ops.c.
3099
3100         * Removed some error printing from the client library and left
3101           it for the application to worry (from the error status it
3102           receives in 'command' client operation.  Affected file is
3103           lib/silcclient/command.c.
3104
3105 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3106
3107         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3108           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3109           Starting key agreement with itself is denied.  Affected file
3110           is lib/silcclient/client_keyagr.c.
3111
3112         * Fixed some error checkings from the SFTP library which caused
3113           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3114           and lib/silcsftp/sftp_util.c.
3115
3116         * Added new "debug" and "debug_string" settings to Irssi SILC
3117           client which can be used to print runtime debugging on the
3118           Irssi's screen.  Available when compiled with --enable-debug
3119           option.  Affected file irssi/src/silc/core/silc-core.c.
3120
3121 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3122
3123         * Fixed a missing variadic parameter in a function call that
3124           caused server crash when a non-allowed connection arrived.
3125           Reported by Richard Becker.  Affected file silcd/server.c.
3126
3127 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3128
3129         * Added WATCH list sending to backup routers from router.
3130           The WATCH command is sent by the router to the backup
3131           router.  Affected file silcd/command.c.
3132
3133         * Mark the backup_router flag for RouterConnection entry
3134           if the backup router stuff is defined in the config file.
3135           Affected file silcd/serverconfig.c.
3136
3137         * Fixed some backup data sending around the code to work better
3138           if the router is standalone router.  Not all places were fixed.
3139           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3140           silcd/server.c.
3141
3142         * Fixed the router connecting when connecting to multiple
3143           routers.  It ignored every other router except the first
3144           one.  Affected file silcd/server.c.
3145
3146 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3147
3148         * Made the private key generation after expiration optional.
3149           If not created after expiration the old key will re-expire
3150           at a later time (and thus key pair is not necessary to
3151           change).  Affected file irssi/src/silc/core/clientutil.c.
3152
3153 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3154
3155         * The length arguments in bind() and connect() were wrong
3156           and fixed now to used SIZEOF_SOCKADDR in the
3157           lib/silcutil/unix/silcunixutil.c.
3158
3159 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3160
3161         * Fixed detach timeout handling to use Client ID and not
3162           the actual client entry which may be freed in the callback.
3163           Affected file silcd/command.c.
3164
3165 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3166
3167         * Merged c0ffee's multiple interface support patch.
3168           Affected files in silcd/.
3169
3170 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3171
3172         * Cleanup keys properly.  Affected file is
3173           irssi/src/silc/core/clientutil.c.
3174
3175 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3176
3177         * Display the user mode on the status bar.  Affected file
3178           irssi/src/silc/core/silc-expandos.c.
3179
3180 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3181
3182         * If private message key is not set, but the flag is set in
3183           the packet, ignore the packet since it cannot be decrypted.
3184           Affected file lib/silcclient/client_prvmsg.c.
3185
3186 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3187
3188         * When resuming client, remove the old client entry from
3189           the watcher list too.  Affected file silcd/packet_receive.c.
3190
3191         * Do not allow normal server to force founder mode away
3192           from router if the founder mode is already set.  Affected
3193           file silcd/packet_receive.c.
3194
3195         * Remove the client entry with watch notify types with short
3196           timeout, and not directly, so that other notifys can be
3197           retrieved too.  Affected file lib/silcclient/client_notify.c.
3198
3199         * Display notification about data messages that cannot be
3200           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3201           irssi/src/fe-common/silc/module-formats.[ch].
3202
3203 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3204
3205         * Fixed the CHANNEL_CHANGE notify handling in client libary
3206           to not use freed memory.  Affected file is
3207           lib/silcclient/client_notify.c.
3208
3209         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3210           file silcd/packet_receive.c.
3211
3212         * Fixed USERS command to support empty channels.  Affected
3213           file silcd/command.c.
3214
3215 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3216
3217         * Allow multiple identical pending commands to be registered
3218           in client library.  Affected file is lib/silcclient/command.c.
3219
3220         * Call the completion for resolving client information only
3221           after all resolvers has finished.  This fixes a crash in
3222           the client.  Added support for checking when the resolvers
3223           are finished.  Affected file is lib/silcclient/idlist.c.
3224
3225         * Wait by default 3 seconds before reconnecting to the server
3226           after being disconnected.  Makes the /detach command a bit
3227           more usable.
3228
3229 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3230
3231         * Check the watcher list before sending signoff notifys
3232           when closing client connection.  Affected file is
3233           silcd/server.c.
3234
3235         * Added better CMODE command rights checking.  Affected file
3236           silcd/server_util.c.
3237
3238 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3239
3240         * Fixed watcher list checking during server signoff.  It
3241           crashed the server.  Affected file silcd/server_util.c.
3242
3243         * The JOIN command reply returns now the founder's public
3244           key.  Affected file is silcd/command.c.
3245
3246         * Announce the channel mode, and the mode properties with
3247           CMODE_CHANGE notify.  Affected file silcd/server.c.
3248
3249         * Mark new channels by default disabled, untill at least
3250           one user joins the channel.  Affected file is
3251           silcd/packet_receive.c.
3252
3253 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3254
3255         * The nickname argument to watch notify can be optional.
3256           Fixes a crash in server.  Affected file silcd/packet_send.c.
3257
3258         * Remove the client entry from cache if the WATCH notify type
3259           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
3260           lib/silcclient/client_notify.c.
3261
3262         * Check the watcher list before and after changing nickname
3263           when the NICK_CHANGE notify is received.  Affected file is
3264           silcd/idlist.c.
3265
3266         * Fixed a crash in OPER and SILCOPER command sending.  Empty
3267           passphrase caused the crash.  Affected file is
3268           lib/silcclient/command.c.
3269
3270 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3271
3272         * Merged with Irssi CVS for Irssi SILC client.
3273
3274 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3275
3276         * Completed the protocol specifications.
3277
3278 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3279
3280         * Merged with Irssi CVS for Irssi SILC client.
3281
3282 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3283
3284         * Added the founder's public key delivery to the
3285           CUMODE_CHANGE notify type as well.  Updated the protocol
3286           specs and the code.  Affected files are silcd/packet_send.[ch],
3287           silcd/packet_receive.c and silcd/command.c.
3288
3289 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3290
3291         * Added silc_pkcs_public_key_copy function into the
3292           lib/silccrypt/silcpkcs.[ch].
3293
3294         * Remove the `iv' from the SilcChannelEntry since we can
3295           live without it.  Affected files are silcd/idlist.h and
3296           silcd/packet_receive.c.
3297
3298         * Added support for sending the founder's public key in
3299           the CMODE_CHANGE notify packet in the server.  Affected
3300           files are silcd/packet_send.[ch], silcd/packet_receive.c,
3301           silcd/command.c and silcd/server.c.
3302
3303         * Changed the FOUNDER_AUTH authentication to use only
3304           public key authentication as defined by new protocol
3305           specs.  Passphrase authentication with that mode cannot
3306           be used anymore.  It is now possible to reclaim founder
3307           mode from any server in the network.  Affected files are
3308           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
3309
3310         * Added permanent channels support by making the channel
3311           permanent when FOUNDER_AUTH mode is set on the channel.
3312           The channel will not be destroyed even if channel is empty
3313           when that mode is set.  Protocol TODO #17.  Affected
3314           files are silcd/server.[ch], server_util.[ch],
3315           silcd/command.c, silcd/packet_receive.c and
3316           lib/silcclient/command.c.
3317
3318 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3319
3320         * Added reference counter to the command reply context in
3321           the client library.  Affected files are
3322           lib/silcclient/command_reply.[ch].
3323
3324 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3325
3326         * Fixed rekey protocol with PFS in the client library.
3327           Affected file is lib/silcclient/protocol.c.
3328
3329         * Added support for list of errors in client library
3330           command reply handling.  Affected file is
3331           lib/silcclient/command_reply.c.
3332
3333         * Defined that the WHOIS and IDENTIFY commands can send
3334           list of errors.  Updated the protocol specs.  Protocol
3335           TODO #2.
3336
3337         * Added support for sending list of errors to WHOIS and
3338           IDENTIFY commands in server.  Added support for receiving
3339           list of errors in server.  Affected files are
3340           silcd/command.c and silcd/command_reply.c.
3341
3342         * Fixed client info resolving on LEAVE command in client
3343           library to not crash.  Affected file is
3344           lib/silcclient/client_notify.c.
3345
3346 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3347
3348         * Defined that the NICK command replies with thew changed
3349           nickname too, to make the nickname changing simpler at
3350           the client's end.  Updated protocol specs and the code
3351           in client and server.  Affected files are
3352           silcd/command.c, lib/silcclient/command_reply.c and
3353           lib/silcclient/command.c.
3354
3355 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3356
3357         * Added `Compressed' packet flag to indicate that the packet
3358           payload is compressed by the sender.  Updated the protocol
3359           specs and the core library.  The compression still is not
3360           implemented in the sources.  Affected file is
3361           lib/silccore/silcpacket.h.
3362
3363 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3364
3365         * Remove pending command callbacks also if the connection
3366           to the server is destroyed.  Affected file is
3367           lib/silcclient/client.c.
3368
3369 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3370
3371         * Added new QUIET channel user mode that can be used to
3372           quiet a user in a channel.  Updated the protocol specs but
3373           it wasn't implemented yet.  Protocol TODO #27.  Affected
3374           file is lib/silccore/silcmode.h.
3375
3376 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3377
3378         * Added BLOCK_INVITE user mode to be able to block incoming
3379           invite notifications.  Protoocol TODO #26.  Affected files
3380           are lib/silccore/silcmode.h, lib/silcclient/command.c and
3381           silcd/command.c.
3382
3383         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
3384           the protocol specs and the code.  Affected file is
3385           lib/silccrypt/silcpkcs.c.
3386
3387 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3388
3389         * Disconnect Payload includes now the status type.  Updated
3390           the protocol specs and the code.  Protocol TODO #25.
3391           Affected files are silcd/server.c, lib/silcclient/client.c.
3392
3393         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
3394           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
3395           Moved the silc_client_command_status_messages table to the
3396           lib/silcutil/silcutil.c and added new funtion
3397           silc_get_status_message, which deprecates function
3398           silc_client_status_message.  Affected files are
3399           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
3400           lib/silcutil/silcutil.[ch].
3401
3402 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3403
3404         * Defined that the nickname hash in Client ID MUST be from
3405           lowercase nickname.  This effectively changes nicknames in
3406           SILC to case-insensitive.  Updated the protocol specs and
3407           the code.  Affected files are lib/silcutil/silcutil.[ch],
3408           silcd/serverid.c, and silcd/idlist.c.
3409
3410         * Added new channel user modes BLOCK_MESSAGES_USERS and
3411           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
3412           code.  Affected files are lib/silccore/silcmode.h,
3413           lib/silcclient/command.c, and silcd/packet_send.c.
3414
3415         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
3416           specs and code.  Affected file lib/silccore/silcstatus.h.
3417
3418         * Added support for watch list.  It is possible to add nicknames
3419           to be watched, and when they come to network, leave network
3420           or user mode changes the watcher will be notified of this
3421           change.  Added SILC_COMMAND_WATCH command, added new
3422           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
3423           notifications.  Updated the protocol specs and implemented
3424           this to library, client and server.  Protocol TODO #21.
3425           Affected files are lib/silccore/silccomand.h,
3426           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
3427           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
3428           silcd/packet_send.[ch], silcd/packet_receive.c, and
3429           irssi/src/silc/core/client_ops.c.
3430
3431         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
3432           somebody watching you.  Updated the protocol specs and the
3433           code.  Affected files are lib/silccore/silcmode.h, and
3434           lib/silcclient/command.c.
3435
3436 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3437
3438         * Added service support to SILC protocol.  Added new command
3439           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
3440           core library.  Services are not implemented in server or
3441           client for now.  Protocol TODO #20.  Affected files are
3442           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
3443
3444         * Added SilcStatus argument to `command' client operation
3445           to return the error status when command sending fails
3446           locally.  Changed all command in client library to return
3447           correct command status.  Affected files are
3448           lib/silcclient/command.c, lib/silcclient/silcclient.h and
3449           irssi/src/silc/core/client_ops.c.
3450
3451 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3452
3453         * Added silc_mime_parse function to parse MIME headers.
3454           Affected files are lib/silcutil/silcstruti.[ch].
3455
3456         * Added MIME header parsing in Irssi SILC Client.  It displays
3457           all textual MIME objects, others it ignores.  Affected file
3458           is irssi/src/silc/core/clien_ops.c.
3459
3460 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3461
3462         * Fixed a bug in the pid writing function, which couldn't be
3463           written in a root-owned directory.
3464
3465 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3466
3467         * Defined that channel message to unknown Channel ID must
3468           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
3469           Updated the protocol specs and the code in server.  The
3470           affected file is silcd/packet_receive.c.
3471
3472 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3473
3474         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
3475           that it is used to send error notifys if error occurs during
3476           some SILC packet processing, except commands.  The error
3477           types are same as for command reply types.  Defined that
3478           if private message is sent to unknown Client ID the error
3479           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
3480           Updated the protocol specs and code.  Affected files are
3481           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
3482           lib/silcclient/client_notify.c, silcd/packet_receive.c,
3483           and irssi/src/silc/core/client_ops.c.  Renamed the
3484           SilcCommandStatus to SilcStatus.
3485
3486         * Defined the use of extra WHOIS attributes in WHOIS command.
3487           The <Requested Attributes> (defined in a separate document)
3488           can be used to request additional information about user
3489           not returned by standard WHOIS command.  Defined that server
3490           can send WHOIS command directly to client.  Client provides
3491           the requested attributes to the server.  Updated the protocol
3492           specs.  Protocol TODO #4.  Implementation is not done yet
3493           (Protocol TODO #24).
3494
3495         * Renamed function silc_client_command_status_message to
3496           silc_client_status_message.  Affected files are
3497           lib/silcclient/command_reply.[ch].
3498
3499 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3500
3501         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
3502           32 bit integers.  Updated the protcol specs and the code.
3503           Affected files are silcd/command.c and
3504           lib/silcclient/command.c.
3505
3506 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3507
3508         * Fixed a bug in library where sending a bogus authentication
3509           payload would lead to a crash.  Affected file is
3510           lib/silccore/silcauth.c.
3511
3512 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3513
3514         * Added detach_disabled and detach_timeout server config
3515           options to the server.  Affected files silcd/serverconfig.[ch],
3516           silcd/command.c and silcd/packet_receive.c.
3517
3518 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3519
3520         * Added resolve_cmd_ident field to the SilcClientEntry structure
3521           too so that if the entry is for example being resolved so
3522           another command may attach to the same pending command reply
3523           without requiring to resolve the same entry again.  Added
3524           support for adding multiple pending commands for one
3525           command idenfier.  Affected files lib/silcclient/command.[ch],
3526           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
3527
3528 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3529
3530         * Defined that server receives WHOIS command reply for private
3531           and secret channels too.  Updated protocol specs and the
3532           code in server.  Affected file silcd/command.c.
3533
3534         * Defined <channel user mode list> argument to WHOIS command
3535           reply for returning user modes on the channels.  The
3536           channel list now doesn't include the user mode anymore but the
3537           actual channel mode.  Updated protocol specs and the code in
3538           client and server.  Affected files are silcd/command_reply.c,
3539           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
3540           and lib/silcclient/command_reply.c.
3541
3542         * Save the channels list in WHOIS command reply in normal server
3543           so that WHOIS always shows joined channels also in normal
3544           server and not just on router.  Affected file is
3545           silcd/command_reply.c.
3546
3547 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3548
3549         * Defined that server receives USERS command reply for private
3550           and secret channels too.  Updated protocol specs and the
3551           code in server.  Affected file silcd/command.c.
3552
3553 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3554
3555         * Changed the UMODE's mode mask argument to be optional.  If
3556           not provided then the command merely returns the current mode
3557           mask to the client.  Updated protocol specs and the server.
3558           Affected file is silcd/command.c.
3559
3560         * Added SILC session detachment/resuming support.  It is possible
3561           to detach by closing the network connection and then re-connect
3562           and resume to the old client session.  Added DETACHED user
3563           mode that server will set for detached client.  Added new
3564           packet RESUME_CLIENT which is used to perform the resuming
3565           process.  Added DETACH command.  Updated the protocol specs,
3566           core library, client and server.  Protocol TODO #22.  Very
3567           many affected files around the tree.
3568
3569 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3570
3571         * Changed the CMODE's mode mask argument to be optional.  If
3572           not provided then the command merely returns the current mode
3573           mask to the client.  Updated protocol specs and the server.
3574           Affected file is silcd/command.c.
3575
3576         * Changed the Killer's Client ID in KILLED notify to be just
3577           any ID payload since router server is allowed to kill as well.
3578           Updated protocol specs, client libary and server.  Affected
3579           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
3580           and irssi/src/silc/core/client_ops.c.
3581
3582 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3583
3584         * Added new user modes ANONYMOUS for special anonymous servers
3585           that may set the mode for client, and BLOCK_PRIVMSG which
3586           client may set to block incoming private messages unless the
3587           Private Message Key flag is set (using private keys to protect
3588           private messages).  Updated protocol specs and code in client
3589           and server and core library.  Protocol TODO #23.  Affected
3590           files are lib/silccore/silcmode.h, silcd/server.[ch],
3591           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
3592           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
3593
3594         * Added new channel user mode BLOCK_MESSAGES which the client
3595           may set to itself to tell server not send channel messages.
3596           Other packets such as channel key packets are still sent.
3597           Protocol TODO #23.  Updated the protocol specs, client and
3598           server.  Affected files are lib/silccore/silcmode.h,
3599           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
3600           lib/silcutil/silcutil.c, silcd/command.c, and
3601           silcd/packet_send.c.
3602
3603 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3604
3605         * Redefined the Status Payload to include now two 8 bit fields,
3606           instead of one 16 bit field.  This now makes it possible to
3607           send list of errors.  Updated the protocol specs and the code
3608           in core library, client library and server.  Protocol TODO #1.
3609           Affected files are lib/silccore/silccommand.[ch],
3610           lib/silcclient/command_reply.[ch], silcd/command.c,
3611           silcd/command_reply.c and silcd/packet_receive.[ch].
3612
3613 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3614
3615         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
3616           must be handled by the application and should tell the application
3617           that an error message was already printed, and it should print the
3618           config coords (line, filename, ...).  Affected files are
3619           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
3620
3621         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
3622           server config parsing code more readable.
3623
3624           Fixed a bug in the fetch_logging() config callback.
3625
3626           Affected files is silcd/serverconfig.c.
3627
3628         * Drop root privileges when started in foreground.  Don't drop them
3629           if debugging also.  Affected file is silcd/silcd.c.
3630
3631 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3632
3633         * Added more IM-like features by introducing new user modes
3634           for setting various presence information.  Added new modes:
3635           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
3636           specs and code.  Protocol TODO #19. Affected files are
3637           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
3638           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
3639
3640 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3641
3642         * Added STATS command to the protocol after all, to return
3643           various statistical information about the network.  It can
3644           be used by clients to retrieve statistical information, and
3645           servers may use it to to fetch cell and network wide
3646           statistics from router.  Updated the protocol specs and
3647           implemented it to the server.  Protocol TODO #16.
3648           Affected files are lib/silccore/silccommand, silcd/command.[ch],
3649           silcd/command_reply.[ch].
3650
3651 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3652
3653         * The LIST command reply in client libary now adds new channel
3654           entry if the returned channel doesn't exist yet in cache,
3655           and returns the channel entry to the application in the
3656           command_reply client operation.  Affected file is
3657           lib/silcclient/command_reply.c.
3658
3659         * Changed the channel message payload's MAC generation to
3660           include the IV in the MAC as well.  This way all relevant
3661           parts of the channel message payload are authenticated also
3662           with the channel message MAC (and not only by packet MAC).
3663           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
3664           Affected file is lib/silccore/silcchannel.c.
3665
3666         * Fixed the SKE to save the remote version, since the
3667           silc_ske_parse_version mistakenly checked wrong version,
3668           after it replaced the start payload.  Affected files are
3669           lib/silcske/silcske.[ch].
3670
3671 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3672
3673         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
3674           string utility functions.  Added there also new functions
3675           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
3676           Affected files lib/silcutil/silcstrutil.[ch].
3677
3678         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
3679           files are lib/silcutil/silcstrutil.[ch].
3680
3681         * Defined that the security property fields in SKE SHOULD be
3682           UTF-8 encoded, defined that version string MUST be US-ASCII
3683           encoded, defined that passphrases sent in connection
3684           authentication protocol MUST be UTF-8 encoded.  Implemented
3685           these to the client and server.  Defined also that other
3686           passphrases sent in the protocol MUST be UTF-8 encoded.
3687           Affected files are lib/silcske/silcske.c,
3688           lib/silcclient/protocol.c, silcd/protocol.c,
3689           silcd/serverconfig.c, and lib/silccore/silcauth.c.
3690
3691         * Changed the silc_client_close_connection interface to not
3692           need the SilcSocketConnection which should not be visible
3693           to application.  Affected files are lib/silcclient/client.c
3694           and lib/silcclient/silcclient.h.
3695
3696         * Rewrote the text for Private Message Key Payload in the
3697           protocol specification.  Protocol TODO #11.
3698
3699 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3700
3701         * Upgraded the protocol version to 1.1, updated protocol specs
3702           and software.
3703
3704         * Added the nickname as new argument to NICK_CHANGE notify and
3705           added it to protocol specs and implemented it to client and
3706           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
3707           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
3708           lib/silcclient/client_notify.c.
3709
3710         * Added the killer's client ID to the KILLED notify and added
3711           it to protocol specs and implemented it to client and server.
3712           Protocol TODO #13.  Affected files are silcd/command.c,
3713           silcd/packet_receive.c, packet_send.[ch],
3714           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
3715           The killer's client entry is now returned to application in
3716           the `notify' client operation.
3717
3718         * Fixed the Max Argument fields that had too large value set
3719           in the protocol specs.  Protocol TODO #14.
3720
3721         * Added the LEAVE command reply to return the ID of parted
3722           channel.  Updated protocol specs and implemented it to the
3723           client and server.  Protocol TODO #15.  Affected files are
3724           silcd/command.c, lib/silcclient/command_reply.c.  The channel
3725           entry is now returned to application in the `command_reply'
3726           client operation.
3727
3728         * Rewrote the version SKE version checking in client libary
3729           and in server to use the silc_parse_version_string.  Affected
3730           files are lib/silcclient/protocol.c, silcd/protocol.c.
3731
3732         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
3733           commands that was missing it, and updated protocol specs and
3734           the server implementation.  Protocol TODO #10.  The affected
3735           file is silcd/command.c.
3736
3737         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
3738           generic reply to a generic request (REQUEST flag), and
3739           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
3740           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
3741           to define the payload for DATA flag.  Added the flags to
3742           the implementation.  Protocol TODO #9.  Affected file is
3743           lib/silccore/silcchannel.h.
3744
3745           Changed the client library to return the message length
3746           to application as well in the channel_message and private_message
3747           client operations.  Affected files are
3748           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
3749           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
3750           and lib/silcclient/client_ops_example.c.
3751
3752         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
3753           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
3754           the channel.  Updated protocol specs and impelemented this
3755           to client and server.  Protocol TODO #6.  Affected files are
3756           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
3757           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
3758
3759           Added new options m and M to CMODE command in Irssi SILC
3760           client to set these modes.
3761
3762         * Deprecated all administrative commands from SILC protocol
3763           since they are highly implementation specific commands.
3764           Updated protocol specs.  Moved the old commands in
3765           implementations to private range of command types.  Affected
3766           files are silcd/command.c, lib/silcclient/command.c and
3767           lib/silcclient/command_reply.c.  Protocol TODO #8.
3768
3769         * Fixed a bug in server where sending unknown command crashes
3770           the server.  Affected file silcd/command.c.
3771
3772 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3773
3774         * Added SILC_PROTOCOLVERSION macro to check protocol version
3775           of a socket connection.  The affected file is
3776           lib/silcutil/silcsockconn.h.
3777
3778         * Added better error logging in rekey protocol.  Affected file
3779           silcd/protocol.c.
3780
3781         * Do not check public key types in SKE during rekey.  Affected
3782           file lib/silcske/payload.c.
3783
3784         * Fixed the rekey protocol with PFS, which was totally broken.
3785           Affected file silcd/protocol.c.
3786
3787 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3788
3789         * Some client implementations quit network by doing first LEAVE
3790           and then immediately SIGNOFF (like Bombyx).  We now do check
3791           after a short time after LEAVE notify and check whether the
3792           client is still valid after LEAVE, and if not we remove it from
3793           cache.  Affected file is lib/silcclient/client_notify.c.
3794
3795 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3796
3797         * Merged version 1.1.4 of zlib. Even if it not currently in use,
3798           it's good not to have security holes here.
3799
3800         * Fixed a negative refcount situtuation for the config context.
3801           Affected file is silcd/serverconfig.c.
3802
3803 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3804
3805         * ROBOdoc documented lib/silcutil/silcutil.h.
3806
3807 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3808
3809         * Optimized even more the SilcPacketContext structure.  Now
3810           totally saved 16 bytes of memory per context after optimization.
3811           Affected files are lib/silccore/silcpacket.[ch].
3812
3813         * Made strict checks for valid SILC IDs.  Affected file is
3814           lib/silccore/silcid.c.
3815
3816 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3817
3818         * Changed the object argument for silc_cipher_register,
3819           silc_hash_register, silc_hmac_register and silc_pkcs_register
3820           to const.  Affected files are lib/silccrypt/silccipher.[ch],
3821           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
3822
3823         * Changed the silc_get_username and silc_get_real_name to
3824           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
3825
3826         * Fixed the Irssi SILC Client to use the silc_get_username and
3827           silc_get_real_name insted of glib routines since the glib
3828           routines only corrupt stack.  Fixes the Irssi SILC to work in
3829           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
3830
3831         * Fixed the Irssi to not use g_get_home_dir since it crashes
3832           or returns garbage on cygwin and corrupts stack.  Added function
3833           get_home_dir to Irssi routines.  Affected files are
3834           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
3835
3836 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3837
3838         * Made some structure optimizations.  SFTP memory FS MemFSEntry
3839           entry structure.  Optimized SilcTask structure.  Optimized
3840           SilcPacketContext structure.
3841
3842           Affected files lib/silcsftp/sftp_fs_memory.c,
3843           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
3844
3845 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3846
3847         * And yet again reverted back the config thing since Johnny
3848           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
3849           and silcd.c.
3850
3851         * Fixed memory leaks from config object.  Affected files are
3852           silcd/serverconfig.[ch].
3853
3854         * Added support for adding new connections to the server in rehash.
3855           After rehash they take effect.
3856
3857           Added support for changing the maximum allowed connections in
3858           rehash.  The number can grow but going smaller is not supported.
3859
3860           Added function silc_server_num_sockets_by_remote to the
3861           silcd/server_util.[ch].
3862
3863           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
3864
3865 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
3866
3867         * Added preliminary checking during config parsing for a valid
3868           public/private key and removed further checks in the code.
3869           Affected files are silcd/serverconfig.[ch], server.c.
3870
3871         * Moved functions silc_server_drop() and silc_server_daemonise()
3872           from server.c to silcd.c since they are stricly related to
3873           the application activity.
3874
3875         * Reverted a small part of the automatic ref/unref since
3876           it caused a double unref in some situations.  Affected
3877           files are silcd/silcd.[ch], server.c, serverconfig.c.
3878
3879         * Added some .cvsignore files in the lib directory.
3880
3881 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3882
3883         * Fixed silc_net_gethostbyaddr to correctly resolve by
3884           address.  Affected file lib/silcutil/silcnet.c.
3885
3886         * Fixed the notify relaying to client.  The HMAC to be used
3887           with relayed packets ws wrong and caused decryption failure
3888           at the client end.  Affected file is silcd/packet_receive.c.
3889
3890 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3891
3892         * Created new branch silc_protocol_1_0_branch.
3893
3894         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
3895
3896         * Changed the silc_server_config_* routines to be SilcServer
3897           independent.  They are now officially application specific code
3898           and not part of generic server implementation.  Affected files
3899           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
3900
3901 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3902
3903         * Added automatic referencing of config context in the
3904           silc_server_config_alloc, and automatic unreferencing in the
3905           silc_server_config_destroy.  Affected files are
3906           silcd/serverconfig.[ch], silcd/silcd.c.
3907
3908         * Fixed the silc_log_quick handling in the logging routines.
3909           It didn't log quickly when it was TRUE.  Affected file is
3910           lib/silcutil/silclog.c.  Also the flush delay was set even
3911           if it was 0 in config file.  Affected file is
3912           silcd/serverconfig.c.
3913
3914         * Added support for changing key pair of the server in rehash.
3915           Affected file silcd/server.c.
3916
3917 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3918
3919         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
3920           too early, before getting the channel entry.  Affected file
3921           is silcd/packet_receive.c.
3922
3923 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
3924
3925         * Added functions silc_server_config_[ref/unref], these are used
3926           to prevent that the config object is destroyed.
3927
3928           No longer directly affect global variables silc_log_quick and
3929           silc_log_delay, they are first cached inside the config object
3930           and then applied with silc_server_config_setlogfiles().
3931
3932           silc_server_config_set_defaults() is now internal to
3933           serverconfig.c, there are no reasons to show this internal stuff
3934           to the server.
3935
3936           Affected files are silcd/serverconfig.[ch].
3937
3938         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
3939           fprintf's to stderr, since some code may be executed again after
3940           the server went into the background.  Affected files are
3941           silcd/server.[ch].
3942
3943         * Added rehash support. Added function silc_server_rehash() that
3944           will perform all the basic tasks of the rehashing procedure.
3945
3946         * Added command line option `-x, --hexdump'. This will enable the
3947           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
3948           The option `--hexdump' implies `--debug'.
3949
3950         * Fixed a bad bug in the logging APIs (silcutil library) where
3951           the application would crash after calling silc_log_reset_all().
3952
3953 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3954
3955         * Fixed the KICKED notify handling in client library to
3956           correctly remove the channel and all entries from the
3957           channel when I was kicked.  This bug crashed the client.
3958
3959           Fixed yet another but in KICKED notify handling to remove
3960           the kicked client correctly from the channel.
3961
3962           Affected file is lib/silcclient/client_notify.c.
3963
3964         * Fixed a minor bug in looking up correct client entry
3965           in KICKED notify in server.  Affected file is
3966           silcd/packet_receive.c.
3967
3968         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
3969           sources correctly to distribution.  Fixes --with-gmp option.
3970
3971         * Removed the manual rehashing from ID Cache, and changed it
3972           to use the SILC Hash Table's auto rehash feature.  Affected
3973           file is lib/silccore/silcidcache.c.
3974
3975 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3976
3977         * Fixed a bug in the silc_client_nickname_format function that
3978           handles the multiple same nickname formatting.  Two clients
3979           with same nickname caused problems after the first one left
3980           and rejoined.  It didn't format the nickname correctly.
3981           Affected file is lib/silcclient/idlist.c.
3982
3983 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3984
3985         * Don't change the topic if olod topic is same as new one.
3986           Affected file is silcd/packet_receive.c.
3987
3988 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3989
3990         * Added cross-reference support to the SILC Documentation
3991           generator.  All types across all HTML files are now cross-
3992           referenced.  Affected files util/robodoc/generator.c and
3993           scripts/silcdoc/silcdoc.
3994
3995         * Added file lib/silcutil/silctypes.h to include all the
3996           arithmetic type definitions and some macros.  Removed
3997           includes/bitmove.h and moved macros to silctypes.h.
3998
3999 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4000
4001         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
4002
4003 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4004
4005         * Added `type' argument to silc_id_payload_parse_id function which
4006           now returns the type of the ID to the sent pointer.  Affected
4007           file is lib/silccore/silcid.[ch].
4008
4009         * Added check for CMODE_CHANGE notify type that mode change is
4010           allowed by the sender.  Affected file silcd/packet_receive.c.
4011
4012         * Added check for CUMODE_CHANGE notify type that mode change is
4013           allowed by the sender.  Affected file silcd/packet_receive.c.
4014           Added the ID type as CUMODE_CHANGE notify type as argument
4015           to the `notify' client operation.  Affected files are
4016           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4017
4018         * Added function silc_client_add_server to the client library.
4019           Added support for resolving also channel and server info when
4020           received unknown entity in notify packet.  Affected files are
4021           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4022
4023         * Added function silc_command_get_status to return the command
4024           status from the command reply's argument payload.  Affected files
4025           are lib/silccore/silccommand.[ch].
4026
4027         * Added check for KICKED notify type that the kicking is
4028           allowed by the client.  Affected file silcd/packet_receive.c.
4029
4030         * Created function silc_get_input which can be used to get input
4031           (echo on or off) from user on command line.  Affected files are
4032           lib/silcutil/silcutil.[ch].
4033
4034 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4035
4036         * Optimized silc_server_packet_relay_to_channel function.
4037           Added new function silc_channel_message_payload_encrypt which
4038           can be called directly if channel message payload needs to
4039           be encrypted and is already encoded (no need to call _encode
4040           function).  Packet relaying is now done by router without any
4041           extra memory allocations.  Affected files are
4042           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4043           silcd/packet_send.c.
4044
4045         * Fixed the INVITE notify handling.  It took wrong arguments
4046           as invite list and invite delete.  Affected file is
4047           silcd/packet_receive.c.
4048
4049         * Added check for TOPIC_SET notify type that the topic change is
4050           allowed by the client.  Affected file silcd/packet_receive.c.
4051
4052         * Added check for INVITE notify type that inviting is allowed by
4053           the client.  Affected file silcd/packet_receive.c.
4054
4055         * Changed the silc_server_client_on_channel to return the
4056           SilcChannelClientEntry as well.  Moved the function
4057           silc_server_check_cmode_rights to server_util.[ch].
4058           Affected files are silcd/server_util.[ch], silcd/command.c.
4059
4060         * Added function silc_server_check_umode_rights to check whether
4061           changing client's user mode is allowed.  Added check for
4062           UMODE_CHANGE notify type that the umode change is allowed
4063           by the client.  Affected files are silcd/server_util.[ch],
4064           silcd/packet_receive.c and silcd/command.c.
4065
4066 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4067
4068         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4069           ID length.  It ignored that ID can be IPv6 based as well.
4070           Affected file lib/silccore/silcpacket.h.
4071
4072         * Fixed the silc_id_id2str and silc_id_str2id to take the
4073           IPv6 address offset's into consideration.  Affecte file is
4074           lib/silccore/silcid.c.
4075
4076 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4077
4078         * Fixed the internal Unix scheduler functions to check for
4079           NULL context they may receive.  The affected file is
4080           lib/silcutil/unix/silcunixschedule.c.
4081
4082 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4083
4084         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4085           can specify different directory with --home command line
4086           parameter. Affected files irssi/src/silc/core/client_ops.c,
4087           clientutil.c
4088
4089         * SILC-specific commands aren't now executed if the active server
4090           isn't of SILC-type, so there won't be problems with having
4091           IRC and SILC protocol support in same client. Affected files
4092           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4093           silc-commands.h
4094
4095 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4096
4097         * Improved the signal support in SILC Schedule.  Added new
4098           function silc_schedule_signal_call which is used by application
4099           to mark a signal to be called.  It is now safe to perform
4100           any kind of tasks in signal callbacks since it is guaranteed
4101           that the application specified signal callback is called
4102           after the signal is over.  Affected files are
4103           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4104
4105 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4106
4107         * Added `name' field to SilcChannelPrivateKey to represent
4108           application given name for the key.  Moved also the context from
4109           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4110           Added the `name' argument also to the function
4111           silc_client_add_channel_private_key.
4112
4113           Added function silc_client_current_channel_private_key to set the
4114           current channel private key in use.
4115
4116           Added "change" command to KEY command which can be used to change
4117           the current channel private key.  Bound the command also to
4118           alt+K (Alt+Shift+k).
4119
4120           Also affected files lib/silcclient/client_channel.c,
4121           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4122
4123 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4124
4125         * Added silc_rng_get_byte_fast function in to the
4126           lib/silccrypt/silcrng.[ch].
4127
4128         * Changed the interface of silc_packet_assemble and the
4129           silc_packet_send_prepare.  If silc_packet_assmble is now
4130           called the application does not call silc_packet_send_prepare
4131           because the library will call it automatically.  These
4132           interfaces now also return a reference to the outgoing buffer
4133           which includes the assembled packet, which the application can
4134           use to encrypt the packet.
4135
4136           Affected files are lib/silccore/silcpacket.[ch],
4137           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4138           silcd/packet_send.c, server_backup.c and packet_receive.c.
4139
4140         * Fixed a packet sending bug on very high load, where outgoing
4141           packet queue wasn't handled correctly and packets got corrupted.
4142           Affected files are lib/silcutil/*/silc*sockconn.c,
4143           lib/silcclient/client.c and silcd/server.c.
4144
4145 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4146
4147         * Added macro SILC_PACKET_DATALEN which can be used during
4148           packet assembling to check whether the data to be added to
4149           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4150           len is truncated until it fits it.
4151
4152           Added checks for maximum length of channel message payload and
4153           private message payload also.
4154
4155           Added checks for maximum packet length in server and in
4156           client library.
4157
4158           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4159           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4160           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4161           lib/silcclient/client_prvmsg.c.
4162
4163 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4164
4165         * Added silc_server_packet_queue_purge call to the
4166           silc_server_disconnect_remote to assure that all data in the
4167           queue before disconnecting is sent to the network.  Affected
4168           file silcd/server.c.
4169
4170 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4171
4172         * Added the deleting of server's own ID cache entry to the
4173           silc_server_free function.  Free also everything else that
4174           has been allocated in silc_server_init.  The affected file
4175           is silcd/server.c.
4176
4177 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4178
4179         * Added functions silc_parse_version_string, silc_version_to_num,
4180           and silc_ske_parse_version to parse SILC protocol style version
4181           strings.  Affected files lib/silcutil/silcutil.[ch] and
4182           lib/silcske/silcske.[ch].
4183
4184         * Added new configuration params: version_protocol, version_software
4185           and version_software_vendor to specify what version the remote
4186           host must at least be to be able to connect to server.  The vendor
4187           string can be regex matched too.  Added new function
4188           silc_server_connection_allowed to check maximum number of allowed
4189           connections, and allowed versions for incoming connections.
4190           Affected files are silcd/server.c, server_util.[ch] and
4191           serverconfig.[ch].
4192
4193 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4194
4195         * Added preliminary support for signals in scheduler.  The
4196           signals we care about are now blocked always when the scheduler
4197           is locked.  This way we can synchronise the use of signal with
4198           scheduler.  It is guaranteed that when signal occurs the scheduler
4199           is not locked, and thus new tasks can be safely added to the
4200           scheduler.
4201
4202           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4203           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4204           Added new platform specific routines
4205           silc_schedule_internal_signals_[un]block and
4206           silc_schedule_internal_signal_[un]register.
4207
4208           Added new functions to SILC Schedule API:
4209           silc_schedule_signal_[un]register.  Each signal that application
4210           is going to use should be registered to the scheduler.
4211
4212           Affected files are lib/silcutil/silcschedule.[ch],
4213           lib/silcutil/*/silc*schedule.c.
4214
4215 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4216
4217         * Check for unauthenticated client and server in the
4218           silc_server_new_client and silc_server_new_server functions.
4219           Affected file silcd/packet_receive.c.
4220
4221         * Added function silc_string_is_ascii to check whether given
4222           string is 7-bit ASCII string.  Affected files are
4223           lib/silcutil/silcutil.[ch].
4224
4225         * Added function silc_id_is_valid_server_id into the
4226           silcd/serverid.c and added checking for valid Server ID's in
4227           silc_server_new_server.  The Server ID must always be based
4228           on the server's public IP address.
4229
4230         * Added logging of DISCONNECT packet message in the server.
4231           Affected file silcd/server.c.
4232
4233 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4234
4235         * Changed all library interfaces that use Global RNG to also
4236           accept SilcRng as argument.  Affected files are
4237           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4238           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4239           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4240           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4241           lib/silccrypt/rsa.c.
4242
4243         * Added function silc_pkcs_generate_key to the
4244           lib/silccrypt/silcpkcs.[ch] for applications so that they
4245           don't need to do pkcs->pkcs->init calls anymore.
4246
4247         * Remove SilcSocketConnection from the SFTP API since it really
4248           wasn't needed there.  The application has the information
4249           saved in its contexts anyway and the SFTP layer doesn't need
4250           know about it.  Affected files lib/silcsft/silcsftp.h and
4251           lib/silcsftp/sftp_[server/client].c.
4252
4253         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
4254           The SilcSimContext is not SilcSim.
4255
4256         * Fixed possible buffer overflows in silc_id_render in the
4257           lib/silcutil/silcutil.c.
4258
4259         * On EPOC the global crypto module lists are not used at all
4260           in the crypto library.  Added support for using the constant
4261           algorithm list on EPOC.  Affected files are
4262           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
4263           silcpkcs.c.
4264
4265         * Fixed the handling of third parameter of KICKED notify, since
4266           it was mistakenly updated to SILC Protocol 1.0 even though it
4267           is to be included in 1.1.  Since it is not in 1.0 it is not
4268           mandatory, and this fix now handles it only if it is provided,
4269           and it is not error if it is not provided.  Affected file
4270           lib/silcclient/client_notify.c.
4271
4272 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4273
4274         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
4275           client.  Affected file irssi/src/silc/core/client_ops.c.
4276
4277         * Merged with Irssi 0.8.4 from irssi.org CVS.
4278
4279 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4280
4281         * Check for valid socket connection in client entries before
4282           sending any messages.  Fixes a crash, but doesn't fix some
4283           other underlaying bug that is lurking there.  Affected
4284           file silcd/packet_send.c.
4285
4286 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
4287
4288         * $usermode, $cumode and $cumode_space expandos shouldn't do
4289           anything with non-SILC server records. Affected file
4290           irssi/src/silc/core/silc-expandos.c
4291
4292 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4293
4294         * Fixed the silc_net_check_[host/local]_by_sock to support
4295           IPv6 bound sockets as well.  Now they can return IPv6 addresses
4296           as well.  Affected file lib/silcutil/silcnet.c.
4297
4298         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
4299           Affected lib/silcutil/unix/silcunixnet.c.
4300
4301         * Fixed ID rendering (at least on some platforms, not NetBSD)
4302           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
4303
4304 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4305
4306         * Added silc_hash_public_key and silc_hash_public_key_compare
4307           functions to be used with SilcHashTable.  They can be used to
4308           hash public keys and compare public keys in hash table.  Affected
4309           file lib/silcutil/silcutil.[ch].
4310
4311         * Added support for specifying multiple public keys for Client
4312           connection section in server configuration file.  This makes it
4313           possible to accept multiple public keys from same host, or to
4314           make a section that accepts any incoming host, and have the
4315           accepted public keys listed in the section.
4316
4317           Added functions silc_sever_[find/get]_public_key,  added the
4318           support for this actually to all connection sections but only
4319           the Client section is currently allowed to specify multiple
4320           public keys.
4321
4322           Affected files are silcd/server.c, server_internal.h,
4323           command.c, protocol.c, server_util.[ch], packet_receive.c.
4324
4325 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4326
4327         * Merged Irssi 0.8.2 from irssi.org CVS.
4328
4329 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4330
4331         * If silc_debug is TRUE, also output standard logging messages
4332           to stderr with the debug output.
4333
4334           Made silc_log_reset_all() flushing all channels before returning.
4335           Also fixed some documentation typos.
4336
4337           Affected files are lib/silcutil/silclog.[ch].
4338
4339 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4340
4341         * Fixed the server to check correctly the amount of connections
4342           from single host, by checking also the type of the connection.
4343           Fixed also the comparison of number of connections and number
4344           of allowed connections.  Affected files are silcd/server.c,
4345           server_util.[ch].
4346
4347 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4348
4349         * Fixed the USERS command reply to save the user's mode on the
4350           channel as well.  Fixed JOIN command reply to check whether a
4351           client is on channel already and not join it twice.  Affected
4352           file lib/silcclient/command_reply.c.
4353
4354         * Added new file silc-expandos.c into irssi/silc/core/ to return
4355           various stuff for various signal for the statusbar etc. updating.
4356           Now Irssi SILC client prints channel user modes etc. on the
4357           statusbar.
4358
4359         * The user mode (like server/router operator changes) is now shown
4360           on the Irssi SILC client's statusbar.  The affected files are
4361           irssi/src/silc/core/client_ops.c, silc-expandos.c.
4362
4363 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4364
4365         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
4366           to SILC_SCHEDULE_[UN]LOCK macros.
4367
4368         * Added more error printing to logs in server code.  Affected
4369           files silcd/server.c and silcd/protocol.c.
4370
4371         * Fixed -S option parsing in Irssi SILC Client.  Affected file
4372           irssi/src/silc/core/silc-core.c.
4373
4374         * Added silc_buffer_alloc_size function.  Affected file is
4375           lib/silcutil/silcbuffer.h.
4376
4377 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4378
4379         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
4380           constants.  Affected files in
4381           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
4382           silccipher.[ch].
4383
4384         * Changed the internal SFTP Memory FS table to const.  Affected
4385           file lib/silcsftp/sftp_fs_memory.c.
4386
4387 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4388
4389         * Fixed the buffer formatting and unformatting routines to
4390           check the size of 64 bits types with sizeof().  Affected
4391           file is lib/silcutil/silcbuffmt.c.
4392
4393 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4394
4395         * Removed 0.6.x backwards support.
4396
4397 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4398
4399         * Changed all integer type names:
4400           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
4401           to avoid collisions with other libraries using same type names
4402           as we did.
4403
4404 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4405
4406         * Added `prefer_ipv6' argument to the functions
4407           silc_net_gethostbyname[_async].  If it is TRUE it will return
4408           IPv6 address over IPv4.  If FALSE IPv4 address is returned
4409           even if IPv6 address was found.  Affected files
4410           lib/silcutil/silcnet.[ch].
4411
4412         * Added support silc_net_create_connection[_async] to fallback
4413           to IPv4 address if IPv6 address could not be used (like if
4414           it doesn't work on a specific system).  Affected file in
4415           lib/silcutil/unix/silcunixnet.c.
4416
4417 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4418
4419         * Added silc_schedule_reinit function to do the enlarging
4420           of the max tasks handling capabilities of the scheduler.
4421           Affected files lib/silcutil/silcschedule.[ch].
4422
4423 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4424
4425         * Added automatic extern "C" { ... } for C++ compilers so the
4426           application does not need to define them.  Affected file
4427           includes/silcincludes.h.
4428
4429         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
4430           old name went against naming convention.  Applications now
4431           include "silcclient.h" instead of "clientlibincludes.h".
4432           Removed includes/clientlibincludes.h, it is redundant now.
4433
4434         * Renamed includes/version.h to silcversion.h.
4435
4436         * Added really preliminary support for OS/2 into the util
4437           library.  Only thread & mutex API is implemented, others
4438           are still to be implemented.  Created the lib/silcutil/os2/
4439           directory.  Created also file includes/silcos2.h.
4440
4441 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4442
4443         * Added preliminary BeOS support into the util library.
4444           Created lib/silcutil/beos/, and implemented all the needed
4445           functions to support SILC on BeOS.  Created also file
4446           includes/silcbeos.h.
4447
4448 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
4449
4450         * Added proper initializations to silc's irssi code, so it's
4451           now possible to load it as module.  Affected files
4452           irssi/src/silc/core/silc-core.c,
4453           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
4454
4455 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4456
4457         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
4458           the SILC tree.
4459
4460         * Fixed the silcdoc document generator to correct generate
4461           docs from all kinds of filenames.  Affected files are
4462           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
4463
4464         * ROBOdoc documented lib/silcutil/silcmemory.h.
4465           Added also new function silc_memdup.
4466
4467         * Removed lib/silcutil/silcbufutil.h and moved those routines
4468           to the lib/silcutil/silcbuffer.h.
4469
4470 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4471
4472         * Added `user_count' to the SilcChannelEntry which now tells the
4473           number of users on the channel.  The user count is now saved
4474           in normal server of global channels as well.  Affected files
4475           silcd/server.c, idlist.h, packet_receive.c and command.c.
4476
4477         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
4478           include file utility functions.
4479
4480         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
4481           instead of calling directly OS routines.
4482
4483         * Fixed NICK change printing in Irssi SILC Client. Fixed
4484           KICKED notify printing in Irssi SILC Client.  Affected file
4485           irssi/src/silc/core/client_ops.c.
4486
4487         * Fixed a NICK change bug in client library, to not recreate the
4488           client_entry->channels hash table everytime nick is changed.
4489           Affected file lib/silcclient/client.c.
4490
4491 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4492
4493         * ROBOdoc documented the lib/silcske/silcske.h, and improved
4494           the SKE interface a bit.
4495
4496         * Fixed padding problem in PKCS#1. The padding was not actually
4497           random since the random number generator was used incorrectly.
4498           This security bug affects only when encrypting with PKCS#1, and
4499           it is not currently used at all in SILC. SILC only use signing
4500           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
4501
4502 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4503
4504         * Rewrote the notify handling in Irssi SILC client to not call
4505           the events as signals.  Fixes problems with Perl support.
4506           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
4507
4508         * Send the auto-nicking NICK command in client library with
4509           little timeout after connecting.  The affected file is
4510           lib/silcclient/client.c.
4511
4512         * Added following new config file settings:
4513           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
4514           key_exchange_timeout, conn_auth_timeout, connections_max,
4515           links_max.
4516
4517           Implemented all the new config settings handling in the server.
4518
4519           Optimized the use of SKE Mutual flag usage.  Use it only
4520           if connection authentication protocol is not based in public
4521           key authentication.
4522
4523           Renamed all SilcServerConfigSection* to SilcServerConfig*
4524           to have a bit shorter names.
4525
4526           Affected files silcd/serverconfig.[ch], server.[ch], and
4527           protocol.[ch].
4528
4529 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4530
4531         * Cleaned up the listening sockets code, preparing for the rehash
4532           support.  Affected file is silcd/server.c.
4533
4534         * Fixed some output messages.  Affected files are silcd/silcd.c,
4535           and silcd/server.c.
4536
4537 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4538
4539         * Create lib/doc/silcrng_intro.html document as introduction
4540           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
4541
4542 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4543
4544         * Fixes to the silcd config template.  Affected file is
4545           doc/example_silcd.conf.in.
4546
4547         * Removed type casts from silc_calloc(), conforming to the
4548           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
4549
4550         * Removed param_name member from client, server, and router
4551           section structs, now identifying the param directly.
4552
4553           Added CONFIG_FREE_AUTH macro in config file parsing.
4554
4555           Affected files are silcd/serverconfig.[ch].
4556
4557 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
4558
4559         * Fixed command line parameter handling. All SILC initialization
4560           is now done in silc_core_init() which also fixes autoconnecting
4561           to servers.
4562
4563           Affected files irssi/src/silc/core/silc-core.c,
4564           irssi/src/fe-text/silc.c.
4565
4566 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4567
4568         * Added new configuration options and blocks:
4569           keepalive_secs, reconnect_count, reconnect_interval,
4570           reconnect_interval_max, reconnect_keep_trying and
4571           require_reverser_lookup.  Added ConnectionParam block, and
4572           implemented the connection parameters when connecting as
4573           initiator and when accepting connections as responder.
4574
4575           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
4576           whether given configuration value has been given already.
4577
4578           Affected files silcd/serverconfig.[c], server.[c].
4579
4580         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
4581           algorithm parts and created new file silcalgs.conf, that
4582           is now included from the example_silcd.conf.in.
4583
4584         * Optimized the silc_server_connect_to_router_second to take
4585           the connection configuration object from the SilcServerConnection
4586           object instead of finding it during the connecting phase.
4587           Added the configuration object to SilcServerConnection struct.
4588           Affected files silcd/server_internal.h, server.c.
4589
4590 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4591
4592         * Add the client on channel after it was resolved at the
4593           channel message receiving, and it was not already on the
4594           channel.  Affected file lib/silcclient/client_channel.c.
4595
4596 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4597
4598         * Fixed the public key authentication to allocate always the
4599           destination signature buffer instead of using static buffer.
4600           Affected file silcd/protocol.c.
4601
4602 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4603
4604         * Unified the serverconfig.[ch]'s helper function interface.
4605           Affected file silcd/serverconfig.[ch].
4606
4607         * Removed doc/example_silc.conf.in since it is redundant.
4608           The make install will now install irssi/silc.conf file.
4609
4610         * Added new Passphrase and Publickey authentication methods to
4611           config file, allowing both public key and passphrase based
4612           authentication to be set at the same time.
4613
4614           Added `prefer_passphrase_auth' setting in config file which
4615           can be used to set to prefer passwd auth if both passwd and
4616           public key is set.  If not set, public key is preferred.
4617           This has effect only when being initiator (responder will try
4618           both anyway).
4619
4620           Added support for authentication with passphrase and public key
4621           at the same time.  The passphrase is tried first always since
4622           it is faster to check.
4623
4624           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
4625
4626 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4627
4628         * Merged the new SILC Config library, with the server parsing
4629           support.  Read the header file silcconfig.h or the toolkit
4630           documentation for the news.  Affected files are
4631           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
4632           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
4633           silcd/protocol.c silcd/server.c silcd/server_backup.c
4634           silcd/serverconfig.[ch] silcd/silcd.c.
4635
4636         * Fixed some silclog documentation.  Affected file is
4637           lib/silcutil/silclog.h.
4638
4639 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4640
4641         * The silc_cipher_register, silc_hash_register and
4642           silc_hmac_register now checks if the object to be registered
4643           is registered already.  Affected files are
4644           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
4645
4646 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4647
4648         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
4649
4650 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4651
4652         * Allow zero length channel messages inside the Channel Message
4653           Payload.  Affected file lib/silccore/silcchannel.c.
4654
4655         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
4656           as header filenames.
4657
4658         * Removed lib/silcclient/README and created HTML file
4659           lib/silcclient/silcclient_using.html, which is now included
4660           as part of Toolkit documentation.
4661
4662 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4663
4664         * Fixed CUMODE_CHANGE notify handling to change the mode of
4665           correct client.  Affected file lib/silcclient/client_notify.c.
4666
4667         * Make silc_rng_alloc fail if it cannot allocate the sha1
4668           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
4669
4670 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4671
4672         * Fixed the file transfer's key agreement payload to include
4673           zero port also if the hostname is NULL because it could not
4674           be bound.
4675
4676           Call file transfer monitor callback now also if error occurs
4677           during key agreement protocol.
4678
4679           Changed the silc_client_file_send interface to return the
4680           SilcClientFileError instead of session id.  The session ID
4681           is returned into pointer provided as argument.
4682
4683           Check that the file exists locally before sending the
4684           file transfer request at all.
4685
4686           Affected file lib/silcclient/client_ftp.c, silcapi.h.
4687
4688         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
4689           error than can occur while key agreement protocol.  Affected
4690           file lib/silcclient/silcapi.h.
4691
4692         * Fixed the event_mode CMODE handler to not crash when mode
4693           is changed and +k mode is set in the channel.  Affected file
4694           irssi/src/silc/core/silc-channels.c.
4695
4696         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
4697           SILC_LOG_WARNING to give out Warning and not Error.  Affected
4698           file lib/silcutil/silclog.c.
4699
4700         * Fixed the channel message payload decryption in the function
4701           silc_channel_message_payload_decrypt to not modify the original
4702           buffer before it is verified that the message decrypted
4703           correctly.  Otherwise, next time it is called with correct
4704           channel key it won't encrypt since the payload is corrupted.
4705           Affected file lib/silccore/silcchannel.c.
4706
4707 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4708
4709         * Do not constantly resize the window.  A fix patch by cras.
4710           Affected file irssi/src/fe-text/screen.c.
4711
4712 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4713
4714         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
4715           Affected file lib/silcutil/silcnet.c.
4716
4717 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4718
4719         * Fixed a bug in hash table internal routine for traversing
4720           the table with foreach callback.  The current entry may
4721           become invalid in the callback but it was referenced after
4722           the callback returned.
4723
4724           Do not allow auto rehashing of hash table during the
4725           silc_hash_table_foreach operation, for same reasons as it is
4726           not allowed for SilcHashTableList.  Affected files are
4727           lib/silcutil/silchashtable.[ch].
4728
4729 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4730
4731         * Defined DLLAPI into silcincludes.h and silcwin32.h for
4732           Win32 DLL.  extern's in header files are now declared with
4733           DLLAPI.
4734
4735 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4736
4737         * Fixed private message handling.  It used some old code that
4738           caused the client to crash.  Affecte file is
4739           lib/silcclient/client_prvmsg.c.
4740
4741 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4742
4743         * Added function silc_client_add_channel,
4744           silc_client_replace_channel_id, and removed functions
4745           silc_client_new_channel_id and silc_idlist_get_channel_by_id
4746           from client library.
4747
4748         * Added cross reference of the joined channels to the
4749           SilcClientEntry, and changed the SilcChannelEntry's
4750           users list to SilcHashTable.  The affected files are
4751           lib/silcclient/idlist.[ch].
4752
4753         * Fixed a bug in hash table tarversing.  While the hash table
4754           is traversed with SilcHashTableList the table must not be
4755           rehashed.  It is now guaranteed that auto rehashable tables
4756           are not rehashed while tarversing the list.  Also defined that
4757           silc_hash_table_rehash must not be called while tarversing
4758           the table.  Added function silc_hash_table_list_reset that must
4759           be called after the tarversing is over.  The affected files are
4760           lib/silcutil/silchashtable.[ch].
4761
4762         * Changed all hash table traversing to call the new
4763           silc_hash_table_list_reset in server and in client library.
4764
4765         * Added function silc_client_on_channel to return the
4766           SilcChannelUser entry if the specified client entry is joined
4767           on the specified channel.  This is exported to application as
4768           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
4769
4770 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4771
4772         * Fixed founder regaining problem with JOIN command on normal
4773           server.  The notify for mode change must be sent always and
4774           not only if !cmd->pending.  Affected file silcd/command.c.
4775
4776         * Fixed the WHOWAS command's reply sending to support the
4777           lists correctly.  Affected file silcd/command.c.
4778
4779 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4780
4781         * When sending JOIN command to router for processing the
4782           sender's old command identifier was not saved back to the
4783           sender's command context, fixed now.  The affected file is
4784           silcd/command.c.
4785
4786         * Create the key in JOIN command of the router did not return
4787           the channel key, added check for this.  Affected file is
4788           silcd/command.c.
4789
4790         * Fixed a channel ID update bug in JOIN command reply.  Do
4791           not directly upgrade the ID but call the function
4792           silc_idlist_replace_channel_id if the ID was changed.
4793           Affected file silcd/command_reply.c.
4794
4795         * Fixed memory leaks from command calling if it would fail.
4796           Affected file silcd/command.c.
4797
4798 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4799
4800         * Applied patches from cras:
4801
4802           Memory leak fixes around libaries, irssi window resize fix,
4803           new silclist.h and silcdlist.h, all extern inline changed to
4804           static inline.
4805
4806         * Removed dotconf from lib/dotconf, not needed anymore.
4807
4808         * Removed TRQ from lib/trq, not needed anymore.
4809
4810         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
4811           with server connections.  Later this will be configurable
4812           in config file after new config file is done.  Affected file
4813           silcd/server.c.
4814
4815 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4816
4817         * Fixed a crash in server related to channel announcements.
4818           Affected file silcd/server.c.
4819
4820 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4821
4822         * Fixed memory leaks in silc_server_create_new_channel*
4823           functions.  Affected file silcd/server.c.
4824
4825         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
4826           which ID was changed.  This way the router will send the
4827           user list for the channel again, and server won't be in
4828           desync in some rare circumstances.  Affected file is
4829           silcd/packet_receive.c.
4830
4831 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4832
4833         * Check for NULL socket pointer in the function
4834           silc_server_packet_send_to_channel_real.  Affected file
4835           silcd/packet_send.c.
4836
4837         * Fixed the BAN notify handling to correctly remove ban
4838           list.  Affected file silcd/packet_receive.c.
4839
4840 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4841
4842         * Fixed some header addition to Toolkit distribution in
4843           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
4844
4845         * Added lib/silcclient/client_ops_example.h as an template
4846           file for application programmers to quickly start using
4847           the SilcClientOperation functions in their application.
4848           Updated the lib/silcclient/README as well to tell about this
4849           nice file made available.
4850
4851 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4852
4853         * Call silc_server_remove_from_channels when removing client
4854           entry when NO_SUCH_CLIENT_ID was received.  Affected file
4855           is silcd/command_reply.c.
4856
4857 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4858
4859         * Added server & router operator statistics updating.  Affected
4860           file silcd/packet_receive.c and silcd/command.c.
4861
4862         * Fixed the SERVER_SIGNOFF notify handling on normal server
4863           not to save the history information for clients.  Same was
4864           fixed earlier in remove_clients_by_server function, but not
4865           here.  Affected file silcd/packet_receive.c.
4866
4867         * Raised the default connection-retry count from 4 to 7 in
4868           server.  Affected file silcd/server.h.
4869
4870         * Cancel any possible reconnect timeouts when we start the
4871           key exchange.  Affected file silcd/server.c.
4872
4873         * Do not reconnect on connection failure when SCONNECT was
4874           given.  Affected files silcd/server.[ch].
4875
4876 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4877
4878         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
4879
4880         * Fixed the NICK command to always give the unformatted
4881           nickname to the one giving the NICK command.  If unformatted
4882           nickname is cached already it will be formatted and the
4883           local entry will always get the unformatted nickname.
4884           Affected file lib/silcclient/idlist.c.
4885
4886         * Fixed some double frees from client library commands.
4887           Affected file is lib/silcclient/command.c.
4888
4889         * Fixed CUMODE command in server to assure that no one can
4890           change founder's mode than the founder itself, there was a
4891           little bug.  Affected file silcd/command.c.
4892
4893 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4894
4895         * Removed the SilcClientCommandDestructor from the client
4896           libary, it is not needed anymore.  Affected files are
4897           lib/silcclient/silcapi.h, command[_reply].[ch],
4898           client_notify, idlist.c.
4899
4900         * Fixed GETKEY command to first resolve client, and then
4901           resolve the server only if the client was not found, instead
4902           of resolving both at the same time.  Affected file is
4903           lib/silcclient/command.c.
4904
4905         * Added silc_client_start_key_exchange_cb and lookup the
4906           remote hostname and IP address before starting the key
4907           exchange with server.  The affected file is
4908           lib/silcclient/client.c.
4909
4910         * The server's public key is now saved using the IP address
4911           of the server and not the servername for the filename.
4912           The hostname public key filename is checked as an fall back
4913           method if the IP address based filename is not found.
4914
4915           Fixed the GETKEY command to save the fetched server key
4916           in correct filename.
4917
4918           Print the remote server's hostname now when new key is
4919           received during connection process.  Affected file is
4920           irssi/src/silc/core/client_ops.c.
4921
4922         * Return always our own public key to the client if it asks
4923           for it with GETKEY command.  Affected file silcd/command.c.
4924
4925         * Removed the use_auto_addr variable from default config
4926           file since it was in wrong section.  Affected file is
4927           irssi/src/config.
4928
4929         * Fixed TOPIC_CHANGE notification to not route it when it
4930           was sent using silc_server_send_notify_to_channel function.
4931           Affected file silcd/command.c.
4932
4933         * Fixed silc_server_send_notify_kicked to send the kicker's
4934           Client ID also, it was missing.  Affected files are
4935           silcd/command.c, silcd/packet_send.[ch].
4936
4937 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4938
4939         * Do not save client history information in SERVER_SIGNOFF.
4940           Fixes the bug in normal server that it does not detect
4941           the client becoming valid after the server becomes back
4942           online.  Affected file silcd/server_util.c.
4943
4944         * Added `sock_error' field  into the SilcSocketConnection
4945           context.  When error occurs during socket operation (read
4946           or write) the error is saved.  Added also new function
4947           silc_socket_get_error to return human readable socket error
4948           message.  Affected files are lib/silcutil/silcsockconn.[ch],
4949           lib/silcutil/unix/silcunixsockconn.c, and
4950           lib/silcutil/win32/silcwin32sockconn.c.
4951
4952         * The server now prints the socket error message in the
4953           signoff for client.  Affected file silcd/server.c.
4954
4955         * Fixed the `created' channel information sending from router
4956           to server in JOIN command.  Checks now whether the channel
4957           really was created or not and set it according that.
4958
4959           Fixed the JOIN command to use the client entry's current
4960           ID during the joining procedure instead of the one it sent
4961           in the command (it is checked though), since it can change
4962           between the packet processing and command processing, and
4963           would just case unnecessary pain in the client end.  Affected
4964           file silcd/command.c.
4965
4966         * Fixed a channel key payload sending to use correct channel
4967           ID when the server was forced to change the channel's ID by
4968           router.  Router sent the key payload with the old Channel ID.
4969           Affected file silcd/packet_receive.c.
4970
4971 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4972
4973         * Call silc_server_save_channel_key only if the key payload
4974           was provided in the JOIN command's command reply.  Affected
4975           file silcd/command_reply.c.
4976
4977 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4978
4979         * Fixed silc_mp_sizeinbase to return the value correctly with
4980           MPI.  Affected file lib/silcmath/mp_mpi.c.
4981
4982         * Fixed the stop_server signal to correctly stop the scheduler
4983           and gracefully stop the server when SIGTERM or SIGINT signals
4984           are received.  Affected file silcd/silcd.c.
4985
4986 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4987
4988         * Simple handling of TERM and HUP signals. Also added some log
4989           flushing call around.  Affected file is
4990           silcd/silcd.c.
4991
4992         * Fixed small bugs in silclog.c. Now buffering output will take
4993           effect after 10 seconds since startup: This will ensure that
4994           no important startup messages are lost. Also output redirection
4995           will preserve original format ([Date] [Type] message).
4996           Affected file is lib/silcutil/silclog.c.
4997
4998         * Added two options to the config file, in the logging section:
4999           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
5000           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
5001
5002 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5003
5004         * Do not print the warning about log files not being initialized
5005           more than once to avoid excess logging.  Affected file is
5006           lib/silcutil/silclog.c.
5007
5008         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5009           the SIM copying in make install in Makefile.am.pre.
5010
5011 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5012
5013         * Rewritten silclog APIs. Globally interesting changes follows:
5014           silc_log_set_files() changed to silc_log_set_file().
5015           silc_log_set_callbacks() changed to silc_log_set_callback().
5016           ROBOdoc documented silclog header file.
5017           SilcLogCb now returns bool to wether inihibit the default
5018           handler or not (to keep the old behaviour return always TRUE).
5019           The new APIs should also fix the problem of the
5020           silcd_error.log file that was written in the current directory.
5021
5022           New features:
5023           Log files streams will remain opened after silc_log_set_file()
5024           call, means less CPU usage notably on high traffic servers.
5025           File streams are now full buffered, and flushed to the disk
5026           every 5 minutes, lesses HD activity and CPU usage.
5027           Messages can be redirected, allowing admins to configure
5028           one single logfile for all server messages.
5029           the silc_log_quick global variable to activate fast-logging.
5030           Affected files lib/silcutil/silclog.[ch]
5031
5032         * Changed some code to conform new silclog APIs. Affected
5033           files are doc/example_silcd.conf.in, silcd/server.c
5034           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5035           silcd/silcd.c.
5036
5037         * Fixed a memory leak that could occur in some situations.
5038           Affected file silcd/serverconfig.c.
5039
5040 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5041
5042         * Added the silc_client_del_client to remove the client from
5043           all channels as well.  Affected file lib/silcclient/idlist.c.
5044
5045         * Fixed the client library to correctly remove the client
5046           from all channels when the client entry is being destroyed.
5047           Affected file lib/silcclient/client_notify.c, command.c.
5048
5049         * Added auto-nicking support to the client library.  If the
5050           applicatio now sets client->nickname it will be sent to the
5051           server after connecting by the library.  This way for example
5052           SILCNICK (or IRCNICK) environment variables will have effect
5053           and always change the nickname automatically to whatever
5054           it is wanted.  Affected file lib/silcclient/client.[ch].
5055
5056         * Renamed silc_server_command_bad_chars to the
5057           silc_server_name_bad_chars and moved it to the
5058           silcd/server_util.[ch].  Added also new function
5059           silc_server_name_modify_bad to return nickname that
5060           includes bad characters as new nickname without those
5061           bad characters.  This check and modify is now used in
5062           silc_server_new_client when the username is initially set
5063           as nickname, so it must be checked to be valid nickname.
5064           Affected file silcd/packet_receive.c.
5065
5066         * The nickname length is now taken from the packet for real
5067           and not trusted to strlen() since it clearly can return
5068           wrong length for nickname including bad characters.  This
5069           also applies to channel names.  Affected file silcd/command.c.
5070
5071         * Removed the lib/silcsilm/modules directory.  Modules are now
5072           compiled into the lib/silcsim.  Fixed the copying of the
5073           modules to follow symbolic links in Makefile.am.pre.
5074
5075 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5076
5077         * Fixed silc_string_regexify list creation.  Fixes bugs with
5078           BAN and INVITE commands in server.  The affected file is
5079           lib/silcutil/unix/silcunixutil.c.
5080
5081 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5082
5083         * Removed the command destructor entirely from the server's
5084           command and command reply routines.  It is not needed, and
5085           its usage was buggy and caused crashes.  Affected files are
5086           silcd/command[_reply].[ch].
5087
5088 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5089
5090         * Cancel protocol and NULL sock->protocol if timeout
5091           occurred during protocol.  Affected file silcd/server.c.
5092
5093         * Cancel protocol timeouts always before calling the final
5094           callback, to assure that after final callback is called
5095           no other state will be called for the protocol anymore.
5096           Affected file silcd/protocol.c.
5097
5098         * Print error log if incoming connection configuration could
5099           not be found.  Affected file silcd/server.c.
5100
5101         * Fixed JOIN command to correctly save the founder mode
5102           to the client on normal SILC server, when the channel
5103           was created by the router.  Affected file silcd/command.c.
5104
5105         * Fixed LIST command (hopefully) to send correct reply
5106           packets.  Affected file silcd/command.c.
5107
5108 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5109
5110         * The silc_packet_receive_process now returns FALSE if the
5111           read data was invalid packet, and TRUE if it was ok.
5112
5113           The server now checks that if unauthenticated connection
5114           sends data and its processing fails the server will close
5115           the connection since it could be a malicious flooder.
5116
5117           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5118
5119 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5120
5121         * Make sure the warning about error opening a log file is
5122           printed only once and not everytime it fails (produces
5123           too much useless log).  Affected file lib/silcutil/silclog.c.
5124
5125 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5126
5127         * Made the silc_server_daemonise() function more readable.
5128           Affected file silcd/server.c.
5129
5130         * Pid file is now optional, the user may comment it out from
5131           the config file. Removed define SILC_SERVER_PID_FILE, we
5132           don't need a default any longer.  Affected file
5133           configure.in.pre, lib/Makefile.am.pre.
5134
5135         * Make some use of the pid file. The server now dies at startup
5136           if it detects a valid pid file on his path. The server would
5137           die anyway in this circumstance, because of the bind() failure.
5138           Affected file silcd/silcd.c.
5139
5140         * No longer compiling lib/dotconf.
5141
5142 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5143
5144         * Fixed JOIN command parsing not to crash.  Affected file
5145           lib/silcclient/command.c.
5146
5147         * Fied the NICK_CHANGE notify to add the new client entry
5148           even it is resolved.  This removes an <[unknown]> nick
5149           thingy bug in the client.  Affected file is
5150           lib/silcclient/client_notify.c.
5151
5152         * Do not try to allocate 0 bytes (efence does not like it)
5153           in lib/silccore/silccomand.c when encoding payload.
5154
5155         * Do not take IRCNICK as nickname in Irssi SILC client since
5156           it is not possible to set nickname before hand connecting
5157           the server (TODO has an entry about adding auto-nicking
5158           support).
5159
5160         * Changed the silc_server_command_pending to check whether
5161           there already exists an pending entry with the specified
5162           command, command identifier and pending callback.  This is
5163           to fix IDENTIFY and WHOIS related crashes that may register
5164           multiple pending commands with same identifier.  Affected
5165           file silcd/command.c.
5166
5167         * Fixed the server to reconnect to the router even if it
5168           was already reconnecting and EOF was received.  This to
5169           fix a possibility that the server wouldn't ever try to
5170           auto-reconnect to the router.  Affected file silcd/server.c.
5171
5172 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5173
5174         * Fixed the server's password authentication to use the
5175           length of the locally saved password, and not the one
5176           sent in the packet.  Affected file silcd/protocol.c.
5177
5178         * Fixed same password authentication problem in the
5179           Authentication Payload handling routines in
5180           lib/silccore/silcauth.c.
5181
5182         * Yet another password authentication problem fixed with
5183           channel password handling in silcd/command.c.
5184
5185 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5186
5187         * If first character of string in silc_parse_userfqdn is '@'
5188           then do not parse it.  Affected file is
5189           lib/silcutil/silcutil.c.
5190
5191 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5192
5193         * Fixed minor bug in IDENTIFY command reply sending, which
5194           caused various weird problems during JOIN when it was
5195           resolving names for users.  Affected file silcd/command.c.
5196
5197 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5198
5199         * Fixed the IDENTIFY command reply sending to chech better valid
5200           clients.  It was possible to send incomplete list of replies.
5201           Affected file silcd/command.c.
5202
5203 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5204
5205         * Added silc_client_command[s]_[un]register functions now to
5206           dynamically register the commands in client library.  Removed
5207           the static table of commands.  This allows the client library
5208           to call commands without causing the application to know about
5209           what commands library has called.
5210
5211           Removed the INFO command reply kludge to detect when the command
5212           was called by library.  Now library use its own command reply
5213           function for INFO command.
5214
5215           Added function silc_client_command_call to call a command.
5216           Application can use it to call command, not access the structure
5217           directly.
5218
5219           Now all commands that are sent by the client library (not
5220           explicitly sent by application) use own command reply functions.
5221
5222           Affected files around lib/silcclient/ and in
5223           irssi/src/silc/core/.
5224
5225         * Fixed the WHOIS command reply sending to chech better valid
5226           clients.  It was possible to send incomplete list of replies.
5227
5228           Fixed the WHOIS and IDENTIFY to send the request to router
5229           if normal server did not do it and did not find any results.
5230
5231           Affected file silcd/command.c.
5232
5233 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5234
5235         * Moved the internal data from SilcClient context into its
5236           own file, not accesible to application.  Affected files
5237           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5238           and other files in client library.
5239
5240 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5241
5242         * Added doc/examples installation target in Makefile.am.pre.
5243           A patch by salo.
5244
5245 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5246
5247         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
5248           commands the found client entry will be removed from the
5249           cache, after notifying application about the error.  Affected
5250           file lib/silcclient/command_reply.c.
5251
5252         * Changed the /MSG to check for exact nickname user gave, and
5253           not let `nick' match `nick@host' if it is only one found.  Now,
5254           user must type the exact nickname (like nick@host2) even if
5255           there are no more than one same nicks found.  This is to avoid
5256           a possibility of sending nickname to wrong nickname since
5257           `nick' could match `nick@host'.  Affected file is
5258           irssi/src/core/silc-servers.c.
5259
5260 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5261
5262         * Do not print "you are now server operator" or similar when
5263           giving /away command.  Affected files are
5264           irssi/src/silc/core/client_ops.c, silc-servers.h.
5265
5266         * Made the silc_server_command_pending_error_check to send
5267           the same command reply payload it received back to the
5268           original sender of the command.  This way all arguments
5269           that was received by the server will be received by the
5270           client too.  Affected file silcd/command.c.
5271
5272         * Added the silc_idcache_add to return the created cache entry
5273           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
5274
5275         * Add global clients to expire if they are not on any channel.
5276           This is because normal server will never know if they signoff
5277           if they are not on any channel.  The cache expiry will take
5278           case of these entries.  This is done by normal servers only.
5279           The affected files are silcd/command_reply.c,
5280           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
5281
5282         * If server receives invalid ID notification for WHOIS or
5283           IDENTIFY and the ID exists in the lists, it is removed.
5284           Affected file silcd/command_reply.c.
5285
5286         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
5287           in client then client entry that it matches is searched and
5288           the nickname is printed on the screen for user.  Affected
5289           file irssi/src/silc/core/client_ops.c.
5290
5291 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5292
5293         * Use cache entry expire time in the LIST command reply to
5294           purge old entries from the cache after the LIST command
5295           reply has been received.  This way we don't have non-existent
5296           entries in the cache for too long.  Affected file is
5297           silcd/command_reply.c.
5298
5299 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5300
5301         * If we are normal server, and we've not resolved client info
5302           in WHOIS or IDENTIFY from router, and it is global client,
5303           we'll check whether it is on some channel.  If it is not
5304           then we cannot be sure about its validity and will resolve it
5305           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
5306           file silcd/command.c.
5307
5308         * Search channel by name (if possible) rather than by ID
5309           in IDENTIFY command's command reply.  Affected file is
5310           silcd/command_reply.c.
5311
5312 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5313
5314         * Distribute to the channel passphrase in CMODE_CHANGE notify.
5315           Updated specs and implemented it.  Affected file silcd/command.c,
5316           silcd/packet_send.c and silcd/packet_receive.c.
5317
5318         * Implemented the <founder auth> payload handling in the JOIN
5319           command.  If provided all conditions for channel joining
5320           except requirement to provide correct passphrase can be
5321           overrided by the channel founder.  Updated the protocol specs.
5322           Affected file silcd/command.c.
5323
5324           Added support for founder auth in JOIN command in client
5325           library.  Fixed the parsing of the JOIN command now to support
5326           all options as they should be.  The affected file is
5327           lib/silcclient/command.c.
5328
5329         * Optimized the WHOIS and IDENTIFY commands to send the request
5330           to router only if it includes nicknames or other names.  If
5331           they include only IDs then check the local cache first before
5332           routing.  Affected file is silcd/command.c.
5333
5334         * Added channels topic announcements.  Affected file is
5335           silcd/packet_receive.c and silcd/server.c.
5336
5337         * Fixed the silc_server_send_notify_topic_set to really destine
5338           the packet to channel.  Affected file silcd/packet_send.c.
5339
5340         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
5341           library.  Affected file lib/silcclient/client_notify.c.
5342
5343         * Added UMODE announcements.  Affected file silcd/server.c.
5344
5345 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5346
5347         * Memory leak fixes in:
5348
5349           lib/silcutil/silcsockconn.c
5350           lib/silcske/silcske.c
5351           lib/silcske/groups.c
5352           lib/silccrypt/rsa.c
5353           lib/silccrypt/silcpkcs.c
5354           lib/silccore/silccommand.c
5355           lib/silccore/silcidcache.c
5356           silcd/idlist.c
5357           silcd/packet_send.c
5358           silcd/command.c
5359
5360         * ROBOdoc documented the lib/silcske/groups.h file and a
5361           bit changed the interface for better.
5362
5363 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5364
5365         * Update the client entry context in the ID cache after
5366           nick change.  Affected file lib/silcclient/command.c.
5367           Fixes the CUMODE command when regaining founder privileges,
5368           and a little WHOIS problem.
5369
5370         * Fixed silc_net_gethostbyname to correctly call the
5371           inet_ntop.  Affected file lib/silcutil/silcnet.c.
5372
5373 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5374
5375         * Added IPv6 support checking to the configure.in.pre, added
5376           also --enable-ipv6 option to override the check.  Affected
5377           file configure.in.pre.
5378
5379         * The silc_thread_create now calls the start function
5380           directly if threads support is not compiled in.  Removes
5381           ugly #ifdef's from generic code.  Affected files are
5382           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
5383
5384         * Added silc_net_gethostby[name/addr]_async to asynchronously
5385           resolve.  Affected files are lib/silcutil/silcnet.[ch].
5386
5387         * Added support for rendering IPv6 based server, client and
5388           channel IDs.  Affected file lib/silcutil/silcutil.c.
5389
5390         * Added support for creating IPv6 based server IDs.  Affected
5391           file is silcd/serverid.c.
5392
5393 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5394
5395         * Added silc_net_gethostby[addr/name] into the
5396           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
5397           routines.  Added silc_net_is_ip[4/6].  Affected file is
5398           lib/silcutil/unix/silcunixnet.c.  All routines that take
5399           address as argument now supports both IPv4 and IPv6 addresses.
5400
5401 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5402
5403         * Fixed LIST command reply sending in server.  Affected file
5404           silcd/command.c.
5405
5406         * Server now sends the kicker's client ID in the KICK notify
5407           to the kicked client.  Affected file silcd/command.c.
5408
5409         * The client library now parses the kickers client ID and
5410           UI displays it.  Affected files lib/silcclient/client_notify.c
5411           and irssi/src/silc/core/silc-channels.c, module-formats.c.
5412
5413         * Made all payload parsing function prototypes consistent.
5414           They all take now const unsigned char * and uint32 pair as
5415           the payload data instead of SilcBuffer.  Changes all around
5416           the source tree.  Other unsigned char* -> const unsigned char*
5417           changes around the tree as well.
5418
5419         * Optimized SFTP client and server packet sending not to
5420           allocate new buffer for each packet but to recycle the
5421           first allocated buffer.  Affected files are
5422           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
5423
5424         * Optimized the SFTP client to use SilcList instead of
5425           SilcDList for requests, because it is faster.  Affected file
5426           is lib/silcsftp/sftp_client.c.
5427
5428         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
5429           into lib/silccore/silcid.[ch].
5430
5431           Renamed silcpayload.[ch] into silcargument.[ch].
5432
5433 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5434
5435         * If client entry is deleted with active key agreement
5436           session, abort the session.
5437
5438           The silc_client_abort_key_agreement now calls the completion
5439           callback with new SILC_KEY_AGREEMENT_ABORTED status.
5440
5441           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
5442           idlist.c.
5443
5444 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5445
5446         * Don't use __restrict in older GCC's.  Affected file is
5447           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
5448
5449         * silc_net_localhost now attempts to reverse lookup the
5450           IP/hostname.  Affected file lib/silcutil/silcnet.c.
5451
5452         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
5453           command.  It can be used to gain founder privileges at
5454           the same time when joining the channel.
5455
5456           Defined that the SILC_NOTIFY_TYPE_KICKED send the
5457           kicker's client ID as well.  Updated protocol specs.
5458
5459           Defined that the server must send SILC_COMMAND_IDENTIFY
5460           command reply with error status to client who sent
5461           private message with invalid client ID.
5462
5463           Updated the protocol specification.
5464
5465         * Added silc_server_send_command_reply to send any
5466           command reply.  Affected file silcd/packet_send.[ch].
5467
5468         * Added silc_id_payload_encode_data to encode ID payload
5469           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
5470
5471         * The server now send IDENTIFY command reply with error
5472           status if client ID in private message is invalid.  Affected
5473           file silcd/packet_receive.c.
5474
5475         * Save the server key file with server's IP address in
5476           the filename instead of hostname.  The affected file is
5477           irssi/src/silc/core/client_ops.c.
5478
5479 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5480
5481         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
5482           A patch by Sunfall.
5483
5484         * Added libtool support for compiling shared objects in
5485           lib/silcsim.  Affected file configure.in.pre and
5486           lib/silcsim/Makefile.am.  Original patch by cras.
5487
5488 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5489
5490         * Pid file configuration, and server's config file fixes
5491           patch by toma.  Updated CREDITS file.
5492
5493 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5494
5495         * Fixed silc_client_channel_message to not try to decrypt
5496           the message twice if it resolved the destination client
5497           information.  This could cause of dropping one channel
5498           message.  Affected file lib/silcclient/client_channel.c.
5499
5500 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5501
5502         * Added silc_client_run_one into lib/silcclient/silcapi.h and
5503           lib/silcclient/client.c. This function is used when the SILC
5504           Client is run under some other scheduler, or event loop or
5505           main loop.  On GUI applications, for example this may be
5506           desired to used to run the client under the GUI application's
5507           main loop.  Typically the GUI application would register an
5508           idle task that calls this function multiple times in a second
5509           to quickly process the SILC specific data.
5510
5511 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5512
5513         * Fixed silc_server_drop() for dropping the supplementary
5514           groups as well, this could cause a security hole on some
5515           systems.
5516
5517 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5518
5519         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
5520           johnny.
5521
5522         * Write PID file after dropping privileges.  Added -F option
5523           to run server on foreground.  A patch by debolaz.
5524           Affected files silcd/server.c, silcd/silcd.c.
5525
5526         * Fixed MOTD to return the MOTD file server name.  Affected
5527           file silcd/command.c.
5528
5529         * Added INFO command reply handling to the Irssi SILC Client.
5530           Affected file irssi/src/silc/core/client_ops.c.
5531
5532 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5533
5534         * Fixed the silc_idcache_list_* routines to really support
5535           the dynamic list.  Fixes a crash.  Affected file is
5536           lib/silccore/silcidcache.c.
5537
5538         * Fixed the LIST command reply to really call LIST command's
5539           pending callbacks.  Affected file silcd/command_reply.c.
5540
5541 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5542
5543         * Update conn->local_entry->nickname after giving NICK
5544           command.  Affected file lib/silcclient/command.c.
5545
5546 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
5547
5548         * Added the [pid] option to the silcd configuration file
5549
5550           Affected files: serverconfig.[ch] and silcd.c
5551
5552 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5553
5554         * Save fingerprint in WHOIS command reply in server.
5555           Affected file silcd/command_reply.c.
5556
5557         * Fixed NICK commands pending callback registration.
5558           Affected file lib/silcclient/command.c.
5559
5560 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5561
5562         * Use ++server->cmd_ident when sending commands in server,
5563           instead of random number.  Affected file silcd/command.c.
5564
5565         * Fixed GETKEY command reply to call actually GETKEY pending
5566           command callbacks.  Affected file silcd/command_reply.c.
5567
5568         * A bit stricter check for nicknames.  Check for same nickname
5569           in NICK command also.  Affected file silcd/command.c.
5570
5571         * Do not call INFO command everytime client ID changes, only
5572           during first connecting.  Affected file lib/silcclient/client.c.
5573
5574         * Set the new nickname only after successful command reply for
5575           NICK command is returned by server.  Affected file
5576           lib/silcclient/command.c.
5577
5578         * Remove nicknames from nicklist during server_signoff notify.
5579           Should fix /NAMES bit more.  The affected file is
5580           irssi/src/silc/core/silc-channels.c.
5581
5582         * Added `fingerprint' field to the SilcIDListData in the
5583           silcd/idlist.h to hold the fingerprint of the client's
5584           public key.
5585
5586           Send the fingerprint of the client's public key in WHOIS
5587           command reply.
5588
5589           Affected files silcd/command.c, and silcd/idlist.[ch].
5590
5591         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
5592           create fingerprint from given data.
5593
5594         * Show the fingerprint of the client's public key in WHOIS.
5595           Affected files irssi/src/module-formats.[ch] and
5596           irssi/src/silc/core/client_ops.c.
5597
5598         * Format the multiple same nicknames also during JOIN and
5599           NICK_CHANGE notifys.  Affected file is
5600           lib/silcclient/client_notify.c.
5601
5602         * Do not print error on screen for invalid private message
5603           payload since it can come if someone is sending private
5604           messages with wrong key.  Affected file
5605           lib/silccore/silcprivate.c.
5606
5607         * Fixed multiple concurrent /PING crash.  Affected file
5608           lib/silcclient/command.c.
5609
5610         * Changed the wrong ID encoding.  All IP addresses must be
5611           in MSB first order in encoded format.  They were encoded
5612           wrong and was in LSB format.  Affected files are
5613           silcd/serverid.c, lib/silcutil/silcutil.c.
5614
5615         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
5616
5617         * Call the `connect' client operation through the scheduler
5618           in case of error.  Affected file lib/silcclient/client.c.
5619
5620         * Call the `failure' client operation even if the error
5621           occurred locally during a protocol.  Affected file is
5622           lib/silcclient/protocol.c.
5623
5624         * Added support of sending LIST command to router from normal
5625           server.  This way normal server can get list of all channels
5626           in the network too.  Fixed the channel list sending in the
5627           server too.  Affected files are silcd/command.c, and
5628           silcd/command_reply.[ch].
5629
5630         * Added silc_server_update_channels_by_server and
5631           silc_server_remove_channels_by_server.  They are used during
5632           disconnection of primary router and in backup router protocol.
5633           Affected file silcd/server_util.[ch], silcd/server.c and
5634           silcd/server_backup.c.
5635
5636         * Fixed channel adding to global list in IDENTIFY command
5637           reply in server.  Affected file silcd/command_reply.c.
5638
5639 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5640
5641         * If the incoming packet type is REKEY or REKEY_DONE process
5642           that packet always synchronously.  Fixes yet another MAC
5643           failed error on slow (dialup) connections.  Affected file
5644           lib/silcclient/client.c and silcd/server.c.
5645
5646 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5647
5648         * Call check_version SKE callback for initiator too.  Affected
5649           file lib/silcske/silcske.c.
5650
5651         * Implemented fix for security hole found in the SKE that was
5652           fixed in the specification few days back; the initiator's
5653           public key is now added to the HASH value computation.
5654           Added backwards support for the old way of doing it too, for
5655           old clients and old servers.  Affected file is
5656           lib/silcske/silcske.c.
5657
5658         * Enabled mutual authentication by default in SKE.  If initiator
5659           is not providing mutual authentication the responder will
5660           force it.  This will provide the proof of posession of the
5661           private key for responder.  The affected files are
5662           lib/silcclient/protocol.c and silcd/protocol.c.
5663
5664         * Do not cache anymore the server's public key during SKE.
5665           We do mutual authentication so the proof of posession of
5666           private key is done, and if the server is authenticated in
5667           conn auth protocol with public key we must have the public
5668           key already.  Affected file silcd/protocol.c.
5669
5670         * Added new global debug variable: silc_debug_hexdump.  If
5671           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
5672           file lib/silcutil/silclog.[ch].
5673
5674         * Fixed compilation warning due to char * -> const char *.
5675           Affected files lib/silcutil/silcnet.h, and
5676           lib/silccore/silcauth.[ch].
5677
5678 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5679
5680         * Fixed CMODE command when new channel key was created.  If
5681           the creation failed the old key was removed.  Next time giving
5682           same command would crash the server since the old key was
5683           freed already.  Affected file silcd/command.c.
5684
5685         * Fixed the silc_server_announce_get_channels to not crash
5686           on reconnect.  Affected file silcd/server.c.
5687
5688 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5689
5690         * Added silc_log_set_debug_string function to set a regex
5691           string to match for debug output.  Only the function names,
5692           or filenames matching the given debug string is actually
5693           printed.  This way it is possible to filter out those debug
5694           strings that user is not interested in.
5695
5696           Fixed a bug in silc_string_regexify.
5697
5698           Affected files lib/silcutil/silclog.[ch], and
5699           lib/silcutil/unix/silcunixutil.c.
5700
5701         * Changed the -d options in both server and Irssi SILC client
5702           to take the debug string as argument.  Affected files
5703           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
5704
5705 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5706
5707         * Added silc_hash_babbleprint to create a Bubble Babble
5708           Encoded fingerprint.  The encoding is developed by Antti
5709           Huima (draft-huima-babble-01.txt), and it creates human
5710           readable strings out of binary data.  Affected file
5711           lib/silccrypt/silchash.[ch].
5712
5713         * Print the babble print now in addition of fingerprint as well
5714           in Irssi SILC client.  Affected files are
5715           irssi/src/fe-common/silc/module-formats.[ch],
5716           irssi/src/fe-common/silc/core/client_ops.c.
5717
5718 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5719
5720         * Fixed a security problem found in SKE.  The initiator's
5721           public key too is now added to the HASH hash value creation
5722           which is signed by the responder to create the SIGN value.
5723           This will prevent anyone in the middle to lie to the responder
5724           about the initiator's public key.  If this is done now, the
5725           man in the middle will get caught.  Updated the protocol
5726           specification.
5727
5728 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5729
5730         * Better installation directory handling.  Configure module
5731           paths and other paths automatically to example_silc* files
5732           in doc/.  A patch by toma.
5733
5734         * Fixed compiler warning from MPI library, and from SILC RNG.
5735           A patch by johnny.
5736
5737         * Added SILC_SERVER_PID_FILE to define the pid file for server.
5738           It can be configured with ./configure.  A patch by toma.
5739
5740 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5741
5742         * Find correct make to use in prepare-clean.  A patch by
5743           toma.  Affected file prepare-clean.
5744
5745 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
5746
5747         * Added irssi variables use_auto_addr, auto_bind_ip,
5748           auto_bind_port and auto_public_ip.
5749
5750         * Changed the interface for silc_client_send_key_agreement
5751           in lib/silcclient/silcapi.h
5752
5753         Affected files:
5754
5755          irssi/src/silc/core/silc-core.c
5756          irssi/config
5757          lib/silcclient/silcapi.h
5758          irssi/src/silc/core/silc-channels.c
5759          lib/silcclient/client_keyagr.c
5760          irssi/docs/help/key
5761
5762 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5763
5764         * Added silc_pkcs_public_key_compare to compare two
5765           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
5766
5767         * Check that the client who set the founder mode on the
5768           channel is the same client that is giving the founder
5769           mode to itself.  It is done by comparing the saved public
5770           key (it is saved even in the authentication is passphrase).
5771           Affected file silcd/command.c.
5772
5773 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5774
5775         * Do not process packet for disconnected socket connection.
5776           Affected file lib/silccore/silcpacket.c.
5777
5778         * Process the DISCONNECT packet through scheduler in the
5779           client library.  Affected file lib/silcclient/client.c.
5780
5781         * Fixed the silc_client_packet_parse to not to increase
5782           the packet sequence number if the conn->sock and the
5783           current socket connection is not same.  This can happen
5784           for example during key agreement when the conn includes
5785           multiple socket connections (listeners).  Affected file
5786           lib/silcclient/client.c.
5787
5788         * The sender of the file transfer request now provides also
5789           the pointer (listener) for the key exchange protocol.  If
5790           the listener cannot be created then it sends empty key
5791           agreement and lets the receiver provide the listener.
5792
5793           Added `local_ip' and `local_port' arguments to the
5794           silc_client_file_send.  If they are provided they are used,
5795           if not then it will attempt to find local IP address, if
5796           not found or bind fails then the remote client will provide
5797           the listener.
5798
5799           Affected files are lib/silcclient/client_ftp.c and
5800           lib/silcclient/silcapi.h.
5801
5802         * Extended the FILE SEND command to support defining the
5803           local IP and port for key exchange listener.  They are
5804           optional.  Affected file irssi/src/silc/core/silc-servers.c.
5805
5806 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5807
5808         * Defined to WHOIS command reply the sending of fingerprint
5809           of the client's public key (if the proof of posession of the
5810           corresponding private key is verified by the server).
5811           Updated to the protocol specification.
5812
5813         * Added support of receiving the client's public key's
5814           fingerprint in command reply in client library.  Affected
5815           file is lib/silcclient/command_reply.c, and
5816           lib/silcclient/idlist.[ch].
5817
5818 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5819
5820         * Do not send over 128 chars long nickname to the server
5821           in NICK command.  Affected file lib/silcclient/command.c.
5822
5823         * Do not send over 256 chars long channel names to the server
5824           in JOIN command.  Affected file lib/silcclient/command.c.
5825
5826 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5827
5828         * Assure that silc_server_close_connection cannot be called
5829           twice for same socket context.  Affected file is
5830           silcd/server.c.
5831
5832 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5833
5834         * Send error message to application if opening file for
5835           writing during file transfer fails.  Affected file is
5836           lib/silcclient/client_ftp.c.
5837
5838           Remove all file transfer sessions for a client that we're
5839           removing from ID cache.
5840
5841           Affected file is lib/silcclient/client_ftp.c.
5842
5843         * Fixed silc_net_addr2bin to return correct address.  Affected
5844           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
5845
5846         * Fixed file transfer session removing on signoff notify.
5847           Affected file irssi/src/silc/core/silc-servers.c.
5848
5849         * Added the SilcClientFileError to be returned in the monitor
5850           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
5851           Affected file lib/silcclient/silcapi.h.
5852
5853 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5854
5855         * Fixed a crash in silc_client_ftp_free_sessions and
5856           silc_client_ftp_session_free_client.  Affected file
5857           lib/silcclient/client_ftp.c.
5858
5859         * Added `disabled' field in the SilcChannelEntry in the server
5860           to indicate if the server entry is disabled.  Affected file
5861           silcd/idlist.h, silcd/command[_reply].c.
5862
5863         * SILC server adds now /var/run/silcd.pid everytime it is
5864           started.  Affected file silcd/silcd.c.
5865
5866         * Added silc_server_packet_send_clients to send a packet to
5867           the provided table of client entries.  Affected file
5868           silcd/packet_send.[ch].
5869
5870         * Fixed a crash in client resolving in client_prvmsg.c in
5871           client library.  Affected file lib/silcclient/client_prvmsg.c.
5872
5873         * Do not actually remove the client directly from ID cache
5874           during SERVER_SIGNOFF, but invalidate it.  This way we
5875           preserve the WHOWAS info for the client.  Affected file
5876           silcd/server_util.c.
5877
5878         * Fixed SERVER_SIGNOFF notify handling in the server.  The
5879           server is now able to process incoming SERVER_SIGNOFF notify
5880           for a server that it doesn't even know about.  It will remove
5881           the clients provided in the notify.  Affected file
5882           silcd/packet_receive.c.
5883
5884         * Check for partial packet in data queue after every packet that
5885           was found from the queue.  Return and wait for more data if
5886           there is partial data in queue.  Affected file is
5887           lib/silccore/silcpacket.c.
5888
5889 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
5890
5891         * Added SilcClietFileError enum to indicate error in
5892           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
5893           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
5894           Affected files lib/silcclient/silcapi.h and
5895           lib/silcclient/client_ftp.c.
5896
5897         * Check that newsize in silc_buffer_realloc is larger than
5898           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
5899
5900         * Added better monitor of file transfers.  It now monitors
5901           key agreement protocol during the file transfer too.  Added
5902           error reporting too.  Affected files
5903           irssi/src/silc/core/silc-servers.c,
5904           irssi/src/fe-common/silc/module-formats.[ch].
5905
5906         * Wrote a help file for FILE command.
5907
5908         * Added silc_rng_global_get_byte_fast to get not-so-secure
5909           random data as fast as possible.  Random data is read from
5910           /dev/urandom if available and from the SILC RNG if not
5911           available.  It is used in padding generation.  Affected file
5912           lib/silccrypt/silcrng.[ch].
5913
5914         * All packets in client library are now processed synchronously.
5915           Optimized packet processing a lot.  Affected file
5916           lib/silcclient/client.c.
5917
5918         * All server connection packets are processing synchronously
5919           now in server, to optimize packet processing.  Affected file
5920           silcd/server.c.
5921
5922         * Include files are installed now only in Toolkit distribution
5923           if make install is given.  Affected files: all Makefile.am's.
5924
5925 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5926
5927         * Assure that silc_client_notify_by_server_resolve does not
5928           resolve the client information multiple times.  If it cannot
5929           be found by the first it cannot be found at all.  Affected
5930           file lib/silcclient/client_notify.c.
5931
5932         * Fixed WHOWAS command reply calling.  Affected file
5933           lib/silcclient/command_reply.c.
5934
5935         * Removed all references to silc_idlist_get_client from the
5936           Irssi SILC client since that call is internal call used by
5937           the library.  The Irssi SILC client will use now client
5938           retrieval functions found in silcapi.h.
5939
5940         * Fixed a bug in resolving nickname info before sending
5941           private message.  It used freed memory.  Affected file
5942           irssi/src/silc/core/silc-servers.c.
5943
5944 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5945
5946         * Assure my_channels statistics cannot go negative in server.
5947           Affected files silcd/server.c, silcd/server_util.c.
5948
5949 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5950
5951         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
5952
5953 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5954
5955         * Win32 Toolkit changes.  Affected files
5956           win32/silc.dsw, win32/libsilc/libsilc.def,
5957           win32/libsilcclient/libsilc.def,
5958           lib/silcutil/silcutil.c, and
5959           lib/sftp/sftp_fs_memory.c.
5960
5961 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5962
5963         * Added silc_net_localip to return local host's IP address.
5964           Affected file lib/silcutil/silcnet.[ch].
5965
5966         * If key exchange or rekey protocol is active for a connection
5967           parse all packets syncronously since there might be packets
5968           in packet queue that we are not able to process without first
5969           processing packets before them.  Affected file silcd/server,
5970           lib/silcclient/client.c.
5971
5972         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
5973           whether library should continue processing the packet.
5974           Affected file lib/silccore/silcpacket.h.
5975
5976         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
5977           SilcSFTPMonitorData to SFTP server to monitor various
5978           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
5979           lib/silcsftp/sftp_server.c.
5980
5981         * Added silc_file_size to return file size.  Affected file
5982           lib/silcutil/silcutil.[ch].
5983
5984         * Implemented the file transfer support for the client library.
5985           Added preliminary support for simple client to client one-file
5986           transmission.  Affected file lib/silcclient/client_ftp.c,
5987           lib/silccilent/client.[ch].
5988
5989         * Added new local command FILE to the Irssi SILC Client.
5990           It is used to perform the file transfer.  It has subcommands
5991           SEND, RECEIVE, SHOW and CLOSE.  Affected files
5992           irssi/src/silc/core/client_ops.c,
5993           irssi/src/silc/core/silc-server.[ch].
5994
5995 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5996
5997         * Relay the SILC_PACKET_FTP in the server.  Affected files
5998           silcd/server.c and silcd/packet_receive.c.
5999
6000 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6001
6002         * Renamed silc_file_read and silc_file_write to functions
6003           silc_file_readfile and silc_file_writefile.  Added function
6004           silc_file_open and silc_file_close.  Affected files
6005           lib/silcutil/silcutil.[ch].
6006
6007 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6008
6009         * Resolve the client info when received private message or
6010           channel message for a client which nickname we don't know.
6011           Affected files lib/silcclient/client_prvmsg.c and
6012           lib/silcclient/client_channel.c.
6013
6014         * Do not crash in /KEY if client is not connected.  Affected
6015           file irssi/src/silc/core/silc-channels.c.
6016
6017         * Added SilcClientStatus field to the SilcClientEntry in the
6018           lib/silcclient/idlist.h.
6019
6020           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6021           is incomplete and is being resolved, it won't be resolved
6022           twice.
6023
6024           Make sure also that USERS command reply does not resolve
6025           twice information.  Affected file is
6026           lib/silcclient/command_reply.c.
6027
6028           Make sure that silc_client_get_clients_by_list does not
6029           resolve twice same information.
6030
6031         * Check for valid client->id in the silc_server_free_client_data.
6032           Affected file silcd/server.c.
6033
6034         * Fixed /GETKEY nick@server not to crash if the server entry
6035           is not found.  Affected file lib/silcclient/command.c.
6036
6037         * Fixed the silc_server_check_cmode_rights to check the
6038           requested modes correctly.  Affected file silcd/command.c.
6039
6040 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6041
6042         * Better checks for non-printable chars in nick added.
6043           Affected file silcd/command.c.
6044
6045 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6046
6047         * Call the silc_server_udpate_servers_by_server in the
6048           primary router that comes back online in the backup resuming
6049           protocol.  Otherwise it routes packets wrong.  Affected file
6050           silcd/server_util.[ch], silcd/server_backup.c.
6051
6052 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6053
6054         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6055           lib/silcutil/silcbuffmt.[ch].
6056
6057         * Redefined the SILC packet header to include the padding
6058           length.  Affected file lib/silccore/silcpacket.[ch].
6059
6060         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6061           length for maximum padding up to 128 bytes).  Affected
6062           file lib/silccore/silcpacket.h.
6063
6064         * Removed all backwards support for old 0.5.x MAC thingies.
6065           The SILC packet header change makes it impossible to be
6066           backwards compatible.
6067
6068         * Send the ENDING packet with timeout in the backup resuming
6069           protocol.  This is to assure that all routers has connected
6070           to the primary router.  Affected file silcd/server_backup.c.
6071
6072         * Changed the RNG to take the first IV from random data.  It
6073           used to take it from zero actually.  Changed the RNG also
6074           to use /dev/urandom during session.  /dev/random is used
6075           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6076
6077 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6078
6079         * Changed the SILC packet header to have the first two bytes
6080           (the packet length) encrypted.  Affected files aroung the
6081           code tree, lib/silccore/silcpacket.[ch].  Removed the
6082           SilcPacketCheckDecrypt callback.  It is not needed anymore
6083           since the silc_packet_receive_process will determine now
6084           whether the packet is normal or special.
6085
6086         * Implemented the unidirectional MAC keys.  Affected files
6087           lib/silcske/silcske.c, silcd/protocol.c and
6088           lib/silcclient/protocol.c.
6089
6090         * Implemented the packet sequence number to the MAC computation.
6091           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6092           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6093           lib/silcclient/protocol.c.
6094
6095 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6096
6097         * Allow backup router to announce servers.  All servers
6098           announced by backup router are added to the global list
6099           automatically.  Update hte server's socket to our primary
6100           router also when backup router announces a server.
6101           Affected file silcd/packet_receive.c.
6102
6103         * Do not update the client->router in the function
6104           silc_server_udpate_clients_by_server if the client is on
6105           global list.  We might fail to find any specific server
6106           for locally connected clients and local cell clients.  They
6107           should still use the `from' and not `to' as client->router.
6108           This fixes backup router resuming protocol.  Affected file
6109           silcd/server_util.c.
6110
6111         * Decrease channel statistics count only if the channel
6112           deletion worked.  Affected files are silcd/server.c and
6113           silcd/server_util.c.
6114
6115         * Added silc_server_update_servers_by_server to update origin
6116           of all server entries.  Used during backup router protocol.
6117           Affected files silcd/server_util.[ch], silcd/server.c. and
6118           silcd/backup_router.c.
6119
6120         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6121           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6122           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6123           lib/silccrypt/silchmac.c.
6124
6125 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6126
6127         * Assure that router cannot reroute the same channel message
6128           to the sender.  Affected file silcd/packet_receive.c.
6129
6130 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6131
6132         * Made better checks that the channel message is not sent
6133           to the router it came from.  Affected file is
6134           silcd/packet_send.c.  Fixed memory leak too.
6135
6136         * Announce informations for incoming router connection, but
6137           only after checking if it is replaced by backup router.
6138           Affected file silcd/packet_receive.c.
6139
6140 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6141
6142         * Fixed the backup resuming protocol to work in multiple
6143           router environment.  Affected file silcd/server_backup.c.
6144
6145         * Route packet only to one router in the function
6146           silc_server_packet_send_to_channel.  Affected file is
6147           silcd/packet_send.c.
6148
6149         * Fixed silc_server_send_notify_dest to set the broadcast
6150           flag.  Fixed the silc_server_send_notify_topic to actually
6151           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6152           Affected file silcd/packet_send.c.
6153
6154         * Changed the SFTP Filesystem interface.  Changed the
6155           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6156           the filesystem operation function.  The SilcSFTPFilesystem
6157           is now a context that is allocated by all filesystem allocation
6158           functions and it already includes the operations structure
6159           and filesystem specific context.  It is given as argument
6160           now to the silc_sftp_server_start.  This made the interface
6161           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6162           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6163
6164 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6165
6166         * Changed the backup router adding and getting interfaces
6167           in the server.  The router that will be replaced by the
6168           specified backup router is now sent as argument.  Affected
6169           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6170           silcd/server.c.
6171
6172         * Added silc_net_addr2bin_ne to return the binary form of
6173           the IP address in network byte order.  Affected files
6174           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6175
6176 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6177
6178         * Check for existing server ID in silc_server_new_server
6179           and in silc_server_connect_to_router_final and remove the
6180           old entry if it exists.  Affected file silcd/packet_receive.c,
6181           silcd/server.c.
6182
6183         * Send the channel message always to only one router, either
6184           in upstream or downstream.  Affected file is
6185           silcd/packet_send.c.
6186
6187 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6188
6189         * Wrote the definition of the backup resuming protocol to the
6190           protocol specification.
6191
6192         * Removed one redundant channel key generation from normal
6193           server during joining procedure.  Removed one redundant
6194           channel key sending from server to router during joining
6195           procedure.  Affected file silcd/command.c.
6196
6197         * Made minor bugfixes to the backup router resuming protocol.
6198           Affected file silcd/server_backup.c, server.c.
6199
6200 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6201
6202         * Added --disable-asm configuration option.  Affected files
6203           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6204           by salo.
6205
6206         * Implemented the backup resuming protocol that is used to
6207           resume the primary router position in the cell after the
6208           primary router comes back online.  Affected files
6209           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6210           and silcd/server_util.[ch].
6211
6212 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6213
6214         * Sleep two (2) seconds after sending QUIT command to server.
6215           Affected file lib/silcclient/command.c.
6216
6217         * Assure that if outgoing data buffer is pending do not force
6218           send any data.  Affected file silcd/packet_send.c.
6219
6220         * Assure that if outgoing data buffer is pending do not force
6221           send any data.  Affected file lib/silcclient/client.c.
6222
6223         * Implemented the backup router support when the primary router
6224           goes down.  The servers and routers can now use the backup
6225           router as new primary router without loosing connectivity.
6226
6227 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6228
6229         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6230           in the server to indicate disabled entry.  All data read
6231           from the connection will be ignored and no data is sent
6232           for entry that is disabled.  Affected files are
6233           silcd/idlist.h, silcd/server.c.
6234
6235 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6236
6237         * Created SFTP client and server test programs in the
6238           lib/silcsftp/tests directory.
6239
6240 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6241
6242         * Implemented memory filesystem (virtual filesystem) for
6243           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
6244           sftp_fs_memory.c.
6245
6246 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6247
6248         * Implemented the SFTP (SSH File Transfer Protocol) to the
6249           lib/silcsftp.  It includes SFTP client and SFTP server
6250           implementations.
6251
6252 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6253
6254         * Moved lib/silccore/silcprotocol.[ch] to the
6255           lib/silcutil library.
6256
6257         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
6258           take variable argument list pointer as argument.  Affected
6259           file lib/silcutil/silcbuffmt.[ch].
6260
6261         * Added silc_buffer_set function that is used to set data
6262           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
6263           Affected file lib/silcutil/silcbuffer.h.
6264
6265         * Changed various routines in the core library to use the new
6266           silc_buffer_set instead of allocating new buffer only for
6267           temporary purposes.
6268
6269         * Added 64-bit value formatting and unformatting support to the
6270           silc_buffer_[un]format routines.  Affected file is
6271           lib/silcutil/silcbuffmt.[ch].
6272
6273           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
6274           to includes/bitmove.h.
6275
6276 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6277
6278         * Fixed channel user mode saving in client library.  Affected
6279           file lib/silcclient/command[_reply].c.
6280
6281 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6282
6283         * Defined the file transfer to the SILC Protocol.  Added
6284           new packet type SILC_PACKET_FTP and defined File Transfer
6285           Payload.  The mandatory file transfer protocol is SFTP
6286           (SSH File Transfer Protocol).  Affected file in addition
6287           of the internet draft is lib/silccore/silcpacket.h.
6288
6289         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
6290           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
6291           is used as part of backup router protocol when the primary
6292           router of the cell is back online and wishes to resume
6293           the position as primary router.
6294
6295         * Redefined the MAC generation keys in the protocol.  The
6296           same key is not used anymore in both direction.  Both
6297           direction will now use different keys for sending and
6298           receiving.  This fixes a potential security flaw.  This
6299           change causes incompatibilities in the protocol.
6300
6301         * Redefined also the MAC computation from the packet.
6302           An packet sequence number is now added to the MAC
6303           computation.  This prevents possible replay attacks against
6304           the protocol.  This change too causes incompatibilities
6305           in the protocol.
6306
6307           Added `sequence' field to the SilcPacketContext to hold
6308           the current sequence number for the packet.
6309
6310 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6311
6312         * Added `created' field to the SilcIDListData in the file
6313           silcd/idlist.h to indicate the time when the entry was
6314           created.
6315
6316         * Added `created' field to the SilcChannelEntry too.  Affected
6317           file silcd/idlist.h.
6318
6319         * Added `creation_time' aguments to all the announcement functions
6320           in the server.  If it is provided then only the entries that
6321           was created after the provided time frame are actually
6322           announced.  Affected file silcd/server.[ch].
6323
6324         * The protocol says that the Channel ID's IP address must be
6325           based on the router's IP address.  Added check for this in
6326           the silc_server_new_channel when processing incoming New Channel
6327           Payload.  Affected file silcd/packet_receive.c.
6328
6329         * Print out the correct version with --version in SILC client.
6330           Affected file irssi/src/silc/core/silc-core.c.
6331
6332 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6333
6334         * Fixed WHOWAS command to check for completnes of the client
6335           entry always, not just when the command is coming from client.
6336           Affected file silcd/command.c.
6337
6338         * Added new function silc_server_packet_queue_purge to purge the
6339           outgoing data queue to the network.  After the function returns
6340           it is guaranteed that the outgoing packet queue is empty.
6341           Affected file silcd/packet_send.[ch].
6342
6343         * Purge the outgoing packet queue in the rekey protocol's final
6344           callback to assure that all rekey packets go to the network
6345           before quitting the protocol.  Affected file silcd/server.c.
6346
6347         * Added silc_client_packet_queue_parse as similar function as
6348           in server to the client library.  The affected file is
6349           lib/silcclient/client.c.
6350
6351 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6352
6353         * Splitted silcd/server.c and created silcd/server_util.[ch]
6354           for utility functions.
6355
6356         * Added new socket flag SILC_SF_DISABLED to indicate that the
6357           connection is open but nothing can be sent to or received from
6358           the connection.  Affected file lib/silcutil/silsockconn.[ch].
6359           The checking for disabled socket is checked in the low level
6360           silc_socket_write and silc_socket_read functions.
6361
6362 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6363
6364         * Allow only nicknames and channel names that fits into the
6365           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
6366
6367 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6368
6369         * When processing JOIN command reply in server check that if
6370           the channel exists in our global list we'll move it the local
6371           list.  Affected file silcd/command_reply.c.
6372
6373         * Fixed the check whether client is joined on the channel already
6374           in JOIN command.  Affected file lib/silcclient/command.c.
6375
6376         * Fixed the JOIN command reply to check whether the channel
6377           already exists.  Affected file lib/silcclient/command_reply.c.
6378
6379 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6380
6381         * Added silc_ske_status_string to map the SKE error numbers
6382           to readable strings.  The affected files are
6383           lib/silcske/silcske[_status].[ch].
6384
6385 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6386
6387         * Do not show the private channels on the WHOIS channel list
6388           as it is not allowed by the protocol.  The affected file is
6389           silcd/server.c.
6390
6391 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6392
6393         * Assure that the packet length digged from the actual packet
6394           is something sensible in the silc_packet_decrypt_rest_special
6395           in lib/silccrypt/silcpacket.c.
6396
6397         * Free and NULL the allocated pointer in silc_hmac_alloc if
6398           the HMAC allocation fails.  The affected file is
6399           lib/silccrypt/silchmac.c.
6400
6401         * Print the selected security properties to the log files in
6402           the server.  Affected file silcd/protocol.c.
6403
6404         * Add SKE's reference counter even if calling the completion
6405           callback manually.  Otherwise it goes negative, although it
6406           does not cause any problems.  The affected file is
6407           lib/silcske/silcske.c.
6408
6409         * Remove the client entry with short timeout after giving the
6410           KILL command.  Affected file lib/silcclient/command.c.
6411
6412         * Fixed to send error reply in WHOIS and IDENTIFY commands in
6413           case all found clients are already disconnected (WHOWAS would
6414           found them) in the server.  Affected file silcd/command.c.
6415
6416         * Update the last_receive (time of last data received) to be
6417           updated only when received private or channel message so that
6418           the idle time showed in WHOIS makes more sense.
6419
6420         * Added boolean field `valid' in to the SilcClientEntry in the
6421           client library to indicate whether the entry is valid or not.
6422           This fixes the nickname change bug on channel when changing
6423           the nickname to be same than the old (like nick to Nick) the
6424           nickname formatter doesn't set the new nick anymore to Nick@host.
6425           Affected file lib/silcclient/idlist.[ch].
6426
6427         * Now actually fixed the nickname changing on disconnection.
6428           Added new function silc_change_nick to the Irssi SILC Client.
6429           Affected file irssi/src/silc/core/client_ops.c,
6430           irssi/src/silc/core/silc-nicklist.[ch].
6431
6432 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6433
6434         * Check that the public key exists in the GETKEY command before
6435           trying to encode it.  Affected file silcd/command.c.
6436
6437         * Print some notifications on received public keys with GETKEY
6438           command in the Irssi SILC Client.  Affected files are
6439           irssi/src/fe-common/silc/module-formats.[ch],
6440           irssi/src/silc/core/client_ops.c.
6441
6442         * Use IDENTIFY command to resolve the server information in the
6443           GETKEY command instead of INFO command.  Affected file
6444           lib/silcclient/command.c.
6445
6446         * All command reply functions in the client library now calls
6447           the pending command reply callbacks even if an error has
6448           occurred.  The server has done this a long time and now it was
6449           time to move the client library to this as well.  Now all
6450           errors can be delivered back to the pending command reply
6451           callbacks if necessary.  Affected files are
6452           lib/silcclient/command[_reply].[ch].
6453
6454         * Change the nickname on disconnection back to the username
6455           because in reconnect the server will enforce it to it anyway.
6456           Affected file irssi/src/silc/core/silc-servers.c.
6457
6458         * Fixed a config file parsing bug in the Irssi SILC client.
6459           Affected file irssi/src/silc/core/clientconfig.c.
6460
6461 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6462
6463         * When printing the channel mode on JOIN, verify that the
6464           channel key and channel's HMAC are valid.  Affected file
6465           irssi/src/silc/core/client_ops.c.
6466
6467 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6468
6469         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
6470           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
6471           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
6472
6473         * Removed channel key rekey task deleting from the function
6474           silc_server_save_channel_key.  Affected file silcd/server.c.
6475           Added explicit timeout task context instead that is used to
6476           delete the task if we are registering a new task before the
6477           new task has elapsed.
6478
6479         * When channel key rekey occurs the client library now saves
6480           the old channel key for a short period of time (10 seconds) and
6481           is able to use it in case some is still sending channel
6482           messages encrypted with the old key after the rekey.  Affected
6483           file lib/silcclient/[idlist.h|client_channel.c].
6484
6485 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6486
6487         * Added check to the silc_server_new_id_real to not accept
6488           new ID if it is the sender's own ID.  Affected file is
6489           silcd/packet_receive.c.
6490
6491         * Assure that we do not announce ourself or the one we've
6492           sending our announcements when we're router and are announcing
6493           servers to our primary router.  Affected file silcd/server.c.
6494
6495         * Fixed silc_server_command_identify_check_client to assemble
6496           correct WHOIS packet.  It send corrupted WHOIS packet and
6497           caused problem with router to router connections.  Affected
6498           file silcd/command.c.
6499
6500           Fixed also silc_server_command_whois_check the same way
6501           as for the IDENTIFY command.
6502
6503         * Added new SilcIDListStatus to the server in the SilcIDListData
6504           structure.   The status now includes the current status of
6505           the entry (like registered, resolved etc.).  Affected file
6506           silcd/idlist.[ch].  Defined a bunch of different status types
6507           as well.  This replaced the old boolean registered field as well.
6508
6509           Added resolve_cmd_ident field to the SilcClientEntry structure
6510           too so that if the entry is for example being resolved so
6511           another command may attach to the same pending command reply
6512           without requiring to resolve the same entry again.  This concept
6513           should optimize the WHOIS and the IDENTIFY resolving under
6514           heavy load by taking away unnecessary resolving for entries
6515           that are being resolved already.
6516
6517           Added support for adding multiple pending commands for one
6518           command idenfier.  Affected file silcd/command[_reply].[ch].
6519
6520         * Fixed WHOIS and IDENTIFY save to remove the cache entry
6521           before deleting the data.  Otherwise the hash table will have
6522           freed data in comparison functions.  Affected file is
6523           silcd/command_reply.c.
6524
6525         * Fixed silc_idlist_replace_client_id to add the new entry to
6526           the cache with NULL nickname.  Otherwise there will be invalid
6527           memory as the nickname after the nickname is freed.  Affected
6528           file silcd/packet_receive.c.
6529
6530         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
6531           saved into wrong slots because the previous number of entries
6532           was not taken into account.  Affected file silcd/idlist.c.
6533           Fixed same thing in silc_idlist_get_clients_by_nickname too.
6534
6535         * If we are router and we receive JOIN notify to a channel that
6536           does not have any users then notified client is marked as the
6537           channel founder, as it is it.  The affected file is
6538           silcd/packet_receive.c
6539
6540         * Added to the extended hash table API's table_del_*ext functions
6541           the destructor as argument too, so that the caller can decide
6542           which destructor to use or whether to use destructor at all.
6543           Affected file lib/silcutil/silchashtable.[ch].
6544
6545         * Fixed ID Cache purging.  It actually deleted the entries from
6546           the hash table after the data was freed.  The hash table ended
6547           up comparing freed memory.  The affected file is
6548           lib/silccore/silcidcache.c.
6549
6550 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6551
6552         * Fixed Irssi SILC client's KILL command's HELP syntax.
6553
6554         * The USERS command now resolves the detailed user information
6555           if the userinfo field is missing.  Affected file is
6556           lib/silcclient/command_reply.c.
6557
6558         * Do not print error in silc_file_read if the read file does
6559           not exist.  Just silently return NULL.  Affected file is
6560           lib/silcutil/silcutil.c.
6561
6562         * Fixed the silc_log_output to not wine about NULL filename
6563           and to not create some bogus " " filename.  Affected file is
6564           lib/silcutil/silclog.c.
6565
6566 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6567
6568         * Fixed various printing bugs on the user interface in the
6569           Irssi SILC Client.  Minor changes that were forgotten from
6570           the release.
6571
6572 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6573
6574         * Fixed the configure.in.pre and the compilation and distribution
6575           environment to support the new autoconf 2.52.  That version is
6576           now required to compile the CVS trunk.
6577
6578 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6579
6580         * Renamed function silc_parse_nickname to silc_parse_userfqdn
6581           to generally parse user@fqdn format strings.  Affected file
6582           lib/silcutil/silcutil.c.
6583
6584         * Added nickname_format and nickname_force_format fields to the
6585           SilcClientParams structure.  The first one defines the format
6586           for the nicknames that the library will enforce if the receives
6587           multiple same nicknames.  The second one is boolean value and
6588           can be used to force the library to always enforce the format
6589           to the nicknames regardles whether there are multiple nicknames
6590           or not.  This configurable formatting was employed to flexibly
6591           support accessing multiple nicknames from the user interface.
6592           The userinterface can now set the nicknames to what ever format
6593           they prefer.  Affected file lib/silcclient/silcapi.h.
6594
6595           Added function silc_client_nickname_format to the file
6596           lib/silcclient/idlist.c.  It performs the nickname formatting.
6597
6598           Added new field `hostname´ to the SilcClientEntry context.
6599           It holds the hostname of the client.  Affected file is
6600           lib/silcclient/idlist.h.
6601
6602         * Irssi SILC Client sets the nicknames in nick@hostn format.
6603           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
6604           irssi/src/silc/core/silc-core.c.
6605
6606           The WHOIS printing now also shows both the real nickname and
6607           the formatted nickname so that user knows how to access the
6608           user if there are multiple same nicknames cached.  Affected
6609           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
6610           printing formatting too to take the hostname now as a separate
6611           argument.  The Affected file is
6612           irssi/src/fe-common/silc/modules-formats.[ch].
6613
6614         * Changed the silc_client_get_clients_local to accept the formatted
6615           nickname as argument.  It accepts the real nickname too but the
6616           formatted nickname can be used to find the true entry from
6617           multiple entries.  Affected file lib/silcclient/silcapi.h and
6618           lib/silcclient/idlist.c.
6619
6620         * Added nickname_format_parse field to the SilcClientParams.
6621           It is a callback function provided by the application to parse
6622           the nickname out of the formatted nickname string. The library
6623           calls it to get the nickname from the formatted string. Since
6624           the application generally knows better the format of the nickname
6625           string it parses it instead of the library, even though library
6626           encodes the formatted string.  If the callback function is not
6627           provided then the library will use the string as is.  The
6628           affected file is lib/silcclient/silcapi.h.
6629
6630         * All the nickname strings passed to the client library in
6631           commands are now expected to be formatted nickname strings.
6632           If the command does not support the formatted nickname string
6633           it will assume that the sent string is the actual nickname.
6634           Affected file lib/silcclient/command.c.
6635
6636 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6637
6638         * Added public key authentication support to OPER and SILCOPER
6639           commands in the client library.  Affected file is
6640           lib/silcclient/command.c.
6641
6642 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6643
6644         * Changed the get_auth_methdod client operation to be asynchronous.
6645           It can be async if the application resolves the authentication
6646           method from the server during the negotiation.  Added new
6647           SilcGetAuthMeth completion callback that the application will
6648           call after resolving the authentication method.
6649
6650           Added function silc_client_request_authentication_method that
6651           the application can use to resolve the authentication method
6652           from the server.  Added also SilcConnectionAuthRequest callback
6653           that the library will call after the server has replied.  The
6654           application can call this function if it does not know the
6655           current authentication method.
6656
6657           Affected files are lib/silcclient/client.c and
6658           lib/silcclient/silcapi.h.
6659
6660         * The Irssi SILC client now automatically resolves the authentication
6661           method incase any configuration information is not present (and
6662           currently there never is).  The affected file is
6663           irssi/src/silc/core/client_ops.c.
6664
6665         * Fixed public key authentication from the client library.
6666           Affected file lib/silcclient/protocol.c.  Changed also the
6667           protocol specification about the public key authentication in
6668           the connection authentication protocol.  The actual data to be
6669           signed is now computed with a hash function before signing.
6670
6671         * Fixed the public key authentication from the server as well.
6672           Affected file silcd/protocol.c.
6673
6674         * Removed the mlock()'s from the memory allocation routines.
6675           Affected file lib/silcutil/silcmemory.c.  The ./configure does
6676           not check anymore for the mlock().  Affected file is
6677           configure.in.pre.
6678
6679         * Fixed USERS command in server to allow the execution of the
6680           command for private and secret channels if the client sending
6681           the command is on the channel.  Affected file silcd/command.c.
6682
6683         * Fixed silc_client_get_clients_local to return the clients
6684           count correctly.  It could return wrong value.  Affected file
6685           lib/silcclient/idlist.c.
6686
6687 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6688
6689         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
6690           types.  The assembler optimizations seemed not to like 64-bit
6691           data types.  The assmebler optimizations thus are now enabled
6692           also for BSD systems as opposed to only enable them for Linux.
6693
6694         * Do not check for threads at all on BSD systems.  Affected
6695           file configure.in.pre.
6696
6697         * Removed -n and -h options from the Irssi SILC Client since
6698           they are not used in silc.
6699
6700         * Fixed the prime generation to assure that the first digit
6701           of the generated random number is not zero since our conversion
6702           routines does not like number strings that starts with zero
6703           digit.  If zero digit is seen the random number is regenerated.
6704           This caused some corrupted RSA keys when the zero first digit
6705           was met.  Affected file lib/silcmath/silcprimegen.c.
6706
6707 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6708
6709         * Fixed WIN32 configuration in the ./configure script.
6710           Fixed to include xti.h on environments that has it.
6711           Patches by Carsten Ilchmann and andrew.
6712
6713 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6714
6715         * Changed the silc_id_create_client_id to be collision
6716           resistant.  It is now assured that there cannot be created
6717           two same client ID's.  I suspect that some weird bugs in
6718           the server were actually caused by duplicate Client IDs.
6719           Affected file silcd/serverid.[ch].  A router receiving
6720           new ID now also assures and informs the sending server
6721           if the ID caused collision.
6722
6723         * Changed the silc_id_create_channel_id to also assure that
6724           there are no collisions.
6725
6726 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6727
6728         * Statement about ignoring the Mutual Authentication flag when
6729           performing rekey with PFS was a bit misleading.  It is ignored
6730           if it was set in the initial negotiation, it cannot be even
6731           set in the rekey.  Fixed in the ke-auth draft.  Started the
6732           new versions of the protocol drafts in the doc/.
6733
6734 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6735
6736         * Fixed a bug in silc_client_command_identify_save when saving
6737           new channel information.  The channel name was no duplicated
6738           and caused crash on exit.  Affected file is
6739           lib/silcclient/command_reply.c.
6740
6741 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6742
6743         * Fixed the getkey command handling in the server.  Send just
6744           empty OK reply to the sender if the key could not be fetched
6745           (but everything else was ok, like the key just was not available).
6746           Changed the public key parameter to optional in the protocol
6747           specs so that empty OK reply can be sent.  Affected file
6748           silcd/command.c.
6749
6750           Added a message to Irssi SILC client to tell to user if the
6751           server did not return a public key.
6752
6753 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6754
6755         * Fixed a channel key regeneration bug.  It registered new
6756           timeout tasks exponentially until all system resources were
6757           used.  Affected file silcd/server.c.
6758
6759 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6760
6761         * Added the SILC Document generator to the scripts/silcdoc.
6762           It can be used to generate the Toolkit Reference Manual out
6763           of the source tree.  Internally it will also use the RoboDoc
6764           generator now imported in util/robodoc.
6765
6766 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6767
6768         * Added couple of return's in rekey protocol if error orccurred
6769           during the protocol.  The execution must be terminated.
6770           Affected file silcd/protocol.c.  Also, terminate the protocol
6771           always with timeout.
6772
6773 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6774
6775         * The client's Client ID was created initally from the wrong
6776           nickname (it could have been in format nick@host) in the
6777           silc_server_new_client.  Affected file silcd/packet_receive.c
6778
6779 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6780
6781         * Added some SILC_LOG_ERROR's to various error conditions
6782           if client could not be added to ID cache.  Affected files
6783           silcd/packet_receive.c and silcd/server.c.
6784
6785         * When client's sock->user_data is freed, NULL also the
6786           client->router and client->connection pointers.  Added check
6787           for these pointers being NULL to various places around the
6788           code.  Affected file silcd/server.c.
6789
6790         * Added client->data.registered == TRUE checks to various
6791           places around the code to assure that unregistered client's
6792           are not handled when it is not allowed.  Affected file
6793           silcd/server.c.
6794
6795         * Added `bool registered' fields to all
6796           silc_idlist_[server|client]_get_* routines to indicate whether
6797           the fetched client needs to be registered or not.  Affected
6798           file silcd/idlist.[ch].
6799
6800         * Add your own entry as registered to the ID cache in the
6801           server.  Affected file server.c.
6802
6803         * Fixed a bug in silc_server_new_server.  The SilcServer was
6804           set as the new server's context instead of SilcServerEntry.
6805           This naturally caused some weird bugs.
6806
6807         * Added "updated" field the SilcChannelEntry which indicates
6808           the time since the channel entry was last accessed.  This
6809           can be used to determine whether it is necessary to
6810           announce the channel after backup resuming protocol.
6811           Affected files silcd/idlist.[ch].
6812
6813 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6814
6815         * Do not delete the channel rekey task when adding it
6816           for in silc_server_create_channel_key.
6817
6818         * Changed the silc_server_create_channel_key to return
6819           TRUE or FALSE to indicate the success of the channel key
6820           creation.
6821
6822 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6823
6824         * Fixed MSVC++ project files and added missing files to
6825           Makefiles under win32/.
6826
6827 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6828
6829         * Do not add TCP_NODELAY flag if the operating system
6830           does not have it defined.  Affected files are
6831           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6832
6833         * Fixed buffer overflow from Irssi SILC Client.  Affected
6834           file irssi/src/fe-common/core/themes.c.
6835
6836         * Fixed double free in client library in the file
6837           lib/silcclient/client.c when disconnecting from server.
6838
6839         * Applied double free patch from cras to Irssi SILC client.
6840           Affected files irssi/src/core/[modules/expandos].c
6841
6842         * Fixed the disconnection handling to Irssi SILC Client.
6843           The application must call silc_client_close_connection
6844           in ops->connect client operation in case of failure of
6845           the connection.  Affected file is
6846           irssi/src/silc/core/client_ops.c.
6847
6848         * Do not set sock->protocol to NULL in the function
6849           silc_client_close_connection after executing the protocol's
6850           final callback since the sock might not be valid anymore.
6851           Affected file lib/silcclient/client.c.
6852
6853 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6854
6855         * Do not enable SILC_THREADS if the linking with libpthread
6856           did not happen.  Affected file configure.in.pre.
6857
6858         * Added notion to protocol specification that server must
6859           verify the sent authentication payload with CMODE when
6860           setting the channel founder key.  Implemented it to the
6861           server.  Affected file silcd/command.c.
6862
6863 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6864
6865         * Added _EXTRA_DIST SILC distribution variable to the
6866           distributions file.  It is used to conditionally add extra
6867           files or directories to the specific distribution.  Affected
6868           files ./prepare, Makefile.am.pre and distributions.
6869
6870           Removed the `_' from the start of the distribution names.
6871           It is redundant.
6872
6873         * Added README.WIN32 for instructions to compile the Toolkit
6874           under WIN32.
6875
6876 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6877
6878         * Fixed a double free in disconnection in the server.  Affected
6879           file is silcd/server.c.
6880
6881         * Fixed the lib/silcske/groups.c to work now also with GMP
6882           MP library.  The string conversion did not work when using
6883           specific base and the base is indicated in the string as well.
6884
6885         * Created win32/ directory which now includes MSVC++ specific
6886           stuff so that toolkit (DLLs) may be compiled with MSVC++.
6887           It will appear only in the toolkit distribution
6888
6889 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6890
6891         * Changed the key material distribution function in case when
6892           the hash output is too short.  The data is now concatenated
6893           a bit differently than it used to.  Made the change to the
6894           SKE protocol specification.
6895
6896         * Added better GMP detection to configure.in.pre.  A patch
6897           by salo.
6898
6899 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6900
6901         * Fixed a minor bug in SKE that might cause some problem on
6902           some platforms.  Affected file lib/silcske/silcske.c.
6903
6904         * Added the cookie checking for initiator in the SKE.  It checks
6905           that the responder returns the sent cookie unmodified.  The
6906           affected file is lib/silcske/silcske.c.  Added new SKE
6907           error type INVALID_COOKIE that can be sent during the
6908           negotiation.  Fixed some memory leaks as well.
6909
6910         * Added the "invalid cookie" error message to Irssi SILC client's
6911           message formats.
6912
6913 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6914
6915         * Added `task_max' field to the SilcClientParams to indicate
6916           the maximum tasks the scheduler can handle.  If set to zero,
6917           default values are used.  Affected file lib/silcclient/silcapi.h.
6918
6919         * Fixed memory leaks in silc_client_close_connection.  Affected
6920           file lib/silcclient/client.c.
6921
6922         * Added silc_client_del_client_entry to client library to free
6923           all memory of given client entry.  Affected file is
6924           lib/silcclient/idlist.[ch].
6925
6926         * Added new functions silc_client_del_channel and
6927           silc_client_del_server to delete channel and server entries.
6928           Affected file lib/silcclient/[silcapi.h/idlist.c].
6929
6930         * Removed silc_client_del_client_by_id from silcapi.h.
6931
6932         * Fixed the INFO command to return the server's own info
6933           correctly when querying by Server ID.  Affected file is
6934           silcd/command.c.
6935
6936 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6937
6938         * Removed the non-blocking settings in WIN32 code in the
6939           silc_sock_[read/write] and added SleepEx instead.  Affected
6940           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
6941           of input data is now checked with FIONREAD and ioctlsocket.
6942
6943 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6944
6945         * Call silc_schedule_task_del_by_context in the
6946           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
6947           Affected file lib/silccore/silcprotocol.c.
6948
6949         * Call silc_protocol_cancel for active protocols in the
6950           silc_server_close_connection if the funtion
6951           silc_server_free_sock_user_data has not been called.
6952           Affected file silcd/server.c.
6953
6954         * Generic tasks cannot be deleted using the del_by_fd
6955           task deleting function since generic tasks does not match
6956           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
6957
6958         * Added a notion to SILCOPER help file that the SILCOPER works
6959           only on router server, not on normal server.
6960
6961 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6962
6963         * Added for WIN32 support for the new scheduler as well.
6964           Affected file lib/silcutil/win32/silcwin32schedule.c.
6965
6966         * Fixed the SHA1 implementation to work on various platforms.
6967
6968 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6969
6970         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
6971           API.  It is part of the scheduler now.  Everything else is
6972           as previously but some functions has changed their names.
6973           Checkout the lib/silcutil/silcschedule.h for the interface.
6974           Updated all applications to use the new interface.  Affected
6975           files are lib/silcutil/silcschedule.[ch].
6976
6977 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6978
6979         * Found a bug in the SKE implementation.  The HASH value,
6980           specified by the protocol, was not computed correctly.  The
6981           public key of the responder was not added to the computation
6982           even though it is mandatory.  Affected file lib/silcske/silcske.c.
6983           This unfortunately causes incompatibilities with older
6984           clients and servers.
6985
6986         * Added WIN32 specific network init and uninit functions:
6987           silc_net_win32_init and silc_net_win32_uninit to init and uninit
6988           the Winsock2.  Affected file lib/silcutil/silcnet.h and
6989           lib/silcutil/win32/silcwin32net.c.
6990
6991         * Set the socket always to nonblocking mode on WIN32 after
6992           reading data or writing data.  Affected file is
6993           lib/silcutil/win32/silcwin32sockconn.c.
6994
6995 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6996
6997         * Fixed various compilation problems under WIN32.  Affected
6998           files lib/silcutil/win32/silcwin32thread.c and
6999           lib/silcutil/win32/silcwin32schedule.c.
7000
7001         * Removed all _internal.h #includes from public header
7002           files.  Internal headers must never be included from
7003           public headers.
7004
7005           Removed also the lib/silcske/payload_internal.h file.
7006
7007         * All include files that may be needed (public and some others
7008           included by the public headers) by application developers are
7009           now copied to the ./includes directory.  It does not copy any
7010           internal headers.  Affected file Makefile.defines.pre and all
7011           Makefile.am's under lib/ and subdirs.
7012
7013 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7014
7015         * Do not change the ~/.silc directory's permissions automatically.
7016           Affected file irssi/src/silc/core/clientutil.c.
7017
7018 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7019
7020         * Do not cancel the protocol in silc_server_close_connection
7021           it might cause recursion.  Now cancelled in the function
7022           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7023
7024         * Fixed the silc_server_remove_clients_by_server to regenerate
7025           the channel keys correctly finally.  Added also new function
7026           silc_server_remove_clients_channels to actually do it.
7027           Affected file silcd/server.c.
7028
7029         * Fixed the silc_server_new_channel to not crash by giving
7030           wrong router to the new channel.  Affected file is
7031           silcd/packet_receive.c.
7032
7033 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7034
7035         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7036           which is given as argument to the silc_client_alloc now.
7037           It can be used to configure the client and set various parameters
7038           that affect the function of the client.
7039
7040         * The USERS command in server did not check whether the channel
7041           is private or secret.  Affected file silcd/command.c.
7042
7043         * Added new argument to the USERS command in protocol specification.
7044           The USERS command now can take the channel name as argument
7045           as well.  Added support for this in client and server and
7046           updated the protocol specs.
7047
7048         * Completed the GETKEY command in client. It can be now used
7049           to fetch also servers public key not only some clients.
7050           Affected files lib/silcclient/command[_reply].c.
7051
7052         * Added silc_client_get_server to return server entry by the
7053           server name.  Affected files lib/silcclient/silcapi.h and
7054           idlist.c.
7055
7056         * Redefined the IDENTIFY command in protocol specification to be
7057           more generic.  It now can be used to query information about
7058           any entity in the SILC Network, including clients, servers and
7059           channels.  The query may be based either the entity's name
7060           or the ID.  Added support for this in both client and server.
7061
7062           Affected files silcd/command.c and lib/silcclient/command.c
7063           and command_reply.c.
7064
7065         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7066           the _from_client and _from_server functions.  Affected file
7067           silcd/command.c.
7068
7069         * Added silc_client_get_channel_by_id_resolve to the file
7070           lib/silcclient/silcapi.h to resolve channel information by
7071           its ID.  Added also silc_client_get_channel_by_id that
7072           does not resolve it from the server.
7073
7074 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7075
7076         * Added SilcServerEntry context into the client library
7077           to represent one server.  The INFO command now allocates
7078           these to save the resolved server info.  For now on the
7079           client library will also keep information about servers,
7080           connected and resolved with INFO.
7081
7082           The INFO command now allocates the SilcServerEntry context
7083           and saves the server info there.  The COMMAND_REPLY in
7084           the INFO now returns the parameters to application in
7085           same order as defined in the protocol specification.
7086
7087           The entries are cached in the client->server_cache.
7088
7089         * The INFO command is now issued after received the Client ID
7090           from the server.  Affected file lib/silcclient/client.c.
7091
7092         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7093           to the application as the mode changer might be server.
7094           It is guaranteed that NULL is not returned anymore to the
7095           application.  Affected file lib/silcclient/client_notify.c.
7096
7097           The ID Type is now also passed to the application so that
7098           it can check whether the returned entry is SilcClientEntry
7099           or SilcServerEntry.
7100
7101           Added new function silc_client_get_server_by_id to return
7102           the server entry by ID.  Affected files are the
7103           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7104
7105         * Do not create the channel in the Irssi SILC Client when issuing
7106           the JOIN command but when received the sucessful JOIN command
7107           reply.  Otherwise the channel might get created even though we
7108           could not join it.  The Affected file is
7109           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7110
7111         * Fixed a channel joining bug in router.  The router must also
7112           check the channel modes, invite and ban lists etc. when serving
7113           the JOIN command sent by normal server.  Affected file is
7114           silcd/command.c.  The router now resolves the client's
7115           information from the server who sent the JOIN command if it
7116           does not know it, and processes the JOIN command only after
7117           that.
7118
7119         * Changed the SilcCommandCb to take new argument; void *context2.
7120           Affected file lib/silccore/silccommand.h
7121
7122           The second argument in the command callbacks in the server now
7123           includes the SilcServerCommandReplyContext if the command was
7124           called as pending command callback from the command reply.
7125           Otherwise it is NULL. When called as pending the status of the
7126           command reply will be checked and if it was erronous the
7127           error will be sent to the original sender of the command.
7128           This way the client always receives the error messages even
7129           though the server was actually the one who received the error
7130           when it resent the command to router, for example.  Affected
7131           files silcd/command[_reply].[ch].
7132
7133         * Fixed sending WHOWAS command's error message to client if
7134           the requested client could not be found.  It was missing.
7135           silcd/command.c.
7136
7137         * Changed the CMODE and CUMODE commands reply arguments in the
7138           protocol specification.  The Channel ID is now sent in both
7139           of the commands to identify the channel.  Implemented this
7140           new feature to the client and server.  Affected files
7141           lib/silcclient/command_reply.c and silcd/command.c.
7142
7143         * Made better checks for invite and ban lists in the JOIN
7144           command in server.  Affected file silcd/command.c.
7145
7146 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7147
7148         * The server now performs the incoming host IP/DNS lookup
7149           using the silc_socket_host_lookup and thus does not block
7150           the server anymore.  Affected file silcd/server.c.
7151
7152         * Completed the multi-thread support for SILC Scheduler in
7153           the lib/silcutil/silcschedule.c.
7154
7155         * Fixed the configure.in.pre to detect the pthread correctly
7156           on various systems.
7157
7158         * Fixed a deadlock in silc_task_queue_wakeup in the file
7159           lib/silcutil/silctask.c.
7160
7161 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7162
7163         * Added new function silc_schedule_wakeup that is used in
7164           multi-threaded environment to wakeup the main thread's
7165           schduler. It needs to be used when a thread adds a new task
7166           or removes a task from task queues. After waking up, the
7167           scheduler will detect the task queue changes. If threads
7168           support is not compiled in this function has no effect.
7169           Implemented the wakeup mechanism to both Unix and WIN32
7170           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7171           lib/silcutil/unix/silcunixschedule.c and the
7172           lib/silcutil/win32/silcwin32schedule.c.
7173
7174         * Added new function silc_task_queue_wakeup to wakeup the
7175           scheduler by the specified task queue.  Affected file
7176           lib/silcutil/silctask.[ch].
7177
7178         * The silc_socket_host_lookup_start now wakes up the scheduler
7179           after adding the timeout task.  Affected file is
7180           lib/silcutil/silcsockconn.c.
7181
7182         * The silc_socket_host_lookup is synchronous now if the threads
7183           support is not compiled in.  However, the callback is still
7184           called asyncronously through the scheduler, anyway.  Affected
7185           file lib/silcutil/silcsockconn.c.
7186
7187 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7188
7189         * Added new function silc_socket_host_lookup to perform
7190           asynchronous IP and FQDN lookups for the socket connection.
7191           Affected files lib/silcutil/silcsockconn.[ch].
7192
7193 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7194
7195         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7196           that may or may not compile the mutex support in.
7197
7198           Changed the silc_mutex_alloc interface. It allocates the
7199           mutex now to the sent pointer and returns TRUE or FALSE.
7200
7201           Affected file lib/silcutil/silcmutex.h.
7202
7203         * Wrote the SILC Task Queue interface to support multi-threads.
7204           Affected file lib/silcutil/silctask.[ch].
7205
7206         * Wrote the SILC Scheduler to support multi-threads.  Affected
7207           file lib/silcutil/silcschedule.c.
7208
7209 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7210
7211         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7212           in lib/silcutil/win32/.
7213
7214 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7215
7216         * Defined SILC Mutex API and SILC Thread API and implemented
7217           them for Unix.  Affected files are
7218           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7219           lib/silcutil/unix/silcunixmutex.c and
7220           lib/silcutil/unix/silcunixthread.c.
7221
7222 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7223
7224         * Fixed the silc_server_remove_clients_by_server's channel
7225           key re-generation.  The hash table handling was incorrect
7226           and would not work with many channels.  Affected file is
7227           silcd/server.c.
7228
7229         * Fixed some memory leaks around the server code.
7230
7231         * Rewrote the silc_server_get_users_on_channel to support IPv6
7232           based Client ID's.  Affected file silcd/server.c.
7233
7234         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7235           specification.  However, a separate document must be written
7236           to define the detailed signing procedure and the payload
7237           associated with the flag.  Defined the flag to the
7238           lib/silccore/silcchannel.h as well.
7239
7240 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7241
7242         * Changed the dynamic tables to static size tables in the
7243           lib/silccrypt/silchmac.c.
7244
7245         * Removed GCC dependencies from the code.  A patch by cras.
7246
7247 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7248
7249         * Do not show the error "Error receiving packet bla bla"
7250           in server if it really was not an error (-2 means that reading
7251           is pending).  Affected file silcd/server.c.
7252
7253 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7254
7255         * Fixed a possible crash in silc_server_remove_clients_by_server
7256           in silcd/server.c.  Fixed there also some memory leaks.
7257
7258         * Fixed the silc_idlist_replace_client_id.  It could replace
7259           wrong key in the hash table.  Affected file silcd/idlist.c.
7260
7261         * Do not check whether there are global users on the channel
7262           if the channel->global_users is FALSE.  Affected functions
7263           silc_server_remove_from_one_channel and
7264           silc_server_remove_from_channels in silcd/server.c.  Also,
7265           do not check if the removed client is local as we can be
7266           sure that global client was not removed from the channel
7267           and checking for global users is not needed.
7268
7269         * The silc_server_remove_clients_by_server now re-generates
7270           the channel keys correctly for those channels that had
7271           clients removed from them.  Affected file silcd/server.c.
7272
7273 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7274
7275         * Found the reason of random crashes in the server.  We weren't
7276           ignoring the SIGPIPE signal (which can be sent in write())
7277           and it crashed the server.  Affected file silcd/silcd.c.
7278
7279 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7280
7281         * Assure that sock->user_data is not NULL in the function
7282           silc_server_packet_send in silcd/packet_send.c.
7283
7284         * Disconnect the remote connection if it could not be added
7285           to any ID lists in the server.  The affected file is
7286           silcd/server.c.
7287
7288         * Check in silc_server_packet_send[_real/dest] that the
7289           socket is not disconnecting and ignore the data if it is.
7290           Affected file silcd/packet_send.c.
7291
7292         * Define inline to __inline on native WIN32 compilation.
7293           Affected file includes/silcwin32.h.
7294
7295         * Added some explicit type casts for inline code since MSVC
7296           require them.  Affected files lib/silcutil/silcbuffer.h,
7297           lib/trq/silcdlist.h and lib/trq/silclist.h.
7298
7299         * Print warning in log files from now on if the packet
7300           decryption fails.  Affected file silcd/server.c.
7301
7302 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7303
7304         * Changed the `say' client operation's interface to accept
7305           new `type' argument to indicate the type of the message sent
7306           by the library.  The application may filter the library's
7307           messages according the type.  The affected file is the
7308           lib/silcclient/silcapi.h.
7309
7310         * Added two new functions to lib/silcclient/silcapi.h:
7311           silc_client_del_client and silc_client_del_client_by_id.
7312           Affected file lib/silcclient/idlist.c.
7313
7314         * Moved the clientincludes.h from includes/ to silc/ and
7315           serverincludes.h from includes/ to silcd/.
7316
7317         * The modes for the CMODE and CUMODE are now passed as
7318           uint32 for application with COMMAND_REPLY.  The affected
7319           file is lib/silcclient/command_reply.c.
7320
7321 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7322
7323         * /WHOIS without arguments shows client's own information.
7324           Affected file lib/silcclient/command.c.
7325
7326         * Changed PING to not accept any arguments.  The specs
7327           says that client can ping only the connected server so
7328           requiring an argument is not needed.  Affected file is
7329           lib/silcclient/command.c.
7330
7331 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7332
7333         * Fixed a fatal bug in private message sending and reception
7334           encryption and decryption when using private message keys.
7335           The implementation was incorrect and did not follow the
7336           specification.  It causd that some of the message were
7337           lost since it did not use the sending and receiving keys
7338           as the protocol suggests.  This has been fixed and will cause
7339           incompatibilities with older clients when sending private
7340           message encrypted with private message keys.  Affected files
7341           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
7342           and various other in Irssi SILC Client.
7343
7344           Added `responder' boolean argument to the functions
7345           silc_client_add_private_message_key[_ske] to indicate when
7346           the key is added as responder or initiator of the key
7347           negotiation.
7348
7349 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7350
7351         * Removed the silc_ske_check_version function and created
7352           a SilcSKECheckVersion callback.  Added also a function
7353           silc_ske_set_callbacks that is now used to set all SKE
7354           callbacks.  The callback functions are not given to
7355           the SKE functions anymore, but this function is used to
7356           set the callbacks.
7357
7358         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
7359
7360         * Added `silc_version' argument to the silc_client_alloc
7361           to define the version of the application for the library.
7362           The library will use the version string to compare it
7363           against the remote host's (usually a server) version
7364           string.  Affected file lib/silcclient/silcapi.h
7365
7366         * Added the KE protocol context to Key Agreement context
7367           in client library so that we can abort the SKE if it
7368           is in process when we get timeout.  Affected file is
7369           lib/silcclient/client_keyagr.c.
7370
7371         * Do not resolve the client ID forever if it returns in the
7372           first time that such client does not exist.  This was done
7373           for example with private message.  Affected file is
7374           lib/silcclient/client_prvmsg.c.
7375
7376 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7377
7378         * Do not add regex.h for WIN32.  The affected file
7379           includes/silcincludes.h.
7380
7381         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
7382           not work yet 100%.  It generates the DLL's automatically
7383           when compiling with --with-win32 under cygwin.
7384
7385 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7386
7387         * lib/contrib/regex.c is not compiled on WIN32.
7388
7389         * Added silc_net_get_socket_opt function to the
7390           lib/silcutil/silcnet.h.
7391
7392         * Added includes/silcwin32.h for WIN32 specific includes
7393           and definitions.
7394
7395         * Do not use ptime structure or any of the posix process
7396           functions on WIN32 in lib/silccrypt/silrng.c.
7397
7398         * Added silc_gettimeofday to provide generic function
7399           for struct timeval on all platforms.  Added the function
7400           to lib/silcutil/silcutil.h.
7401
7402 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7403
7404         * Moved the lib/silccore/silcsockconn.[ch] to the utility
7405           library as they clearly belong there.  As a plus side we
7406           can make the actual socket connection routines platform
7407           specific.
7408
7409           Added also new generic function silc_socket_read and
7410           silc_socket_write (that used to be silc_packet_[read/write].
7411           The implementation of these are platform specific.
7412
7413         * Added WIN32 specific routines of silc_socket_[read/write]
7414           to lib/silcutil/win32/silcwin32sockconn.c.
7415
7416 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7417
7418         * Added preliminary support for native WIN32 compilation under
7419           cygwin (using the -mno-cygwin option for GCC) to the
7420           ./configure.in.pre.  The --with-win32 now prepares the
7421           compilation for native WIN32.
7422
7423         * Rewrote the SILC Scheduler interface in the file
7424           lib/silcutil/silcschedule.h.  The scheduler is now context
7425           based and does not have anymore any global static scheduler.
7426           Moved the Unix scheduler to the lib/silcutil/unix/ directory
7427           and created lib/silcutil/win32 directory for WIN32 based
7428           scheduler.
7429
7430         * Added Unix specific network routines to the
7431           lib/silcutil/unix/silcunixnet.c and the old
7432           lib/silcutil/silcnet.c includes now only generic routines.
7433
7434           Added WIN32 specific network routines to the
7435           lib/silcutil/win32/silcwin32net.c.
7436
7437         * Added Unix specific utility functions from the
7438           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
7439
7440         * Added WIN32 SILC Scheduler to the file
7441           lib/silcutil/win32/silcwin32schedule.c. The code is of course
7442           untested.
7443
7444 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7445
7446         * Do not handle JOIN notify in the server if the target client
7447           is not registered (idata->registered == FALSE).  The affected
7448           file is silcd/packet_receive.c.
7449
7450         * Update the nickrec->founder in event_cumode in the Irssi SILC
7451           client.  Affected file irssi/src/silc/core/silc-channels.c.
7452
7453         * Fixed the CUMODE_CHANGE notify handling in the server when
7454           server and router are announcing their clients on channels.
7455           Now the mode changes are saved and notified correctly.  The
7456           affected file is /silcd/packet_receive.c.
7457
7458         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
7459           They really did not replace the cache entry in the ID Cache.
7460           Now they do that.  Affected file silcd/idlist.c.
7461
7462         * Fixed the KICK notify handling in the Irssi SILC client to
7463           update the channel records so that the kicked client does not
7464           appear to be on the channel.  The affected file is
7465           irssi/src/silc/core/silc-channels.c.
7466
7467         * Always update the conn->current_channel when executing command
7468           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
7469
7470         * Fixed the KILL notify handling in Irssi SILC client to remove
7471           the killed client on all channels.
7472
7473 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7474
7475         * Fixed the silc_parse_command_line to remove extra spaces
7476           from the start and end of the arguments.  Affected file is
7477           lib/silcutil/silcutil.c.
7478
7479         * Cancel and free any active protocol in the function
7480           silc_server_close_connection.  Affected file silcd/server.c.
7481
7482         * Cancel and free any active protocol in the function
7483           silc_client_close_connction.  Affected file is
7484           lib/silcclient/client.c.
7485
7486         * Do not execute the KILL command for clients that are in
7487           history (ie. they are not in the network).  Affected file is
7488           silcd/command.c.
7489
7490         * Fixed KILL notify handling, client does not crash anymore.
7491           Affected file irssi/src/silc/core/silc-channels.c.
7492
7493         * Reduced the default packet buffer size from 2048 to 1024 in
7494           lib/silccore/silcpacket.c.
7495
7496         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
7497           counter to the SKE context that is incresed when the SKE library
7498           performs async operation outside the library.  If the outside
7499           process frees the SKE context and FREED status will be set
7500           and the library will detect after the sync operation that the
7501           libary is freed.  The affected files are
7502           lib/silcske/silcske[_status].[ch].
7503
7504         * Resolve the client entry information in the function
7505           silc_client_channel_message to assure that NULL pointer is not
7506           passed as client entry to the application. */
7507
7508         * Fixed the task timeout calculation to assure that there is
7509           never negative timeouts.  The affected file is
7510           lib/silcutil/silcschedule.c.
7511
7512         * Fixed the channel user mode notification sending in server.
7513           It was sent point-to-point to the router (or to server by router)
7514           but it needs to be destined to a channel.  The routines now
7515           supports sending the channel user mode notifys to the channels
7516           when announcing clients and channels.  Affected files are
7517           silcd/server.c and silcd/packet_receive.c.
7518
7519         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
7520           It did not actually replace the old channel entry in the cache.
7521           Affected file lib/silcclient/client_notify.c.
7522
7523 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7524
7525         * Fixed a possible crash in silc_packet_send_prepare.  It now
7526           assures always that there is enough space in the buffer and
7527           at the tail area of the buffer (for MAC).
7528
7529           Fixed the inbound buffer reallocation in silc_packet_read.
7530           It was old code and did not handle the reallocation correctly.
7531           Affected
7532
7533           The affected file is lib/silccore/silcpacket.c.
7534
7535         * Fixed buffer overflow in silc_parse_nickname in the file
7536           lib/silcutil/silcutil.c.
7537
7538 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7539
7540         * make install generates new server keys only if there is not
7541           keys already.
7542
7543 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7544
7545         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
7546           Added check that if the NOREPLY is set then we will not send
7547           the away message.  This avoids infinite loop of away messages
7548           if both clients are away.  The affected file is
7549           lib/silcclient/client_prvmsg.c.
7550
7551         * Fixed client crash if /NICK was given without arguments.
7552           Affected file lib/silcclient/command.c.
7553
7554         * Server does not send the invite list in INVITE command back
7555           to the client if the list was not altered.  Added this notion
7556           to the protocol spec as well.  Affected file silcd/command.c.
7557
7558           Fixed possible crash in INVITE command by checking the
7559           value of silc_server_get_client_route command.
7560
7561         * Fixed the INVITE notify type handling.  The arguments are now
7562           taken in correct order and client does not crash.  The affected
7563           file is irssi/src/silc/core/silc-channels.c.
7564
7565           Removed the "Inviting xxx to channel" message from the
7566           client library away and let the application handle it.
7567           Affected file lib/silcclient/command.c.  Added that message
7568           to Irssi SILC client's message formats.
7569
7570         * Fixed CMODE command crash in client.  It now checks the
7571           amount of arguments correctly and does not crash.  The affected
7572           file is lib/silcclient/command.c.
7573
7574         * Do not create new channel automatically in silc_channels_join
7575           but check whether the channel by that name already exists.
7576           Affected file irssi/silc/core/silc-channels.c.
7577
7578         * Do not send the SERVER_SIGNOFF to router if the disconnected
7579           entity was the router.  Affected file silcd/server.c.
7580
7581         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
7582           SILC client as it was missing from there.
7583
7584           Added the handling of the KICK notify to the Irssi SILC client
7585           as it was missing.  Added "you have been kicked" message to
7586           Irssi SILC client's message modules formats.
7587
7588           Added the handing of the KILL notify to the Irssi SILC client
7589           as it was missing.  Added the kill message module formats
7590           as well.
7591
7592           The affected file is irssi/src/silc/core/silc-channels.c.
7593
7594         * The router did not save the channel mode the server announced.
7595           Affected file silcd/packet_receive.c.
7596
7597         * Fixed a possible crash in INFO command in server.  If the
7598           server did not provide the server info it crashed.  Affected
7599           file silcd/command.c.
7600
7601 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7602
7603         * Fixed the GETKEY command in the server to check also the
7604           global list.  Otherwise the GETKEY would not work correctly
7605           in normal SILC server.  Affected file silcd/command.c.
7606
7607 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7608
7609         * Fixed GETKEY crash, it crashed if the command did not succseed.
7610
7611 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7612
7613         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
7614           is now real and not just an macro interface to GMP.
7615
7616           Removed the entire GMP from the source tree and imported new
7617           NSS MPI library instead.  Reason for removing GMP is that it is
7618           extremely large and compiles extremely slow.  The NSS MPI
7619           is only a few files and compiles in less than 10 seconds.
7620           The speed is also about the same as GMP.  The MPI is imported
7621           to lib/silcmath/mpi.
7622
7623           If the system has GMP installed we will still use the GMP.
7624           If it is not then the NSS MPI will be compiled.
7625
7626 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7627
7628         * Merged a long nickname (127 characters long) crash bugfix from
7629           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
7630
7631         * Merged a freed memory reference bugfix from Irssi CVS tree.
7632           Affected file irssi/src/core/commands.c.
7633
7634 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7635
7636         * Added the server's public key sving and verification to the
7637           server when performing the SKE.  This was missing and the
7638           remote server's (or router's) public key was accepted without
7639           checking whether we have it previously or trust it at all.
7640           Affected file silcd/protocol.c.
7641
7642 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7643
7644         * Check in the silc_server_timeout_remote if protocol is active
7645           and make sure that the protocol's final callback is called so
7646           that all memory if freed.  Affected file silcd/server.c.
7647
7648 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7649
7650         * silc_server_whois_send_reply crashed the server if the nickname
7651           was 127 characters long.  Affected file silcd/command.c.
7652
7653 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7654
7655         * Added sanity check to the silc_server_new_client. If the hostname
7656           is provided inside username then check that the provided hostname
7657           really is the same as the resolved one.  If the hostname was not
7658           resolved then check it from the public key.  Affected file is
7659           silcd/packet_receive.c.
7660
7661         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
7662           if the server disconnected us and the connection is not valid
7663           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
7664
7665         * Moved the silc_client_[chmode|chumode|chumode_char] away from
7666           the library to the lib/silcutil/silcutil.[ch].
7667
7668 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7669
7670         * Close log file after open.  Affected file
7671           lib/silcutil/silclog.c.
7672
7673         * Check whether sock == NULL in silc_client_send_packet and return
7674           if it is.  Affected file lib/silcclient/silcclient.c.
7675
7676         * Check rec->entry == NULL in the Irssi SILC Client before
7677           sending the channel message.  Affecte file is
7678           irssi/src/silc/core/silc-servers.c.
7679
7680 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7681
7682         * Merged a splitted window bugfix from Irssi CVS tree.  The
7683           affected file is irssi/src/fe-text/textbuffer-view.c.
7684
7685         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
7686           It did not print nickname.
7687
7688         * Improved the distributions system a bit.
7689
7690 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7691
7692         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
7693           irssi/src/fe-text/gui-window.c.
7694
7695         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
7696           to in-active server.  The affected file is
7697           irssi/src/silc/core/client_ops.c.
7698
7699         * Resolve the client in USERS command reply if the entry does
7700           not have username resolved.  The affected file is
7701           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
7702           command to WHOIS command to really resolve stuff.  The USERS
7703           is not used any more in any critical section so WHOIS can
7704           be used even though it might be slower than IDENTIFY.
7705
7706         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
7707           format.
7708
7709 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7710
7711         * Changed the protocol API a bit more consistent in the
7712           lib/silccore/silcprotocol.[ch].
7713
7714         * Changed the following headers to ROBODoc format:
7715
7716                 lib/silccore/silcpayload.h
7717                 lib/silccore/silcprotocol.h
7718                 lib/silccore/silcsockconn.h
7719
7720           All core library headers are now formatted.
7721
7722 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7723
7724         * Fixed a bug in Irssi SILC client; do not show that you are
7725           server/router operator if you really are not.  Affected file is
7726           irssi/src/silc/core/client_ops.c.
7727
7728         * Renamed silc_command_free_payload to silc_command_payload_free.
7729           Affected file lib/silccore/silccommand.h
7730
7731         * Added silcmath.h to include the prototoypes of various routines
7732           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
7733           silcprimegen.h.
7734
7735         * Changed the following headers to ROBODoc format:
7736
7737                 lib/silccore/silcchannel.h
7738                 lib/silccore/silccommand.h
7739                 lib/silccore/silcid.h
7740                 lib/silccore/silcidcache.h
7741                 lib/silccore/silcmode.h
7742                 lib/silccore/silcnotify.h
7743                 lib/silccore/silcpacket.h
7744                 lib/silcmath/silcmath.h
7745
7746 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7747
7748         * Added checking to the server code not to start the server if
7749           ciphers and stuff are not configured properly.  Affected files
7750           silcd/serverconfig.[h] and silcd/server.c.
7751
7752         * Changed the layout of the header files of the public interfaces
7753           in the SILC libraries.  The new layout supports ROBODoc
7754           documentation tool (and some others) so that it is easy to create
7755           a library reference manual.  All the other headers and source
7756           code must still follow the CodingStyle document.  Also source
7757           code must not include these ROBODoc stuffs, only the headers.
7758           Furthermore, all public interface headers must now be named
7759           by using `silc' prefix, example: silcapi.h, silccipher.h.
7760           Some files were renamed due to this.  All the other headers
7761           must not be used as public interfaces.  I will update the
7762           CodingStyle document later.  Changed following headers, so far:
7763
7764                 lib/silcclient/silcapi.h
7765                 lib/silccore/silcauth.h
7766                 lib/silccore/silcprivate.h
7767                 lib/silccrypt/silcdh.h
7768
7769 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7770
7771         * Updated TODO.
7772
7773         * Removed silc_client_packet_send_flush from the client library
7774           as it is not needed.  Affected file lib/silcclient/client.[ch].
7775
7776         * Added printing of message of unresolved authentication method
7777           to the Irssi SILC client.  Added it to the module formats.
7778           Removed the same message from the client library.
7779
7780 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7781
7782         * Added new distribution feature, DISTLABEL.  Every distribution
7783           can define own preprocessor label that can be used in the
7784           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
7785           file distributions, acconfig.h.pre and prepare.
7786
7787 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7788
7789         * Added Makefile.defines_int to include the actual definitions
7790           for Makefile.defines.in.  Tested the new distribution system,
7791           created distributions and tested installation.
7792
7793         * Added AWAY message printing to the Irssi SILC client.  Added
7794           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
7795
7796         * Added SCONNECT command to call the SILC's CONNECT command.
7797           Cannot use CONNECT directly since Irssi uses that internally.
7798           Affected file irssi/src/silc/core/silc-servers.c.
7799
7800           Added ACTION local command.  It is same as ME command but takes
7801           the channel as mandatory argument.
7802
7803           Rewrote some of the Irssi's help files to suite for SILC
7804           protocol.
7805
7806 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7807
7808         * Added Makefile.defines[.in] that should for now on be included
7809           in all Makefile.am file in the source tree.  That file includes
7810           all common compilation definitions for SILC source tree.
7811
7812 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7813
7814         * Minor changes to the ./prepare script to change the package
7815           name according the distribution name to the configure.in.
7816
7817 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7818
7819         * Created new distribution system.  Added file `distributions'
7820           that defines all the distributions that can be created out of
7821           the SILC source tree.  The ./prepare script now reads that
7822           file to determine how to prepare the distributions.  The
7823           first argument to the ./prepare is the name of the distribution
7824           and second is the version of the distribution.  If given
7825           without arguments it creates the default (toolkit) distribution
7826           with the default version (defined in ./prepare).
7827
7828           All Makefile.am files that are subject to the distributions
7829           are now named as Makefile.am.pre.  These are ./Makefile.am
7830           and lib/Makefile.am.  Others may be changed later.
7831
7832 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7833
7834         * Added invite list, ban list, some key management and connection
7835           error message printing to module formats in the Irssi SILC client.
7836
7837         * Added new silc_client_set_away_message to set the away message
7838           that is back to the person who sent private message.  The
7839           affected file lib/silcclient/silcapi.h and the
7840           lib/silcclient/client_prvmsg.c.
7841
7842 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7843
7844         * Fixed the private message sending in the Irssi SILC client,
7845           added local command KEY to the Irssi SILC client.
7846
7847           Added key management and key agreement message formats to the
7848           irssi/src/fe-common/silc/module-formats.[ch].
7849
7850           Added USERS (alias WHO) printing, server/router operator
7851           indication and LIST command printing to the module formats.
7852
7853 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7854
7855         * Fixed channel joining notify handling, cumode notify handling
7856           from Irssi SILC client.
7857
7858         * Added SILC specific module-formats to the Irssi SILC client so
7859           that SILC specific message hilighting, colors etc is possible.
7860           Affected file irssi/src/fe-common/silc/module-formats.[ch].
7861
7862           Added channel mode, channel user mode, actions, notices,
7863           whois and whowas printing to the the module-formats.c.
7864
7865         * Fixed a bug in channel deletion in the server.  The channel
7866           is not left to the cache even if the channel founder auth mode
7867           is set when there are no users anymore on the channel.  Affected
7868           file silcd/server.c.
7869
7870         * The silc_net_localhost now resolves the entire hostname including
7871           the domain name.  Affected file lib/silcutil/silcnet.c.
7872
7873 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7874
7875         * Changed the ask_passphrase client operation to be ascynchronous.
7876           It has now a completion callback and a context that the
7877           application must call after it has got the passphrase from
7878           the user.  Affected files lib/silcclient/silcapi.h,
7879           lib/silcclient/protocol.c, lib/silcclient/command.c and
7880           silc/client_ops.c.
7881
7882           Added SilcAskPassphrase callback that the application calls
7883           to deliver the passphrase to the library.
7884
7885         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
7886           The public key verification and especially a certificate
7887           verification is asynchronous procedure.
7888
7889           Added new SILC_SKE_STATUS_PENDING status to indicate the
7890           request is pending and a callback will be called to finalize
7891           the request.
7892
7893           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
7894           indicate that remote end did not send its public key (or
7895           certificate), even though we require it.  Added check for this
7896           condition in the SKE.  This was a security bug, now fixed.
7897
7898           Defined new SilcSKEVerifyCbCompletion callback that is called
7899           when the verification process is completed.
7900
7901           The affected files lib/silcske/silcske_status.h and
7902           lib/silcske/silcske.[ch].
7903
7904         * Changed the verify_public_key client operation to be async
7905           as well.  Defined SilcVerifyPublicKey callback that is used to
7906           indicate the success of the public key verification process.
7907
7908           Changed the server and client to use the new async client
7909           operations.
7910
7911         * Changed the Irssi SILC client's internal scheduler to be called
7912           twice as many times as it used to be.  As a result the client
7913           should be a bit faster now.  Affected file is
7914           irssi/src/silc/core/silc-core.c.
7915
7916         * Added support to Irssi SILC client of asynchronous public key
7917           verification and passphrase inquiry.  Affected file is
7918           irssi/src/silc/core/silc-core.c.
7919
7920 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7921
7922         * Do not say "You have left channel %s" in client library.
7923           Moved it to the application.  Affected files are
7924           lib/silcclient/command.c and silc/client_ops.c.
7925
7926         * Fixed silc_client_get_clients.  Command context was not
7927           duplicated and was freed memory in the callback.  Affected
7928           file lib/silcclient/idlist.c.
7929
7930         * Do not say "you are now talking..." on JOIN command in the
7931           client library.  The appliation must handle it.
7932
7933         * Do not say ".. changed topic to" in command reply in the
7934           client libary.  The application must handle it.
7935
7936         * Fixed TOPIC command sending in the client library.
7937
7938         * Fixed a memory leak in silc_client_command_free in the file
7939           lib/silcclient/command.c.
7940
7941 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7942
7943         * Imported a modified version of Irssi client to the source tree.
7944           The Irssi will be used to create a new client called
7945           Irssi SILC.  Imported to irssi/.
7946
7947           Added silc_core_init_finish function to the Irssi.  Affected
7948           file irssi/configure.in.
7949
7950           A lot changes in the Makefile.ams around the irssi tree.
7951
7952 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7953
7954         * Do not rehash if the new size is same as the old size of the
7955           hash table, in the silc_hash_table_rehash*.  The affected file
7956           lib/silcutil/silchashtable.c.
7957
7958         * Replaced hash_table_del_by_context calls from the server
7959           (when channel->user_list and client->channels) to the
7960           hash_table_del as it is sufficient and faster.
7961
7962 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7963
7964         * Added silc_hash_table_list, silc_hash_table_get and the
7965           SilcHashTableList structure to provide an alternative way to
7966           traverse the hash table.  The affected files are
7967           lib/silcutil/silchashtable.[ch].
7968
7969         * Changed the server's idlist routines to use the hash table
7970           routines to optimize the code.
7971
7972 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7973
7974         * Replaced the client entry's `channel' list and channel entry's
7975           `user_list' list to hash tables for optimized lookup.  Changed
7976           the code to use the hash table interface around the code.
7977           Affected file lib/silcd/idlist.[ch].
7978
7979         * Added `auto_rehash' boolean argument to the function
7980           silc_hash_table_alloc to indicate whether the hash table should
7981           auto-rehash when it thinks is appropriate time.  It will
7982           increase the hash table size if the there is twice as much
7983           entries in the table than the size of the table, and will
7984           decrease the size if there are twice as less entries than
7985           the size of the table.
7986
7987 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7988
7989         * Fixed silc_xxx_get_supported to not crash at some circumstances.
7990
7991 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7992
7993         * silc_idcache_purge_by_context deletes the entry now by context
7994           as it is supposed to do.  Affected file lib/silccore/idcache.c.
7995
7996         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
7997           client is not anymore valid (WHOWAS givens the info) and not
7998           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
7999
8000 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8001
8002         * Removed the `data' and `data_len' arguments from the ID Cache
8003           interfaces and added `name' argument.  ID Cache does not handle
8004           anymore the binary data only a names associated with given ID.
8005
8006         * When hashing a Client ID with silc_hash_id the entire ID is
8007           not hashed anymore, instead only the hash of the Client ID is
8008           hashed.  This way we can access the Client ID from the cache
8009           with Client ID but with the hash of the ID (which is a hash of
8010           the nickname) as well without any difference in performance.
8011
8012           Added also silc_idcache_find_by_id_one_ext to do one on one
8013           searching when we have the actual ID.  Added also function
8014           silc_hash_client_id_compare.  The affected files are
8015           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8016
8017         * When hashing the name associated with a ID it is always done
8018           in lowercase.  This way we can access the cache without worrying
8019           about case-sensitivity, even though, for example nicknames are
8020           case sensitive.
8021
8022         * Fixed a bug in server with channel message sending.  It put
8023           wrong ID type as destination ID.  The affected file
8024           silcd/packet_send.c.
8025
8026         * silc_idcache_del_by_context now deletes from all hash tables
8027           by context.  Affected file lib/silccore/idcache.c.
8028
8029 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8030
8031         * Changed the client library to use the new ID Cache interface.
8032           Changes around the source tree.
8033
8034         * Added silc_hash_table_rehash_ext to rehash with specific
8035           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8036
8037         * Added silc_hash_string_compare to compare two strings in the
8038           hash table.  Affected file lib/silcutil/silcutil.[ch].
8039
8040 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8041
8042         * Added new function silc_idcache_del_by_context into the
8043           lib/silccore/idcache.[ch].
8044
8045         * Changed the server's ID list routines to use the new ID Cache
8046           interface.  Changes around the source tree.
8047
8048 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8049
8050         * Added silc_hash_table_del[_by_context]_ext functions in to the
8051           lib/silcutil/silchashtable.[ch].
8052
8053           Removed silc_hash_table_find_all* routines and added new
8054           silc_hash_table_find_foreach to replace them.
8055
8056           Added silc_hash_table_replace_ext function as extended
8057           replacing function.  Separated the simple hash table interface
8058           from the extended hash table interface in the file
8059           lib/silcutil/silchashtable.h.
8060
8061         * Fixed minor bugs and changed it to use some of the new
8062           hash table functions in lib/silccore/idcache.c
8063
8064 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8065
8066         * Added new function silc_hash_table_find_all to return all keys
8067           in the hash table by the specified key.  As the hash table is
8068           collision resistant it also makes it possible to have several
8069           duplicate keys in the hash table.  This function may be used to
8070           find all of the keys from the hash.
8071
8072           Added user_context arguments to the SilcHashFunction,
8073           SilcHashCompare and SilcHashDestructor to deliver user specified
8074           context.
8075
8076           Added new fuctions silc_hash_table_find[_all]_ext to do
8077           extended lookup with specified hash and compare functions and
8078           specified user contexts.
8079
8080           Added new function silc_hash_table_add_ext to add the key
8081           with specified hash function and user context.
8082
8083           Added new function silc_hash_table_foreach to traverse all
8084           entrys in the hash table.  Added SilcHashForeach callback
8085           function.
8086
8087           Added new function silc_hash_table_del_by_context to delete
8088           the entry only if the context associated with the key matches.
8089
8090           Affected files are lib/silcutil/silchashtable.[ch].
8091
8092         * Removed silc_hash_[server/client/channel]_id and added just
8093           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8094           silc_hash_id_compare to compare two ID's using as the hash table
8095           comparison function.  Added also silc_hash_data to hash
8096           binary data and silc_hash_data_compare to compare it.
8097
8098         * Removed silc_idlist_find_client_by_hash as it is not needed
8099           anymore.  Affected file silcd/idlist.[ch].
8100
8101         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8102           to use internally the SilcHashTable.  The new ID Cache is a lot
8103           faster than the old one.  Some of the ID Cache interface was also
8104           rewritten and obsolete and stupid functions were removed.
8105
8106 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8107
8108         * Added entry_count field to the SilcHashTable to keep the number
8109           of the entries in the table.  Implemented the function
8110           silc_hash_table_rehash.  Added new function
8111           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8112
8113           Fixed a minor bug in silc_hash_table_free.
8114
8115         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8116           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8117           into the lib/silcutil/silcutil.[ch].
8118
8119 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8120
8121         * Implemented a collision resistant hash table into the
8122           lib/silcutil/silchashtable[ch].  See the header and the source
8123           for the SilcHashTable API.
8124
8125 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8126
8127         * Merged dotconf version 1.0.2 into lib/dotconf.
8128
8129 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8130
8131         * Do not compile anything in lib/silcsim/* if the SIM support
8132           is not enabled.  The tree should now compile without problems
8133           under cygwin.
8134
8135 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8136
8137         * Compiled the SILC under cygwin.  Compiled and tested briefly
8138           without problems.  More tests needed.  The SIMs didn't compile
8139           though.
8140
8141         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8142
8143         * Fixed possible crash in silc_get_username in the
8144           lib/silcutil/silcutil.c.
8145
8146 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8147
8148         * Fixed a va_arg in silc/client_ops.c.
8149
8150         * Oops, RC5 routines were named AES and caused some problems
8151           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8152
8153 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8154
8155         * Added new SilcIDIP structure into the lib/silccore/id.h and
8156           replaced the old `ip' fields from all SILC ID's to that type.
8157           This is a step towards IPv6 support.
8158
8159           The silc_id_get_len takes now the ID as an extra argument.
8160           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8161           both IPv4 and IPv6 based ID's.
8162
8163           The affected files are lib/silccore/id.[ch] and other files
8164           around the tree using these routines.
8165
8166         * Removed the ID length arguments in server from various
8167           silc_server_send_notify_* routines -> they are not needed
8168           anymore.
8169
8170 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8171
8172         * Fixed memory leak in silc_encode_pem_file in the file
8173           lib/silcutil/silcutil.c.
8174
8175 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8176
8177         * Check minor version as well in the SKE.  Affected files are
8178           silcd/protocol.c and lib/silcclient/protocol.c.
8179
8180         * Added --identifier option to the server so that an identifier
8181           can be when creating the public key for the server.  Affected
8182           file is silcd/silcd.c.
8183
8184         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8185           lib/silccrypt/silcpkcs.c.
8186
8187 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8188
8189         * Register default ciphers and stuff when using -C option with
8190           the server.  Affected file sildc/silcd.c.
8191
8192         * Put back the servers public key filename format, it is better
8193           than the new one.  For now, the client keys are saved with the
8194           new filename format.  The affected file silc/client_ops.c.
8195
8196         * Implemented the Cipher API for the rest of the ciphers that
8197           did not implement it or implemented it the wrong way.
8198
8199 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8200
8201         * Register default ciphers and stuff when using the -S option
8202           in the client.  Affected file silc/silc.c.  Same also when
8203           creating new key pair with -C option.
8204
8205 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8206
8207         * Fixed the silc_verify_public_key client operation function to
8208           save the public keys differently.  The fingerprint is now
8209           used as filename and not the hostname.  This way also the
8210           client keys are saved uniquely and not with hostnames.  The
8211           affected file is silc/client_ops.c.
8212
8213         * Trimmed the silc_hash_fingerprint function to remove extra
8214           whitespaces from the end of the fingerprint.  The affected
8215           file is lib/silccrypt/silchash.c.
8216
8217         * Updated TODO.
8218
8219         * Added silc_cipher_register_default function to register all
8220           default ciphers.  It can be used when configuration files
8221           does not exist and the application does not want any specific
8222           ciphers in any specific order.
8223
8224           The SilcDList is now used as silc_cipher_list dynamically
8225           allocated cipher list.  Removed the static list all together
8226           and now all ciphers must be allocated to the dynamic list.
8227           The silc_cipher_alloc routine was changed to check only the
8228           dynamic list.
8229
8230           All silc_cipher_* routines that used to return int returns
8231           now bool.
8232
8233           The affected files lib/silccrypt/silccrypt.[ch].
8234
8235         * The same thing was done to silc_hash_* as for silc_cipher_*
8236           routines.  Affected files lib/silccrypt/silchash.[ch].
8237
8238         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8239           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8240           Added also silc_pkcs_[un]register[_default] functions.
8241           Removed the data_context from the PKCS API.
8242
8243         * Added silc_hmac_register_default function to register default
8244           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
8245           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
8246           to unregister all hmacs at once.
8247
8248         * Register the default ciphers, hash functions, PKCSs and HMACs
8249           if client's configuration file does not exist.  The affected
8250           file silc/silc.c.
8251
8252         * The client did not load the hash functions from the SIM
8253           modules at all.  Added support for this.  Affected file is
8254           silc/clientconfig.c.
8255
8256         * When decoding public key with silc_pkcs_public_key_decode, check
8257           the supported algorithm only if PKCS are registered.  Affected
8258           file lib/silccrypt/silcpkcs.c.  The same was done with the
8259           silc_pkcs_private_key_decode.
8260
8261         * Fixed the SILC List routines to keep the list always in order.
8262           It used to change the list's order when traversing the list but
8263           not it preserves the order.  Affected file lib/trq/silclist.h.
8264
8265 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8266
8267         * Added the client library to use the SilcSocketConnection's
8268           reference counter (by silc_socket_dup) to prevent the bug that
8269           the socket object may be freed underneath async operation.
8270
8271         * The name resolv library checking fixes in the configure.in.pre.
8272           The patch by salo.
8273
8274         * Created new version of the protocol drafts for future
8275           development. The -03 drafts are the ones that will be changed
8276           in the trunk now and the -02 will remain as they are.
8277
8278         * Send list of CUMODE notifys to the router when announcing
8279           the channel users to the router.  Affected file silcd/server.c.
8280           If the router receiving channel founder CUMODE for a channel
8281           that already has channel founder it will send CUMODE notify
8282           to the sender to remove the channel founder rights from the
8283           announced client.  Affected file silcd/packet_receive.c.
8284
8285         * The CUMODE notify may now use Server ID as well as the entity
8286           who changes the mode.  Updated protocool specs.
8287
8288         * Updated INSTALL and README files.
8289
8290 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8291
8292         * New web pages in the http://silc.pspt.fi.  The pages was
8293           designed by salo.
8294
8295         * Updated CREDITS.
8296
8297 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8298
8299         * Implemented the [DenyConnectin] config section in the server.
8300           Added silc_server_config_denied_conn to check whether incoming
8301           connection is denied.  Affected file silcd/serverconfig.[ch].
8302
8303         * Do not check the ports when checking the incoming configuration
8304           data if the port is 0, meaning any.  Affected file is
8305           silcd/serverconfig.c.
8306
8307 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8308
8309         * Fixed buffer overflow in silc_string_compare in the file
8310           lib/silcutil/silcutil.c.
8311
8312         * Fixed double free in silc_server_command_leave in the file
8313           silcd/command.c.
8314
8315 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8316
8317         * Fixed the version checking in the server.  Affected file is
8318           silcd/protocol.c.
8319
8320 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8321
8322         * Fixed the configuration data fetching when accepting new
8323           connections in the server.  Affected file silcd/server.c.
8324
8325 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8326
8327         * Added `sender_entry' argument to the function
8328           silc_server_packet_relay_to_channel so that we can check
8329           whether some destination actually belongs to the same route
8330           the sender belongs (ie, we must not resend the packet to the
8331           sender).  Affected file silcd/packet_send.[ch].
8332
8333         * Added `servername' field to the SilcClientEntry in the server
8334           to hold the name of the server where client is from.  Affected
8335           file is silcd/idlist.h.
8336
8337 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8338
8339         * Moved the channel message encrypting in the router betwen
8340           router connections from silc_server_channel_message to the
8341           silc_server_packet_relay_to_channel since we want to check
8342           whether we have anybody channel before encrypting anything.
8343           Affected files silcd/packet_[receive/send].c.
8344
8345 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8346
8347         * Fixed the [AdminConnection] server config section to support
8348           multiple entries.  Affected file silcd/serverconfig.c.
8349
8350         * Added support into the server to check the validity of the
8351           incoming connection before executing any KE or authentication
8352           protocols.
8353
8354         * The connection configuration is now saved to the KE and
8355           connection auth protocol contexts and not fetched anymore in
8356           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
8357
8358         * The local hosts listenning address and port is also resolved
8359           now when starting the server.  We want to have the socket object
8360           to include the real address and port for the listener.  Added
8361           new function silc_net_check_local_by_sock into the files
8362           lib/silcutil/silcnet.[ch].
8363
8364         * Fixed a broadcast bug in server -> do not broadcast if we
8365           are standalone.
8366
8367         * Fixed a routing bug.  Do not route broadcast packets ever.
8368           Broadcast packets must be processed always and not routed since
8369           they may be destined to some other host than yourself and thus
8370           would get routed without no good reason.  Affected file is
8371           silcd/server.c.
8372
8373         * Added function silc_server_config_is_primary_route to check
8374           whether primary router connection has been configured (a router
8375           configuration that we are initiating).  If there is not, we
8376           will assume that there is only two routers in the SILC network
8377           and we will use the incoming router connection as our primary
8378           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
8379
8380         * Changed the order of the broadcasting.  Broadcast _after_ the
8381           packet has been processed not before.  Affected file is
8382           silcd/server.c.
8383
8384         * Fixed a [ClientConnection] parsing bug.  The port was never
8385           parsed correctly thus resulting to port 0.  Affected file
8386           silcd/serverconfig.c.
8387
8388         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
8389           argument and did not set the broadcast packet flag.  Affected
8390           file silcd/packet_send.c.  Fixed same bug in the function
8391           silc_server_send_notify as well.
8392
8393         * If we receive NEW_ID packet for our own ID in the server, ignore
8394           the packet.
8395
8396 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8397
8398         * Updated TODO.
8399
8400         * Removed the nickname from the Private Message Payload.
8401           Updated the code and the protocol specs.
8402
8403         * Updated protocol specs for submitting to the IETF.
8404
8405         * Tweaked the Random Number Generator a bit.  Affected file
8406           lib/silccrypt/silcrng.c.  Exported a new function
8407           silc_rng_[global]_add_noise which can be used to add more
8408           noise to the RNG.
8409
8410 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8411
8412         * Do not parse packets with different timeout when protocol
8413           is active -> may cause problem with rekey.  Affected file
8414           silcd/server.c.
8415
8416         * When server receives signoff notify it must not create
8417           new channel key if the client is on any channels since the
8418           sender of the signoff notify will create it.
8419
8420 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8421
8422         * Added printing of error messages during SKE protocol from the
8423           failure packet sent by server during SKE.  Affected file
8424           silc/client_ops.c.
8425
8426         * Removed the client's failure_callback handling with timeout
8427           and handle it immediately when received.
8428
8429         * The SKE library returned wrong type in SUCCESS and FAILURE
8430           packets.  They must be 32 bit MSB not 16 bit MSB.
8431
8432 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8433
8434         * Ok, rewrote the logic of the re-key and now it seems to work.
8435           I tested it on high traffic with frequent re-keys without
8436           problems.  Added hmac_receive (and renamed hmac to hmac_send)
8437           in SilcClientConnection in lib/silcclient/client.h and
8438           in SilcIDListData in silcd/idlist.h.  Also, removed the
8439           SilcPacketParserContext's cipher and hmac fields as they are
8440           not needed anymore and actually caused some problems when
8441           the ciphers and hmac's changed underneath the packet parser.
8442
8443 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8444
8445         * If re-key protocol is active then process the incoming packets
8446           synchronously since we must assure that icoming packets encrypted
8447           with the old key is processed before the new keys is set to
8448           use.  This is true other packets than for REKEY packets.
8449           Affected file silcd/server.c.  The same was done to client library
8450           as well, affected file lib/silcclient/client.c.
8451
8452 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8453
8454         * Fixed bug in client and server to accept the force send if
8455           the packet is send from silc_[server/client]_packet_process
8456           function.  Otherwise the packets are never delivered, oops.
8457
8458 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8459
8460         * Disable force sending of packets when REKEY protocol is active.
8461           We must assure that no packet is sent directly when rekey is
8462           performed.  All packets must be sent through packet queue.
8463           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
8464           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
8465           function is silc_[server/client]_packet_send_real to check
8466           the situation.
8467
8468         * Replaced the SIM paths from example config files to
8469           /usr/local/modules.  Also, make install creates now
8470           /usr/local/silc/logs directory to hold all the SILC server
8471           logs.
8472
8473 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8474
8475         * Made the configure.in.pre work on Solaris.  Patch by salo.
8476
8477         * Made all ciphers compatible with non-x86 machines.  Defined
8478           CBC mode macros into lib/silccrypt/ciphers_def.h.
8479
8480 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8481
8482         * Fixed the make install.
8483
8484 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8485
8486         * When MAC computation fails the silc_packet_decrypt returned 0
8487           even though it was supposed to return -1.  Fixed this.  The
8488           affected file is lib/silccore/silcpacket.c.
8489
8490         * Do not replace the config files in /etc/silc (in make install)
8491           if they already exist.  Affected file ./Makefile.am.
8492
8493         * Do not send re-key packets immediately but through packet queue.
8494           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
8495
8496         * Changed silc_net_check_host_by_sock to return FALSE if the
8497           IP/DNS could not be resolved.  Though, it returns the IP address
8498           now even if it could not resolve it (but returns also FALSE).
8499           Affected file lib/silcutil/silcnet.[ch].
8500
8501 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8502
8503         * Added silc_pkcs_decode_identifier to decode the public key's
8504           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
8505           Added also silc_pkcs_free_identifier.  Added also new context
8506           SilcPublicKeyIdentifier.
8507
8508         * Added -S option to the silc client.  It is used to dump the
8509           contents of the specified public key file.
8510
8511         * Changed the PKCS api to return the public key length when
8512           setting the public key.
8513
8514         * Fixed a fatal bug in the public and private key file loading.
8515           Affected file lib/silccrypt/silcpkcs.c.
8516
8517         * Execute the packet parsing for client with zero (0) timeout
8518           if the protocol is active.  Affected file silcd/server.c.
8519
8520 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8521
8522         * Made the key generation options to the silcd program.  Added
8523           -C option, equivalent to client's option.
8524
8525         * Added new [ServerKeys] config section to the server.  It
8526           configures the server's public and private key.
8527
8528         * Defined generic Public Key Payload into the protocol
8529           specification to send specific type of public keys and
8530           certificates.
8531
8532         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
8533           public key or certificate.
8534
8535         * Implemented the GETKEY command to the server and to the
8536           client library and on user interface.
8537
8538 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8539
8540         * Made preliminary `make install' work.
8541
8542 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8543
8544         * Added SilcServerRekey context into silcd/idlist.h.
8545
8546         * Added the PFS support as defined in the specification to the
8547           SKE protocol.  Affected files lib/silcske/*.c.
8548
8549         * Added `ske_group' field to the SilcServerRekey context to hold
8550           the number of the SKE group that is used with PFS in re-key.
8551           Affected file silcd/idlist.h.
8552
8553         * Added PFS re-key support to the server.  Affected file is
8554           silcd/protocol.c.
8555
8556         * Added silc_protocol_cancel to cancel execution of the next
8557           state of the protocol.  Affected file is
8558           lib/silccore/silcprotocol.[ch].
8559
8560         * Added the re-key support with and without PFS to the client
8561           library.  Re-key is performed once in an hour, by default.
8562
8563           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
8564           Added silc_client_rekey_callback and silc_client_rekey_final.
8565           Affected files are lib/silcclient/protocol.[ch] and
8566           lib/silcclient/client.[ch].
8567
8568         * Removed the `hmac_key' and `hmac_key_len' fields from the
8569           SilcClientConnection structure; not needed.  Affected file is
8570           lib/silcclient/client.h.
8571
8572         * Updated TODO.
8573
8574 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8575
8576         * Do not ask whether user wants to use the negotiated private key
8577           for private messages, just use it.  Affected file is
8578           silc/local_command.c.
8579
8580         * Added `send_enc_key' and `enc_key_len' fields to the
8581           SilcIDListData structure since they are needed in the re-key
8582           phase.  Affected file is silcd/idlist.[ch].
8583
8584         * Implemented the simple re-key protocol into the server.
8585           Affected files silcd/server.c and silcd/protocol.[ch].  The
8586           re-key will be performed once in an hour, by default.
8587
8588           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
8589           Added silc_server_rekey, silc_server_rekey_callback and
8590           silc_server_rekey_final.
8591
8592         * Removed Tunneled flag from the protocol.  Updated the code
8593           and the specifications.
8594
8595         * Adde `pfs' field to the SilcIDListData to indicate whether
8596           the PFS is to be performed in the re-key.  Affected file is
8597           silcd/idlist.h.
8598
8599 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8600
8601         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
8602           int64 of at least the xintXX size.  If void * is less that 4
8603           bytes uint32 * will be used.  Defined bool as boolean.
8604
8605         * Changed _ALL_ unsigned long and unsigned int to uint32,
8606           unsgined short to uint16 in the source tree.
8607
8608         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
8609           not handle clients that has entry->data.registered == FALSE.
8610           They are not in the network anymore.  Affected file is
8611           silcd/server.c.
8612
8613 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8614
8615         * Implemented the sending of the SERVER_SIGNOFF notify in the
8616           server.  Affected file is silcd/server.c.
8617
8618         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
8619           Added also silc_notify_payload_encode_args into the
8620           lib/silccore/silcnotify.[ch].
8621
8622         * Implemented ther SERVER_SIGNOFF notify handling in the server.
8623           Affected file silcd/packet_receive.c.
8624
8625         * Implemented the SERVER_SIGNOFF notify handling in the client
8626           library.  Affected file lib/silcclient/client_notify.c.  Also,
8627           implemnted the printing of the SERVER_SIGNOFF info to the
8628           application.  Affected file silc/client_ops.c.
8629
8630         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
8631           if the deleting was successful.  Affected file silcd/idlist.[ch].
8632
8633         * Added support for public key authentication in the connection
8634           authentication protocol in the client library.  Affected file
8635           lib/silcclient/protocol.c.
8636
8637         * Changed the server's silc_idlist_get_clients_by_* interface
8638           to support already allocated array so that new entries may be
8639           added to pre-allocated array.  Affected file silcd/idlist.[ch].
8640           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
8641           and command replies.
8642
8643         * All command reply functions in the server now calls the
8644           pending command callback even if error occured.  This way the
8645           error will be delivered to the client as well.  Affected files
8646           silcd/command.c and silcd/command_reply.c.
8647
8648         * Fixed INFO command to return local server's info if no server
8649           was provided.  Affected file lib/silcclient/command.c.
8650
8651         * Removed RESTART command for good.  Updated the code and the
8652           protocol specs.
8653
8654         * Rewrote parts of the task system.  It is a bit simpler now.
8655           Removed unsued task priorities. The affected files are
8656           lib/silcutil/silctask.[ch].
8657
8658 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8659
8660         * Moved the USERS printing from the library to the application.
8661           Affected files lib/silcclient/command.c and silc/client_ops.c.
8662
8663 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8664
8665         * Updated TODO.
8666
8667         * Added channel key re-key support.  The re-key is perfomed
8668           only by the router and is done once in an hour.  Added `rekey'
8669           field to the SilcChannelEntry in the server.  Affected files
8670           silcd/server.c and silcd/idlist.h.
8671
8672         * Added silc_task_unregister_by_context into the file
8673           lib/silcutil/silctask.[ch].
8674
8675 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8676
8677         * Added SILC_UMODE_GONE mode to indicate when the client is not
8678           present in the SILC network.  Added also support to the local
8679           command AWAY that will set this mode.  Added support of showing
8680           "xxx is gone" in WHOIS command.  The USERS command shows the
8681           gone status as well.
8682
8683         * Fixed setting server and router operator privileges in the
8684           server's UMODE command.  Affected file silcd/command.c.
8685
8686         * Merged the SKE KE1 and KE2 payloads into one payload.  The
8687           new KE payload is equivalent to the old KE2 payload.
8688
8689           Cleaned up the SKE Start Payload parsing.  It now uses the
8690           simple buffer unformatting to do the parsing.  A lot faster
8691           now.
8692
8693           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
8694           to the SKE that is used to indicate whether both of the SKE
8695           parties should perform authentication.  By default only the
8696           responder performs authentication.  By setting this flag also
8697           the initiator must do authentication.  By default it is unset
8698           since in normal SKE case, client to server connection, only
8699           the responder should do authentication.  When doing SKE between
8700           two clients both should perform authentication.  Updated the
8701           code and the protocol specs.
8702
8703         * A little fix to IDENTIFY command in the server.  Search the
8704           client first by hash not nickname.  Affected file is
8705           silcd/command.c.
8706
8707         * Fixed the silc_client_close_connection to support closing
8708           the client to client connections wihtout deleting too much
8709           data.  Affected file lib/silcclient/client.c.
8710
8711         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
8712           are received if protocol used to be active but is not anymore
8713           the application would crash due to NULL pointer dereference.
8714           Affected files silcd/server.c and lib/silcclient/client.c.
8715
8716         * Added `hash' field to the SilcClientConnection to include
8717           the hash function negotiated in the SKE protocol.
8718
8719         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
8720           to set the channel founder authentication data.  A client can
8721           claim the founder rights later by providing the authentication
8722           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
8723           This way the channel founder can regain the channel founder
8724           privileges even it is left the channel.  This works only on
8725           local server and the client must be connected to the same
8726           server to be able to regain the founder rights.  Updated the
8727           protocol specs accordingly.
8728
8729           Added support to the CMODE command in the client to set the
8730           founder auth data.  Read the README to see how to set it.
8731
8732           Added support to the CUMODE command to claim the founder
8733           rights.  Read the README to see how to do it.
8734
8735           Added support for the founder authentication to the Channel
8736           Entry in the server.  Affected file silcd/idlist.h.
8737
8738           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
8739           server's CMODE command.  Affected file silcd/command.c.
8740
8741         * Added the following new functions into lib/silccore/silcauth.[ch]:
8742           silc_auth_get_method and silc_auth_get_data.
8743
8744         * The server now saves the remote hosts public key to the
8745           SilcIDListData pointer.  Affected file silcd/protocol.c.
8746
8747         * The normal server now does not remove the channel entry from
8748           the cache if the founder authentication data is set.  It used
8749           to remove it if the founder was the last one on the channel on
8750           the server and left the channel.  The auth data is saved and
8751           if the channel is re-joined later the old entry is used with
8752           the old auth data.  Affected files silcd/command_reply.c and
8753           silcd/server.c.
8754
8755         * Removed the `pkcs' field from the SilcIDListData structure
8756           in the server; it is not used.  Affected file silcd/idlist.h.
8757
8758 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8759
8760         * Fixed packet processing on slow links.  Partial packets were
8761           never re-processed because the incoming data buffer was cleared
8762           by the application.  Application must not directly clear the
8763           sock->inbuf, the packet processing routines handle it.  Fixed
8764           this in client library and in server.
8765
8766 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8767
8768         * Fixed the WHOIS and IDENTIFY send reply function to really
8769           check whether to send list or just one entry.  Affected file
8770           silcd/command.c.
8771
8772         * Cleaned up the LEAVE command's channel key distribution.  The
8773           affected file silcd/command.c.
8774
8775         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
8776           can enforce the channel mode as well.  In that case the ID
8777           includes the ID of the server.  The code now enforces the
8778           mode change if the router have different mode than the server.
8779
8780         * The notify client operation with CMODE_CHANGE notify can now
8781           return NULL client_entry pointer if the CMODE was not changed
8782           by client.  Application must check for this.
8783
8784         * Added <Server ID> argument to INFO command to support server
8785           info fetching by Server ID.
8786
8787         * Added silc_server_announce_get_channel_users to get assembled
8788           packets of channel users of the specified channel.  Affected
8789           file silcd/server.[ch].
8790
8791         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
8792           was freed underneath the ID Cache.
8793
8794         * Re-announce clients when the server received CHANNEL_CHANGE
8795           notify from the router.  Affected file silcd/packet_send.c.
8796
8797 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8798
8799         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
8800           crashed since it did not handle the fact that there is no cipher
8801           called "3" and didn't check the error condition.  Now fixed.
8802
8803         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
8804           flag.  It can be used to send message requests.
8805
8806 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8807
8808         * Implemented the RESTART command in the client.
8809
8810         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
8811           notice type messages.  Added notice printing to the user
8812           interface.
8813
8814         * The channel keys are not re-generated if the channel's mode
8815           is PRIVKEY, ie private key on the channel exists.  Affected
8816           files silcd/server.c and silcd/command.c.
8817
8818         * Fixed a little bug in channel message delivery when channel
8819           private keys are set in the server.  Affected file is
8820           silcd/packet_send.c.
8821
8822         * Changed the setting on channel->on_channel = TRUE from the
8823           silc_client_save_channel_key to the JOIN command reply.  The
8824           key payload is not received if the private channel key is set.
8825           Affected file lib/silcclient/command_reply.c and the
8826           lib/silcclient/client_channel.c.
8827
8828         * When the CMODE_CHANGE notify is sent and the channel private
8829           key mode is removed the channel key must be re-generated in
8830           other cells as well.  Added this support for the router in the
8831           silcd/packet_receive.c.
8832
8833         * Added new local command NOTICE to send notice message on
8834           channel.  Affected file silc/local_command.[ch].
8835
8836 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8837
8838         * Added new local command ME to the client.  It is used to send
8839           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
8840           some action.  Affected file silc/local_command.[ch].
8841
8842         * Changed channel_message and private_message client operations
8843           to deliver the message flags to the application.  Added also
8844           the `flags' arguments to the silc_client_send_channel_message
8845           and silc_client_send_private_message functions.  Affected file
8846           silcapi.h.
8847
8848 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8849
8850         * Redefined the Private Message Payload to support private message
8851           keys and to support the new private message flags.  Updated
8852           the protocol specs.  Flags makes it possible to have for example
8853           CTCP style messages.
8854
8855         * Added new type SilcPrivateMessagePayload and defined an API
8856           for it in the lib/silcclient/silcprivate.[ch].
8857
8858         * Tested private message private keys successfully.  Tested the
8859           private message key set, unset and list commands with the new
8860           KEY command.
8861
8862         * Redefined the Channel Message Payload to include the channel
8863           message flags (equal with private message flags) to support
8864           for example CTCP style messages.
8865
8866         * Defined some of the message (for channel and private message)
8867           flags.  Updated the protocol specs and added the flags to the
8868           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
8869
8870 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8871
8872         * Added SilcKeyAgreementStatus type to the key agreement routines
8873           to indicate the current status and error if one occured.
8874           The status types are defined in the lib/silcclient/silcapi.h.
8875
8876         * Added new local command KEY that is used to set and unset private
8877           keys for channels, set and unset private keys for private messages
8878           with remote clients and to send key agreement requests and
8879           negotiate the key agreement protocol with remote client.  The
8880           key agreement is supported only to negotiate private message keys,
8881           it currently cannot be used to negotiate private keys for channels,
8882           as it is not convenient for that purpose.
8883
8884         * Fixed a minor pending callback setting bug in the function
8885           silc_client_get_client_by_id_resolve, now the function works.
8886           Affected file lib/silcclient/idlist.c.
8887
8888         * Added function silc_net_get_local_port to get local bound
8889           port by socket.  Added to lib/silcutil/silcnet.[ch].
8890
8891         * Added `sockets' and `sockets_count' fields to the SilcClient
8892           object.  They hold the sockets of the listenning sockets in
8893           the client.  Listenning sockets may be for example the key
8894           agreement server.  Affected file lib/silcclient/client.[ch].
8895           Added functions the silc_client_add_socket and the
8896           silc_client_del_socket.  They are exported to the application
8897           as well.
8898
8899         * Added ~./silc/clientkeys to support other client's public keys.
8900
8901         * Renamed verify_server_key client operation to verify_public_key
8902           and added one argument to indicate the type of the connection
8903           (server, client etc.).
8904
8905 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8906
8907         * Added silc_server_connection_auth_request to handle the
8908           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
8909           silcd/packet_receive.[ch].
8910
8911         * Added silc_server_send_connection_auth_request into the
8912           silcd/packet_send.c to send the connection auth request packet.
8913
8914         * Cleaned up the silcd/protocol.c a bit and fixed some memory
8915           leaks.
8916
8917         * Fixed the public key authentication in responder side in the
8918           server.  The `auth_data' pointer includes the SilcPublicKey
8919           not the path to the public key.  Affected file silcd/protocol.c.
8920
8921         * Implemented the public key authentication in the initiator side
8922           in the server.  Affected file silcd/protocol.c.
8923
8924         * Removed the [RedirectClient] config section from the server
8925           configuration.  Is not needed and I don't want to implement it.
8926
8927 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8928
8929         * Cleaned up the CMODE command in the server.  It now works
8930           correctly and supports all the modes defined in the protocol.
8931           Affected file is silcd/command.c.
8932
8933         * Added `hmac_name' field to the SilcChannelEntry in the server
8934           to hold the default HMAC of the channel.  It can be set when
8935           creating the channel (with JOIN command).  Affected files
8936           silcd/idlist.[ch].
8937
8938         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
8939           type to indicate the change of the current cipher and hmac
8940           on the channel.  Client can safely ignore the <cipher> argument
8941           (if it chooses to do so) since the CHANNEL_KEY packet will
8942           force the channel key change anyway.  The <hmac> argument is
8943           important since the client is responsible of setting the new
8944           HMAC and the hmac key into use.
8945
8946         * Fixed the CMODE command in the client library as well.
8947
8948         * Tested CMODE command in router environment successfully.
8949
8950 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8951
8952         * Show the version of the remote client (or server) when connecting
8953           to the server.  It is logged to the log file.  Affected file
8954           is silcd/protocol.c.
8955
8956         * Fixed the KILLED notify handling in the client library.  The
8957           client must be removed from all channels when receiving the
8958           KILLED notify.
8959
8960           Also, do not remove the client entry when giving the KILL
8961           command but when the KILLED notify is received.
8962
8963         * Removed silc_idlist_find_client_by_nickname from the server.
8964           Not needed anymore.  Affected files silcd/idlist.[ch].
8965
8966         * Implemented the CHANNEL_CHANGE notify type handling to the
8967           server.  Affected file silcd/server.c.
8968
8969         * Updated TODO.
8970
8971 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8972
8973         * Added silc_server_send_notify_invite to send the INVITE
8974           notify between routers.
8975
8976         * Implemented the INVITE command correctly to the server.
8977
8978         * Implemented the INVITE notify type handling in the server.
8979
8980         * Implemented the INVITE command to the client library and on the
8981           user interface.
8982
8983 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8984
8985         * Added function silc_server_get_client_resolve to find the
8986           client entry by ID from all ID lists and then resolve it
8987           (using WHOIS) if it cannot be found.  Affected file is
8988           silcd/server.[ch].
8989
8990 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8991
8992         * Implemented the BAN command to the client library.
8993
8994         * The JOIN command in the server now checks the invite list
8995           and the ban list.
8996
8997         * Changed the silc_command_reply_payload_encode_va and the
8998           silc_command_payload_encode_va to support that if argument is
8999           NULL it ignores and checks the next argument.  Affected file
9000           lib/silccore/silccommand.c.
9001
9002         * Added silc_server_send_notify_ban to send the BAN notify
9003           type between routers.
9004
9005         * Chaned the silc_notify_payload_encode to support that if
9006           argument is NULL it ignores and checks the next argument.
9007           Affected file lib/silccore/silcnotify.c.
9008
9009         * Tested ban lists in router environment successfully.
9010
9011 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9012
9013         * Implemented BAN command to the server, in silcd/command.[ch].
9014
9015         * Removed the BAN and INVITE_LIST modes from the CMODE command
9016           in the server code.
9017
9018         * Added function silc_string_match to regex match two strings.
9019           Affected files lib/silcutil/silcutil.[ch].
9020
9021 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9022
9023         * Redefined parts of the SilcChannelEntry in the server to support
9024           the new ban and invite lists.
9025
9026 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9027
9028         * Redefined the INVITE command.  The same command can be used to
9029           invite individuals to the channel but also to manage the invite
9030           list of the channel (to add to and remove from the invite list).
9031           Updated the protocol specs.
9032
9033         * Added new command SILC_COMMAND_BAN that can be used to manage
9034           the ban list of the channel.  Updated the protocol specs.
9035
9036         * Removed the channel modes: the SILC_CMODE_BAN and the
9037           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9038           in the CMODE command.  The equivalent features are now available
9039           using INVITE and BAN commands.  Updated the protocol specs.
9040
9041         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9042           in the network about change in the current ban list.  The notify
9043           type is not used by the client.
9044
9045         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9046           support the invite lists.
9047
9048 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9049
9050         * Added new function silc_string_regexify that converts string
9051           including wildcard characters into regex string that can
9052           be used by the GNU regex library.  Added into the file
9053           lib/silcutil/silcutil.[ch].
9054
9055           Added silc_string_regex_combine to combine to regex strings
9056           into one so that they can be used as one regex string by
9057           the GNU regex library.  Added into the file
9058           lib/silcutil/silcutil.[ch].
9059
9060           Added silc_string_regex_match to match two strings.  It returns
9061           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9062
9063 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9064
9065         * Imported GNU regex to the soruce tree into lib/contrib.
9066           Fixed some compiler warning from the regex.c.
9067
9068 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9069
9070         * Fixed MOTD command in the server to work in router environment.
9071
9072         * Fixed the MOTD command in the client library to support
9073           the server argument in the command.
9074
9075         * Added `nickname_len' argument to the silc_idlist_add_client
9076           in the server, as the `nickname' argument may be binary data
9077           (it may be hash).
9078
9079         * Added silc_idlist_get_channels to return all channels from
9080           the ID list.
9081
9082         * Implemented LIST command to the server.  Affected file is
9083           silcd/command.c.
9084
9085         * Implemented the LIST command to the client library and on the
9086           user interface.
9087
9088         * Added [<user count>] argument to the LIST command reply.
9089           With private channels the user count is not shown.
9090
9091         * Updated TODO and README.
9092
9093 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9094
9095         * The client entry's data.registered must be TRUE even with
9096           global client entry on global client list.  The data.registered
9097           is used to check whether the client is anymore in the network,
9098           for example with WHOWAS command so it must be valid.
9099
9100         * Fixed the WHOWAS command in the server.  It now actually works
9101           in router environment.  Added function into silcd/command_reply.c
9102           silc_server_command_reply_whowas_save.
9103
9104         * Added silc_idlist_purge function to the silcd/idlist.c
9105           to periodically purge the ID Cache.
9106
9107         * Fixed INFO command in the server.  It works now in router
9108           environment.  Added <server name> argument to the INFO command
9109           reply.  Updated the protocol specs.
9110
9111         * Fixed minor bug in silc_idcache_purge to not purge if the
9112           expire value is zero.
9113
9114         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9115           they were buggy because of the WHOWAS information.
9116
9117         * Fixed local command MSG to handle the async resolving of
9118           the remote client properly.  It used to fail the first MSG.
9119           Affected file silc/local_command.c.
9120
9121         * Added `data_len' field to SilcIDCache context.
9122
9123 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9124
9125         * Update TODO.  Todo in commands in the server.
9126
9127 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9128
9129         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9130           used by routers as broadcast packet to inform other routers
9131           about the changed user mode.
9132
9133           Implemented the notify handling in the server.  Affected file is
9134           silcd/packet_receive.c.  Added the function
9135           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9136
9137         * Added new generic Channel Payload and deprecated the New Channel
9138           Payload.  The New Channel Payload is now the generic Channel
9139           Payload.
9140
9141         * Added new argument `mode' to the silc_server_send_new_channel
9142           as it is required in the Channel Payload now.
9143
9144         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9145           and created a new and real SilChannelPayload to represent the
9146           new generic Channel Payload.  Implemented the encode/decode
9147           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9148
9149         * Added silc_server_get_client_channel_list to return the list
9150           of channels the client has joined for WHOIS command reply.
9151           Affected file silcd/server.[ch].
9152
9153         * Implemented the channel list sending in the WHOIS command reply
9154           in server and in the client.
9155
9156           Implemented the channel list displaying on the user interface
9157           as well.  Affected file silc/client_ops.c.
9158
9159         * Added silc_channel_payload_parse_list to parse list of Channel
9160           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9161           Client for example can use this function to parse the list of
9162           channels it receives in the WHOIS command reply.  The caller
9163           must free the list by calling silc_channel_payload_list_free.
9164           Affected files lib/silccore/silcchannel.[ch].
9165
9166 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9167
9168         * Added one new argument <user mode> to the WHOIS command reply
9169           to return the mode of the user in SILC.  Updated the protocol
9170           specs.
9171
9172           Implemented it to the server and client.
9173
9174 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9175
9176         * Fixed the mode printing on the user interface on joining.
9177           Affected file silc/client_ops.c.
9178
9179         * Implemented the UMODE command and user modes in general to the
9180           client library and to the user interface.
9181
9182         * Implemented the UMODE command to the server.
9183
9184         * The server now sends UNKNOWN_COMMAND error status if client sends
9185           unknown command.  Affected file silcd/command.c.
9186
9187         * All server commands now handle the command identifier the right
9188           way when sending the command reply to the client.  The client can
9189           use to identify the command replies with the identifier.
9190
9191 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9192
9193         * Added silc_server_get_client_route to resolve the route to
9194           the client indicated by the client ID.  Affected file is
9195           silcd/server.[ch].
9196
9197         * Added silc_server_relay_packet as general function to relay
9198           packet to arbitrary destination.  This deprecates functions
9199           like _send_private_message_key, _relay_notify etc.  Affected
9200           file is silcd/packet_send.[ch].
9201
9202           Removed silc_server_send_key_agreement,
9203           silc_server_send_private_message_key and
9204           silc_server_packet_relay_notify functions from the file
9205           silcd/packet_send.[ch].
9206
9207         * Updated TODO.
9208
9209         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9210           server.  Affected file silcd/packet_receive.[ch].
9211
9212         * Implemented the KILL command to the client.  Implemented the
9213           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9214           Affected files lib/silcclient/command[_reply].c and
9215           lib/silcclient/client_notify.c.  Implemented the KILL notify
9216           printing in the user inteface.
9217
9218         * Fixed a lot silc_parse_nick memory leaks from the client
9219           library in the file lib/silcclient/command.c.
9220
9221         * Changed the silc_server_send_notify_on_channels's `sender'
9222           argument from SilcSocketConnection to SilcClientEntry to
9223           check the sender as entry and not as connection object and not
9224           to send to the client provided as argument.  The affected file
9225           is silcd/packet_send.[ch].
9226
9227         * The notify packets that are destined directly to the client used
9228           to not to be processed by the server.  Now changed that and the
9229           server processes all notify packets.  After relaying the packet
9230           to the client the notify packet is processed in the server.
9231
9232         * The silc_server_free_client_data now checks whether there is
9233           pending outgoing traffic for the client and purges the data to
9234           the network before removing the client entry.
9235
9236 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9237
9238         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9239           an client is killed from the SILC Network.  Updated the protocol
9240           specs accordingly.
9241
9242           Added new function silc_server_send_notify_killed to the
9243           silcd/packet_send.[ch].
9244
9245         * Added function silc_server_packet_relay_notify to relay notify
9246           packets that are destined directly to a client.  In this case
9247           the server does not process the notify packets but merely relays
9248           it to the client.  Affected file silcd/packet_send.[ch].
9249
9250           Added also silc_server_packet_process_relay_notify to check
9251           whereto relay the notify.  Affected file is
9252           silcd/packet_receive.[ch].
9253
9254         * Implemented the KILL command to the server.
9255
9256         * Updated TODO.
9257
9258         * Added the backup schema desgined last fall to the protocol
9259           specs for everyone to see.  The specification is in the
9260           *-spec-xx.txt draft and the packet type definitions for the
9261           backup routers is in *-pp-xx.txt draft.  Thusly, added also
9262           new packet type SILC_PACKET_CELL_ROUTERS.
9263
9264         * A big security problem in the implementation discovered.  The
9265           signoff of an client did not cause new channel key generation
9266           which it of course should've done.  The channel keys must be
9267           always re-generated when client leaves (or signoffs) the channel.
9268           The silc_server_remove_from_channels funtion now handles
9269           the channel key re-generation.
9270
9271         * Added `sender' argument to the silc_server_send_notify_on_channels
9272           to not to send the client provided as argument.  Affected file
9273           silcd/packet_send.[ch].
9274
9275 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9276
9277         * Implemented OPER and SILCOPER commands into the server and
9278           the client library.
9279
9280         * Added silc_auth_verify and silc_auth_verify_data to verify
9281           the authentication directly from the authentication payload.
9282           It supports verifying both passphrase and public key based
9283           authentication.  Affected file lib/silccore/silcauth.[ch].
9284
9285         * Added `hash' field to the SilcIDListData structure.  It is the
9286           hash negotiated in the SKE protocol.  Affected file is
9287           silcd/idlist.[ch].
9288
9289         * Slight redesigning of the SilcAuthPayload handling routines.
9290           Do not send SilcPKCS but SilcPublicKey as argument.
9291
9292         * Implemented the public key authentication support to the
9293           serverconfig.  The public key is loaded from the provided path
9294           and saved as authentication data to void * pointer.  Thus,
9295           changed the unsigned char *auth_data to void *auth_data;
9296
9297         * Fixed SHUTDOWN command to send the reply before the server
9298           is shutdown. :)  Affected file silcd/command.c.
9299
9300         * Fixed fatal bug in CONNECT command.  The hostname was invalid
9301           memory and server crashed.  Affected file silcd/command.c.
9302
9303         * Fixed fatal bug in CLOSE command.  The server_entry became
9304           invalid but was referenced later in the command.  Affected file
9305           silcd/command.c.
9306
9307 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9308
9309         * Fixed fatal bug in failure packet handling.  Server ignored
9310           the failure and thus crashed when it came.
9311
9312         * Updated TODO.
9313
9314 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9315
9316         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
9317           that the command may be executed only once in (about) 2 seconds.
9318           The old SILC_CF_LAG flag is same but allows command bursts up
9319           to five before limiting.
9320
9321           Added the support for CF_LAG and CF_LAG_STRICT flags to the
9322           server code.  Various commands now includes the CF_LAG_STRICT
9323           flag to disallow any kind of miss-use of the command.
9324
9325         * Fixed the silc_buffer_unformat to not to allocate any data
9326           if the length of the data is zero.  It used to allocate the
9327           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
9328
9329 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9330
9331         * Changed the format of AdminConnection configuration section
9332           in the server.  Added username of the admin to the format.
9333           Affected files silcd/serverconfig.[ch].
9334
9335           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
9336           to return admin configuration data by host, username and/or
9337           nickname.
9338
9339 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9340
9341         * Implemented WHOWAS command to the server.  Added the functions:
9342
9343           silc_server_command_whowas_parse,
9344           silc_server_command_whowas_send_reply,
9345           silc_server_command_whowas_from_client and
9346           silc_server_command_whowas_from_server
9347
9348         * Added <Client ID> argument to the WHOWAS command reply.  Updated
9349           the protocol specs accordingly.
9350
9351         * Implemented WHOWAS command and command_reply to the client
9352           library.
9353
9354           Implemented the WHOWAS printing on the user interface.
9355
9356 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9357
9358         * Added new argument to the WHOWAS command reply, the real name.
9359           It is an optional argument.  Updated the protocol specs.
9360
9361         * Added SilcIDCacheDestructor callback that is registered when
9362           the SilcIDCache is allocated.  The callback is called when
9363           an cache entry in the ID Cache expires, or is purged from the
9364           cache.  Added into lib/silccore/idcache.[ch].
9365
9366           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
9367           to destruct the client entries when the cache entry expires.
9368           Other ID Cache's in server and in the client library ignores
9369           the destructor.
9370
9371         * If the ID Cache entry's `expire' field is zero then the entry
9372           never expires.  Added boolean `expire' argument to the
9373           silc_idcache_add function in the lib/silccore/idcache.[ch].
9374           If it is TRUE the default expiry value is used.
9375
9376         * Added silc_server_free_client_data_timeout that is registered
9377           when client disconnects.  By default for 5 minutes we preserve
9378           the client entry for history - for WHOWAS command.
9379
9380 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9381
9382         * Added support to the server to enforce that commands are not
9383           executed more than once in 2 seconds.  If server receives
9384           commands from client more frequently, timeout is registered
9385           to process the commands.  Affected file silcd/command.c.
9386           Added new function silc_server_command_process_timeout.
9387
9388         * Changed NICK_NOTIFY handling in client library to check that
9389           if the client's nickname was changed, so there is no need to
9390           resolve anything from the server.
9391
9392         * Removed error printing from the WHOIS and IDENTIFY commands.
9393           If error occurs then it is ignored silently in the client library.
9394           The application, however, may map the received error to
9395           human readable error string.  The application currently maps
9396           the NO_SUCH_NICKNAME error to string.
9397
9398         * Made the command status message public to the application.  Moved
9399           them from lib/silcclient/command_reply.c to
9400           lib/silcclient/command_reply.h.  The application can map the
9401           received command status to the string with the
9402           silc_client_command_status_message function.
9403
9404         * Added check to the server to check that client's ID is same
9405           as the Source ID in the packet the client sent.  They must
9406           match.
9407
9408 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9409
9410         * Added dist-bzip hook to the Makefile.am to make bzip2
9411           compressed distributions.
9412
9413 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9414
9415         * Server now enforces the maximum length for the nickname and
9416           the channel as protocol specification dictates.  128 bytes for
9417           nickname and 256 bytes for channel name.
9418
9419         * Moved the WHOIS printing to the application.  The client libary
9420           does not print out the WHOIS information anymore, the application
9421           must do it.  Renamed silc_client_command_reply_whois_print to
9422           the silc_client_command_reply_whois_save.
9423
9424           The client's idle time is also sent to the application now, and
9425           the idle is shown on screen.
9426
9427         * Added silc_client_command_reply_identify_save to save the
9428           received IDENTIFY entries.
9429
9430         * Do not check for channel private keys in message sending and
9431           reception if the channel does not have the PRIVKEY mode set.
9432           Affected file lib/silclient/client_channel.c.
9433
9434 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9435
9436         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
9437           just surfaced after chaning the JOIN procedure.
9438
9439 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9440
9441         * Added silc_client_get_clients_by_list to get client entries
9442           from Client ID list, that is returned for example by JOIN
9443           and USERS command replies.  The application should use this
9444           function for example when JOIN command reply is received to
9445           resolve the clients already on the channel (library does not
9446           do that anymore as USERS command reply is not used in the JOIN
9447           procedure anymore).  Affected files lib/silcclient/silcapi.h and
9448           lib/silcclient/idlist.c.
9449
9450         * JOIN command reply and USERS command reply returns now SilcBuffer
9451           pointers instead of unsigned char pointers when returning
9452           the client list and mode list.
9453
9454         * Added <Client ID> argument to the JOIN command reply, mainly
9455           for the server to identify for which client the command was
9456           originally sent.  Updated protocol specs accordingly.
9457
9458         * Added SilcDlist private_key pointer to the SilcChannelEntry
9459           in the client to support the channel private keys.  Affected
9460           file is lib/silcclient/idlist.h.
9461
9462         * Added SilcChannelPrivateKey argument to the function
9463           silc_client_send_channel_message so that application can choose
9464           to use specific private ke if it wants to.  If it is not provided,
9465           the normal channel key is used, unless private keys are set.
9466           In this case the first (key that was added first) is used
9467           as the encryption key.
9468
9469         * Implemented the support for channel private key handling.
9470           Implemented the following functions:
9471
9472           silc_client_add_channel_private_key,
9473           silc_client_del_channel_private_keys,
9474           silc_client_del_channel_private_key,
9475           silc_client_list_channel_private_keys and
9476           silc_client_free_channel_private_keys
9477
9478           Affected file lib/silcclient/client_channel.c.
9479
9480         * Added the support for the private keys in the channel message
9481           sending and encryption and in the message reception and
9482           decryption.  Affected funtions are
9483           silc_client_send_channel_message and silc_client_channel_message.
9484
9485 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9486
9487         * Added SKE's key verify callback to the client library's
9488           KE protocol context. Affected files lib/silcclient/protocol.[ch].
9489
9490         * Removed the statement that server (or router) must send USERS
9491           command reply when joining to the channel so that the client
9492           knows who are on the channel.  Instead, the client list and
9493           client's mode list is now sent in the JOIN command reply to the
9494           client who joined channel.  This is better solution.
9495
9496         * Added function silc_server_get_users_on_channel and function
9497           silc_server_save_users_on_channel to the silcd/server.[ch].
9498
9499         * Removed function silc_server_command_send_users from the
9500           silcd/command.c.
9501
9502         * Do not show topic on the client library anymore.  The topic is
9503           sent in the command reply notify to the application and the
9504           application must show the topic now.
9505
9506 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9507
9508         * Added client searching by nickname hash into the IDENTIFY and
9509           WHOIS commands in the server as they were clearly missing from
9510           them.  Affected file is silcd/command.c.
9511
9512         * Fixed a bug in private message receiving in the client library.
9513           The remote ID was freed and it wasn't supposed, now it is
9514           duplicated.
9515
9516 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9517
9518         * Minor fix to the channel payload; allocate the data area, as it
9519           needs to be of specific length.
9520
9521         * If the key agreement port is zero then the operating
9522           system will define the bound port.  Affected files are
9523           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
9524
9525         * Added new function silc_channel_payload_decrypt into the file
9526           lib/silccore/silcchannel.[ch].
9527
9528         * Moved the channel message etc, check from silc_packet_decrypt
9529           to applications.  The library calls now a generic
9530           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
9531           when the packet is either normal or special.  This was done to
9532           allow more wide range of checking that was not allowed when
9533           the code was in library.  Now applications can do virtually any
9534           checks to the packet and return to the library the decision how
9535           the packet should be processed.  Affected files are
9536           lib/silccore/silcpacket.[ch].
9537
9538           Added silc_server_packet_decrypt_check to the server and
9539           silc_client_packet_decrypt_check to the client library.
9540
9541         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
9542           to send with specified source and destination information.
9543
9544         * Channel message delivery between routers was broken after the
9545           channel key distribution was fixed earlier.  The channel key
9546           was used be to distributed to other routers as well which is not
9547           allowed by the protocol.  Now this is fixed and channel keys
9548           really are cell specific and the channel message delivery between
9549           routers comply with the protocol specification.
9550
9551         * Fixed various commands in server to check also the global list
9552           for the channel entry and not just the local list.  The affected
9553           file silcd/command.c.
9554
9555 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9556
9557         * Added assert()s to buffer formatting and unformatting routines
9558           to assert (if --enable-debug) when error occurs.  Affected
9559           file: lib/silcutil/silcbuffmt.c.
9560
9561         * Changed to auto-reconnect to check whether the remote host is
9562           router and register the re-connect timeout if it is.  It used
9563           to check that whether we are normal server, but router must do
9564           auto-reconnect with another router as well.  Affected file
9565           silcd/server.c.
9566
9567         * Removed the [<key len>] option from CMODE command as the cipher
9568           name decides the key length, nowadays.  See the defined ciphers
9569           from the protocol specification.
9570
9571         * Added [<hmac>] option to the CMODE command to define the HMAC
9572           for the channel.  Added SILC_CMODE_HMAC channel mode.
9573
9574         * Added [<hmac>] option for the JOIN command so that user can
9575           select which HMAC is used to compute the MACs of the channel
9576           messages.
9577
9578         * Added Hmac field to the Channel Message Payload.  The integrity
9579           of plaintext channel messages are now protected by computing
9580           MAC of the message and attaching the MAC to the payload.  The
9581           MAC is encrypted.  Now, it is clear that this causes some
9582           overhead to the size of the packet but rationale for this is that
9583           now the receiver can verify whether the channel message decrypted
9584           correctly and also when private keys are set for the channel the
9585           receiver can decrypt the packet with several keys and check from
9586           the MAC which key decrypted the message correctly.
9587
9588         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
9589           lib/silccrypt/silccipher.[ch].
9590
9591         * Added silc_hash_len to return the digest length into the
9592           lib/silcrypt/silchash.[ch].
9593
9594         * Rewrote parts of Silc Channel Payload interface in the
9595           lib/silccore/silcchannel.[ch].  The encode function now also
9596           encrypts the packet and parse function decrypts it.
9597
9598 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9599
9600         * Fixed a minor formatting bug in the SKE's key material processing.
9601           It actually might have processed the keys wrong way resulting
9602           into wrong keys.
9603
9604         * Redefined the mandatory HMAC algorithms and added new algorithms.
9605           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
9606           and hmac-md5 truncated to 96 bits.  The mandatory is now
9607           hmac-sha1-96.  Rest are optional (including the one that used
9608           to be mandatory).  Rationale for this is that the truncated HMAC
9609           length is sufficient from security point of view and can actually
9610           make the attack against the HMAC harder.  Also, the truncated
9611           HMAC causes less overhead to the packets.  See the RFC2104 for
9612           more information.
9613
9614         * Added new [hmac] configuration section.  The SKE used to use
9615           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
9616           is of course wrong.  The official names that must be proposed in
9617           the SKE are the ones defined in the protocol specification
9618           (hmac-sha1-96 for example).  The user can configure any hmac
9619           using any hash function configured in the [hash] section.  At
9620           least, the mandatory must be configured.
9621
9622           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
9623
9624         * Added HMAC list to the SKE proposal list.  It has now both
9625           hash algorithm list and HMAC list.  This makes the protocol
9626           incompatible with previous versions.  The SKE now seems to work
9627           the way it is supposed to work, for the first time actually.
9628
9629         * Defined plain Hash algorithms to the protocol specification.
9630           Added sha1 and md5.
9631
9632 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9633
9634         * Implemented support for key agreement packets into the server.
9635           Added functions silc_server_key_agreement and
9636           silc_server_send_key_agreement.  Other than these functions,
9637           server has nothing to do with this packet.
9638
9639         * Added support for private message key packets into the server.
9640           Added functions silc_server_private_message_key and
9641           silc_server_send_private_message_key.
9642
9643         * Updated TODO.
9644
9645         * Changed the silc_[client|server]_protocol_ke_set_keys to be
9646           called in the protocol's final callback instead in the END
9647           protocol state.  This makes a little more sense and in the same
9648           time in client we can use the same protocol routines for normal
9649           key exchange and to key agreement packet handling as well.
9650
9651         * Added to both client's and server's KE protocol context the
9652           SilcSKEKeyMaterial pointer to save the key material.  We will
9653           bring the key material to the protocol's final callback by doing
9654           this.  The final callback must free the key material.
9655
9656         * Added SKE's packet_send callback into client's KE protocol
9657           context so that the caller can choose what packet sending function
9658           is used.  This way we can use different packet sending when
9659           doing normal SKE when doing key agreement packet handling (in
9660           the key agreement packet handling we do not want to encrypt
9661           the packets).
9662
9663         * Implemented the responder side of the key agreement routines
9664           in the client.  The client can now bind to specified port and
9665           accept incoming key negotiation.  The key material is passed
9666           to the application after the protocol is over.
9667
9668         * Implemented the processing of incoming Key Agreement packet
9669           in the client.  Added function silc_client_key_agreement to
9670           process the packet.
9671
9672         * Implemented the intiator side of the key agreement routines
9673           in the client.  The client can now initiate key agreement with
9674           another remote client.  The key material is passed to the
9675           application after the protocol is over.
9676
9677         * Created client_keyagr.c to include all the key agreement
9678           routines.
9679
9680         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
9681           SILC_TASK_CALLBACK except that it is not static.
9682
9683         * Created client_notify.c and moved the Notify packet handling
9684           from the client.[ch] into that file.
9685
9686         * Created client_prvmsg.c and moved all private message and
9687           private message key routines from the client.[ch] into that file.
9688
9689         * Create client_channel.c and moved all channel message and
9690           channel private key routines from the client.[ch] into that file.
9691
9692         * Changed silc_client_get_client_by_id_resolve to resolve with
9693           WHOIS command instead of IDENTIFY command, in the file
9694           lib/silclient/idlist.c.
9695
9696 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9697
9698         * Implemented the SKE's responder side to the Client library.
9699
9700         * When FAILURE is received to the protocol do not trust it
9701           blindly.  Register a timeout to wait whether the remote closes
9702           the connection as it should do it, only after that process the
9703           actual failure.  This was changed to both client and server.
9704
9705         * Added client_internal.h to include some of the structures
9706           there instead of client.h in lib/silcclient/.
9707
9708         * Added function silc_task_unregister_by_callback to unregister
9709           timeouts by the callback function.
9710
9711 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9712
9713         * Some "Incomplete WHOIS info" errors has been appearing on the
9714           log files.  Took away the entry->userinfo check from WHOIS
9715           reply sending.  The entry->userinfo is now " " if client did not
9716           provide one.  I thought this was fixed earlier but something
9717           is wrong still.  Let's see if the error still appears.
9718
9719 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9720
9721         * Fixed a minor bug in the login when the channel key is
9722           re-generated in the server.  It used to generate the key in
9723           wrong order and thus caused problems in the channel traffic.
9724
9725         * Fixed a minor bug in channel key distsribution after
9726           KICK command.  The key was not sent to the router even though
9727           it should've been.
9728
9729 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9730
9731         * Added silc_ske_process_key_material_data as generic routine
9732           to process any key material as the SILC protocol dictates.  The
9733           function is used by the actual SKE library but can be used by
9734           applications as well.  This relates to the private message keys
9735           and the channel private keys since they must be processed the
9736           same way the normal SILC session keys.  The protocol dictates
9737           this.  Affected files: lib/silcske/silcske.[ch].
9738
9739           Added also silc_ske_free_key_material to free the
9740           SilcSKEKeyMaterial structure.
9741
9742         * Defined silc_cipher_set_key function to set the key for
9743           cipher without using the object's method function.  The affected
9744           files: lib/silccrypt/silccipher.[ch].
9745
9746         * Implemented silc silc_client_add_private_message_key,
9747           silc_client_add_private_message_key_ske,
9748           silc_client_del_private_message_key,
9749           silc_client_list_private_message_keys and
9750           silc_client_free_private_message_keys functions in the
9751           client library.
9752
9753           Added functions silc_client_send_private_message_key to send
9754           the Private Message Key payload and silc_client_private_message_key
9755           to handle incoming Private Message Key payload.
9756
9757         * Added Cipher field to the Private Message Key payload to set
9758           the cipher to be used.  If ignored, the default cipher defined
9759           in the SILC protocol (aes-256-cbc) is used.
9760
9761 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9762
9763         * Removed lib/silcclient/ops.h file.
9764
9765           Redefined parts of the SILC Client Library API. Created new
9766           file silcapi.h that deprecates the ops.h file and defines the
9767           published Client Library API.  Defined also private message key
9768           API and channel private key API into the file.
9769
9770           This is the file that the application must include from the
9771           SILC Client Library.  Other files need not be included by
9772           the application anymore.
9773
9774         * Added new key_agreement client operation callback and also
9775           defined the Key Agreement library API for the application.
9776
9777 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9778
9779         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
9780           is used by clients to request key negotiation  between another
9781           client in the SILC network.  If the negotiation is started it
9782           is performed using the SKE protocol.  The result of the
9783           negotiation, the secret key material, can be used for example
9784           as private message key.
9785
9786           Implemented the Key Agreement payload into the files
9787           lib/silccore/silauth.[ch].
9788
9789 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9790
9791         * Redefined ciphers for the SILC protocol.  Added some new ciphers
9792           and defined the key lengths for the algorithms.  Changed the
9793           code accordingly.  The default key length is now 256 bits.
9794
9795         * Fixed SKE key distribution function silc_ske_process_key_material
9796           when the key length is more than 128 bits.  The default key
9797           length in SILC is now 256 bits.
9798
9799         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
9800           to indicate unsupported algorithm.
9801
9802         * Renamed rijndael.c to aes.c and all functions as well.
9803
9804         * Fixed a long standing channel key setting bug in client library.
9805           Weird that it has never surfaced before.
9806
9807         * Fixed bug in channel deletion.  If the entire channel is removed
9808           then it must also delete the references of the channel entry
9809           from the client's channel list as the client's channel entry and
9810           the channel's client entry share same memory.
9811
9812 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9813
9814         * Implemented CONNECT and SHUTDOWN commands in the client.
9815
9816         * Implemented CLOSE command to the client.
9817
9818         * Added the function silc_idlist_find_server_by_name into the
9819           files silcd/idlist.[ch].
9820
9821           Added the function silc_idlist_find_server_by_conn into the
9822           files silcd/idlist.[ch].
9823
9824 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9825
9826         * DIE command was renamed to SHUTDOWN.  Updated the both code
9827           and protocol specs.
9828
9829         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
9830           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
9831
9832         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
9833           side.
9834
9835         * Added function silc_server_create_connection function to create
9836           connection to remote router.  My server implementation actually
9837           does not allow router to connect to normal server (it expects
9838           that normal server always initiates the connection to the router)
9839           so the CONNECT command is only good for connecting to another
9840           router.
9841
9842 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9843
9844         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
9845           or some other client was kicked from the channel.
9846
9847           Implemented the handling of the notify type to both client
9848           and server.
9849
9850           Implemented silc_server_send_notify_kicked to send the KICKED
9851           notify.  It is used to send it to the server's primary router.
9852
9853         * Implemented the KICK command into server and client.
9854
9855         * Added `query' argument to the silc_idlist_get_client function
9856           to indicate whether to query the client from server or not if
9857           it was not found.
9858
9859         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
9860           to indicate that the client is not channel founder.
9861
9862         * Updated TODO.
9863
9864 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9865
9866         * Removed the rng context from SilcPacketContext structure and
9867           changed that the packet routine uses the Global RNG API.
9868
9869 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9870
9871         * Added support for quit message that client can "leave" on the
9872           channel when it quits the SILC.  It is ditributed inside the
9873           SILC_NOTIFY_TYPE_SIGNOFF notify type.
9874
9875           Added silc_server_free_client_data that will take the
9876           signoff message as argument.
9877
9878         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
9879
9880 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9881
9882         * Updated parts of the protocol specification to keep it up
9883           to date.
9884
9885 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9886
9887         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
9888           payloads in one packet.
9889
9890         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
9891           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
9892           use now the new List flag.
9893
9894         * Also deprecated the following packet types: REPLACE_ID,
9895           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
9896
9897         * Added list support for Notify packet in server.
9898
9899         * Added silc_server_send_notify_channel_change to send the
9900           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
9901           the silc_server_send_replace_id.
9902
9903         * Added silc_server_send_notify_nick_change to send the
9904           NICK_CHANGE notify type.  Deprecates the function
9905           silc_server_send_replace_id.
9906
9907         * Added silc_server_send_notify_join to send the JOIN notify type.
9908           Deprecates the function silc_server_send_new_channel_user.
9909
9910         * Added silc_server_send_notify_leave to send LEAVE notify type.
9911           Deprecates the function silc_server_send_remove_channel_user.
9912
9913         * Added silc_server_send_notify_cmode and
9914           silc_server_send_notify_cumode to send CMODE and CUMODE notify
9915           types.  Deprecates the silc_server_send_set_mode function.
9916
9917         * Added SERVER_SIGNOFF notify type to indicate that server has
9918           quit.  This means that all clients on the channel from that
9919           server will drop.  This can be also used when netsplit happens.
9920
9921           Deprecated REMOVE_ID packet type since it is not needed anymore
9922           even from server.
9923
9924           Added silc_server_send_notify_server_signoff to send the
9925           SERVER_SIGNOFF notify type.  Deprecates the function
9926           silc_server_send_remove_id.
9927
9928           Added also silc_server_send_notify_signoff to send the
9929           SIGNOFF notify type.
9930
9931         * Employed the PKCS #1. It is the mandatory way to do RSA in the
9932           SILC protocol from this day on.  Changed the protocol
9933           specification as well.
9934
9935         * Added silc_server_send_notify_topic_set to send TOPIC_SET
9936           notify type.  It is used between routers to notify about
9937           topic changes on a channel.
9938
9939         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
9940           ID data.
9941
9942         * Partly updated the protocol specification to comply with the
9943           changes now made.  It is still though a bit outdated.
9944
9945         * The JOIN notify type now takes one extra argument <Channel ID>.
9946           The packet used to be destined to the channel but now the
9947           JOIN type may be sent as list thus it is impossible to
9948           destine it to any specific channel.  By adding this argument
9949           it is again possible.
9950
9951 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9952
9953         * Added CREDITS file.  The CHANGES and CREDITS file will appear
9954           in the distribution as well.
9955
9956 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9957
9958         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
9959           types in the server's silcd/packet_receive.c.
9960
9961         * Implemented CMODE and CUMODE to work in router environment.
9962
9963         * Fixed minor encoding and decoding buglet from the
9964           lib/silccore/silcmode.c.
9965
9966         * Fixed buffer overflow from lib/silcclient/command.c in USERS
9967           command parsing.
9968
9969 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
9970
9971         * Changed all SilcConfigServer* and silc_config_server* to
9972           SilcServerConfig* and silc_server_config*, respectively.
9973           Patch by Bostik.
9974
9975 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9976
9977         * Associated the ID (client or server ID) to the Authentication
9978           Payload to avoid any possibility of forging.  Updated the
9979           protocol specification and the code accordingly.
9980
9981 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9982
9983         * The RSA key length is now save to the RsaKey context in the
9984           key generation process in lib/silccrypt/rsa.c.  The key length
9985           is now used to figure out the maximum size of the block allowed
9986           to be encrypted/signed.
9987
9988         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
9989           is equivalent to the silc_mp_mp2bin but does not allocate any
9990           memory.
9991
9992         * Changed silc_mp_mp2bin API to take length argument.  If it is
9993           non-zero then the buffer is allocated that large.  If zero, then
9994           the size is approximated using silc_mp_sizeinbase, which however
9995           is not relieable.
9996
9997         * Created Global RNG API which is global RNG that application can
9998           initialize.  After initializing, any routine anywhere in the
9999           code (including library) can use RNG without allocating a new
10000           RNG object.  This was done to allow this sort of use of the
10001           RNG in code that has no chance to allocate RNG object.  All
10002           applications currently allocate this and many routines in the
10003           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10004
10005         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10006           it to use the Global RNG API.
10007
10008         * Defined Authentication Payload into protocol specification that
10009           is used during SILC session to authenticate entities.  It is
10010           used for example by client to authenticate itself to the server
10011           to obtain server operator privileges.
10012
10013           Implemented this payload into the lib/silccore/silcauth.[ch].
10014           Implemented also routines for public key based authentication
10015           as the new protocol specification dictates.
10016
10017           Moved definitions of different authentication methods from
10018           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10019
10020         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10021           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10022           silc_pkcs_verify_with_hash functions into the file
10023           lib/silccrypt/silcpkcs.[ch].
10024
10025 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10026
10027         * The client entry's userinfo pointer must be always valid.
10028           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10029           will fail since it requires the userinfo.  Now, the userinfo
10030           is allocated as "" if actual userinfo does not exist.  Actually,
10031           it must exist and it is totally Ok to drop client connections
10032           that does not announce the userinfo.  However, we will make
10033           this workaround for now.
10034
10035         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10036           to return the remote port by socket.
10037
10038 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10039
10040         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10041           SILC_SERVER_PENDING_EXEC and added an new macro
10042           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10043           data or when error occurs while processing the pending command.
10044
10045           Added new argument `destructor' into silc_server_command_pending
10046           and to the SilcServerCommandPending object.  This destructor is
10047           now called after calling the pending callback or if error occurs
10048           immediately.  If error occurs the actual pending callback won't
10049           be called at all - only the destructor.  The destructor may be
10050           NULL if destructor is not needed.
10051
10052           All this applies for client library code as well.  Similar
10053           changes were made there as well for the pending commands.
10054
10055           In the client, the application must now allocate the
10056           SilcClientCommandContext with the silc_client_command_alloc
10057           function.
10058
10059         * Added reference counter to the SilcServerCommandContext.  Added
10060           function silc_server_command_alloc and silc_server_command_dup
10061           functions.
10062
10063           Same type of functions added to the client library for the same
10064           purpose as well.
10065
10066         * Removed the cmd_ident from IDListData away since it is now
10067           global for all connections.  It is the command identifier used
10068           in command sending and with pending commands.  The affected file
10069           is silcd/idlist.h.
10070
10071         * Added reference counter to the SilcSocketConnection objecet to
10072           indicate the usage count of the object.  The object won't be
10073           freed untill the reference counter hits zero.  Currently only
10074           server uses this, and client ignores it.  The client must be
10075           set to use this too later.  The affected files are
10076           lib/silccore/silcsockconn.[ch].  Added also the function
10077           silc_socket_dup to increase the reference counter.
10078
10079           This was mainly added because it is possible that the socket
10080           is removed underneath of pending command or other async
10081           operation.  Now it won't be free'd and proper DISCONNECTING
10082           flags, etc. can be set to avoid sending data to connection that
10083           is not valid anymore.
10084
10085         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10086           the connection.  After that it sets SILC_SET_DISCONNECTED.
10087           It is, however, possible that the socket data is not still freed.
10088           The silc_server_packet_process now checks that data is not
10089           read or written to connection that is DISCONNECTED.  The socket
10090           get's freed when the reference counter hits zero.
10091
10092 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10093
10094         * Changed the client operation API: channel_message operation's
10095           `sender' is now the client entry of the sender, not the nickname
10096           and the `channel' is the channel entry, not the channel name.
10097
10098           In the private_message operation the `sender' is now also the
10099           client entry of the sender not the nickname.
10100
10101           Affected file is lib/silcclient/ops.h and all applications
10102           using the client operations.
10103
10104 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10105
10106         * Moved the calling of ops->connect() from connect_to_server_final
10107           into receive_new_id functin since that is the point when the
10108           client is actually allowed to send traffic to network.  The
10109           affected file is lib/silcclient/client.c.
10110
10111 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10112
10113         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10114           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10115           (if needs broadcasting) instead of broadcasting the packets one
10116           by one which would make a burst in the network traffic.
10117
10118         * Added `broadcast' argument to the functions in silcd/server.[ch]
10119           silc_server_create_new_channel[_with_id] to indicate whether
10120           to send New Channel packet to primary router.
10121
10122 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10123
10124         * Added new function into the silcd/server.[ch] files:
10125           silc_server_create_new_channel_with_id to create new channel with
10126           already existing Channel ID.
10127
10128         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10129           lib/silccore/silcpacket.h.  This packet is used t send list of
10130           Set Mode payloads inside one packet.  Server uses this to set
10131           the modes for the channels and clients on those channels, that it
10132           announced to the router when it connected to it.  The protocol
10133           specification has been updated accordingly.
10134
10135         * The silc_server_new_channel did not handle the packet coming
10136           from normal server as it normally does not send that.  However,
10137           when it announces its channels it does send it.  Implemented
10138           the support for that.
10139
10140         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10141           into the file lib/silccore/id.h.
10142
10143 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10144
10145         * Fixed memory leaks in the functions silc_idlist_del_client,
10146           silc_idlist_del_channel and silc_idlist_del_server in the file
10147           silcd/idlist.c.  All of those leaked like a sieve.
10148
10149         * Fixed some small memory leaks in the client's function
10150           silc_client_notify_by_server.
10151
10152         * Added functions into silcd/server.c: silc_server_announce_clients,
10153           silc_server_announce_channels and silc_server_announce_server.
10154           These functions are used by normal and router server to announce
10155           to its primary router about clients, channels and servers (when
10156           router) that we own.  This is done after we've connected to the
10157           router.
10158
10159           These functions effectively implements the following packet types:
10160           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10161           and SILC_PACKET_NEW_ID_LIST.
10162
10163         * Added new functions into the silcd/packet_receive.[ch]:
10164           silc_server_new_id_list, silc_server_new_channel_list and
10165           silc_server_new_channel_user_list to handle the incoming
10166           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10167
10168         * Added support of changing Channel ID in the function
10169           silc_server_replace_id.  If the server that announces a channel
10170           to the router already exists in the router (with same name but
10171           with different Channel ID), router is responsible to send
10172           Replace ID packet to the server and force the server to change
10173           the Channel ID to the one router has.
10174
10175         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10176           client that the Channel ID has been changed by the router.  The
10177           normal server sends this to the client.  Client must start using
10178           the new Channel ID as the channel's ID.
10179
10180           Implemented handling of this new type into lib/silcclient/client.c
10181           into the function silc_client_notify_by_server.
10182
10183         * Added new function silc_idlist_replace_channel_id into the files
10184           silcd/idlist.[ch] to replace the Channel ID.
10185
10186 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10187
10188         * Call silc_server_command_identify_check always when processing
10189           the IDENTIFY command in silcd/command.c
10190
10191 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10192
10193         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10194           send keepalive packets.  The packet can be sent by clients,
10195           servers and routers.
10196
10197           Added function silc_socket_set_heartbeat into the file
10198           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10199           If not set, the heartbeat is not performed.  The actual
10200           heartbeat is implemented in the low level socket connection
10201           library.  However, application is responsible of actually
10202           sending the packet.
10203
10204           Added silc_server_send_heartbeat to send the actual heartbeat
10205           packet into silcd/packet_send.[ch].  Server now performs
10206           keepalive with all connections.
10207
10208         * Added silc_task_get_first function into lib/silcutil/silctask.c
10209           to return the timeout task with shortest timeout.  There was a bug
10210           in task unregistration that caused problems.  TODO has been
10211           updated to include that task system must be rewritten.
10212
10213         * The client library will now resolve the client information when
10214           receiving JOIN notify from server for client that we know but
10215           have incomplete information.
10216
10217         * Rewrote parts of silc_server_remove_from_channels and
10218           silc_server_remove_from_one_channel as they did not remove the
10219           channel in some circumstances even though they should've.
10220
10221         * Encryption problem encountered in server:
10222
10223           The LEAVE command used to send the Channel Key packet to the
10224           router immediately after generating it.  However, the code
10225           had earlier sent Remove Channel user packet but not immediately,
10226           ie. it was put to queue.  The order of packets in the router
10227           was that Channel Key packet was first and Remove Channel User
10228           packet was second, even though they were encrypted in the
10229           reverse order.  For this reason, MAC check failed.  Now, this
10230           is fixed by not sending the Channel Key packet immediately but
10231           putting it to queue.  However, this is more fundamental problem:
10232           packets that are in queue should actually not be encrypted
10233           because packets that are sent immediately gets encrypted
10234           actually with wrong IV (and thus MAC check fails).  So, packets
10235           that are in queue should be encrypted when they are sent to
10236           the wire and not when they put to the queue.
10237
10238           However, the problem is that the current system has not been
10239           designed to work that way.  Instead, the packet is encrypted
10240           as soon as possible and left to the queue.  The queue is then
10241           just purged into wire.  There won't be any fixes for this
10242           any time soon.  So, the current semantic for packet sending
10243           is as follows:
10244
10245           o If you send packet to remote host and do not force the send
10246           (the packet will be in queue) then all subsequent packets to the
10247           same remote host must also be put to the queue.  Only after the
10248           queue has been purged is it safe again to force the packet
10249           send immediately.
10250
10251           o If you send all packets immediately then it safe to send
10252           any of subsequent packets through the queue, however, after
10253           the first packet is put to queue then any subsequent packets
10254           must also be put to the queue.
10255
10256           Follow these rules and everything works fine.
10257
10258 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10259
10260         * Added new function silc_server_remove_clients_by_server to
10261           remove all client entries from ID list when the server connection
10262           is lost.  In this case it is also important to invalidate all
10263           client entires as they hold the invalid server entry.  This
10264           fixes fatal bug when server has lost connection and will reconnect
10265           again.
10266
10267 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10268
10269         * Made some sanity checks to silc_server_daemonise like to check
10270           whether the requested user and group actually exists.
10271
10272         * Added sanity check to SKE's silc_ske_responder_finish to check
10273           that the public and private key actually is valid.
10274
10275         * Invalidate the client's nickname when receiving Replace ID
10276           packet and the Client ID is being replaced.  This means that the
10277           server will query the nickname if someone needs it (client)
10278           a bit later.
10279
10280         * Sort the ID Cache in client library when the ID Cache data
10281           has changed (needs sorting).
10282
10283         * Do not allow for SILC client to create several connections to
10284           several servers.  The client does not support windows right now
10285           and generating multiple connections causes weird behaviour.
10286
10287           Irssi-silc client does support windows and can handle several
10288           connections without problems, see: www.irssi.org and SILC plugin.
10289
10290         * Fixed some places where client was added to the IDList.  The
10291           rule of thumb is following (in order to get everything right):
10292           If the client is directly connected local client then the
10293           `connection' argument must be set and `router' argument must be
10294           NULL to silc_idlist_add_client function.  If the client is not
10295           directly connected client then the `router' argument must
10296           bet set and the `connection' argument must be NULL to the
10297           silc_idlist_add_client function.
10298
10299         * The funtion silc_server_packet_send_local_channel actually did
10300           not check whether the client was locally connected or not.  It
10301           does that now.  Fixed a bug related to LEAVE command.
10302
10303         * Fixed Remove Channel User payload parsing bug in server's
10304           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
10305
10306         * The server's silc_server_save_channel_key now checks also the
10307           global ID list for the channel as it might not be in the local
10308           list.  Fixed a bug related to LEAVE command.
10309
10310         * Is this the end of the [<unknown>] buglet that has been lurking
10311           around for a long time?  A little for loop fix in server's
10312           silc_server_command_whois_parse that is used by both IDENTIFY
10313           and WHOIS command.  At least, this was a clear bug and a cause
10314           of one type of [<unknown>] buglet.
10315
10316         * WHOIS and IDENTIFY commands call the function
10317           silc_server_command_[whois/identify]_check function even if
10318           we are not router server.
10319
10320 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10321
10322         * Added --with-gmp configuration option.  If set the GMP
10323           is always compiled in the SILC source tree.  If not set then
10324           it is checked whether the system has the GMP3 installed.  If
10325           it has then the GMP won't be compiled (the system's headers
10326           and library is used), if it doesn't have it then the GMP is
10327           compiled in the SILC source tree.
10328
10329 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10330
10331         * Changed RSA private exponent generation to what PKCS #1
10332           suggests.  We try to find the smallest possible d by doing
10333           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
10334           not security fix but optimization.
10335
10336 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10337
10338         * Added new config entry [Identity] to fork the server and run
10339           it as specific user and group.  A patch from Bostik.
10340
10341         * Imported Dotconf configuration library into lib/dotconf.
10342           This will be used to create the SILC configuration files later.
10343           It will appear in the distsribution after this commit.
10344
10345 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10346
10347         * A big code auditing weekend happening.  Auditing code for
10348           obvious mistakes, bugs and errors.  Also, removing any code
10349           that is obsolete.
10350
10351           Removed files for being obsolete:
10352
10353           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
10354           inline in the file lib/silcutil/silcbuffer.h)
10355
10356           o lib/silcutil/silcbufutil.c (the header has inline versions)
10357
10358           Changed code to fix possible error conditions:
10359
10360           o The buffer formatting routines now check that the destination
10361           buffer really has enough space to add the data.  This applies for
10362           both buffer formatting and unformatting
10363           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
10364           unformatting was changed to accomodate following rules:
10365           XXX_*STRING_ALLOC will allocate space for the data into the pointer
10366           sent to the function while XXX_*STRING will not allocate or copy
10367           the data into the buffer.  Instead it sets the pointer from the
10368           buffer into the pointer sent as argument (XXX_*STRING used to
10369           require that the pointer must be allocated already).  This change
10370           makes this whole thing a bit more consistent and more optimized
10371           (note that the data returned in the unformatting with XXX_*STRING
10372           must not be freed now).  The routines return now -1 on error.
10373
10374           o Tried to find all code that use buffer_format and buffer_unformat
10375           and added return value checking to prevent formatting and
10376           especially unformatting errors and possible subsequent fatal
10377           errors.
10378
10379           o Changed ske->x and ske->KEY to mallocated pointers in
10380           lib/silcske/silcske.h.  Fixed possible data and memory leak.
10381
10382           o Added return value checking to all *_parse* functions.  Fixed
10383           many memory leaks as well.
10384
10385           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
10386           so that buffer overflows would not happen.  All code now also
10387           checks the return value as it can fail.
10388
10389 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10390
10391         * Added reconnection support to server if the normal server looses
10392           its connection to the router (for example if router is rebooted).
10393           The server performs normal reconnection strategy implemented
10394           to the server.  Affected file silcd/server.c.
10395
10396 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10397
10398         * Added new packet type SILC_PACKET_SET_MODE that is used to
10399           distribute the information about changed modes (for clients,
10400           channels and clients channel modes) to all routers in the
10401           network.  Updated the protocol specification accordingly.
10402
10403           Added functions into silcd/packet_send.c and
10404           silcd/packet_receive.c: silc_server_send_set_mode,
10405           silc_server_set_mode.
10406
10407           Added new files silcmode.[ch] into lib/silccore that implements
10408           the encoding and decoding of Set Mode Payload.  Added new type
10409           SilcSetModePayload.  Moved the definitions of different modes
10410           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
10411
10412 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10413
10414         * Oops, a little mistake in server's connection authentication
10415           protocol.  The protocol is not ended with FAILURE but with
10416           SUCCESS if the authentication is Ok. :)  Affected file is
10417           silcd/protocol.c.
10418
10419         * Implemented NICK_CHANGE notify handling in server in the file
10420           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
10421           the local clients on the channel.  After the changing nickname
10422           in router environment snhould work and the [<unknown>] nickname
10423           should appear no more.
10424
10425           The silc_server_replace_id function that receives the Replace ID
10426           payload now sends the NICK_CHANGE notify type also in the file
10427           silcd/packet_receive.c
10428
10429         * Changed WHOIS and IDENTIFY command to support the maximum amount
10430           of arguments defined in protocol specs (3328 arguments).  This
10431           fixed a bug that caused problems when there were more than three
10432           users on a channel.
10433
10434 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10435
10436         * Added extra parameter, command identifier, to the
10437           silc_client_send_command so that explicit command identifier
10438           can be defined.
10439
10440           Changed that ID list routines uses specific command identifier
10441           when sending WHOIS/IDENTIFY requests to the server so that they
10442           can be identified when the reply comes back.
10443
10444           Affected files lib/silcclient/command.[ch],
10445           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
10446
10447         * Added `sender' argument to silc_server_packet_send_to_channel
10448           to indicaet the sender who originally sent the packet to us
10449           that we are now re-sending.  Ignored if NULL.  Affected file
10450           silcd/packet_send.[ch].
10451
10452         * Added some server statistics support in silcd/server_internal.h
10453           SilcServerStatistics structure and around the server code.  Also
10454           send some nice statistics information when client is connecting
10455           to the client.
10456
10457 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10458
10459         * Fixed channel ID decoding in server's JOIN command reply in
10460           silcd/command_reply.c
10461
10462         * Fixed braodcasting of replace ID payload to not to send it if
10463           we are standalone server in silcd/packet_receive.c.
10464
10465         * Fixed all channel message sending routines to not to send
10466           packets to clients that has router set, since they are routed
10467           separately in the same function earlier.  Affects file
10468           silcd/packet_send.c and all channel packet sending functions.
10469
10470         * In USERS reply, res_argv[i] are not allocated, the table
10471           is allocated.  Thus changed that free the table, not its
10472           internals.
10473
10474         * In server's whois_check and identify_check if the client is
10475           locally connected do not send any WHOIS commands - they are not
10476           needed.
10477
10478 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10479
10480         * Fixed some minor bugs in client when sending WHOIS command.  The
10481           arguments was in wrong order.
10482
10483         * Removed statis function add_to_channel from server in
10484           silcd/command.c that was previously used with the joining but
10485           is obsolete now.
10486
10487         * Tested USERS command in router environment successfully with two
10488           routers, two servers and two clients.
10489
10490 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10491
10492         * Reorganized the USERS command and command reply in client library
10493           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
10494           When the command is given by user we register a pending command
10495           callback that will reprocess the command after the reply has been
10496           received from the server.  When reprocessing the packet we then
10497           display the information.  Thus, the USERS information is displayed
10498           now in the command callback instead of in the command reply
10499           callback.  The processing of the command is same as previously
10500           when server has sent the command reply in the JOINing process.
10501
10502         * Added to USERS command in silcd/command_reply.c to join the client,
10503           we didn't use to know about, to the channel after we've created
10504           a client entry for it.  Also, for clienet we did know already still
10505           check whether it is on the channel or not and add it if not.
10506
10507         * Removed silc_server_command_join_notify as the function and its
10508           use was obsolete.
10509
10510 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10511
10512         * Changed the client's pending command handling to the same as the
10513           server's pending command handling.  It is also now possible to
10514           execute command reply functions from other command reply
10515           function as the function callbacks for commands and command
10516           replies are one and same.  The pending commands are not static
10517           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
10518           in client connection context.  Thus, pending commands are server
10519           connection specific as it is convenient.
10520
10521           Changed the function silc_client_command_pending and
10522           silc_client_command_pending_del and added new function
10523           silc_client_command_pending_check.  Removed the
10524           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
10525           macros.
10526
10527         * Added cmd_ident, current command identifier, to the client
10528           connection context in lib/silcclient/client.h to keep track on
10529           command identifiers used in command sending.  Client's command reply
10530           function handling now supports the mandatory command identifiers.
10531
10532         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
10533           funtions in client to fully support pending command callbacks.
10534
10535         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
10536           as one of the arguments to the application in the command reply
10537           client operation.
10538
10539         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
10540           before first releasing SILC but came back.  Now it is removed again
10541           and should come back nomore.  The FORWARDED flag was used only
10542           by the JOINing procedure by forwarding the command packet to router.
10543           Now, the JOINing procedure has been changed to more generic (due
10544           to various router environment issues) and FORWARDED is not needed
10545           anymore for anything.  The protocol specification is yet to be
10546           updated.
10547
10548           Now, removed silc_server_packet_forward from server and the flag
10549           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
10550
10551 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10552
10553         * Renamed NAMES command to USERS command.  The NAMES was named that
10554           due to historical reasons.  Now it is renamed.  Also, rewrote
10555           parts of the USERS command.  The nickname list is not sent anymore
10556           by the server.  Only Client ID and mode lists are sent in the USERS
10557           command.  Changed this also to the protocol specification.
10558
10559           The client now resolves the names and stuff after it receives
10560           the USERS list from the server when joining to the channel.
10561
10562         * WHOIS and IDENTIFY commands has been changed to support multiple
10563           Client ID's per command.  One can now search for multiple users
10564           in the network by sending only one WHOIS or IDENTIFY command.
10565           Changed the code and the protocol specifications.
10566
10567         * Removed silc_server_command_identify_parse and changed that IDENTIFY
10568           uses silc_server_command_whois_parse to parse the request. */
10569
10570         * If normal server, do not parse the WHOIS and IDENTIFY requests
10571           before sending it to the router.  Saves some time.
10572
10573 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10574
10575         * Fixed JOIN command on client library.  Wrong number of arguments
10576           used to crash the client.
10577
10578         * Added silc_server_channel_has_global function to check whether
10579           channel has global users or not.
10580
10581         * Added silc_server_channel_has_local function to check whether channel
10582           has locally connected clients on the channel.
10583
10584         * The silc_server_remove_from_one_channel now checks whether the
10585           channel has global users or not after given client was removed from
10586           the channel.  It also checks whether the channel has local clients
10587           on the channel anymore.  If it does not have then the channel entry
10588           is removed as it is not needed anymore.
10589
10590         * The silc_server_notify now checks on JOIN notify whether the joining
10591           client is one of locally connected or global.  If it is global then
10592           the channel has now global users on the channel and that is marked
10593           to the channel entry.  Also, it now saves the global client to
10594           global list who is joining and JOINs it to the channel.  This is
10595           for normal server, that is.
10596
10597           Changed silc_server_send_notify_on_channel,
10598           silc_server_packet_relay_to_channel and
10599           silc_server_packet_send_to_channel check if we are normal server
10600           and client has router set (ie. global client) do not send the
10601           message to that client, as it is already routed to our router.
10602
10603         * Implemented LEAVE notify type handling in silc_server_notify
10604           function.
10605
10606         * Tested LEAVE command in router environment successfully.  Tested
10607           with two routers, two servers and two clients.
10608
10609         * Updated TODO.
10610
10611         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
10612
10613         * Implemented SIGNOFF notify type handling in silc_server_notify
10614           function.
10615
10616         * silc_server_remove_id now removes the client entry from all channels
10617           it has joined and thusly sends SIGNOFF notify type.
10618
10619         * Rewrote the NAMES list generation in server by removing two excess
10620           loops.  The lists are created now inside one loop.
10621
10622 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10623
10624         * silc_server_remove_channel_user checks now also global list
10625           for channel and client.
10626
10627         * silc_server_new_channel_user checks now both local and global
10628           list for channel and client.  Fixed a bug in client id decoding.
10629           Used to decode wrong buffer.
10630
10631         * silc_server_channel_message checks now both local and global
10632           list for channel entry.
10633
10634         * Tested channel joining (hence JOIN) in router environment
10635           successfully.  Tested with two routers, two servers and two
10636           clients.
10637
10638         * Tested channel message sending in router environment successfully.
10639
10640 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10641
10642         * Added silc_server_save_channel_key into server.[ch] to save the
10643           received channel key in Channel Key payload processing. It is
10644           also used in JOIN command reply handling.
10645
10646           Equivalent function silc_client_save_channel_key added into
10647           client.[ch] into client library.
10648
10649         * Changed JOIN command reply to send information whether the channel
10650           was created or not (is existing already) and the channel key
10651           payload.  Changed protocol specs accordingly.
10652
10653         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
10654           the request was sent by ID and not by nickname.  Crashed on
10655           NULL dereference.
10656
10657 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10658
10659         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
10660           now correctly save the received data.
10661
10662         * silc_server_free_sock_user_data now notifies routers in the
10663           network about entities leaving the network.
10664
10665           At the same time implemented functions silc_server_remove_id
10666           and silc_server_send_remove_id to receive and send REMOVE_ID
10667           packets.  The packet is used to notify routers in the network
10668           about leaving entities.  The ID removed will become invalid in
10669           the network.
10670
10671         * Added function silc_idlist_del_server into server. Removes and
10672           free's server entry from ID list.
10673
10674         * silc_server_private_message function now checks, if we are router,
10675           that the destination ID really is valid ID, naturally.
10676
10677         * In router when NEW_ID packet is received (for new client) the
10678           hash of the Client ID is saved in the ID Cache but the
10679           client->nickname is set to NULL, instead of putting the hash
10680           to it as well.
10681
10682           IDENTIFY command now also checks that client->nickname must be
10683           valid. If it is not if will request the data from the server who
10684           owns the client.  Added new function
10685           silc_server_command_identify_check.
10686
10687         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
10688           to set the command to already allocated Command Payload.
10689
10690         * Tested private message sending in router environment with two
10691           routers, two servers and two clients.  Fixed minor bugs and now
10692           it works fine.
10693
10694         * Fixed segfault from client's NAMES command. Used to crash if
10695           not on any channel.
10696
10697         * Forwarded packets must not be routed even if it is not destined
10698           to the receiver.  Changed server code comply with this.
10699
10700 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10701
10702         * Added `require_reverse_mapping' boolean value to ServerParams
10703           structure. If TRUE (not default) the server will require that
10704           the connecting host has fully qualified domain name.
10705
10706           If the reverse mapping is not required and hostname could not be
10707           found the IP address is used as hostname.
10708
10709 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10710
10711         * Implemented version string checking to both client and server.
10712           The check is incomplete currently due to the abnormal version
10713           strings used in development version of SILC.
10714
10715         * Changed all command functions in server to use the new
10716           CHECK_ARGS macro.
10717
10718 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10719
10720         * Changed char *data to unsigned char *data in ID Cache system to
10721           support binary data as ID Cache data. Changed code to support
10722           binary data in lib/silccore/idcache.c.
10723
10724         * Renamed silc_server_packet_relay_command_reply to
10725           silc_server_command_reply as it is normal packet receiving
10726           function. Rewrote the function to accept command replys for
10727           servers and not only for clients.
10728
10729         * Mark remote router always as registered server if we are connecting
10730           to it.  Otherwise, commands sent by the router to us are ignored.
10731
10732         * All ID List find routines now returns the ID Cache Entry pointer
10733           as well if requested.
10734
10735         * WHOIS command works now in router environment, tested with two
10736           routers, two servers and two clients.
10737
10738         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
10739           in router environment (as it is almost equivalent to WHOIS) but
10740           hasn't been tested thoroughly.  Added new functions:
10741
10742           silc_server_command_identify_parse
10743           silc_server_command_identify_send_reply
10744           silc_server_command_identify_from_client
10745           silc_server_command_identify_from_server
10746
10747         * Disabled route cache adding because adding two different ID's with
10748           same IP replaces the old cache entry thus giving wrong route.
10749           The entry->router->connection is always the fastest route anyway
10750           so route cache may not be needed.  Of course, new routes maybe
10751           established after receiving the ID when the entry->router->connection
10752           might not be anymore the most optimal.
10753
10754 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10755
10756         * Add route cache for received ID for fast routing.
10757
10758         * Added silc_server_packet_route to route received packet on router
10759           that is not destined to us.
10760
10761         * Renamed silc_server_get_route to silc_server_route_get.
10762
10763         * Added id_string and id_string_len fields into SilcServer to
10764           include encoded ServerID for fast comparing without excess
10765           encoding of the ID's.
10766
10767         * Cleaned up WHOIS command on server side. Added following static
10768           functions:
10769
10770           silc_server_command_whois_parse
10771           silc_server_command_whois_check
10772           silc_server_command_whois_send_reply
10773           silc_server_command_whois_from_client
10774           silc_server_command_whois_from_server
10775
10776         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
10777           arguments in command replies. All command functions should be
10778           updated to use this macro.
10779
10780 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10781
10782         * Minor typo fixes on command reply handling on server.
10783
10784 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10785
10786         * Added silc_server_command_add_to_channel internal routine to add
10787           the client to the channel after router has created the channel and
10788           sent command reply to the server.
10789
10790         * Added generic silc_server_send_command to send any command from
10791           server.
10792
10793         * Use static buffer with ID rendering instead of duplicating data.
10794
10795 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10796
10797         * Fixed a channel user mode bug when joining to a channel server gave
10798           everybody channel founder rights, oops.
10799
10800         * We mark ourselves as the router of the incoming server connection
10801           if we are router ourselves.  This way we can check in some packet
10802           sending functions whether it is locally connected server.  For
10803           incoming router connections we put NULL.
10804
10805         * For router sending packets locally means now always sending the
10806           packet cell wide; to local clients and local servers.  For normal
10807           server sending packet locally means sending it to only local
10808           clients.
10809
10810         * Fixed the JOIN command to really work in router environment.  If the
10811           channel is created it is always created by the router.  Router is
10812           also responsible of making the initial joining to the channel,
10813           sending JOIN notify to the sending server and distributing
10814           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
10815           does not exist server doesn't do anything else but forward the
10816           command to the router which performs everything.
10817
10818         * Added silc_server_send_channel_key function to send the Channel Key
10819           payload.
10820
10821         * Added silc_server_create_channel_key to create new channel key.  The
10822           channel key is now re-generated everytime someone joins or leaves
10823           a channel, as protocol dictates.  Note: channel->key_len is the
10824           key length in bits.
10825
10826 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10827
10828         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
10829           packet_receive.[ch] to separate packet sending and receiving
10830           routines.  The server.[ch] now includes everything else including
10831           actual packet processing (writing and reading data) and other
10832           server issues.
10833
10834           Renamed silc_server_private_message_send_internal to
10835           silc_server_send_private_message.  The routine is still though
10836           used only to relay private messages as server does not send
10837           private messages itself.
10838
10839           Renamed silc_server_new_channel to silc_server_create_new_channel
10840           and added new function sicl_server_new_channel that handles the
10841           incoming New Channel packet.  Added also new sending function
10842           silc_server_send_new_channel to send New Channel Payload.
10843
10844         * Added new function silc_server_notify to process incoming notify
10845           packet to the server/router. Server may then relay the notify
10846           to clients if needed.
10847
10848         * Added new function silc_server_new_channel_user to process incoming
10849           New Channel User packet.  Router will redistribute the packet and
10850           send JOIN notify to its local clients and locally connected servers
10851           if needed.  Normal server will send JOIN notify to its local client
10852           on same channel when received this packet.  Added also corresponding
10853           sending function silc_server_send_new_channel_user to sent the
10854           payload.
10855
10856         * Added boolean route argument to send_notif_to_channel and
10857           packet_send_to_channel functions to attempt to route the packet
10858           if it is TRUE and send only locally if it is FALSE.
10859
10860 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10861
10862         * silc_server_replace_id now broadcasts the received replace ID
10863           packet if it is not broadcast packet already. The router must
10864           broadcast to inform other routers about changed ID.
10865
10866         * Added backpointer to server's router into SilcServer context in
10867           silcd/server_internal.h.
10868
10869         * Fixed silc_server_packet_broadcast to send correct broadcast
10870           packets.
10871
10872         * The channel key is now distributed to the local client as soon
10873           as it is received from the router (in router environment) so that
10874           no other packet may be sent for the channel until client has
10875           received the key.
10876
10877         * silc_server_remove_channel_user now broadcasts the received
10878           Remove Channel User packet if it is not broadcast packet already.
10879           The router must broadcast to inform other routers about removed
10880           channel user.
10881
10882         * Added users field into SilcPacketContext that is a reference count
10883           of the context.  One can increase the reference count by calling
10884           silc_packet_context_dup which is now changed to just increase the
10885           reference count instead of duplicating the data.  The reference
10886           count is decresed by calling silc_packet_context_free that will
10887           free the data after the reference count hits zero.
10888
10889           For now on the packet context and everything allocated into it
10890           (including the raw packet from network) must be freed by calling
10891           the new silc_packet_context_free function.  Added also new function
10892           silc_packet_context_alloc that must be used now to allocate the
10893           context.  This also means that if a routine is asynchronous from
10894           silc_[client/server]_packet_parse_type the packet context must
10895           be duplicated by calling silc_packet_context_dup.  Otherwise it
10896           gets free'd after silc_[client/server]_packet_parse_type returns.
10897           Also, one must remember that if packet is duplicated then its
10898           reference count must be decresed by calling the free function as
10899           many times as it was duplicated.
10900
10901         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
10902           from both client and server.
10903
10904 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10905
10906         * Made joining to a channel working in router environment.
10907
10908         * Cleaned up JOIN command on server side and create function
10909           silc_server_command_join_channel internal routine to make the
10910           joining happen.
10911
10912 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10913
10914         * Changed silc_command_pending list to SilcDList.  Also, added
10915           `ident' field to SilcServerCommandPending structure to identify
10916           the reply and to call correct callback.
10917
10918           Added silc_server_command_pending_check function to replace the
10919           corresnponding macro.  The silc_command_pending list is not
10920           extern anymore.
10921
10922         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
10923           to set identifier to previously allocated Command Payload.  It
10924           is used to set identifier for command when resending Command
10925           Payload.
10926
10927         * Added silc_command_payload_encode_payload to encode Command
10928           Payload buffer from SilcCommandPayload structure.
10929
10930         * Added silc_argument_payload_encode_payload to encode Argument
10931           payload buffer from SilcArgumentPayload structure.
10932
10933 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10934
10935         * Changed WHOIS command to support router connection on server side.
10936           The whois request is always sent to router unless the server is
10937           standalone server.  After server has received the reply from the
10938           router will it send the reply to the client.
10939
10940         * Added silc_server_packet_broadcast into silcd/server.[ch] to
10941           broadcast received broadcast packet.  The function is used only
10942           by router.  The broadcast packet is always sent to the router's
10943           primary route.
10944
10945         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
10946           render given ID to printable string, for log files for example.
10947
10948 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10949
10950         * Made basic router to router connections working.  At least they
10951           can now connect to each other but nothing really works the way
10952           they are supposed - yet.
10953
10954         * Added new initiator token to RouterConnection configuration
10955           file in silcd/serverconfig.[ch].  It is used to tell whether we
10956           are the initiator to the remote router or whether we'll expect
10957           the other end to connect.
10958
10959         * Moved registering of listener task to silc_server_init, hence
10960           the server starts listenning as soon as it is run, even if it
10961           does not have connections to other routers.  Let's see how well
10962           this will work.
10963
10964         * Changed default connection retry timeouts for more suitable in
10965           silcd/server.h.
10966
10967         * Removed cipher and such arguments from silc_idlist_add_client
10968           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
10969           Added new function silc_idlist_add_data to add the keys and stuff
10970           to any ID entry.
10971
10972         * Added SilcIDListData structure and added it to SilcClientEntry
10973           and SilcServerEntry as their first field in the structure.  This
10974           way we can explicitly cast the ID entries to the SilcIDListData
10975           structure and get common data for the entries.  In past, we had
10976           to first check what type of connection it is and then cast it to
10977           correct ID entry type.  Now, we can directly cast the opaque
10978           pointer to the SilcIDListData (no matter what ID entry it actually
10979           is) and get the data needed.
10980
10981 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10982
10983         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
10984           in some circumstances even if threre were timeout tasks, though not
10985           IO tasks, but tasks anyway.  Now fixed.
10986
10987         * Defined SilcServerConnection structure to hold connection specific
10988           stuff about directly connected servers and routers.  The definition
10989           is currently in silcd/server_internal.h.  I thought about having
10990           a bit more important role fro this struct but for now it is used
10991           only when connecting to other server (or router actually).
10992
10993         * Added connecting retry support in server when connecting to
10994           router(s).  The retry feature implement exponential backoff
10995           algorithm.  Also, added SilcServerParams structure to hold default
10996           parameters for server.  For now, it include these retry settings
10997           and are hard coded.  After server is moded to be as Silc Server
10998           Library this structure will be more important.
10999
11000 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11001
11002         * Changed client librarys channel->clients table to SilcList and
11003           changed code accordingly.
11004
11005 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11006
11007         * Changed client's channel table to SilcList and changed code
11008           accordingly.  Also changed SilcChannelClientEntry to include back-
11009           pointer to the channel so that client entry can use that structure
11010           as list as well and we have fast cross-reference to the channel.
11011           This change dramatically decreased the complexity of channel
11012           handling with client entry and vice versa (removed one extra
11013           loop when searching for channel entry from many functions).
11014
11015         * Changed server->sim from table to SilcDList and changed code
11016           accordingly.
11017
11018         * NAMES command can now be used from user interface.  It will show
11019           the user list on the channel, neatly.
11020
11021         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11022           Code now saves realname of the user if it becomes available.
11023
11024         * Renamed configure.in to configure.in.pre and made ./prepare
11025           script to automatically add correct version string to
11026           configure.in which it creates from configure.in.pre.
11027
11028 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11029
11030         * NAMES command reply now shows users mode with the nickname when
11031           joining to channel.
11032
11033         * Moved silc_client_ch[u]mode[_char] functions from
11034           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11035           place sucks, they are utility functions and should be in some
11036           other file.
11037
11038         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11039
11040         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11041           cras.
11042
11043 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11044
11045         * Updated README.
11046
11047         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11048           a very good list library that is currently used in the SILC.  Defined
11049           SilcList API over the library because I didn't like the API very
11050           much.  See lib/trq/silclist.h for the API and examples of how to
11051           use the API.  Fixed various places in the code to use the new
11052           SilcList API. The SilcList is meant for lists that has a structure
11053           already defined as a list.  It is not suitable to add just some
11054           context to the list (in TRQ, the context is the list actually).
11055
11056           So, I defined SilcDList that can be used for the purpose where
11057           predefined list structure does not exit.  This can be used as
11058           such list.  Now some context just can be added to the SilcDList.
11059           Currently this list is not used in the SILC just yet, though there
11060           are a lot places where this can replace dynamically allocated
11061           tables and I will fix these places, later, to use SilcDList.
11062           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11063           and use TRQ internally).
11064
11065           Also fixed some annoying warning messages that the original TRQ
11066           code generated.  Also minor changes to TRQ's Makefile.in.
11067
11068         * Added support for querying by Client ID to both WHOIS and
11069           IDENTIFY commands into server, as required by the protocol.
11070
11071         * Removed method function pointers from SilcBuffer structure. They
11072           weren't used to anything and just increased the context size for
11073           no good reason.  This change also made silc_buffer_alloc and
11074           silc_buffer_free functions inline functions.
11075
11076         * Disabled command flooding detection support until it's fixed so
11077           that it accepts commands in but does not execute them more than once
11078           in two seconds.
11079
11080         * Added silc_net_localhost(), to return local hostname, into
11081           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11082           that must be initialized before calling silc_client_init.
11083
11084         * Added new function: silc_server_send_notify_on_channels to send
11085           notify messages to all channels client has joined.  It is assured
11086           that the message is sent only once per client.
11087
11088         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11089           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11090           function is generic and is used by server as well, not only by
11091           the logging routines.
11092
11093         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11094           the provided version string was not acceptable.  Added new function:
11095           silc_ske_check_version into lib/silcske/silcske.h.  The function
11096           must be implemented by the application (client or server) and it
11097           does not reside in the SKE library.  The function checks the version
11098           string remote end sent.
11099
11100         * Added back pointers (to opaque context and to SilcSocketConnection)
11101           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11102
11103         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11104           duplicate packet context structure.
11105
11106         * Changed `notify' client operation to send same arguments as client
11107           receives from server except for ID's.  ID's are mapped to correct
11108           ID entry and that is returned.  Also, if channel entry is not sent
11109           by server but the notify is for channel the channel entry is sent
11110           to application (otherwise application doesn't know that it is for
11111           channel (library gets it from packet's Destination ID)).
11112
11113         * Added silc_client_remove_from_channels into client library to
11114           remove a client from all channels it has joined to.  Used when
11115           received SIGNOFF notify from server.  Added also new function
11116           silc_client_replace_from_channels to replace old ID entry with
11117           new ID entry on all channels.  Used when received NICK_CHANGE
11118           notify from server.
11119
11120         * Fixed ID Cache list handling in silc_idlist_get_client in
11121           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11122           to get (or query) client by ID.
11123
11124         * Updated TODO list.
11125
11126         * Added connection authentication status message defined by the
11127           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11128           support for these into the code in client and server side.
11129
11130         * Added generic function silc_client_send_command to send any command
11131           with variable argument list.  Application should use this function
11132           to send commands if the command functions provided by the library
11133           does not suite for the application's user interface needs.
11134
11135         * Added new `failure' client operation.  Application is notified about
11136           received failure packet if client is executing a protocol.  In this
11137           case the protocol's execution has failed.
11138
11139         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11140           is required by the protocol.
11141
11142         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11143           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11144           error at our end.
11145
11146         * Added status flag to SilcSKE object to indicate realtime status
11147           of the SKE protocol.
11148
11149         * Application receives now exactly same command reply arguments as
11150           the library receives from server.  However, if ID is received the
11151           corresponding ID entry is returned to the application (eg. Client
11152           ID is mapped to correct SilcClientEntry entry and that is returned).
11153           Changed command_reply client operation due to this change.
11154
11155         * Changed all ID's in commands and in command replys as ID Payloads.
11156           Change affected both client and server side codes.
11157
11158           All ID's sent in SILC network (with execption of ID's in SILC
11159           Packet header) are sent in ID Payload to support variable length
11160           ID's.
11161
11162         * Server now notifies nick changes and notifies all clients on
11163           the channels about the new nickname (about the new Client ID,
11164           actually).
11165
11166         * Implemented CMODE command to change channel modes. Supports all
11167           channel modes defined by the protocol specs except ban and invite
11168           lists. (Also, private channel key mode is supported but support for
11169           setting private channel key in client is missing, thus, this mode
11170           has no effect on client side (except that server requires that the
11171           client uses private channel key and normal channel traffic does not
11172           work anymore)).
11173
11174           Also, invite mode works per se, but INVITE command does not work
11175           yet correctly, so you can set channel as invite only channel but
11176           inviting clients to the channel does not work (it is yet to be
11177           thought what's the best way to do it).
11178
11179         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11180           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11181           Implemented CUMODE command to change user's mode on the channel.
11182           Supports all modes defined by the protocol specs.
11183
11184         * Added NAMES command reply to return users modes on the channel.
11185
11186         * Removed unnecessary and slow ciphers from lib/silccrypt.
11187
11188         * Set SO_KEEPALIVE option to connection sockets by default.
11189
11190         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11191
11192         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11193           redefined the Notify Payload into protocol specs.
11194
11195         * Added silc_id_payload_parse_id to get ID directly from raw
11196           ID payload data.
11197
11198 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11199
11200         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11201           accept searching by Client ID as well.
11202
11203         * Added support for LEAVE and SIGNOFF notify types in client library.
11204
11205         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11206           to parse ID Payload from raw data.
11207
11208 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11209
11210         * Added flags parameter into silc_ske_assemble_security_properties
11211           function in lib/silcske/silcske.[ch].
11212
11213         * Changed notify client operation to fit better for notify messages
11214           sent by server.  The notify payload received from server is now
11215           passed to the application (after parsing it to SilcNotifyPayload).
11216           It is application's responsibility to retrieve the arguments
11217           from the payload and show the message the way it wants.  The message
11218           sent by server is implementation specific.
11219
11220         * Changed public keys to comply with the protocol specification.
11221           Old public keys are not supported anymore and are not compatible.
11222
11223         * Removed nickname from Channel Payload as the latest draft removed
11224           it.  The client must resolve the nickname from the NAMES command
11225           reply received when it joined the channel.
11226
11227           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11228
11229 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11230
11231         * Fixed some errors in protocol specification drafts.
11232
11233         * Created lib/silccore/silcnotify.c to implement Notify Payload
11234           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11235           generic payloads described by protocol specifications.  The file
11236           includes implementations for ID Payload and Argument Payload.
11237
11238         * Changed Command Payload implementation to use the new Argument
11239           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11240           to comply with SILC coding conventions.
11241
11242         * Added suppport for Argument Payload handling in Notify Payload
11243           implementation as protocol requires it.  Added the new support
11244           into server and client lib as well.
11245
11246 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11247
11248         * Added support for multiple nicknames on same channel.  [n] is
11249           added locally to the nickname if there are more than one same
11250           nicknames on the channel.
11251
11252         * Server now sends all nicknames that matched WHOIS request.
11253           Client also shows the list received from server.
11254
11255         * Added TOPIC command to client side.  User can now set and show
11256           current topic on channel.
11257
11258         * Added MOTD command to client and server.  Also, server sends the
11259           motd when client connects to the server.
11260
11261         * Changed version strings to comply ISO 8601.
11262
11263 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11264
11265         * Fixed protocol error handling in client library.  It should now
11266           cope even if the SKE fails for some reason.
11267
11268         * Made new protocol specification drafts for submitting to IETF.
11269
11270         * Implemented TOPIC command to server in silcd/command.c.
11271
11272         * Added two new notify types into lib/silccore/silcnotify.h:
11273           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
11274           notify nickname change and topic setting/change on a channel.
11275
11276         * API change of command_reply operation in client library.  The
11277           application gets now the status type received from server as well.
11278
11279 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11280
11281         * Removed the function just added to lib/silcutil/silcschedule.[ch].
11282
11283         * Cras fixed and optimized the packet handling even further and
11284           it should work now.  Minor change to the prototype of function
11285           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
11286
11287 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11288
11289         * Added new function into lib/silcutil/silcschedule.[ch]:
11290           silc_schedule_with_fd to select() a specified fd.  The function
11291           returns after timeout expires or data arrives or goes.  The
11292           function is used by packet routines to wait that all data is
11293           received from network.
11294
11295         * Fixed data reading from network in lib/silccore/silcpacket.c.
11296           The code now assures that all data is read from the fd and then
11297           continues packet processing.  This was a bug fix since the code
11298           used to drop some data in some circumstances.
11299
11300         * Added new function into lib/silcclient/client.[ch]:
11301           silc_client_start_key_exchange to start key exchange after
11302           connection has been established to server.  The code internally
11303           now uses this funtion but its main purpose was to provide it
11304           for applications that perform their own connecting.  After
11305           application has created a connection it merely calls this
11306           function to start the key exchange between client and server.
11307           The library takes care of everything else after that.
11308
11309           Updated also lib/silcclient/README to explain the usage of
11310           this new function.
11311
11312         * Do not send to application information that connection has
11313           been established.  Application gets notified it by connect
11314           operation anyway.
11315
11316 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11317
11318         * Applied cras's patch to add silc_schedule_one function.  The
11319           function runs scheduler once and returns.
11320
11321         * Fixed the scheduler after cras messed it up.  The timeout
11322           handling works now as it's supposed to work.
11323
11324         * Added into lib/silccore/ silcnotify.h to include notify
11325           message types support.  Changed silc_server_send_notify*
11326           functions, in server.[ch], to support those new notify types.
11327           Added the support for the notify types into client library,
11328           as well.  Added new notify client operation into ops.h in
11329           lib/silcclient/.
11330
11331         * Changed silc_server_packet_send_to_channel to send normal
11332           packets instead of just channel message packets.  The function
11333           is now used to send the notify packets to channels.  It is not
11334           used to send channel message packets anymore, as server never
11335           sends them anymore.
11336
11337         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
11338           va_arg()s as it seems to require it nowadays.  I guess, if SILC
11339           is compiled with older va_arg() the new code should work anyway.
11340
11341 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11342
11343         * Splitted core library.  Core library (lib/silccore) includes
11344           now only SILC protocol specific core (and common) components.
11345           Created new utility library (lib/silcutil) that includes more
11346           generic purpose stuff.  The stuff for util library was taken
11347           from the old core library.  This was minor and easy split.
11348
11349         * Created SILC Client Library (lib/silcclient) that includes
11350           implementation of the SILC client without user interface.  This
11351           was major move from silc/ directory.  The code has been changed
11352           so that it is transparent towards the user interface.  The
11353           silc/ directory includes now the same user interface as before
11354           and it uses the new client library.  Read lib/silcclient/README.
11355           Basicly, the client library performs everything else related
11356           to SILC except user interface handling.  Also, configuration
11357           files are considered to be part of user interface and library
11358           does not handle them.
11359
11360           This change also changed a lot of structures, function naming etc.
11361           Most important change was that SilcClientWindow object was
11362           renamed to SilcClientConnection in the client library.  Created
11363           also new file lib/silcclient/ops.h.  Also added new files
11364           silc/local_command.[ch] and silc/client_ops.[ch].
11365
11366           All these changes were made to make it easier for user interface
11367           designers to create what ever user interface for the SILC client
11368           they want.
11369
11370           It is also expected that the server will be moved to lib
11371           directory as well and SILC Server Library will be created;
11372           sometimes in the future.
11373
11374         * Removed Local commands from lib/silccore/silccommand.h as
11375           they are application specific and new client library does not
11376           handle any of those anymore.
11377
11378         * Several functions moved to lib/silcutil/silcutilc.[ch] from
11379           old client implementation in silc/.
11380
11381         * Added support for callback functions in SILC_LOG_* macros.
11382           Application can now set its own callbacks that will be called
11383           instead of using the default functions that will always print
11384           the debug messages to stderr (or stdout).  Also, debugging can
11385           now be disabled by setting silc_debug to FALSE and re-enabled by
11386           setting it to TRUE.  Note, that logging will still work even
11387           if debugging is disabled.
11388
11389           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
11390           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
11391           silc_log_reset_debug_callbacks.
11392
11393         * To enable debugging in silc client one must give now -d
11394           option on command line.
11395
11396         * Changed silc_schedule_init to automatically allocate task queues
11397           if they are not allocated before calling it.
11398
11399 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11400
11401         * Added GMP 3.1 into math library.
11402
11403 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11404
11405         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
11406           a channel in SILC network.  The packet is used by servers and
11407           routers to notify other routers that user has left a channel.
11408           This little feature was missing until now.  Added the feature
11409           to protocol specification as well.
11410
11411           Added functions: silc_server_send_remove_channel_user and
11412           silc_server_remove_channel_user into server.[ch].
11413
11414         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
11415           lib/silccore/silcpacket.h.  However, they are not implemented
11416           yet.
11417
11418 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11419
11420         * Fixed joining to a channel and sending channel messages
11421           between server and router.  The channel message sending should
11422           now work inside a cell.
11423
11424 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11425
11426         * Fixed the private message sending between server and router.
11427           The private message sending should now work inside a cell.
11428
11429         * Added silc_server_replace_id into server.[ch] to replace
11430           existing ID in the SILC network.
11431
11432         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
11433           and silc_idlist_replace_server_id into idlist.[ch] in server.
11434
11435 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11436
11437         * Fixed the server to server connections.  Server can again now
11438           connect to router.  Router to router connections probably does
11439           not work just yet.
11440
11441 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11442
11443         * Added dynamic protocol registering support.  Now protocols can
11444           registered and unregistered on the fly.  Patch by cras.
11445
11446 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11447
11448         * Added lib/contrib directory to hold routines that some platforms
11449           don't have but are needed by SILC.
11450
11451         * Added getopt.c, getopt1.c and getopt.h from GNU C library
11452           into lin/contrib to provide getopt() and getopt_long() for
11453           those who don't have it.
11454
11455 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11456
11457         * Added AWAY command to client.  When away message is set and
11458           client receives a private message packet the client automatically
11459           replies to the sender with the away message.
11460
11461         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
11462           bug seemed to be the cause of recent problems when compiling
11463           with gcc-2.95.
11464
11465         * Added version detection support to SKE protocol specification
11466           and added the new changes to the SKE implementation as well.
11467           There were other minor changes in the SKE protocol as well.
11468
11469           Many changes in lib/silcske/silcske.[ch] and in
11470           lib/silcske/payload.[ch].
11471
11472         * Added ^U functionality, clear input line.  Patch from cras.
11473
11474 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11475
11476         * Mainly small bugfixes on core library.  Fixed some debugging
11477           logging and buffer overflow in silclog.c.
11478
11479         * Updated config.sub and config.guess on the distribution tree.
11480
11481 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11482
11483         * Added command lagging support in server. Client may execute
11484           commands now only once in two seconds.
11485
11486 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11487
11488         * Optimized packet reception. MAC computation and checking is now
11489           also more optimized.  A lot previously duplicated code is now
11490           used as generic by both client and server.
11491
11492         * Fixed key pair generation in clientutil.c
11493
11494 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11495
11496         * Added into lib/silccore/silcbufutil.[ch] new function;
11497           silc_buffer_realloc.
11498
11499         * Moved generic packet sending/encryption functions to
11500           lib/silccore/silcpacket.[ch] from client and server.  Some
11501           rewriting of the functions.
11502
11503         * Moved all generic packet reception/decryption functions to
11504           lib/silccore/silcpacket.[ch] from client and server.  The
11505           packet processing is now much cleaner in both client and server.
11506           These were major changes in both client and server.
11507
11508         * Created many common functions in server to do packet sending.
11509           Previously code were duplicated a lot, this has been removed
11510           with these changes.
11511
11512 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11513
11514         * Rewrote major parts of the ID cache system.  Don't know
11515           whether it is better now or not but at least the API is more
11516           cleaner now.
11517
11518         * Major rewrite on ID cache stuff on client because of the ID
11519           cache API changes.  Added idlist.c to client.
11520
11521         * Also major rewrite on ID cache stuff on server as well.
11522           Major rewrite of idlist.[ch]. SilcXXXList's are now named
11523           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
11524           in hand, instead they are all put into the ID cache system now.
11525           All server_idlist_* routines uses ID cache now instead of
11526           traversing its own lists (those lists does not exist anymore).
11527           SilcIDList though still exists.  Also, SilcXXXEntry's are
11528           now pointers.
11529
11530 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11531
11532         * Finally made the SKE implementation compliant to the protocol
11533           specification.  All mp integers are now binary encoded as
11534           opposed being HEX encoded.
11535
11536         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
11537           from binary data.
11538
11539         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
11540           functions: silc_[encode/decode]_pem.  Also added function
11541           silc_encode_pem_file to PEM encode with newlines ('\n') for
11542           saving into a file.
11543
11544         * SILC public keys are now encoded either PEM or binary.  Same
11545           option is for private keys as well.  By default private keys
11546           are binary encoded and public keys PEM encoded.  Silly HEX
11547           encoding were removed.
11548
11549         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
11550           function to create fingerprints.
11551
11552         * Fixed a bug in SHA1; does not change the original data anymore.
11553
11554         * Partly implemented INFO command on client and server side.
11555           Fixed CLEAR command.  Changes to SERVER command; show current
11556           server(s) when giving command without arguments.  Added
11557           VERSION command to client.
11558
11559         * Added check to server that unregistered connections cannot
11560           execute commands (unless it is specificly allowed).
11561
11562 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11563
11564         * Fixed screen refresh.
11565
11566         * Fixed channel joining bug from client.  On some circumstances
11567           client tried to join to a channel it had already joined.
11568
11569         * Added public key verification process into client's protocol.c.
11570           The client now verifies the public key from user and saves
11571           it into ~./silc/serverkeys/ directory.
11572
11573           Added into: clientutil.[ch]: silc_client_verify_server_key.
11574
11575         * Changed SKE protocol's silc_ske_initiator_finish function
11576           to accept callback function that verifies the received public
11577           key.  Removed old silc_ske_verify_public_key function.
11578
11579 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11580
11581         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
11582           silc_pkcs_private_key[_data]_set.
11583
11584         * Made the password and public authentication more cleaner in
11585           server's protocol.c.
11586
11587         * Removed historic and obsolete protocol `channel_auth' from
11588           both client and server.
11589
11590         * Removed wrong way of sending command status messages from
11591           server to client in server's command.c.  The old way violated
11592           protocol specification.
11593
11594           Changes to silccore/silccommand.[ch]: removed
11595           silc_command_encode_status_payload -> not needed anymore,
11596           changed silc_command_encode_payload_va to accept extra
11597           argument on variable argument list.  The argument type must
11598           now be provided to the function.  Also, added new function:
11599           silc_command_encode_reply_payload_va which is same as
11600           normal command_encode_payload_va except command status type
11601           is provided as extra argument.
11602
11603 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11604
11605         * Added ~./silc directory handling.  The directory includes the
11606           public and private keys for the client.
11607
11608           Added silc_client_check_silc_dir, silc_client_create_identifier
11609           and silc_client_load_keys.
11610
11611         * Implemented SILC protocol compliant public key.  Added public
11612           and private key saving to and loading from files.
11613
11614           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
11615           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
11616           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
11617           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
11618           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
11619
11620           Implemented: silc_pkcs_save_[public/private]_key[_data] and
11621           silc_pkcs_load_[public/private]_key.
11622
11623 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11624
11625         * Added silc_server_get_route (route.[ch]) to get connection
11626           data for the fastest route for given ID.
11627
11628         * Implemented INVITE command on client and server.  The command
11629           were re-defined in the SILC Protocol Specification and the
11630           implementation now complies with the specification.
11631
11632         * Implemented PING command on client and server.
11633
11634         * Implemented NAMES command on client and server.  The server side
11635           supports currently only normal server not router server yet.
11636           Some changes to NAMES definition in SILC protocol specification.
11637
11638 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11639
11640         * Implemented LEAVE command on client and server.
11641
11642         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
11643           again.  This change was made to the protocol as well.  Server
11644           should not violate the protocol specification anymore.
11645
11646 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11647
11648         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
11649           was tested.  SOCKS4 was not but should work anyway.