just felt like adding myself to the credits file
[silc.git] / CHANGES
1 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
2
3         * Modified the MIME parsing to allow \n and \r\n as delimiters.
4           Affected files lib/silcutil/silcstrutil.c
5         
6         * Cleaned up the escape/unescape functions for correctness and
7           speed. Affected file irssi/src/silc/core/client_ops.c
8
9         * Removed handling for data messages with Content-Type: text/*,
10           moved parsing of MIME headers to the signal handler, added
11           support for signing and verifying data messages. Affected 
12           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
13           irssi/src/silc/core/silc-{servers,channels}.c
14
15         * Added a perl script for handling data messages based on
16           information read from Mailcap files. New file 
17           irssi/scripts/silc-mime.pl
18         
19 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
20
21         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
22           acknowledge recepetion of a message to the sender.  Updated
23           protocol specs.
24
25 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
26
27         * Unregister channel key saving callback when deleting channel.
28           Affected file lib/silcclient/idlist.c.
29
30         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
31           before calling notify client operation.  Affected file is
32           lib/silcclient/client_notify.c.
33
34         * Unregister QoS tasks when deleting the socket connection.
35           Affected files lib/silcutil/silcsockconn.[ch],
36           unix/silcunixsockconn.c.
37
38         * Implemented latest presence-attrs draft changes.  Affected
39           files lib/silccore/silcattrs.h and
40           irssi/src/silc/core/silc-queries.c.
41
42 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
43
44         * Save old channel keys in list to allow more rapid change
45           of channel keys if server for some reason does that.  This
46           avoids loosing so many channel messages due to not having
47           key to decrypt.  Affected file lib/silcclient/silcclient.h,
48           idlist.c and client_channel.c.
49
50 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
51
52         * Continued backup router tests and fixes.  Affected files
53           silcd/server_backup, server_util.c, server.c.  See TODO.
54
55 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
56
57         * Fixed SERVER_SIGNOFF handling in servers.  The client
58           was removed from wrong list thus not removing the client
59           at all.  Affected file silcd/packet_receive.c.
60
61         * Do not execute rekey protocol for disabled connections as
62           it would never go through.  Affected file silcd/server.c.
63
64         * Added timeout for rekey protocol to catch if the protocol
65           never executes successfully.  Affected files silcd/server.c
66           and protocol.h.
67
68 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
69
70         * Abandon packet processing for disconnected sockets.  Check
71           this always after calling packet processing callback.
72           Affected file lib/silccore/silcpacket.c.
73
74         * Fixed double registration disconnection code in server.
75           Closed wrong connection.  Affected file silcd/packet_receive.c.
76
77 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
78
79         * On normal server reconnect to primary during resuming 4
80           times, then give up.  Affected file silcd/server_backup.c.
81
82         * If during reconnecting to routers we notice we have router
83           connection but no primary router set, the server is in desync.
84           Reconnect to primary to restore network.  Affected file
85           silcd/server.c.
86
87         * Assure that only one protocol is exeucting at the same time.
88           Added checks for all protocols.  Affected files are
89           silcd/server.c and server_backup.c.
90
91 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
92
93         * Check that a string is not already part on invite/ban
94           string when processing it.  Affected file silcd/server_util.c.
95
96 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
97
98         * Fixed the CUMODE_CHANGE for founder mode changes to comply
99           with 1.2 version of the protocol.  Affected file is
100           silcd/packet_receive.c.
101
102 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
103
104         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
105           where the passphrase was given.  Affected file is
106           silcd/command.c.
107
108 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
109
110         * INVITE and BAN notifys are now delivered from routers to
111           servers (but not clients) on the channel.  Updated specs and
112           code.  Affected files silcd/packet_[send|receive].[ch],
113           command.c, server.c and server_util.c.
114
115         * Implemented INVITE and BAN announcing.  Affected files are
116           silcd/server.[ch], server_util.c.
117
118         * Implemented SilcStatus error type argument returning in
119           command reply error in server.  Affected file silcd/command.c.
120
121         * Implemented SilcStatus argument returning in comand reply
122           in client library.  The command_reply client operation now
123           returns error specific arguments as well.  Affected files
124           are lib/silcclient/command_reply.[ch], client_resume.c,
125           lib/silccore/silcstatus.[ch].
126
127 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
128
129         * Backup router protocol version 1.2 implemented.  Testing still
130           required.  Affected files in silcd/server_backup.[ch], server.c,
131           packet_receive.c and server_internal.h.
132
133 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
134
135         * silc_client_send_[channel|private]_message now return TRUE
136           or FALSE.  Affected file lib/silcclien/client_channel.c and
137           client_prvmsg.c.
138
139 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
140
141         * Check for explicit nickname in INVITE and BAN processing
142           during join as well (and don't expect only wildcards in
143           invite/ban strings).  Affected file silcd/command.c.
144
145         * Fixed the INVITE and BAN by public key.  The public key saved
146           is the PK payload (as specified) not the raw data.  Affected
147           file silcd/server_util.c.
148
149 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
150
151         * UTF-8 text message support for actions and notices in SILC
152           Client.  Affected file irssi/src/silc/core/client_ops.c.
153
154         * silc_get_username and silc_get_real_name now returns sensible
155           data on Win32.  Patch by Toni Willberg.  Affected file is
156           lib/silcutil/win32/silcwin32util.c.
157
158 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
159
160         * Provide a signal handler to send MIME encoded messages and emit
161           a signal when a MIME encoded message is received. Also document
162           the signals for usage with the perl interface.
163
164           A sample perl script will be supplied at a later point.
165
166           Affected files are irssi/docs/signals.txt,
167           irssi/src/silc/core/client_ops.[ch],
168           irssi/src/silc/core/silc-{channels,servers}.c
169
170 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
171
172         * Use SILC_COMMAND_PING to estimate the round-trip time to the
173           server. Use this time to display a lag and disconnect when it
174           exceeds a specified limit.
175
176           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
177
178 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
179
180         * Remove the channel auth list in normal server if router
181           encofrces its list during connecting.  Send notify to channel
182           to remove the mode to remove the list.  Affected files are
183           silcd/server_util.c and silcd/packet_receive.c.
184
185 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
186
187         * Added support for channel public keys.  Updated protocol specs
188           and implemented it.  Affected files are
189           silcd/command.c, command_reply.c, lib/silcclient/command.c,
190           lib/silcclient/command_reply.c.
191
192 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
193
194         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
195           terminate the process on Linux.  Affected file silcd/silcd.c.
196
197 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
198
199         * Check for NULL buffer in silc_buffer_clear.  Affected file
200           is lib/silcutil/silcbuffer.h.
201
202         * Simplified the backup router protocol by removing the _GLOBAL
203           types.  Updated protocol specs and the code.  Affected files
204           are silcd/server_backup.[ch].
205
206 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
207
208         * Deny '@' and '!' from nicknames since they are reserved
209           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
210           Updated protocol specs and the code.
211
212           Affected files are silcd/server_util.[ch].
213
214 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
215
216         * Fixed stack overflow in Irssi SILC client.  Affected
217           file irssi/src/silc/core/client_ops.c.
218
219         * Check that Host is set in ServerConnection and RouterConnection
220           in silcd.conf.  Affected file silcd/serverconfig.c.
221
222         * Fixed crash in server with protocol completion callbacks,
223           namely rekey and backup resuming protocols.  Affected files
224           are silcd/server_backup.c and silcd/server.c.
225
226         * Fixed rekey protocol to not restart if it is started already.
227           Affected files are lib/silcclient/client.c and
228           silcd/server.c.c
229
230 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
231
232         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
233
234         * Fixed EOF handling in SILC Config, affected file
235           lib/silcutil/silcconfig.c.
236
237         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
238
239         * Fixed RESOLVING flag handling in JOIN notify and other
240           notifys to handle the resolvings correctly in client library.
241           Affected file lib/silcclient/client_notify.c.
242
243         * Do not send full INVITE and BAN lists in INVITE and BAN
244           notifys, only the changed information.  Affected file
245           silcd/command.c.
246
247         * Fixed INVITE notify sending in INVITE command, send it
248           only when needed.  Affected file silcd/command.c.
249
250         * Handle the founder key change properly in CMODE_CHANGE
251           notify.  Bug #122.  Affected file silcd/packet_receive.c.
252
253 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
254
255         * Remove the mark for output (mark it only for input) after
256           purging outgoing queue.  Prevents the "Error in select()"
257           floods.  Affected file silcd/packet_send.c.
258
259         * Fixed incorrect connection deletion from client library
260           after calling "connect" client operation.  Could cause
261           crashes for example during reconnect timeouts.  Affected
262           files are lib/silcclient/client.c and
263           irssi/src/silc/core/client_ops.c.
264
265         * Check server private key file permissions before starting
266           the server.  Affected file silcd/serverconfig.c.
267
268 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
269
270         * NULL terminate allocated string in silc_buffer_strformat.
271           Affected file lib/silcutil/silcbuffmt.c.
272
273         * Rewrote the invite/ban list string handling in server to
274           use SilcBuffer instead.  Affected files are silcd/command.c
275           and silcd/server_util.c.
276
277 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
278
279         * Fixed double free in CMODE command when setting new HMAC
280           for channel.  Affected file silcd/command.c.
281
282         * Added couple of missing memset's to zero sensitive memory.
283           Affected files silcd/command.c, lib/silcclient/command.c.
284
285 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
286
287         * Fixed a double free in INVITE command error handling in
288           server.  Affected file silcd/command.c.
289
290         * Added macros SILC_SWAB_[16|32] to swab byte order of
291           16-bit and 32-bit unsigned integers.  Affected file
292           lib/silcutil/silctypes.h.
293
294         * Use the SILC_SWAB_16 instead of htons() in server when
295           handling ports since the ports in structures are always
296           in little-endian order (regardless of platform).  Affected
297           file silcd/serverid.c and silcd/server_backup.c.
298
299 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
300
301         * Send DISCONNECT in close admin command in server.  Affected
302           file silcd/command.c.
303
304         * Check whether we are already connecting to a remote router
305           (in addition of checking whether we are already connected)
306           before creating new connection.  Affected file silcd/server.c.
307
308 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
309
310         * Added better compiler and compiler flags checking in
311           configure.
312
313         * Check that socket is valid after QoS is applied to data.
314           Affected file lib/silcutil/unix/silcunixsockconn.c.
315
316         * Make sure the socket connecetion is not closed to early
317           when closing connection in server.  Also make sure the
318           connection is always closed after error in a protocol.
319           Affected file silcd/server.c.
320
321 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
322
323         * Removed --session and --dummy options from Irssi SILC Client.
324           -d option is available only if --enable-debug was given.
325           Affected files are irssi/src/silc/core/silc-core,
326           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
327
328 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
329
330         * Added silc_buffer_steal to steal the data from the buffer.
331           Affected file lib/silcutil/silcbuffer.h.
332
333 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
334
335         * Fixed server crash with double Primary block in config file.
336
337           Fixed also various memory leaks around the config file
338           parser.  Affected files lib/silcutil/silcconfig.c,
339           silcd/serverconfig.c.
340
341         * Changed my nickname (Johnny Mnemonic) to my real name, this
342           means that bugs introduced by him were actually introduced
343           by me!
344
345 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
346
347         * Don't display "foo appears as foo\nYou're now known as foo"
348           messages.  Affected file irssi/src/silc/core/client_ops.c
349
350 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
351
352         * Fixed error handling of invalid client entry when calling
353           commands in server.  Fixes a crash.  Affected file
354           silcd/command.c.
355
356 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
357
358         * Added some sanity checks in server for correctness of the
359           server configuration.  Affected file silcd/serverconfig.c.
360
361 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
362
363         * Prevent endless resolving of user informations in USERS
364           command by checking the command reply status correctly.
365           Affected file lib/silcclient/command_reply.c.
366
367 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
368
369         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
370           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
371           Aldous <Matthew@Aldous.com>.
372
373         * Added better implementation using CriticalSection of
374           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
375           <mikko.lahteenmaki@pikabaana.net>.
376
377         * Added some Winsock WIN32 compatiblity defines into
378           includes/silcwin32.h.
379
380 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
381
382         * Fixed double free in async host lookup code.  Affected file
383           lib/silcutil/silcsockconn.c.
384
385         * On backup router handle now the SERVER_SIGNOFF from router
386           for local connected servers too, and close the connections.
387
388           Do not process them as normally signing off servers when they
389           really signoff by sending EOF fe, but always assume that
390           router sends the SERVER_SIGNOFF.
391
392           Affected files silcd/server.c and silcd/packet_receive.c.
393
394         * Fixed socket unsetting when closing connections.  Affected
395           files silcd/server.c and silcd/packet_send.c.
396
397         * Do not print the nickname in SERVER_SIGNOFF if we do not
398           have it.  Prevents asserts in Irssi core.  It is possible we
399           don't have the nick if it was just being resolved when server
400           signoff.  Affected file irssi/src/silc/core/client_ops.c.
401
402 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
403
404         * Fixed autonick crashbug in client library.  Affected file
405           lib/silcclient/client.c.
406
407         * Fixed Unix implementation of SilcMutex to really assert if
408           the mutex is locked/unlcoked already.  Affected file
409           lib/silcutil/unix/silcunixmutex.c.
410
411         * Fixed locking in silc_schedule_uninit.  It didn't lock
412           when dispatching timeout tasks.  Affected file is
413           lib/silcutil/silcschedule.c.
414
415         * Changed Win32 implementation of SilcThread to use modern
416           Win32 interface.  Affected file is
417           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
418
419 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
420
421         * Don't print signed messages when sending failed.  Affected files
422           irssi/src/silc/core/silc-[servers.c/commands.h]
423
424         * Send adquate signal when founding a channel by joing it.  Affect
425           file irssi/src/silc/core/client_ops.c
426
427 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
428
429         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
430           irssi/src/fe-common/core/themes.c
431
432 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
433
434         * Fixed close command to use the port correctly when closing
435           server connections.  Affected file silcd/idlist.c.
436
437         * Check for NULL outbuf in silc_socket_write.  It is possible
438           that it is NULL is some odd case.  Affected files are
439           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
440
441         * Do not call final protocol callback for backup router
442           resuming protocol when closing connection.  It is closed
443           by timeout in case of error.  Affected file silcd/server.c.
444
445         * Backup reconnect to router if backup resuming protocol
446           failed.  Affected file silcd/server_backup.c.
447
448 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
449
450         * Fixed double free in SKE library error hadling when signature
451           error occurred.  Affected file lib/silcske/silcske.c.
452
453         * Save the fingerprint to new SilcClientEntry after changing
454           nickname.  Affected file lib/silcclient/client_notify.c.
455
456         * Print SIGNOFF in Irssi SILC client only if the nickname is
457           known.  Prevents asserts in Irssi core.  It is possible we
458           don't have the nick if it was just being resolved when it
459           quit.  Affected file irssi/src/silc/core/client_ops.c.
460
461 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
462
463         * Fixed double free in invite list adding code when adding
464           invite strings.  Affected file silcd/server_util.c.
465
466 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
467
468         * More log printing during backup router protocol.  Affected
469           file silcd/server_backup.c.
470
471         * Removed backwards support for old private key file format.
472           Affected file lib/silccrypt/silcpkcs.c.
473
474         * Removed backwards support for not-so-strict decryption length
475           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
476
477         * GETKEY to update the client entrys fingerprint too.
478           Affected file lib/silcclient/command_reply.c.
479
480         * Added --without-libtoolfix for package builders using weird
481           wrappers around libtool (BSD at least).
482
483 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
484
485         * Fixed backup router bugs:  When backup resumes router and
486           receives a CHANNEL_MESSAGE packet the backup must not act
487           as router since the packet header decryption would be
488           different.  Also, when relaying packets to channel, do
489           not re-encrypt packets on backup that came from the primary
490           since the connection isn't really router-router connection.
491           Affected files silcd/server.c, silcd/packet_send.c.
492
493         * Added checks in encryption/decryption that encryption/decryption
494           length sent as argument really is multiple by block size.  Helps
495           catching really weird bugs like the above backup router bugs
496           when packets are being decrypted in wrong way.  Affected files
497           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
498
499         * Fixed padding generation in private key file encryption.
500           Affected file lib/silccrypt/silcpkcs.c.
501
502 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
503
504         * Added ignore_message_signatures setting which can be used
505           to ignore signatures in messages.  Affected files are
506           irssi/src/silc/core/client_ops.c, silc-core.c.
507
508         * Fixed the libtoolfix to use command line options instead of
509           environment variables.  They didn't work as expected.  Now,
510           the libtool is fully run-time configurable.
511
512 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
513
514         * Verify signature payload for signed messages. Affected files
515           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
516           irssi/src/silc/core/silc-core.h
517
518         * Display signature verification result in public and private
519           messages using theme abstracts. See irssi/default.theme for
520           examples on their usage. Affected files
521           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
522           irssi/src/fe-common/silc/module-formats.[ch],
523           irssi/src/fe-common/silc/fe-common-silc.c,
524           irssi/src/fe-common/silc/Makefile.am
525           irssi/src/fe-common/core/fe-messages.[ch]
526
527         * Fixed bugs in Irssi's theme parsing. Affected files
528           irssi/src/fe-common/core/themes.c
529
530 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
531
532         * Calculate the correct length for signed messages before
533           encrypting, it must be multiple by block size.  Affected
534           file lib/silccore/silcmessage.c.
535
536         * silc_message_signed_get_public_key returns now both
537           decoded and encoded public key.  Affected files are
538           lib/silccore/silcmessage.[ch].
539
540         * Added libtoolfix script that makes the libtool more generic
541           and configurable in run-time.  Now we can specify in run-time
542           if what kind of libraries we want to create, regardless of
543           configuration.  SIMs are now creates even if --disable-shared
544           was explicitly given.
545
546 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
547
548         * Fixed founder key sending in CMODE command in client.
549           Affected file lib/silcclient/command.c.
550
551         * Fixed CUMODE founder authentication in server to not check
552           for client's public key since it's not supposed to do that.
553           Affected file silcd/command.c.
554
555 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
556
557         * Set realname and hostname in NICK_REC records. Affected file
558           irssi/src/silc/core/silc-nicklist.c
559
560 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
561
562         * Remove 1.0 protocol backwards compat code from client
563           library.
564
565         * Added more reliable check for whether nickname did change
566           or not, or whether only Client ID changed in NICK_CHANGE
567           notify.  Affected file lib/silcclient/client_notify.c.
568           Fixes bug in '@' character handling in a nickname.
569
570         * Added support for automatically parsing signature from
571           the message payload.  Added new function
572           silc_message_get_signature to return the payload to
573           application.  Affected files lib/silccore/silcmessage.[ch].
574
575         * Changed the private_message and channel_message client
576           operations to deliver the SilcMessagePayload to the
577           application too.  Application can use it fe. to get the
578           signature from the message for verification.  Affected
579           file lib/silcclient/silcclient.h, client_channel.c and
580           client_prvmsg.c.
581
582         * Redefined the signed payload for message payloads.
583           Updated protocol specs and implemented.
584
585 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
586
587         * Fixed wrong invite and ban list handling in server command
588           reply.  Affected files are silcd/command_reply.c,
589           silcd/server_util.[ch].
590
591 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
592
593         * Fixed CMODE setting in server when founder mode was set.
594           Affected file silcd/command.c.  Bug #95.
595
596         * Added support to setting specific public key in CMODE in
597           Irssi SILC client.  Affected file lib/silcclient/command.c.
598
599         * Added support to use specific public key in CUMODE in
600           Irssi SILC Client.  Affected file lib/silcclient/command.c.
601
602         * Added support for inviting and banning by public key in
603           Irssi SILC client.  Affected file lib/silcclient/command.c.
604
605         * Fixed fingerprint/babbleprint showing in invite and ban
606           list command replys.  Affected file is
607           irssi/src/silc/core/client_ops.c.
608
609 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
610
611         * Format CMODE +c and +h to display both the mode and the argument
612
613 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
614
615         * Added test vectors and test programs for SHA-1, MD5,
616           HMAC-SHA1 and HMAC-MD5.  New tests are located in
617           lib/silccrypt/tests/.  Fixed also argument decoding bug in
618           MD5 implementation.  Affected file lib/silccrypt/md5.c.
619
620         * Changed the channel private key and private message key
621           generation (with static keys) to use SHA1 instead of MD5,
622           as SHA1 is the mandatory hash function in SILC.  Affected
623           file lib/silcclient/client_[channel/prvmsg].c.
624
625         * Changed the private key file encryption to use SHA1 instead
626           of MD5.  Added support for the old generation and added
627           automatic change of the key (to be removed later).  Affected
628           files lib/silccrypt/silcpkcs.c.
629
630 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
631
632         * Load only files with .pub suffix in PublicKeyDir.  Affected
633           file silcd/serverconfig.c.
634
635 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
636
637         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
638           channels.  Affected files silcd/silcd.c, silcd/server.h.
639
640         * Added the config directive PublicKeyDir for the client block.
641           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
642
643 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
644
645         * Merged Toni's irssi/silc.conf patch.
646
647         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
648
649         * Max alloc tests in allocation routines.  Affected file
650           lib/silcutil/silcmemory.c.
651
652 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
653
654         * Fixed a typo in resuming code that fixed detach/resume code
655           in server.  Bug #93.  Affected file silcd/packet_receive.c.
656
657 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
658
659         * Do reverse lookups for server when /connecting. Affected files
660           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
661           irssi/src/core/net-nonblock.*
662
663 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
664
665         * Added library versioning for shared libraries.  Affected
666           files configure.in.pre and lib/Makefile.am.pre.
667
668 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
669
670         * Display INVITE and BAN lists as specified by SILC 1.2
671
672 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
673
674         * Do not send invite list back unless asked (when sending
675           no arguments) or when list was modified.  Affected file
676           silcd/command.c.
677
678         * Remove client from invite list in KILLED notify and in
679           KILL command.  Affected file silcd/command.c and
680           silcd/server.[ch].
681
682         * Fixed bugs in invite list handling in INVITE command.
683           Affected files silcd/command.c and silcd/server_util.c.
684
685         * Merged with Irssi 0.8.6.
686
687         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
688           Affected file irssi/src/fe-text/silc.c.
689
690 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
691
692         * The silc_argument_get_[first/next] now return the argument
693           type to caller.  Added silc_argument_payload_encode_one.
694
695           Affected files are lib/silccore/silcargument.[ch].
696
697         * Added support for the SILC 1.2 INVITE command and new
698           invite lists to server.  Affected files are silcd/command.c,
699           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
700
701         * Added support for the SILC 1.2 BAN command and new
702           ban lists to server.  Affected files are silcd/command.c,
703           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
704
705         * Added support to client sending new INVITE command.  Affected
706           file is lib/silcclient/command.c.
707
708         * Added support to client sending new BAN command.  Affected
709           file is lib/silcclient/command.c.
710
711         * Added support for removing client from invite list when kicked
712           from channel, as SILC 1.2 dictates.  Affected files are
713           silcd/packet_receive.c and silcd/command.c.
714
715 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
716
717         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
718           automatically the cipher's internal IV.  Affected files
719           lib/silccrypt/silccipher.[ch].
720
721         * Assure the RESUME_CLIENT packet is not sent to twice to
722           backup router if the detached client was originated from
723           the backup.  Affected file silcd/server.c.  Bug #76.
724
725         * Changed silc_sim_symname to not allocate memory.  Affected
726           file lib/silcsim/silcsimutil.c.
727
728         * Fixed memory leaks with SIMs in server.  Affected files
729           silcd/serverconfig.c, silcd/server.c.
730
731         * Fixed channel key distribution after resuming detached
732           client.  Affected files silcd/packet_receive.c.
733
734         * Fixed channel's global_user boolean checking after detaching.
735           Check it after changing the owner of the client not before.
736           Affected file silcd/packet_receive.c.
737
738         * Fixed few double frees from client library.  Fixes at least
739           Bug #81, possibly others too.
740
741         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
742           notifys in Irssi SILC Client.  Affected file is
743           irssi/src/silc/core/client_ops.c.  Bug #82.
744
745         * Applied Ville Räsänen's manual page and --mandir bugfix
746           patch.  Affected files are configure.in.pre and Makefile.am.pre.
747           Bug #88.
748
749 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
750
751         * Added support to backup router protocol for backup to tell
752           normal server that it cannot use the backup router as primary
753           because the primary isn't really down.  Updated protocol
754           specs.
755
756         * Added support for primary router to tell backup router that
757           resuming is not possible because the backup really isn't primary
758           in the cell.  For example if backup disconnected itself the
759           resuming is not allowed since the primary really did not
760           go down.  Updated protocol specs.
761
762         * Removed MARS from crypto library.
763
764         * Defined the CTR mode and Randomized CBC mode in SILC.  The
765           CTR mode is RECOMMENDED now in specification.  Defined also
766           Serpent cipher as optional cipher.  Updated the protocol specs.
767
768 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
769
770         * Added support for inviting/banning by IP/MASK, public key,
771           and explicit Client ID.  Redefined the command and notify
772           types to allow easier forwards support for other methods
773           of inviting/banning.  Updated protocol specs.
774
775         * Remove the client from channel's invite lists if the client
776           is kicked or killed.  Updated protocol specs.
777
778         * Unified the Channel Message Payload and Private Message
779           into one Message Payload.  Updated protocol specs and
780           implemented.
781
782 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
783
784         * Don't wait for EOF after socket error has occurred, but
785           close the connection.  Affected file is silcd/server.c.
786
787 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
788
789         * Added support for setting FOUNDER mode on channel with
790           specific public key which can be set with CMODE command.
791           Updated protocol specs and implemented in client and server.
792
793         * Fixed the Irssi SILC client to correctly shutdown the client
794           library to avoid memory leaks.  Affected files are
795           irssi/src/silc/core/silc-core.c and silc-servers.c.
796
797         * Deprecated the No Reply flag in SKE protocol and introduced
798           "IV Included" flag which can be used to indicate that the IV
799           is included in the ciphertext.  This makes it possible to use
800           SILC on unreliable transport, such as UDP which may cause
801           packet reordering and losses.  Updated protocol specs, did
802           not implement yet.
803
804 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
805
806         * Fixed the MPI implementation of silc_mp_sizeinbase to return
807           < 32 bit values in correct size.  Affected file is
808           lib/silcmath/mp_mpi.c.
809
810 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
811
812         * Fixed the KE Start Payload parsing to check that mandatory
813           fields are present.  Affected file lib/silcske/payload.c.
814
815         * Fixed compilation warnigs in Irssi SILC Client.  Affected
816           files are irssi/src/silc/core/silc-query.c. client_ops.c.
817
818 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
819
820         * Print "nick now appears as newnick" and update Irssi's nicklist
821           when you change your nick to "nick". Closes #62
822
823         * Never format your own nick. Closes #63
824
825 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
826
827         * SILC_UMODE_GONE changes are now propagated correctly to the
828           Irssi client. Closes #54
829
830 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
831
832         * Fixed example in /HELP KEY
833
834         * Added expando $j which expands to current SILC Client version
835
836 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
837
838         * Fixed public key decoding in crypto library.
839
840         * Added better error printing to SKE library.
841
842 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
843
844         * Fixed NICK command to not crash if nickname was not sent.
845
846 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
847
848         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
849           Deprecated the old Encrypt-And-MAC order.  Updated protocol
850           specs and implemented.
851
852         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
853           generation.  Updated specs and implemented.
854
855 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
856
857         * Added support for rekey before 2^32 sequence number wraps.
858           Affected files in server and client library.
859
860         * Padding must be at least 8 bytes now.  Implemented and updated
861           protocol specs.
862
863         * Compute maximum padding for authentication packets to make
864           passphrase approximation attacks impossible.  Affected files
865           in client library and in server.
866
867         * Fixed PING command sending in client library and handling in
868           server.  The server ID must be ID Payload, not raw ID data.
869           Affected files in server and client library.
870
871         * Defined that all public keys sent in commands and notify
872           payloads are actually Public Key Payloads not raw public key
873           data.  Updated protocol specs and implemented.
874
875         * Updated protocol version to 1.2.  Updated specs and code.
876
877         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
878           status types.  Updated specs and the code.
879
880         * Added support for normal client to kill its own entries from
881           the network.  Updated protocol specs and the code.
882
883         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
884           and added initial implementation.
885
886         * Added MAC field to the Private Message Payload to protect
887           against chosen ciphertext attacks.  Updated the protocol specs
888           and implemented.
889
890         * Added idle and signon fields to the ATTRIBUTE_SERVICE
891           attribute to indicate the user's current idle and signon time
892           of a service.  Updated protocol specs and implemented.
893
894 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
895
896         * Added "do_not_bind" argument to silc_client_file_send what
897           can be used to not bind locally but assume the file receiver
898           provides the point of connect.  Usefull when sender is behind
899           NAT device.  Affected file lib/silcclient/silcclient.h and
900           client_ftp.c.
901
902         * Added -no-listener option to FILE SEND command in Irssi SILC
903           client.  Affected file irssi/src/silc/core/silc-servers.c.
904           Renamed FILE RECEIVE to FILE ACCEPT.
905
906         * Confirm passphrase for private key encryption in
907           silc_create_key_pair and silc_change_private_key_passphrase.
908           Affected files are lib/silcutil/silcapputil.c.
909
910 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
911
912         * Move silc_client_packet_send back to internal, added
913           silc_client_send_packet, a bit simpler function for application.
914           Affected files lib/silcclient/silcclient.h, client.c and
915           client_internal.h.
916
917         * Moved the SilcClientEntry, SilcChannelEntry and
918           SilcServerEntry to silcclient.h to be public and documented
919           them for application.  Affected files are
920           lib/silcclient/silcclient.h and idlist.h.
921
922 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
923
924         * Fixed manual page installation patch by Ville Räsänen.
925           USERS help page fix patch by Ville Räsänen
926
927         * Changed the silc_client_command_call interface to make
928           the command call simpler for the application.  The library
929           now handles the command line parsing, command finding and
930           execution.  Application only needs to call the function
931           with the command line.  Affected files are
932           lib/silcclient/silcclient.h, command.[ch].
933
934         * Fixed silc_get_input to NULL-terminate the returned input.
935           Affected file lib/silcutil/silcutil.c.
936
937         * Resolve the client's public key in JOIN command if the
938           founder auth data is being requested but we don't know the
939           client's public key.  Affected file silcd/command.c.
940           Bug #53.
941
942 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
943
944         * Print notify for server opers when backup router comes
945           online.  Affected file silcd/server.c.
946
947         * Fixed the INVITE command to send the invite list in
948           command reply.  Affected file silcd/command_reply.c.
949
950         * Fixed MOTD command reply sending.  Affected file
951           silcd/command.c.
952
953         * UTF-8 decode the topic in TOPIC command reply and LIST
954           command reply in Irssi SILC client.  Affected file is
955           irssi/src/silc/core/client_ops.c.
956
957 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
958
959         * Fixed the INVITE command to not crash Irssi SILC client
960           when given without nickname argument.  AFfected file
961           irssi/src/silc/core/client_ops.c.
962
963         * Fixed double free in WHOIS query on normal server when
964           forwarding query to router.  Affected file is
965           silcd/server_query.c.
966
967         * Fixed WATCH command reply handling on normal server which
968           was missing altogether.  Affected file silcd/command_reply.c.
969           Bug #44.
970
971 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
972
973         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
974           Included yodl sources for each of these. Also modified
975           Makefile.am prototype to install these files to proper
976           locations. Updated CREDITS. Affected file Makefile.am.pre,
977           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
978           doc/silcd.8.
979
980 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
981
982         * Added support for encrypted private key files.  Now
983           passphrase must be provided when new key pair is created
984           (can be empty though), and prompted when loading the
985           private key.  Added support for loading the old-style
986           non-encrypted private keys as well.  Affected files
987           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
988           SILC Server.
989
990         * Fixed silc_get_input to accept input on all terminals.
991           Affected file lib/silcutil/silcutil.c.
992
993         * Moved the Irssi SILC client key loading and other stuff
994           to be called after the arguments and UI is initialized.
995           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
996
997         * Added -P option to Irssi SILC client which can be used
998           to change the passphrase of the private key.  Affected
999           file irssi/src/silc/core/silc-core.c.
1000
1001         * Added silc_change_private_key_passphrase apputil routine
1002           to lib/silcutil/silcapputil.[ch].
1003
1004 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1005
1006         * Fixed connection closing in client library to not crash.
1007           Moved the connection freeing totally to function
1008           silc_clinet_del_connection.  Affected file
1009           lib/silcclinet/client.c.
1010
1011 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1012
1013         * Changed includes/silcincludes.h to silcincludes.h.in to
1014           include configuration specific information.  The silcdefs.h
1015           is not included in to installation anymore (it's only
1016           compilation time header).
1017
1018 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1019
1020         * Moved the SilcClient and SilcClientConnection from client.h
1021           to the public lib/silcclient/silcclient.h.  Changed the
1022           structures a bit.
1023
1024 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1025
1026         * If version string in silc_clinet_alloc is NULL the library
1027           puts it automatically.  Affected file lib/silcclient/client.c.
1028
1029         * Changed the version strings from variables to #define's
1030           in includes/silcversion.h.
1031
1032 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1033
1034         * Added shared library complation support.
1035
1036 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1037
1038         * Added lib/silcutil/silcapputil.[ch] for application
1039           utility functions.  It includes routines for applications'
1040           convenience.  Added silc_create_key_pair, silc_show_public_key
1041           and silc_load_key_pair functions.
1042
1043 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1044
1045         * Send RESUME_CLIENT packet from router to backup routers
1046           to in resuming.  Affected file silcd/packet_receive.c.
1047
1048 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1049
1050         * In IDENTIFY command parsing, send all other IDs except
1051           Client IDs explicitly to router for resolving on normal
1052           server.  Also check that ID received in WHOIS command is
1053           always Client ID, others are not allowed.  Affected file
1054           silcd/server_query.c.
1055
1056         * Merged latest changes from irssi.org CVS.
1057
1058 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1059
1060         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
1061           Affected files irssi/src/silc/core/silc-core, silc-server.c.
1062
1063         * Fixed the heartbeat sending in Irssi SILC client.  Moved
1064           the silc_client_packet_send to silcclient.h for application
1065           usage.  Affected files lib/silcclient/client_internal.h
1066           lib/silcclient/silcclient.h.
1067
1068         * Fixed a bug in query resolving in server.  Used wrong
1069           variable in a for loop and crashed.  Affected file is
1070           silcd/server_query.c.
1071
1072         * Server constructs requested attributes only to locally
1073           connected clients.  Affected file silcd/server_query.c.
1074           Bug #36.
1075
1076         * Fixed a bug when sending resolving from router to server
1077           with requested attributes.  The constructed WHOIS command
1078           was incorrect.  Affected file silcd/server_query.c.
1079           Bug #38.
1080
1081         * Fixed Requested Attributes saving in WHOIS command reply.
1082           The length of the data buffer must be saved too.  Affected
1083           file silcd/command_reply.c.
1084
1085         * Update the client entry's servername after detaching is
1086           over.  Affected file silcd/packet_receive.c.  Bug #37.
1087
1088         * Resolve incomplete client entrys in CUMODE_CHANGE and
1089           CMODE_CHANGE notifys.  Affected file is
1090           lib/silcclient/client_notify.c.  Bug #42.
1091
1092 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1093
1094         * Fixed channel key packet processing bug on backup router
1095           during backup resuming protocol.  Affected file is
1096           silcd/packet_receive.c.
1097
1098         * Fixed memory leaks in server.  Affected files are
1099           silcd/server.c and silcd/packet_receive.c.
1100
1101         * Fixed packet decryption problem when backup router encrypted
1102           channel message with wrong key during backup resuming
1103           protocol.  Affected file silcd/packet_send.c.
1104
1105         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
1106           Toni Willberg (toniw@iki.fi)
1107
1108         * Changed the SilcCipher context to be private.  Changed the
1109           silc_cipher_get_iv to just return pointer to the IV.  Added
1110           silc_cipher_get_name to return the name of the cipher.
1111           Fixed code all around to support these changes.  Affected
1112           files are lib/silccrypt/silccipher.[ch], client library and
1113           server.
1114
1115 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1116
1117         * Fixed unaligned access in lib/silccore/silcattrs.c.
1118
1119         * Fixed libtool linking in lib/silcsim/Makefile.am.
1120
1121         * Fixed services attribute printing.  Affected files is
1122           irssi/src/silc/core/silc-queries.c.
1123
1124 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1125
1126         * Fixed a crashbug in incoming server accepting.  Affected
1127           file silcd/server.c.
1128
1129 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1130
1131         * Added automatically generated index to Toolkit Reference
1132           Manual.
1133
1134         * Added support for Postscript Toolkit Reference Manual.
1135
1136 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1137
1138         * Merged DISCONNECT fix, and autoconn port fix from Irssi
1139           CVS.
1140
1141 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1142
1143         * Added 'send_events' boolean argument to the function
1144           silc_schedule_set_listen_fd which sends the set events to
1145           the application explicitly if set to TRUE.  Default action
1146           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
1147           lib/silcclient/client_internal.h and silcd/server_internal.h.
1148
1149         * Added silc_compare_timeval to determine which time values
1150           is smaller.  Affected file lib/silcutil/silcutil.[ch].
1151
1152         * Added sort-of "Quality of Service" (QoS) support to
1153           SilcSocketConnection.  Data reception can be controlled with
1154           rate limit per second and/or read data length limit.
1155           Added silc_socket_set_qos.  Affected files are
1156           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
1157
1158         * Added the QoS configuration to SILC Server configuration
1159           file.  Affected files are silcd/serverconfig.[ch] and
1160           server.c.
1161
1162 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1163
1164         * Merged with irssi.org CVS.
1165
1166         * Failed OPER and SILCOPER authentications are now logged.
1167           Affected file silcd/command.c.  Bugs #25.
1168
1169 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1170
1171         * ROBODoc documented lib/silcutil/silcbuffer.h and
1172           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
1173           <ville.rasanen@iki.fi>.
1174
1175 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1176
1177         * Added support for auto-passphrase authentication from the
1178           config file during connecting which was not implemented
1179           yet.  Affected file irssi/src/silc/core/client_ops.c.
1180
1181         * Fixed a bug in authentication protocol failure handling which
1182           was processing wrong callback context.  Affected files
1183           are lib/silcclient/client.c and protocol.c.
1184
1185         * Fixed the /ATTR allow off to actually work.  Affected file
1186           is irssi/src/silc/core/silc-queries.c.
1187
1188         * Fixed the /ATTR -del to work.  Affected file is
1189           irssi/src/silc/core/silc-queries.c.
1190
1191 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1192
1193         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
1194
1195         * Fixed mask attribute adding in Irssi SILC client.  Affected
1196           file irssi/src/silc/core/silc-queries.c.
1197
1198 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1199
1200         * Added support for saving the requested attributes in
1201           WHOIS to directory.  Affected file is
1202           irssi/src/silc/core/silc-queries.c.
1203
1204 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1205
1206         * Added support for parsing VCard fields that do not have
1207           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
1208
1209         * Fixed a double free bug in hash table foreach function
1210           if the entry was deleted in the foreach callback.  Affected
1211           file lib/silcutil/silchashtable.c.
1212
1213 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1214
1215         * Added silc_attribute_get_verify_data to return the signature
1216           verification data for either user digital signature or
1217           server digital signature in Requested Attributes.  Affected
1218           files are lib/silccore/silcattrs.[ch].
1219
1220         * Added silc_vcard_alloc which is used to allocated dynamic
1221           SilcVCard context.  The silc_vcard_free now checks whether
1222           the context is dynamically allocated or not.  Affected files
1223           are lib/silcutil/silcvcard.[ch].
1224
1225 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1226
1227         * Periodically remove the NOATTR status from client entry
1228           so that the client may take the attributes in use even after
1229           server has resolved them unsuccessfully earlier.  Affected
1230           file silcd/server_query.c and idlist.h.
1231
1232         * Moved sha1hash and md5hash from client->internal to
1233           SilcClient for application usage.  Affected files are
1234           lib/silcclient/client.h and client_internal.h.
1235
1236         * Fixed attribute encoding and decoding bugs.  Affected
1237           files lib/silccore/silcattrs.[ch].
1238
1239         * Added ATTR command to Irssi SILC Client which is used to
1240           manage user's Requested Attributes sending and values for
1241           WHOIS command.  Affected files around Irssi SILC client.
1242
1243 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1244
1245         * Added silc_buffer_strformat which can be used to format
1246           strings into a buffer which size is automatically increased.
1247           Affected file lib/silcutil/silcbuffmt.[ch].
1248
1249         * Added implementation of VCard (RFC 2426) which can be used
1250           as part of Requested Attributes in WHOIS command.  Affected
1251           file lib/silcutil/silcvcard.[ch].
1252
1253 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1254
1255         * Some strncat -> silc_strncat changes our the core and
1256           client library.
1257
1258         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
1259           errors.  Added better error printing to SKE library.
1260           Affected files lib/silcske/silcske.c, silcske_status.h and
1261           payload.c.
1262
1263         * Save the PKCS key length even if only private key is set to
1264           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
1265
1266         * Fixed the usage of silc_pkcs_get_key_len since it returns the
1267           length in bits not in bytes.  Affected files are
1268           lib/silcske/silcske.c, lib/silccore/silcauth.c and
1269           silcd/server_query.c.
1270
1271 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1272
1273         * Added silc_attribute_payload_encode_data to directly encode
1274           the data into the attributes buffer.  Renamed function
1275           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
1276           Affected files are lib/silccore/silcattrs.[ch].
1277
1278         * silc_hash_table_find_foreach calls the foreach function now
1279           once even if the nothing was found with context set to NULL.
1280           Affected file lib/silcutil/silchashtable.[ch].
1281
1282         * Remove the RESOLVING flag from client entry after received
1283           the Requested Attributes from the client.  Fixed memory leak
1284           in client entry freeing.  Affected files silcd/server_query.c
1285           and idlist.c.
1286
1287         * Added Requested Attributes support into SILC Client Library.
1288           It is not able to send requested attributes in WHOIS command,
1289           and also receive and process requested attributes.  Added
1290           silc_client_attribute_[add|del] and silc_client_attributes_get
1291           functions.  Added also `ignore_requested_attributes' to the
1292           SilcClientParams to not use attributes in client.  Affected
1293           files are lib/silcclient/command.c, client_attrs.[ch],
1294           silcclient.h, client_internal and client.[ch].
1295
1296         * Changed the silc_client_get_client_by_id to support Requested
1297           Attributes, it takes them as argument now.  Affected file
1298           is lib/silcclient/silcclient.h, and idlist.c.
1299
1300         * Added -details option to WHOIS command in Irssi SILC Client
1301           to support the requested attributes.  By default it requests
1302           all attributes.  Affected file lib/silcclient/command.c and
1303           irssi/doc/help/in/whois.in.
1304
1305 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1306
1307         * Add also SERVICE attribute for server-constructed attribute
1308           data.  Also digitally sign the attributes and add
1309           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
1310           silcd/server_query.c.
1311
1312 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1313
1314         * Changed the silc_attribute_payload_encode to support list
1315           of attributes (function may be called several times to add
1316           a new attribute).  Removed the silc_attribute_payload_encode_list
1317           function.  The encoding function now also automatically encodes
1318           the data, so the caller does not need to do that.  Affected
1319           files lib/silccore/silcattrs.[ch].
1320
1321         * Added support for replying on behalf of the user to the
1322           Requested Attributes in WHOIS command in the server.  Affected
1323           file silcd/server_query.c.
1324
1325         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
1326           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
1327
1328 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1329
1330         * Don't swtich to become primary router if we are backup if
1331           decryption error has occurred.  Affected file silcd/server.c.
1332
1333         * Fixed a bug in backup router IP address comparison in
1334           silc_server_backup_get.
1335
1336           Save now also the port of the server/router and use that
1337           in comparison as well.  Affected file silcd/server_backup.c.
1338
1339         * Normal server now reconnects to backup router automatically
1340           if connection is lost to it.  Affected file silcd/server.c.
1341
1342 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1343
1344         * If packet processing fails (like integrity check fails)
1345           the connection is closed now.  Affected files are
1346           lib/silccore/silcpacket.c and silcd/server.c.
1347
1348 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1349
1350         * Fixed double free in RSA public key set function
1351           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
1352           Bug #29.
1353
1354 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1355
1356         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
1357           Added server_query.[ch] which provides one interface for
1358           querying information using all three commands.
1359
1360         * Changed all "typedef unsigned char" in core library to
1361           "typedef SilcUInt8".
1362
1363 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1364
1365         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
1366
1367         * Renamed silc_server_get_client_resolve to
1368           silc_server_query_resolve and moved to server_query.[ch].
1369
1370 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1371
1372         * Resumed client packet handling from server put the resumed
1373           client on wrong list on router and caused the client not
1374           be present on the network anymore.  Now fixed to put the
1375           client to correct list.  Affected file silcd/packet_receive.c.
1376
1377 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
1378
1379         * Various cleanup in error message output in config parsing code
1380           and in server init code.  Fixed error log files containing
1381           too many newlines ('\n') in some situations.  Affected files are
1382           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
1383
1384 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1385
1386         * Use the reverse lookupped hostname in client internals
1387           instead of one user provided us as remote server name.
1388           Affected file lib/silcclient/client.c.
1389
1390 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1391
1392         * Added 'app_context' to silc_schedule_init.  It is an
1393           application specific context that is delivered to application
1394           in task callback functions.  Affected files are
1395           lib/silcutil/silcutil.[ch].
1396
1397         * The hb_context in SilcSocketConnection is not freed
1398           automatically anymore (application must free it).  Freeing
1399           it automatic is inconsistent.  Affected files are
1400           lib/silcutil/silcsockconn.[ch].
1401
1402 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1403
1404         * Added support for removing explicitly added client connections
1405           in rehash and closing the client connections if they were
1406           unconfigured in the rehash.  Affected file silcd/server.c.
1407
1408         * Added support for aborting automatically pending commands
1409           that never receives the reply (to avoid memory leaks).
1410           Added also silc_server_command_pending_timed to set the
1411           specific timeout for pending command.  Affected files are
1412           silcd/command[_reply].[ch].
1413
1414         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
1415           specs and lib/silccore/silcstatus.h.
1416
1417 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1418
1419         * Changed the silc_get_time to accept time value as argument
1420           or if zero is sent return current local time.  Affected
1421           file lib/silcutil/silcutil.[ch].
1422
1423         * Added STATS command to client library and Irssi SILC client.
1424           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
1425
1426 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1427
1428         * Assure that channel key is set before sending it.  May
1429           crash server otherwise.  Affected file silcd/packet_send.c.
1430
1431 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1432
1433         * Assure that endless loop cannot happen with detached client
1434           resolving on normal server.  Added idlist status
1435           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
1436           silcd/idlist.h and silcd/packet_receive.c.
1437
1438 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
1439
1440         * Incoming file transfer request cannot use same session as
1441           the sending session.  This can happen when sending file to
1442           yourself.  Crashed the client on quit.  Affected file
1443           lib/silcclient/client_ftp.c.  Bug #24.
1444
1445 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1446
1447         * Implemented the draft-riikonen-precense-attrs draft and
1448           the Attribute Payload into the lib/silccore/silcattrs.[ch].
1449
1450 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1451
1452         * Distribute the SERVER_SIGNOFF notify also to local backup
1453           routers from the primary router.  The backup router may not
1454           have the signing of local server directly connected and need
1455           to know about the signoff.  Affected file silcd/server_util.c.
1456
1457         * Use the primary router as the origin of the locally connected
1458           server when it is disconnecting from the backup router since
1459           that's where it really is coming from.  Now the clients from
1460           the disconnecting server are removed correctly and "shadow"
1461           clients are not left to the backup router.  Affected file
1462           silcd/server.c.
1463
1464 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1465
1466         * If normal server is standalone and found existing but disabled
1467           channel, do not re-create the channel since it creates
1468           duplicate same channels.  Affected file silcd/server.c.
1469
1470         * Added anonymous client connections support to server.  New
1471           "anonymous" configuration option to ConnectionParams section
1472           added.  If set to true, the username and hostname information
1473           of the client will be scrambled and anonymous user mode is
1474           set automatically to the user.  Affected files are
1475           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
1476
1477 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
1478
1479         * In JOIN notify handling, mark that the cache entry of the
1480           client cannot be expired.  Can cause crashes on normal
1481           server (asserts client->channels).  Affected file is
1482           silcd/packet_receive.c.
1483
1484         * From now on distribution versions are used as protocol versions
1485           instead of by default using the Toolkit base version as protocol
1486           version.  Affected file prepare.
1487
1488         * Do not set the locally resolved hostname for local client
1489           entry but take what server sends.  This way the real hostname
1490           is showed in WHOIS for yourself.  Affected file is
1491           lib/silcclient/idlist.c and lib/silcclient/client.c.
1492
1493         * Resolve local info with IDENTIFY when connecting to server.y
1494
1495 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1496
1497         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
1498           for implied search (not needed on platforms which has native
1499           pthreads library).  Use --without-pthreads to disable threads.
1500           Affected file is configure.in.pre
1501
1502         * Fixed --with-iconv on platforms which need to bypass (broken)
1503           native iconv().  Affected file is configure.in.pre
1504
1505 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1506
1507         * Moved -C option parsing in Irssi SILC client at same time
1508           as other options.  The UI was initialized earlier and caused
1509           problems on command line.  Bug #16.  Affected file is
1510           irssi/src/silc/core/silc-core.c.
1511
1512 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
1513
1514         * Added global variable silc_log_timestamp that tells silclog
1515           wether to print or not the timestamp in the logging files.
1516           Affected file lib/silcutil/silclog.[ch].
1517
1518         * Added silcd configuration option Timestamp in the Logging
1519           section.  Affected file silcd/serverconfig.[ch],
1520           doc/example_silcd.conf.in.
1521
1522 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1523
1524         * Fixed fingerprint checking to check for entirely empty
1525           fingerprint instead of two first bytes when determining
1526           if it is set.  Bug #18.  Affected file silcd/command.c.
1527
1528         * Fixed duplicate PKCS name registering to not allow it.
1529           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
1530
1531 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1532
1533         * Conditionalize non-gcc compiler optimizations for various
1534           platforms, enable those commented out.  Cleanups.
1535           Affected file lib/silcmath/mpi/configure.in
1536
1537 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
1538
1539         * silc_rng_exec_command() left zombie processes if command
1540           didn't generate any output.  Affected file
1541           lib/silccrypt/silcrng.c
1542
1543 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1544
1545         * Rewrote iconv checking, introduce --with-iconv for systems
1546           which rely on libiconv.  Check if iconv() provided by libc
1547           is good enough, otherwise demand libiconv.  Affected file
1548           configure.in.pre
1549
1550 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1551
1552         * Search for ldopen() also in libc.  This enables SIM support
1553           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
1554           file configure.in.pre
1555
1556 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1557
1558         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
1559           This fixes prepare on *BSD systems.  Affected file
1560           configure.in.pre
1561
1562 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1563
1564         * More fixed for not having purge timeout for global clients
1565           that are on channel.  Affected files silcd/command_reply.c
1566           and server_util.c.
1567
1568         * Fixed the rekey protocol to work with backup router connections.
1569           Rekey packets are now allowed on disabled connections as
1570           well.  Affected files silcd/packet_send.c and server.c.
1571
1572         * Do not switch to be as backup router when shutting down and
1573           closing the primary connection.  Affected file silcd/server.c.
1574
1575         * Fixed memory leaks in backup router deleting.  Added
1576           silc_server_backup_free to free all data during shutdown of
1577           server.  Affected files silcd/server_backup.[ch].
1578
1579 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1580
1581         * Do not process commands if the sock->user_data is NULL.
1582           Affected file silcd/command.c.
1583
1584 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1585
1586         * Fixed buffer overflow and security problems (loosing bits
1587           in CFB encryption) in SILC RNG.  Problems reported by
1588           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
1589
1590 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1591
1592         * Added yet more checks that client is not expired on global
1593           list if it is on channels.  Affected file is
1594           silcd/command_reply.c.
1595
1596 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1597
1598         * Merged c0ffee's MIME signal patch which adds support for
1599           sending also MIME messages in Irssi SILC Client, and handling
1600           received MIME messages in a signal (and perhaps doing something
1601           to non-textual MIME messages).
1602
1603 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1604
1605         * Fixed pending command deletion in server and client library
1606           to check the whole list instead of breaking after first found.
1607           The affected files are silcd/command.[ch] and
1608           lib/silcclient/command.[ch].
1609
1610 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1611
1612         * Return NO_SUCH_CHANNEL error in USERS for channel that is
1613           secret or private, otherwise it's possible to find out
1614           whether a secret channel exists or not.  Affected file
1615           silcd/command.c.
1616
1617         * If CMODE change fails during the mode setting, assure that
1618           the old mode mask is set for the channel back.  Affected
1619           file silcd/command.c.
1620
1621         * Fixed passphrase saving on +a channel on normal server
1622           after successful JOIN command.  Affected file silcd/command.c.
1623
1624 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1625
1626         * Remove server/router operator privileges in DETACH command,
1627           since it's possible to resume to server where these
1628           privileges would not be allowed for the client.  Affected
1629           file silcd/command.c.
1630
1631         * Do not set to wait for backup in rehash of the server.
1632           Affected file silcd/server.c.
1633
1634         * Do not check listener sockets when counting how many
1635           socket connections we have.  Affected file is
1636           silcd/server_util.c.
1637
1638         * Do not announce disconnected clients that are remaining
1639           in history (for WHOWAS).  This is because SIGNOFF notify
1640           for these has been sent earlier already.  Affected file
1641           silcd/server.c.
1642
1643 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1644
1645         * Buffer overflow with CUMODE command's mode->mode character
1646           conversion.  Reported by Ville Räsänen.  Affected file
1647           lib/silcutil/silcutil.c.
1648
1649 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1650
1651         * Allow heartbeat packets to go disabled connections anyway.
1652           Affected files silcd/server.c and silcd/packet_send.c.
1653
1654         * Do not broadcast New Channel packets with List flag set
1655           in the packet to backup routers.  The router must check
1656           for the correctness of the packets before sending them.
1657           It is possible that router will have enforce Channel ID
1658           change and this would cause desync in the backup router.
1659           Affected file silcd/packet_receive.c.
1660
1661         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
1662           are handled in list parsing.  They are not list packets
1663           anymore.  Affected file silcd/packet_receive.c.
1664
1665 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1666
1667         * Stop waiting for backup router through the timeout, not
1668           directly after backup router has arrived.  Affected file
1669           silcd/server.c.
1670
1671         * Do not re-create channel keys and send them when removing
1672           clients in server shutdown.  Affected files are
1673           silcd/server_internal.h and silcd/server_util.c.
1674
1675         * Notify distribution to backup routers was missing from
1676           the silc_server_send_notify_dest function which caused
1677           desyncing problems with backup router.  Affected file is
1678           silcd/packet_send.c.
1679
1680         * The client's channel removing was working wrong on
1681           backup router.  It assumed that it doesn't know global
1682           information but backup router does know.  For this reason
1683           it could remove channel when it wasn't supposed to do that.
1684           Affected file silcd/server.c and silcd/server_util.c.
1685
1686 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1687
1688         * Stop for a couple seconds after badkup router has become
1689           primary router.  Affected file silcd/server.c.
1690
1691         * Added silc_server_remove_servers_by_server, which is used
1692           to remove servers originated from some other server.  Also
1693           clients of those servers can be removed too.  Affected file
1694           silcd/server_util.[ch].
1695
1696         * When removing clients after a server has signed of remove
1697           also all servers behind that server (unless they are known
1698           to be available locally), and send SERVER_SIGNOFF for each
1699           of the server separately.  Also the signed off clients are
1700           sent now separately per signed off server.  The affected files
1701           are silcd/server.c and silcd/server_util.[ch].
1702
1703         * All servers added with silc_idlist_add_server must always
1704           have both "router" and "connection" pointers set.  Otherwise,
1705           bad server entries may be left around in the cache.
1706           Affected file silcd/command_reply.c.
1707
1708         * Do not create the channel key in NEW_CHANNEL packet
1709           processing if the channel is empty.  Affected file
1710           silcd/packet_receive.c.
1711
1712         * Completed backup router support for standalone routers.
1713           Supports also servers in the cell that do not use the backup
1714           at all.
1715
1716 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1717
1718         * Fixed a bug in silc_string_regexify which did not add '^'
1719           at the start of each string, and thus the matching was
1720           not explicit.  For example ban list iikone@*!*@* would
1721           match also "priikone", which is wrong, it would have to be
1722           *iikone@*!*@* to match also "priikone".  Affected
1723           file lib/silcutil/unix/silcunixutil.c.
1724
1725 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1726
1727         * Enable all local server connections before updating client
1728           caches when we've become backup router.  Otherwise, signoff
1729           packets may not reach the clients.  Affected files are
1730           silcd/server.c and silcd/server_util.[ch].
1731
1732         * Fixed a bug in version string parsing which could crash
1733           the program with specially formatted version string.
1734           Bug reported and patch provided by Ville Räsänen.  Affected
1735           file lib/silcutil/silcutil.c.
1736
1737         * Handle the disconnection immediately when DISCONNECT
1738           packet is received in server.  Affected file silcd/server.c.
1739
1740         * Primary router now waits a short time (10 seconds) for
1741           backup router connection before accepting any other
1742           connection (except local).  Affected file silcd/server.c,
1743           serverconfig.[ch].
1744
1745         * Fixed a crash in client libary in NICK_CHANGE notify when
1746           NICK_CHANGE arrived for client entry we are resolving
1747           currently.  Affected file lib/silcclient/client_notify.c.
1748
1749         * Call the sconn->callback completion even if error had
1750           occurred.  Start reconnecting always if connection to
1751           primary router fails during backup router protocol.
1752           Affected files silcd/server.c and server_backup.c.
1753
1754 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1755
1756         * Added functions silc_server_send_opers and
1757           silc_server_send_opers_notify to send packets stricly
1758           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
1759           to send variable argument notify to operators.
1760           Affected files silcd/packet_send.[ch] and silcd/server.h.
1761
1762         * Removed UMODE rights checking with UMODE_CHANGE notify.
1763           Affected file silcd/packet_receive.c.
1764
1765         * Server/router operator now receives notify when network
1766           switches to backup router and when it resumes the use of
1767           primary router.  Affected file silcd/server.c and
1768           silcd/server_backup.c.
1769
1770         * Fixed the updating of client information after backup
1771           resuming protocol is over; update all except local clients
1772           to the new primary router.  The affected file is
1773           silcd/server_util.c.
1774
1775         * Added support for closing active connections in rehash
1776           that were unconfigured by the user.  Supports currently
1777           closing server and router connections.  Affected file
1778           silcd/server.c.
1779
1780         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
1781
1782 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1783
1784         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
1785           is NULL since seems that on some platforms NULL is allowed
1786           and on some it's not.  Fallback encoding is used instead.
1787           Affected file lib/silcutil/silcstrutil.c.
1788
1789         * Fixed statistics updating for incoming server connection
1790           which could cause problems when re-connecting.  Affected
1791           file silcd/server.c.
1792
1793         * Preliminary backup router support for standalone router
1794           added.  Affected files in silcd/.
1795
1796         * Mark server connections in backup router disabled before
1797           and after backup protocol.  Affected file is
1798           silcd/server_backup.c.
1799
1800         * Added support for reconnecting to remote server connection
1801           even if the protocol fails, and if the configuration wants
1802           us to keep trying to connect anyway.
1803
1804           Server connection is not allowed to backup router if
1805           backup router does not have connection to primary router yet.
1806
1807           Affected file is silcd/server.c.
1808
1809 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1810
1811         * Added silc_client_udpate_server function to update changed
1812           server info.  Affected file lib/silcclient/idlist.[ch].
1813
1814         * Added check for server entries that are being resolved when
1815           notify is received.  If being resolved, handle the received
1816           notify only after it's resolved so that all notifys are
1817           handled in same order as received from the server.
1818
1819           Added similar resolver check to channel entries.  Every
1820           notify that cause resolving of any information that affects
1821           channel entry marks the channel entry in waiting state.
1822           After whatever resolving is over the waiters are signalled
1823           and only then the notifys are handled in the same order
1824           as delivered from the server.
1825
1826           Affected files are lib/silcclient/idlist.[ch], and
1827           client_notify.c.
1828
1829         * Fixed KILLED notify handling in normal server.  Affected
1830           file silcd/packet_receive.c.
1831
1832         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
1833           is locally connected, or was locally connected (but may
1834           be detached and connection is not active).  Added also
1835           SILC_IS_LOCAL for checking this status.  Affected files
1836           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
1837           silcd/server.c and silcd/server_internal.h.
1838
1839 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1840
1841         * Don't send or handle TOPIC_SET if topic is already set and
1842           is same as being set.  Affected files silcd/command.c and
1843           silcd/packet_receive.c.
1844
1845         * Fixed CMODE change rights checking to work correctly when
1846           removing modes by operator.  Affected file is
1847           silcd/server_util.c.
1848
1849         * Fixed some handling with New Channel packet in router and
1850           fixed some CMODE_CHANGE notify handling in server and router.
1851           Affected file is silcd/packet_receive.c.
1852
1853         * Changed "disconnect" client operation to include the
1854           reason of the disconnection and optional disconnection
1855           message.  Affected file lib/silcclient/silcclient.h.
1856
1857         * Made the compilation of lib/contrib/ stuff conditional.
1858           Affected files configure.in.pre, lib/contrib/Makefile.am.
1859
1860 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1861
1862         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
1863           to the sender of the notify too, to avoid situation where two
1864           notifys are in the network at the same time going to oppsite
1865           directions.  Affected file silcd/packet_receice.c.
1866
1867 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1868
1869         * Delete the client from channel even if the cilent->id is
1870           NULL.  It was possible that client was deleted without
1871           removing from channels (theoretically at least).  Affected
1872           file silcd/server.c and silcd/server_util.c.
1873
1874         * Free the client data too when resuming is not successful.
1875           Affected file silcd/packet_receive.c.
1876
1877         * Merged some code from c0ffee's silc-plugin.  Affected files
1878           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
1879
1880         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
1881           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
1882           to the primary router connection, the other one returns
1883           TRUE if packet must be broadcasted to network.
1884
1885         * All notifys that are destined to primary router (to network)
1886           are now automatically sent to backup routers even if the
1887           router is standalone (and has backup router).  Affected files
1888           in silcd/.
1889
1890         * Added --without-irssi and --without-silcd configuration
1891           options for disabling the compilation of these applications.
1892           Affected file configure.in.pre and prepare.
1893
1894 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1895
1896         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
1897           UTF-8 encoding and decoding.  Added also new encodings
1898           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
1899
1900           Added also SILC_STRING_LANGUAGE which is language and charset
1901           specific encoder and decoer for those platforms that support
1902           iconv().  It can convert the UTF-8 to and from the locale
1903           specific character set.
1904
1905           Affected file lib/silcutil/silcstrutil.[ch].
1906
1907         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
1908
1909         * Added function silc_get_command_name to the file
1910           lib/silcutil/silcutil.[ch].
1911
1912         * Improved the server debug output a bit.  Affected files are
1913           in silcd/.
1914
1915 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1916
1917         * Save the channel passphrase when received succesful JOIN
1918           command reply from router, on normal server.  Otherwise
1919           joinig +a channels from normal server is not possible.
1920           Affected file silcd/command.c.
1921
1922         * Fixed a bug in TOPIC_SET notify handling.  The notifier
1923           may be other than client too, like server or channel.
1924           It expected it to always be only client and ignored the
1925           notify.  Affected file silcd/packet_recieve.c.
1926
1927         * Removed some (unnecessary) debug printing from
1928           lib/silccore/silcid.c and lib/silccore/silcargument.c.
1929
1930         * Do not force CMODE_CHANGE when server is announcing new
1931           channel.
1932
1933           Router announces stuff only after server reannounces channel
1934           after CHANNEL_CHANGE notify.
1935
1936           These fixes optimizes the announcing procedure, and perhaps
1937           fixes some problems too.  Affected file silcd/packet_receive.c.
1938
1939         * Fixed SERVER_SIGNOFF sending to local clients.  It was
1940           totally broken and sent the notify to all local clients,
1941           instead of only to those that was on same channel as the
1942           signing off clients.  Affected file silcd/server_util.c.
1943
1944         * Added -D option to server.  It can be used to give debug
1945           level.  The levels are from 0 - 99, and are predefined for
1946           smooth server debugging.  (see silcd.c for the predefined
1947           levels).  Affected file silcd/server.c.
1948
1949 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1950
1951         * Fixed a bug in Irssi SILC client to close the connection
1952           properly when disconnecting from server.  Affected file
1953           irssi/src/silc/core/client_ops.c.
1954
1955 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1956
1957         * When authenticating as founder during JOIN command, check
1958           that the one authenticating becomes the only founder on the
1959           channel.  Affected file silcd/command.c.
1960
1961         * Better checking for founder mode setting when CUMODE_CHANGE
1962           notify is received.  Affected file silcd/packet_receive.c.
1963
1964         * Close all connections when shutting down the server by sending
1965           DISCONNECT packet.  Close all listeners too when shutting
1966           down the server.  Affected file silcd/server.c.
1967
1968         * Handle DISCONNECT packet correctly in client library by
1969           calling the "disconnect" client operation.  Affected file
1970           lib/silcclient/client.c.
1971
1972         * Handle local errors correctly during resuming.  Affected
1973           file lib/silcclient/client.c.
1974
1975 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1976
1977         * The log file is not dupped internally anymore in
1978           lib/silcutil/silclog.c.  Fixed memory leaks too.
1979
1980         * The scheduler now dispatches all pending timeout tasks
1981           when it is uninitialized with silc_schedule_uninit.
1982           Affected file lib/silcutil/silcschedule.c.
1983
1984 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1985
1986         * Added --enable-stack-trace option to configure.  Added
1987           memory allocation stack trace support.  Added files
1988           lib/silcutil/stacktrace.[ch].  Affected files are
1989           lib/silcutil/silcmemory.[ch].
1990
1991         * Fixed memory leaks from libraries and server.  Affected
1992           files around the tree.
1993
1994         * Reverted back a fix made to CUMODE which broke it.
1995           Affected file silcd/command.c.
1996
1997 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1998
1999         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
2000           core library, and implemented it.  All textual messages SHOULD
2001           use this flag and the message MUST be UTF-8 encoded.
2002           All text messages sent by Irssi SILC client are now UTF-8
2003           encoded (regardless whether the terminal supports UTF-8 or not).
2004           Affected files are lib/silccore/silcchannel.h,
2005           irssi/src/silc/core/silc-servers.c, silc-channels.c and
2006           client_ops.c.
2007
2008 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2009
2010         * Added lots of new statistics updating that was missing from
2011           the server and router code.  Affected files in silcd/.
2012
2013         * Sending SIGUSR1 signal to server now dumps the current
2014           server statistics into /tmp directory.  Affected file is
2015           silcd/silcd.c.
2016
2017         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
2018           the SILC Hash Interface also.  Added new functions
2019           silc_hash_get_name, silc_hash_init, silc_hash_update and
2020           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
2021
2022 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2023
2024         * Added some better info printing for client during connecting.
2025           Affected file silcd/server_util.c.
2026
2027         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
2028           to silence a user on a channel.  Affected files are
2029           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
2030           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
2031           and silcd/packet_receive.c.
2032
2033         * Fixed a fatal bug in handling of malformed command payload.
2034           Affected file silcd/command.c.
2035
2036         * Fixed a double free when announcing channel users to router.
2037           Affected file silcd/server.c.
2038
2039         * After successful authentication to channel founder mode, check
2040           that there isn't anyone else with founder mode on the channel.
2041           The one that authenticated will become founder and anyone
2042           else is demoted.  Affected file silcd/command.c.
2043
2044         * Added error printing of any error that has occurred during
2045           any command in client library.  Affected file is
2046           irssi/src/silc/core/client_ops.c.
2047
2048         * Removed some error printing from the client library and left
2049           it for the application to worry (from the error status it
2050           receives in 'command' client operation.  Affected file is
2051           lib/silcclient/command.c.
2052
2053 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2054
2055         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
2056           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
2057           Starting key agreement with itself is denied.  Affected file
2058           is lib/silcclient/client_keyagr.c.
2059
2060         * Fixed some error checkings from the SFTP library which caused
2061           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
2062           and lib/silcsftp/sftp_util.c.
2063
2064         * Added new "debug" and "debug_string" settings to Irssi SILC
2065           client which can be used to print runtime debugging on the
2066           Irssi's screen.  Available when compiled with --enable-debug
2067           option.  Affected file irssi/src/silc/core/silc-core.c.
2068
2069 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2070
2071         * Fixed a missing variadic parameter in a function call that
2072           caused server crash when a non-allowed connection arrived.
2073           Reported by Richard Becker.  Affected file silcd/server.c.
2074
2075 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2076
2077         * Added WATCH list sending to backup routers from router.
2078           The WATCH command is sent by the router to the backup
2079           router.  Affected file silcd/command.c.
2080
2081         * Mark the backup_router flag for RouterConnection entry
2082           if the backup router stuff is defined in the config file.
2083           Affected file silcd/serverconfig.c.
2084
2085         * Fixed some backup data sending around the code to work better
2086           if the router is standalone router.  Not all places were fixed.
2087           Affected file silcd/packet_receive.c, silcd/packet_send.c,
2088           silcd/server.c.
2089
2090         * Fixed the router connecting when connecting to multiple
2091           routers.  It ignored every other router except the first
2092           one.  Affected file silcd/server.c.
2093
2094 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2095
2096         * Made the private key generation after expiration optional.
2097           If not created after expiration the old key will re-expire
2098           at a later time (and thus key pair is not necessary to
2099           change).  Affected file irssi/src/silc/core/clientutil.c.
2100
2101 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2102
2103         * The length arguments in bind() and connect() were wrong
2104           and fixed now to used SIZEOF_SOCKADDR in the
2105           lib/silcutil/unix/silcunixutil.c.
2106
2107 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2108
2109         * Fixed detach timeout handling to use Client ID and not
2110           the actual client entry which may be freed in the callback.
2111           Affected file silcd/command.c.
2112
2113 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2114
2115         * Merged c0ffee's multiple interface support patch.
2116           Affected files in silcd/.
2117
2118 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2119
2120         * Cleanup keys properly.  Affected file is
2121           irssi/src/silc/core/clientutil.c.
2122
2123 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2124
2125         * Display the user mode on the status bar.  Affected file
2126           irssi/src/silc/core/silc-expandos.c.
2127
2128 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2129
2130         * If private message key is not set, but the flag is set in
2131           the packet, ignore the packet since it cannot be decrypted.
2132           Affected file lib/silcclient/client_prvmsg.c.
2133
2134 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2135
2136         * When resuming client, remove the old client entry from
2137           the watcher list too.  Affected file silcd/packet_receive.c.
2138
2139         * Do not allow normal server to force founder mode away
2140           from router if the founder mode is already set.  Affected
2141           file silcd/packet_receive.c.
2142
2143         * Remove the client entry with watch notify types with short
2144           timeout, and not directly, so that other notifys can be
2145           retrieved too.  Affected file lib/silcclient/client_notify.c.
2146
2147         * Display notification about data messages that cannot be
2148           displayed.  Affected files irssi/src/silc/core/client_ops.c,
2149           irssi/src/fe-common/silc/module-formats.[ch].
2150
2151 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2152
2153         * Fixed the CHANNEL_CHANGE notify handling in client libary
2154           to not use freed memory.  Affected file is
2155           lib/silcclient/client_notify.c.
2156
2157         * Fixed CUMODE_CHANGE notify handling in server.  Affected
2158           file silcd/packet_receive.c.
2159
2160         * Fixed USERS command to support empty channels.  Affected
2161           file silcd/command.c.
2162
2163 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2164
2165         * Allow multiple identical pending commands to be registered
2166           in client library.  Affected file is lib/silcclient/command.c.
2167
2168         * Call the completion for resolving client information only
2169           after all resolvers has finished.  This fixes a crash in
2170           the client.  Added support for checking when the resolvers
2171           are finished.  Affected file is lib/silcclient/idlist.c.
2172
2173         * Wait by default 3 seconds before reconnecting to the server
2174           after being disconnected.  Makes the /detach command a bit
2175           more usable.
2176
2177 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2178
2179         * Check the watcher list before sending signoff notifys
2180           when closing client connection.  Affected file is
2181           silcd/server.c.
2182
2183         * Added better CMODE command rights checking.  Affected file
2184           silcd/server_util.c.
2185
2186 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2187
2188         * Fixed watcher list checking during server signoff.  It
2189           crashed the server.  Affected file silcd/server_util.c.
2190
2191         * The JOIN command reply returns now the founder's public
2192           key.  Affected file is silcd/command.c.
2193
2194         * Announce the channel mode, and the mode properties with
2195           CMODE_CHANGE notify.  Affected file silcd/server.c.
2196
2197         * Mark new channels by default disabled, untill at least
2198           one user joins the channel.  Affected file is
2199           silcd/packet_receive.c.
2200
2201 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2202
2203         * The nickname argument to watch notify can be optional.
2204           Fixes a crash in server.  Affected file silcd/packet_send.c.
2205
2206         * Remove the client entry from cache if the WATCH notify type
2207           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
2208           lib/silcclient/client_notify.c.
2209
2210         * Check the watcher list before and after changing nickname
2211           when the NICK_CHANGE notify is received.  Affected file is
2212           silcd/idlist.c.
2213
2214         * Fixed a crash in OPER and SILCOPER command sending.  Empty
2215           passphrase caused the crash.  Affected file is
2216           lib/silcclient/command.c.
2217
2218 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2219
2220         * Merged with Irssi CVS for Irssi SILC client.
2221
2222 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2223
2224         * Completed the protocol specifications.
2225
2226 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2227
2228         * Merged with Irssi CVS for Irssi SILC client.
2229
2230 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2231
2232         * Added the founder's public key delivery to the
2233           CUMODE_CHANGE notify type as well.  Updated the protocol
2234           specs and the code.  Affected files are silcd/packet_send.[ch],
2235           silcd/packet_receive.c and silcd/command.c.
2236
2237 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2238
2239         * Added silc_pkcs_public_key_copy function into the
2240           lib/silccrypt/silcpkcs.[ch].
2241
2242         * Remove the `iv' from the SilcChannelEntry since we can
2243           live without it.  Affected files are silcd/idlist.h and
2244           silcd/packet_receive.c.
2245
2246         * Added support for sending the founder's public key in
2247           the CMODE_CHANGE notify packet in the server.  Affected
2248           files are silcd/packet_send.[ch], silcd/packet_receive.c,
2249           silcd/command.c and silcd/server.c.
2250
2251         * Changed the FOUNDER_AUTH authentication to use only
2252           public key authentication as defined by new protocol
2253           specs.  Passphrase authentication with that mode cannot
2254           be used anymore.  It is now possible to reclaim founder
2255           mode from any server in the network.  Affected files are
2256           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
2257
2258         * Added permanent channels support by making the channel
2259           permanent when FOUNDER_AUTH mode is set on the channel.
2260           The channel will not be destroyed even if channel is empty
2261           when that mode is set.  Protocol TODO #17.  Affected
2262           files are silcd/server.[ch], server_util.[ch],
2263           silcd/command.c, silcd/packet_receive.c and
2264           lib/silcclient/command.c.
2265
2266 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2267
2268         * Added reference counter to the command reply context in
2269           the client library.  Affected files are
2270           lib/silcclient/command_reply.[ch].
2271
2272 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2273
2274         * Fixed rekey protocol with PFS in the client library.
2275           Affected file is lib/silcclient/protocol.c.
2276
2277         * Added support for list of errors in client library
2278           command reply handling.  Affected file is
2279           lib/silcclient/command_reply.c.
2280
2281         * Defined that the WHOIS and IDENTIFY commands can send
2282           list of errors.  Updated the protocol specs.  Protocol
2283           TODO #2.
2284
2285         * Added support for sending list of errors to WHOIS and
2286           IDENTIFY commands in server.  Added support for receiving
2287           list of errors in server.  Affected files are
2288           silcd/command.c and silcd/command_reply.c.
2289
2290         * Fixed client info resolving on LEAVE command in client
2291           library to not crash.  Affected file is
2292           lib/silcclient/client_notify.c.
2293
2294 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2295
2296         * Defined that the NICK command replies with thew changed
2297           nickname too, to make the nickname changing simpler at
2298           the client's end.  Updated protocol specs and the code
2299           in client and server.  Affected files are
2300           silcd/command.c, lib/silcclient/command_reply.c and
2301           lib/silcclient/command.c.
2302
2303 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2304
2305         * Added `Compressed' packet flag to indicate that the packet
2306           payload is compressed by the sender.  Updated the protocol
2307           specs and the core library.  The compression still is not
2308           implemented in the sources.  Affected file is
2309           lib/silccore/silcpacket.h.
2310
2311 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2312
2313         * Remove pending command callbacks also if the connection
2314           to the server is destroyed.  Affected file is
2315           lib/silcclient/client.c.
2316
2317 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2318
2319         * Added new QUIET channel user mode that can be used to
2320           quiet a user in a channel.  Updated the protocol specs but
2321           it wasn't implemented yet.  Protocol TODO #27.  Affected
2322           file is lib/silccore/silcmode.h.
2323
2324 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2325
2326         * Added BLOCK_INVITE user mode to be able to block incoming
2327           invite notifications.  Protoocol TODO #26.  Affected files
2328           are lib/silccore/silcmode.h, lib/silcclient/command.c and
2329           silcd/command.c.
2330
2331         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
2332           the protocol specs and the code.  Affected file is
2333           lib/silccrypt/silcpkcs.c.
2334
2335 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2336
2337         * Disconnect Payload includes now the status type.  Updated
2338           the protocol specs and the code.  Protocol TODO #25.
2339           Affected files are silcd/server.c, lib/silcclient/client.c.
2340
2341         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
2342           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
2343           Moved the silc_client_command_status_messages table to the
2344           lib/silcutil/silcutil.c and added new funtion
2345           silc_get_status_message, which deprecates function
2346           silc_client_status_message.  Affected files are
2347           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
2348           lib/silcutil/silcutil.[ch].
2349
2350 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2351
2352         * Defined that the nickname hash in Client ID MUST be from
2353           lowercase nickname.  This effectively changes nicknames in
2354           SILC to case-insensitive.  Updated the protocol specs and
2355           the code.  Affected files are lib/silcutil/silcutil.[ch],
2356           silcd/serverid.c, and silcd/idlist.c.
2357
2358         * Added new channel user modes BLOCK_MESSAGES_USERS and
2359           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
2360           code.  Affected files are lib/silccore/silcmode.h,
2361           lib/silcclient/command.c, and silcd/packet_send.c.
2362
2363         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
2364           specs and code.  Affected file lib/silccore/silcstatus.h.
2365
2366         * Added support for watch list.  It is possible to add nicknames
2367           to be watched, and when they come to network, leave network
2368           or user mode changes the watcher will be notified of this
2369           change.  Added SILC_COMMAND_WATCH command, added new
2370           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
2371           notifications.  Updated the protocol specs and implemented
2372           this to library, client and server.  Protocol TODO #21.
2373           Affected files are lib/silccore/silccomand.h,
2374           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
2375           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
2376           silcd/packet_send.[ch], silcd/packet_receive.c, and
2377           irssi/src/silc/core/client_ops.c.
2378
2379         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
2380           somebody watching you.  Updated the protocol specs and the
2381           code.  Affected files are lib/silccore/silcmode.h, and
2382           lib/silcclient/command.c.
2383
2384 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2385
2386         * Added service support to SILC protocol.  Added new command
2387           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
2388           core library.  Services are not implemented in server or
2389           client for now.  Protocol TODO #20.  Affected files are
2390           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
2391
2392         * Added SilcStatus argument to `command' client operation
2393           to return the error status when command sending fails
2394           locally.  Changed all command in client library to return
2395           correct command status.  Affected files are
2396           lib/silcclient/command.c, lib/silcclient/silcclient.h and
2397           irssi/src/silc/core/client_ops.c.
2398
2399 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2400
2401         * Added silc_mime_parse function to parse MIME headers.
2402           Affected files are lib/silcutil/silcstruti.[ch].
2403
2404         * Added MIME header parsing in Irssi SILC Client.  It displays
2405           all textual MIME objects, others it ignores.  Affected file
2406           is irssi/src/silc/core/clien_ops.c.
2407
2408 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2409
2410         * Fixed a bug in the pid writing function, which couldn't be
2411           written in a root-owned directory.
2412
2413 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2414
2415         * Defined that channel message to unknown Channel ID must
2416           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
2417           Updated the protocol specs and the code in server.  The
2418           affected file is silcd/packet_receive.c.
2419
2420 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2421
2422         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
2423           that it is used to send error notifys if error occurs during
2424           some SILC packet processing, except commands.  The error
2425           types are same as for command reply types.  Defined that
2426           if private message is sent to unknown Client ID the error
2427           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
2428           Updated the protocol specs and code.  Affected files are
2429           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
2430           lib/silcclient/client_notify.c, silcd/packet_receive.c,
2431           and irssi/src/silc/core/client_ops.c.  Renamed the
2432           SilcCommandStatus to SilcStatus.
2433
2434         * Defined the use of extra WHOIS attributes in WHOIS command.
2435           The <Requested Attributes> (defined in a separate document)
2436           can be used to request additional information about user
2437           not returned by standard WHOIS command.  Defined that server
2438           can send WHOIS command directly to client.  Client provides
2439           the requested attributes to the server.  Updated the protocol
2440           specs.  Protocol TODO #4.  Implementation is not done yet
2441           (Protocol TODO #24).
2442
2443         * Renamed function silc_client_command_status_message to
2444           silc_client_status_message.  Affected files are
2445           lib/silcclient/command_reply.[ch].
2446
2447 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2448
2449         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
2450           32 bit integers.  Updated the protcol specs and the code.
2451           Affected files are silcd/command.c and
2452           lib/silcclient/command.c.
2453
2454 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2455
2456         * Fixed a bug in library where sending a bogus authentication
2457           payload would lead to a crash.  Affected file is
2458           lib/silccore/silcauth.c.
2459
2460 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2461
2462         * Added detach_disabled and detach_timeout server config
2463           options to the server.  Affected files silcd/serverconfig.[ch],
2464           silcd/command.c and silcd/packet_receive.c.
2465
2466 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2467
2468         * Added resolve_cmd_ident field to the SilcClientEntry structure
2469           too so that if the entry is for example being resolved so
2470           another command may attach to the same pending command reply
2471           without requiring to resolve the same entry again.  Added
2472           support for adding multiple pending commands for one
2473           command idenfier.  Affected files lib/silcclient/command.[ch],
2474           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
2475
2476 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2477
2478         * Defined that server receives WHOIS command reply for private
2479           and secret channels too.  Updated protocol specs and the
2480           code in server.  Affected file silcd/command.c.
2481
2482         * Defined <channel user mode list> argument to WHOIS command
2483           reply for returning user modes on the channels.  The
2484           channel list now doesn't include the user mode anymore but the
2485           actual channel mode.  Updated protocol specs and the code in
2486           client and server.  Affected files are silcd/command_reply.c,
2487           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
2488           and lib/silcclient/command_reply.c.
2489
2490         * Save the channels list in WHOIS command reply in normal server
2491           so that WHOIS always shows joined channels also in normal
2492           server and not just on router.  Affected file is
2493           silcd/command_reply.c.
2494
2495 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2496
2497         * Defined that server receives USERS command reply for private
2498           and secret channels too.  Updated protocol specs and the
2499           code in server.  Affected file silcd/command.c.
2500
2501 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2502
2503         * Changed the UMODE's mode mask argument to be optional.  If
2504           not provided then the command merely returns the current mode
2505           mask to the client.  Updated protocol specs and the server.
2506           Affected file is silcd/command.c.
2507
2508         * Added SILC session detachment/resuming support.  It is possible
2509           to detach by closing the network connection and then re-connect
2510           and resume to the old client session.  Added DETACHED user
2511           mode that server will set for detached client.  Added new
2512           packet RESUME_CLIENT which is used to perform the resuming
2513           process.  Added DETACH command.  Updated the protocol specs,
2514           core library, client and server.  Protocol TODO #22.  Very
2515           many affected files around the tree.
2516
2517 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2518
2519         * Changed the CMODE's mode mask argument to be optional.  If
2520           not provided then the command merely returns the current mode
2521           mask to the client.  Updated protocol specs and the server.
2522           Affected file is silcd/command.c.
2523
2524         * Changed the Killer's Client ID in KILLED notify to be just
2525           any ID payload since router server is allowed to kill as well.
2526           Updated protocol specs, client libary and server.  Affected
2527           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
2528           and irssi/src/silc/core/client_ops.c.
2529
2530 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2531
2532         * Added new user modes ANONYMOUS for special anonymous servers
2533           that may set the mode for client, and BLOCK_PRIVMSG which
2534           client may set to block incoming private messages unless the
2535           Private Message Key flag is set (using private keys to protect
2536           private messages).  Updated protocol specs and code in client
2537           and server and core library.  Protocol TODO #23.  Affected
2538           files are lib/silccore/silcmode.h, silcd/server.[ch],
2539           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
2540           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
2541
2542         * Added new channel user mode BLOCK_MESSAGES which the client
2543           may set to itself to tell server not send channel messages.
2544           Other packets such as channel key packets are still sent.
2545           Protocol TODO #23.  Updated the protocol specs, client and
2546           server.  Affected files are lib/silccore/silcmode.h,
2547           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
2548           lib/silcutil/silcutil.c, silcd/command.c, and
2549           silcd/packet_send.c.
2550
2551 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2552
2553         * Redefined the Status Payload to include now two 8 bit fields,
2554           instead of one 16 bit field.  This now makes it possible to
2555           send list of errors.  Updated the protocol specs and the code
2556           in core library, client library and server.  Protocol TODO #1.
2557           Affected files are lib/silccore/silccommand.[ch],
2558           lib/silcclient/command_reply.[ch], silcd/command.c,
2559           silcd/command_reply.c and silcd/packet_receive.[ch].
2560
2561 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2562
2563         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
2564           must be handled by the application and should tell the application
2565           that an error message was already printed, and it should print the
2566           config coords (line, filename, ...).  Affected files are
2567           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
2568
2569         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
2570           server config parsing code more readable.
2571
2572           Fixed a bug in the fetch_logging() config callback.
2573
2574           Affected files is silcd/serverconfig.c.
2575
2576         * Drop root privileges when started in foreground.  Don't drop them
2577           if debugging also.  Affected file is silcd/silcd.c.
2578
2579 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2580
2581         * Added more IM-like features by introducing new user modes
2582           for setting various presence information.  Added new modes:
2583           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
2584           specs and code.  Protocol TODO #19. Affected files are
2585           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
2586           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
2587
2588 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2589
2590         * Added STATS command to the protocol after all, to return
2591           various statistical information about the network.  It can
2592           be used by clients to retrieve statistical information, and
2593           servers may use it to to fetch cell and network wide
2594           statistics from router.  Updated the protocol specs and
2595           implemented it to the server.  Protocol TODO #16.
2596           Affected files are lib/silccore/silccommand, silcd/command.[ch],
2597           silcd/command_reply.[ch].
2598
2599 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2600
2601         * The LIST command reply in client libary now adds new channel
2602           entry if the returned channel doesn't exist yet in cache,
2603           and returns the channel entry to the application in the
2604           command_reply client operation.  Affected file is
2605           lib/silcclient/command_reply.c.
2606
2607         * Changed the channel message payload's MAC generation to
2608           include the IV in the MAC as well.  This way all relevant
2609           parts of the channel message payload are authenticated also
2610           with the channel message MAC (and not only by packet MAC).
2611           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
2612           Affected file is lib/silccore/silcchannel.c.
2613
2614         * Fixed the SKE to save the remote version, since the
2615           silc_ske_parse_version mistakenly checked wrong version,
2616           after it replaced the start payload.  Affected files are
2617           lib/silcske/silcske.[ch].
2618
2619 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2620
2621         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
2622           string utility functions.  Added there also new functions
2623           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
2624           Affected files lib/silcutil/silcstrutil.[ch].
2625
2626         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
2627           files are lib/silcutil/silcstrutil.[ch].
2628
2629         * Defined that the security property fields in SKE SHOULD be
2630           UTF-8 encoded, defined that version string MUST be US-ASCII
2631           encoded, defined that passphrases sent in connection
2632           authentication protocol MUST be UTF-8 encoded.  Implemented
2633           these to the client and server.  Defined also that other
2634           passphrases sent in the protocol MUST be UTF-8 encoded.
2635           Affected files are lib/silcske/silcske.c,
2636           lib/silcclient/protocol.c, silcd/protocol.c,
2637           silcd/serverconfig.c, and lib/silccore/silcauth.c.
2638
2639         * Changed the silc_client_close_connection interface to not
2640           need the SilcSocketConnection which should not be visible
2641           to application.  Affected files are lib/silcclient/client.c
2642           and lib/silcclient/silcclient.h.
2643
2644         * Rewrote the text for Private Message Key Payload in the
2645           protocol specification.  Protocol TODO #11.
2646
2647 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2648
2649         * Upgraded the protocol version to 1.1, updated protocol specs
2650           and software.
2651
2652         * Added the nickname as new argument to NICK_CHANGE notify and
2653           added it to protocol specs and implemented it to client and
2654           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
2655           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
2656           lib/silcclient/client_notify.c.
2657
2658         * Added the killer's client ID to the KILLED notify and added
2659           it to protocol specs and implemented it to client and server.
2660           Protocol TODO #13.  Affected files are silcd/command.c,
2661           silcd/packet_receive.c, packet_send.[ch],
2662           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
2663           The killer's client entry is now returned to application in
2664           the `notify' client operation.
2665
2666         * Fixed the Max Argument fields that had too large value set
2667           in the protocol specs.  Protocol TODO #14.
2668
2669         * Added the LEAVE command reply to return the ID of parted
2670           channel.  Updated protocol specs and implemented it to the
2671           client and server.  Protocol TODO #15.  Affected files are
2672           silcd/command.c, lib/silcclient/command_reply.c.  The channel
2673           entry is now returned to application in the `command_reply'
2674           client operation.
2675
2676         * Rewrote the version SKE version checking in client libary
2677           and in server to use the silc_parse_version_string.  Affected
2678           files are lib/silcclient/protocol.c, silcd/protocol.c.
2679
2680         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
2681           commands that was missing it, and updated protocol specs and
2682           the server implementation.  Protocol TODO #10.  The affected
2683           file is silcd/command.c.
2684
2685         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
2686           generic reply to a generic request (REQUEST flag), and
2687           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
2688           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
2689           to define the payload for DATA flag.  Added the flags to
2690           the implementation.  Protocol TODO #9.  Affected file is
2691           lib/silccore/silcchannel.h.
2692
2693           Changed the client library to return the message length
2694           to application as well in the channel_message and private_message
2695           client operations.  Affected files are
2696           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
2697           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
2698           and lib/silcclient/client_ops_example.c.
2699
2700         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
2701           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
2702           the channel.  Updated protocol specs and impelemented this
2703           to client and server.  Protocol TODO #6.  Affected files are
2704           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
2705           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
2706
2707           Added new options m and M to CMODE command in Irssi SILC
2708           client to set these modes.
2709
2710         * Deprecated all administrative commands from SILC protocol
2711           since they are highly implementation specific commands.
2712           Updated protocol specs.  Moved the old commands in
2713           implementations to private range of command types.  Affected
2714           files are silcd/command.c, lib/silcclient/command.c and
2715           lib/silcclient/command_reply.c.  Protocol TODO #8.
2716
2717         * Fixed a bug in server where sending unknown command crashes
2718           the server.  Affected file silcd/command.c.
2719
2720 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2721
2722         * Added SILC_PROTOCOLVERSION macro to check protocol version
2723           of a socket connection.  The affected file is
2724           lib/silcutil/silcsockconn.h.
2725
2726         * Added better error logging in rekey protocol.  Affected file
2727           silcd/protocol.c.
2728
2729         * Do not check public key types in SKE during rekey.  Affected
2730           file lib/silcske/payload.c.
2731
2732         * Fixed the rekey protocol with PFS, which was totally broken.
2733           Affected file silcd/protocol.c.
2734
2735 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2736
2737         * Some client implementations quit network by doing first LEAVE
2738           and then immediately SIGNOFF (like Bombyx).  We now do check
2739           after a short time after LEAVE notify and check whether the
2740           client is still valid after LEAVE, and if not we remove it from
2741           cache.  Affected file is lib/silcclient/client_notify.c.
2742
2743 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2744
2745         * Merged version 1.1.4 of zlib. Even if it not currently in use,
2746           it's good not to have security holes here.
2747
2748         * Fixed a negative refcount situtuation for the config context.
2749           Affected file is silcd/serverconfig.c.
2750
2751 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2752
2753         * ROBOdoc documented lib/silcutil/silcutil.h.
2754
2755 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2756
2757         * Optimized even more the SilcPacketContext structure.  Now
2758           totally saved 16 bytes of memory per context after optimization.
2759           Affected files are lib/silccore/silcpacket.[ch].
2760
2761         * Made strict checks for valid SILC IDs.  Affected file is
2762           lib/silccore/silcid.c.
2763
2764 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2765
2766         * Changed the object argument for silc_cipher_register,
2767           silc_hash_register, silc_hmac_register and silc_pkcs_register
2768           to const.  Affected files are lib/silccrypt/silccipher.[ch],
2769           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
2770
2771         * Changed the silc_get_username and silc_get_real_name to
2772           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
2773
2774         * Fixed the Irssi SILC Client to use the silc_get_username and
2775           silc_get_real_name insted of glib routines since the glib
2776           routines only corrupt stack.  Fixes the Irssi SILC to work in
2777           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
2778
2779         * Fixed the Irssi to not use g_get_home_dir since it crashes
2780           or returns garbage on cygwin and corrupts stack.  Added function
2781           get_home_dir to Irssi routines.  Affected files are
2782           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
2783
2784 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2785
2786         * Made some structure optimizations.  SFTP memory FS MemFSEntry
2787           entry structure.  Optimized SilcTask structure.  Optimized
2788           SilcPacketContext structure.
2789
2790           Affected files lib/silcsftp/sftp_fs_memory.c,
2791           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
2792
2793 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2794
2795         * And yet again reverted back the config thing since Johnny
2796           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
2797           and silcd.c.
2798
2799         * Fixed memory leaks from config object.  Affected files are
2800           silcd/serverconfig.[ch].
2801
2802         * Added support for adding new connections to the server in rehash.
2803           After rehash they take effect.
2804
2805           Added support for changing the maximum allowed connections in
2806           rehash.  The number can grow but going smaller is not supported.
2807
2808           Added function silc_server_num_sockets_by_remote to the
2809           silcd/server_util.[ch].
2810
2811           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
2812
2813 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
2814
2815         * Added preliminary checking during config parsing for a valid
2816           public/private key and removed further checks in the code.
2817           Affected files are silcd/serverconfig.[ch], server.c.
2818
2819         * Moved functions silc_server_drop() and silc_server_daemonise()
2820           from server.c to silcd.c since they are stricly related to
2821           the application activity.
2822
2823         * Reverted a small part of the automatic ref/unref since
2824           it caused a double unref in some situations.  Affected
2825           files are silcd/silcd.[ch], server.c, serverconfig.c.
2826
2827         * Added some .cvsignore files in the lib directory.
2828
2829 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2830
2831         * Fixed silc_net_gethostbyaddr to correctly resolve by
2832           address.  Affected file lib/silcutil/silcnet.c.
2833
2834         * Fixed the notify relaying to client.  The HMAC to be used
2835           with relayed packets ws wrong and caused decryption failure
2836           at the client end.  Affected file is silcd/packet_receive.c.
2837
2838 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2839
2840         * Created new branch silc_protocol_1_0_branch.
2841
2842         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
2843
2844         * Changed the silc_server_config_* routines to be SilcServer
2845           independent.  They are now officially application specific code
2846           and not part of generic server implementation.  Affected files
2847           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
2848
2849 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2850
2851         * Added automatic referencing of config context in the
2852           silc_server_config_alloc, and automatic unreferencing in the
2853           silc_server_config_destroy.  Affected files are
2854           silcd/serverconfig.[ch], silcd/silcd.c.
2855
2856         * Fixed the silc_log_quick handling in the logging routines.
2857           It didn't log quickly when it was TRUE.  Affected file is
2858           lib/silcutil/silclog.c.  Also the flush delay was set even
2859           if it was 0 in config file.  Affected file is
2860           silcd/serverconfig.c.
2861
2862         * Added support for changing key pair of the server in rehash.
2863           Affected file silcd/server.c.
2864
2865 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2866
2867         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
2868           too early, before getting the channel entry.  Affected file
2869           is silcd/packet_receive.c.
2870
2871 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2872
2873         * Added functions silc_server_config_[ref/unref], these are used
2874           to prevent that the config object is destroyed.
2875
2876           No longer directly affect global variables silc_log_quick and
2877           silc_log_delay, they are first cached inside the config object
2878           and then applied with silc_server_config_setlogfiles().
2879
2880           silc_server_config_set_defaults() is now internal to
2881           serverconfig.c, there are no reasons to show this internal stuff
2882           to the server.
2883
2884           Affected files are silcd/serverconfig.[ch].
2885
2886         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
2887           fprintf's to stderr, since some code may be executed again after
2888           the server went into the background.  Affected files are
2889           silcd/server.[ch].
2890
2891         * Added rehash support. Added function silc_server_rehash() that
2892           will perform all the basic tasks of the rehashing procedure.
2893
2894         * Added command line option `-x, --hexdump'. This will enable the
2895           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
2896           The option `--hexdump' implies `--debug'.
2897
2898         * Fixed a bad bug in the logging APIs (silcutil library) where
2899           the application would crash after calling silc_log_reset_all().
2900
2901 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2902
2903         * Fixed the KICKED notify handling in client library to
2904           correctly remove the channel and all entries from the
2905           channel when I was kicked.  This bug crashed the client.
2906
2907           Fixed yet another but in KICKED notify handling to remove
2908           the kicked client correctly from the channel.
2909
2910           Affected file is lib/silcclient/client_notify.c.
2911
2912         * Fixed a minor bug in looking up correct client entry
2913           in KICKED notify in server.  Affected file is
2914           silcd/packet_receive.c.
2915
2916         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
2917           sources correctly to distribution.  Fixes --with-gmp option.
2918
2919         * Removed the manual rehashing from ID Cache, and changed it
2920           to use the SILC Hash Table's auto rehash feature.  Affected
2921           file is lib/silccore/silcidcache.c.
2922
2923 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2924
2925         * Fixed a bug in the silc_client_nickname_format function that
2926           handles the multiple same nickname formatting.  Two clients
2927           with same nickname caused problems after the first one left
2928           and rejoined.  It didn't format the nickname correctly.
2929           Affected file is lib/silcclient/idlist.c.
2930
2931 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2932
2933         * Don't change the topic if olod topic is same as new one.
2934           Affected file is silcd/packet_receive.c.
2935
2936 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2937
2938         * Added cross-reference support to the SILC Documentation
2939           generator.  All types across all HTML files are now cross-
2940           referenced.  Affected files util/robodoc/generator.c and
2941           scripts/silcdoc/silcdoc.
2942
2943         * Added file lib/silcutil/silctypes.h to include all the
2944           arithmetic type definitions and some macros.  Removed
2945           includes/bitmove.h and moved macros to silctypes.h.
2946
2947 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2948
2949         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
2950
2951 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2952
2953         * Added `type' argument to silc_id_payload_parse_id function which
2954           now returns the type of the ID to the sent pointer.  Affected
2955           file is lib/silccore/silcid.[ch].
2956
2957         * Added check for CMODE_CHANGE notify type that mode change is
2958           allowed by the sender.  Affected file silcd/packet_receive.c.
2959
2960         * Added check for CUMODE_CHANGE notify type that mode change is
2961           allowed by the sender.  Affected file silcd/packet_receive.c.
2962           Added the ID type as CUMODE_CHANGE notify type as argument
2963           to the `notify' client operation.  Affected files are
2964           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
2965
2966         * Added function silc_client_add_server to the client library.
2967           Added support for resolving also channel and server info when
2968           received unknown entity in notify packet.  Affected files are
2969           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
2970
2971         * Added function silc_command_get_status to return the command
2972           status from the command reply's argument payload.  Affected files
2973           are lib/silccore/silccommand.[ch].
2974
2975         * Added check for KICKED notify type that the kicking is
2976           allowed by the client.  Affected file silcd/packet_receive.c.
2977
2978         * Created function silc_get_input which can be used to get input
2979           (echo on or off) from user on command line.  Affected files are
2980           lib/silcutil/silcutil.[ch].
2981
2982 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2983
2984         * Optimized silc_server_packet_relay_to_channel function.
2985           Added new function silc_channel_message_payload_encrypt which
2986           can be called directly if channel message payload needs to
2987           be encrypted and is already encoded (no need to call _encode
2988           function).  Packet relaying is now done by router without any
2989           extra memory allocations.  Affected files are
2990           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
2991           silcd/packet_send.c.
2992
2993         * Fixed the INVITE notify handling.  It took wrong arguments
2994           as invite list and invite delete.  Affected file is
2995           silcd/packet_receive.c.
2996
2997         * Added check for TOPIC_SET notify type that the topic change is
2998           allowed by the client.  Affected file silcd/packet_receive.c.
2999
3000         * Added check for INVITE notify type that inviting is allowed by
3001           the client.  Affected file silcd/packet_receive.c.
3002
3003         * Changed the silc_server_client_on_channel to return the
3004           SilcChannelClientEntry as well.  Moved the function
3005           silc_server_check_cmode_rights to server_util.[ch].
3006           Affected files are silcd/server_util.[ch], silcd/command.c.
3007
3008         * Added function silc_server_check_umode_rights to check whether
3009           changing client's user mode is allowed.  Added check for
3010           UMODE_CHANGE notify type that the umode change is allowed
3011           by the client.  Affected files are silcd/server_util.[ch],
3012           silcd/packet_receive.c and silcd/command.c.
3013
3014 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3015
3016         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
3017           ID length.  It ignored that ID can be IPv6 based as well.
3018           Affected file lib/silccore/silcpacket.h.
3019
3020         * Fixed the silc_id_id2str and silc_id_str2id to take the
3021           IPv6 address offset's into consideration.  Affecte file is
3022           lib/silccore/silcid.c.
3023
3024 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3025
3026         * Fixed the internal Unix scheduler functions to check for
3027           NULL context they may receive.  The affected file is
3028           lib/silcutil/unix/silcunixschedule.c.
3029
3030 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
3031
3032         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
3033           can specify different directory with --home command line
3034           parameter. Affected files irssi/src/silc/core/client_ops.c,
3035           clientutil.c
3036
3037         * SILC-specific commands aren't now executed if the active server
3038           isn't of SILC-type, so there won't be problems with having
3039           IRC and SILC protocol support in same client. Affected files
3040           irssi/src/silc/core/silc-channels.c, silc-servers.c,
3041           silc-commands.h
3042
3043 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3044
3045         * Improved the signal support in SILC Schedule.  Added new
3046           function silc_schedule_signal_call which is used by application
3047           to mark a signal to be called.  It is now safe to perform
3048           any kind of tasks in signal callbacks since it is guaranteed
3049           that the application specified signal callback is called
3050           after the signal is over.  Affected files are
3051           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
3052
3053 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3054
3055         * Added `name' field to SilcChannelPrivateKey to represent
3056           application given name for the key.  Moved also the context from
3057           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
3058           Added the `name' argument also to the function
3059           silc_client_add_channel_private_key.
3060
3061           Added function silc_client_current_channel_private_key to set the
3062           current channel private key in use.
3063
3064           Added "change" command to KEY command which can be used to change
3065           the current channel private key.  Bound the command also to
3066           alt+K (Alt+Shift+k).
3067
3068           Also affected files lib/silcclient/client_channel.c,
3069           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
3070
3071 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3072
3073         * Added silc_rng_get_byte_fast function in to the
3074           lib/silccrypt/silcrng.[ch].
3075
3076         * Changed the interface of silc_packet_assemble and the
3077           silc_packet_send_prepare.  If silc_packet_assmble is now
3078           called the application does not call silc_packet_send_prepare
3079           because the library will call it automatically.  These
3080           interfaces now also return a reference to the outgoing buffer
3081           which includes the assembled packet, which the application can
3082           use to encrypt the packet.
3083
3084           Affected files are lib/silccore/silcpacket.[ch],
3085           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
3086           silcd/packet_send.c, server_backup.c and packet_receive.c.
3087
3088         * Fixed a packet sending bug on very high load, where outgoing
3089           packet queue wasn't handled correctly and packets got corrupted.
3090           Affected files are lib/silcutil/*/silc*sockconn.c,
3091           lib/silcclient/client.c and silcd/server.c.
3092
3093 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3094
3095         * Added macro SILC_PACKET_DATALEN which can be used during
3096           packet assembling to check whether the data to be added to
3097           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
3098           len is truncated until it fits it.
3099
3100           Added checks for maximum length of channel message payload and
3101           private message payload also.
3102
3103           Added checks for maximum packet length in server and in
3104           client library.
3105
3106           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
3107           lib/silcclient/client.c, lib/silccore/silcchannel.c and
3108           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
3109           lib/silcclient/client_prvmsg.c.
3110
3111 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3112
3113         * Added silc_server_packet_queue_purge call to the
3114           silc_server_disconnect_remote to assure that all data in the
3115           queue before disconnecting is sent to the network.  Affected
3116           file silcd/server.c.
3117
3118 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3119
3120         * Added the deleting of server's own ID cache entry to the
3121           silc_server_free function.  Free also everything else that
3122           has been allocated in silc_server_init.  The affected file
3123           is silcd/server.c.
3124
3125 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3126
3127         * Added functions silc_parse_version_string, silc_version_to_num,
3128           and silc_ske_parse_version to parse SILC protocol style version
3129           strings.  Affected files lib/silcutil/silcutil.[ch] and
3130           lib/silcske/silcske.[ch].
3131
3132         * Added new configuration params: version_protocol, version_software
3133           and version_software_vendor to specify what version the remote
3134           host must at least be to be able to connect to server.  The vendor
3135           string can be regex matched too.  Added new function
3136           silc_server_connection_allowed to check maximum number of allowed
3137           connections, and allowed versions for incoming connections.
3138           Affected files are silcd/server.c, server_util.[ch] and
3139           serverconfig.[ch].
3140
3141 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3142
3143         * Added preliminary support for signals in scheduler.  The
3144           signals we care about are now blocked always when the scheduler
3145           is locked.  This way we can synchronise the use of signal with
3146           scheduler.  It is guaranteed that when signal occurs the scheduler
3147           is not locked, and thus new tasks can be safely added to the
3148           scheduler.
3149
3150           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
3151           to silc_schedule_internal_init and silc_schedule_internal_uninit.
3152           Added new platform specific routines
3153           silc_schedule_internal_signals_[un]block and
3154           silc_schedule_internal_signal_[un]register.
3155
3156           Added new functions to SILC Schedule API:
3157           silc_schedule_signal_[un]register.  Each signal that application
3158           is going to use should be registered to the scheduler.
3159
3160           Affected files are lib/silcutil/silcschedule.[ch],
3161           lib/silcutil/*/silc*schedule.c.
3162
3163 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3164
3165         * Check for unauthenticated client and server in the
3166           silc_server_new_client and silc_server_new_server functions.
3167           Affected file silcd/packet_receive.c.
3168
3169         * Added function silc_string_is_ascii to check whether given
3170           string is 7-bit ASCII string.  Affected files are
3171           lib/silcutil/silcutil.[ch].
3172
3173         * Added function silc_id_is_valid_server_id into the
3174           silcd/serverid.c and added checking for valid Server ID's in
3175           silc_server_new_server.  The Server ID must always be based
3176           on the server's public IP address.
3177
3178         * Added logging of DISCONNECT packet message in the server.
3179           Affected file silcd/server.c.
3180
3181 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3182
3183         * Changed all library interfaces that use Global RNG to also
3184           accept SilcRng as argument.  Affected files are
3185           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
3186           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
3187           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
3188           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
3189           lib/silccrypt/rsa.c.
3190
3191         * Added function silc_pkcs_generate_key to the
3192           lib/silccrypt/silcpkcs.[ch] for applications so that they
3193           don't need to do pkcs->pkcs->init calls anymore.
3194
3195         * Remove SilcSocketConnection from the SFTP API since it really
3196           wasn't needed there.  The application has the information
3197           saved in its contexts anyway and the SFTP layer doesn't need
3198           know about it.  Affected files lib/silcsft/silcsftp.h and
3199           lib/silcsftp/sftp_[server/client].c.
3200
3201         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
3202           The SilcSimContext is not SilcSim.
3203
3204         * Fixed possible buffer overflows in silc_id_render in the
3205           lib/silcutil/silcutil.c.
3206
3207         * On EPOC the global crypto module lists are not used at all
3208           in the crypto library.  Added support for using the constant
3209           algorithm list on EPOC.  Affected files are
3210           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
3211           silcpkcs.c.
3212
3213         * Fixed the handling of third parameter of KICKED notify, since
3214           it was mistakenly updated to SILC Protocol 1.0 even though it
3215           is to be included in 1.1.  Since it is not in 1.0 it is not
3216           mandatory, and this fix now handles it only if it is provided,
3217           and it is not error if it is not provided.  Affected file
3218           lib/silcclient/client_notify.c.
3219
3220 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3221
3222         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
3223           client.  Affected file irssi/src/silc/core/client_ops.c.
3224
3225         * Merged with Irssi 0.8.4 from irssi.org CVS.
3226
3227 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3228
3229         * Check for valid socket connection in client entries before
3230           sending any messages.  Fixes a crash, but doesn't fix some
3231           other underlaying bug that is lurking there.  Affected
3232           file silcd/packet_send.c.
3233
3234 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
3235
3236         * $usermode, $cumode and $cumode_space expandos shouldn't do
3237           anything with non-SILC server records. Affected file
3238           irssi/src/silc/core/silc-expandos.c
3239
3240 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3241
3242         * Fixed the silc_net_check_[host/local]_by_sock to support
3243           IPv6 bound sockets as well.  Now they can return IPv6 addresses
3244           as well.  Affected file lib/silcutil/silcnet.c.
3245
3246         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
3247           Affected lib/silcutil/unix/silcunixnet.c.
3248
3249         * Fixed ID rendering (at least on some platforms, not NetBSD)
3250           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
3251
3252 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3253
3254         * Added silc_hash_public_key and silc_hash_public_key_compare
3255           functions to be used with SilcHashTable.  They can be used to
3256           hash public keys and compare public keys in hash table.  Affected
3257           file lib/silcutil/silcutil.[ch].
3258
3259         * Added support for specifying multiple public keys for Client
3260           connection section in server configuration file.  This makes it
3261           possible to accept multiple public keys from same host, or to
3262           make a section that accepts any incoming host, and have the
3263           accepted public keys listed in the section.
3264
3265           Added functions silc_sever_[find/get]_public_key,  added the
3266           support for this actually to all connection sections but only
3267           the Client section is currently allowed to specify multiple
3268           public keys.
3269
3270           Affected files are silcd/server.c, server_internal.h,
3271           command.c, protocol.c, server_util.[ch], packet_receive.c.
3272
3273 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3274
3275         * Merged Irssi 0.8.2 from irssi.org CVS.
3276
3277 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
3278
3279         * If silc_debug is TRUE, also output standard logging messages
3280           to stderr with the debug output.
3281
3282           Made silc_log_reset_all() flushing all channels before returning.
3283           Also fixed some documentation typos.
3284
3285           Affected files are lib/silcutil/silclog.[ch].
3286
3287 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3288
3289         * Fixed the server to check correctly the amount of connections
3290           from single host, by checking also the type of the connection.
3291           Fixed also the comparison of number of connections and number
3292           of allowed connections.  Affected files are silcd/server.c,
3293           server_util.[ch].
3294
3295 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3296
3297         * Fixed the USERS command reply to save the user's mode on the
3298           channel as well.  Fixed JOIN command reply to check whether a
3299           client is on channel already and not join it twice.  Affected
3300           file lib/silcclient/command_reply.c.
3301
3302         * Added new file silc-expandos.c into irssi/silc/core/ to return
3303           various stuff for various signal for the statusbar etc. updating.
3304           Now Irssi SILC client prints channel user modes etc. on the
3305           statusbar.
3306
3307         * The user mode (like server/router operator changes) is now shown
3308           on the Irssi SILC client's statusbar.  The affected files are
3309           irssi/src/silc/core/client_ops.c, silc-expandos.c.
3310
3311 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3312
3313         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
3314           to SILC_SCHEDULE_[UN]LOCK macros.
3315
3316         * Added more error printing to logs in server code.  Affected
3317           files silcd/server.c and silcd/protocol.c.
3318
3319         * Fixed -S option parsing in Irssi SILC Client.  Affected file
3320           irssi/src/silc/core/silc-core.c.
3321
3322         * Added silc_buffer_alloc_size function.  Affected file is
3323           lib/silcutil/silcbuffer.h.
3324
3325 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3326
3327         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
3328           constants.  Affected files in
3329           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
3330           silccipher.[ch].
3331
3332         * Changed the internal SFTP Memory FS table to const.  Affected
3333           file lib/silcsftp/sftp_fs_memory.c.
3334
3335 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3336
3337         * Fixed the buffer formatting and unformatting routines to
3338           check the size of 64 bits types with sizeof().  Affected
3339           file is lib/silcutil/silcbuffmt.c.
3340
3341 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3342
3343         * Removed 0.6.x backwards support.
3344
3345 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3346
3347         * Changed all integer type names:
3348           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
3349           to avoid collisions with other libraries using same type names
3350           as we did.
3351
3352 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3353
3354         * Added `prefer_ipv6' argument to the functions
3355           silc_net_gethostbyname[_async].  If it is TRUE it will return
3356           IPv6 address over IPv4.  If FALSE IPv4 address is returned
3357           even if IPv6 address was found.  Affected files
3358           lib/silcutil/silcnet.[ch].
3359
3360         * Added support silc_net_create_connection[_async] to fallback
3361           to IPv4 address if IPv6 address could not be used (like if
3362           it doesn't work on a specific system).  Affected file in
3363           lib/silcutil/unix/silcunixnet.c.
3364
3365 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3366
3367         * Added silc_schedule_reinit function to do the enlarging
3368           of the max tasks handling capabilities of the scheduler.
3369           Affected files lib/silcutil/silcschedule.[ch].
3370
3371 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3372
3373         * Added automatic extern "C" { ... } for C++ compilers so the
3374           application does not need to define them.  Affected file
3375           includes/silcincludes.h.
3376
3377         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
3378           old name went against naming convention.  Applications now
3379           include "silcclient.h" instead of "clientlibincludes.h".
3380           Removed includes/clientlibincludes.h, it is redundant now.
3381
3382         * Renamed includes/version.h to silcversion.h.
3383
3384         * Added really preliminary support for OS/2 into the util
3385           library.  Only thread & mutex API is implemented, others
3386           are still to be implemented.  Created the lib/silcutil/os2/
3387           directory.  Created also file includes/silcos2.h.
3388
3389 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3390
3391         * Added preliminary BeOS support into the util library.
3392           Created lib/silcutil/beos/, and implemented all the needed
3393           functions to support SILC on BeOS.  Created also file
3394           includes/silcbeos.h.
3395
3396 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
3397
3398         * Added proper initializations to silc's irssi code, so it's
3399           now possible to load it as module.  Affected files
3400           irssi/src/silc/core/silc-core.c,
3401           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
3402
3403 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3404
3405         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
3406           the SILC tree.
3407
3408         * Fixed the silcdoc document generator to correct generate
3409           docs from all kinds of filenames.  Affected files are
3410           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
3411
3412         * ROBOdoc documented lib/silcutil/silcmemory.h.
3413           Added also new function silc_memdup.
3414
3415         * Removed lib/silcutil/silcbufutil.h and moved those routines
3416           to the lib/silcutil/silcbuffer.h.
3417
3418 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3419
3420         * Added `user_count' to the SilcChannelEntry which now tells the
3421           number of users on the channel.  The user count is now saved
3422           in normal server of global channels as well.  Affected files
3423           silcd/server.c, idlist.h, packet_receive.c and command.c.
3424
3425         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
3426           include file utility functions.
3427
3428         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
3429           instead of calling directly OS routines.
3430
3431         * Fixed NICK change printing in Irssi SILC Client. Fixed
3432           KICKED notify printing in Irssi SILC Client.  Affected file
3433           irssi/src/silc/core/client_ops.c.
3434
3435         * Fixed a NICK change bug in client library, to not recreate the
3436           client_entry->channels hash table everytime nick is changed.
3437           Affected file lib/silcclient/client.c.
3438
3439 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3440
3441         * ROBOdoc documented the lib/silcske/silcske.h, and improved
3442           the SKE interface a bit.
3443
3444         * Fixed padding problem in PKCS#1. The padding was not actually
3445           random since the random number generator was used incorrectly.
3446           This security bug affects only when encrypting with PKCS#1, and
3447           it is not currently used at all in SILC. SILC only use signing
3448           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
3449
3450 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3451
3452         * Rewrote the notify handling in Irssi SILC client to not call
3453           the events as signals.  Fixes problems with Perl support.
3454           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
3455
3456         * Send the auto-nicking NICK command in client library with
3457           little timeout after connecting.  The affected file is
3458           lib/silcclient/client.c.
3459
3460         * Added following new config file settings:
3461           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
3462           key_exchange_timeout, conn_auth_timeout, connections_max,
3463           links_max.
3464
3465           Implemented all the new config settings handling in the server.
3466
3467           Optimized the use of SKE Mutual flag usage.  Use it only
3468           if connection authentication protocol is not based in public
3469           key authentication.
3470
3471           Renamed all SilcServerConfigSection* to SilcServerConfig*
3472           to have a bit shorter names.
3473
3474           Affected files silcd/serverconfig.[ch], server.[ch], and
3475           protocol.[ch].
3476
3477 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
3478
3479         * Cleaned up the listening sockets code, preparing for the rehash
3480           support.  Affected file is silcd/server.c.
3481
3482         * Fixed some output messages.  Affected files are silcd/silcd.c,
3483           and silcd/server.c.
3484
3485 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3486
3487         * Create lib/doc/silcrng_intro.html document as introduction
3488           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
3489
3490 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
3491
3492         * Fixes to the silcd config template.  Affected file is
3493           doc/example_silcd.conf.in.
3494
3495         * Removed type casts from silc_calloc(), conforming to the
3496           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
3497
3498         * Removed param_name member from client, server, and router
3499           section structs, now identifying the param directly.
3500
3501           Added CONFIG_FREE_AUTH macro in config file parsing.
3502
3503           Affected files are silcd/serverconfig.[ch].
3504
3505 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
3506
3507         * Fixed command line parameter handling. All SILC initialization
3508           is now done in silc_core_init() which also fixes autoconnecting
3509           to servers.
3510
3511           Affected files irssi/src/silc/core/silc-core.c,
3512           irssi/src/fe-text/silc.c.
3513
3514 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3515
3516         * Added new configuration options and blocks:
3517           keepalive_secs, reconnect_count, reconnect_interval,
3518           reconnect_interval_max, reconnect_keep_trying and
3519           require_reverser_lookup.  Added ConnectionParam block, and
3520           implemented the connection parameters when connecting as
3521           initiator and when accepting connections as responder.
3522
3523           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
3524           whether given configuration value has been given already.
3525
3526           Affected files silcd/serverconfig.[c], server.[c].
3527
3528         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
3529           algorithm parts and created new file silcalgs.conf, that
3530           is now included from the example_silcd.conf.in.
3531
3532         * Optimized the silc_server_connect_to_router_second to take
3533           the connection configuration object from the SilcServerConnection
3534           object instead of finding it during the connecting phase.
3535           Added the configuration object to SilcServerConnection struct.
3536           Affected files silcd/server_internal.h, server.c.
3537
3538 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3539
3540         * Add the client on channel after it was resolved at the
3541           channel message receiving, and it was not already on the
3542           channel.  Affected file lib/silcclient/client_channel.c.
3543
3544 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3545
3546         * Fixed the public key authentication to allocate always the
3547           destination signature buffer instead of using static buffer.
3548           Affected file silcd/protocol.c.
3549
3550 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3551
3552         * Unified the serverconfig.[ch]'s helper function interface.
3553           Affected file silcd/serverconfig.[ch].
3554
3555         * Removed doc/example_silc.conf.in since it is redundant.
3556           The make install will now install irssi/silc.conf file.
3557
3558         * Added new Passphrase and Publickey authentication methods to
3559           config file, allowing both public key and passphrase based
3560           authentication to be set at the same time.
3561
3562           Added `prefer_passphrase_auth' setting in config file which
3563           can be used to set to prefer passwd auth if both passwd and
3564           public key is set.  If not set, public key is preferred.
3565           This has effect only when being initiator (responder will try
3566           both anyway).
3567
3568           Added support for authentication with passphrase and public key
3569           at the same time.  The passphrase is tried first always since
3570           it is faster to check.
3571
3572           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
3573
3574 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
3575
3576         * Merged the new SILC Config library, with the server parsing
3577           support.  Read the header file silcconfig.h or the toolkit
3578           documentation for the news.  Affected files are
3579           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
3580           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
3581           silcd/protocol.c silcd/server.c silcd/server_backup.c
3582           silcd/serverconfig.[ch] silcd/silcd.c.
3583
3584         * Fixed some silclog documentation.  Affected file is
3585           lib/silcutil/silclog.h.
3586
3587 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3588
3589         * The silc_cipher_register, silc_hash_register and
3590           silc_hmac_register now checks if the object to be registered
3591           is registered already.  Affected files are
3592           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
3593
3594 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3595
3596         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
3597
3598 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3599
3600         * Allow zero length channel messages inside the Channel Message
3601           Payload.  Affected file lib/silccore/silcchannel.c.
3602
3603         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
3604           as header filenames.
3605
3606         * Removed lib/silcclient/README and created HTML file
3607           lib/silcclient/silcclient_using.html, which is now included
3608           as part of Toolkit documentation.
3609
3610 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3611
3612         * Fixed CUMODE_CHANGE notify handling to change the mode of
3613           correct client.  Affected file lib/silcclient/client_notify.c.
3614
3615         * Make silc_rng_alloc fail if it cannot allocate the sha1
3616           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
3617
3618 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3619
3620         * Fixed the file transfer's key agreement payload to include
3621           zero port also if the hostname is NULL because it could not
3622           be bound.
3623
3624           Call file transfer monitor callback now also if error occurs
3625           during key agreement protocol.
3626
3627           Changed the silc_client_file_send interface to return the
3628           SilcClientFileError instead of session id.  The session ID
3629           is returned into pointer provided as argument.
3630
3631           Check that the file exists locally before sending the
3632           file transfer request at all.
3633
3634           Affected file lib/silcclient/client_ftp.c, silcapi.h.
3635
3636         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
3637           error than can occur while key agreement protocol.  Affected
3638           file lib/silcclient/silcapi.h.
3639
3640         * Fixed the event_mode CMODE handler to not crash when mode
3641           is changed and +k mode is set in the channel.  Affected file
3642           irssi/src/silc/core/silc-channels.c.
3643
3644         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
3645           SILC_LOG_WARNING to give out Warning and not Error.  Affected
3646           file lib/silcutil/silclog.c.
3647
3648         * Fixed the channel message payload decryption in the function
3649           silc_channel_message_payload_decrypt to not modify the original
3650           buffer before it is verified that the message decrypted
3651           correctly.  Otherwise, next time it is called with correct
3652           channel key it won't encrypt since the payload is corrupted.
3653           Affected file lib/silccore/silcchannel.c.
3654
3655 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3656
3657         * Do not constantly resize the window.  A fix patch by cras.
3658           Affected file irssi/src/fe-text/screen.c.
3659
3660 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3661
3662         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
3663           Affected file lib/silcutil/silcnet.c.
3664
3665 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3666
3667         * Fixed a bug in hash table internal routine for traversing
3668           the table with foreach callback.  The current entry may
3669           become invalid in the callback but it was referenced after
3670           the callback returned.
3671
3672           Do not allow auto rehashing of hash table during the
3673           silc_hash_table_foreach operation, for same reasons as it is
3674           not allowed for SilcHashTableList.  Affected files are
3675           lib/silcutil/silchashtable.[ch].
3676
3677 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3678
3679         * Defined DLLAPI into silcincludes.h and silcwin32.h for
3680           Win32 DLL.  extern's in header files are now declared with
3681           DLLAPI.
3682
3683 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3684
3685         * Fixed private message handling.  It used some old code that
3686           caused the client to crash.  Affecte file is
3687           lib/silcclient/client_prvmsg.c.
3688
3689 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3690
3691         * Added function silc_client_add_channel,
3692           silc_client_replace_channel_id, and removed functions
3693           silc_client_new_channel_id and silc_idlist_get_channel_by_id
3694           from client library.
3695
3696         * Added cross reference of the joined channels to the
3697           SilcClientEntry, and changed the SilcChannelEntry's
3698           users list to SilcHashTable.  The affected files are
3699           lib/silcclient/idlist.[ch].
3700
3701         * Fixed a bug in hash table tarversing.  While the hash table
3702           is traversed with SilcHashTableList the table must not be
3703           rehashed.  It is now guaranteed that auto rehashable tables
3704           are not rehashed while tarversing the list.  Also defined that
3705           silc_hash_table_rehash must not be called while tarversing
3706           the table.  Added function silc_hash_table_list_reset that must
3707           be called after the tarversing is over.  The affected files are
3708           lib/silcutil/silchashtable.[ch].
3709
3710         * Changed all hash table traversing to call the new
3711           silc_hash_table_list_reset in server and in client library.
3712
3713         * Added function silc_client_on_channel to return the
3714           SilcChannelUser entry if the specified client entry is joined
3715           on the specified channel.  This is exported to application as
3716           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
3717
3718 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3719
3720         * Fixed founder regaining problem with JOIN command on normal
3721           server.  The notify for mode change must be sent always and
3722           not only if !cmd->pending.  Affected file silcd/command.c.
3723
3724         * Fixed the WHOWAS command's reply sending to support the
3725           lists correctly.  Affected file silcd/command.c.
3726
3727 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3728
3729         * When sending JOIN command to router for processing the
3730           sender's old command identifier was not saved back to the
3731           sender's command context, fixed now.  The affected file is
3732           silcd/command.c.
3733
3734         * Create the key in JOIN command of the router did not return
3735           the channel key, added check for this.  Affected file is
3736           silcd/command.c.
3737
3738         * Fixed a channel ID update bug in JOIN command reply.  Do
3739           not directly upgrade the ID but call the function
3740           silc_idlist_replace_channel_id if the ID was changed.
3741           Affected file silcd/command_reply.c.
3742
3743         * Fixed memory leaks from command calling if it would fail.
3744           Affected file silcd/command.c.
3745
3746 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3747
3748         * Applied patches from cras:
3749
3750           Memory leak fixes around libaries, irssi window resize fix,
3751           new silclist.h and silcdlist.h, all extern inline changed to
3752           static inline.
3753
3754         * Removed dotconf from lib/dotconf, not needed anymore.
3755
3756         * Removed TRQ from lib/trq, not needed anymore.
3757
3758         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
3759           with server connections.  Later this will be configurable
3760           in config file after new config file is done.  Affected file
3761           silcd/server.c.
3762
3763 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
3764
3765         * Fixed a crash in server related to channel announcements.
3766           Affected file silcd/server.c.
3767
3768 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3769
3770         * Fixed memory leaks in silc_server_create_new_channel*
3771           functions.  Affected file silcd/server.c.
3772
3773         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
3774           which ID was changed.  This way the router will send the
3775           user list for the channel again, and server won't be in
3776           desync in some rare circumstances.  Affected file is
3777           silcd/packet_receive.c.
3778
3779 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3780
3781         * Check for NULL socket pointer in the function
3782           silc_server_packet_send_to_channel_real.  Affected file
3783           silcd/packet_send.c.
3784
3785         * Fixed the BAN notify handling to correctly remove ban
3786           list.  Affected file silcd/packet_receive.c.
3787
3788 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3789
3790         * Fixed some header addition to Toolkit distribution in
3791           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
3792
3793         * Added lib/silcclient/client_ops_example.h as an template
3794           file for application programmers to quickly start using
3795           the SilcClientOperation functions in their application.
3796           Updated the lib/silcclient/README as well to tell about this
3797           nice file made available.
3798
3799 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3800
3801         * Call silc_server_remove_from_channels when removing client
3802           entry when NO_SUCH_CLIENT_ID was received.  Affected file
3803           is silcd/command_reply.c.
3804
3805 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3806
3807         * Added server & router operator statistics updating.  Affected
3808           file silcd/packet_receive.c and silcd/command.c.
3809
3810         * Fixed the SERVER_SIGNOFF notify handling on normal server
3811           not to save the history information for clients.  Same was
3812           fixed earlier in remove_clients_by_server function, but not
3813           here.  Affected file silcd/packet_receive.c.
3814
3815         * Raised the default connection-retry count from 4 to 7 in
3816           server.  Affected file silcd/server.h.
3817
3818         * Cancel any possible reconnect timeouts when we start the
3819           key exchange.  Affected file silcd/server.c.
3820
3821         * Do not reconnect on connection failure when SCONNECT was
3822           given.  Affected files silcd/server.[ch].
3823
3824 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3825
3826         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
3827
3828         * Fixed the NICK command to always give the unformatted
3829           nickname to the one giving the NICK command.  If unformatted
3830           nickname is cached already it will be formatted and the
3831           local entry will always get the unformatted nickname.
3832           Affected file lib/silcclient/idlist.c.
3833
3834         * Fixed some double frees from client library commands.
3835           Affected file is lib/silcclient/command.c.
3836
3837         * Fixed CUMODE command in server to assure that no one can
3838           change founder's mode than the founder itself, there was a
3839           little bug.  Affected file silcd/command.c.
3840
3841 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3842
3843         * Removed the SilcClientCommandDestructor from the client
3844           libary, it is not needed anymore.  Affected files are
3845           lib/silcclient/silcapi.h, command[_reply].[ch],
3846           client_notify, idlist.c.
3847
3848         * Fixed GETKEY command to first resolve client, and then
3849           resolve the server only if the client was not found, instead
3850           of resolving both at the same time.  Affected file is
3851           lib/silcclient/command.c.
3852
3853         * Added silc_client_start_key_exchange_cb and lookup the
3854           remote hostname and IP address before starting the key
3855           exchange with server.  The affected file is
3856           lib/silcclient/client.c.
3857
3858         * The server's public key is now saved using the IP address
3859           of the server and not the servername for the filename.
3860           The hostname public key filename is checked as an fall back
3861           method if the IP address based filename is not found.
3862
3863           Fixed the GETKEY command to save the fetched server key
3864           in correct filename.
3865
3866           Print the remote server's hostname now when new key is
3867           received during connection process.  Affected file is
3868           irssi/src/silc/core/client_ops.c.
3869
3870         * Return always our own public key to the client if it asks
3871           for it with GETKEY command.  Affected file silcd/command.c.
3872
3873         * Removed the use_auto_addr variable from default config
3874           file since it was in wrong section.  Affected file is
3875           irssi/src/config.
3876
3877         * Fixed TOPIC_CHANGE notification to not route it when it
3878           was sent using silc_server_send_notify_to_channel function.
3879           Affected file silcd/command.c.
3880
3881         * Fixed silc_server_send_notify_kicked to send the kicker's
3882           Client ID also, it was missing.  Affected files are
3883           silcd/command.c, silcd/packet_send.[ch].
3884
3885 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3886
3887         * Do not save client history information in SERVER_SIGNOFF.
3888           Fixes the bug in normal server that it does not detect
3889           the client becoming valid after the server becomes back
3890           online.  Affected file silcd/server_util.c.
3891
3892         * Added `sock_error' field  into the SilcSocketConnection
3893           context.  When error occurs during socket operation (read
3894           or write) the error is saved.  Added also new function
3895           silc_socket_get_error to return human readable socket error
3896           message.  Affected files are lib/silcutil/silcsockconn.[ch],
3897           lib/silcutil/unix/silcunixsockconn.c, and
3898           lib/silcutil/win32/silcwin32sockconn.c.
3899
3900         * The server now prints the socket error message in the
3901           signoff for client.  Affected file silcd/server.c.
3902
3903         * Fixed the `created' channel information sending from router
3904           to server in JOIN command.  Checks now whether the channel
3905           really was created or not and set it according that.
3906
3907           Fixed the JOIN command to use the client entry's current
3908           ID during the joining procedure instead of the one it sent
3909           in the command (it is checked though), since it can change
3910           between the packet processing and command processing, and
3911           would just case unnecessary pain in the client end.  Affected
3912           file silcd/command.c.
3913
3914         * Fixed a channel key payload sending to use correct channel
3915           ID when the server was forced to change the channel's ID by
3916           router.  Router sent the key payload with the old Channel ID.
3917           Affected file silcd/packet_receive.c.
3918
3919 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3920
3921         * Call silc_server_save_channel_key only if the key payload
3922           was provided in the JOIN command's command reply.  Affected
3923           file silcd/command_reply.c.
3924
3925 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3926
3927         * Fixed silc_mp_sizeinbase to return the value correctly with
3928           MPI.  Affected file lib/silcmath/mp_mpi.c.
3929
3930         * Fixed the stop_server signal to correctly stop the scheduler
3931           and gracefully stop the server when SIGTERM or SIGINT signals
3932           are received.  Affected file silcd/silcd.c.
3933
3934 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
3935
3936         * Simple handling of TERM and HUP signals. Also added some log
3937           flushing call around.  Affected file is
3938           silcd/silcd.c.
3939
3940         * Fixed small bugs in silclog.c. Now buffering output will take
3941           effect after 10 seconds since startup: This will ensure that
3942           no important startup messages are lost. Also output redirection
3943           will preserve original format ([Date] [Type] message).
3944           Affected file is lib/silcutil/silclog.c.
3945
3946         * Added two options to the config file, in the logging section:
3947           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
3948           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
3949
3950 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3951
3952         * Do not print the warning about log files not being initialized
3953           more than once to avoid excess logging.  Affected file is
3954           lib/silcutil/silclog.c.
3955
3956         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
3957           the SIM copying in make install in Makefile.am.pre.
3958
3959 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
3960
3961         * Rewritten silclog APIs. Globally interesting changes follows:
3962           silc_log_set_files() changed to silc_log_set_file().
3963           silc_log_set_callbacks() changed to silc_log_set_callback().
3964           ROBOdoc documented silclog header file.
3965           SilcLogCb now returns bool to wether inihibit the default
3966           handler or not (to keep the old behaviour return always TRUE).
3967           The new APIs should also fix the problem of the
3968           silcd_error.log file that was written in the current directory.
3969
3970           New features:
3971           Log files streams will remain opened after silc_log_set_file()
3972           call, means less CPU usage notably on high traffic servers.
3973           File streams are now full buffered, and flushed to the disk
3974           every 5 minutes, lesses HD activity and CPU usage.
3975           Messages can be redirected, allowing admins to configure
3976           one single logfile for all server messages.
3977           the silc_log_quick global variable to activate fast-logging.
3978           Affected files lib/silcutil/silclog.[ch]
3979
3980         * Changed some code to conform new silclog APIs. Affected
3981           files are doc/example_silcd.conf.in, silcd/server.c
3982           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
3983           silcd/silcd.c.
3984
3985         * Fixed a memory leak that could occur in some situations.
3986           Affected file silcd/serverconfig.c.
3987
3988 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
3989
3990         * Added the silc_client_del_client to remove the client from
3991           all channels as well.  Affected file lib/silcclient/idlist.c.
3992
3993         * Fixed the client library to correctly remove the client
3994           from all channels when the client entry is being destroyed.
3995           Affected file lib/silcclient/client_notify.c, command.c.
3996
3997         * Added auto-nicking support to the client library.  If the
3998           applicatio now sets client->nickname it will be sent to the
3999           server after connecting by the library.  This way for example
4000           SILCNICK (or IRCNICK) environment variables will have effect
4001           and always change the nickname automatically to whatever
4002           it is wanted.  Affected file lib/silcclient/client.[ch].
4003
4004         * Renamed silc_server_command_bad_chars to the
4005           silc_server_name_bad_chars and moved it to the
4006           silcd/server_util.[ch].  Added also new function
4007           silc_server_name_modify_bad to return nickname that
4008           includes bad characters as new nickname without those
4009           bad characters.  This check and modify is now used in
4010           silc_server_new_client when the username is initially set
4011           as nickname, so it must be checked to be valid nickname.
4012           Affected file silcd/packet_receive.c.
4013
4014         * The nickname length is now taken from the packet for real
4015           and not trusted to strlen() since it clearly can return
4016           wrong length for nickname including bad characters.  This
4017           also applies to channel names.  Affected file silcd/command.c.
4018
4019         * Removed the lib/silcsilm/modules directory.  Modules are now
4020           compiled into the lib/silcsim.  Fixed the copying of the
4021           modules to follow symbolic links in Makefile.am.pre.
4022
4023 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4024
4025         * Fixed silc_string_regexify list creation.  Fixes bugs with
4026           BAN and INVITE commands in server.  The affected file is
4027           lib/silcutil/unix/silcunixutil.c.
4028
4029 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4030
4031         * Removed the command destructor entirely from the server's
4032           command and command reply routines.  It is not needed, and
4033           its usage was buggy and caused crashes.  Affected files are
4034           silcd/command[_reply].[ch].
4035
4036 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4037
4038         * Cancel protocol and NULL sock->protocol if timeout
4039           occurred during protocol.  Affected file silcd/server.c.
4040
4041         * Cancel protocol timeouts always before calling the final
4042           callback, to assure that after final callback is called
4043           no other state will be called for the protocol anymore.
4044           Affected file silcd/protocol.c.
4045
4046         * Print error log if incoming connection configuration could
4047           not be found.  Affected file silcd/server.c.
4048
4049         * Fixed JOIN command to correctly save the founder mode
4050           to the client on normal SILC server, when the channel
4051           was created by the router.  Affected file silcd/command.c.
4052
4053         * Fixed LIST command (hopefully) to send correct reply
4054           packets.  Affected file silcd/command.c.
4055
4056 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
4057
4058         * The silc_packet_receive_process now returns FALSE if the
4059           read data was invalid packet, and TRUE if it was ok.
4060
4061           The server now checks that if unauthenticated connection
4062           sends data and its processing fails the server will close
4063           the connection since it could be a malicious flooder.
4064
4065           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
4066
4067 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4068
4069         * Make sure the warning about error opening a log file is
4070           printed only once and not everytime it fails (produces
4071           too much useless log).  Affected file lib/silcutil/silclog.c.
4072
4073 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
4074
4075         * Made the silc_server_daemonise() function more readable.
4076           Affected file silcd/server.c.
4077
4078         * Pid file is now optional, the user may comment it out from
4079           the config file. Removed define SILC_SERVER_PID_FILE, we
4080           don't need a default any longer.  Affected file
4081           configure.in.pre, lib/Makefile.am.pre.
4082
4083         * Make some use of the pid file. The server now dies at startup
4084           if it detects a valid pid file on his path. The server would
4085           die anyway in this circumstance, because of the bind() failure.
4086           Affected file silcd/silcd.c.
4087
4088         * No longer compiling lib/dotconf.
4089
4090 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4091
4092         * Fixed JOIN command parsing not to crash.  Affected file
4093           lib/silcclient/command.c.
4094
4095         * Fied the NICK_CHANGE notify to add the new client entry
4096           even it is resolved.  This removes an <[unknown]> nick
4097           thingy bug in the client.  Affected file is
4098           lib/silcclient/client_notify.c.
4099
4100         * Do not try to allocate 0 bytes (efence does not like it)
4101           in lib/silccore/silccomand.c when encoding payload.
4102
4103         * Do not take IRCNICK as nickname in Irssi SILC client since
4104           it is not possible to set nickname before hand connecting
4105           the server (TODO has an entry about adding auto-nicking
4106           support).
4107
4108         * Changed the silc_server_command_pending to check whether
4109           there already exists an pending entry with the specified
4110           command, command identifier and pending callback.  This is
4111           to fix IDENTIFY and WHOIS related crashes that may register
4112           multiple pending commands with same identifier.  Affected
4113           file silcd/command.c.
4114
4115         * Fixed the server to reconnect to the router even if it
4116           was already reconnecting and EOF was received.  This to
4117           fix a possibility that the server wouldn't ever try to
4118           auto-reconnect to the router.  Affected file silcd/server.c.
4119
4120 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4121
4122         * Fixed the server's password authentication to use the
4123           length of the locally saved password, and not the one
4124           sent in the packet.  Affected file silcd/protocol.c.
4125
4126         * Fixed same password authentication problem in the
4127           Authentication Payload handling routines in
4128           lib/silccore/silcauth.c.
4129
4130         * Yet another password authentication problem fixed with
4131           channel password handling in silcd/command.c.
4132
4133 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4134
4135         * If first character of string in silc_parse_userfqdn is '@'
4136           then do not parse it.  Affected file is
4137           lib/silcutil/silcutil.c.
4138
4139 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4140
4141         * Fixed minor bug in IDENTIFY command reply sending, which
4142           caused various weird problems during JOIN when it was
4143           resolving names for users.  Affected file silcd/command.c.
4144
4145 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4146
4147         * Fixed the IDENTIFY command reply sending to chech better valid
4148           clients.  It was possible to send incomplete list of replies.
4149           Affected file silcd/command.c.
4150
4151 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4152
4153         * Added silc_client_command[s]_[un]register functions now to
4154           dynamically register the commands in client library.  Removed
4155           the static table of commands.  This allows the client library
4156           to call commands without causing the application to know about
4157           what commands library has called.
4158
4159           Removed the INFO command reply kludge to detect when the command
4160           was called by library.  Now library use its own command reply
4161           function for INFO command.
4162
4163           Added function silc_client_command_call to call a command.
4164           Application can use it to call command, not access the structure
4165           directly.
4166
4167           Now all commands that are sent by the client library (not
4168           explicitly sent by application) use own command reply functions.
4169
4170           Affected files around lib/silcclient/ and in
4171           irssi/src/silc/core/.
4172
4173         * Fixed the WHOIS command reply sending to chech better valid
4174           clients.  It was possible to send incomplete list of replies.
4175
4176           Fixed the WHOIS and IDENTIFY to send the request to router
4177           if normal server did not do it and did not find any results.
4178
4179           Affected file silcd/command.c.
4180
4181 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4182
4183         * Moved the internal data from SilcClient context into its
4184           own file, not accesible to application.  Affected files
4185           lib/silcclient/client.h and lib/silcclient/client_internal.h,
4186           and other files in client library.
4187
4188 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4189
4190         * Added doc/examples installation target in Makefile.am.pre.
4191           A patch by salo.
4192
4193 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4194
4195         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
4196           commands the found client entry will be removed from the
4197           cache, after notifying application about the error.  Affected
4198           file lib/silcclient/command_reply.c.
4199
4200         * Changed the /MSG to check for exact nickname user gave, and
4201           not let `nick' match `nick@host' if it is only one found.  Now,
4202           user must type the exact nickname (like nick@host2) even if
4203           there are no more than one same nicks found.  This is to avoid
4204           a possibility of sending nickname to wrong nickname since
4205           `nick' could match `nick@host'.  Affected file is
4206           irssi/src/core/silc-servers.c.
4207
4208 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4209
4210         * Do not print "you are now server operator" or similar when
4211           giving /away command.  Affected files are
4212           irssi/src/silc/core/client_ops.c, silc-servers.h.
4213
4214         * Made the silc_server_command_pending_error_check to send
4215           the same command reply payload it received back to the
4216           original sender of the command.  This way all arguments
4217           that was received by the server will be received by the
4218           client too.  Affected file silcd/command.c.
4219
4220         * Added the silc_idcache_add to return the created cache entry
4221           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
4222
4223         * Add global clients to expire if they are not on any channel.
4224           This is because normal server will never know if they signoff
4225           if they are not on any channel.  The cache expiry will take
4226           case of these entries.  This is done by normal servers only.
4227           The affected files are silcd/command_reply.c,
4228           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
4229
4230         * If server receives invalid ID notification for WHOIS or
4231           IDENTIFY and the ID exists in the lists, it is removed.
4232           Affected file silcd/command_reply.c.
4233
4234         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
4235           in client then client entry that it matches is searched and
4236           the nickname is printed on the screen for user.  Affected
4237           file irssi/src/silc/core/client_ops.c.
4238
4239 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4240
4241         * Use cache entry expire time in the LIST command reply to
4242           purge old entries from the cache after the LIST command
4243           reply has been received.  This way we don't have non-existent
4244           entries in the cache for too long.  Affected file is
4245           silcd/command_reply.c.
4246
4247 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4248
4249         * If we are normal server, and we've not resolved client info
4250           in WHOIS or IDENTIFY from router, and it is global client,
4251           we'll check whether it is on some channel.  If it is not
4252           then we cannot be sure about its validity and will resolve it
4253           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
4254           file silcd/command.c.
4255
4256         * Search channel by name (if possible) rather than by ID
4257           in IDENTIFY command's command reply.  Affected file is
4258           silcd/command_reply.c.
4259
4260 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4261
4262         * Distribute to the channel passphrase in CMODE_CHANGE notify.
4263           Updated specs and implemented it.  Affected file silcd/command.c,
4264           silcd/packet_send.c and silcd/packet_receive.c.
4265
4266         * Implemented the <founder auth> payload handling in the JOIN
4267           command.  If provided all conditions for channel joining
4268           except requirement to provide correct passphrase can be
4269           overrided by the channel founder.  Updated the protocol specs.
4270           Affected file silcd/command.c.
4271
4272           Added support for founder auth in JOIN command in client
4273           library.  Fixed the parsing of the JOIN command now to support
4274           all options as they should be.  The affected file is
4275           lib/silcclient/command.c.
4276
4277         * Optimized the WHOIS and IDENTIFY commands to send the request
4278           to router only if it includes nicknames or other names.  If
4279           they include only IDs then check the local cache first before
4280           routing.  Affected file is silcd/command.c.
4281
4282         * Added channels topic announcements.  Affected file is
4283           silcd/packet_receive.c and silcd/server.c.
4284
4285         * Fixed the silc_server_send_notify_topic_set to really destine
4286           the packet to channel.  Affected file silcd/packet_send.c.
4287
4288         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
4289           library.  Affected file lib/silcclient/client_notify.c.
4290
4291         * Added UMODE announcements.  Affected file silcd/server.c.
4292
4293 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4294
4295         * Memory leak fixes in:
4296
4297           lib/silcutil/silcsockconn.c
4298           lib/silcske/silcske.c
4299           lib/silcske/groups.c
4300           lib/silccrypt/rsa.c
4301           lib/silccrypt/silcpkcs.c
4302           lib/silccore/silccommand.c
4303           lib/silccore/silcidcache.c
4304           silcd/idlist.c
4305           silcd/packet_send.c
4306           silcd/command.c
4307
4308         * ROBOdoc documented the lib/silcske/groups.h file and a
4309           bit changed the interface for better.
4310
4311 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
4312
4313         * Update the client entry context in the ID cache after
4314           nick change.  Affected file lib/silcclient/command.c.
4315           Fixes the CUMODE command when regaining founder privileges,
4316           and a little WHOIS problem.
4317
4318         * Fixed silc_net_gethostbyname to correctly call the
4319           inet_ntop.  Affected file lib/silcutil/silcnet.c.
4320
4321 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
4322
4323         * Added IPv6 support checking to the configure.in.pre, added
4324           also --enable-ipv6 option to override the check.  Affected
4325           file configure.in.pre.
4326
4327         * The silc_thread_create now calls the start function
4328           directly if threads support is not compiled in.  Removes
4329           ugly #ifdef's from generic code.  Affected files are
4330           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
4331
4332         * Added silc_net_gethostby[name/addr]_async to asynchronously
4333           resolve.  Affected files are lib/silcutil/silcnet.[ch].
4334
4335         * Added support for rendering IPv6 based server, client and
4336           channel IDs.  Affected file lib/silcutil/silcutil.c.
4337
4338         * Added support for creating IPv6 based server IDs.  Affected
4339           file is silcd/serverid.c.
4340
4341 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
4342
4343         * Added silc_net_gethostby[addr/name] into the
4344           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
4345           routines.  Added silc_net_is_ip[4/6].  Affected file is
4346           lib/silcutil/unix/silcunixnet.c.  All routines that take
4347           address as argument now supports both IPv4 and IPv6 addresses.
4348
4349 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
4350
4351         * Fixed LIST command reply sending in server.  Affected file
4352           silcd/command.c.
4353
4354         * Server now sends the kicker's client ID in the KICK notify
4355           to the kicked client.  Affected file silcd/command.c.
4356
4357         * The client library now parses the kickers client ID and
4358           UI displays it.  Affected files lib/silcclient/client_notify.c
4359           and irssi/src/silc/core/silc-channels.c, module-formats.c.
4360
4361         * Made all payload parsing function prototypes consistent.
4362           They all take now const unsigned char * and uint32 pair as
4363           the payload data instead of SilcBuffer.  Changes all around
4364           the source tree.  Other unsigned char* -> const unsigned char*
4365           changes around the tree as well.
4366
4367         * Optimized SFTP client and server packet sending not to
4368           allocate new buffer for each packet but to recycle the
4369           first allocated buffer.  Affected files are
4370           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
4371
4372         * Optimized the SFTP client to use SilcList instead of
4373           SilcDList for requests, because it is faster.  Affected file
4374           is lib/silcsftp/sftp_client.c.
4375
4376         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
4377           into lib/silccore/silcid.[ch].
4378
4379           Renamed silcpayload.[ch] into silcargument.[ch].
4380
4381 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
4382
4383         * If client entry is deleted with active key agreement
4384           session, abort the session.
4385
4386           The silc_client_abort_key_agreement now calls the completion
4387           callback with new SILC_KEY_AGREEMENT_ABORTED status.
4388
4389           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
4390           idlist.c.
4391
4392 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4393
4394         * Don't use __restrict in older GCC's.  Affected file is
4395           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
4396
4397         * silc_net_localhost now attempts to reverse lookup the
4398           IP/hostname.  Affected file lib/silcutil/silcnet.c.
4399
4400         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
4401           command.  It can be used to gain founder privileges at
4402           the same time when joining the channel.
4403
4404           Defined that the SILC_NOTIFY_TYPE_KICKED send the
4405           kicker's client ID as well.  Updated protocol specs.
4406
4407           Defined that the server must send SILC_COMMAND_IDENTIFY
4408           command reply with error status to client who sent
4409           private message with invalid client ID.
4410
4411           Updated the protocol specification.
4412
4413         * Added silc_server_send_command_reply to send any
4414           command reply.  Affected file silcd/packet_send.[ch].
4415
4416         * Added silc_id_payload_encode_data to encode ID payload
4417           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
4418
4419         * The server now send IDENTIFY command reply with error
4420           status if client ID in private message is invalid.  Affected
4421           file silcd/packet_receive.c.
4422
4423         * Save the server key file with server's IP address in
4424           the filename instead of hostname.  The affected file is
4425           irssi/src/silc/core/client_ops.c.
4426
4427 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4428
4429         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
4430           A patch by Sunfall.
4431
4432         * Added libtool support for compiling shared objects in
4433           lib/silcsim.  Affected file configure.in.pre and
4434           lib/silcsim/Makefile.am.  Original patch by cras.
4435
4436 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4437
4438         * Pid file configuration, and server's config file fixes
4439           patch by toma.  Updated CREDITS file.
4440
4441 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4442
4443         * Fixed silc_client_channel_message to not try to decrypt
4444           the message twice if it resolved the destination client
4445           information.  This could cause of dropping one channel
4446           message.  Affected file lib/silcclient/client_channel.c.
4447
4448 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4449
4450         * Added silc_client_run_one into lib/silcclient/silcapi.h and
4451           lib/silcclient/client.c. This function is used when the SILC
4452           Client is run under some other scheduler, or event loop or
4453           main loop.  On GUI applications, for example this may be
4454           desired to used to run the client under the GUI application's
4455           main loop.  Typically the GUI application would register an
4456           idle task that calls this function multiple times in a second
4457           to quickly process the SILC specific data.
4458
4459 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
4460
4461         * Fixed silc_server_drop() for dropping the supplementary
4462           groups as well, this could cause a security hole on some
4463           systems.
4464
4465 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4466
4467         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
4468           johnny.
4469
4470         * Write PID file after dropping privileges.  Added -F option
4471           to run server on foreground.  A patch by debolaz.
4472           Affected files silcd/server.c, silcd/silcd.c.
4473
4474         * Fixed MOTD to return the MOTD file server name.  Affected
4475           file silcd/command.c.
4476
4477         * Added INFO command reply handling to the Irssi SILC Client.
4478           Affected file irssi/src/silc/core/client_ops.c.
4479
4480 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4481
4482         * Fixed the silc_idcache_list_* routines to really support
4483           the dynamic list.  Fixes a crash.  Affected file is
4484           lib/silccore/silcidcache.c.
4485
4486         * Fixed the LIST command reply to really call LIST command's
4487           pending callbacks.  Affected file silcd/command_reply.c.
4488
4489 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4490
4491         * Update conn->local_entry->nickname after giving NICK
4492           command.  Affected file lib/silcclient/command.c.
4493
4494 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
4495
4496         * Added the [pid] option to the silcd configuration file
4497
4498           Affected files: serverconfig.[ch] and silcd.c
4499
4500 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4501
4502         * Save fingerprint in WHOIS command reply in server.
4503           Affected file silcd/command_reply.c.
4504
4505         * Fixed NICK commands pending callback registration.
4506           Affected file lib/silcclient/command.c.
4507
4508 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4509
4510         * Use ++server->cmd_ident when sending commands in server,
4511           instead of random number.  Affected file silcd/command.c.
4512
4513         * Fixed GETKEY command reply to call actually GETKEY pending
4514           command callbacks.  Affected file silcd/command_reply.c.
4515
4516         * A bit stricter check for nicknames.  Check for same nickname
4517           in NICK command also.  Affected file silcd/command.c.
4518
4519         * Do not call INFO command everytime client ID changes, only
4520           during first connecting.  Affected file lib/silcclient/client.c.
4521
4522         * Set the new nickname only after successful command reply for
4523           NICK command is returned by server.  Affected file
4524           lib/silcclient/command.c.
4525
4526         * Remove nicknames from nicklist during server_signoff notify.
4527           Should fix /NAMES bit more.  The affected file is
4528           irssi/src/silc/core/silc-channels.c.
4529
4530         * Added `fingerprint' field to the SilcIDListData in the
4531           silcd/idlist.h to hold the fingerprint of the client's
4532           public key.
4533
4534           Send the fingerprint of the client's public key in WHOIS
4535           command reply.
4536
4537           Affected files silcd/command.c, and silcd/idlist.[ch].
4538
4539         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
4540           create fingerprint from given data.
4541
4542         * Show the fingerprint of the client's public key in WHOIS.
4543           Affected files irssi/src/module-formats.[ch] and
4544           irssi/src/silc/core/client_ops.c.
4545
4546         * Format the multiple same nicknames also during JOIN and
4547           NICK_CHANGE notifys.  Affected file is
4548           lib/silcclient/client_notify.c.
4549
4550         * Do not print error on screen for invalid private message
4551           payload since it can come if someone is sending private
4552           messages with wrong key.  Affected file
4553           lib/silccore/silcprivate.c.
4554
4555         * Fixed multiple concurrent /PING crash.  Affected file
4556           lib/silcclient/command.c.
4557
4558         * Changed the wrong ID encoding.  All IP addresses must be
4559           in MSB first order in encoded format.  They were encoded
4560           wrong and was in LSB format.  Affected files are
4561           silcd/serverid.c, lib/silcutil/silcutil.c.
4562
4563         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
4564
4565         * Call the `connect' client operation through the scheduler
4566           in case of error.  Affected file lib/silcclient/client.c.
4567
4568         * Call the `failure' client operation even if the error
4569           occurred locally during a protocol.  Affected file is
4570           lib/silcclient/protocol.c.
4571
4572         * Added support of sending LIST command to router from normal
4573           server.  This way normal server can get list of all channels
4574           in the network too.  Fixed the channel list sending in the
4575           server too.  Affected files are silcd/command.c, and
4576           silcd/command_reply.[ch].
4577
4578         * Added silc_server_update_channels_by_server and
4579           silc_server_remove_channels_by_server.  They are used during
4580           disconnection of primary router and in backup router protocol.
4581           Affected file silcd/server_util.[ch], silcd/server.c and
4582           silcd/server_backup.c.
4583
4584         * Fixed channel adding to global list in IDENTIFY command
4585           reply in server.  Affected file silcd/command_reply.c.
4586
4587 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4588
4589         * If the incoming packet type is REKEY or REKEY_DONE process
4590           that packet always synchronously.  Fixes yet another MAC
4591           failed error on slow (dialup) connections.  Affected file
4592           lib/silcclient/client.c and silcd/server.c.
4593
4594 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4595
4596         * Call check_version SKE callback for initiator too.  Affected
4597           file lib/silcske/silcske.c.
4598
4599         * Implemented fix for security hole found in the SKE that was
4600           fixed in the specification few days back; the initiator's
4601           public key is now added to the HASH value computation.
4602           Added backwards support for the old way of doing it too, for
4603           old clients and old servers.  Affected file is
4604           lib/silcske/silcske.c.
4605
4606         * Enabled mutual authentication by default in SKE.  If initiator
4607           is not providing mutual authentication the responder will
4608           force it.  This will provide the proof of posession of the
4609           private key for responder.  The affected files are
4610           lib/silcclient/protocol.c and silcd/protocol.c.
4611
4612         * Do not cache anymore the server's public key during SKE.
4613           We do mutual authentication so the proof of posession of
4614           private key is done, and if the server is authenticated in
4615           conn auth protocol with public key we must have the public
4616           key already.  Affected file silcd/protocol.c.
4617
4618         * Added new global debug variable: silc_debug_hexdump.  If
4619           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
4620           file lib/silcutil/silclog.[ch].
4621
4622         * Fixed compilation warning due to char * -> const char *.
4623           Affected files lib/silcutil/silcnet.h, and
4624           lib/silccore/silcauth.[ch].
4625
4626 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4627
4628         * Fixed CMODE command when new channel key was created.  If
4629           the creation failed the old key was removed.  Next time giving
4630           same command would crash the server since the old key was
4631           freed already.  Affected file silcd/command.c.
4632
4633         * Fixed the silc_server_announce_get_channels to not crash
4634           on reconnect.  Affected file silcd/server.c.
4635
4636 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4637
4638         * Added silc_log_set_debug_string function to set a regex
4639           string to match for debug output.  Only the function names,
4640           or filenames matching the given debug string is actually
4641           printed.  This way it is possible to filter out those debug
4642           strings that user is not interested in.
4643
4644           Fixed a bug in silc_string_regexify.
4645
4646           Affected files lib/silcutil/silclog.[ch], and
4647           lib/silcutil/unix/silcunixutil.c.
4648
4649         * Changed the -d options in both server and Irssi SILC client
4650           to take the debug string as argument.  Affected files
4651           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
4652
4653 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4654
4655         * Added silc_hash_babbleprint to create a Bubble Babble
4656           Encoded fingerprint.  The encoding is developed by Antti
4657           Huima (draft-huima-babble-01.txt), and it creates human
4658           readable strings out of binary data.  Affected file
4659           lib/silccrypt/silchash.[ch].
4660
4661         * Print the babble print now in addition of fingerprint as well
4662           in Irssi SILC client.  Affected files are
4663           irssi/src/fe-common/silc/module-formats.[ch],
4664           irssi/src/fe-common/silc/core/client_ops.c.
4665
4666 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4667
4668         * Fixed a security problem found in SKE.  The initiator's
4669           public key too is now added to the HASH hash value creation
4670           which is signed by the responder to create the SIGN value.
4671           This will prevent anyone in the middle to lie to the responder
4672           about the initiator's public key.  If this is done now, the
4673           man in the middle will get caught.  Updated the protocol
4674           specification.
4675
4676 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4677
4678         * Better installation directory handling.  Configure module
4679           paths and other paths automatically to example_silc* files
4680           in doc/.  A patch by toma.
4681
4682         * Fixed compiler warning from MPI library, and from SILC RNG.
4683           A patch by johnny.
4684
4685         * Added SILC_SERVER_PID_FILE to define the pid file for server.
4686           It can be configured with ./configure.  A patch by toma.
4687
4688 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4689
4690         * Find correct make to use in prepare-clean.  A patch by
4691           toma.  Affected file prepare-clean.
4692
4693 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
4694
4695         * Added irssi variables use_auto_addr, auto_bind_ip,
4696           auto_bind_port and auto_public_ip.
4697
4698         * Changed the interface for silc_client_send_key_agreement
4699           in lib/silcclient/silcapi.h
4700
4701         Affected files:
4702
4703          irssi/src/silc/core/silc-core.c
4704          irssi/config
4705          lib/silcclient/silcapi.h
4706          irssi/src/silc/core/silc-channels.c
4707          lib/silcclient/client_keyagr.c
4708          irssi/docs/help/key
4709
4710 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
4711
4712         * Added silc_pkcs_public_key_compare to compare two
4713           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
4714
4715         * Check that the client who set the founder mode on the
4716           channel is the same client that is giving the founder
4717           mode to itself.  It is done by comparing the saved public
4718           key (it is saved even in the authentication is passphrase).
4719           Affected file silcd/command.c.
4720
4721 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
4722
4723         * Do not process packet for disconnected socket connection.
4724           Affected file lib/silccore/silcpacket.c.
4725
4726         * Process the DISCONNECT packet through scheduler in the
4727           client library.  Affected file lib/silcclient/client.c.
4728
4729         * Fixed the silc_client_packet_parse to not to increase
4730           the packet sequence number if the conn->sock and the
4731           current socket connection is not same.  This can happen
4732           for example during key agreement when the conn includes
4733           multiple socket connections (listeners).  Affected file
4734           lib/silcclient/client.c.
4735
4736         * The sender of the file transfer request now provides also
4737           the pointer (listener) for the key exchange protocol.  If
4738           the listener cannot be created then it sends empty key
4739           agreement and lets the receiver provide the listener.
4740
4741           Added `local_ip' and `local_port' arguments to the
4742           silc_client_file_send.  If they are provided they are used,
4743           if not then it will attempt to find local IP address, if
4744           not found or bind fails then the remote client will provide
4745           the listener.
4746
4747           Affected files are lib/silcclient/client_ftp.c and
4748           lib/silcclient/silcapi.h.
4749
4750         * Extended the FILE SEND command to support defining the
4751           local IP and port for key exchange listener.  They are
4752           optional.  Affected file irssi/src/silc/core/silc-servers.c.
4753
4754 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
4755
4756         * Defined to WHOIS command reply the sending of fingerprint
4757           of the client's public key (if the proof of posession of the
4758           corresponding private key is verified by the server).
4759           Updated to the protocol specification.
4760
4761         * Added support of receiving the client's public key's
4762           fingerprint in command reply in client library.  Affected
4763           file is lib/silcclient/command_reply.c, and
4764           lib/silcclient/idlist.[ch].
4765
4766 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
4767
4768         * Do not send over 128 chars long nickname to the server
4769           in NICK command.  Affected file lib/silcclient/command.c.
4770
4771         * Do not send over 256 chars long channel names to the server
4772           in JOIN command.  Affected file lib/silcclient/command.c.
4773
4774 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
4775
4776         * Assure that silc_server_close_connection cannot be called
4777           twice for same socket context.  Affected file is
4778           silcd/server.c.
4779
4780 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
4781
4782         * Send error message to application if opening file for
4783           writing during file transfer fails.  Affected file is
4784           lib/silcclient/client_ftp.c.
4785
4786           Remove all file transfer sessions for a client that we're
4787           removing from ID cache.
4788
4789           Affected file is lib/silcclient/client_ftp.c.
4790
4791         * Fixed silc_net_addr2bin to return correct address.  Affected
4792           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
4793
4794         * Fixed file transfer session removing on signoff notify.
4795           Affected file irssi/src/silc/core/silc-servers.c.
4796
4797         * Added the SilcClientFileError to be returned in the monitor
4798           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
4799           Affected file lib/silcclient/silcapi.h.
4800
4801 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
4802
4803         * Fixed a crash in silc_client_ftp_free_sessions and
4804           silc_client_ftp_session_free_client.  Affected file
4805           lib/silcclient/client_ftp.c.
4806
4807         * Added `disabled' field in the SilcChannelEntry in the server
4808           to indicate if the server entry is disabled.  Affected file
4809           silcd/idlist.h, silcd/command[_reply].c.
4810
4811         * SILC server adds now /var/run/silcd.pid everytime it is
4812           started.  Affected file silcd/silcd.c.
4813
4814         * Added silc_server_packet_send_clients to send a packet to
4815           the provided table of client entries.  Affected file
4816           silcd/packet_send.[ch].
4817
4818         * Fixed a crash in client resolving in client_prvmsg.c in
4819           client library.  Affected file lib/silcclient/client_prvmsg.c.
4820
4821         * Do not actually remove the client directly from ID cache
4822           during SERVER_SIGNOFF, but invalidate it.  This way we
4823           preserve the WHOWAS info for the client.  Affected file
4824           silcd/server_util.c.
4825
4826         * Fixed SERVER_SIGNOFF notify handling in the server.  The
4827           server is now able to process incoming SERVER_SIGNOFF notify
4828           for a server that it doesn't even know about.  It will remove
4829           the clients provided in the notify.  Affected file
4830           silcd/packet_receive.c.
4831
4832         * Check for partial packet in data queue after every packet that
4833           was found from the queue.  Return and wait for more data if
4834           there is partial data in queue.  Affected file is
4835           lib/silccore/silcpacket.c.
4836
4837 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
4838
4839         * Added SilcClietFileError enum to indicate error in
4840           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
4841           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
4842           Affected files lib/silcclient/silcapi.h and
4843           lib/silcclient/client_ftp.c.
4844
4845         * Check that newsize in silc_buffer_realloc is larger than
4846           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
4847
4848         * Added better monitor of file transfers.  It now monitors
4849           key agreement protocol during the file transfer too.  Added
4850           error reporting too.  Affected files
4851           irssi/src/silc/core/silc-servers.c,
4852           irssi/src/fe-common/silc/module-formats.[ch].
4853
4854         * Wrote a help file for FILE command.
4855
4856         * Added silc_rng_global_get_byte_fast to get not-so-secure
4857           random data as fast as possible.  Random data is read from
4858           /dev/urandom if available and from the SILC RNG if not
4859           available.  It is used in padding generation.  Affected file
4860           lib/silccrypt/silcrng.[ch].
4861
4862         * All packets in client library are now processed synchronously.
4863           Optimized packet processing a lot.  Affected file
4864           lib/silcclient/client.c.
4865
4866         * All server connection packets are processing synchronously
4867           now in server, to optimize packet processing.  Affected file
4868           silcd/server.c.
4869
4870         * Include files are installed now only in Toolkit distribution
4871           if make install is given.  Affected files: all Makefile.am's.
4872
4873 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
4874
4875         * Assure that silc_client_notify_by_server_resolve does not
4876           resolve the client information multiple times.  If it cannot
4877           be found by the first it cannot be found at all.  Affected
4878           file lib/silcclient/client_notify.c.
4879
4880         * Fixed WHOWAS command reply calling.  Affected file
4881           lib/silcclient/command_reply.c.
4882
4883         * Removed all references to silc_idlist_get_client from the
4884           Irssi SILC client since that call is internal call used by
4885           the library.  The Irssi SILC client will use now client
4886           retrieval functions found in silcapi.h.
4887
4888         * Fixed a bug in resolving nickname info before sending
4889           private message.  It used freed memory.  Affected file
4890           irssi/src/silc/core/silc-servers.c.
4891
4892 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
4893
4894         * Assure my_channels statistics cannot go negative in server.
4895           Affected files silcd/server.c, silcd/server_util.c.
4896
4897 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
4898
4899         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
4900
4901 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
4902
4903         * Win32 Toolkit changes.  Affected files
4904           win32/silc.dsw, win32/libsilc/libsilc.def,
4905           win32/libsilcclient/libsilc.def,
4906           lib/silcutil/silcutil.c, and
4907           lib/sftp/sftp_fs_memory.c.
4908
4909 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
4910
4911         * Added silc_net_localip to return local host's IP address.
4912           Affected file lib/silcutil/silcnet.[ch].
4913
4914         * If key exchange or rekey protocol is active for a connection
4915           parse all packets syncronously since there might be packets
4916           in packet queue that we are not able to process without first
4917           processing packets before them.  Affected file silcd/server,
4918           lib/silcclient/client.c.
4919
4920         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
4921           whether library should continue processing the packet.
4922           Affected file lib/silccore/silcpacket.h.
4923
4924         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
4925           SilcSFTPMonitorData to SFTP server to monitor various
4926           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
4927           lib/silcsftp/sftp_server.c.
4928
4929         * Added silc_file_size to return file size.  Affected file
4930           lib/silcutil/silcutil.[ch].
4931
4932         * Implemented the file transfer support for the client library.
4933           Added preliminary support for simple client to client one-file
4934           transmission.  Affected file lib/silcclient/client_ftp.c,
4935           lib/silccilent/client.[ch].
4936
4937         * Added new local command FILE to the Irssi SILC Client.
4938           It is used to perform the file transfer.  It has subcommands
4939           SEND, RECEIVE, SHOW and CLOSE.  Affected files
4940           irssi/src/silc/core/client_ops.c,
4941           irssi/src/silc/core/silc-server.[ch].
4942
4943 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
4944
4945         * Relay the SILC_PACKET_FTP in the server.  Affected files
4946           silcd/server.c and silcd/packet_receive.c.
4947
4948 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
4949
4950         * Renamed silc_file_read and silc_file_write to functions
4951           silc_file_readfile and silc_file_writefile.  Added function
4952           silc_file_open and silc_file_close.  Affected files
4953           lib/silcutil/silcutil.[ch].
4954
4955 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
4956
4957         * Resolve the client info when received private message or
4958           channel message for a client which nickname we don't know.
4959           Affected files lib/silcclient/client_prvmsg.c and
4960           lib/silcclient/client_channel.c.
4961
4962         * Do not crash in /KEY if client is not connected.  Affected
4963           file irssi/src/silc/core/silc-channels.c.
4964
4965         * Added SilcClientStatus field to the SilcClientEntry in the
4966           lib/silcclient/idlist.h.
4967
4968           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
4969           is incomplete and is being resolved, it won't be resolved
4970           twice.
4971
4972           Make sure also that USERS command reply does not resolve
4973           twice information.  Affected file is
4974           lib/silcclient/command_reply.c.
4975
4976           Make sure that silc_client_get_clients_by_list does not
4977           resolve twice same information.
4978
4979         * Check for valid client->id in the silc_server_free_client_data.
4980           Affected file silcd/server.c.
4981
4982         * Fixed /GETKEY nick@server not to crash if the server entry
4983           is not found.  Affected file lib/silcclient/command.c.
4984
4985         * Fixed the silc_server_check_cmode_rights to check the
4986           requested modes correctly.  Affected file silcd/command.c.
4987
4988 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
4989
4990         * Better checks for non-printable chars in nick added.
4991           Affected file silcd/command.c.
4992
4993 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
4994
4995         * Call the silc_server_udpate_servers_by_server in the
4996           primary router that comes back online in the backup resuming
4997           protocol.  Otherwise it routes packets wrong.  Affected file
4998           silcd/server_util.[ch], silcd/server_backup.c.
4999
5000 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5001
5002         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
5003           lib/silcutil/silcbuffmt.[ch].
5004
5005         * Redefined the SILC packet header to include the padding
5006           length.  Affected file lib/silccore/silcpacket.[ch].
5007
5008         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
5009           length for maximum padding up to 128 bytes).  Affected
5010           file lib/silccore/silcpacket.h.
5011
5012         * Removed all backwards support for old 0.5.x MAC thingies.
5013           The SILC packet header change makes it impossible to be
5014           backwards compatible.
5015
5016         * Send the ENDING packet with timeout in the backup resuming
5017           protocol.  This is to assure that all routers has connected
5018           to the primary router.  Affected file silcd/server_backup.c.
5019
5020         * Changed the RNG to take the first IV from random data.  It
5021           used to take it from zero actually.  Changed the RNG also
5022           to use /dev/urandom during session.  /dev/random is used
5023           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
5024
5025 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5026
5027         * Changed the SILC packet header to have the first two bytes
5028           (the packet length) encrypted.  Affected files aroung the
5029           code tree, lib/silccore/silcpacket.[ch].  Removed the
5030           SilcPacketCheckDecrypt callback.  It is not needed anymore
5031           since the silc_packet_receive_process will determine now
5032           whether the packet is normal or special.
5033
5034         * Implemented the unidirectional MAC keys.  Affected files
5035           lib/silcske/silcske.c, silcd/protocol.c and
5036           lib/silcclient/protocol.c.
5037
5038         * Implemented the packet sequence number to the MAC computation.
5039           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
5040           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
5041           lib/silcclient/protocol.c.
5042
5043 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5044
5045         * Allow backup router to announce servers.  All servers
5046           announced by backup router are added to the global list
5047           automatically.  Update hte server's socket to our primary
5048           router also when backup router announces a server.
5049           Affected file silcd/packet_receive.c.
5050
5051         * Do not update the client->router in the function
5052           silc_server_udpate_clients_by_server if the client is on
5053           global list.  We might fail to find any specific server
5054           for locally connected clients and local cell clients.  They
5055           should still use the `from' and not `to' as client->router.
5056           This fixes backup router resuming protocol.  Affected file
5057           silcd/server_util.c.
5058
5059         * Decrease channel statistics count only if the channel
5060           deletion worked.  Affected files are silcd/server.c and
5061           silcd/server_util.c.
5062
5063         * Added silc_server_update_servers_by_server to update origin
5064           of all server entries.  Used during backup router protocol.
5065           Affected files silcd/server_util.[ch], silcd/server.c. and
5066           silcd/backup_router.c.
5067
5068         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
5069           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
5070           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
5071           lib/silccrypt/silchmac.c.
5072
5073 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5074
5075         * Assure that router cannot reroute the same channel message
5076           to the sender.  Affected file silcd/packet_receive.c.
5077
5078 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5079
5080         * Made better checks that the channel message is not sent
5081           to the router it came from.  Affected file is
5082           silcd/packet_send.c.  Fixed memory leak too.
5083
5084         * Announce informations for incoming router connection, but
5085           only after checking if it is replaced by backup router.
5086           Affected file silcd/packet_receive.c.
5087
5088 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5089
5090         * Fixed the backup resuming protocol to work in multiple
5091           router environment.  Affected file silcd/server_backup.c.
5092
5093         * Route packet only to one router in the function
5094           silc_server_packet_send_to_channel.  Affected file is
5095           silcd/packet_send.c.
5096
5097         * Fixed silc_server_send_notify_dest to set the broadcast
5098           flag.  Fixed the silc_server_send_notify_topic to actually
5099           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
5100           Affected file silcd/packet_send.c.
5101
5102         * Changed the SFTP Filesystem interface.  Changed the
5103           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
5104           the filesystem operation function.  The SilcSFTPFilesystem
5105           is now a context that is allocated by all filesystem allocation
5106           functions and it already includes the operations structure
5107           and filesystem specific context.  It is given as argument
5108           now to the silc_sftp_server_start.  This made the interface
5109           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
5110           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
5111
5112 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5113
5114         * Changed the backup router adding and getting interfaces
5115           in the server.  The router that will be replaced by the
5116           specified backup router is now sent as argument.  Affected
5117           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
5118           silcd/server.c.
5119
5120         * Added silc_net_addr2bin_ne to return the binary form of
5121           the IP address in network byte order.  Affected files
5122           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
5123
5124 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5125
5126         * Check for existing server ID in silc_server_new_server
5127           and in silc_server_connect_to_router_final and remove the
5128           old entry if it exists.  Affected file silcd/packet_receive.c,
5129           silcd/server.c.
5130
5131         * Send the channel message always to only one router, either
5132           in upstream or downstream.  Affected file is
5133           silcd/packet_send.c.
5134
5135 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5136
5137         * Wrote the definition of the backup resuming protocol to the
5138           protocol specification.
5139
5140         * Removed one redundant channel key generation from normal
5141           server during joining procedure.  Removed one redundant
5142           channel key sending from server to router during joining
5143           procedure.  Affected file silcd/command.c.
5144
5145         * Made minor bugfixes to the backup router resuming protocol.
5146           Affected file silcd/server_backup.c, server.c.
5147
5148 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5149
5150         * Added --disable-asm configuration option.  Affected files
5151           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
5152           by salo.
5153
5154         * Implemented the backup resuming protocol that is used to
5155           resume the primary router position in the cell after the
5156           primary router comes back online.  Affected files
5157           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
5158           and silcd/server_util.[ch].
5159
5160 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5161
5162         * Sleep two (2) seconds after sending QUIT command to server.
5163           Affected file lib/silcclient/command.c.
5164
5165         * Assure that if outgoing data buffer is pending do not force
5166           send any data.  Affected file silcd/packet_send.c.
5167
5168         * Assure that if outgoing data buffer is pending do not force
5169           send any data.  Affected file lib/silcclient/client.c.
5170
5171         * Implemented the backup router support when the primary router
5172           goes down.  The servers and routers can now use the backup
5173           router as new primary router without loosing connectivity.
5174
5175 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5176
5177         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
5178           in the server to indicate disabled entry.  All data read
5179           from the connection will be ignored and no data is sent
5180           for entry that is disabled.  Affected files are
5181           silcd/idlist.h, silcd/server.c.
5182
5183 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5184
5185         * Created SFTP client and server test programs in the
5186           lib/silcsftp/tests directory.
5187
5188 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
5189
5190         * Implemented memory filesystem (virtual filesystem) for
5191           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
5192           sftp_fs_memory.c.
5193
5194 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5195
5196         * Implemented the SFTP (SSH File Transfer Protocol) to the
5197           lib/silcsftp.  It includes SFTP client and SFTP server
5198           implementations.
5199
5200 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5201
5202         * Moved lib/silccore/silcprotocol.[ch] to the
5203           lib/silcutil library.
5204
5205         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
5206           take variable argument list pointer as argument.  Affected
5207           file lib/silcutil/silcbuffmt.[ch].
5208
5209         * Added silc_buffer_set function that is used to set data
5210           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
5211           Affected file lib/silcutil/silcbuffer.h.
5212
5213         * Changed various routines in the core library to use the new
5214           silc_buffer_set instead of allocating new buffer only for
5215           temporary purposes.
5216
5217         * Added 64-bit value formatting and unformatting support to the
5218           silc_buffer_[un]format routines.  Affected file is
5219           lib/silcutil/silcbuffmt.[ch].
5220
5221           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
5222           to includes/bitmove.h.
5223
5224 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5225
5226         * Fixed channel user mode saving in client library.  Affected
5227           file lib/silcclient/command[_reply].c.
5228
5229 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5230
5231         * Defined the file transfer to the SILC Protocol.  Added
5232           new packet type SILC_PACKET_FTP and defined File Transfer
5233           Payload.  The mandatory file transfer protocol is SFTP
5234           (SSH File Transfer Protocol).  Affected file in addition
5235           of the internet draft is lib/silccore/silcpacket.h.
5236
5237         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
5238           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
5239           is used as part of backup router protocol when the primary
5240           router of the cell is back online and wishes to resume
5241           the position as primary router.
5242
5243         * Redefined the MAC generation keys in the protocol.  The
5244           same key is not used anymore in both direction.  Both
5245           direction will now use different keys for sending and
5246           receiving.  This fixes a potential security flaw.  This
5247           change causes incompatibilities in the protocol.
5248
5249         * Redefined also the MAC computation from the packet.
5250           An packet sequence number is now added to the MAC
5251           computation.  This prevents possible replay attacks against
5252           the protocol.  This change too causes incompatibilities
5253           in the protocol.
5254
5255           Added `sequence' field to the SilcPacketContext to hold
5256           the current sequence number for the packet.
5257
5258 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5259
5260         * Added `created' field to the SilcIDListData in the file
5261           silcd/idlist.h to indicate the time when the entry was
5262           created.
5263
5264         * Added `created' field to the SilcChannelEntry too.  Affected
5265           file silcd/idlist.h.
5266
5267         * Added `creation_time' aguments to all the announcement functions
5268           in the server.  If it is provided then only the entries that
5269           was created after the provided time frame are actually
5270           announced.  Affected file silcd/server.[ch].
5271
5272         * The protocol says that the Channel ID's IP address must be
5273           based on the router's IP address.  Added check for this in
5274           the silc_server_new_channel when processing incoming New Channel
5275           Payload.  Affected file silcd/packet_receive.c.
5276
5277         * Print out the correct version with --version in SILC client.
5278           Affected file irssi/src/silc/core/silc-core.c.
5279
5280 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5281
5282         * Fixed WHOWAS command to check for completnes of the client
5283           entry always, not just when the command is coming from client.
5284           Affected file silcd/command.c.
5285
5286         * Added new function silc_server_packet_queue_purge to purge the
5287           outgoing data queue to the network.  After the function returns
5288           it is guaranteed that the outgoing packet queue is empty.
5289           Affected file silcd/packet_send.[ch].
5290
5291         * Purge the outgoing packet queue in the rekey protocol's final
5292           callback to assure that all rekey packets go to the network
5293           before quitting the protocol.  Affected file silcd/server.c.
5294
5295         * Added silc_client_packet_queue_parse as similar function as
5296           in server to the client library.  The affected file is
5297           lib/silcclient/client.c.
5298
5299 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5300
5301         * Splitted silcd/server.c and created silcd/server_util.[ch]
5302           for utility functions.
5303
5304         * Added new socket flag SILC_SF_DISABLED to indicate that the
5305           connection is open but nothing can be sent to or received from
5306           the connection.  Affected file lib/silcutil/silsockconn.[ch].
5307           The checking for disabled socket is checked in the low level
5308           silc_socket_write and silc_socket_read functions.
5309
5310 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5311
5312         * Allow only nicknames and channel names that fits into the
5313           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
5314
5315 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5316
5317         * When processing JOIN command reply in server check that if
5318           the channel exists in our global list we'll move it the local
5319           list.  Affected file silcd/command_reply.c.
5320
5321         * Fixed the check whether client is joined on the channel already
5322           in JOIN command.  Affected file lib/silcclient/command.c.
5323
5324         * Fixed the JOIN command reply to check whether the channel
5325           already exists.  Affected file lib/silcclient/command_reply.c.
5326
5327 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5328
5329         * Added silc_ske_status_string to map the SKE error numbers
5330           to readable strings.  The affected files are
5331           lib/silcske/silcske[_status].[ch].
5332
5333 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5334
5335         * Do not show the private channels on the WHOIS channel list
5336           as it is not allowed by the protocol.  The affected file is
5337           silcd/server.c.
5338
5339 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5340
5341         * Assure that the packet length digged from the actual packet
5342           is something sensible in the silc_packet_decrypt_rest_special
5343           in lib/silccrypt/silcpacket.c.
5344
5345         * Free and NULL the allocated pointer in silc_hmac_alloc if
5346           the HMAC allocation fails.  The affected file is
5347           lib/silccrypt/silchmac.c.
5348
5349         * Print the selected security properties to the log files in
5350           the server.  Affected file silcd/protocol.c.
5351
5352         * Add SKE's reference counter even if calling the completion
5353           callback manually.  Otherwise it goes negative, although it
5354           does not cause any problems.  The affected file is
5355           lib/silcske/silcske.c.
5356
5357         * Remove the client entry with short timeout after giving the
5358           KILL command.  Affected file lib/silcclient/command.c.
5359
5360         * Fixed to send error reply in WHOIS and IDENTIFY commands in
5361           case all found clients are already disconnected (WHOWAS would
5362           found them) in the server.  Affected file silcd/command.c.
5363
5364         * Update the last_receive (time of last data received) to be
5365           updated only when received private or channel message so that
5366           the idle time showed in WHOIS makes more sense.
5367
5368         * Added boolean field `valid' in to the SilcClientEntry in the
5369           client library to indicate whether the entry is valid or not.
5370           This fixes the nickname change bug on channel when changing
5371           the nickname to be same than the old (like nick to Nick) the
5372           nickname formatter doesn't set the new nick anymore to Nick@host.
5373           Affected file lib/silcclient/idlist.[ch].
5374
5375         * Now actually fixed the nickname changing on disconnection.
5376           Added new function silc_change_nick to the Irssi SILC Client.
5377           Affected file irssi/src/silc/core/client_ops.c,
5378           irssi/src/silc/core/silc-nicklist.[ch].
5379
5380 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5381
5382         * Check that the public key exists in the GETKEY command before
5383           trying to encode it.  Affected file silcd/command.c.
5384
5385         * Print some notifications on received public keys with GETKEY
5386           command in the Irssi SILC Client.  Affected files are
5387           irssi/src/fe-common/silc/module-formats.[ch],
5388           irssi/src/silc/core/client_ops.c.
5389
5390         * Use IDENTIFY command to resolve the server information in the
5391           GETKEY command instead of INFO command.  Affected file
5392           lib/silcclient/command.c.
5393
5394         * All command reply functions in the client library now calls
5395           the pending command reply callbacks even if an error has
5396           occurred.  The server has done this a long time and now it was
5397           time to move the client library to this as well.  Now all
5398           errors can be delivered back to the pending command reply
5399           callbacks if necessary.  Affected files are
5400           lib/silcclient/command[_reply].[ch].
5401
5402         * Change the nickname on disconnection back to the username
5403           because in reconnect the server will enforce it to it anyway.
5404           Affected file irssi/src/silc/core/silc-servers.c.
5405
5406         * Fixed a config file parsing bug in the Irssi SILC client.
5407           Affected file irssi/src/silc/core/clientconfig.c.
5408
5409 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5410
5411         * When printing the channel mode on JOIN, verify that the
5412           channel key and channel's HMAC are valid.  Affected file
5413           irssi/src/silc/core/client_ops.c.
5414
5415 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5416
5417         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
5418           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
5419           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
5420
5421         * Removed channel key rekey task deleting from the function
5422           silc_server_save_channel_key.  Affected file silcd/server.c.
5423           Added explicit timeout task context instead that is used to
5424           delete the task if we are registering a new task before the
5425           new task has elapsed.
5426
5427         * When channel key rekey occurs the client library now saves
5428           the old channel key for a short period of time (10 seconds) and
5429           is able to use it in case some is still sending channel
5430           messages encrypted with the old key after the rekey.  Affected
5431           file lib/silcclient/[idlist.h|client_channel.c].
5432
5433 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5434
5435         * Added check to the silc_server_new_id_real to not accept
5436           new ID if it is the sender's own ID.  Affected file is
5437           silcd/packet_receive.c.
5438
5439         * Assure that we do not announce ourself or the one we've
5440           sending our announcements when we're router and are announcing
5441           servers to our primary router.  Affected file silcd/server.c.
5442
5443         * Fixed silc_server_command_identify_check_client to assemble
5444           correct WHOIS packet.  It send corrupted WHOIS packet and
5445           caused problem with router to router connections.  Affected
5446           file silcd/command.c.
5447
5448           Fixed also silc_server_command_whois_check the same way
5449           as for the IDENTIFY command.
5450
5451         * Added new SilcIDListStatus to the server in the SilcIDListData
5452           structure.   The status now includes the current status of
5453           the entry (like registered, resolved etc.).  Affected file
5454           silcd/idlist.[ch].  Defined a bunch of different status types
5455           as well.  This replaced the old boolean registered field as well.
5456
5457           Added resolve_cmd_ident field to the SilcClientEntry structure
5458           too so that if the entry is for example being resolved so
5459           another command may attach to the same pending command reply
5460           without requiring to resolve the same entry again.  This concept
5461           should optimize the WHOIS and the IDENTIFY resolving under
5462           heavy load by taking away unnecessary resolving for entries
5463           that are being resolved already.
5464
5465           Added support for adding multiple pending commands for one
5466           command idenfier.  Affected file silcd/command[_reply].[ch].
5467
5468         * Fixed WHOIS and IDENTIFY save to remove the cache entry
5469           before deleting the data.  Otherwise the hash table will have
5470           freed data in comparison functions.  Affected file is
5471           silcd/command_reply.c.
5472
5473         * Fixed silc_idlist_replace_client_id to add the new entry to
5474           the cache with NULL nickname.  Otherwise there will be invalid
5475           memory as the nickname after the nickname is freed.  Affected
5476           file silcd/packet_receive.c.
5477
5478         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
5479           saved into wrong slots because the previous number of entries
5480           was not taken into account.  Affected file silcd/idlist.c.
5481           Fixed same thing in silc_idlist_get_clients_by_nickname too.
5482
5483         * If we are router and we receive JOIN notify to a channel that
5484           does not have any users then notified client is marked as the
5485           channel founder, as it is it.  The affected file is
5486           silcd/packet_receive.c
5487
5488         * Added to the extended hash table API's table_del_*ext functions
5489           the destructor as argument too, so that the caller can decide
5490           which destructor to use or whether to use destructor at all.
5491           Affected file lib/silcutil/silchashtable.[ch].
5492
5493         * Fixed ID Cache purging.  It actually deleted the entries from
5494           the hash table after the data was freed.  The hash table ended
5495           up comparing freed memory.  The affected file is
5496           lib/silccore/silcidcache.c.
5497
5498 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5499
5500         * Fixed Irssi SILC client's KILL command's HELP syntax.
5501
5502         * The USERS command now resolves the detailed user information
5503           if the userinfo field is missing.  Affected file is
5504           lib/silcclient/command_reply.c.
5505
5506         * Do not print error in silc_file_read if the read file does
5507           not exist.  Just silently return NULL.  Affected file is
5508           lib/silcutil/silcutil.c.
5509
5510         * Fixed the silc_log_output to not wine about NULL filename
5511           and to not create some bogus " " filename.  Affected file is
5512           lib/silcutil/silclog.c.
5513
5514 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5515
5516         * Fixed various printing bugs on the user interface in the
5517           Irssi SILC Client.  Minor changes that were forgotten from
5518           the release.
5519
5520 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5521
5522         * Fixed the configure.in.pre and the compilation and distribution
5523           environment to support the new autoconf 2.52.  That version is
5524           now required to compile the CVS trunk.
5525
5526 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5527
5528         * Renamed function silc_parse_nickname to silc_parse_userfqdn
5529           to generally parse user@fqdn format strings.  Affected file
5530           lib/silcutil/silcutil.c.
5531
5532         * Added nickname_format and nickname_force_format fields to the
5533           SilcClientParams structure.  The first one defines the format
5534           for the nicknames that the library will enforce if the receives
5535           multiple same nicknames.  The second one is boolean value and
5536           can be used to force the library to always enforce the format
5537           to the nicknames regardles whether there are multiple nicknames
5538           or not.  This configurable formatting was employed to flexibly
5539           support accessing multiple nicknames from the user interface.
5540           The userinterface can now set the nicknames to what ever format
5541           they prefer.  Affected file lib/silcclient/silcapi.h.
5542
5543           Added function silc_client_nickname_format to the file
5544           lib/silcclient/idlist.c.  It performs the nickname formatting.
5545
5546           Added new field `hostname´ to the SilcClientEntry context.
5547           It holds the hostname of the client.  Affected file is
5548           lib/silcclient/idlist.h.
5549
5550         * Irssi SILC Client sets the nicknames in nick@hostn format.
5551           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
5552           irssi/src/silc/core/silc-core.c.
5553
5554           The WHOIS printing now also shows both the real nickname and
5555           the formatted nickname so that user knows how to access the
5556           user if there are multiple same nicknames cached.  Affected
5557           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
5558           printing formatting too to take the hostname now as a separate
5559           argument.  The Affected file is
5560           irssi/src/fe-common/silc/modules-formats.[ch].
5561
5562         * Changed the silc_client_get_clients_local to accept the formatted
5563           nickname as argument.  It accepts the real nickname too but the
5564           formatted nickname can be used to find the true entry from
5565           multiple entries.  Affected file lib/silcclient/silcapi.h and
5566           lib/silcclient/idlist.c.
5567
5568         * Added nickname_format_parse field to the SilcClientParams.
5569           It is a callback function provided by the application to parse
5570           the nickname out of the formatted nickname string. The library
5571           calls it to get the nickname from the formatted string. Since
5572           the application generally knows better the format of the nickname
5573           string it parses it instead of the library, even though library
5574           encodes the formatted string.  If the callback function is not
5575           provided then the library will use the string as is.  The
5576           affected file is lib/silcclient/silcapi.h.
5577
5578         * All the nickname strings passed to the client library in
5579           commands are now expected to be formatted nickname strings.
5580           If the command does not support the formatted nickname string
5581           it will assume that the sent string is the actual nickname.
5582           Affected file lib/silcclient/command.c.
5583
5584 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5585
5586         * Added public key authentication support to OPER and SILCOPER
5587           commands in the client library.  Affected file is
5588           lib/silcclient/command.c.
5589
5590 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5591
5592         * Changed the get_auth_methdod client operation to be asynchronous.
5593           It can be async if the application resolves the authentication
5594           method from the server during the negotiation.  Added new
5595           SilcGetAuthMeth completion callback that the application will
5596           call after resolving the authentication method.
5597
5598           Added function silc_client_request_authentication_method that
5599           the application can use to resolve the authentication method
5600           from the server.  Added also SilcConnectionAuthRequest callback
5601           that the library will call after the server has replied.  The
5602           application can call this function if it does not know the
5603           current authentication method.
5604
5605           Affected files are lib/silcclient/client.c and
5606           lib/silcclient/silcapi.h.
5607
5608         * The Irssi SILC client now automatically resolves the authentication
5609           method incase any configuration information is not present (and
5610           currently there never is).  The affected file is
5611           irssi/src/silc/core/client_ops.c.
5612
5613         * Fixed public key authentication from the client library.
5614           Affected file lib/silcclient/protocol.c.  Changed also the
5615           protocol specification about the public key authentication in
5616           the connection authentication protocol.  The actual data to be
5617           signed is now computed with a hash function before signing.
5618
5619         * Fixed the public key authentication from the server as well.
5620           Affected file silcd/protocol.c.
5621
5622         * Removed the mlock()'s from the memory allocation routines.
5623           Affected file lib/silcutil/silcmemory.c.  The ./configure does
5624           not check anymore for the mlock().  Affected file is
5625           configure.in.pre.
5626
5627         * Fixed USERS command in server to allow the execution of the
5628           command for private and secret channels if the client sending
5629           the command is on the channel.  Affected file silcd/command.c.
5630
5631         * Fixed silc_client_get_clients_local to return the clients
5632           count correctly.  It could return wrong value.  Affected file
5633           lib/silcclient/idlist.c.
5634
5635 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5636
5637         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
5638           types.  The assembler optimizations seemed not to like 64-bit
5639           data types.  The assmebler optimizations thus are now enabled
5640           also for BSD systems as opposed to only enable them for Linux.
5641
5642         * Do not check for threads at all on BSD systems.  Affected
5643           file configure.in.pre.
5644
5645         * Removed -n and -h options from the Irssi SILC Client since
5646           they are not used in silc.
5647
5648         * Fixed the prime generation to assure that the first digit
5649           of the generated random number is not zero since our conversion
5650           routines does not like number strings that starts with zero
5651           digit.  If zero digit is seen the random number is regenerated.
5652           This caused some corrupted RSA keys when the zero first digit
5653           was met.  Affected file lib/silcmath/silcprimegen.c.
5654
5655 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5656
5657         * Fixed WIN32 configuration in the ./configure script.
5658           Fixed to include xti.h on environments that has it.
5659           Patches by Carsten Ilchmann and andrew.
5660
5661 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5662
5663         * Changed the silc_id_create_client_id to be collision
5664           resistant.  It is now assured that there cannot be created
5665           two same client ID's.  I suspect that some weird bugs in
5666           the server were actually caused by duplicate Client IDs.
5667           Affected file silcd/serverid.[ch].  A router receiving
5668           new ID now also assures and informs the sending server
5669           if the ID caused collision.
5670
5671         * Changed the silc_id_create_channel_id to also assure that
5672           there are no collisions.
5673
5674 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5675
5676         * Statement about ignoring the Mutual Authentication flag when
5677           performing rekey with PFS was a bit misleading.  It is ignored
5678           if it was set in the initial negotiation, it cannot be even
5679           set in the rekey.  Fixed in the ke-auth draft.  Started the
5680           new versions of the protocol drafts in the doc/.
5681
5682 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5683
5684         * Fixed a bug in silc_client_command_identify_save when saving
5685           new channel information.  The channel name was no duplicated
5686           and caused crash on exit.  Affected file is
5687           lib/silcclient/command_reply.c.
5688
5689 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5690
5691         * Fixed the getkey command handling in the server.  Send just
5692           empty OK reply to the sender if the key could not be fetched
5693           (but everything else was ok, like the key just was not available).
5694           Changed the public key parameter to optional in the protocol
5695           specs so that empty OK reply can be sent.  Affected file
5696           silcd/command.c.
5697
5698           Added a message to Irssi SILC client to tell to user if the
5699           server did not return a public key.
5700
5701 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
5702
5703         * Fixed a channel key regeneration bug.  It registered new
5704           timeout tasks exponentially until all system resources were
5705           used.  Affected file silcd/server.c.
5706
5707 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5708
5709         * Added the SILC Document generator to the scripts/silcdoc.
5710           It can be used to generate the Toolkit Reference Manual out
5711           of the source tree.  Internally it will also use the RoboDoc
5712           generator now imported in util/robodoc.
5713
5714 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5715
5716         * Added couple of return's in rekey protocol if error orccurred
5717           during the protocol.  The execution must be terminated.
5718           Affected file silcd/protocol.c.  Also, terminate the protocol
5719           always with timeout.
5720
5721 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5722
5723         * The client's Client ID was created initally from the wrong
5724           nickname (it could have been in format nick@host) in the
5725           silc_server_new_client.  Affected file silcd/packet_receive.c
5726
5727 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5728
5729         * Added some SILC_LOG_ERROR's to various error conditions
5730           if client could not be added to ID cache.  Affected files
5731           silcd/packet_receive.c and silcd/server.c.
5732
5733         * When client's sock->user_data is freed, NULL also the
5734           client->router and client->connection pointers.  Added check
5735           for these pointers being NULL to various places around the
5736           code.  Affected file silcd/server.c.
5737
5738         * Added client->data.registered == TRUE checks to various
5739           places around the code to assure that unregistered client's
5740           are not handled when it is not allowed.  Affected file
5741           silcd/server.c.
5742
5743         * Added `bool registered' fields to all
5744           silc_idlist_[server|client]_get_* routines to indicate whether
5745           the fetched client needs to be registered or not.  Affected
5746           file silcd/idlist.[ch].
5747
5748         * Add your own entry as registered to the ID cache in the
5749           server.  Affected file server.c.
5750
5751         * Fixed a bug in silc_server_new_server.  The SilcServer was
5752           set as the new server's context instead of SilcServerEntry.
5753           This naturally caused some weird bugs.
5754
5755         * Added "updated" field the SilcChannelEntry which indicates
5756           the time since the channel entry was last accessed.  This
5757           can be used to determine whether it is necessary to
5758           announce the channel after backup resuming protocol.
5759           Affected files silcd/idlist.[ch].
5760
5761 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5762
5763         * Do not delete the channel rekey task when adding it
5764           for in silc_server_create_channel_key.
5765
5766         * Changed the silc_server_create_channel_key to return
5767           TRUE or FALSE to indicate the success of the channel key
5768           creation.
5769
5770 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5771
5772         * Fixed MSVC++ project files and added missing files to
5773           Makefiles under win32/.
5774
5775 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5776
5777         * Do not add TCP_NODELAY flag if the operating system
5778           does not have it defined.  Affected files are
5779           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
5780
5781         * Fixed buffer overflow from Irssi SILC Client.  Affected
5782           file irssi/src/fe-common/core/themes.c.
5783
5784         * Fixed double free in client library in the file
5785           lib/silcclient/client.c when disconnecting from server.
5786
5787         * Applied double free patch from cras to Irssi SILC client.
5788           Affected files irssi/src/core/[modules/expandos].c
5789
5790         * Fixed the disconnection handling to Irssi SILC Client.
5791           The application must call silc_client_close_connection
5792           in ops->connect client operation in case of failure of
5793           the connection.  Affected file is
5794           irssi/src/silc/core/client_ops.c.
5795
5796         * Do not set sock->protocol to NULL in the function
5797           silc_client_close_connection after executing the protocol's
5798           final callback since the sock might not be valid anymore.
5799           Affected file lib/silcclient/client.c.
5800
5801 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5802
5803         * Do not enable SILC_THREADS if the linking with libpthread
5804           did not happen.  Affected file configure.in.pre.
5805
5806         * Added notion to protocol specification that server must
5807           verify the sent authentication payload with CMODE when
5808           setting the channel founder key.  Implemented it to the
5809           server.  Affected file silcd/command.c.
5810
5811 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5812
5813         * Added _EXTRA_DIST SILC distribution variable to the
5814           distributions file.  It is used to conditionally add extra
5815           files or directories to the specific distribution.  Affected
5816           files ./prepare, Makefile.am.pre and distributions.
5817
5818           Removed the `_' from the start of the distribution names.
5819           It is redundant.
5820
5821         * Added README.WIN32 for instructions to compile the Toolkit
5822           under WIN32.
5823
5824 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5825
5826         * Fixed a double free in disconnection in the server.  Affected
5827           file is silcd/server.c.
5828
5829         * Fixed the lib/silcske/groups.c to work now also with GMP
5830           MP library.  The string conversion did not work when using
5831           specific base and the base is indicated in the string as well.
5832
5833         * Created win32/ directory which now includes MSVC++ specific
5834           stuff so that toolkit (DLLs) may be compiled with MSVC++.
5835           It will appear only in the toolkit distribution
5836
5837 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5838
5839         * Changed the key material distribution function in case when
5840           the hash output is too short.  The data is now concatenated
5841           a bit differently than it used to.  Made the change to the
5842           SKE protocol specification.
5843
5844         * Added better GMP detection to configure.in.pre.  A patch
5845           by salo.
5846
5847 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5848
5849         * Fixed a minor bug in SKE that might cause some problem on
5850           some platforms.  Affected file lib/silcske/silcske.c.
5851
5852         * Added the cookie checking for initiator in the SKE.  It checks
5853           that the responder returns the sent cookie unmodified.  The
5854           affected file is lib/silcske/silcske.c.  Added new SKE
5855           error type INVALID_COOKIE that can be sent during the
5856           negotiation.  Fixed some memory leaks as well.
5857
5858         * Added the "invalid cookie" error message to Irssi SILC client's
5859           message formats.
5860
5861 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5862
5863         * Added `task_max' field to the SilcClientParams to indicate
5864           the maximum tasks the scheduler can handle.  If set to zero,
5865           default values are used.  Affected file lib/silcclient/silcapi.h.
5866
5867         * Fixed memory leaks in silc_client_close_connection.  Affected
5868           file lib/silcclient/client.c.
5869
5870         * Added silc_client_del_client_entry to client library to free
5871           all memory of given client entry.  Affected file is
5872           lib/silcclient/idlist.[ch].
5873
5874         * Added new functions silc_client_del_channel and
5875           silc_client_del_server to delete channel and server entries.
5876           Affected file lib/silcclient/[silcapi.h/idlist.c].
5877
5878         * Removed silc_client_del_client_by_id from silcapi.h.
5879
5880         * Fixed the INFO command to return the server's own info
5881           correctly when querying by Server ID.  Affected file is
5882           silcd/command.c.
5883
5884 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5885
5886         * Removed the non-blocking settings in WIN32 code in the
5887           silc_sock_[read/write] and added SleepEx instead.  Affected
5888           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
5889           of input data is now checked with FIONREAD and ioctlsocket.
5890
5891 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5892
5893         * Call silc_schedule_task_del_by_context in the
5894           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
5895           Affected file lib/silccore/silcprotocol.c.
5896
5897         * Call silc_protocol_cancel for active protocols in the
5898           silc_server_close_connection if the funtion
5899           silc_server_free_sock_user_data has not been called.
5900           Affected file silcd/server.c.
5901
5902         * Generic tasks cannot be deleted using the del_by_fd
5903           task deleting function since generic tasks does not match
5904           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
5905
5906         * Added a notion to SILCOPER help file that the SILCOPER works
5907           only on router server, not on normal server.
5908
5909 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5910
5911         * Added for WIN32 support for the new scheduler as well.
5912           Affected file lib/silcutil/win32/silcwin32schedule.c.
5913
5914         * Fixed the SHA1 implementation to work on various platforms.
5915
5916 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5917
5918         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
5919           API.  It is part of the scheduler now.  Everything else is
5920           as previously but some functions has changed their names.
5921           Checkout the lib/silcutil/silcschedule.h for the interface.
5922           Updated all applications to use the new interface.  Affected
5923           files are lib/silcutil/silcschedule.[ch].
5924
5925 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5926
5927         * Found a bug in the SKE implementation.  The HASH value,
5928           specified by the protocol, was not computed correctly.  The
5929           public key of the responder was not added to the computation
5930           even though it is mandatory.  Affected file lib/silcske/silcske.c.
5931           This unfortunately causes incompatibilities with older
5932           clients and servers.
5933
5934         * Added WIN32 specific network init and uninit functions:
5935           silc_net_win32_init and silc_net_win32_uninit to init and uninit
5936           the Winsock2.  Affected file lib/silcutil/silcnet.h and
5937           lib/silcutil/win32/silcwin32net.c.
5938
5939         * Set the socket always to nonblocking mode on WIN32 after
5940           reading data or writing data.  Affected file is
5941           lib/silcutil/win32/silcwin32sockconn.c.
5942
5943 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5944
5945         * Fixed various compilation problems under WIN32.  Affected
5946           files lib/silcutil/win32/silcwin32thread.c and
5947           lib/silcutil/win32/silcwin32schedule.c.
5948
5949         * Removed all _internal.h #includes from public header
5950           files.  Internal headers must never be included from
5951           public headers.
5952
5953           Removed also the lib/silcske/payload_internal.h file.
5954
5955         * All include files that may be needed (public and some others
5956           included by the public headers) by application developers are
5957           now copied to the ./includes directory.  It does not copy any
5958           internal headers.  Affected file Makefile.defines.pre and all
5959           Makefile.am's under lib/ and subdirs.
5960
5961 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5962
5963         * Do not change the ~/.silc directory's permissions automatically.
5964           Affected file irssi/src/silc/core/clientutil.c.
5965
5966 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5967
5968         * Do not cancel the protocol in silc_server_close_connection
5969           it might cause recursion.  Now cancelled in the function
5970           silc_server_free_sock_user_data.  Affected file silcd/server.c.
5971
5972         * Fixed the silc_server_remove_clients_by_server to regenerate
5973           the channel keys correctly finally.  Added also new function
5974           silc_server_remove_clients_channels to actually do it.
5975           Affected file silcd/server.c.
5976
5977         * Fixed the silc_server_new_channel to not crash by giving
5978           wrong router to the new channel.  Affected file is
5979           silcd/packet_receive.c.
5980
5981 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
5982
5983         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
5984           which is given as argument to the silc_client_alloc now.
5985           It can be used to configure the client and set various parameters
5986           that affect the function of the client.
5987
5988         * The USERS command in server did not check whether the channel
5989           is private or secret.  Affected file silcd/command.c.
5990
5991         * Added new argument to the USERS command in protocol specification.
5992           The USERS command now can take the channel name as argument
5993           as well.  Added support for this in client and server and
5994           updated the protocol specs.
5995
5996         * Completed the GETKEY command in client. It can be now used
5997           to fetch also servers public key not only some clients.
5998           Affected files lib/silcclient/command[_reply].c.
5999
6000         * Added silc_client_get_server to return server entry by the
6001           server name.  Affected files lib/silcclient/silcapi.h and
6002           idlist.c.
6003
6004         * Redefined the IDENTIFY command in protocol specification to be
6005           more generic.  It now can be used to query information about
6006           any entity in the SILC Network, including clients, servers and
6007           channels.  The query may be based either the entity's name
6008           or the ID.  Added support for this in both client and server.
6009
6010           Affected files silcd/command.c and lib/silcclient/command.c
6011           and command_reply.c.
6012
6013         * Optimized the WHOIS and WHOWAS commands in the server. Removed
6014           the _from_client and _from_server functions.  Affected file
6015           silcd/command.c.
6016
6017         * Added silc_client_get_channel_by_id_resolve to the file
6018           lib/silcclient/silcapi.h to resolve channel information by
6019           its ID.  Added also silc_client_get_channel_by_id that
6020           does not resolve it from the server.
6021
6022 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6023
6024         * Added SilcServerEntry context into the client library
6025           to represent one server.  The INFO command now allocates
6026           these to save the resolved server info.  For now on the
6027           client library will also keep information about servers,
6028           connected and resolved with INFO.
6029
6030           The INFO command now allocates the SilcServerEntry context
6031           and saves the server info there.  The COMMAND_REPLY in
6032           the INFO now returns the parameters to application in
6033           same order as defined in the protocol specification.
6034
6035           The entries are cached in the client->server_cache.
6036
6037         * The INFO command is now issued after received the Client ID
6038           from the server.  Affected file lib/silcclient/client.c.
6039
6040         * The CMODE_CHANGE notify may now return also an SilcServerEntry
6041           to the application as the mode changer might be server.
6042           It is guaranteed that NULL is not returned anymore to the
6043           application.  Affected file lib/silcclient/client_notify.c.
6044
6045           The ID Type is now also passed to the application so that
6046           it can check whether the returned entry is SilcClientEntry
6047           or SilcServerEntry.
6048
6049           Added new function silc_client_get_server_by_id to return
6050           the server entry by ID.  Affected files are the
6051           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
6052
6053         * Do not create the channel in the Irssi SILC Client when issuing
6054           the JOIN command but when received the sucessful JOIN command
6055           reply.  Otherwise the channel might get created even though we
6056           could not join it.  The Affected file is
6057           irssi/src/silc/core/[silc-channels.c/client_ops.c].
6058
6059         * Fixed a channel joining bug in router.  The router must also
6060           check the channel modes, invite and ban lists etc. when serving
6061           the JOIN command sent by normal server.  Affected file is
6062           silcd/command.c.  The router now resolves the client's
6063           information from the server who sent the JOIN command if it
6064           does not know it, and processes the JOIN command only after
6065           that.
6066
6067         * Changed the SilcCommandCb to take new argument; void *context2.
6068           Affected file lib/silccore/silccommand.h
6069
6070           The second argument in the command callbacks in the server now
6071           includes the SilcServerCommandReplyContext if the command was
6072           called as pending command callback from the command reply.
6073           Otherwise it is NULL. When called as pending the status of the
6074           command reply will be checked and if it was erronous the
6075           error will be sent to the original sender of the command.
6076           This way the client always receives the error messages even
6077           though the server was actually the one who received the error
6078           when it resent the command to router, for example.  Affected
6079           files silcd/command[_reply].[ch].
6080
6081         * Fixed sending WHOWAS command's error message to client if
6082           the requested client could not be found.  It was missing.
6083           silcd/command.c.
6084
6085         * Changed the CMODE and CUMODE commands reply arguments in the
6086           protocol specification.  The Channel ID is now sent in both
6087           of the commands to identify the channel.  Implemented this
6088           new feature to the client and server.  Affected files
6089           lib/silcclient/command_reply.c and silcd/command.c.
6090
6091         * Made better checks for invite and ban lists in the JOIN
6092           command in server.  Affected file silcd/command.c.
6093
6094 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6095
6096         * The server now performs the incoming host IP/DNS lookup
6097           using the silc_socket_host_lookup and thus does not block
6098           the server anymore.  Affected file silcd/server.c.
6099
6100         * Completed the multi-thread support for SILC Scheduler in
6101           the lib/silcutil/silcschedule.c.
6102
6103         * Fixed the configure.in.pre to detect the pthread correctly
6104           on various systems.
6105
6106         * Fixed a deadlock in silc_task_queue_wakeup in the file
6107           lib/silcutil/silctask.c.
6108
6109 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6110
6111         * Added new function silc_schedule_wakeup that is used in
6112           multi-threaded environment to wakeup the main thread's
6113           schduler. It needs to be used when a thread adds a new task
6114           or removes a task from task queues. After waking up, the
6115           scheduler will detect the task queue changes. If threads
6116           support is not compiled in this function has no effect.
6117           Implemented the wakeup mechanism to both Unix and WIN32
6118           systems.  Affected files are lib/silcutil/silcschedule.[ch],
6119           lib/silcutil/unix/silcunixschedule.c and the
6120           lib/silcutil/win32/silcwin32schedule.c.
6121
6122         * Added new function silc_task_queue_wakeup to wakeup the
6123           scheduler by the specified task queue.  Affected file
6124           lib/silcutil/silctask.[ch].
6125
6126         * The silc_socket_host_lookup_start now wakes up the scheduler
6127           after adding the timeout task.  Affected file is
6128           lib/silcutil/silcsockconn.c.
6129
6130         * The silc_socket_host_lookup is synchronous now if the threads
6131           support is not compiled in.  However, the callback is still
6132           called asyncronously through the scheduler, anyway.  Affected
6133           file lib/silcutil/silcsockconn.c.
6134
6135 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6136
6137         * Added new function silc_socket_host_lookup to perform
6138           asynchronous IP and FQDN lookups for the socket connection.
6139           Affected files lib/silcutil/silcsockconn.[ch].
6140
6141 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6142
6143         * Added SILC_MUTEX_DEFINE to define the mutex on environments
6144           that may or may not compile the mutex support in.
6145
6146           Changed the silc_mutex_alloc interface. It allocates the
6147           mutex now to the sent pointer and returns TRUE or FALSE.
6148
6149           Affected file lib/silcutil/silcmutex.h.
6150
6151         * Wrote the SILC Task Queue interface to support multi-threads.
6152           Affected file lib/silcutil/silctask.[ch].
6153
6154         * Wrote the SILC Scheduler to support multi-threads.  Affected
6155           file lib/silcutil/silcschedule.c.
6156
6157 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6158
6159         * Implemented the SILC Mutex API and SILC Thread API for WIN32
6160           in lib/silcutil/win32/.
6161
6162 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6163
6164         * Defined SILC Mutex API and SILC Thread API and implemented
6165           them for Unix.  Affected files are
6166           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
6167           lib/silcutil/unix/silcunixmutex.c and
6168           lib/silcutil/unix/silcunixthread.c.
6169
6170 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6171
6172         * Fixed the silc_server_remove_clients_by_server's channel
6173           key re-generation.  The hash table handling was incorrect
6174           and would not work with many channels.  Affected file is
6175           silcd/server.c.
6176
6177         * Fixed some memory leaks around the server code.
6178
6179         * Rewrote the silc_server_get_users_on_channel to support IPv6
6180           based Client ID's.  Affected file silcd/server.c.
6181
6182         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
6183           specification.  However, a separate document must be written
6184           to define the detailed signing procedure and the payload
6185           associated with the flag.  Defined the flag to the
6186           lib/silccore/silcchannel.h as well.
6187
6188 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6189
6190         * Changed the dynamic tables to static size tables in the
6191           lib/silccrypt/silchmac.c.
6192
6193         * Removed GCC dependencies from the code.  A patch by cras.
6194
6195 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6196
6197         * Do not show the error "Error receiving packet bla bla"
6198           in server if it really was not an error (-2 means that reading
6199           is pending).  Affected file silcd/server.c.
6200
6201 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6202
6203         * Fixed a possible crash in silc_server_remove_clients_by_server
6204           in silcd/server.c.  Fixed there also some memory leaks.
6205
6206         * Fixed the silc_idlist_replace_client_id.  It could replace
6207           wrong key in the hash table.  Affected file silcd/idlist.c.
6208
6209         * Do not check whether there are global users on the channel
6210           if the channel->global_users is FALSE.  Affected functions
6211           silc_server_remove_from_one_channel and
6212           silc_server_remove_from_channels in silcd/server.c.  Also,
6213           do not check if the removed client is local as we can be
6214           sure that global client was not removed from the channel
6215           and checking for global users is not needed.
6216
6217         * The silc_server_remove_clients_by_server now re-generates
6218           the channel keys correctly for those channels that had
6219           clients removed from them.  Affected file silcd/server.c.
6220
6221 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6222
6223         * Found the reason of random crashes in the server.  We weren't
6224           ignoring the SIGPIPE signal (which can be sent in write())
6225           and it crashed the server.  Affected file silcd/silcd.c.
6226
6227 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6228
6229         * Assure that sock->user_data is not NULL in the function
6230           silc_server_packet_send in silcd/packet_send.c.
6231
6232         * Disconnect the remote connection if it could not be added
6233           to any ID lists in the server.  The affected file is
6234           silcd/server.c.
6235
6236         * Check in silc_server_packet_send[_real/dest] that the
6237           socket is not disconnecting and ignore the data if it is.
6238           Affected file silcd/packet_send.c.
6239
6240         * Define inline to __inline on native WIN32 compilation.
6241           Affected file includes/silcwin32.h.
6242
6243         * Added some explicit type casts for inline code since MSVC
6244           require them.  Affected files lib/silcutil/silcbuffer.h,
6245           lib/trq/silcdlist.h and lib/trq/silclist.h.
6246
6247         * Print warning in log files from now on if the packet
6248           decryption fails.  Affected file silcd/server.c.
6249
6250 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6251
6252         * Changed the `say' client operation's interface to accept
6253           new `type' argument to indicate the type of the message sent
6254           by the library.  The application may filter the library's
6255           messages according the type.  The affected file is the
6256           lib/silcclient/silcapi.h.
6257
6258         * Added two new functions to lib/silcclient/silcapi.h:
6259           silc_client_del_client and silc_client_del_client_by_id.
6260           Affected file lib/silcclient/idlist.c.
6261
6262         * Moved the clientincludes.h from includes/ to silc/ and
6263           serverincludes.h from includes/ to silcd/.
6264
6265         * The modes for the CMODE and CUMODE are now passed as
6266           uint32 for application with COMMAND_REPLY.  The affected
6267           file is lib/silcclient/command_reply.c.
6268
6269 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6270
6271         * /WHOIS without arguments shows client's own information.
6272           Affected file lib/silcclient/command.c.
6273
6274         * Changed PING to not accept any arguments.  The specs
6275           says that client can ping only the connected server so
6276           requiring an argument is not needed.  Affected file is
6277           lib/silcclient/command.c.
6278
6279 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6280
6281         * Fixed a fatal bug in private message sending and reception
6282           encryption and decryption when using private message keys.
6283           The implementation was incorrect and did not follow the
6284           specification.  It causd that some of the message were
6285           lost since it did not use the sending and receiving keys
6286           as the protocol suggests.  This has been fixed and will cause
6287           incompatibilities with older clients when sending private
6288           message encrypted with private message keys.  Affected files
6289           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
6290           and various other in Irssi SILC Client.
6291
6292           Added `responder' boolean argument to the functions
6293           silc_client_add_private_message_key[_ske] to indicate when
6294           the key is added as responder or initiator of the key
6295           negotiation.
6296
6297 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6298
6299         * Removed the silc_ske_check_version function and created
6300           a SilcSKECheckVersion callback.  Added also a function
6301           silc_ske_set_callbacks that is now used to set all SKE
6302           callbacks.  The callback functions are not given to
6303           the SKE functions anymore, but this function is used to
6304           set the callbacks.
6305
6306         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
6307
6308         * Added `silc_version' argument to the silc_client_alloc
6309           to define the version of the application for the library.
6310           The library will use the version string to compare it
6311           against the remote host's (usually a server) version
6312           string.  Affected file lib/silcclient/silcapi.h
6313
6314         * Added the KE protocol context to Key Agreement context
6315           in client library so that we can abort the SKE if it
6316           is in process when we get timeout.  Affected file is
6317           lib/silcclient/client_keyagr.c.
6318
6319         * Do not resolve the client ID forever if it returns in the
6320           first time that such client does not exist.  This was done
6321           for example with private message.  Affected file is
6322           lib/silcclient/client_prvmsg.c.
6323
6324 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6325
6326         * Do not add regex.h for WIN32.  The affected file
6327           includes/silcincludes.h.
6328
6329         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
6330           not work yet 100%.  It generates the DLL's automatically
6331           when compiling with --with-win32 under cygwin.
6332
6333 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6334
6335         * lib/contrib/regex.c is not compiled on WIN32.
6336
6337         * Added silc_net_get_socket_opt function to the
6338           lib/silcutil/silcnet.h.
6339
6340         * Added includes/silcwin32.h for WIN32 specific includes
6341           and definitions.
6342
6343         * Do not use ptime structure or any of the posix process
6344           functions on WIN32 in lib/silccrypt/silrng.c.
6345
6346         * Added silc_gettimeofday to provide generic function
6347           for struct timeval on all platforms.  Added the function
6348           to lib/silcutil/silcutil.h.
6349
6350 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6351
6352         * Moved the lib/silccore/silcsockconn.[ch] to the utility
6353           library as they clearly belong there.  As a plus side we
6354           can make the actual socket connection routines platform
6355           specific.
6356
6357           Added also new generic function silc_socket_read and
6358           silc_socket_write (that used to be silc_packet_[read/write].
6359           The implementation of these are platform specific.
6360
6361         * Added WIN32 specific routines of silc_socket_[read/write]
6362           to lib/silcutil/win32/silcwin32sockconn.c.
6363
6364 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6365
6366         * Added preliminary support for native WIN32 compilation under
6367           cygwin (using the -mno-cygwin option for GCC) to the
6368           ./configure.in.pre.  The --with-win32 now prepares the
6369           compilation for native WIN32.
6370
6371         * Rewrote the SILC Scheduler interface in the file
6372           lib/silcutil/silcschedule.h.  The scheduler is now context
6373           based and does not have anymore any global static scheduler.
6374           Moved the Unix scheduler to the lib/silcutil/unix/ directory
6375           and created lib/silcutil/win32 directory for WIN32 based
6376           scheduler.
6377
6378         * Added Unix specific network routines to the
6379           lib/silcutil/unix/silcunixnet.c and the old
6380           lib/silcutil/silcnet.c includes now only generic routines.
6381
6382           Added WIN32 specific network routines to the
6383           lib/silcutil/win32/silcwin32net.c.
6384
6385         * Added Unix specific utility functions from the
6386           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
6387
6388         * Added WIN32 SILC Scheduler to the file
6389           lib/silcutil/win32/silcwin32schedule.c. The code is of course
6390           untested.
6391
6392 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6393
6394         * Do not handle JOIN notify in the server if the target client
6395           is not registered (idata->registered == FALSE).  The affected
6396           file is silcd/packet_receive.c.
6397
6398         * Update the nickrec->founder in event_cumode in the Irssi SILC
6399           client.  Affected file irssi/src/silc/core/silc-channels.c.
6400
6401         * Fixed the CUMODE_CHANGE notify handling in the server when
6402           server and router are announcing their clients on channels.
6403           Now the mode changes are saved and notified correctly.  The
6404           affected file is /silcd/packet_receive.c.
6405
6406         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
6407           They really did not replace the cache entry in the ID Cache.
6408           Now they do that.  Affected file silcd/idlist.c.
6409
6410         * Fixed the KICK notify handling in the Irssi SILC client to
6411           update the channel records so that the kicked client does not
6412           appear to be on the channel.  The affected file is
6413           irssi/src/silc/core/silc-channels.c.
6414
6415         * Always update the conn->current_channel when executing command
6416           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
6417
6418         * Fixed the KILL notify handling in Irssi SILC client to remove
6419           the killed client on all channels.
6420
6421 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6422
6423         * Fixed the silc_parse_command_line to remove extra spaces
6424           from the start and end of the arguments.  Affected file is
6425           lib/silcutil/silcutil.c.
6426
6427         * Cancel and free any active protocol in the function
6428           silc_server_close_connection.  Affected file silcd/server.c.
6429
6430         * Cancel and free any active protocol in the function
6431           silc_client_close_connction.  Affected file is
6432           lib/silcclient/client.c.
6433
6434         * Do not execute the KILL command for clients that are in
6435           history (ie. they are not in the network).  Affected file is
6436           silcd/command.c.
6437
6438         * Fixed KILL notify handling, client does not crash anymore.
6439           Affected file irssi/src/silc/core/silc-channels.c.
6440
6441         * Reduced the default packet buffer size from 2048 to 1024 in
6442           lib/silccore/silcpacket.c.
6443
6444         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
6445           counter to the SKE context that is incresed when the SKE library
6446           performs async operation outside the library.  If the outside
6447           process frees the SKE context and FREED status will be set
6448           and the library will detect after the sync operation that the
6449           libary is freed.  The affected files are
6450           lib/silcske/silcske[_status].[ch].
6451
6452         * Resolve the client entry information in the function
6453           silc_client_channel_message to assure that NULL pointer is not
6454           passed as client entry to the application. */
6455
6456         * Fixed the task timeout calculation to assure that there is
6457           never negative timeouts.  The affected file is
6458           lib/silcutil/silcschedule.c.
6459
6460         * Fixed the channel user mode notification sending in server.
6461           It was sent point-to-point to the router (or to server by router)
6462           but it needs to be destined to a channel.  The routines now
6463           supports sending the channel user mode notifys to the channels
6464           when announcing clients and channels.  Affected files are
6465           silcd/server.c and silcd/packet_receive.c.
6466
6467         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
6468           It did not actually replace the old channel entry in the cache.
6469           Affected file lib/silcclient/client_notify.c.
6470
6471 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6472
6473         * Fixed a possible crash in silc_packet_send_prepare.  It now
6474           assures always that there is enough space in the buffer and
6475           at the tail area of the buffer (for MAC).
6476
6477           Fixed the inbound buffer reallocation in silc_packet_read.
6478           It was old code and did not handle the reallocation correctly.
6479           Affected
6480
6481           The affected file is lib/silccore/silcpacket.c.
6482
6483         * Fixed buffer overflow in silc_parse_nickname in the file
6484           lib/silcutil/silcutil.c.
6485
6486 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6487
6488         * make install generates new server keys only if there is not
6489           keys already.
6490
6491 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6492
6493         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
6494           Added check that if the NOREPLY is set then we will not send
6495           the away message.  This avoids infinite loop of away messages
6496           if both clients are away.  The affected file is
6497           lib/silcclient/client_prvmsg.c.
6498
6499         * Fixed client crash if /NICK was given without arguments.
6500           Affected file lib/silcclient/command.c.
6501
6502         * Server does not send the invite list in INVITE command back
6503           to the client if the list was not altered.  Added this notion
6504           to the protocol spec as well.  Affected file silcd/command.c.
6505
6506           Fixed possible crash in INVITE command by checking the
6507           value of silc_server_get_client_route command.
6508
6509         * Fixed the INVITE notify type handling.  The arguments are now
6510           taken in correct order and client does not crash.  The affected
6511           file is irssi/src/silc/core/silc-channels.c.
6512
6513           Removed the "Inviting xxx to channel" message from the
6514           client library away and let the application handle it.
6515           Affected file lib/silcclient/command.c.  Added that message
6516           to Irssi SILC client's message formats.
6517
6518         * Fixed CMODE command crash in client.  It now checks the
6519           amount of arguments correctly and does not crash.  The affected
6520           file is lib/silcclient/command.c.
6521
6522         * Do not create new channel automatically in silc_channels_join
6523           but check whether the channel by that name already exists.
6524           Affected file irssi/silc/core/silc-channels.c.
6525
6526         * Do not send the SERVER_SIGNOFF to router if the disconnected
6527           entity was the router.  Affected file silcd/server.c.
6528
6529         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
6530           SILC client as it was missing from there.
6531
6532           Added the handling of the KICK notify to the Irssi SILC client
6533           as it was missing.  Added "you have been kicked" message to
6534           Irssi SILC client's message modules formats.
6535
6536           Added the handing of the KILL notify to the Irssi SILC client
6537           as it was missing.  Added the kill message module formats
6538           as well.
6539
6540           The affected file is irssi/src/silc/core/silc-channels.c.
6541
6542         * The router did not save the channel mode the server announced.
6543           Affected file silcd/packet_receive.c.
6544
6545         * Fixed a possible crash in INFO command in server.  If the
6546           server did not provide the server info it crashed.  Affected
6547           file silcd/command.c.
6548
6549 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6550
6551         * Fixed the GETKEY command in the server to check also the
6552           global list.  Otherwise the GETKEY would not work correctly
6553           in normal SILC server.  Affected file silcd/command.c.
6554
6555 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6556
6557         * Fixed GETKEY crash, it crashed if the command did not succseed.
6558
6559 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6560
6561         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
6562           is now real and not just an macro interface to GMP.
6563
6564           Removed the entire GMP from the source tree and imported new
6565           NSS MPI library instead.  Reason for removing GMP is that it is
6566           extremely large and compiles extremely slow.  The NSS MPI
6567           is only a few files and compiles in less than 10 seconds.
6568           The speed is also about the same as GMP.  The MPI is imported
6569           to lib/silcmath/mpi.
6570
6571           If the system has GMP installed we will still use the GMP.
6572           If it is not then the NSS MPI will be compiled.
6573
6574 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6575
6576         * Merged a long nickname (127 characters long) crash bugfix from
6577           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
6578
6579         * Merged a freed memory reference bugfix from Irssi CVS tree.
6580           Affected file irssi/src/core/commands.c.
6581
6582 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6583
6584         * Added the server's public key sving and verification to the
6585           server when performing the SKE.  This was missing and the
6586           remote server's (or router's) public key was accepted without
6587           checking whether we have it previously or trust it at all.
6588           Affected file silcd/protocol.c.
6589
6590 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6591
6592         * Check in the silc_server_timeout_remote if protocol is active
6593           and make sure that the protocol's final callback is called so
6594           that all memory if freed.  Affected file silcd/server.c.
6595
6596 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6597
6598         * silc_server_whois_send_reply crashed the server if the nickname
6599           was 127 characters long.  Affected file silcd/command.c.
6600
6601 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6602
6603         * Added sanity check to the silc_server_new_client. If the hostname
6604           is provided inside username then check that the provided hostname
6605           really is the same as the resolved one.  If the hostname was not
6606           resolved then check it from the public key.  Affected file is
6607           silcd/packet_receive.c.
6608
6609         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
6610           if the server disconnected us and the connection is not valid
6611           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
6612
6613         * Moved the silc_client_[chmode|chumode|chumode_char] away from
6614           the library to the lib/silcutil/silcutil.[ch].
6615
6616 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6617
6618         * Close log file after open.  Affected file
6619           lib/silcutil/silclog.c.
6620
6621         * Check whether sock == NULL in silc_client_send_packet and return
6622           if it is.  Affected file lib/silcclient/silcclient.c.
6623
6624         * Check rec->entry == NULL in the Irssi SILC Client before
6625           sending the channel message.  Affecte file is
6626           irssi/src/silc/core/silc-servers.c.
6627
6628 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6629
6630         * Merged a splitted window bugfix from Irssi CVS tree.  The
6631           affected file is irssi/src/fe-text/textbuffer-view.c.
6632
6633         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
6634           It did not print nickname.
6635
6636         * Improved the distributions system a bit.
6637
6638 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6639
6640         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
6641           irssi/src/fe-text/gui-window.c.
6642
6643         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
6644           to in-active server.  The affected file is
6645           irssi/src/silc/core/client_ops.c.
6646
6647         * Resolve the client in USERS command reply if the entry does
6648           not have username resolved.  The affected file is
6649           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
6650           command to WHOIS command to really resolve stuff.  The USERS
6651           is not used any more in any critical section so WHOIS can
6652           be used even though it might be slower than IDENTIFY.
6653
6654         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
6655           format.
6656
6657 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6658
6659         * Changed the protocol API a bit more consistent in the
6660           lib/silccore/silcprotocol.[ch].
6661
6662         * Changed the following headers to ROBODoc format:
6663
6664                 lib/silccore/silcpayload.h
6665                 lib/silccore/silcprotocol.h
6666                 lib/silccore/silcsockconn.h
6667
6668           All core library headers are now formatted.
6669
6670 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6671
6672         * Fixed a bug in Irssi SILC client; do not show that you are
6673           server/router operator if you really are not.  Affected file is
6674           irssi/src/silc/core/client_ops.c.
6675
6676         * Renamed silc_command_free_payload to silc_command_payload_free.
6677           Affected file lib/silccore/silccommand.h
6678
6679         * Added silcmath.h to include the prototoypes of various routines
6680           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
6681           silcprimegen.h.
6682
6683         * Changed the following headers to ROBODoc format:
6684
6685                 lib/silccore/silcchannel.h
6686                 lib/silccore/silccommand.h
6687                 lib/silccore/silcid.h
6688                 lib/silccore/silcidcache.h
6689                 lib/silccore/silcmode.h
6690                 lib/silccore/silcnotify.h
6691                 lib/silccore/silcpacket.h
6692                 lib/silcmath/silcmath.h
6693
6694 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6695
6696         * Added checking to the server code not to start the server if
6697           ciphers and stuff are not configured properly.  Affected files
6698           silcd/serverconfig.[h] and silcd/server.c.
6699
6700         * Changed the layout of the header files of the public interfaces
6701           in the SILC libraries.  The new layout supports ROBODoc
6702           documentation tool (and some others) so that it is easy to create
6703           a library reference manual.  All the other headers and source
6704           code must still follow the CodingStyle document.  Also source
6705           code must not include these ROBODoc stuffs, only the headers.
6706           Furthermore, all public interface headers must now be named
6707           by using `silc' prefix, example: silcapi.h, silccipher.h.
6708           Some files were renamed due to this.  All the other headers
6709           must not be used as public interfaces.  I will update the
6710           CodingStyle document later.  Changed following headers, so far:
6711
6712                 lib/silcclient/silcapi.h
6713                 lib/silccore/silcauth.h
6714                 lib/silccore/silcprivate.h
6715                 lib/silccrypt/silcdh.h
6716
6717 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6718
6719         * Updated TODO.
6720
6721         * Removed silc_client_packet_send_flush from the client library
6722           as it is not needed.  Affected file lib/silcclient/client.[ch].
6723
6724         * Added printing of message of unresolved authentication method
6725           to the Irssi SILC client.  Added it to the module formats.
6726           Removed the same message from the client library.
6727
6728 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6729
6730         * Added new distribution feature, DISTLABEL.  Every distribution
6731           can define own preprocessor label that can be used in the
6732           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
6733           file distributions, acconfig.h.pre and prepare.
6734
6735 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6736
6737         * Added Makefile.defines_int to include the actual definitions
6738           for Makefile.defines.in.  Tested the new distribution system,
6739           created distributions and tested installation.
6740
6741         * Added AWAY message printing to the Irssi SILC client.  Added
6742           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
6743
6744         * Added SCONNECT command to call the SILC's CONNECT command.
6745           Cannot use CONNECT directly since Irssi uses that internally.
6746           Affected file irssi/src/silc/core/silc-servers.c.
6747
6748           Added ACTION local command.  It is same as ME command but takes
6749           the channel as mandatory argument.
6750
6751           Rewrote some of the Irssi's help files to suite for SILC
6752           protocol.
6753
6754 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6755
6756         * Added Makefile.defines[.in] that should for now on be included
6757           in all Makefile.am file in the source tree.  That file includes
6758           all common compilation definitions for SILC source tree.
6759
6760 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6761
6762         * Minor changes to the ./prepare script to change the package
6763           name according the distribution name to the configure.in.
6764
6765 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6766
6767         * Created new distribution system.  Added file `distributions'
6768           that defines all the distributions that can be created out of
6769           the SILC source tree.  The ./prepare script now reads that
6770           file to determine how to prepare the distributions.  The
6771           first argument to the ./prepare is the name of the distribution
6772           and second is the version of the distribution.  If given
6773           without arguments it creates the default (toolkit) distribution
6774           with the default version (defined in ./prepare).
6775
6776           All Makefile.am files that are subject to the distributions
6777           are now named as Makefile.am.pre.  These are ./Makefile.am
6778           and lib/Makefile.am.  Others may be changed later.
6779
6780 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6781
6782         * Added invite list, ban list, some key management and connection
6783           error message printing to module formats in the Irssi SILC client.
6784
6785         * Added new silc_client_set_away_message to set the away message
6786           that is back to the person who sent private message.  The
6787           affected file lib/silcclient/silcapi.h and the
6788           lib/silcclient/client_prvmsg.c.
6789
6790 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6791
6792         * Fixed the private message sending in the Irssi SILC client,
6793           added local command KEY to the Irssi SILC client.
6794
6795           Added key management and key agreement message formats to the
6796           irssi/src/fe-common/silc/module-formats.[ch].
6797
6798           Added USERS (alias WHO) printing, server/router operator
6799           indication and LIST command printing to the module formats.
6800
6801 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6802
6803         * Fixed channel joining notify handling, cumode notify handling
6804           from Irssi SILC client.
6805
6806         * Added SILC specific module-formats to the Irssi SILC client so
6807           that SILC specific message hilighting, colors etc is possible.
6808           Affected file irssi/src/fe-common/silc/module-formats.[ch].
6809
6810           Added channel mode, channel user mode, actions, notices,
6811           whois and whowas printing to the the module-formats.c.
6812
6813         * Fixed a bug in channel deletion in the server.  The channel
6814           is not left to the cache even if the channel founder auth mode
6815           is set when there are no users anymore on the channel.  Affected
6816           file silcd/server.c.
6817
6818         * The silc_net_localhost now resolves the entire hostname including
6819           the domain name.  Affected file lib/silcutil/silcnet.c.
6820
6821 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6822
6823         * Changed the ask_passphrase client operation to be ascynchronous.
6824           It has now a completion callback and a context that the
6825           application must call after it has got the passphrase from
6826           the user.  Affected files lib/silcclient/silcapi.h,
6827           lib/silcclient/protocol.c, lib/silcclient/command.c and
6828           silc/client_ops.c.
6829
6830           Added SilcAskPassphrase callback that the application calls
6831           to deliver the passphrase to the library.
6832
6833         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
6834           The public key verification and especially a certificate
6835           verification is asynchronous procedure.
6836
6837           Added new SILC_SKE_STATUS_PENDING status to indicate the
6838           request is pending and a callback will be called to finalize
6839           the request.
6840
6841           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
6842           indicate that remote end did not send its public key (or
6843           certificate), even though we require it.  Added check for this
6844           condition in the SKE.  This was a security bug, now fixed.
6845
6846           Defined new SilcSKEVerifyCbCompletion callback that is called
6847           when the verification process is completed.
6848
6849           The affected files lib/silcske/silcske_status.h and
6850           lib/silcske/silcske.[ch].
6851
6852         * Changed the verify_public_key client operation to be async
6853           as well.  Defined SilcVerifyPublicKey callback that is used to
6854           indicate the success of the public key verification process.
6855
6856           Changed the server and client to use the new async client
6857           operations.
6858
6859         * Changed the Irssi SILC client's internal scheduler to be called
6860           twice as many times as it used to be.  As a result the client
6861           should be a bit faster now.  Affected file is
6862           irssi/src/silc/core/silc-core.c.
6863
6864         * Added support to Irssi SILC client of asynchronous public key
6865           verification and passphrase inquiry.  Affected file is
6866           irssi/src/silc/core/silc-core.c.
6867
6868 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6869
6870         * Do not say "You have left channel %s" in client library.
6871           Moved it to the application.  Affected files are
6872           lib/silcclient/command.c and silc/client_ops.c.
6873
6874         * Fixed silc_client_get_clients.  Command context was not
6875           duplicated and was freed memory in the callback.  Affected
6876           file lib/silcclient/idlist.c.
6877
6878         * Do not say "you are now talking..." on JOIN command in the
6879           client library.  The appliation must handle it.
6880
6881         * Do not say ".. changed topic to" in command reply in the
6882           client libary.  The application must handle it.
6883
6884         * Fixed TOPIC command sending in the client library.
6885
6886         * Fixed a memory leak in silc_client_command_free in the file
6887           lib/silcclient/command.c.
6888
6889 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6890
6891         * Imported a modified version of Irssi client to the source tree.
6892           The Irssi will be used to create a new client called
6893           Irssi SILC.  Imported to irssi/.
6894
6895           Added silc_core_init_finish function to the Irssi.  Affected
6896           file irssi/configure.in.
6897
6898           A lot changes in the Makefile.ams around the irssi tree.
6899
6900 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6901
6902         * Do not rehash if the new size is same as the old size of the
6903           hash table, in the silc_hash_table_rehash*.  The affected file
6904           lib/silcutil/silchashtable.c.
6905
6906         * Replaced hash_table_del_by_context calls from the server
6907           (when channel->user_list and client->channels) to the
6908           hash_table_del as it is sufficient and faster.
6909
6910 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6911
6912         * Added silc_hash_table_list, silc_hash_table_get and the
6913           SilcHashTableList structure to provide an alternative way to
6914           traverse the hash table.  The affected files are
6915           lib/silcutil/silchashtable.[ch].
6916
6917         * Changed the server's idlist routines to use the hash table
6918           routines to optimize the code.
6919
6920 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6921
6922         * Replaced the client entry's `channel' list and channel entry's
6923           `user_list' list to hash tables for optimized lookup.  Changed
6924           the code to use the hash table interface around the code.
6925           Affected file lib/silcd/idlist.[ch].
6926
6927         * Added `auto_rehash' boolean argument to the function
6928           silc_hash_table_alloc to indicate whether the hash table should
6929           auto-rehash when it thinks is appropriate time.  It will
6930           increase the hash table size if the there is twice as much
6931           entries in the table than the size of the table, and will
6932           decrease the size if there are twice as less entries than
6933           the size of the table.
6934
6935 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6936
6937         * Fixed silc_xxx_get_supported to not crash at some circumstances.
6938
6939 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6940
6941         * silc_idcache_purge_by_context deletes the entry now by context
6942           as it is supposed to do.  Affected file lib/silccore/idcache.c.
6943
6944         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
6945           client is not anymore valid (WHOWAS givens the info) and not
6946           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
6947
6948 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6949
6950         * Removed the `data' and `data_len' arguments from the ID Cache
6951           interfaces and added `name' argument.  ID Cache does not handle
6952           anymore the binary data only a names associated with given ID.
6953
6954         * When hashing a Client ID with silc_hash_id the entire ID is
6955           not hashed anymore, instead only the hash of the Client ID is
6956           hashed.  This way we can access the Client ID from the cache
6957           with Client ID but with the hash of the ID (which is a hash of
6958           the nickname) as well without any difference in performance.
6959
6960           Added also silc_idcache_find_by_id_one_ext to do one on one
6961           searching when we have the actual ID.  Added also function
6962           silc_hash_client_id_compare.  The affected files are
6963           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
6964
6965         * When hashing the name associated with a ID it is always done
6966           in lowercase.  This way we can access the cache without worrying
6967           about case-sensitivity, even though, for example nicknames are
6968           case sensitive.
6969
6970         * Fixed a bug in server with channel message sending.  It put
6971           wrong ID type as destination ID.  The affected file
6972           silcd/packet_send.c.
6973
6974         * silc_idcache_del_by_context now deletes from all hash tables
6975           by context.  Affected file lib/silccore/idcache.c.
6976
6977 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6978
6979         * Changed the client library to use the new ID Cache interface.
6980           Changes around the source tree.
6981
6982         * Added silc_hash_table_rehash_ext to rehash with specific
6983           hash function.  Affected file lib/silcutil/silchashtable.[ch].
6984
6985         * Added silc_hash_string_compare to compare two strings in the
6986           hash table.  Affected file lib/silcutil/silcutil.[ch].
6987
6988 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6989
6990         * Added new function silc_idcache_del_by_context into the
6991           lib/silccore/idcache.[ch].
6992
6993         * Changed the server's ID list routines to use the new ID Cache
6994           interface.  Changes around the source tree.
6995
6996 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6997
6998         * Added silc_hash_table_del[_by_context]_ext functions in to the
6999           lib/silcutil/silchashtable.[ch].
7000
7001           Removed silc_hash_table_find_all* routines and added new
7002           silc_hash_table_find_foreach to replace them.
7003
7004           Added silc_hash_table_replace_ext function as extended
7005           replacing function.  Separated the simple hash table interface
7006           from the extended hash table interface in the file
7007           lib/silcutil/silchashtable.h.
7008
7009         * Fixed minor bugs and changed it to use some of the new
7010           hash table functions in lib/silccore/idcache.c
7011
7012 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7013
7014         * Added new function silc_hash_table_find_all to return all keys
7015           in the hash table by the specified key.  As the hash table is
7016           collision resistant it also makes it possible to have several
7017           duplicate keys in the hash table.  This function may be used to
7018           find all of the keys from the hash.
7019
7020           Added user_context arguments to the SilcHashFunction,
7021           SilcHashCompare and SilcHashDestructor to deliver user specified
7022           context.
7023
7024           Added new fuctions silc_hash_table_find[_all]_ext to do
7025           extended lookup with specified hash and compare functions and
7026           specified user contexts.
7027
7028           Added new function silc_hash_table_add_ext to add the key
7029           with specified hash function and user context.
7030
7031           Added new function silc_hash_table_foreach to traverse all
7032           entrys in the hash table.  Added SilcHashForeach callback
7033           function.
7034
7035           Added new function silc_hash_table_del_by_context to delete
7036           the entry only if the context associated with the key matches.
7037
7038           Affected files are lib/silcutil/silchashtable.[ch].
7039
7040         * Removed silc_hash_[server/client/channel]_id and added just
7041           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
7042           silc_hash_id_compare to compare two ID's using as the hash table
7043           comparison function.  Added also silc_hash_data to hash
7044           binary data and silc_hash_data_compare to compare it.
7045
7046         * Removed silc_idlist_find_client_by_hash as it is not needed
7047           anymore.  Affected file silcd/idlist.[ch].
7048
7049         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
7050           to use internally the SilcHashTable.  The new ID Cache is a lot
7051           faster than the old one.  Some of the ID Cache interface was also
7052           rewritten and obsolete and stupid functions were removed.
7053
7054 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7055
7056         * Added entry_count field to the SilcHashTable to keep the number
7057           of the entries in the table.  Implemented the function
7058           silc_hash_table_rehash.  Added new function
7059           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
7060
7061           Fixed a minor bug in silc_hash_table_free.
7062
7063         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
7064           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
7065           into the lib/silcutil/silcutil.[ch].
7066
7067 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7068
7069         * Implemented a collision resistant hash table into the
7070           lib/silcutil/silchashtable[ch].  See the header and the source
7071           for the SilcHashTable API.
7072
7073 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7074
7075         * Merged dotconf version 1.0.2 into lib/dotconf.
7076
7077 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7078
7079         * Do not compile anything in lib/silcsim/* if the SIM support
7080           is not enabled.  The tree should now compile without problems
7081           under cygwin.
7082
7083 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7084
7085         * Compiled the SILC under cygwin.  Compiled and tested briefly
7086           without problems.  More tests needed.  The SIMs didn't compile
7087           though.
7088
7089         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
7090
7091         * Fixed possible crash in silc_get_username in the
7092           lib/silcutil/silcutil.c.
7093
7094 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7095
7096         * Fixed a va_arg in silc/client_ops.c.
7097
7098         * Oops, RC5 routines were named AES and caused some problems
7099           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
7100
7101 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7102
7103         * Added new SilcIDIP structure into the lib/silccore/id.h and
7104           replaced the old `ip' fields from all SILC ID's to that type.
7105           This is a step towards IPv6 support.
7106
7107           The silc_id_get_len takes now the ID as an extra argument.
7108           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
7109           both IPv4 and IPv6 based ID's.
7110
7111           The affected files are lib/silccore/id.[ch] and other files
7112           around the tree using these routines.
7113
7114         * Removed the ID length arguments in server from various
7115           silc_server_send_notify_* routines -> they are not needed
7116           anymore.
7117
7118 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7119
7120         * Fixed memory leak in silc_encode_pem_file in the file
7121           lib/silcutil/silcutil.c.
7122
7123 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7124
7125         * Check minor version as well in the SKE.  Affected files are
7126           silcd/protocol.c and lib/silcclient/protocol.c.
7127
7128         * Added --identifier option to the server so that an identifier
7129           can be when creating the public key for the server.  Affected
7130           file is silcd/silcd.c.
7131
7132         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
7133           lib/silccrypt/silcpkcs.c.
7134
7135 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7136
7137         * Register default ciphers and stuff when using -C option with
7138           the server.  Affected file sildc/silcd.c.
7139
7140         * Put back the servers public key filename format, it is better
7141           than the new one.  For now, the client keys are saved with the
7142           new filename format.  The affected file silc/client_ops.c.
7143
7144         * Implemented the Cipher API for the rest of the ciphers that
7145           did not implement it or implemented it the wrong way.
7146
7147 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7148
7149         * Register default ciphers and stuff when using the -S option
7150           in the client.  Affected file silc/silc.c.  Same also when
7151           creating new key pair with -C option.
7152
7153 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7154
7155         * Fixed the silc_verify_public_key client operation function to
7156           save the public keys differently.  The fingerprint is now
7157           used as filename and not the hostname.  This way also the
7158           client keys are saved uniquely and not with hostnames.  The
7159           affected file is silc/client_ops.c.
7160
7161         * Trimmed the silc_hash_fingerprint function to remove extra
7162           whitespaces from the end of the fingerprint.  The affected
7163           file is lib/silccrypt/silchash.c.
7164
7165         * Updated TODO.
7166
7167         * Added silc_cipher_register_default function to register all
7168           default ciphers.  It can be used when configuration files
7169           does not exist and the application does not want any specific
7170           ciphers in any specific order.
7171
7172           The SilcDList is now used as silc_cipher_list dynamically
7173           allocated cipher list.  Removed the static list all together
7174           and now all ciphers must be allocated to the dynamic list.
7175           The silc_cipher_alloc routine was changed to check only the
7176           dynamic list.
7177
7178           All silc_cipher_* routines that used to return int returns
7179           now bool.
7180
7181           The affected files lib/silccrypt/silccrypt.[ch].
7182
7183         * The same thing was done to silc_hash_* as for silc_cipher_*
7184           routines.  Affected files lib/silccrypt/silchash.[ch].
7185
7186         * The same thing was done to silc_pkcs_* as for silc_cipher_*
7187           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
7188           Added also silc_pkcs_[un]register[_default] functions.
7189           Removed the data_context from the PKCS API.
7190
7191         * Added silc_hmac_register_default function to register default
7192           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
7193           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
7194           to unregister all hmacs at once.
7195
7196         * Register the default ciphers, hash functions, PKCSs and HMACs
7197           if client's configuration file does not exist.  The affected
7198           file silc/silc.c.
7199
7200         * The client did not load the hash functions from the SIM
7201           modules at all.  Added support for this.  Affected file is
7202           silc/clientconfig.c.
7203
7204         * When decoding public key with silc_pkcs_public_key_decode, check
7205           the supported algorithm only if PKCS are registered.  Affected
7206           file lib/silccrypt/silcpkcs.c.  The same was done with the
7207           silc_pkcs_private_key_decode.
7208
7209         * Fixed the SILC List routines to keep the list always in order.
7210           It used to change the list's order when traversing the list but
7211           not it preserves the order.  Affected file lib/trq/silclist.h.
7212
7213 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7214
7215         * Added the client library to use the SilcSocketConnection's
7216           reference counter (by silc_socket_dup) to prevent the bug that
7217           the socket object may be freed underneath async operation.
7218
7219         * The name resolv library checking fixes in the configure.in.pre.
7220           The patch by salo.
7221
7222         * Created new version of the protocol drafts for future
7223           development. The -03 drafts are the ones that will be changed
7224           in the trunk now and the -02 will remain as they are.
7225
7226         * Send list of CUMODE notifys to the router when announcing
7227           the channel users to the router.  Affected file silcd/server.c.
7228           If the router receiving channel founder CUMODE for a channel
7229           that already has channel founder it will send CUMODE notify
7230           to the sender to remove the channel founder rights from the
7231           announced client.  Affected file silcd/packet_receive.c.
7232
7233         * The CUMODE notify may now use Server ID as well as the entity
7234           who changes the mode.  Updated protocool specs.
7235
7236         * Updated INSTALL and README files.
7237
7238 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7239
7240         * New web pages in the http://silc.pspt.fi.  The pages was
7241           designed by salo.
7242
7243         * Updated CREDITS.
7244
7245 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7246
7247         * Implemented the [DenyConnectin] config section in the server.
7248           Added silc_server_config_denied_conn to check whether incoming
7249           connection is denied.  Affected file silcd/serverconfig.[ch].
7250
7251         * Do not check the ports when checking the incoming configuration
7252           data if the port is 0, meaning any.  Affected file is
7253           silcd/serverconfig.c.
7254
7255 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7256
7257         * Fixed buffer overflow in silc_string_compare in the file
7258           lib/silcutil/silcutil.c.
7259
7260         * Fixed double free in silc_server_command_leave in the file
7261           silcd/command.c.
7262
7263 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7264
7265         * Fixed the version checking in the server.  Affected file is
7266           silcd/protocol.c.
7267
7268 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7269
7270         * Fixed the configuration data fetching when accepting new
7271           connections in the server.  Affected file silcd/server.c.
7272
7273 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7274
7275         * Added `sender_entry' argument to the function
7276           silc_server_packet_relay_to_channel so that we can check
7277           whether some destination actually belongs to the same route
7278           the sender belongs (ie, we must not resend the packet to the
7279           sender).  Affected file silcd/packet_send.[ch].
7280
7281         * Added `servername' field to the SilcClientEntry in the server
7282           to hold the name of the server where client is from.  Affected
7283           file is silcd/idlist.h.
7284
7285 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7286
7287         * Moved the channel message encrypting in the router betwen
7288           router connections from silc_server_channel_message to the
7289           silc_server_packet_relay_to_channel since we want to check
7290           whether we have anybody channel before encrypting anything.
7291           Affected files silcd/packet_[receive/send].c.
7292
7293 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7294
7295         * Fixed the [AdminConnection] server config section to support
7296           multiple entries.  Affected file silcd/serverconfig.c.
7297
7298         * Added support into the server to check the validity of the
7299           incoming connection before executing any KE or authentication
7300           protocols.
7301
7302         * The connection configuration is now saved to the KE and
7303           connection auth protocol contexts and not fetched anymore in
7304           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
7305
7306         * The local hosts listenning address and port is also resolved
7307           now when starting the server.  We want to have the socket object
7308           to include the real address and port for the listener.  Added
7309           new function silc_net_check_local_by_sock into the files
7310           lib/silcutil/silcnet.[ch].
7311
7312         * Fixed a broadcast bug in server -> do not broadcast if we
7313           are standalone.
7314
7315         * Fixed a routing bug.  Do not route broadcast packets ever.
7316           Broadcast packets must be processed always and not routed since
7317           they may be destined to some other host than yourself and thus
7318           would get routed without no good reason.  Affected file is
7319           silcd/server.c.
7320
7321         * Added function silc_server_config_is_primary_route to check
7322           whether primary router connection has been configured (a router
7323           configuration that we are initiating).  If there is not, we
7324           will assume that there is only two routers in the SILC network
7325           and we will use the incoming router connection as our primary
7326           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
7327
7328         * Changed the order of the broadcasting.  Broadcast _after_ the
7329           packet has been processed not before.  Affected file is
7330           silcd/server.c.
7331
7332         * Fixed a [ClientConnection] parsing bug.  The port was never
7333           parsed correctly thus resulting to port 0.  Affected file
7334           silcd/serverconfig.c.
7335
7336         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
7337           argument and did not set the broadcast packet flag.  Affected
7338           file silcd/packet_send.c.  Fixed same bug in the function
7339           silc_server_send_notify as well.
7340
7341         * If we receive NEW_ID packet for our own ID in the server, ignore
7342           the packet.
7343
7344 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7345
7346         * Updated TODO.
7347
7348         * Removed the nickname from the Private Message Payload.
7349           Updated the code and the protocol specs.
7350
7351         * Updated protocol specs for submitting to the IETF.
7352
7353         * Tweaked the Random Number Generator a bit.  Affected file
7354           lib/silccrypt/silcrng.c.  Exported a new function
7355           silc_rng_[global]_add_noise which can be used to add more
7356           noise to the RNG.
7357
7358 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7359
7360         * Do not parse packets with different timeout when protocol
7361           is active -> may cause problem with rekey.  Affected file
7362           silcd/server.c.
7363
7364         * When server receives signoff notify it must not create
7365           new channel key if the client is on any channels since the
7366           sender of the signoff notify will create it.
7367
7368 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7369
7370         * Added printing of error messages during SKE protocol from the
7371           failure packet sent by server during SKE.  Affected file
7372           silc/client_ops.c.
7373
7374         * Removed the client's failure_callback handling with timeout
7375           and handle it immediately when received.
7376
7377         * The SKE library returned wrong type in SUCCESS and FAILURE
7378           packets.  They must be 32 bit MSB not 16 bit MSB.
7379
7380 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7381
7382         * Ok, rewrote the logic of the re-key and now it seems to work.
7383           I tested it on high traffic with frequent re-keys without
7384           problems.  Added hmac_receive (and renamed hmac to hmac_send)
7385           in SilcClientConnection in lib/silcclient/client.h and
7386           in SilcIDListData in silcd/idlist.h.  Also, removed the
7387           SilcPacketParserContext's cipher and hmac fields as they are
7388           not needed anymore and actually caused some problems when
7389           the ciphers and hmac's changed underneath the packet parser.
7390
7391 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7392
7393         * If re-key protocol is active then process the incoming packets
7394           synchronously since we must assure that icoming packets encrypted
7395           with the old key is processed before the new keys is set to
7396           use.  This is true other packets than for REKEY packets.
7397           Affected file silcd/server.c.  The same was done to client library
7398           as well, affected file lib/silcclient/client.c.
7399
7400 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7401
7402         * Fixed bug in client and server to accept the force send if
7403           the packet is send from silc_[server/client]_packet_process
7404           function.  Otherwise the packets are never delivered, oops.
7405
7406 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7407
7408         * Disable force sending of packets when REKEY protocol is active.
7409           We must assure that no packet is sent directly when rekey is
7410           performed.  All packets must be sent through packet queue.
7411           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
7412           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
7413           function is silc_[server/client]_packet_send_real to check
7414           the situation.
7415
7416         * Replaced the SIM paths from example config files to
7417           /usr/local/modules.  Also, make install creates now
7418           /usr/local/silc/logs directory to hold all the SILC server
7419           logs.
7420
7421 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7422
7423         * Made the configure.in.pre work on Solaris.  Patch by salo.
7424
7425         * Made all ciphers compatible with non-x86 machines.  Defined
7426           CBC mode macros into lib/silccrypt/ciphers_def.h.
7427
7428 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7429
7430         * Fixed the make install.
7431
7432 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7433
7434         * When MAC computation fails the silc_packet_decrypt returned 0
7435           even though it was supposed to return -1.  Fixed this.  The
7436           affected file is lib/silccore/silcpacket.c.
7437
7438         * Do not replace the config files in /etc/silc (in make install)
7439           if they already exist.  Affected file ./Makefile.am.
7440
7441         * Do not send re-key packets immediately but through packet queue.
7442           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
7443
7444         * Changed silc_net_check_host_by_sock to return FALSE if the
7445           IP/DNS could not be resolved.  Though, it returns the IP address
7446           now even if it could not resolve it (but returns also FALSE).
7447           Affected file lib/silcutil/silcnet.[ch].
7448
7449 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7450
7451         * Added silc_pkcs_decode_identifier to decode the public key's
7452           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
7453           Added also silc_pkcs_free_identifier.  Added also new context
7454           SilcPublicKeyIdentifier.
7455
7456         * Added -S option to the silc client.  It is used to dump the
7457           contents of the specified public key file.
7458
7459         * Changed the PKCS api to return the public key length when
7460           setting the public key.
7461
7462         * Fixed a fatal bug in the public and private key file loading.
7463           Affected file lib/silccrypt/silcpkcs.c.
7464
7465         * Execute the packet parsing for client with zero (0) timeout
7466           if the protocol is active.  Affected file silcd/server.c.
7467
7468 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7469
7470         * Made the key generation options to the silcd program.  Added
7471           -C option, equivalent to client's option.
7472
7473         * Added new [ServerKeys] config section to the server.  It
7474           configures the server's public and private key.
7475
7476         * Defined generic Public Key Payload into the protocol
7477           specification to send specific type of public keys and
7478           certificates.
7479
7480         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
7481           public key or certificate.
7482
7483         * Implemented the GETKEY command to the server and to the
7484           client library and on user interface.
7485
7486 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7487
7488         * Made preliminary `make install' work.
7489
7490 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7491
7492         * Added SilcServerRekey context into silcd/idlist.h.
7493
7494         * Added the PFS support as defined in the specification to the
7495           SKE protocol.  Affected files lib/silcske/*.c.
7496
7497         * Added `ske_group' field to the SilcServerRekey context to hold
7498           the number of the SKE group that is used with PFS in re-key.
7499           Affected file silcd/idlist.h.
7500
7501         * Added PFS re-key support to the server.  Affected file is
7502           silcd/protocol.c.
7503
7504         * Added silc_protocol_cancel to cancel execution of the next
7505           state of the protocol.  Affected file is
7506           lib/silccore/silcprotocol.[ch].
7507
7508         * Added the re-key support with and without PFS to the client
7509           library.  Re-key is performed once in an hour, by default.
7510
7511           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
7512           Added silc_client_rekey_callback and silc_client_rekey_final.
7513           Affected files are lib/silcclient/protocol.[ch] and
7514           lib/silcclient/client.[ch].
7515
7516         * Removed the `hmac_key' and `hmac_key_len' fields from the
7517           SilcClientConnection structure; not needed.  Affected file is
7518           lib/silcclient/client.h.
7519
7520         * Updated TODO.
7521
7522 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7523
7524         * Do not ask whether user wants to use the negotiated private key
7525           for private messages, just use it.  Affected file is
7526           silc/local_command.c.
7527
7528         * Added `send_enc_key' and `enc_key_len' fields to the
7529           SilcIDListData structure since they are needed in the re-key
7530           phase.  Affected file is silcd/idlist.[ch].
7531
7532         * Implemented the simple re-key protocol into the server.
7533           Affected files silcd/server.c and silcd/protocol.[ch].  The
7534           re-key will be performed once in an hour, by default.
7535
7536           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
7537           Added silc_server_rekey, silc_server_rekey_callback and
7538           silc_server_rekey_final.
7539
7540         * Removed Tunneled flag from the protocol.  Updated the code
7541           and the specifications.
7542
7543         * Adde `pfs' field to the SilcIDListData to indicate whether
7544           the PFS is to be performed in the re-key.  Affected file is
7545           silcd/idlist.h.
7546
7547 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7548
7549         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
7550           int64 of at least the xintXX size.  If void * is less that 4
7551           bytes uint32 * will be used.  Defined bool as boolean.
7552
7553         * Changed _ALL_ unsigned long and unsigned int to uint32,
7554           unsgined short to uint16 in the source tree.
7555
7556         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
7557           not handle clients that has entry->data.registered == FALSE.
7558           They are not in the network anymore.  Affected file is
7559           silcd/server.c.
7560
7561 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7562
7563         * Implemented the sending of the SERVER_SIGNOFF notify in the
7564           server.  Affected file is silcd/server.c.
7565
7566         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
7567           Added also silc_notify_payload_encode_args into the
7568           lib/silccore/silcnotify.[ch].
7569
7570         * Implemented ther SERVER_SIGNOFF notify handling in the server.
7571           Affected file silcd/packet_receive.c.
7572
7573         * Implemented the SERVER_SIGNOFF notify handling in the client
7574           library.  Affected file lib/silcclient/client_notify.c.  Also,
7575           implemnted the printing of the SERVER_SIGNOFF info to the
7576           application.  Affected file silc/client_ops.c.
7577
7578         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
7579           if the deleting was successful.  Affected file silcd/idlist.[ch].
7580
7581         * Added support for public key authentication in the connection
7582           authentication protocol in the client library.  Affected file
7583           lib/silcclient/protocol.c.
7584
7585         * Changed the server's silc_idlist_get_clients_by_* interface
7586           to support already allocated array so that new entries may be
7587           added to pre-allocated array.  Affected file silcd/idlist.[ch].
7588           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
7589           and command replies.
7590
7591         * All command reply functions in the server now calls the
7592           pending command callback even if error occured.  This way the
7593           error will be delivered to the client as well.  Affected files
7594           silcd/command.c and silcd/command_reply.c.
7595
7596         * Fixed INFO command to return local server's info if no server
7597           was provided.  Affected file lib/silcclient/command.c.
7598
7599         * Removed RESTART command for good.  Updated the code and the
7600           protocol specs.
7601
7602         * Rewrote parts of the task system.  It is a bit simpler now.
7603           Removed unsued task priorities. The affected files are
7604           lib/silcutil/silctask.[ch].
7605
7606 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7607
7608         * Moved the USERS printing from the library to the application.
7609           Affected files lib/silcclient/command.c and silc/client_ops.c.
7610
7611 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7612
7613         * Updated TODO.
7614
7615         * Added channel key re-key support.  The re-key is perfomed
7616           only by the router and is done once in an hour.  Added `rekey'
7617           field to the SilcChannelEntry in the server.  Affected files
7618           silcd/server.c and silcd/idlist.h.
7619
7620         * Added silc_task_unregister_by_context into the file
7621           lib/silcutil/silctask.[ch].
7622
7623 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7624
7625         * Added SILC_UMODE_GONE mode to indicate when the client is not
7626           present in the SILC network.  Added also support to the local
7627           command AWAY that will set this mode.  Added support of showing
7628           "xxx is gone" in WHOIS command.  The USERS command shows the
7629           gone status as well.
7630
7631         * Fixed setting server and router operator privileges in the
7632           server's UMODE command.  Affected file silcd/command.c.
7633
7634         * Merged the SKE KE1 and KE2 payloads into one payload.  The
7635           new KE payload is equivalent to the old KE2 payload.
7636
7637           Cleaned up the SKE Start Payload parsing.  It now uses the
7638           simple buffer unformatting to do the parsing.  A lot faster
7639           now.
7640
7641           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
7642           to the SKE that is used to indicate whether both of the SKE
7643           parties should perform authentication.  By default only the
7644           responder performs authentication.  By setting this flag also
7645           the initiator must do authentication.  By default it is unset
7646           since in normal SKE case, client to server connection, only
7647           the responder should do authentication.  When doing SKE between
7648           two clients both should perform authentication.  Updated the
7649           code and the protocol specs.
7650
7651         * A little fix to IDENTIFY command in the server.  Search the
7652           client first by hash not nickname.  Affected file is
7653           silcd/command.c.
7654
7655         * Fixed the silc_client_close_connection to support closing
7656           the client to client connections wihtout deleting too much
7657           data.  Affected file lib/silcclient/client.c.
7658
7659         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
7660           are received if protocol used to be active but is not anymore
7661           the application would crash due to NULL pointer dereference.
7662           Affected files silcd/server.c and lib/silcclient/client.c.
7663
7664         * Added `hash' field to the SilcClientConnection to include
7665           the hash function negotiated in the SKE protocol.
7666
7667         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
7668           to set the channel founder authentication data.  A client can
7669           claim the founder rights later by providing the authentication
7670           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
7671           This way the channel founder can regain the channel founder
7672           privileges even it is left the channel.  This works only on
7673           local server and the client must be connected to the same
7674           server to be able to regain the founder rights.  Updated the
7675           protocol specs accordingly.
7676
7677           Added support to the CMODE command in the client to set the
7678           founder auth data.  Read the README to see how to set it.
7679
7680           Added support to the CUMODE command to claim the founder
7681           rights.  Read the README to see how to do it.
7682
7683           Added support for the founder authentication to the Channel
7684           Entry in the server.  Affected file silcd/idlist.h.
7685
7686           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
7687           server's CMODE command.  Affected file silcd/command.c.
7688
7689         * Added the following new functions into lib/silccore/silcauth.[ch]:
7690           silc_auth_get_method and silc_auth_get_data.
7691
7692         * The server now saves the remote hosts public key to the
7693           SilcIDListData pointer.  Affected file silcd/protocol.c.
7694
7695         * The normal server now does not remove the channel entry from
7696           the cache if the founder authentication data is set.  It used
7697           to remove it if the founder was the last one on the channel on
7698           the server and left the channel.  The auth data is saved and
7699           if the channel is re-joined later the old entry is used with
7700           the old auth data.  Affected files silcd/command_reply.c and
7701           silcd/server.c.
7702
7703         * Removed the `pkcs' field from the SilcIDListData structure
7704           in the server; it is not used.  Affected file silcd/idlist.h.
7705
7706 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7707
7708         * Fixed packet processing on slow links.  Partial packets were
7709           never re-processed because the incoming data buffer was cleared
7710           by the application.  Application must not directly clear the
7711           sock->inbuf, the packet processing routines handle it.  Fixed
7712           this in client library and in server.
7713
7714 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7715
7716         * Fixed the WHOIS and IDENTIFY send reply function to really
7717           check whether to send list or just one entry.  Affected file
7718           silcd/command.c.
7719
7720         * Cleaned up the LEAVE command's channel key distribution.  The
7721           affected file silcd/command.c.
7722
7723         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
7724           can enforce the channel mode as well.  In that case the ID
7725           includes the ID of the server.  The code now enforces the
7726           mode change if the router have different mode than the server.
7727
7728         * The notify client operation with CMODE_CHANGE notify can now
7729           return NULL client_entry pointer if the CMODE was not changed
7730           by client.  Application must check for this.
7731
7732         * Added <Server ID> argument to INFO command to support server
7733           info fetching by Server ID.
7734
7735         * Added silc_server_announce_get_channel_users to get assembled
7736           packets of channel users of the specified channel.  Affected
7737           file silcd/server.[ch].
7738
7739         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
7740           was freed underneath the ID Cache.
7741
7742         * Re-announce clients when the server received CHANNEL_CHANGE
7743           notify from the router.  Affected file silcd/packet_send.c.
7744
7745 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7746
7747         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
7748           crashed since it did not handle the fact that there is no cipher
7749           called "3" and didn't check the error condition.  Now fixed.
7750
7751         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
7752           flag.  It can be used to send message requests.
7753
7754 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7755
7756         * Implemented the RESTART command in the client.
7757
7758         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
7759           notice type messages.  Added notice printing to the user
7760           interface.
7761
7762         * The channel keys are not re-generated if the channel's mode
7763           is PRIVKEY, ie private key on the channel exists.  Affected
7764           files silcd/server.c and silcd/command.c.
7765
7766         * Fixed a little bug in channel message delivery when channel
7767           private keys are set in the server.  Affected file is
7768           silcd/packet_send.c.
7769
7770         * Changed the setting on channel->on_channel = TRUE from the
7771           silc_client_save_channel_key to the JOIN command reply.  The
7772           key payload is not received if the private channel key is set.
7773           Affected file lib/silcclient/command_reply.c and the
7774           lib/silcclient/client_channel.c.
7775
7776         * When the CMODE_CHANGE notify is sent and the channel private
7777           key mode is removed the channel key must be re-generated in
7778           other cells as well.  Added this support for the router in the
7779           silcd/packet_receive.c.
7780
7781         * Added new local command NOTICE to send notice message on
7782           channel.  Affected file silc/local_command.[ch].
7783
7784 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7785
7786         * Added new local command ME to the client.  It is used to send
7787           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
7788           some action.  Affected file silc/local_command.[ch].
7789
7790         * Changed channel_message and private_message client operations
7791           to deliver the message flags to the application.  Added also
7792           the `flags' arguments to the silc_client_send_channel_message
7793           and silc_client_send_private_message functions.  Affected file
7794           silcapi.h.
7795
7796 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7797
7798         * Redefined the Private Message Payload to support private message
7799           keys and to support the new private message flags.  Updated
7800           the protocol specs.  Flags makes it possible to have for example
7801           CTCP style messages.
7802
7803         * Added new type SilcPrivateMessagePayload and defined an API
7804           for it in the lib/silcclient/silcprivate.[ch].
7805
7806         * Tested private message private keys successfully.  Tested the
7807           private message key set, unset and list commands with the new
7808           KEY command.
7809
7810         * Redefined the Channel Message Payload to include the channel
7811           message flags (equal with private message flags) to support
7812           for example CTCP style messages.
7813
7814         * Defined some of the message (for channel and private message)
7815           flags.  Updated the protocol specs and added the flags to the
7816           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
7817
7818 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7819
7820         * Added SilcKeyAgreementStatus type to the key agreement routines
7821           to indicate the current status and error if one occured.
7822           The status types are defined in the lib/silcclient/silcapi.h.
7823
7824         * Added new local command KEY that is used to set and unset private
7825           keys for channels, set and unset private keys for private messages
7826           with remote clients and to send key agreement requests and
7827           negotiate the key agreement protocol with remote client.  The
7828           key agreement is supported only to negotiate private message keys,
7829           it currently cannot be used to negotiate private keys for channels,
7830           as it is not convenient for that purpose.
7831
7832         * Fixed a minor pending callback setting bug in the function
7833           silc_client_get_client_by_id_resolve, now the function works.
7834           Affected file lib/silcclient/idlist.c.
7835
7836         * Added function silc_net_get_local_port to get local bound
7837           port by socket.  Added to lib/silcutil/silcnet.[ch].
7838
7839         * Added `sockets' and `sockets_count' fields to the SilcClient
7840           object.  They hold the sockets of the listenning sockets in
7841           the client.  Listenning sockets may be for example the key
7842           agreement server.  Affected file lib/silcclient/client.[ch].
7843           Added functions the silc_client_add_socket and the
7844           silc_client_del_socket.  They are exported to the application
7845           as well.
7846
7847         * Added ~./silc/clientkeys to support other client's public keys.
7848
7849         * Renamed verify_server_key client operation to verify_public_key
7850           and added one argument to indicate the type of the connection
7851           (server, client etc.).
7852
7853 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7854
7855         * Added silc_server_connection_auth_request to handle the
7856           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
7857           silcd/packet_receive.[ch].
7858
7859         * Added silc_server_send_connection_auth_request into the
7860           silcd/packet_send.c to send the connection auth request packet.
7861
7862         * Cleaned up the silcd/protocol.c a bit and fixed some memory
7863           leaks.
7864
7865         * Fixed the public key authentication in responder side in the
7866           server.  The `auth_data' pointer includes the SilcPublicKey
7867           not the path to the public key.  Affected file silcd/protocol.c.
7868
7869         * Implemented the public key authentication in the initiator side
7870           in the server.  Affected file silcd/protocol.c.
7871
7872         * Removed the [RedirectClient] config section from the server
7873           configuration.  Is not needed and I don't want to implement it.
7874
7875 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7876
7877         * Cleaned up the CMODE command in the server.  It now works
7878           correctly and supports all the modes defined in the protocol.
7879           Affected file is silcd/command.c.
7880
7881         * Added `hmac_name' field to the SilcChannelEntry in the server
7882           to hold the default HMAC of the channel.  It can be set when
7883           creating the channel (with JOIN command).  Affected files
7884           silcd/idlist.[ch].
7885
7886         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
7887           type to indicate the change of the current cipher and hmac
7888           on the channel.  Client can safely ignore the <cipher> argument
7889           (if it chooses to do so) since the CHANNEL_KEY packet will
7890           force the channel key change anyway.  The <hmac> argument is
7891           important since the client is responsible of setting the new
7892           HMAC and the hmac key into use.
7893
7894         * Fixed the CMODE command in the client library as well.
7895
7896         * Tested CMODE command in router environment successfully.
7897
7898 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7899
7900         * Show the version of the remote client (or server) when connecting
7901           to the server.  It is logged to the log file.  Affected file
7902           is silcd/protocol.c.
7903
7904         * Fixed the KILLED notify handling in the client library.  The
7905           client must be removed from all channels when receiving the
7906           KILLED notify.
7907
7908           Also, do not remove the client entry when giving the KILL
7909           command but when the KILLED notify is received.
7910
7911         * Removed silc_idlist_find_client_by_nickname from the server.
7912           Not needed anymore.  Affected files silcd/idlist.[ch].
7913
7914         * Implemented the CHANNEL_CHANGE notify type handling to the
7915           server.  Affected file silcd/server.c.
7916
7917         * Updated TODO.
7918
7919 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7920
7921         * Added silc_server_send_notify_invite to send the INVITE
7922           notify between routers.
7923
7924         * Implemented the INVITE command correctly to the server.
7925
7926         * Implemented the INVITE notify type handling in the server.
7927
7928         * Implemented the INVITE command to the client library and on the
7929           user interface.
7930
7931 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7932
7933         * Added function silc_server_get_client_resolve to find the
7934           client entry by ID from all ID lists and then resolve it
7935           (using WHOIS) if it cannot be found.  Affected file is
7936           silcd/server.[ch].
7937
7938 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7939
7940         * Implemented the BAN command to the client library.
7941
7942         * The JOIN command in the server now checks the invite list
7943           and the ban list.
7944
7945         * Changed the silc_command_reply_payload_encode_va and the
7946           silc_command_payload_encode_va to support that if argument is
7947           NULL it ignores and checks the next argument.  Affected file
7948           lib/silccore/silccommand.c.
7949
7950         * Added silc_server_send_notify_ban to send the BAN notify
7951           type between routers.
7952
7953         * Chaned the silc_notify_payload_encode to support that if
7954           argument is NULL it ignores and checks the next argument.
7955           Affected file lib/silccore/silcnotify.c.
7956
7957         * Tested ban lists in router environment successfully.
7958
7959 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7960
7961         * Implemented BAN command to the server, in silcd/command.[ch].
7962
7963         * Removed the BAN and INVITE_LIST modes from the CMODE command
7964           in the server code.
7965
7966         * Added function silc_string_match to regex match two strings.
7967           Affected files lib/silcutil/silcutil.[ch].
7968
7969 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7970
7971         * Redefined parts of the SilcChannelEntry in the server to support
7972           the new ban and invite lists.
7973
7974 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7975
7976         * Redefined the INVITE command.  The same command can be used to
7977           invite individuals to the channel but also to manage the invite
7978           list of the channel (to add to and remove from the invite list).
7979           Updated the protocol specs.
7980
7981         * Added new command SILC_COMMAND_BAN that can be used to manage
7982           the ban list of the channel.  Updated the protocol specs.
7983
7984         * Removed the channel modes: the SILC_CMODE_BAN and the
7985           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
7986           in the CMODE command.  The equivalent features are now available
7987           using INVITE and BAN commands.  Updated the protocol specs.
7988
7989         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
7990           in the network about change in the current ban list.  The notify
7991           type is not used by the client.
7992
7993         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
7994           support the invite lists.
7995
7996 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7997
7998         * Added new function silc_string_regexify that converts string
7999           including wildcard characters into regex string that can
8000           be used by the GNU regex library.  Added into the file
8001           lib/silcutil/silcutil.[ch].
8002
8003           Added silc_string_regex_combine to combine to regex strings
8004           into one so that they can be used as one regex string by
8005           the GNU regex library.  Added into the file
8006           lib/silcutil/silcutil.[ch].
8007
8008           Added silc_string_regex_match to match two strings.  It returns
8009           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
8010
8011 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8012
8013         * Imported GNU regex to the soruce tree into lib/contrib.
8014           Fixed some compiler warning from the regex.c.
8015
8016 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8017
8018         * Fixed MOTD command in the server to work in router environment.
8019
8020         * Fixed the MOTD command in the client library to support
8021           the server argument in the command.
8022
8023         * Added `nickname_len' argument to the silc_idlist_add_client
8024           in the server, as the `nickname' argument may be binary data
8025           (it may be hash).
8026
8027         * Added silc_idlist_get_channels to return all channels from
8028           the ID list.
8029
8030         * Implemented LIST command to the server.  Affected file is
8031           silcd/command.c.
8032
8033         * Implemented the LIST command to the client library and on the
8034           user interface.
8035
8036         * Added [<user count>] argument to the LIST command reply.
8037           With private channels the user count is not shown.
8038
8039         * Updated TODO and README.
8040
8041 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8042
8043         * The client entry's data.registered must be TRUE even with
8044           global client entry on global client list.  The data.registered
8045           is used to check whether the client is anymore in the network,
8046           for example with WHOWAS command so it must be valid.
8047
8048         * Fixed the WHOWAS command in the server.  It now actually works
8049           in router environment.  Added function into silcd/command_reply.c
8050           silc_server_command_reply_whowas_save.
8051
8052         * Added silc_idlist_purge function to the silcd/idlist.c
8053           to periodically purge the ID Cache.
8054
8055         * Fixed INFO command in the server.  It works now in router
8056           environment.  Added <server name> argument to the INFO command
8057           reply.  Updated the protocol specs.
8058
8059         * Fixed minor bug in silc_idcache_purge to not purge if the
8060           expire value is zero.
8061
8062         * Fixed various bugs in WHOIS and IDENTIFY command handling as
8063           they were buggy because of the WHOWAS information.
8064
8065         * Fixed local command MSG to handle the async resolving of
8066           the remote client properly.  It used to fail the first MSG.
8067           Affected file silc/local_command.c.
8068
8069         * Added `data_len' field to SilcIDCache context.
8070
8071 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8072
8073         * Update TODO.  Todo in commands in the server.
8074
8075 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8076
8077         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
8078           used by routers as broadcast packet to inform other routers
8079           about the changed user mode.
8080
8081           Implemented the notify handling in the server.  Affected file is
8082           silcd/packet_receive.c.  Added the function
8083           silc_server_send_notify_umode to the silcd/packet_send.[ch].
8084
8085         * Added new generic Channel Payload and deprecated the New Channel
8086           Payload.  The New Channel Payload is now the generic Channel
8087           Payload.
8088
8089         * Added new argument `mode' to the silc_server_send_new_channel
8090           as it is required in the Channel Payload now.
8091
8092         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
8093           and created a new and real SilChannelPayload to represent the
8094           new generic Channel Payload.  Implemented the encode/decode
8095           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
8096
8097         * Added silc_server_get_client_channel_list to return the list
8098           of channels the client has joined for WHOIS command reply.
8099           Affected file silcd/server.[ch].
8100
8101         * Implemented the channel list sending in the WHOIS command reply
8102           in server and in the client.
8103
8104           Implemented the channel list displaying on the user interface
8105           as well.  Affected file silc/client_ops.c.
8106
8107         * Added silc_channel_payload_parse_list to parse list of Channel
8108           Payloads.  It returns SilcDList list of SilcChannelPayloads.
8109           Client for example can use this function to parse the list of
8110           channels it receives in the WHOIS command reply.  The caller
8111           must free the list by calling silc_channel_payload_list_free.
8112           Affected files lib/silccore/silcchannel.[ch].
8113
8114 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8115
8116         * Added one new argument <user mode> to the WHOIS command reply
8117           to return the mode of the user in SILC.  Updated the protocol
8118           specs.
8119
8120           Implemented it to the server and client.
8121
8122 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8123
8124         * Fixed the mode printing on the user interface on joining.
8125           Affected file silc/client_ops.c.
8126
8127         * Implemented the UMODE command and user modes in general to the
8128           client library and to the user interface.
8129
8130         * Implemented the UMODE command to the server.
8131
8132         * The server now sends UNKNOWN_COMMAND error status if client sends
8133           unknown command.  Affected file silcd/command.c.
8134
8135         * All server commands now handle the command identifier the right
8136           way when sending the command reply to the client.  The client can
8137           use to identify the command replies with the identifier.
8138
8139 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8140
8141         * Added silc_server_get_client_route to resolve the route to
8142           the client indicated by the client ID.  Affected file is
8143           silcd/server.[ch].
8144
8145         * Added silc_server_relay_packet as general function to relay
8146           packet to arbitrary destination.  This deprecates functions
8147           like _send_private_message_key, _relay_notify etc.  Affected
8148           file is silcd/packet_send.[ch].
8149
8150           Removed silc_server_send_key_agreement,
8151           silc_server_send_private_message_key and
8152           silc_server_packet_relay_notify functions from the file
8153           silcd/packet_send.[ch].
8154
8155         * Updated TODO.
8156
8157         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
8158           server.  Affected file silcd/packet_receive.[ch].
8159
8160         * Implemented the KILL command to the client.  Implemented the
8161           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
8162           Affected files lib/silcclient/command[_reply].c and
8163           lib/silcclient/client_notify.c.  Implemented the KILL notify
8164           printing in the user inteface.
8165
8166         * Fixed a lot silc_parse_nick memory leaks from the client
8167           library in the file lib/silcclient/command.c.
8168
8169         * Changed the silc_server_send_notify_on_channels's `sender'
8170           argument from SilcSocketConnection to SilcClientEntry to
8171           check the sender as entry and not as connection object and not
8172           to send to the client provided as argument.  The affected file
8173           is silcd/packet_send.[ch].
8174
8175         * The notify packets that are destined directly to the client used
8176           to not to be processed by the server.  Now changed that and the
8177           server processes all notify packets.  After relaying the packet
8178           to the client the notify packet is processed in the server.
8179
8180         * The silc_server_free_client_data now checks whether there is
8181           pending outgoing traffic for the client and purges the data to
8182           the network before removing the client entry.
8183
8184 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8185
8186         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
8187           an client is killed from the SILC Network.  Updated the protocol
8188           specs accordingly.
8189
8190           Added new function silc_server_send_notify_killed to the
8191           silcd/packet_send.[ch].
8192
8193         * Added function silc_server_packet_relay_notify to relay notify
8194           packets that are destined directly to a client.  In this case
8195           the server does not process the notify packets but merely relays
8196           it to the client.  Affected file silcd/packet_send.[ch].
8197
8198           Added also silc_server_packet_process_relay_notify to check
8199           whereto relay the notify.  Affected file is
8200           silcd/packet_receive.[ch].
8201
8202         * Implemented the KILL command to the server.
8203
8204         * Updated TODO.
8205
8206         * Added the backup schema desgined last fall to the protocol
8207           specs for everyone to see.  The specification is in the
8208           *-spec-xx.txt draft and the packet type definitions for the
8209           backup routers is in *-pp-xx.txt draft.  Thusly, added also
8210           new packet type SILC_PACKET_CELL_ROUTERS.
8211
8212         * A big security problem in the implementation discovered.  The
8213           signoff of an client did not cause new channel key generation
8214           which it of course should've done.  The channel keys must be
8215           always re-generated when client leaves (or signoffs) the channel.
8216           The silc_server_remove_from_channels funtion now handles
8217           the channel key re-generation.
8218
8219         * Added `sender' argument to the silc_server_send_notify_on_channels
8220           to not to send the client provided as argument.  Affected file
8221           silcd/packet_send.[ch].
8222
8223 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8224
8225         * Implemented OPER and SILCOPER commands into the server and
8226           the client library.
8227
8228         * Added silc_auth_verify and silc_auth_verify_data to verify
8229           the authentication directly from the authentication payload.
8230           It supports verifying both passphrase and public key based
8231           authentication.  Affected file lib/silccore/silcauth.[ch].
8232
8233         * Added `hash' field to the SilcIDListData structure.  It is the
8234           hash negotiated in the SKE protocol.  Affected file is
8235           silcd/idlist.[ch].
8236
8237         * Slight redesigning of the SilcAuthPayload handling routines.
8238           Do not send SilcPKCS but SilcPublicKey as argument.
8239
8240         * Implemented the public key authentication support to the
8241           serverconfig.  The public key is loaded from the provided path
8242           and saved as authentication data to void * pointer.  Thus,
8243           changed the unsigned char *auth_data to void *auth_data;
8244
8245         * Fixed SHUTDOWN command to send the reply before the server
8246           is shutdown. :)  Affected file silcd/command.c.
8247
8248         * Fixed fatal bug in CONNECT command.  The hostname was invalid
8249           memory and server crashed.  Affected file silcd/command.c.
8250
8251         * Fixed fatal bug in CLOSE command.  The server_entry became
8252           invalid but was referenced later in the command.  Affected file
8253           silcd/command.c.
8254
8255 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8256
8257         * Fixed fatal bug in failure packet handling.  Server ignored
8258           the failure and thus crashed when it came.
8259
8260         * Updated TODO.
8261
8262 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8263
8264         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
8265           that the command may be executed only once in (about) 2 seconds.
8266           The old SILC_CF_LAG flag is same but allows command bursts up
8267           to five before limiting.
8268
8269           Added the support for CF_LAG and CF_LAG_STRICT flags to the
8270           server code.  Various commands now includes the CF_LAG_STRICT
8271           flag to disallow any kind of miss-use of the command.
8272
8273         * Fixed the silc_buffer_unformat to not to allocate any data
8274           if the length of the data is zero.  It used to allocate the
8275           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
8276
8277 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8278
8279         * Changed the format of AdminConnection configuration section
8280           in the server.  Added username of the admin to the format.
8281           Affected files silcd/serverconfig.[ch].
8282
8283           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
8284           to return admin configuration data by host, username and/or
8285           nickname.
8286
8287 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8288
8289         * Implemented WHOWAS command to the server.  Added the functions:
8290
8291           silc_server_command_whowas_parse,
8292           silc_server_command_whowas_send_reply,
8293           silc_server_command_whowas_from_client and
8294           silc_server_command_whowas_from_server
8295
8296         * Added <Client ID> argument to the WHOWAS command reply.  Updated
8297           the protocol specs accordingly.
8298
8299         * Implemented WHOWAS command and command_reply to the client
8300           library.
8301
8302           Implemented the WHOWAS printing on the user interface.
8303
8304 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8305
8306         * Added new argument to the WHOWAS command reply, the real name.
8307           It is an optional argument.  Updated the protocol specs.
8308
8309         * Added SilcIDCacheDestructor callback that is registered when
8310           the SilcIDCache is allocated.  The callback is called when
8311           an cache entry in the ID Cache expires, or is purged from the
8312           cache.  Added into lib/silccore/idcache.[ch].
8313
8314           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
8315           to destruct the client entries when the cache entry expires.
8316           Other ID Cache's in server and in the client library ignores
8317           the destructor.
8318
8319         * If the ID Cache entry's `expire' field is zero then the entry
8320           never expires.  Added boolean `expire' argument to the
8321           silc_idcache_add function in the lib/silccore/idcache.[ch].
8322           If it is TRUE the default expiry value is used.
8323
8324         * Added silc_server_free_client_data_timeout that is registered
8325           when client disconnects.  By default for 5 minutes we preserve
8326           the client entry for history - for WHOWAS command.
8327
8328 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8329
8330         * Added support to the server to enforce that commands are not
8331           executed more than once in 2 seconds.  If server receives
8332           commands from client more frequently, timeout is registered
8333           to process the commands.  Affected file silcd/command.c.
8334           Added new function silc_server_command_process_timeout.
8335
8336         * Changed NICK_NOTIFY handling in client library to check that
8337           if the client's nickname was changed, so there is no need to
8338           resolve anything from the server.
8339
8340         * Removed error printing from the WHOIS and IDENTIFY commands.
8341           If error occurs then it is ignored silently in the client library.
8342           The application, however, may map the received error to
8343           human readable error string.  The application currently maps
8344           the NO_SUCH_NICKNAME error to string.
8345
8346         * Made the command status message public to the application.  Moved
8347           them from lib/silcclient/command_reply.c to
8348           lib/silcclient/command_reply.h.  The application can map the
8349           received command status to the string with the
8350           silc_client_command_status_message function.
8351
8352         * Added check to the server to check that client's ID is same
8353           as the Source ID in the packet the client sent.  They must
8354           match.
8355
8356 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8357
8358         * Added dist-bzip hook to the Makefile.am to make bzip2
8359           compressed distributions.
8360
8361 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8362
8363         * Server now enforces the maximum length for the nickname and
8364           the channel as protocol specification dictates.  128 bytes for
8365           nickname and 256 bytes for channel name.
8366
8367         * Moved the WHOIS printing to the application.  The client libary
8368           does not print out the WHOIS information anymore, the application
8369           must do it.  Renamed silc_client_command_reply_whois_print to
8370           the silc_client_command_reply_whois_save.
8371
8372           The client's idle time is also sent to the application now, and
8373           the idle is shown on screen.
8374
8375         * Added silc_client_command_reply_identify_save to save the
8376           received IDENTIFY entries.
8377
8378         * Do not check for channel private keys in message sending and
8379           reception if the channel does not have the PRIVKEY mode set.
8380           Affected file lib/silclient/client_channel.c.
8381
8382 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8383
8384         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
8385           just surfaced after chaning the JOIN procedure.
8386
8387 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8388
8389         * Added silc_client_get_clients_by_list to get client entries
8390           from Client ID list, that is returned for example by JOIN
8391           and USERS command replies.  The application should use this
8392           function for example when JOIN command reply is received to
8393           resolve the clients already on the channel (library does not
8394           do that anymore as USERS command reply is not used in the JOIN
8395           procedure anymore).  Affected files lib/silcclient/silcapi.h and
8396           lib/silcclient/idlist.c.
8397
8398         * JOIN command reply and USERS command reply returns now SilcBuffer
8399           pointers instead of unsigned char pointers when returning
8400           the client list and mode list.
8401
8402         * Added <Client ID> argument to the JOIN command reply, mainly
8403           for the server to identify for which client the command was
8404           originally sent.  Updated protocol specs accordingly.
8405
8406         * Added SilcDlist private_key pointer to the SilcChannelEntry
8407           in the client to support the channel private keys.  Affected
8408           file is lib/silcclient/idlist.h.
8409
8410         * Added SilcChannelPrivateKey argument to the function
8411           silc_client_send_channel_message so that application can choose
8412           to use specific private ke if it wants to.  If it is not provided,
8413           the normal channel key is used, unless private keys are set.
8414           In this case the first (key that was added first) is used
8415           as the encryption key.
8416
8417         * Implemented the support for channel private key handling.
8418           Implemented the following functions:
8419
8420           silc_client_add_channel_private_key,
8421           silc_client_del_channel_private_keys,
8422           silc_client_del_channel_private_key,
8423           silc_client_list_channel_private_keys and
8424           silc_client_free_channel_private_keys
8425
8426           Affected file lib/silcclient/client_channel.c.
8427
8428         * Added the support for the private keys in the channel message
8429           sending and encryption and in the message reception and
8430           decryption.  Affected funtions are
8431           silc_client_send_channel_message and silc_client_channel_message.
8432
8433 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8434
8435         * Added SKE's key verify callback to the client library's
8436           KE protocol context. Affected files lib/silcclient/protocol.[ch].
8437
8438         * Removed the statement that server (or router) must send USERS
8439           command reply when joining to the channel so that the client
8440           knows who are on the channel.  Instead, the client list and
8441           client's mode list is now sent in the JOIN command reply to the
8442           client who joined channel.  This is better solution.
8443
8444         * Added function silc_server_get_users_on_channel and function
8445           silc_server_save_users_on_channel to the silcd/server.[ch].
8446
8447         * Removed function silc_server_command_send_users from the
8448           silcd/command.c.
8449
8450         * Do not show topic on the client library anymore.  The topic is
8451           sent in the command reply notify to the application and the
8452           application must show the topic now.
8453
8454 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8455
8456         * Added client searching by nickname hash into the IDENTIFY and
8457           WHOIS commands in the server as they were clearly missing from
8458           them.  Affected file is silcd/command.c.
8459
8460         * Fixed a bug in private message receiving in the client library.
8461           The remote ID was freed and it wasn't supposed, now it is
8462           duplicated.
8463
8464 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8465
8466         * Minor fix to the channel payload; allocate the data area, as it
8467           needs to be of specific length.
8468
8469         * If the key agreement port is zero then the operating
8470           system will define the bound port.  Affected files are
8471           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
8472
8473         * Added new function silc_channel_payload_decrypt into the file
8474           lib/silccore/silcchannel.[ch].
8475
8476         * Moved the channel message etc, check from silc_packet_decrypt
8477           to applications.  The library calls now a generic
8478           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
8479           when the packet is either normal or special.  This was done to
8480           allow more wide range of checking that was not allowed when
8481           the code was in library.  Now applications can do virtually any
8482           checks to the packet and return to the library the decision how
8483           the packet should be processed.  Affected files are
8484           lib/silccore/silcpacket.[ch].
8485
8486           Added silc_server_packet_decrypt_check to the server and
8487           silc_client_packet_decrypt_check to the client library.
8488
8489         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
8490           to send with specified source and destination information.
8491
8492         * Channel message delivery between routers was broken after the
8493           channel key distribution was fixed earlier.  The channel key
8494           was used be to distributed to other routers as well which is not
8495           allowed by the protocol.  Now this is fixed and channel keys
8496           really are cell specific and the channel message delivery between
8497           routers comply with the protocol specification.
8498
8499         * Fixed various commands in server to check also the global list
8500           for the channel entry and not just the local list.  The affected
8501           file silcd/command.c.
8502
8503 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8504
8505         * Added assert()s to buffer formatting and unformatting routines
8506           to assert (if --enable-debug) when error occurs.  Affected
8507           file: lib/silcutil/silcbuffmt.c.
8508
8509         * Changed to auto-reconnect to check whether the remote host is
8510           router and register the re-connect timeout if it is.  It used
8511           to check that whether we are normal server, but router must do
8512           auto-reconnect with another router as well.  Affected file
8513           silcd/server.c.
8514
8515         * Removed the [<key len>] option from CMODE command as the cipher
8516           name decides the key length, nowadays.  See the defined ciphers
8517           from the protocol specification.
8518
8519         * Added [<hmac>] option to the CMODE command to define the HMAC
8520           for the channel.  Added SILC_CMODE_HMAC channel mode.
8521
8522         * Added [<hmac>] option for the JOIN command so that user can
8523           select which HMAC is used to compute the MACs of the channel
8524           messages.
8525
8526         * Added Hmac field to the Channel Message Payload.  The integrity
8527           of plaintext channel messages are now protected by computing
8528           MAC of the message and attaching the MAC to the payload.  The
8529           MAC is encrypted.  Now, it is clear that this causes some
8530           overhead to the size of the packet but rationale for this is that
8531           now the receiver can verify whether the channel message decrypted
8532           correctly and also when private keys are set for the channel the
8533           receiver can decrypt the packet with several keys and check from
8534           the MAC which key decrypted the message correctly.
8535
8536         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
8537           lib/silccrypt/silccipher.[ch].
8538
8539         * Added silc_hash_len to return the digest length into the
8540           lib/silcrypt/silchash.[ch].
8541
8542         * Rewrote parts of Silc Channel Payload interface in the
8543           lib/silccore/silcchannel.[ch].  The encode function now also
8544           encrypts the packet and parse function decrypts it.
8545
8546 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8547
8548         * Fixed a minor formatting bug in the SKE's key material processing.
8549           It actually might have processed the keys wrong way resulting
8550           into wrong keys.
8551
8552         * Redefined the mandatory HMAC algorithms and added new algorithms.
8553           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
8554           and hmac-md5 truncated to 96 bits.  The mandatory is now
8555           hmac-sha1-96.  Rest are optional (including the one that used
8556           to be mandatory).  Rationale for this is that the truncated HMAC
8557           length is sufficient from security point of view and can actually
8558           make the attack against the HMAC harder.  Also, the truncated
8559           HMAC causes less overhead to the packets.  See the RFC2104 for
8560           more information.
8561
8562         * Added new [hmac] configuration section.  The SKE used to use
8563           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
8564           is of course wrong.  The official names that must be proposed in
8565           the SKE are the ones defined in the protocol specification
8566           (hmac-sha1-96 for example).  The user can configure any hmac
8567           using any hash function configured in the [hash] section.  At
8568           least, the mandatory must be configured.
8569
8570           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
8571
8572         * Added HMAC list to the SKE proposal list.  It has now both
8573           hash algorithm list and HMAC list.  This makes the protocol
8574           incompatible with previous versions.  The SKE now seems to work
8575           the way it is supposed to work, for the first time actually.
8576
8577         * Defined plain Hash algorithms to the protocol specification.
8578           Added sha1 and md5.
8579
8580 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8581
8582         * Implemented support for key agreement packets into the server.
8583           Added functions silc_server_key_agreement and
8584           silc_server_send_key_agreement.  Other than these functions,
8585           server has nothing to do with this packet.
8586
8587         * Added support for private message key packets into the server.
8588           Added functions silc_server_private_message_key and
8589           silc_server_send_private_message_key.
8590
8591         * Updated TODO.
8592
8593         * Changed the silc_[client|server]_protocol_ke_set_keys to be
8594           called in the protocol's final callback instead in the END
8595           protocol state.  This makes a little more sense and in the same
8596           time in client we can use the same protocol routines for normal
8597           key exchange and to key agreement packet handling as well.
8598
8599         * Added to both client's and server's KE protocol context the
8600           SilcSKEKeyMaterial pointer to save the key material.  We will
8601           bring the key material to the protocol's final callback by doing
8602           this.  The final callback must free the key material.
8603
8604         * Added SKE's packet_send callback into client's KE protocol
8605           context so that the caller can choose what packet sending function
8606           is used.  This way we can use different packet sending when
8607           doing normal SKE when doing key agreement packet handling (in
8608           the key agreement packet handling we do not want to encrypt
8609           the packets).
8610
8611         * Implemented the responder side of the key agreement routines
8612           in the client.  The client can now bind to specified port and
8613           accept incoming key negotiation.  The key material is passed
8614           to the application after the protocol is over.
8615
8616         * Implemented the processing of incoming Key Agreement packet
8617           in the client.  Added function silc_client_key_agreement to
8618           process the packet.
8619
8620         * Implemented the intiator side of the key agreement routines
8621           in the client.  The client can now initiate key agreement with
8622           another remote client.  The key material is passed to the
8623           application after the protocol is over.
8624
8625         * Created client_keyagr.c to include all the key agreement
8626           routines.
8627
8628         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
8629           SILC_TASK_CALLBACK except that it is not static.
8630
8631         * Created client_notify.c and moved the Notify packet handling
8632           from the client.[ch] into that file.
8633
8634         * Created client_prvmsg.c and moved all private message and
8635           private message key routines from the client.[ch] into that file.
8636
8637         * Create client_channel.c and moved all channel message and
8638           channel private key routines from the client.[ch] into that file.
8639
8640         * Changed silc_client_get_client_by_id_resolve to resolve with
8641           WHOIS command instead of IDENTIFY command, in the file
8642           lib/silclient/idlist.c.
8643
8644 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8645
8646         * Implemented the SKE's responder side to the Client library.
8647
8648         * When FAILURE is received to the protocol do not trust it
8649           blindly.  Register a timeout to wait whether the remote closes
8650           the connection as it should do it, only after that process the
8651           actual failure.  This was changed to both client and server.
8652
8653         * Added client_internal.h to include some of the structures
8654           there instead of client.h in lib/silcclient/.
8655
8656         * Added function silc_task_unregister_by_callback to unregister
8657           timeouts by the callback function.
8658
8659 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8660
8661         * Some "Incomplete WHOIS info" errors has been appearing on the
8662           log files.  Took away the entry->userinfo check from WHOIS
8663           reply sending.  The entry->userinfo is now " " if client did not
8664           provide one.  I thought this was fixed earlier but something
8665           is wrong still.  Let's see if the error still appears.
8666
8667 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8668
8669         * Fixed a minor bug in the login when the channel key is
8670           re-generated in the server.  It used to generate the key in
8671           wrong order and thus caused problems in the channel traffic.
8672
8673         * Fixed a minor bug in channel key distsribution after
8674           KICK command.  The key was not sent to the router even though
8675           it should've been.
8676
8677 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8678
8679         * Added silc_ske_process_key_material_data as generic routine
8680           to process any key material as the SILC protocol dictates.  The
8681           function is used by the actual SKE library but can be used by
8682           applications as well.  This relates to the private message keys
8683           and the channel private keys since they must be processed the
8684           same way the normal SILC session keys.  The protocol dictates
8685           this.  Affected files: lib/silcske/silcske.[ch].
8686
8687           Added also silc_ske_free_key_material to free the
8688           SilcSKEKeyMaterial structure.
8689
8690         * Defined silc_cipher_set_key function to set the key for
8691           cipher without using the object's method function.  The affected
8692           files: lib/silccrypt/silccipher.[ch].
8693
8694         * Implemented silc silc_client_add_private_message_key,
8695           silc_client_add_private_message_key_ske,
8696           silc_client_del_private_message_key,
8697           silc_client_list_private_message_keys and
8698           silc_client_free_private_message_keys functions in the
8699           client library.
8700
8701           Added functions silc_client_send_private_message_key to send
8702           the Private Message Key payload and silc_client_private_message_key
8703           to handle incoming Private Message Key payload.
8704
8705         * Added Cipher field to the Private Message Key payload to set
8706           the cipher to be used.  If ignored, the default cipher defined
8707           in the SILC protocol (aes-256-cbc) is used.
8708
8709 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8710
8711         * Removed lib/silcclient/ops.h file.
8712
8713           Redefined parts of the SILC Client Library API. Created new
8714           file silcapi.h that deprecates the ops.h file and defines the
8715           published Client Library API.  Defined also private message key
8716           API and channel private key API into the file.
8717
8718           This is the file that the application must include from the
8719           SILC Client Library.  Other files need not be included by
8720           the application anymore.
8721
8722         * Added new key_agreement client operation callback and also
8723           defined the Key Agreement library API for the application.
8724
8725 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8726
8727         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
8728           is used by clients to request key negotiation  between another
8729           client in the SILC network.  If the negotiation is started it
8730           is performed using the SKE protocol.  The result of the
8731           negotiation, the secret key material, can be used for example
8732           as private message key.
8733
8734           Implemented the Key Agreement payload into the files
8735           lib/silccore/silauth.[ch].
8736
8737 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8738
8739         * Redefined ciphers for the SILC protocol.  Added some new ciphers
8740           and defined the key lengths for the algorithms.  Changed the
8741           code accordingly.  The default key length is now 256 bits.
8742
8743         * Fixed SKE key distribution function silc_ske_process_key_material
8744           when the key length is more than 128 bits.  The default key
8745           length in SILC is now 256 bits.
8746
8747         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
8748           to indicate unsupported algorithm.
8749
8750         * Renamed rijndael.c to aes.c and all functions as well.
8751
8752         * Fixed a long standing channel key setting bug in client library.
8753           Weird that it has never surfaced before.
8754
8755         * Fixed bug in channel deletion.  If the entire channel is removed
8756           then it must also delete the references of the channel entry
8757           from the client's channel list as the client's channel entry and
8758           the channel's client entry share same memory.
8759
8760 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8761
8762         * Implemented CONNECT and SHUTDOWN commands in the client.
8763
8764         * Implemented CLOSE command to the client.
8765
8766         * Added the function silc_idlist_find_server_by_name into the
8767           files silcd/idlist.[ch].
8768
8769           Added the function silc_idlist_find_server_by_conn into the
8770           files silcd/idlist.[ch].
8771
8772 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8773
8774         * DIE command was renamed to SHUTDOWN.  Updated the both code
8775           and protocol specs.
8776
8777         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
8778           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
8779
8780         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
8781           side.
8782
8783         * Added function silc_server_create_connection function to create
8784           connection to remote router.  My server implementation actually
8785           does not allow router to connect to normal server (it expects
8786           that normal server always initiates the connection to the router)
8787           so the CONNECT command is only good for connecting to another
8788           router.
8789
8790 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8791
8792         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
8793           or some other client was kicked from the channel.
8794
8795           Implemented the handling of the notify type to both client
8796           and server.
8797
8798           Implemented silc_server_send_notify_kicked to send the KICKED
8799           notify.  It is used to send it to the server's primary router.
8800
8801         * Implemented the KICK command into server and client.
8802
8803         * Added `query' argument to the silc_idlist_get_client function
8804           to indicate whether to query the client from server or not if
8805           it was not found.
8806
8807         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
8808           to indicate that the client is not channel founder.
8809
8810         * Updated TODO.
8811
8812 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8813
8814         * Removed the rng context from SilcPacketContext structure and
8815           changed that the packet routine uses the Global RNG API.
8816
8817 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8818
8819         * Added support for quit message that client can "leave" on the
8820           channel when it quits the SILC.  It is ditributed inside the
8821           SILC_NOTIFY_TYPE_SIGNOFF notify type.
8822
8823           Added silc_server_free_client_data that will take the
8824           signoff message as argument.
8825
8826         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
8827
8828 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8829
8830         * Updated parts of the protocol specification to keep it up
8831           to date.
8832
8833 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8834
8835         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
8836           payloads in one packet.
8837
8838         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
8839           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
8840           use now the new List flag.
8841
8842         * Also deprecated the following packet types: REPLACE_ID,
8843           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
8844
8845         * Added list support for Notify packet in server.
8846
8847         * Added silc_server_send_notify_channel_change to send the
8848           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
8849           the silc_server_send_replace_id.
8850
8851         * Added silc_server_send_notify_nick_change to send the
8852           NICK_CHANGE notify type.  Deprecates the function
8853           silc_server_send_replace_id.
8854
8855         * Added silc_server_send_notify_join to send the JOIN notify type.
8856           Deprecates the function silc_server_send_new_channel_user.
8857
8858         * Added silc_server_send_notify_leave to send LEAVE notify type.
8859           Deprecates the function silc_server_send_remove_channel_user.
8860
8861         * Added silc_server_send_notify_cmode and
8862           silc_server_send_notify_cumode to send CMODE and CUMODE notify
8863           types.  Deprecates the silc_server_send_set_mode function.
8864
8865         * Added SERVER_SIGNOFF notify type to indicate that server has
8866           quit.  This means that all clients on the channel from that
8867           server will drop.  This can be also used when netsplit happens.
8868
8869           Deprecated REMOVE_ID packet type since it is not needed anymore
8870           even from server.
8871
8872           Added silc_server_send_notify_server_signoff to send the
8873           SERVER_SIGNOFF notify type.  Deprecates the function
8874           silc_server_send_remove_id.
8875
8876           Added also silc_server_send_notify_signoff to send the
8877           SIGNOFF notify type.
8878
8879         * Employed the PKCS #1. It is the mandatory way to do RSA in the
8880           SILC protocol from this day on.  Changed the protocol
8881           specification as well.
8882
8883         * Added silc_server_send_notify_topic_set to send TOPIC_SET
8884           notify type.  It is used between routers to notify about
8885           topic changes on a channel.
8886
8887         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
8888           ID data.
8889
8890         * Partly updated the protocol specification to comply with the
8891           changes now made.  It is still though a bit outdated.
8892
8893         * The JOIN notify type now takes one extra argument <Channel ID>.
8894           The packet used to be destined to the channel but now the
8895           JOIN type may be sent as list thus it is impossible to
8896           destine it to any specific channel.  By adding this argument
8897           it is again possible.
8898
8899 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8900
8901         * Added CREDITS file.  The CHANGES and CREDITS file will appear
8902           in the distribution as well.
8903
8904 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8905
8906         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
8907           types in the server's silcd/packet_receive.c.
8908
8909         * Implemented CMODE and CUMODE to work in router environment.
8910
8911         * Fixed minor encoding and decoding buglet from the
8912           lib/silccore/silcmode.c.
8913
8914         * Fixed buffer overflow from lib/silcclient/command.c in USERS
8915           command parsing.
8916
8917 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
8918
8919         * Changed all SilcConfigServer* and silc_config_server* to
8920           SilcServerConfig* and silc_server_config*, respectively.
8921           Patch by Bostik.
8922
8923 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8924
8925         * Associated the ID (client or server ID) to the Authentication
8926           Payload to avoid any possibility of forging.  Updated the
8927           protocol specification and the code accordingly.
8928
8929 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8930
8931         * The RSA key length is now save to the RsaKey context in the
8932           key generation process in lib/silccrypt/rsa.c.  The key length
8933           is now used to figure out the maximum size of the block allowed
8934           to be encrypted/signed.
8935
8936         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
8937           is equivalent to the silc_mp_mp2bin but does not allocate any
8938           memory.
8939
8940         * Changed silc_mp_mp2bin API to take length argument.  If it is
8941           non-zero then the buffer is allocated that large.  If zero, then
8942           the size is approximated using silc_mp_sizeinbase, which however
8943           is not relieable.
8944
8945         * Created Global RNG API which is global RNG that application can
8946           initialize.  After initializing, any routine anywhere in the
8947           code (including library) can use RNG without allocating a new
8948           RNG object.  This was done to allow this sort of use of the
8949           RNG in code that has no chance to allocate RNG object.  All
8950           applications currently allocate this and many routines in the
8951           library use this.  Affected file lib/silccrypt/silcrng.[ch].
8952
8953         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
8954           it to use the Global RNG API.
8955
8956         * Defined Authentication Payload into protocol specification that
8957           is used during SILC session to authenticate entities.  It is
8958           used for example by client to authenticate itself to the server
8959           to obtain server operator privileges.
8960
8961           Implemented this payload into the lib/silccore/silcauth.[ch].
8962           Implemented also routines for public key based authentication
8963           as the new protocol specification dictates.
8964
8965           Moved definitions of different authentication methods from
8966           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
8967
8968         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
8969           silc_pkcs_verify and silc_pkcs_sign_with_hash and
8970           silc_pkcs_verify_with_hash functions into the file
8971           lib/silccrypt/silcpkcs.[ch].
8972
8973 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8974
8975         * The client entry's userinfo pointer must be always valid.
8976           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
8977           will fail since it requires the userinfo.  Now, the userinfo
8978           is allocated as "" if actual userinfo does not exist.  Actually,
8979           it must exist and it is totally Ok to drop client connections
8980           that does not announce the userinfo.  However, we will make
8981           this workaround for now.
8982
8983         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
8984           to return the remote port by socket.
8985
8986 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8987
8988         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
8989           SILC_SERVER_PENDING_EXEC and added an new macro
8990           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
8991           data or when error occurs while processing the pending command.
8992
8993           Added new argument `destructor' into silc_server_command_pending
8994           and to the SilcServerCommandPending object.  This destructor is
8995           now called after calling the pending callback or if error occurs
8996           immediately.  If error occurs the actual pending callback won't
8997           be called at all - only the destructor.  The destructor may be
8998           NULL if destructor is not needed.
8999
9000           All this applies for client library code as well.  Similar
9001           changes were made there as well for the pending commands.
9002
9003           In the client, the application must now allocate the
9004           SilcClientCommandContext with the silc_client_command_alloc
9005           function.
9006
9007         * Added reference counter to the SilcServerCommandContext.  Added
9008           function silc_server_command_alloc and silc_server_command_dup
9009           functions.
9010
9011           Same type of functions added to the client library for the same
9012           purpose as well.
9013
9014         * Removed the cmd_ident from IDListData away since it is now
9015           global for all connections.  It is the command identifier used
9016           in command sending and with pending commands.  The affected file
9017           is silcd/idlist.h.
9018
9019         * Added reference counter to the SilcSocketConnection objecet to
9020           indicate the usage count of the object.  The object won't be
9021           freed untill the reference counter hits zero.  Currently only
9022           server uses this, and client ignores it.  The client must be
9023           set to use this too later.  The affected files are
9024           lib/silccore/silcsockconn.[ch].  Added also the function
9025           silc_socket_dup to increase the reference counter.
9026
9027           This was mainly added because it is possible that the socket
9028           is removed underneath of pending command or other async
9029           operation.  Now it won't be free'd and proper DISCONNECTING
9030           flags, etc. can be set to avoid sending data to connection that
9031           is not valid anymore.
9032
9033         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
9034           the connection.  After that it sets SILC_SET_DISCONNECTED.
9035           It is, however, possible that the socket data is not still freed.
9036           The silc_server_packet_process now checks that data is not
9037           read or written to connection that is DISCONNECTED.  The socket
9038           get's freed when the reference counter hits zero.
9039
9040 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9041
9042         * Changed the client operation API: channel_message operation's
9043           `sender' is now the client entry of the sender, not the nickname
9044           and the `channel' is the channel entry, not the channel name.
9045
9046           In the private_message operation the `sender' is now also the
9047           client entry of the sender not the nickname.
9048
9049           Affected file is lib/silcclient/ops.h and all applications
9050           using the client operations.
9051
9052 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9053
9054         * Moved the calling of ops->connect() from connect_to_server_final
9055           into receive_new_id functin since that is the point when the
9056           client is actually allowed to send traffic to network.  The
9057           affected file is lib/silcclient/client.c.
9058
9059 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9060
9061         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
9062           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
9063           (if needs broadcasting) instead of broadcasting the packets one
9064           by one which would make a burst in the network traffic.
9065
9066         * Added `broadcast' argument to the functions in silcd/server.[ch]
9067           silc_server_create_new_channel[_with_id] to indicate whether
9068           to send New Channel packet to primary router.
9069
9070 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9071
9072         * Added new function into the silcd/server.[ch] files:
9073           silc_server_create_new_channel_with_id to create new channel with
9074           already existing Channel ID.
9075
9076         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
9077           lib/silccore/silcpacket.h.  This packet is used t send list of
9078           Set Mode payloads inside one packet.  Server uses this to set
9079           the modes for the channels and clients on those channels, that it
9080           announced to the router when it connected to it.  The protocol
9081           specification has been updated accordingly.
9082
9083         * The silc_server_new_channel did not handle the packet coming
9084           from normal server as it normally does not send that.  However,
9085           when it announces its channels it does send it.  Implemented
9086           the support for that.
9087
9088         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
9089           into the file lib/silccore/id.h.
9090
9091 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9092
9093         * Fixed memory leaks in the functions silc_idlist_del_client,
9094           silc_idlist_del_channel and silc_idlist_del_server in the file
9095           silcd/idlist.c.  All of those leaked like a sieve.
9096
9097         * Fixed some small memory leaks in the client's function
9098           silc_client_notify_by_server.
9099
9100         * Added functions into silcd/server.c: silc_server_announce_clients,
9101           silc_server_announce_channels and silc_server_announce_server.
9102           These functions are used by normal and router server to announce
9103           to its primary router about clients, channels and servers (when
9104           router) that we own.  This is done after we've connected to the
9105           router.
9106
9107           These functions effectively implements the following packet types:
9108           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
9109           and SILC_PACKET_NEW_ID_LIST.
9110
9111         * Added new functions into the silcd/packet_receive.[ch]:
9112           silc_server_new_id_list, silc_server_new_channel_list and
9113           silc_server_new_channel_user_list to handle the incoming
9114           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
9115
9116         * Added support of changing Channel ID in the function
9117           silc_server_replace_id.  If the server that announces a channel
9118           to the router already exists in the router (with same name but
9119           with different Channel ID), router is responsible to send
9120           Replace ID packet to the server and force the server to change
9121           the Channel ID to the one router has.
9122
9123         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
9124           client that the Channel ID has been changed by the router.  The
9125           normal server sends this to the client.  Client must start using
9126           the new Channel ID as the channel's ID.
9127
9128           Implemented handling of this new type into lib/silcclient/client.c
9129           into the function silc_client_notify_by_server.
9130
9131         * Added new function silc_idlist_replace_channel_id into the files
9132           silcd/idlist.[ch] to replace the Channel ID.
9133
9134 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9135
9136         * Call silc_server_command_identify_check always when processing
9137           the IDENTIFY command in silcd/command.c
9138
9139 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9140
9141         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
9142           send keepalive packets.  The packet can be sent by clients,
9143           servers and routers.
9144
9145           Added function silc_socket_set_heartbeat into the file
9146           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
9147           If not set, the heartbeat is not performed.  The actual
9148           heartbeat is implemented in the low level socket connection
9149           library.  However, application is responsible of actually
9150           sending the packet.
9151
9152           Added silc_server_send_heartbeat to send the actual heartbeat
9153           packet into silcd/packet_send.[ch].  Server now performs
9154           keepalive with all connections.
9155
9156         * Added silc_task_get_first function into lib/silcutil/silctask.c
9157           to return the timeout task with shortest timeout.  There was a bug
9158           in task unregistration that caused problems.  TODO has been
9159           updated to include that task system must be rewritten.
9160
9161         * The client library will now resolve the client information when
9162           receiving JOIN notify from server for client that we know but
9163           have incomplete information.
9164
9165         * Rewrote parts of silc_server_remove_from_channels and
9166           silc_server_remove_from_one_channel as they did not remove the
9167           channel in some circumstances even though they should've.
9168
9169         * Encryption problem encountered in server:
9170
9171           The LEAVE command used to send the Channel Key packet to the
9172           router immediately after generating it.  However, the code
9173           had earlier sent Remove Channel user packet but not immediately,
9174           ie. it was put to queue.  The order of packets in the router
9175           was that Channel Key packet was first and Remove Channel User
9176           packet was second, even though they were encrypted in the
9177           reverse order.  For this reason, MAC check failed.  Now, this
9178           is fixed by not sending the Channel Key packet immediately but
9179           putting it to queue.  However, this is more fundamental problem:
9180           packets that are in queue should actually not be encrypted
9181           because packets that are sent immediately gets encrypted
9182           actually with wrong IV (and thus MAC check fails).  So, packets
9183           that are in queue should be encrypted when they are sent to
9184           the wire and not when they put to the queue.
9185
9186           However, the problem is that the current system has not been
9187           designed to work that way.  Instead, the packet is encrypted
9188           as soon as possible and left to the queue.  The queue is then
9189           just purged into wire.  There won't be any fixes for this
9190           any time soon.  So, the current semantic for packet sending
9191           is as follows:
9192
9193           o If you send packet to remote host and do not force the send
9194           (the packet will be in queue) then all subsequent packets to the
9195           same remote host must also be put to the queue.  Only after the
9196           queue has been purged is it safe again to force the packet
9197           send immediately.
9198
9199           o If you send all packets immediately then it safe to send
9200           any of subsequent packets through the queue, however, after
9201           the first packet is put to queue then any subsequent packets
9202           must also be put to the queue.
9203
9204           Follow these rules and everything works fine.
9205
9206 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9207
9208         * Added new function silc_server_remove_clients_by_server to
9209           remove all client entries from ID list when the server connection
9210           is lost.  In this case it is also important to invalidate all
9211           client entires as they hold the invalid server entry.  This
9212           fixes fatal bug when server has lost connection and will reconnect
9213           again.
9214
9215 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9216
9217         * Made some sanity checks to silc_server_daemonise like to check
9218           whether the requested user and group actually exists.
9219
9220         * Added sanity check to SKE's silc_ske_responder_finish to check
9221           that the public and private key actually is valid.
9222
9223         * Invalidate the client's nickname when receiving Replace ID
9224           packet and the Client ID is being replaced.  This means that the
9225           server will query the nickname if someone needs it (client)
9226           a bit later.
9227
9228         * Sort the ID Cache in client library when the ID Cache data
9229           has changed (needs sorting).
9230
9231         * Do not allow for SILC client to create several connections to
9232           several servers.  The client does not support windows right now
9233           and generating multiple connections causes weird behaviour.
9234
9235           Irssi-silc client does support windows and can handle several
9236           connections without problems, see: www.irssi.org and SILC plugin.
9237
9238         * Fixed some places where client was added to the IDList.  The
9239           rule of thumb is following (in order to get everything right):
9240           If the client is directly connected local client then the
9241           `connection' argument must be set and `router' argument must be
9242           NULL to silc_idlist_add_client function.  If the client is not
9243           directly connected client then the `router' argument must
9244           bet set and the `connection' argument must be NULL to the
9245           silc_idlist_add_client function.
9246
9247         * The funtion silc_server_packet_send_local_channel actually did
9248           not check whether the client was locally connected or not.  It
9249           does that now.  Fixed a bug related to LEAVE command.
9250
9251         * Fixed Remove Channel User payload parsing bug in server's
9252           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
9253
9254         * The server's silc_server_save_channel_key now checks also the
9255           global ID list for the channel as it might not be in the local
9256           list.  Fixed a bug related to LEAVE command.
9257
9258         * Is this the end of the [<unknown>] buglet that has been lurking
9259           around for a long time?  A little for loop fix in server's
9260           silc_server_command_whois_parse that is used by both IDENTIFY
9261           and WHOIS command.  At least, this was a clear bug and a cause
9262           of one type of [<unknown>] buglet.
9263
9264         * WHOIS and IDENTIFY commands call the function
9265           silc_server_command_[whois/identify]_check function even if
9266           we are not router server.
9267
9268 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9269
9270         * Added --with-gmp configuration option.  If set the GMP
9271           is always compiled in the SILC source tree.  If not set then
9272           it is checked whether the system has the GMP3 installed.  If
9273           it has then the GMP won't be compiled (the system's headers
9274           and library is used), if it doesn't have it then the GMP is
9275           compiled in the SILC source tree.
9276
9277 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9278
9279         * Changed RSA private exponent generation to what PKCS #1
9280           suggests.  We try to find the smallest possible d by doing
9281           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
9282           not security fix but optimization.
9283
9284 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9285
9286         * Added new config entry [Identity] to fork the server and run
9287           it as specific user and group.  A patch from Bostik.
9288
9289         * Imported Dotconf configuration library into lib/dotconf.
9290           This will be used to create the SILC configuration files later.
9291           It will appear in the distsribution after this commit.
9292
9293 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9294
9295         * A big code auditing weekend happening.  Auditing code for
9296           obvious mistakes, bugs and errors.  Also, removing any code
9297           that is obsolete.
9298
9299           Removed files for being obsolete:
9300
9301           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
9302           inline in the file lib/silcutil/silcbuffer.h)
9303
9304           o lib/silcutil/silcbufutil.c (the header has inline versions)
9305
9306           Changed code to fix possible error conditions:
9307
9308           o The buffer formatting routines now check that the destination
9309           buffer really has enough space to add the data.  This applies for
9310           both buffer formatting and unformatting
9311           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
9312           unformatting was changed to accomodate following rules:
9313           XXX_*STRING_ALLOC will allocate space for the data into the pointer
9314           sent to the function while XXX_*STRING will not allocate or copy
9315           the data into the buffer.  Instead it sets the pointer from the
9316           buffer into the pointer sent as argument (XXX_*STRING used to
9317           require that the pointer must be allocated already).  This change
9318           makes this whole thing a bit more consistent and more optimized
9319           (note that the data returned in the unformatting with XXX_*STRING
9320           must not be freed now).  The routines return now -1 on error.
9321
9322           o Tried to find all code that use buffer_format and buffer_unformat
9323           and added return value checking to prevent formatting and
9324           especially unformatting errors and possible subsequent fatal
9325           errors.
9326
9327           o Changed ske->x and ske->KEY to mallocated pointers in
9328           lib/silcske/silcske.h.  Fixed possible data and memory leak.
9329
9330           o Added return value checking to all *_parse* functions.  Fixed
9331           many memory leaks as well.
9332
9333           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
9334           so that buffer overflows would not happen.  All code now also
9335           checks the return value as it can fail.
9336
9337 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9338
9339         * Added reconnection support to server if the normal server looses
9340           its connection to the router (for example if router is rebooted).
9341           The server performs normal reconnection strategy implemented
9342           to the server.  Affected file silcd/server.c.
9343
9344 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9345
9346         * Added new packet type SILC_PACKET_SET_MODE that is used to
9347           distribute the information about changed modes (for clients,
9348           channels and clients channel modes) to all routers in the
9349           network.  Updated the protocol specification accordingly.
9350
9351           Added functions into silcd/packet_send.c and
9352           silcd/packet_receive.c: silc_server_send_set_mode,
9353           silc_server_set_mode.
9354
9355           Added new files silcmode.[ch] into lib/silccore that implements
9356           the encoding and decoding of Set Mode Payload.  Added new type
9357           SilcSetModePayload.  Moved the definitions of different modes
9358           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
9359
9360 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9361
9362         * Oops, a little mistake in server's connection authentication
9363           protocol.  The protocol is not ended with FAILURE but with
9364           SUCCESS if the authentication is Ok. :)  Affected file is
9365           silcd/protocol.c.
9366
9367         * Implemented NICK_CHANGE notify handling in server in the file
9368           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
9369           the local clients on the channel.  After the changing nickname
9370           in router environment snhould work and the [<unknown>] nickname
9371           should appear no more.
9372
9373           The silc_server_replace_id function that receives the Replace ID
9374           payload now sends the NICK_CHANGE notify type also in the file
9375           silcd/packet_receive.c
9376
9377         * Changed WHOIS and IDENTIFY command to support the maximum amount
9378           of arguments defined in protocol specs (3328 arguments).  This
9379           fixed a bug that caused problems when there were more than three
9380           users on a channel.
9381
9382 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9383
9384         * Added extra parameter, command identifier, to the
9385           silc_client_send_command so that explicit command identifier
9386           can be defined.
9387
9388           Changed that ID list routines uses specific command identifier
9389           when sending WHOIS/IDENTIFY requests to the server so that they
9390           can be identified when the reply comes back.
9391
9392           Affected files lib/silcclient/command.[ch],
9393           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
9394
9395         * Added `sender' argument to silc_server_packet_send_to_channel
9396           to indicaet the sender who originally sent the packet to us
9397           that we are now re-sending.  Ignored if NULL.  Affected file
9398           silcd/packet_send.[ch].
9399
9400         * Added some server statistics support in silcd/server_internal.h
9401           SilcServerStatistics structure and around the server code.  Also
9402           send some nice statistics information when client is connecting
9403           to the client.
9404
9405 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9406
9407         * Fixed channel ID decoding in server's JOIN command reply in
9408           silcd/command_reply.c
9409
9410         * Fixed braodcasting of replace ID payload to not to send it if
9411           we are standalone server in silcd/packet_receive.c.
9412
9413         * Fixed all channel message sending routines to not to send
9414           packets to clients that has router set, since they are routed
9415           separately in the same function earlier.  Affects file
9416           silcd/packet_send.c and all channel packet sending functions.
9417
9418         * In USERS reply, res_argv[i] are not allocated, the table
9419           is allocated.  Thus changed that free the table, not its
9420           internals.
9421
9422         * In server's whois_check and identify_check if the client is
9423           locally connected do not send any WHOIS commands - they are not
9424           needed.
9425
9426 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9427
9428         * Fixed some minor bugs in client when sending WHOIS command.  The
9429           arguments was in wrong order.
9430
9431         * Removed statis function add_to_channel from server in
9432           silcd/command.c that was previously used with the joining but
9433           is obsolete now.
9434
9435         * Tested USERS command in router environment successfully with two
9436           routers, two servers and two clients.
9437
9438 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9439
9440         * Reorganized the USERS command and command reply in client library
9441           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
9442           When the command is given by user we register a pending command
9443           callback that will reprocess the command after the reply has been
9444           received from the server.  When reprocessing the packet we then
9445           display the information.  Thus, the USERS information is displayed
9446           now in the command callback instead of in the command reply
9447           callback.  The processing of the command is same as previously
9448           when server has sent the command reply in the JOINing process.
9449
9450         * Added to USERS command in silcd/command_reply.c to join the client,
9451           we didn't use to know about, to the channel after we've created
9452           a client entry for it.  Also, for clienet we did know already still
9453           check whether it is on the channel or not and add it if not.
9454
9455         * Removed silc_server_command_join_notify as the function and its
9456           use was obsolete.
9457
9458 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9459
9460         * Changed the client's pending command handling to the same as the
9461           server's pending command handling.  It is also now possible to
9462           execute command reply functions from other command reply
9463           function as the function callbacks for commands and command
9464           replies are one and same.  The pending commands are not static
9465           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
9466           in client connection context.  Thus, pending commands are server
9467           connection specific as it is convenient.
9468
9469           Changed the function silc_client_command_pending and
9470           silc_client_command_pending_del and added new function
9471           silc_client_command_pending_check.  Removed the
9472           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
9473           macros.
9474
9475         * Added cmd_ident, current command identifier, to the client
9476           connection context in lib/silcclient/client.h to keep track on
9477           command identifiers used in command sending.  Client's command reply
9478           function handling now supports the mandatory command identifiers.
9479
9480         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
9481           funtions in client to fully support pending command callbacks.
9482
9483         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
9484           as one of the arguments to the application in the command reply
9485           client operation.
9486
9487         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
9488           before first releasing SILC but came back.  Now it is removed again
9489           and should come back nomore.  The FORWARDED flag was used only
9490           by the JOINing procedure by forwarding the command packet to router.
9491           Now, the JOINing procedure has been changed to more generic (due
9492           to various router environment issues) and FORWARDED is not needed
9493           anymore for anything.  The protocol specification is yet to be
9494           updated.
9495
9496           Now, removed silc_server_packet_forward from server and the flag
9497           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
9498
9499 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9500
9501         * Renamed NAMES command to USERS command.  The NAMES was named that
9502           due to historical reasons.  Now it is renamed.  Also, rewrote
9503           parts of the USERS command.  The nickname list is not sent anymore
9504           by the server.  Only Client ID and mode lists are sent in the USERS
9505           command.  Changed this also to the protocol specification.
9506
9507           The client now resolves the names and stuff after it receives
9508           the USERS list from the server when joining to the channel.
9509
9510         * WHOIS and IDENTIFY commands has been changed to support multiple
9511           Client ID's per command.  One can now search for multiple users
9512           in the network by sending only one WHOIS or IDENTIFY command.
9513           Changed the code and the protocol specifications.
9514
9515         * Removed silc_server_command_identify_parse and changed that IDENTIFY
9516           uses silc_server_command_whois_parse to parse the request. */
9517
9518         * If normal server, do not parse the WHOIS and IDENTIFY requests
9519           before sending it to the router.  Saves some time.
9520
9521 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9522
9523         * Fixed JOIN command on client library.  Wrong number of arguments
9524           used to crash the client.
9525
9526         * Added silc_server_channel_has_global function to check whether
9527           channel has global users or not.
9528
9529         * Added silc_server_channel_has_local function to check whether channel
9530           has locally connected clients on the channel.
9531
9532         * The silc_server_remove_from_one_channel now checks whether the
9533           channel has global users or not after given client was removed from
9534           the channel.  It also checks whether the channel has local clients
9535           on the channel anymore.  If it does not have then the channel entry
9536           is removed as it is not needed anymore.
9537
9538         * The silc_server_notify now checks on JOIN notify whether the joining
9539           client is one of locally connected or global.  If it is global then
9540           the channel has now global users on the channel and that is marked
9541           to the channel entry.  Also, it now saves the global client to
9542           global list who is joining and JOINs it to the channel.  This is
9543           for normal server, that is.
9544
9545           Changed silc_server_send_notify_on_channel,
9546           silc_server_packet_relay_to_channel and
9547           silc_server_packet_send_to_channel check if we are normal server
9548           and client has router set (ie. global client) do not send the
9549           message to that client, as it is already routed to our router.
9550
9551         * Implemented LEAVE notify type handling in silc_server_notify
9552           function.
9553
9554         * Tested LEAVE command in router environment successfully.  Tested
9555           with two routers, two servers and two clients.
9556
9557         * Updated TODO.
9558
9559         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
9560
9561         * Implemented SIGNOFF notify type handling in silc_server_notify
9562           function.
9563
9564         * silc_server_remove_id now removes the client entry from all channels
9565           it has joined and thusly sends SIGNOFF notify type.
9566
9567         * Rewrote the NAMES list generation in server by removing two excess
9568           loops.  The lists are created now inside one loop.
9569
9570 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9571
9572         * silc_server_remove_channel_user checks now also global list
9573           for channel and client.
9574
9575         * silc_server_new_channel_user checks now both local and global
9576           list for channel and client.  Fixed a bug in client id decoding.
9577           Used to decode wrong buffer.
9578
9579         * silc_server_channel_message checks now both local and global
9580           list for channel entry.
9581
9582         * Tested channel joining (hence JOIN) in router environment
9583           successfully.  Tested with two routers, two servers and two
9584           clients.
9585
9586         * Tested channel message sending in router environment successfully.
9587
9588 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9589
9590         * Added silc_server_save_channel_key into server.[ch] to save the
9591           received channel key in Channel Key payload processing. It is
9592           also used in JOIN command reply handling.
9593
9594           Equivalent function silc_client_save_channel_key added into
9595           client.[ch] into client library.
9596
9597         * Changed JOIN command reply to send information whether the channel
9598           was created or not (is existing already) and the channel key
9599           payload.  Changed protocol specs accordingly.
9600
9601         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
9602           the request was sent by ID and not by nickname.  Crashed on
9603           NULL dereference.
9604
9605 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9606
9607         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
9608           now correctly save the received data.
9609
9610         * silc_server_free_sock_user_data now notifies routers in the
9611           network about entities leaving the network.
9612
9613           At the same time implemented functions silc_server_remove_id
9614           and silc_server_send_remove_id to receive and send REMOVE_ID
9615           packets.  The packet is used to notify routers in the network
9616           about leaving entities.  The ID removed will become invalid in
9617           the network.
9618
9619         * Added function silc_idlist_del_server into server. Removes and
9620           free's server entry from ID list.
9621
9622         * silc_server_private_message function now checks, if we are router,
9623           that the destination ID really is valid ID, naturally.
9624
9625         * In router when NEW_ID packet is received (for new client) the
9626           hash of the Client ID is saved in the ID Cache but the
9627           client->nickname is set to NULL, instead of putting the hash
9628           to it as well.
9629
9630           IDENTIFY command now also checks that client->nickname must be
9631           valid. If it is not if will request the data from the server who
9632           owns the client.  Added new function
9633           silc_server_command_identify_check.
9634
9635         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
9636           to set the command to already allocated Command Payload.
9637
9638         * Tested private message sending in router environment with two
9639           routers, two servers and two clients.  Fixed minor bugs and now
9640           it works fine.
9641
9642         * Fixed segfault from client's NAMES command. Used to crash if
9643           not on any channel.
9644
9645         * Forwarded packets must not be routed even if it is not destined
9646           to the receiver.  Changed server code comply with this.
9647
9648 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9649
9650         * Added `require_reverse_mapping' boolean value to ServerParams
9651           structure. If TRUE (not default) the server will require that
9652           the connecting host has fully qualified domain name.
9653
9654           If the reverse mapping is not required and hostname could not be
9655           found the IP address is used as hostname.
9656
9657 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9658
9659         * Implemented version string checking to both client and server.
9660           The check is incomplete currently due to the abnormal version
9661           strings used in development version of SILC.
9662
9663         * Changed all command functions in server to use the new
9664           CHECK_ARGS macro.
9665
9666 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9667
9668         * Changed char *data to unsigned char *data in ID Cache system to
9669           support binary data as ID Cache data. Changed code to support
9670           binary data in lib/silccore/idcache.c.
9671
9672         * Renamed silc_server_packet_relay_command_reply to
9673           silc_server_command_reply as it is normal packet receiving
9674           function. Rewrote the function to accept command replys for
9675           servers and not only for clients.
9676
9677         * Mark remote router always as registered server if we are connecting
9678           to it.  Otherwise, commands sent by the router to us are ignored.
9679
9680         * All ID List find routines now returns the ID Cache Entry pointer
9681           as well if requested.
9682
9683         * WHOIS command works now in router environment, tested with two
9684           routers, two servers and two clients.
9685
9686         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
9687           in router environment (as it is almost equivalent to WHOIS) but
9688           hasn't been tested thoroughly.  Added new functions:
9689
9690           silc_server_command_identify_parse
9691           silc_server_command_identify_send_reply
9692           silc_server_command_identify_from_client
9693           silc_server_command_identify_from_server
9694
9695         * Disabled route cache adding because adding two different ID's with
9696           same IP replaces the old cache entry thus giving wrong route.
9697           The entry->router->connection is always the fastest route anyway
9698           so route cache may not be needed.  Of course, new routes maybe
9699           established after receiving the ID when the entry->router->connection
9700           might not be anymore the most optimal.
9701
9702 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9703
9704         * Add route cache for received ID for fast routing.
9705
9706         * Added silc_server_packet_route to route received packet on router
9707           that is not destined to us.
9708
9709         * Renamed silc_server_get_route to silc_server_route_get.
9710
9711         * Added id_string and id_string_len fields into SilcServer to
9712           include encoded ServerID for fast comparing without excess
9713           encoding of the ID's.
9714
9715         * Cleaned up WHOIS command on server side. Added following static
9716           functions:
9717
9718           silc_server_command_whois_parse
9719           silc_server_command_whois_check
9720           silc_server_command_whois_send_reply
9721           silc_server_command_whois_from_client
9722           silc_server_command_whois_from_server
9723
9724         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
9725           arguments in command replies. All command functions should be
9726           updated to use this macro.
9727
9728 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9729
9730         * Minor typo fixes on command reply handling on server.
9731
9732 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9733
9734         * Added silc_server_command_add_to_channel internal routine to add
9735           the client to the channel after router has created the channel and
9736           sent command reply to the server.
9737
9738         * Added generic silc_server_send_command to send any command from
9739           server.
9740
9741         * Use static buffer with ID rendering instead of duplicating data.
9742
9743 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9744
9745         * Fixed a channel user mode bug when joining to a channel server gave
9746           everybody channel founder rights, oops.
9747
9748         * We mark ourselves as the router of the incoming server connection
9749           if we are router ourselves.  This way we can check in some packet
9750           sending functions whether it is locally connected server.  For
9751           incoming router connections we put NULL.
9752
9753         * For router sending packets locally means now always sending the
9754           packet cell wide; to local clients and local servers.  For normal
9755           server sending packet locally means sending it to only local
9756           clients.
9757
9758         * Fixed the JOIN command to really work in router environment.  If the
9759           channel is created it is always created by the router.  Router is
9760           also responsible of making the initial joining to the channel,
9761           sending JOIN notify to the sending server and distributing
9762           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
9763           does not exist server doesn't do anything else but forward the
9764           command to the router which performs everything.
9765
9766         * Added silc_server_send_channel_key function to send the Channel Key
9767           payload.
9768
9769         * Added silc_server_create_channel_key to create new channel key.  The
9770           channel key is now re-generated everytime someone joins or leaves
9771           a channel, as protocol dictates.  Note: channel->key_len is the
9772           key length in bits.
9773
9774 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9775
9776         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
9777           packet_receive.[ch] to separate packet sending and receiving
9778           routines.  The server.[ch] now includes everything else including
9779           actual packet processing (writing and reading data) and other
9780           server issues.
9781
9782           Renamed silc_server_private_message_send_internal to
9783           silc_server_send_private_message.  The routine is still though
9784           used only to relay private messages as server does not send
9785           private messages itself.
9786
9787           Renamed silc_server_new_channel to silc_server_create_new_channel
9788           and added new function sicl_server_new_channel that handles the
9789           incoming New Channel packet.  Added also new sending function
9790           silc_server_send_new_channel to send New Channel Payload.
9791
9792         * Added new function silc_server_notify to process incoming notify
9793           packet to the server/router. Server may then relay the notify
9794           to clients if needed.
9795
9796         * Added new function silc_server_new_channel_user to process incoming
9797           New Channel User packet.  Router will redistribute the packet and
9798           send JOIN notify to its local clients and locally connected servers
9799           if needed.  Normal server will send JOIN notify to its local client
9800           on same channel when received this packet.  Added also corresponding
9801           sending function silc_server_send_new_channel_user to sent the
9802           payload.
9803
9804         * Added boolean route argument to send_notif_to_channel and
9805           packet_send_to_channel functions to attempt to route the packet
9806           if it is TRUE and send only locally if it is FALSE.
9807
9808 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9809
9810         * silc_server_replace_id now broadcasts the received replace ID
9811           packet if it is not broadcast packet already. The router must
9812           broadcast to inform other routers about changed ID.
9813
9814         * Added backpointer to server's router into SilcServer context in
9815           silcd/server_internal.h.
9816
9817         * Fixed silc_server_packet_broadcast to send correct broadcast
9818           packets.
9819
9820         * The channel key is now distributed to the local client as soon
9821           as it is received from the router (in router environment) so that
9822           no other packet may be sent for the channel until client has
9823           received the key.
9824
9825         * silc_server_remove_channel_user now broadcasts the received
9826           Remove Channel User packet if it is not broadcast packet already.
9827           The router must broadcast to inform other routers about removed
9828           channel user.
9829
9830         * Added users field into SilcPacketContext that is a reference count
9831           of the context.  One can increase the reference count by calling
9832           silc_packet_context_dup which is now changed to just increase the
9833           reference count instead of duplicating the data.  The reference
9834           count is decresed by calling silc_packet_context_free that will
9835           free the data after the reference count hits zero.
9836
9837           For now on the packet context and everything allocated into it
9838           (including the raw packet from network) must be freed by calling
9839           the new silc_packet_context_free function.  Added also new function
9840           silc_packet_context_alloc that must be used now to allocate the
9841           context.  This also means that if a routine is asynchronous from
9842           silc_[client/server]_packet_parse_type the packet context must
9843           be duplicated by calling silc_packet_context_dup.  Otherwise it
9844           gets free'd after silc_[client/server]_packet_parse_type returns.
9845           Also, one must remember that if packet is duplicated then its
9846           reference count must be decresed by calling the free function as
9847           many times as it was duplicated.
9848
9849         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
9850           from both client and server.
9851
9852 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9853
9854         * Made joining to a channel working in router environment.
9855
9856         * Cleaned up JOIN command on server side and create function
9857           silc_server_command_join_channel internal routine to make the
9858           joining happen.
9859
9860 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9861
9862         * Changed silc_command_pending list to SilcDList.  Also, added
9863           `ident' field to SilcServerCommandPending structure to identify
9864           the reply and to call correct callback.
9865
9866           Added silc_server_command_pending_check function to replace the
9867           corresnponding macro.  The silc_command_pending list is not
9868           extern anymore.
9869
9870         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
9871           to set identifier to previously allocated Command Payload.  It
9872           is used to set identifier for command when resending Command
9873           Payload.
9874
9875         * Added silc_command_payload_encode_payload to encode Command
9876           Payload buffer from SilcCommandPayload structure.
9877
9878         * Added silc_argument_payload_encode_payload to encode Argument
9879           payload buffer from SilcArgumentPayload structure.
9880
9881 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9882
9883         * Changed WHOIS command to support router connection on server side.
9884           The whois request is always sent to router unless the server is
9885           standalone server.  After server has received the reply from the
9886           router will it send the reply to the client.
9887
9888         * Added silc_server_packet_broadcast into silcd/server.[ch] to
9889           broadcast received broadcast packet.  The function is used only
9890           by router.  The broadcast packet is always sent to the router's
9891           primary route.
9892
9893         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
9894           render given ID to printable string, for log files for example.
9895
9896 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9897
9898         * Made basic router to router connections working.  At least they
9899           can now connect to each other but nothing really works the way
9900           they are supposed - yet.
9901
9902         * Added new initiator token to RouterConnection configuration
9903           file in silcd/serverconfig.[ch].  It is used to tell whether we
9904           are the initiator to the remote router or whether we'll expect
9905           the other end to connect.
9906
9907         * Moved registering of listener task to silc_server_init, hence
9908           the server starts listenning as soon as it is run, even if it
9909           does not have connections to other routers.  Let's see how well
9910           this will work.
9911
9912         * Changed default connection retry timeouts for more suitable in
9913           silcd/server.h.
9914
9915         * Removed cipher and such arguments from silc_idlist_add_client
9916           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
9917           Added new function silc_idlist_add_data to add the keys and stuff
9918           to any ID entry.
9919
9920         * Added SilcIDListData structure and added it to SilcClientEntry
9921           and SilcServerEntry as their first field in the structure.  This
9922           way we can explicitly cast the ID entries to the SilcIDListData
9923           structure and get common data for the entries.  In past, we had
9924           to first check what type of connection it is and then cast it to
9925           correct ID entry type.  Now, we can directly cast the opaque
9926           pointer to the SilcIDListData (no matter what ID entry it actually
9927           is) and get the data needed.
9928
9929 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9930
9931         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
9932           in some circumstances even if threre were timeout tasks, though not
9933           IO tasks, but tasks anyway.  Now fixed.
9934
9935         * Defined SilcServerConnection structure to hold connection specific
9936           stuff about directly connected servers and routers.  The definition
9937           is currently in silcd/server_internal.h.  I thought about having
9938           a bit more important role fro this struct but for now it is used
9939           only when connecting to other server (or router actually).
9940
9941         * Added connecting retry support in server when connecting to
9942           router(s).  The retry feature implement exponential backoff
9943           algorithm.  Also, added SilcServerParams structure to hold default
9944           parameters for server.  For now, it include these retry settings
9945           and are hard coded.  After server is moded to be as Silc Server
9946           Library this structure will be more important.
9947
9948 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9949
9950         * Changed client librarys channel->clients table to SilcList and
9951           changed code accordingly.
9952
9953 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9954
9955         * Changed client's channel table to SilcList and changed code
9956           accordingly.  Also changed SilcChannelClientEntry to include back-
9957           pointer to the channel so that client entry can use that structure
9958           as list as well and we have fast cross-reference to the channel.
9959           This change dramatically decreased the complexity of channel
9960           handling with client entry and vice versa (removed one extra
9961           loop when searching for channel entry from many functions).
9962
9963         * Changed server->sim from table to SilcDList and changed code
9964           accordingly.
9965
9966         * NAMES command can now be used from user interface.  It will show
9967           the user list on the channel, neatly.
9968
9969         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
9970           Code now saves realname of the user if it becomes available.
9971
9972         * Renamed configure.in to configure.in.pre and made ./prepare
9973           script to automatically add correct version string to
9974           configure.in which it creates from configure.in.pre.
9975
9976 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9977
9978         * NAMES command reply now shows users mode with the nickname when
9979           joining to channel.
9980
9981         * Moved silc_client_ch[u]mode[_char] functions from
9982           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
9983           place sucks, they are utility functions and should be in some
9984           other file.
9985
9986         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
9987
9988         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
9989           cras.
9990
9991 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
9992
9993         * Updated README.
9994
9995         * Added TRQ (efficient deque and list library) into lib/trq.  This is
9996           a very good list library that is currently used in the SILC.  Defined
9997           SilcList API over the library because I didn't like the API very
9998           much.  See lib/trq/silclist.h for the API and examples of how to
9999           use the API.  Fixed various places in the code to use the new
10000           SilcList API. The SilcList is meant for lists that has a structure
10001           already defined as a list.  It is not suitable to add just some
10002           context to the list (in TRQ, the context is the list actually).
10003
10004           So, I defined SilcDList that can be used for the purpose where
10005           predefined list structure does not exit.  This can be used as
10006           such list.  Now some context just can be added to the SilcDList.
10007           Currently this list is not used in the SILC just yet, though there
10008           are a lot places where this can replace dynamically allocated
10009           tables and I will fix these places, later, to use SilcDList.
10010           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
10011           and use TRQ internally).
10012
10013           Also fixed some annoying warning messages that the original TRQ
10014           code generated.  Also minor changes to TRQ's Makefile.in.
10015
10016         * Added support for querying by Client ID to both WHOIS and
10017           IDENTIFY commands into server, as required by the protocol.
10018
10019         * Removed method function pointers from SilcBuffer structure. They
10020           weren't used to anything and just increased the context size for
10021           no good reason.  This change also made silc_buffer_alloc and
10022           silc_buffer_free functions inline functions.
10023
10024         * Disabled command flooding detection support until it's fixed so
10025           that it accepts commands in but does not execute them more than once
10026           in two seconds.
10027
10028         * Added silc_net_localhost(), to return local hostname, into
10029           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
10030           that must be initialized before calling silc_client_init.
10031
10032         * Added new function: silc_server_send_notify_on_channels to send
10033           notify messages to all channels client has joined.  It is assured
10034           that the message is sent only once per client.
10035
10036         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
10037           lib/silcutil/silcutil.[ch] as silc_format function.  The new
10038           function is generic and is used by server as well, not only by
10039           the logging routines.
10040
10041         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
10042           the provided version string was not acceptable.  Added new function:
10043           silc_ske_check_version into lib/silcske/silcske.h.  The function
10044           must be implemented by the application (client or server) and it
10045           does not reside in the SKE library.  The function checks the version
10046           string remote end sent.
10047
10048         * Added back pointers (to opaque context and to SilcSocketConnection)
10049           into SilcPacketContext structure into lib/silccore/silcpacket.h.
10050
10051         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
10052           duplicate packet context structure.
10053
10054         * Changed `notify' client operation to send same arguments as client
10055           receives from server except for ID's.  ID's are mapped to correct
10056           ID entry and that is returned.  Also, if channel entry is not sent
10057           by server but the notify is for channel the channel entry is sent
10058           to application (otherwise application doesn't know that it is for
10059           channel (library gets it from packet's Destination ID)).
10060
10061         * Added silc_client_remove_from_channels into client library to
10062           remove a client from all channels it has joined to.  Used when
10063           received SIGNOFF notify from server.  Added also new function
10064           silc_client_replace_from_channels to replace old ID entry with
10065           new ID entry on all channels.  Used when received NICK_CHANGE
10066           notify from server.
10067
10068         * Fixed ID Cache list handling in silc_idlist_get_client in
10069           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
10070           to get (or query) client by ID.
10071
10072         * Updated TODO list.
10073
10074         * Added connection authentication status message defined by the
10075           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
10076           support for these into the code in client and server side.
10077
10078         * Added generic function silc_client_send_command to send any command
10079           with variable argument list.  Application should use this function
10080           to send commands if the command functions provided by the library
10081           does not suite for the application's user interface needs.
10082
10083         * Added new `failure' client operation.  Application is notified about
10084           received failure packet if client is executing a protocol.  In this
10085           case the protocol's execution has failed.
10086
10087         * Added SKE's end notify to send the SKE_SUCCESS notify message that
10088           is required by the protocol.
10089
10090         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
10091           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
10092           error at our end.
10093
10094         * Added status flag to SilcSKE object to indicate realtime status
10095           of the SKE protocol.
10096
10097         * Application receives now exactly same command reply arguments as
10098           the library receives from server.  However, if ID is received the
10099           corresponding ID entry is returned to the application (eg. Client
10100           ID is mapped to correct SilcClientEntry entry and that is returned).
10101           Changed command_reply client operation due to this change.
10102
10103         * Changed all ID's in commands and in command replys as ID Payloads.
10104           Change affected both client and server side codes.
10105
10106           All ID's sent in SILC network (with execption of ID's in SILC
10107           Packet header) are sent in ID Payload to support variable length
10108           ID's.
10109
10110         * Server now notifies nick changes and notifies all clients on
10111           the channels about the new nickname (about the new Client ID,
10112           actually).
10113
10114         * Implemented CMODE command to change channel modes. Supports all
10115           channel modes defined by the protocol specs except ban and invite
10116           lists. (Also, private channel key mode is supported but support for
10117           setting private channel key in client is missing, thus, this mode
10118           has no effect on client side (except that server requires that the
10119           client uses private channel key and normal channel traffic does not
10120           work anymore)).
10121
10122           Also, invite mode works per se, but INVITE command does not work
10123           yet correctly, so you can set channel as invite only channel but
10124           inviting clients to the channel does not work (it is yet to be
10125           thought what's the best way to do it).
10126
10127         * Added new command SILC_COMMAND_CUMODE to change user mode on the
10128           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
10129           Implemented CUMODE command to change user's mode on the channel.
10130           Supports all modes defined by the protocol specs.
10131
10132         * Added NAMES command reply to return users modes on the channel.
10133
10134         * Removed unnecessary and slow ciphers from lib/silccrypt.
10135
10136         * Set SO_KEEPALIVE option to connection sockets by default.
10137
10138         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
10139
10140         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
10141           redefined the Notify Payload into protocol specs.
10142
10143         * Added silc_id_payload_parse_id to get ID directly from raw
10144           ID payload data.
10145
10146 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10147
10148         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
10149           accept searching by Client ID as well.
10150
10151         * Added support for LEAVE and SIGNOFF notify types in client library.
10152
10153         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
10154           to parse ID Payload from raw data.
10155
10156 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10157
10158         * Added flags parameter into silc_ske_assemble_security_properties
10159           function in lib/silcske/silcske.[ch].
10160
10161         * Changed notify client operation to fit better for notify messages
10162           sent by server.  The notify payload received from server is now
10163           passed to the application (after parsing it to SilcNotifyPayload).
10164           It is application's responsibility to retrieve the arguments
10165           from the payload and show the message the way it wants.  The message
10166           sent by server is implementation specific.
10167
10168         * Changed public keys to comply with the protocol specification.
10169           Old public keys are not supported anymore and are not compatible.
10170
10171         * Removed nickname from Channel Payload as the latest draft removed
10172           it.  The client must resolve the nickname from the NAMES command
10173           reply received when it joined the channel.
10174
10175           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
10176
10177 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10178
10179         * Fixed some errors in protocol specification drafts.
10180
10181         * Created lib/silccore/silcnotify.c to implement Notify Payload
10182           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
10183           generic payloads described by protocol specifications.  The file
10184           includes implementations for ID Payload and Argument Payload.
10185
10186         * Changed Command Payload implementation to use the new Argument
10187           Payload.  Changed command_xxxx_payload to command_payload_xxxx
10188           to comply with SILC coding conventions.
10189
10190         * Added suppport for Argument Payload handling in Notify Payload
10191           implementation as protocol requires it.  Added the new support
10192           into server and client lib as well.
10193
10194 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10195
10196         * Added support for multiple nicknames on same channel.  [n] is
10197           added locally to the nickname if there are more than one same
10198           nicknames on the channel.
10199
10200         * Server now sends all nicknames that matched WHOIS request.
10201           Client also shows the list received from server.
10202
10203         * Added TOPIC command to client side.  User can now set and show
10204           current topic on channel.
10205
10206         * Added MOTD command to client and server.  Also, server sends the
10207           motd when client connects to the server.
10208
10209         * Changed version strings to comply ISO 8601.
10210
10211 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10212
10213         * Fixed protocol error handling in client library.  It should now
10214           cope even if the SKE fails for some reason.
10215
10216         * Made new protocol specification drafts for submitting to IETF.
10217
10218         * Implemented TOPIC command to server in silcd/command.c.
10219
10220         * Added two new notify types into lib/silccore/silcnotify.h:
10221           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
10222           notify nickname change and topic setting/change on a channel.
10223
10224         * API change of command_reply operation in client library.  The
10225           application gets now the status type received from server as well.
10226
10227 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10228
10229         * Removed the function just added to lib/silcutil/silcschedule.[ch].
10230
10231         * Cras fixed and optimized the packet handling even further and
10232           it should work now.  Minor change to the prototype of function
10233           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
10234
10235 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10236
10237         * Added new function into lib/silcutil/silcschedule.[ch]:
10238           silc_schedule_with_fd to select() a specified fd.  The function
10239           returns after timeout expires or data arrives or goes.  The
10240           function is used by packet routines to wait that all data is
10241           received from network.
10242
10243         * Fixed data reading from network in lib/silccore/silcpacket.c.
10244           The code now assures that all data is read from the fd and then
10245           continues packet processing.  This was a bug fix since the code
10246           used to drop some data in some circumstances.
10247
10248         * Added new function into lib/silcclient/client.[ch]:
10249           silc_client_start_key_exchange to start key exchange after
10250           connection has been established to server.  The code internally
10251           now uses this funtion but its main purpose was to provide it
10252           for applications that perform their own connecting.  After
10253           application has created a connection it merely calls this
10254           function to start the key exchange between client and server.
10255           The library takes care of everything else after that.
10256
10257           Updated also lib/silcclient/README to explain the usage of
10258           this new function.
10259
10260         * Do not send to application information that connection has
10261           been established.  Application gets notified it by connect
10262           operation anyway.
10263
10264 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10265
10266         * Applied cras's patch to add silc_schedule_one function.  The
10267           function runs scheduler once and returns.
10268
10269         * Fixed the scheduler after cras messed it up.  The timeout
10270           handling works now as it's supposed to work.
10271
10272         * Added into lib/silccore/ silcnotify.h to include notify
10273           message types support.  Changed silc_server_send_notify*
10274           functions, in server.[ch], to support those new notify types.
10275           Added the support for the notify types into client library,
10276           as well.  Added new notify client operation into ops.h in
10277           lib/silcclient/.
10278
10279         * Changed silc_server_packet_send_to_channel to send normal
10280           packets instead of just channel message packets.  The function
10281           is now used to send the notify packets to channels.  It is not
10282           used to send channel message packets anymore, as server never
10283           sends them anymore.
10284
10285         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
10286           va_arg()s as it seems to require it nowadays.  I guess, if SILC
10287           is compiled with older va_arg() the new code should work anyway.
10288
10289 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10290
10291         * Splitted core library.  Core library (lib/silccore) includes
10292           now only SILC protocol specific core (and common) components.
10293           Created new utility library (lib/silcutil) that includes more
10294           generic purpose stuff.  The stuff for util library was taken
10295           from the old core library.  This was minor and easy split.
10296
10297         * Created SILC Client Library (lib/silcclient) that includes
10298           implementation of the SILC client without user interface.  This
10299           was major move from silc/ directory.  The code has been changed
10300           so that it is transparent towards the user interface.  The
10301           silc/ directory includes now the same user interface as before
10302           and it uses the new client library.  Read lib/silcclient/README.
10303           Basicly, the client library performs everything else related
10304           to SILC except user interface handling.  Also, configuration
10305           files are considered to be part of user interface and library
10306           does not handle them.
10307
10308           This change also changed a lot of structures, function naming etc.
10309           Most important change was that SilcClientWindow object was
10310           renamed to SilcClientConnection in the client library.  Created
10311           also new file lib/silcclient/ops.h.  Also added new files
10312           silc/local_command.[ch] and silc/client_ops.[ch].
10313
10314           All these changes were made to make it easier for user interface
10315           designers to create what ever user interface for the SILC client
10316           they want.
10317
10318           It is also expected that the server will be moved to lib
10319           directory as well and SILC Server Library will be created;
10320           sometimes in the future.
10321
10322         * Removed Local commands from lib/silccore/silccommand.h as
10323           they are application specific and new client library does not
10324           handle any of those anymore.
10325
10326         * Several functions moved to lib/silcutil/silcutilc.[ch] from
10327           old client implementation in silc/.
10328
10329         * Added support for callback functions in SILC_LOG_* macros.
10330           Application can now set its own callbacks that will be called
10331           instead of using the default functions that will always print
10332           the debug messages to stderr (or stdout).  Also, debugging can
10333           now be disabled by setting silc_debug to FALSE and re-enabled by
10334           setting it to TRUE.  Note, that logging will still work even
10335           if debugging is disabled.
10336
10337           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
10338           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
10339           silc_log_reset_debug_callbacks.
10340
10341         * To enable debugging in silc client one must give now -d
10342           option on command line.
10343
10344         * Changed silc_schedule_init to automatically allocate task queues
10345           if they are not allocated before calling it.
10346
10347 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10348
10349         * Added GMP 3.1 into math library.
10350
10351 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10352
10353         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
10354           a channel in SILC network.  The packet is used by servers and
10355           routers to notify other routers that user has left a channel.
10356           This little feature was missing until now.  Added the feature
10357           to protocol specification as well.
10358
10359           Added functions: silc_server_send_remove_channel_user and
10360           silc_server_remove_channel_user into server.[ch].
10361
10362         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
10363           lib/silccore/silcpacket.h.  However, they are not implemented
10364           yet.
10365
10366 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10367
10368         * Fixed joining to a channel and sending channel messages
10369           between server and router.  The channel message sending should
10370           now work inside a cell.
10371
10372 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10373
10374         * Fixed the private message sending between server and router.
10375           The private message sending should now work inside a cell.
10376
10377         * Added silc_server_replace_id into server.[ch] to replace
10378           existing ID in the SILC network.
10379
10380         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
10381           and silc_idlist_replace_server_id into idlist.[ch] in server.
10382
10383 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10384
10385         * Fixed the server to server connections.  Server can again now
10386           connect to router.  Router to router connections probably does
10387           not work just yet.
10388
10389 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10390
10391         * Added dynamic protocol registering support.  Now protocols can
10392           registered and unregistered on the fly.  Patch by cras.
10393
10394 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10395
10396         * Added lib/contrib directory to hold routines that some platforms
10397           don't have but are needed by SILC.
10398
10399         * Added getopt.c, getopt1.c and getopt.h from GNU C library
10400           into lin/contrib to provide getopt() and getopt_long() for
10401           those who don't have it.
10402
10403 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10404
10405         * Added AWAY command to client.  When away message is set and
10406           client receives a private message packet the client automatically
10407           replies to the sender with the away message.
10408
10409         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
10410           bug seemed to be the cause of recent problems when compiling
10411           with gcc-2.95.
10412
10413         * Added version detection support to SKE protocol specification
10414           and added the new changes to the SKE implementation as well.
10415           There were other minor changes in the SKE protocol as well.
10416
10417           Many changes in lib/silcske/silcske.[ch] and in
10418           lib/silcske/payload.[ch].
10419
10420         * Added ^U functionality, clear input line.  Patch from cras.
10421
10422 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10423
10424         * Mainly small bugfixes on core library.  Fixed some debugging
10425           logging and buffer overflow in silclog.c.
10426
10427         * Updated config.sub and config.guess on the distribution tree.
10428
10429 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10430
10431         * Added command lagging support in server. Client may execute
10432           commands now only once in two seconds.
10433
10434 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10435
10436         * Optimized packet reception. MAC computation and checking is now
10437           also more optimized.  A lot previously duplicated code is now
10438           used as generic by both client and server.
10439
10440         * Fixed key pair generation in clientutil.c
10441
10442 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10443
10444         * Added into lib/silccore/silcbufutil.[ch] new function;
10445           silc_buffer_realloc.
10446
10447         * Moved generic packet sending/encryption functions to
10448           lib/silccore/silcpacket.[ch] from client and server.  Some
10449           rewriting of the functions.
10450
10451         * Moved all generic packet reception/decryption functions to
10452           lib/silccore/silcpacket.[ch] from client and server.  The
10453           packet processing is now much cleaner in both client and server.
10454           These were major changes in both client and server.
10455
10456         * Created many common functions in server to do packet sending.
10457           Previously code were duplicated a lot, this has been removed
10458           with these changes.
10459
10460 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10461
10462         * Rewrote major parts of the ID cache system.  Don't know
10463           whether it is better now or not but at least the API is more
10464           cleaner now.
10465
10466         * Major rewrite on ID cache stuff on client because of the ID
10467           cache API changes.  Added idlist.c to client.
10468
10469         * Also major rewrite on ID cache stuff on server as well.
10470           Major rewrite of idlist.[ch]. SilcXXXList's are now named
10471           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
10472           in hand, instead they are all put into the ID cache system now.
10473           All server_idlist_* routines uses ID cache now instead of
10474           traversing its own lists (those lists does not exist anymore).
10475           SilcIDList though still exists.  Also, SilcXXXEntry's are
10476           now pointers.
10477
10478 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10479
10480         * Finally made the SKE implementation compliant to the protocol
10481           specification.  All mp integers are now binary encoded as
10482           opposed being HEX encoded.
10483
10484         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
10485           from binary data.
10486
10487         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
10488           functions: silc_[encode/decode]_pem.  Also added function
10489           silc_encode_pem_file to PEM encode with newlines ('\n') for
10490           saving into a file.
10491
10492         * SILC public keys are now encoded either PEM or binary.  Same
10493           option is for private keys as well.  By default private keys
10494           are binary encoded and public keys PEM encoded.  Silly HEX
10495           encoding were removed.
10496
10497         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
10498           function to create fingerprints.
10499
10500         * Fixed a bug in SHA1; does not change the original data anymore.
10501
10502         * Partly implemented INFO command on client and server side.
10503           Fixed CLEAR command.  Changes to SERVER command; show current
10504           server(s) when giving command without arguments.  Added
10505           VERSION command to client.
10506
10507         * Added check to server that unregistered connections cannot
10508           execute commands (unless it is specificly allowed).
10509
10510 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10511
10512         * Fixed screen refresh.
10513
10514         * Fixed channel joining bug from client.  On some circumstances
10515           client tried to join to a channel it had already joined.
10516
10517         * Added public key verification process into client's protocol.c.
10518           The client now verifies the public key from user and saves
10519           it into ~./silc/serverkeys/ directory.
10520
10521           Added into: clientutil.[ch]: silc_client_verify_server_key.
10522
10523         * Changed SKE protocol's silc_ske_initiator_finish function
10524           to accept callback function that verifies the received public
10525           key.  Removed old silc_ske_verify_public_key function.
10526
10527 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10528
10529         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
10530           silc_pkcs_private_key[_data]_set.
10531
10532         * Made the password and public authentication more cleaner in
10533           server's protocol.c.
10534
10535         * Removed historic and obsolete protocol `channel_auth' from
10536           both client and server.
10537
10538         * Removed wrong way of sending command status messages from
10539           server to client in server's command.c.  The old way violated
10540           protocol specification.
10541
10542           Changes to silccore/silccommand.[ch]: removed
10543           silc_command_encode_status_payload -> not needed anymore,
10544           changed silc_command_encode_payload_va to accept extra
10545           argument on variable argument list.  The argument type must
10546           now be provided to the function.  Also, added new function:
10547           silc_command_encode_reply_payload_va which is same as
10548           normal command_encode_payload_va except command status type
10549           is provided as extra argument.
10550
10551 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10552
10553         * Added ~./silc directory handling.  The directory includes the
10554           public and private keys for the client.
10555
10556           Added silc_client_check_silc_dir, silc_client_create_identifier
10557           and silc_client_load_keys.
10558
10559         * Implemented SILC protocol compliant public key.  Added public
10560           and private key saving to and loading from files.
10561
10562           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
10563           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
10564           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
10565           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
10566           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
10567
10568           Implemented: silc_pkcs_save_[public/private]_key[_data] and
10569           silc_pkcs_load_[public/private]_key.
10570
10571 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10572
10573         * Added silc_server_get_route (route.[ch]) to get connection
10574           data for the fastest route for given ID.
10575
10576         * Implemented INVITE command on client and server.  The command
10577           were re-defined in the SILC Protocol Specification and the
10578           implementation now complies with the specification.
10579
10580         * Implemented PING command on client and server.
10581
10582         * Implemented NAMES command on client and server.  The server side
10583           supports currently only normal server not router server yet.
10584           Some changes to NAMES definition in SILC protocol specification.
10585
10586 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10587
10588         * Implemented LEAVE command on client and server.
10589
10590         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
10591           again.  This change was made to the protocol as well.  Server
10592           should not violate the protocol specification anymore.
10593
10594 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
10595
10596         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
10597           was tested.  SOCKS4 was not but should work anyway.