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