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