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