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