updates.
[silc.git] / CHANGES
1 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
2
3         * Check for existing server ID in silc_server_new_server
4           and in silc_server_connect_to_router_final and remove the
5           old entry if it exists.  Affected file silcd/packet_receive.c,
6           silcd/server.c.
7
8         * Send the channel message always to only one router, either
9           in upstream or downstream.  Affected file is
10           silcd/packet_send.c.
11
12 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
13
14         * Wrote the definition of the backup resuming protocol to the
15           protocol specification.
16
17         * Removed one redundant channel key generation from normal
18           server during joining procedure.  Removed one redundant
19           channel key sending from server to router during joining
20           procedure.  Affected file silcd/command.c.
21
22         * Made minor bugfixes to the backup router resuming protocol.
23           Affected file silcd/server_backup.c, server.c.
24
25 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
26
27         * Added --disable-asm configuration option.  Affected files
28           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
29           by salo.
30
31         * Implemented the backup resuming protocol that is used to
32           resume the primary router position in the cell after the
33           primary router comes back online.  Affected files
34           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
35           and silcd/server_util.[ch].
36
37 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
38
39         * Sleep two (2) seconds after sending QUIT command to server.
40           Affected file lib/silcclient/command.c.
41
42         * Assure that if outgoing data buffer is pending do not force
43           send any data.  Affected file silcd/packet_send.c.
44
45         * Assure that if outgoing data buffer is pending do not force
46           send any data.  Affected file lib/silcclient/client.c.
47
48         * Implemented the backup router support when the primary router
49           goes down.  The servers and routers can now use the backup
50           router as new primary router without loosing connectivity.
51
52 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
53
54         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
55           in the server to indicate disabled entry.  All data read
56           from the connection will be ignored and no data is sent
57           for entry that is disabled.  Affected files are
58           silcd/idlist.h, silcd/server.c.
59
60 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
61
62         * Created SFTP client and server test programs in the
63           lib/silcsftp/tests directory.
64
65 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
66
67         * Implemented memory filesystem (virtual filesystem) for
68           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
69           sftp_fs_memory.c.
70
71 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
72
73         * Implemented the SFTP (SSH File Transfer Protocol) to the
74           lib/silcsftp.  It includes SFTP client and SFTP server
75           implementations.
76
77 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
78
79         * Moved lib/silccore/silcprotocol.[ch] to the
80           lib/silcutil library.
81
82         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
83           take variable argument list pointer as argument.  Affected
84           file lib/silcutil/silcbuffmt.[ch].
85
86         * Added silc_buffer_set function that is used to set data
87           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
88           Affected file lib/silcutil/silcbuffer.h.
89
90         * Changed various routines in the core library to use the new
91           silc_buffer_set instead of allocating new buffer only for
92           temporary purposes.
93
94         * Added 64-bit value formatting and unformatting support to the
95           silc_buffer_[un]format routines.  Affected file is
96           lib/silcutil/silcbuffmt.[ch].
97
98           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
99           to includes/bitmove.h.
100
101 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
102
103         * Fixed channel user mode saving in client library.  Affected
104           file lib/silcclient/command[_reply].c.
105
106 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
107
108         * Defined the file transfer to the SILC Protocol.  Added
109           new packet type SILC_PACKET_FTP and defined File Transfer
110           Payload.  The mandatory file transfer protocol is SFTP
111           (SSH File Transfer Protocol).  Affected file in addition
112           of the internet draft is lib/silccore/silcpacket.h.
113
114         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new 
115           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
116           is used as part of backup router protocol when the primary
117           router of the cell is back online and wishes to resume
118           the position as primary router.
119
120         * Redefined the MAC generation keys in the protocol.  The
121           same key is not used anymore in both direction.  Both
122           direction will now use different keys for sending and
123           receiving.  This fixes a potential security flaw.  This
124           change causes incompatibilities in the protocol.
125
126         * Redefined also the MAC computation from the packet.
127           An packet sequence number is now added to the MAC 
128           computation.  This prevents possible replay attacks against
129           the protocol.  This change too causes incompatibilities
130           in the protocol.
131
132           Added `sequence' field to the SilcPacketContext to hold
133           the current sequence number for the packet.
134
135 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
136
137         * Added `created' field to the SilcIDListData in the file
138           silcd/idlist.h to indicate the time when the entry was
139           created.
140
141         * Added `created' field to the SilcChannelEntry too.  Affected
142           file silcd/idlist.h.
143
144         * Added `creation_time' aguments to all the announcement functions
145           in the server.  If it is provided then only the entries that
146           was created after the provided time frame are actually
147           announced.  Affected file silcd/server.[ch].
148
149         * The protocol says that the Channel ID's IP address must be
150           based on the router's IP address.  Added check for this in
151           the silc_server_new_channel when processing incoming New Channel
152           Payload.  Affected file silcd/packet_receive.c.
153
154         * Print out the correct version with --version in SILC client.
155           Affected file irssi/src/silc/core/silc-core.c.
156
157 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
158
159         * Fixed WHOWAS command to check for completnes of the client
160           entry always, not just when the command is coming from client.
161           Affected file silcd/command.c.
162
163         * Added new function silc_server_packet_queue_purge to purge the
164           outgoing data queue to the network.  After the function returns
165           it is guaranteed that the outgoing packet queue is empty.
166           Affected file silcd/packet_send.[ch].
167
168         * Purge the outgoing packet queue in the rekey protocol's final
169           callback to assure that all rekey packets go to the network
170           before quitting the protocol.  Affected file silcd/server.c.
171
172         * Added silc_client_packet_queue_parse as similar function as
173           in server to the client library.  The affected file is
174           lib/silcclient/client.c.
175
176 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
177
178         * Splitted silcd/server.c and created silcd/server_util.[ch]
179           for utility functions.
180
181         * Added new socket flag SILC_SF_DISABLED to indicate that the
182           connection is open but nothing can be sent to or received from
183           the connection.  Affected file lib/silcutil/silsockconn.[ch].
184           The checking for disabled socket is checked in the low level
185           silc_socket_write and silc_socket_read functions.
186
187 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
188
189         * Allow only nicknames and channel names that fits into the
190           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
191
192 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
193
194         * When processing JOIN command reply in server check that if
195           the channel exists in our global list we'll move it the local
196           list.  Affected file silcd/command_reply.c.
197
198         * Fixed the check whether client is joined on the channel already
199           in JOIN command.  Affected file lib/silcclient/command.c.
200
201         * Fixed the JOIN command reply to check whether the channel
202           already exists.  Affected file lib/silcclient/command_reply.c.
203
204 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
205
206         * Added silc_ske_status_string to map the SKE error numbers
207           to readable strings.  The affected files are
208           lib/silcske/silcske[_status].[ch].
209
210 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
211
212         * Do not show the private channels on the WHOIS channel list
213           as it is not allowed by the protocol.  The affected file is
214           silcd/server.c.
215
216 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
217
218         * Assure that the packet length digged from the actual packet
219           is something sensible in the silc_packet_decrypt_rest_special
220           in lib/silccrypt/silcpacket.c.
221
222         * Free and NULL the allocated pointer in silc_hmac_alloc if
223           the HMAC allocation fails.  The affected file is
224           lib/silccrypt/silchmac.c.
225
226         * Print the selected security properties to the log files in
227           the server.  Affected file silcd/protocol.c.
228
229         * Add SKE's reference counter even if calling the completion
230           callback manually.  Otherwise it goes negative, although it
231           does not cause any problems.  The affected file is
232           lib/silcske/silcske.c.
233
234         * Remove the client entry with short timeout after giving the
235           KILL command.  Affected file lib/silcclient/command.c.
236
237         * Fixed to send error reply in WHOIS and IDENTIFY commands in
238           case all found clients are already disconnected (WHOWAS would
239           found them) in the server.  Affected file silcd/command.c.
240
241         * Update the last_receive (time of last data received) to be 
242           updated only when received private or channel message so that
243           the idle time showed in WHOIS makes more sense.
244
245         * Added boolean field `valid' in to the SilcClientEntry in the
246           client library to indicate whether the entry is valid or not.
247           This fixes the nickname change bug on channel when changing
248           the nickname to be same than the old (like nick to Nick) the
249           nickname formatter doesn't set the new nick anymore to Nick@host.
250           Affected file lib/silcclient/idlist.[ch].
251
252         * Now actually fixed the nickname changing on disconnection.
253           Added new function silc_change_nick to the Irssi SILC Client.
254           Affected file irssi/src/silc/core/client_ops.c,
255           irssi/src/silc/core/silc-nicklist.[ch].
256
257 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
258
259         * Check that the public key exists in the GETKEY command before
260           trying to encode it.  Affected file silcd/command.c.
261
262         * Print some notifications on received public keys with GETKEY
263           command in the Irssi SILC Client.  Affected files are
264           irssi/src/fe-common/silc/module-formats.[ch],
265           irssi/src/silc/core/client_ops.c.
266
267         * Use IDENTIFY command to resolve the server information in the
268           GETKEY command instead of INFO command.  Affected file
269           lib/silcclient/command.c.
270
271         * All command reply functions in the client library now calls
272           the pending command reply callbacks even if an error has
273           occurred.  The server has done this a long time and now it was
274           time to move the client library to this as well.  Now all
275           errors can be delivered back to the pending command reply
276           callbacks if necessary.  Affected files are
277           lib/silcclient/command[_reply].[ch].
278
279         * Change the nickname on disconnection back to the username
280           because in reconnect the server will enforce it to it anyway.
281           Affected file irssi/src/silc/core/silc-servers.c.
282
283         * Fixed a config file parsing bug in the Irssi SILC client.
284           Affected file irssi/src/silc/core/clientconfig.c.
285
286 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
287
288         * When printing the channel mode on JOIN, verify that the
289           channel key and channel's HMAC are valid.  Affected file
290           irssi/src/silc/core/client_ops.c.
291
292 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
293
294         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
295           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
296           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
297
298         * Removed channel key rekey task deleting from the function
299           silc_server_save_channel_key.  Affected file silcd/server.c.
300           Added explicit timeout task context instead that is used to   
301           delete the task if we are registering a new task before the
302           new task has elapsed.
303
304         * When channel key rekey occurs the client library now saves
305           the old channel key for a short period of time (10 seconds) and
306           is able to use it in case some is still sending channel
307           messages encrypted with the old key after the rekey.  Affected
308           file lib/silcclient/[idlist.h|client_channel.c].
309
310 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
311
312         * Added check to the silc_server_new_id_real to not accept
313           new ID if it is the sender's own ID.  Affected file is
314           silcd/packet_receive.c.
315
316         * Assure that we do not announce ourself or the one we've
317           sending our announcements when we're router and are announcing
318           servers to our primary router.  Affected file silcd/server.c.
319
320         * Fixed silc_server_command_identify_check_client to assemble
321           correct WHOIS packet.  It send corrupted WHOIS packet and
322           caused problem with router to router connections.  Affected
323           file silcd/command.c.
324
325           Fixed also silc_server_command_whois_check the same way
326           as for the IDENTIFY command.
327
328         * Added new SilcIDListStatus to the server in the SilcIDListData
329           structure.   The status now includes the current status of
330           the entry (like registered, resolved etc.).  Affected file
331           silcd/idlist.[ch].  Defined a bunch of different status types
332           as well.  This replaced the old boolean registered field as well.
333
334           Added resolve_cmd_ident field to the SilcClientEntry structure
335           too so that if the entry is for example being resolved so 
336           another command may attach to the same pending command reply
337           without requiring to resolve the same entry again.  This concept
338           should optimize the WHOIS and the IDENTIFY resolving under
339           heavy load by taking away unnecessary resolving for entries
340           that are being resolved already.
341
342           Added support for adding multiple pending commands for one
343           command idenfier.  Affected file silcd/command[_reply].[ch].
344
345         * Fixed WHOIS and IDENTIFY save to remove the cache entry
346           before deleting the data.  Otherwise the hash table will have
347           freed data in comparison functions.  Affected file is
348           silcd/command_reply.c.
349
350         * Fixed silc_idlist_replace_client_id to add the new entry to
351           the cache with NULL nickname.  Otherwise there will be invalid
352           memory as the nickname after the nickname is freed.  Affected
353           file silcd/packet_receive.c.
354
355         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
356           saved into wrong slots because the previous number of entries
357           was not taken into account.  Affected file silcd/idlist.c.
358           Fixed same thing in silc_idlist_get_clients_by_nickname too.
359
360         * If we are router and we receive JOIN notify to a channel that
361           does not have any users then notified client is marked as the
362           channel founder, as it is it.  The affected file is
363           silcd/packet_receive.c
364
365         * Added to the extended hash table API's table_del_*ext functions
366           the destructor as argument too, so that the caller can decide
367           which destructor to use or whether to use destructor at all.
368           Affected file lib/silcutil/silchashtable.[ch].
369
370         * Fixed ID Cache purging.  It actually deleted the entries from
371           the hash table after the data was freed.  The hash table ended
372           up comparing freed memory.  The affected file is
373           lib/silccore/silcidcache.c.
374
375 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
376
377         * Fixed Irssi SILC client's KILL command's HELP syntax.
378
379         * The USERS command now resolves the detailed user information
380           if the userinfo field is missing.  Affected file is
381           lib/silcclient/command_reply.c.
382
383         * Do not print error in silc_file_read if the read file does
384           not exist.  Just silently return NULL.  Affected file is
385           lib/silcutil/silcutil.c.
386
387         * Fixed the silc_log_output to not wine about NULL filename
388           and to not create some bogus " " filename.  Affected file is
389           lib/silcutil/silclog.c.
390
391 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
392
393         * Fixed various printing bugs on the user interface in the
394           Irssi SILC Client.  Minor changes that were forgotten from
395           the release.
396
397 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
398
399         * Fixed the configure.in.pre and the compilation and distribution
400           environment to support the new autoconf 2.52.  That version is
401           now required to compile the CVS trunk.
402
403 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
404
405         * Renamed function silc_parse_nickname to silc_parse_userfqdn
406           to generally parse user@fqdn format strings.  Affected file
407           lib/silcutil/silcutil.c.
408
409         * Added nickname_format and nickname_force_format fields to the
410           SilcClientParams structure.  The first one defines the format
411           for the nicknames that the library will enforce if the receives
412           multiple same nicknames.  The second one is boolean value and
413           can be used to force the library to always enforce the format
414           to the nicknames regardles whether there are multiple nicknames
415           or not.  This configurable formatting was employed to flexibly
416           support accessing multiple nicknames from the user interface.
417           The userinterface can now set the nicknames to what ever format
418           they prefer.  Affected file lib/silcclient/silcapi.h.
419
420           Added function silc_client_nickname_format to the file
421           lib/silcclient/idlist.c.  It performs the nickname formatting.
422
423           Added new field `hostname´ to the SilcClientEntry context.
424           It holds the hostname of the client.  Affected file is
425           lib/silcclient/idlist.h.
426
427         * Irssi SILC Client sets the nicknames in nick@hostn format.
428           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
429           irssi/src/silc/core/silc-core.c.
430
431           The WHOIS printing now also shows both the real nickname and
432           the formatted nickname so that user knows how to access the
433           user if there are multiple same nicknames cached.  Affected
434           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
435           printing formatting too to take the hostname now as a separate
436           argument.  The Affected file is
437           irssi/src/fe-common/silc/modules-formats.[ch].
438
439         * Changed the silc_client_get_clients_local to accept the formatted
440           nickname as argument.  It accepts the real nickname too but the
441           formatted nickname can be used to find the true entry from 
442           multiple entries.  Affected file lib/silcclient/silcapi.h and
443           lib/silcclient/idlist.c.
444
445         * Added nickname_format_parse field to the SilcClientParams.
446           It is a callback function provided by the application to parse
447           the nickname out of the formatted nickname string. The library
448           calls it to get the nickname from the formatted string. Since
449           the application generally knows better the format of the nickname
450           string it parses it instead of the library, even though library
451           encodes the formatted string.  If the callback function is not
452           provided then the library will use the string as is.  The
453           affected file is lib/silcclient/silcapi.h.
454
455         * All the nickname strings passed to the client library in 
456           commands are now expected to be formatted nickname strings.
457           If the command does not support the formatted nickname string
458           it will assume that the sent string is the actual nickname.
459           Affected file lib/silcclient/command.c.
460
461 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
462
463         * Added public key authentication support to OPER and SILCOPER
464           commands in the client library.  Affected file is
465           lib/silcclient/command.c.
466
467 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
468
469         * Changed the get_auth_methdod client operation to be asynchronous.
470           It can be async if the application resolves the authentication
471           method from the server during the negotiation.  Added new
472           SilcGetAuthMeth completion callback that the application will
473           call after resolving the authentication method.
474
475           Added function silc_client_request_authentication_method that
476           the application can use to resolve the authentication method
477           from the server.  Added also SilcConnectionAuthRequest callback
478           that the library will call after the server has replied.  The
479           application can call this function if it does not know the
480           current authentication method.
481
482           Affected files are lib/silcclient/client.c and 
483           lib/silcclient/silcapi.h.
484
485         * The Irssi SILC client now automatically resolves the authentication
486           method incase any configuration information is not present (and
487           currently there never is).  The affected file is
488           irssi/src/silc/core/client_ops.c.
489
490         * Fixed public key authentication from the client library.
491           Affected file lib/silcclient/protocol.c.  Changed also the
492           protocol specification about the public key authentication in
493           the connection authentication protocol.  The actual data to be
494           signed is now computed with a hash function before signing.
495
496         * Fixed the public key authentication from the server as well.
497           Affected file silcd/protocol.c.
498
499         * Removed the mlock()'s from the memory allocation routines.
500           Affected file lib/silcutil/silcmemory.c.  The ./configure does
501           not check anymore for the mlock().  Affected file is
502           configure.in.pre.
503
504         * Fixed USERS command in server to allow the execution of the
505           command for private and secret channels if the client sending
506           the command is on the channel.  Affected file silcd/command.c.
507
508         * Fixed silc_client_get_clients_local to return the clients
509           count correctly.  It could return wrong value.  Affected file
510           lib/silcclient/idlist.c.
511
512 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
513
514         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
515           types.  The assembler optimizations seemed not to like 64-bit
516           data types.  The assmebler optimizations thus are now enabled
517           also for BSD systems as opposed to only enable them for Linux.
518
519         * Do not check for threads at all on BSD systems.  Affected
520           file configure.in.pre.
521
522         * Removed -n and -h options from the Irssi SILC Client since
523           they are not used in silc.
524
525         * Fixed the prime generation to assure that the first digit
526           of the generated random number is not zero since our conversion
527           routines does not like number strings that starts with zero
528           digit.  If zero digit is seen the random number is regenerated.
529           This caused some corrupted RSA keys when the zero first digit
530           was met.  Affected file lib/silcmath/silcprimegen.c.
531
532 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
533
534         * Fixed WIN32 configuration in the ./configure script.
535           Fixed to include xti.h on environments that has it.
536           Patches by Carsten Ilchmann and andrew.
537
538 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
539
540         * Changed the silc_id_create_client_id to be collision
541           resistant.  It is now assured that there cannot be created
542           two same client ID's.  I suspect that some weird bugs in 
543           the server were actually caused by duplicate Client IDs.
544           Affected file silcd/serverid.[ch].  A router receiving
545           new ID now also assures and informs the sending server
546           if the ID caused collision.
547
548         * Changed the silc_id_create_channel_id to also assure that
549           there are no collisions.
550
551 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
552
553         * Statement about ignoring the Mutual Authentication flag when
554           performing rekey with PFS was a bit misleading.  It is ignored
555           if it was set in the initial negotiation, it cannot be even
556           set in the rekey.  Fixed in the ke-auth draft.  Started the
557           new versions of the protocol drafts in the doc/.
558
559 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
560
561         * Fixed a bug in silc_client_command_identify_save when saving
562           new channel information.  The channel name was no duplicated
563           and caused crash on exit.  Affected file is
564           lib/silcclient/command_reply.c.
565
566 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
567
568         * Fixed the getkey command handling in the server.  Send just
569           empty OK reply to the sender if the key could not be fetched
570           (but everything else was ok, like the key just was not available).
571           Changed the public key parameter to optional in the protocol
572           specs so that empty OK reply can be sent.  Affected file
573           silcd/command.c.
574
575           Added a message to Irssi SILC client to tell to user if the
576           server did not return a public key.
577
578 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
579
580         * Fixed a channel key regeneration bug.  It registered new
581           timeout tasks exponentially until all system resources were
582           used.  Affected file silcd/server.c.
583
584 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
585
586         * Added the SILC Document generator to the scripts/silcdoc.
587           It can be used to generate the Toolkit Reference Manual out
588           of the source tree.  Internally it will also use the RoboDoc
589           generator now imported in util/robodoc.
590
591 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
592
593         * Added couple of return's in rekey protocol if error orccurred
594           during the protocol.  The execution must be terminated.
595           Affected file silcd/protocol.c.  Also, terminate the protocol
596           always with timeout.
597
598 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
599
600         * The client's Client ID was created initally from the wrong
601           nickname (it could have been in format nick@host) in the
602           silc_server_new_client.  Affected file silcd/packet_receive.c
603
604 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
605
606         * Added some SILC_LOG_ERROR's to various error conditions
607           if client could not be added to ID cache.  Affected files
608           silcd/packet_receive.c and silcd/server.c.
609
610         * When client's sock->user_data is freed, NULL also the 
611           client->router and client->connection pointers.  Added check
612           for these pointers being NULL to various places around the
613           code.  Affected file silcd/server.c.
614
615         * Added client->data.registered == TRUE checks to various
616           places around the code to assure that unregistered client's
617           are not handled when it is not allowed.  Affected file
618           silcd/server.c.
619
620         * Added `bool registered' fields to all 
621           silc_idlist_[server|client]_get_* routines to indicate whether
622           the fetched client needs to be registered or not.  Affected
623           file silcd/idlist.[ch].
624
625         * Add your own entry as registered to the ID cache in the
626           server.  Affected file server.c.
627
628         * Fixed a bug in silc_server_new_server.  The SilcServer was
629           set as the new server's context instead of SilcServerEntry.
630           This naturally caused some weird bugs.
631
632 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
633
634         * Do not delete the channel rekey task when adding it
635           for in silc_server_create_channel_key.
636
637         * Changed the silc_server_create_channel_key to return
638           TRUE or FALSE to indicate the success of the channel key
639           creation.
640
641 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
642
643         * Fixed MSVC++ project files and added missing files to
644           Makefiles under win32/.
645
646 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
647
648         * Do not add TCP_NODELAY flag if the operating system
649           does not have it defined.  Affected files are
650           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
651
652         * Fixed buffer overflow from Irssi SILC Client.  Affected
653           file irssi/src/fe-common/core/themes.c.
654
655         * Fixed double free in client library in the file
656           lib/silcclient/client.c when disconnecting from server.
657
658         * Applied double free patch from cras to Irssi SILC client.
659           Affected files irssi/src/core/[modules/expandos].c
660
661         * Fixed the disconnection handling to Irssi SILC Client.
662           The application must call silc_client_close_connection
663           in ops->connect client operation in case of failure of
664           the connection.  Affected file is
665           irssi/src/silc/core/client_ops.c.
666
667         * Do not set sock->protocol to NULL in the function
668           silc_client_close_connection after executing the protocol's
669           final callback since the sock might not be valid anymore.
670           Affected file lib/silcclient/client.c.
671
672 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
673
674         * Do not enable SILC_THREADS if the linking with libpthread
675           did not happen.  Affected file configure.in.pre.
676
677         * Added notion to protocol specification that server must
678           verify the sent authentication payload with CMODE when
679           setting the channel founder key.  Implemented it to the
680           server.  Affected file silcd/command.c.
681
682 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
683
684         * Added _EXTRA_DIST SILC distribution variable to the
685           distributions file.  It is used to conditionally add extra
686           files or directories to the specific distribution.  Affected
687           files ./prepare, Makefile.am.pre and distributions.
688
689           Removed the `_' from the start of the distribution names.
690           It is redundant.
691
692         * Added README.WIN32 for instructions to compile the Toolkit
693           under WIN32.
694
695 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
696
697         * Fixed a double free in disconnection in the server.  Affected
698           file is silcd/server.c.
699
700         * Fixed the lib/silcske/groups.c to work now also with GMP
701           MP library.  The string conversion did not work when using
702           specific base and the base is indicated in the string as well.
703
704         * Created win32/ directory which now includes MSVC++ specific
705           stuff so that toolkit (DLLs) may be compiled with MSVC++.
706           It will appear only in the toolkit distribution
707
708 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
709
710         * Changed the key material distribution function in case when
711           the hash output is too short.  The data is now concatenated
712           a bit differently than it used to.  Made the change to the
713           SKE protocol specification.
714
715         * Added better GMP detection to configure.in.pre.  A patch
716           by salo.
717
718 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
719
720         * Fixed a minor bug in SKE that might cause some problem on
721           some platforms.  Affected file lib/silcske/silcske.c.
722
723         * Added the cookie checking for initiator in the SKE.  It checks
724           that the responder returns the sent cookie unmodified.  The
725           affected file is lib/silcske/silcske.c.  Added new SKE
726           error type INVALID_COOKIE that can be sent during the
727           negotiation.  Fixed some memory leaks as well.
728
729         * Added the "invalid cookie" error message to Irssi SILC client's
730           message formats.
731
732 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
733
734         * Added `task_max' field to the SilcClientParams to indicate
735           the maximum tasks the scheduler can handle.  If set to zero,
736           default values are used.  Affected file lib/silcclient/silcapi.h.
737
738         * Fixed memory leaks in silc_client_close_connection.  Affected
739           file lib/silcclient/client.c.
740
741         * Added silc_client_del_client_entry to client library to free
742           all memory of given client entry.  Affected file is
743           lib/silcclient/idlist.[ch].
744
745         * Added new functions silc_client_del_channel and
746           silc_client_del_server to delete channel and server entries.
747           Affected file lib/silcclient/[silcapi.h/idlist.c].
748
749         * Removed silc_client_del_client_by_id from silcapi.h.
750
751         * Fixed the INFO command to return the server's own info
752           correctly when querying by Server ID.  Affected file is
753           silcd/command.c.
754
755 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
756
757         * Removed the non-blocking settings in WIN32 code in the
758           silc_sock_[read/write] and added SleepEx instead.  Affected
759           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
760           of input data is now checked with FIONREAD and ioctlsocket.
761
762 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
763
764         * Call silc_schedule_task_del_by_context in the 
765           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
766           Affected file lib/silccore/silcprotocol.c.
767
768         * Call silc_protocol_cancel for active protocols in the
769           silc_server_close_connection if the funtion
770           silc_server_free_sock_user_data has not been called.
771           Affected file silcd/server.c.
772
773         * Generic tasks cannot be deleted using the del_by_fd
774           task deleting function since generic tasks does not match
775           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
776
777         * Added a notion to SILCOPER help file that the SILCOPER works
778           only on router server, not on normal server.
779
780 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
781
782         * Added for WIN32 support for the new scheduler as well.
783           Affected file lib/silcutil/win32/silcwin32schedule.c.
784
785         * Fixed the SHA1 implementation to work on various platforms.
786
787 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
788
789         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
790           API.  It is part of the scheduler now.  Everything else is
791           as previously but some functions has changed their names.
792           Checkout the lib/silcutil/silcschedule.h for the interface.
793           Updated all applications to use the new interface.  Affected
794           files are lib/silcutil/silcschedule.[ch].
795
796 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
797
798         * Found a bug in the SKE implementation.  The HASH value,
799           specified by the protocol, was not computed correctly.  The
800           public key of the responder was not added to the computation
801           even though it is mandatory.  Affected file lib/silcske/silcske.c.
802           This unfortunately causes incompatibilities with older
803           clients and servers.
804
805         * Added WIN32 specific network init and uninit functions:
806           silc_net_win32_init and silc_net_win32_uninit to init and uninit
807           the Winsock2.  Affected file lib/silcutil/silcnet.h and
808           lib/silcutil/win32/silcwin32net.c.
809
810         * Set the socket always to nonblocking mode on WIN32 after
811           reading data or writing data.  Affected file is
812           lib/silcutil/win32/silcwin32sockconn.c.
813
814 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
815
816         * Fixed various compilation problems under WIN32.  Affected
817           files lib/silcutil/win32/silcwin32thread.c and
818           lib/silcutil/win32/silcwin32schedule.c.
819
820         * Removed all _internal.h #includes from public header
821           files.  Internal headers must never be included from
822           public headers.
823
824           Removed also the lib/silcske/payload_internal.h file.
825
826         * All include files that may be needed (public and some others
827           included by the public headers) by application developers are
828           now copied to the ./includes directory.  It does not copy any
829           internal headers.  Affected file Makefile.defines.pre and all
830           Makefile.am's under lib/ and subdirs.
831
832 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
833
834         * Do not change the ~/.silc directory's permissions automatically.
835           Affected file irssi/src/silc/core/clientutil.c.
836
837 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
838
839         * Do not cancel the protocol in silc_server_close_connection
840           it might cause recursion.  Now cancelled in the function
841           silc_server_free_sock_user_data.  Affected file silcd/server.c.
842
843         * Fixed the silc_server_remove_clients_by_server to regenerate
844           the channel keys correctly finally.  Added also new function
845           silc_server_remove_clients_channels to actually do it.
846           Affected file silcd/server.c.
847
848         * Fixed the silc_server_new_channel to not crash by giving
849           wrong router to the new channel.  Affected file is
850           silcd/packet_receive.c.
851
852 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
853
854         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
855           which is given as argument to the silc_client_alloc now.
856           It can be used to configure the client and set various parameters
857           that affect the function of the client.
858
859         * The USERS command in server did not check whether the channel
860           is private or secret.  Affected file silcd/command.c.
861
862         * Added new argument to the USERS command in protocol specification.
863           The USERS command now can take the channel name as argument
864           as well.  Added support for this in client and server and
865           updated the protocol specs.
866
867         * Completed the GETKEY command in client. It can be now used
868           to fetch also servers public key not only some clients. 
869           Affected files lib/silcclient/command[_reply].c.
870
871         * Added silc_client_get_server to return server entry by the
872           server name.  Affected files lib/silcclient/silcapi.h and
873           idlist.c.
874
875         * Redefined the IDENTIFY command in protocol specification to be
876           more generic.  It now can be used to query information about
877           any entity in the SILC Network, including clients, servers and
878           channels.  The query may be based either the entity's name
879           or the ID.  Added support for this in both client and server.
880
881           Affected files silcd/command.c and lib/silcclient/command.c
882           and command_reply.c.
883
884         * Optimized the WHOIS and WHOWAS commands in the server. Removed
885           the _from_client and _from_server functions.  Affected file
886           silcd/command.c.
887
888         * Added silc_client_get_channel_by_id_resolve to the file
889           lib/silcclient/silcapi.h to resolve channel information by
890           its ID.  Added also silc_client_get_channel_by_id that
891           does not resolve it from the server.
892
893 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
894
895         * Added SilcServerEntry context into the client library
896           to represent one server.  The INFO command now allocates
897           these to save the resolved server info.  For now on the
898           client library will also keep information about servers,
899           connected and resolved with INFO.
900
901           The INFO command now allocates the SilcServerEntry context
902           and saves the server info there.  The COMMAND_REPLY in
903           the INFO now returns the parameters to application in 
904           same order as defined in the protocol specification.
905
906           The entries are cached in the client->server_cache.
907
908         * The INFO command is now issued after received the Client ID
909           from the server.  Affected file lib/silcclient/client.c.
910
911         * The CMODE_CHANGE notify may now return also an SilcServerEntry
912           to the application as the mode changer might be server.
913           It is guaranteed that NULL is not returned anymore to the
914           application.  Affected file lib/silcclient/client_notify.c.
915
916           The ID Type is now also passed to the application so that
917           it can check whether the returned entry is SilcClientEntry
918           or SilcServerEntry.
919
920           Added new function silc_client_get_server_by_id to return
921           the server entry by ID.  Affected files are the
922           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
923
924         * Do not create the channel in the Irssi SILC Client when issuing
925           the JOIN command but when received the sucessful JOIN command
926           reply.  Otherwise the channel might get created even though we
927           could not join it.  The Affected file is
928           irssi/src/silc/core/[silc-channels.c/client_ops.c].
929
930         * Fixed a channel joining bug in router.  The router must also
931           check the channel modes, invite and ban lists etc. when serving
932           the JOIN command sent by normal server.  Affected file is
933           silcd/command.c.  The router now resolves the client's 
934           information from the server who sent the JOIN command if it
935           does not know it, and processes the JOIN command only after
936           that.
937
938         * Changed the SilcCommandCb to take new argument; void *context2.
939           Affected file lib/silccore/silccommand.h
940
941           The second argument in the command callbacks in the server now
942           includes the SilcServerCommandReplyContext if the command was
943           called as pending command callback from the command reply.
944           Otherwise it is NULL. When called as pending the status of the
945           command reply will be checked and if it was erronous the
946           error will be sent to the original sender of the command.
947           This way the client always receives the error messages even
948           though the server was actually the one who received the error
949           when it resent the command to router, for example.  Affected
950           files silcd/command[_reply].[ch].
951
952         * Fixed sending WHOWAS command's error message to client if
953           the requested client could not be found.  It was missing.
954           silcd/command.c.
955
956         * Changed the CMODE and CUMODE commands reply arguments in the
957           protocol specification.  The Channel ID is now sent in both
958           of the commands to identify the channel.  Implemented this
959           new feature to the client and server.  Affected files
960           lib/silcclient/command_reply.c and silcd/command.c.
961
962         * Made better checks for invite and ban lists in the JOIN
963           command in server.  Affected file silcd/command.c.
964
965 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
966
967         * The server now performs the incoming host IP/DNS lookup
968           using the silc_socket_host_lookup and thus does not block
969           the server anymore.  Affected file silcd/server.c.
970
971         * Completed the multi-thread support for SILC Scheduler in
972           the lib/silcutil/silcschedule.c.
973
974         * Fixed the configure.in.pre to detect the pthread correctly
975           on various systems.
976
977         * Fixed a deadlock in silc_task_queue_wakeup in the file
978           lib/silcutil/silctask.c.
979
980 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
981
982         * Added new function silc_schedule_wakeup that is used in
983           multi-threaded environment to wakeup the main thread's
984           schduler. It needs to be used when a thread adds a new task
985           or removes a task from task queues. After waking up, the
986           scheduler will detect the task queue changes. If threads
987           support is not compiled in this function has no effect.
988           Implemented the wakeup mechanism to both Unix and WIN32
989           systems.  Affected files are lib/silcutil/silcschedule.[ch],
990           lib/silcutil/unix/silcunixschedule.c and the
991           lib/silcutil/win32/silcwin32schedule.c.
992
993         * Added new function silc_task_queue_wakeup to wakeup the
994           scheduler by the specified task queue.  Affected file
995           lib/silcutil/silctask.[ch].
996
997         * The silc_socket_host_lookup_start now wakes up the scheduler
998           after adding the timeout task.  Affected file is
999           lib/silcutil/silcsockconn.c.
1000
1001         * The silc_socket_host_lookup is synchronous now if the threads
1002           support is not compiled in.  However, the callback is still
1003           called asyncronously through the scheduler, anyway.  Affected
1004           file lib/silcutil/silcsockconn.c.
1005
1006 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1007
1008         * Added new function silc_socket_host_lookup to perform
1009           asynchronous IP and FQDN lookups for the socket connection.
1010           Affected files lib/silcutil/silcsockconn.[ch].
1011
1012 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1013
1014         * Added SILC_MUTEX_DEFINE to define the mutex on environments
1015           that may or may not compile the mutex support in.
1016         
1017           Changed the silc_mutex_alloc interface. It allocates the
1018           mutex now to the sent pointer and returns TRUE or FALSE.
1019
1020           Affected file lib/silcutil/silcmutex.h.
1021
1022         * Wrote the SILC Task Queue interface to support multi-threads.
1023           Affected file lib/silcutil/silctask.[ch].
1024
1025         * Wrote the SILC Scheduler to support multi-threads.  Affected
1026           file lib/silcutil/silcschedule.c.
1027
1028 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1029
1030         * Implemented the SILC Mutex API and SILC Thread API for WIN32
1031           in lib/silcutil/win32/.
1032
1033 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1034
1035         * Defined SILC Mutex API and SILC Thread API and implemented
1036           them for Unix.  Affected files are
1037           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
1038           lib/silcutil/unix/silcunixmutex.c and
1039           lib/silcutil/unix/silcunixthread.c.
1040
1041 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1042
1043         * Fixed the silc_server_remove_clients_by_server's channel
1044           key re-generation.  The hash table handling was incorrect
1045           and would not work with many channels.  Affected file is
1046           silcd/server.c.
1047
1048         * Fixed some memory leaks around the server code.
1049
1050         * Rewrote the silc_server_get_users_on_channel to support IPv6
1051           based Client ID's.  Affected file silcd/server.c.
1052
1053         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
1054           specification.  However, a separate document must be written
1055           to define the detailed signing procedure and the payload
1056           associated with the flag.  Defined the flag to the
1057           lib/silccore/silcchannel.h as well.
1058
1059 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1060
1061         * Changed the dynamic tables to static size tables in the
1062           lib/silccrypt/silchmac.c.
1063
1064         * Removed GCC dependencies from the code.  A patch by cras.
1065
1066 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1067
1068         * Do not show the error "Error receiving packet bla bla"
1069           in server if it really was not an error (-2 means that reading
1070           is pending).  Affected file silcd/server.c.
1071
1072 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1073
1074         * Fixed a possible crash in silc_server_remove_clients_by_server
1075           in silcd/server.c.  Fixed there also some memory leaks.
1076
1077         * Fixed the silc_idlist_replace_client_id.  It could replace
1078           wrong key in the hash table.  Affected file silcd/idlist.c.
1079
1080         * Do not check whether there are global users on the channel
1081           if the channel->global_users is FALSE.  Affected functions
1082           silc_server_remove_from_one_channel and
1083           silc_server_remove_from_channels in silcd/server.c.  Also,
1084           do not check if the removed client is local as we can be
1085           sure that global client was not removed from the channel
1086           and checking for global users is not needed.
1087
1088         * The silc_server_remove_clients_by_server now re-generates
1089           the channel keys correctly for those channels that had
1090           clients removed from them.  Affected file silcd/server.c.
1091
1092 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1093
1094         * Found the reason of random crashes in the server.  We weren't
1095           ignoring the SIGPIPE signal (which can be sent in write())
1096           and it crashed the server.  Affected file silcd/silcd.c.
1097
1098 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1099
1100         * Assure that sock->user_data is not NULL in the function
1101           silc_server_packet_send in silcd/packet_send.c.
1102
1103         * Disconnect the remote connection if it could not be added
1104           to any ID lists in the server.  The affected file is
1105           silcd/server.c.
1106
1107         * Check in silc_server_packet_send[_real/dest] that the
1108           socket is not disconnecting and ignore the data if it is.
1109           Affected file silcd/packet_send.c.
1110
1111         * Define inline to __inline on native WIN32 compilation.
1112           Affected file includes/silcwin32.h.
1113
1114         * Added some explicit type casts for inline code since MSVC
1115           require them.  Affected files lib/silcutil/silcbuffer.h,
1116           lib/trq/silcdlist.h and lib/trq/silclist.h.
1117
1118         * Print warning in log files from now on if the packet
1119           decryption fails.  Affected file silcd/server.c.
1120
1121 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1122
1123         * Changed the `say' client operation's interface to accept
1124           new `type' argument to indicate the type of the message sent
1125           by the library.  The application may filter the library's
1126           messages according the type.  The affected file is the
1127           lib/silcclient/silcapi.h.
1128
1129         * Added two new functions to lib/silcclient/silcapi.h:
1130           silc_client_del_client and silc_client_del_client_by_id.
1131           Affected file lib/silcclient/idlist.c.
1132
1133         * Moved the clientincludes.h from includes/ to silc/ and
1134           serverincludes.h from includes/ to silcd/.
1135
1136         * The modes for the CMODE and CUMODE are now passed as
1137           uint32 for application with COMMAND_REPLY.  The affected
1138           file is lib/silcclient/command_reply.c.
1139
1140 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1141
1142         * /WHOIS without arguments shows client's own information.
1143           Affected file lib/silcclient/command.c.
1144
1145         * Changed PING to not accept any arguments.  The specs
1146           says that client can ping only the connected server so
1147           requiring an argument is not needed.  Affected file is
1148           lib/silcclient/command.c.
1149
1150 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1151
1152         * Fixed a fatal bug in private message sending and reception
1153           encryption and decryption when using private message keys.
1154           The implementation was incorrect and did not follow the
1155           specification.  It causd that some of the message were
1156           lost since it did not use the sending and receiving keys
1157           as the protocol suggests.  This has been fixed and will cause
1158           incompatibilities with older clients when sending private
1159           message encrypted with private message keys.  Affected files
1160           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
1161           and various other in Irssi SILC Client.
1162
1163           Added `responder' boolean argument to the functions
1164           silc_client_add_private_message_key[_ske] to indicate when
1165           the key is added as responder or initiator of the key
1166           negotiation.
1167
1168 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1169
1170         * Removed the silc_ske_check_version function and created
1171           a SilcSKECheckVersion callback.  Added also a function
1172           silc_ske_set_callbacks that is now used to set all SKE
1173           callbacks.  The callback functions are not given to
1174           the SKE functions anymore, but this function is used to
1175           set the callbacks.
1176
1177         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
1178
1179         * Added `silc_version' argument to the silc_client_alloc
1180           to define the version of the application for the library.
1181           The library will use the version string to compare it
1182           against the remote host's (usually a server) version
1183           string.  Affected file lib/silcclient/silcapi.h
1184
1185         * Added the KE protocol context to Key Agreement context
1186           in client library so that we can abort the SKE if it
1187           is in process when we get timeout.  Affected file is
1188           lib/silcclient/client_keyagr.c.
1189
1190         * Do not resolve the client ID forever if it returns in the
1191           first time that such client does not exist.  This was done
1192           for example with private message.  Affected file is
1193           lib/silcclient/client_prvmsg.c.
1194
1195 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1196
1197         * Do not add regex.h for WIN32.  The affected file
1198           includes/silcincludes.h.
1199
1200         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
1201           not work yet 100%.  It generates the DLL's automatically
1202           when compiling with --with-win32 under cygwin.
1203
1204 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1205
1206         * lib/contrib/regex.c is not compiled on WIN32.
1207
1208         * Added silc_net_get_socket_opt function to the
1209           lib/silcutil/silcnet.h.
1210
1211         * Added includes/silcwin32.h for WIN32 specific includes
1212           and definitions.
1213
1214         * Do not use ptime structure or any of the posix process
1215           functions on WIN32 in lib/silccrypt/silrng.c.
1216
1217         * Added silc_gettimeofday to provide generic function
1218           for struct timeval on all platforms.  Added the function
1219           to lib/silcutil/silcutil.h.
1220
1221 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1222
1223         * Moved the lib/silccore/silcsockconn.[ch] to the utility
1224           library as they clearly belong there.  As a plus side we
1225           can make the actual socket connection routines platform
1226           specific.
1227
1228           Added also new generic function silc_socket_read and
1229           silc_socket_write (that used to be silc_packet_[read/write].
1230           The implementation of these are platform specific.
1231
1232         * Added WIN32 specific routines of silc_socket_[read/write]
1233           to lib/silcutil/win32/silcwin32sockconn.c.
1234
1235 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1236
1237         * Added preliminary support for native WIN32 compilation under
1238           cygwin (using the -mno-cygwin option for GCC) to the
1239           ./configure.in.pre.  The --with-win32 now prepares the
1240           compilation for native WIN32.
1241
1242         * Rewrote the SILC Scheduler interface in the file
1243           lib/silcutil/silcschedule.h.  The scheduler is now context
1244           based and does not have anymore any global static scheduler.
1245           Moved the Unix scheduler to the lib/silcutil/unix/ directory
1246           and created lib/silcutil/win32 directory for WIN32 based
1247           scheduler.
1248
1249         * Added Unix specific network routines to the
1250           lib/silcutil/unix/silcunixnet.c and the old
1251           lib/silcutil/silcnet.c includes now only generic routines.
1252
1253           Added WIN32 specific network routines to the
1254           lib/silcutil/win32/silcwin32net.c.
1255
1256         * Added Unix specific utility functions from the
1257           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
1258
1259         * Added WIN32 SILC Scheduler to the file
1260           lib/silcutil/win32/silcwin32schedule.c. The code is of course
1261           untested.
1262
1263 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1264
1265         * Do not handle JOIN notify in the server if the target client
1266           is not registered (idata->registered == FALSE).  The affected
1267           file is silcd/packet_receive.c.
1268
1269         * Update the nickrec->founder in event_cumode in the Irssi SILC
1270           client.  Affected file irssi/src/silc/core/silc-channels.c.
1271
1272         * Fixed the CUMODE_CHANGE notify handling in the server when
1273           server and router are announcing their clients on channels.
1274           Now the mode changes are saved and notified correctly.  The
1275           affected file is /silcd/packet_receive.c.
1276
1277         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
1278           They really did not replace the cache entry in the ID Cache.
1279           Now they do that.  Affected file silcd/idlist.c.
1280
1281         * Fixed the KICK notify handling in the Irssi SILC client to
1282           update the channel records so that the kicked client does not
1283           appear to be on the channel.  The affected file is 
1284           irssi/src/silc/core/silc-channels.c.
1285
1286         * Always update the conn->current_channel when executing command
1287           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
1288
1289         * Fixed the KILL notify handling in Irssi SILC client to remove
1290           the killed client on all channels.
1291
1292 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1293
1294         * Fixed the silc_parse_command_line to remove extra spaces
1295           from the start and end of the arguments.  Affected file is
1296           lib/silcutil/silcutil.c.
1297
1298         * Cancel and free any active protocol in the function
1299           silc_server_close_connection.  Affected file silcd/server.c.
1300
1301         * Cancel and free any active protocol in the function
1302           silc_client_close_connction.  Affected file is
1303           lib/silcclient/client.c.
1304
1305         * Do not execute the KILL command for clients that are in
1306           history (ie. they are not in the network).  Affected file is
1307           silcd/command.c.
1308
1309         * Fixed KILL notify handling, client does not crash anymore.
1310           Affected file irssi/src/silc/core/silc-channels.c.
1311
1312         * Reduced the default packet buffer size from 2048 to 1024 in   
1313           lib/silccore/silcpacket.c.
1314
1315         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
1316           counter to the SKE context that is incresed when the SKE library
1317           performs async operation outside the library.  If the outside
1318           process frees the SKE context and FREED status will be set 
1319           and the library will detect after the sync operation that the
1320           libary is freed.  The affected files are
1321           lib/silcske/silcske[_status].[ch].
1322
1323         * Resolve the client entry information in the function
1324           silc_client_channel_message to assure that NULL pointer is not
1325           passed as client entry to the application. */
1326
1327         * Fixed the task timeout calculation to assure that there is
1328           never negative timeouts.  The affected file is 
1329           lib/silcutil/silcschedule.c.
1330
1331         * Fixed the channel user mode notification sending in server.
1332           It was sent point-to-point to the router (or to server by router)
1333           but it needs to be destined to a channel.  The routines now
1334           supports sending the channel user mode notifys to the channels
1335           when announcing clients and channels.  Affected files are
1336           silcd/server.c and silcd/packet_receive.c.
1337
1338         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
1339           It did not actually replace the old channel entry in the cache.
1340           Affected file lib/silcclient/client_notify.c.
1341
1342 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1343
1344         * Fixed a possible crash in silc_packet_send_prepare.  It now
1345           assures always that there is enough space in the buffer and
1346           at the tail area of the buffer (for MAC). 
1347
1348           Fixed the inbound buffer reallocation in silc_packet_read.
1349           It was old code and did not handle the reallocation correctly.
1350           Affected
1351
1352           The affected file is lib/silccore/silcpacket.c.
1353
1354         * Fixed buffer overflow in silc_parse_nickname in the file
1355           lib/silcutil/silcutil.c.
1356
1357 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1358
1359         * make install generates new server keys only if there is not
1360           keys already.
1361
1362 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1363
1364         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
1365           Added check that if the NOREPLY is set then we will not send
1366           the away message.  This avoids infinite loop of away messages
1367           if both clients are away.  The affected file is
1368           lib/silcclient/client_prvmsg.c.
1369
1370         * Fixed client crash if /NICK was given without arguments.
1371           Affected file lib/silcclient/command.c.
1372
1373         * Server does not send the invite list in INVITE command back
1374           to the client if the list was not altered.  Added this notion
1375           to the protocol spec as well.  Affected file silcd/command.c.
1376
1377           Fixed possible crash in INVITE command by checking the
1378           value of silc_server_get_client_route command.
1379
1380         * Fixed the INVITE notify type handling.  The arguments are now
1381           taken in correct order and client does not crash.  The affected
1382           file is irssi/src/silc/core/silc-channels.c.
1383
1384           Removed the "Inviting xxx to channel" message from the
1385           client library away and let the application handle it.
1386           Affected file lib/silcclient/command.c.  Added that message
1387           to Irssi SILC client's message formats.
1388
1389         * Fixed CMODE command crash in client.  It now checks the
1390           amount of arguments correctly and does not crash.  The affected
1391           file is lib/silcclient/command.c.
1392
1393         * Do not create new channel automatically in silc_channels_join
1394           but check whether the channel by that name already exists.
1395           Affected file irssi/silc/core/silc-channels.c.
1396
1397         * Do not send the SERVER_SIGNOFF to router if the disconnected
1398           entity was the router.  Affected file silcd/server.c.
1399
1400         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
1401           SILC client as it was missing from there.
1402
1403           Added the handling of the KICK notify to the Irssi SILC client
1404           as it was missing.  Added "you have been kicked" message to
1405           Irssi SILC client's message modules formats.
1406
1407           Added the handing of the KILL notify to the Irssi SILC client
1408           as it was missing.  Added the kill message module formats 
1409           as well.
1410
1411           The affected file is irssi/src/silc/core/silc-channels.c.
1412
1413         * The router did not save the channel mode the server announced.
1414           Affected file silcd/packet_receive.c.
1415
1416         * Fixed a possible crash in INFO command in server.  If the
1417           server did not provide the server info it crashed.  Affected
1418           file silcd/command.c.
1419
1420 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1421
1422         * Fixed the GETKEY command in the server to check also the
1423           global list.  Otherwise the GETKEY would not work correctly
1424           in normal SILC server.  Affected file silcd/command.c.
1425
1426 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1427
1428         * Fixed GETKEY crash, it crashed if the command did not succseed.
1429
1430 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1431
1432         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
1433           is now real and not just an macro interface to GMP.
1434
1435           Removed the entire GMP from the source tree and imported new
1436           NSS MPI library instead.  Reason for removing GMP is that it is
1437           extremely large and compiles extremely slow.  The NSS MPI
1438           is only a few files and compiles in less than 10 seconds.
1439           The speed is also about the same as GMP.  The MPI is imported
1440           to lib/silcmath/mpi.
1441
1442           If the system has GMP installed we will still use the GMP.
1443           If it is not then the NSS MPI will be compiled.
1444
1445 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1446
1447         * Merged a long nickname (127 characters long) crash bugfix from
1448           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
1449
1450         * Merged a freed memory reference bugfix from Irssi CVS tree.
1451           Affected file irssi/src/core/commands.c.
1452
1453 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1454
1455         * Added the server's public key sving and verification to the
1456           server when performing the SKE.  This was missing and the
1457           remote server's (or router's) public key was accepted without
1458           checking whether we have it previously or trust it at all.
1459           Affected file silcd/protocol.c.
1460
1461 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1462
1463         * Check in the silc_server_timeout_remote if protocol is active
1464           and make sure that the protocol's final callback is called so
1465           that all memory if freed.  Affected file silcd/server.c.
1466
1467 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1468
1469         * silc_server_whois_send_reply crashed the server if the nickname
1470           was 127 characters long.  Affected file silcd/command.c.
1471
1472 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1473
1474         * Added sanity check to the silc_server_new_client. If the hostname
1475           is provided inside username then check that the provided hostname
1476           really is the same as the resolved one.  If the hostname was not
1477           resolved then check it from the public key.  Affected file is
1478           silcd/packet_receive.c.
1479
1480         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
1481           if the server disconnected us and the connection is not valid
1482           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
1483
1484         * Moved the silc_client_[chmode|chumode|chumode_char] away from
1485           the library to the lib/silcutil/silcutil.[ch].
1486
1487 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1488
1489         * Close log file after open.  Affected file 
1490           lib/silcutil/silclog.c.
1491
1492         * Check whether sock == NULL in silc_client_send_packet and return
1493           if it is.  Affected file lib/silcclient/silcclient.c.
1494
1495         * Check rec->entry == NULL in the Irssi SILC Client before
1496           sending the channel message.  Affecte file is
1497           irssi/src/silc/core/silc-servers.c.
1498
1499 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1500
1501         * Merged a splitted window bugfix from Irssi CVS tree.  The 
1502           affected file is irssi/src/fe-text/textbuffer-view.c.
1503
1504         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
1505           It did not print nickname.
1506
1507         * Improved the distributions system a bit.
1508
1509 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1510
1511         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
1512           irssi/src/fe-text/gui-window.c.
1513
1514         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
1515           to in-active server.  The affected file is
1516           irssi/src/silc/core/client_ops.c.
1517
1518         * Resolve the client in USERS command reply if the entry does
1519           not have username resolved.  The affected file is
1520           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
1521           command to WHOIS command to really resolve stuff.  The USERS
1522           is not used any more in any critical section so WHOIS can
1523           be used even though it might be slower than IDENTIFY.
1524
1525         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
1526           format.
1527
1528 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1529
1530         * Changed the protocol API a bit more consistent in the
1531           lib/silccore/silcprotocol.[ch].
1532
1533         * Changed the following headers to ROBODoc format:
1534
1535                 lib/silccore/silcpayload.h
1536                 lib/silccore/silcprotocol.h
1537                 lib/silccore/silcsockconn.h
1538
1539           All core library headers are now formatted.
1540
1541 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1542
1543         * Fixed a bug in Irssi SILC client; do not show that you are
1544           server/router operator if you really are not.  Affected file is
1545           irssi/src/silc/core/client_ops.c.
1546
1547         * Renamed silc_command_free_payload to silc_command_payload_free.
1548           Affected file lib/silccore/silccommand.h
1549
1550         * Added silcmath.h to include the prototoypes of various routines
1551           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
1552           silcprimegen.h.
1553
1554         * Changed the following headers to ROBODoc format:
1555
1556                 lib/silccore/silcchannel.h
1557                 lib/silccore/silccommand.h
1558                 lib/silccore/silcid.h
1559                 lib/silccore/silcidcache.h
1560                 lib/silccore/silcmode.h
1561                 lib/silccore/silcnotify.h
1562                 lib/silccore/silcpacket.h
1563                 lib/silcmath/silcmath.h
1564
1565 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1566
1567         * Added checking to the server code not to start the server if
1568           ciphers and stuff are not configured properly.  Affected files
1569           silcd/serverconfig.[h] and silcd/server.c.
1570
1571         * Changed the layout of the header files of the public interfaces
1572           in the SILC libraries.  The new layout supports ROBODoc 
1573           documentation tool (and some others) so that it is easy to create
1574           a library reference manual.  All the other headers and source
1575           code must still follow the CodingStyle document.  Also source
1576           code must not include these ROBODoc stuffs, only the headers.
1577           Furthermore, all public interface headers must now be named
1578           by using `silc' prefix, example: silcapi.h, silccipher.h.
1579           Some files were renamed due to this.  All the other headers
1580           must not be used as public interfaces.  I will update the
1581           CodingStyle document later.  Changed following headers, so far:
1582
1583                 lib/silcclient/silcapi.h
1584                 lib/silccore/silcauth.h
1585                 lib/silccore/silcprivate.h
1586                 lib/silccrypt/silcdh.h
1587
1588 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1589
1590         * Updated TODO.
1591
1592         * Removed silc_client_packet_send_flush from the client library
1593           as it is not needed.  Affected file lib/silcclient/client.[ch].
1594
1595         * Added printing of message of unresolved authentication method
1596           to the Irssi SILC client.  Added it to the module formats.
1597           Removed the same message from the client library.
1598
1599 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1600
1601         * Added new distribution feature, DISTLABEL.  Every distribution
1602           can define own preprocessor label that can be used in the
1603           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
1604           file distributions, acconfig.h.pre and prepare.
1605
1606 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1607
1608         * Added Makefile.defines_int to include the actual definitions
1609           for Makefile.defines.in.  Tested the new distribution system,
1610           created distributions and tested installation.
1611
1612         * Added AWAY message printing to the Irssi SILC client.  Added
1613           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
1614
1615         * Added SCONNECT command to call the SILC's CONNECT command.
1616           Cannot use CONNECT directly since Irssi uses that internally.
1617           Affected file irssi/src/silc/core/silc-servers.c.
1618
1619           Added ACTION local command.  It is same as ME command but takes
1620           the channel as mandatory argument.
1621
1622           Rewrote some of the Irssi's help files to suite for SILC
1623           protocol.
1624
1625 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1626
1627         * Added Makefile.defines[.in] that should for now on be included
1628           in all Makefile.am file in the source tree.  That file includes
1629           all common compilation definitions for SILC source tree.
1630
1631 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1632
1633         * Minor changes to the ./prepare script to change the package
1634           name according the distribution name to the configure.in.
1635
1636 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1637
1638         * Created new distribution system.  Added file `distributions'
1639           that defines all the distributions that can be created out of
1640           the SILC source tree.  The ./prepare script now reads that
1641           file to determine how to prepare the distributions.  The
1642           first argument to the ./prepare is the name of the distribution
1643           and second is the version of the distribution.  If given
1644           without arguments it creates the default (toolkit) distribution
1645           with the default version (defined in ./prepare).
1646
1647           All Makefile.am files that are subject to the distributions
1648           are now named as Makefile.am.pre.  These are ./Makefile.am
1649           and lib/Makefile.am.  Others may be changed later.
1650
1651 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1652
1653         * Added invite list, ban list, some key management and connection
1654           error message printing to module formats in the Irssi SILC client.
1655
1656         * Added new silc_client_set_away_message to set the away message
1657           that is back to the person who sent private message.  The 
1658           affected file lib/silcclient/silcapi.h and the
1659           lib/silcclient/client_prvmsg.c.
1660
1661 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1662
1663         * Fixed the private message sending in the Irssi SILC client,
1664           added local command KEY to the Irssi SILC client.
1665
1666           Added key management and key agreement message formats to the
1667           irssi/src/fe-common/silc/module-formats.[ch].
1668
1669           Added USERS (alias WHO) printing, server/router operator
1670           indication and LIST command printing to the module formats.
1671
1672 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1673
1674         * Fixed channel joining notify handling, cumode notify handling
1675           from Irssi SILC client.
1676
1677         * Added SILC specific module-formats to the Irssi SILC client so
1678           that SILC specific message hilighting, colors etc is possible.
1679           Affected file irssi/src/fe-common/silc/module-formats.[ch].
1680
1681           Added channel mode, channel user mode, actions, notices,
1682           whois and whowas printing to the the module-formats.c.
1683
1684         * Fixed a bug in channel deletion in the server.  The channel
1685           is not left to the cache even if the channel founder auth mode
1686           is set when there are no users anymore on the channel.  Affected
1687           file silcd/server.c.
1688
1689         * The silc_net_localhost now resolves the entire hostname including
1690           the domain name.  Affected file lib/silcutil/silcnet.c.
1691
1692 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1693
1694         * Changed the ask_passphrase client operation to be ascynchronous.
1695           It has now a completion callback and a context that the 
1696           application must call after it has got the passphrase from
1697           the user.  Affected files lib/silcclient/silcapi.h,
1698           lib/silcclient/protocol.c, lib/silcclient/command.c and
1699           silc/client_ops.c.
1700
1701           Added SilcAskPassphrase callback that the application calls
1702           to deliver the passphrase to the library.
1703
1704         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
1705           The public key verification and especially a certificate
1706           verification is asynchronous procedure.
1707
1708           Added new SILC_SKE_STATUS_PENDING status to indicate the
1709           request is pending and a callback will be called to finalize
1710           the request.
1711
1712           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
1713           indicate that remote end did not send its public key (or
1714           certificate), even though we require it.  Added check for this
1715           condition in the SKE.  This was a security bug, now fixed.
1716
1717           Defined new SilcSKEVerifyCbCompletion callback that is called
1718           when the verification process is completed.
1719
1720           The affected files lib/silcske/silcske_status.h and
1721           lib/silcske/silcske.[ch].
1722
1723         * Changed the verify_public_key client operation to be async
1724           as well.  Defined SilcVerifyPublicKey callback that is used to
1725           indicate the success of the public key verification process.
1726
1727           Changed the server and client to use the new async client 
1728           operations.
1729
1730         * Changed the Irssi SILC client's internal scheduler to be called
1731           twice as many times as it used to be.  As a result the client
1732           should be a bit faster now.  Affected file is
1733           irssi/src/silc/core/silc-core.c.
1734
1735         * Added support to Irssi SILC client of asynchronous public key
1736           verification and passphrase inquiry.  Affected file is
1737           irssi/src/silc/core/silc-core.c.
1738
1739 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1740
1741         * Do not say "You have left channel %s" in client library.
1742           Moved it to the application.  Affected files are
1743           lib/silcclient/command.c and silc/client_ops.c.
1744
1745         * Fixed silc_client_get_clients.  Command context was not
1746           duplicated and was freed memory in the callback.  Affected
1747           file lib/silcclient/idlist.c.
1748
1749         * Do not say "you are now talking..." on JOIN command in the
1750           client library.  The appliation must handle it.
1751
1752         * Do not say ".. changed topic to" in command reply in the
1753           client libary.  The application must handle it.
1754
1755         * Fixed TOPIC command sending in the client library.
1756
1757         * Fixed a memory leak in silc_client_command_free in the file
1758           lib/silcclient/command.c.
1759
1760 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1761
1762         * Imported a modified version of Irssi client to the source tree.
1763           The Irssi will be used to create a new client called
1764           Irssi SILC.  Imported to irssi/.
1765
1766           Added silc_core_init_finish function to the Irssi.  Affected
1767           file irssi/configure.in.
1768
1769           A lot changes in the Makefile.ams around the irssi tree.
1770
1771 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1772
1773         * Do not rehash if the new size is same as the old size of the
1774           hash table, in the silc_hash_table_rehash*.  The affected file
1775           lib/silcutil/silchashtable.c.
1776
1777         * Replaced hash_table_del_by_context calls from the server
1778           (when channel->user_list and client->channels) to the
1779           hash_table_del as it is sufficient and faster.
1780
1781 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1782
1783         * Added silc_hash_table_list, silc_hash_table_get and the
1784           SilcHashTableList structure to provide an alternative way to
1785           traverse the hash table.  The affected files are
1786           lib/silcutil/silchashtable.[ch].
1787
1788         * Changed the server's idlist routines to use the hash table
1789           routines to optimize the code.
1790
1791 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1792
1793         * Replaced the client entry's `channel' list and channel entry's
1794           `user_list' list to hash tables for optimized lookup.  Changed
1795           the code to use the hash table interface around the code. 
1796           Affected file lib/silcd/idlist.[ch].
1797
1798         * Added `auto_rehash' boolean argument to the function
1799           silc_hash_table_alloc to indicate whether the hash table should
1800           auto-rehash when it thinks is appropriate time.  It will
1801           increase the hash table size if the there is twice as much
1802           entries in the table than the size of the table, and will
1803           decrease the size if there are twice as less entries than
1804           the size of the table.
1805
1806 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1807
1808         * Fixed silc_xxx_get_supported to not crash at some circumstances.
1809
1810 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1811
1812         * silc_idcache_purge_by_context deletes the entry now by context
1813           as it is supposed to do.  Affected file lib/silccore/idcache.c.
1814
1815         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
1816           client is not anymore valid (WHOWAS givens the info) and not
1817           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
1818
1819 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1820
1821         * Removed the `data' and `data_len' arguments from the ID Cache
1822           interfaces and added `name' argument.  ID Cache does not handle
1823           anymore the binary data only a names associated with given ID.
1824
1825         * When hashing a Client ID with silc_hash_id the entire ID is
1826           not hashed anymore, instead only the hash of the Client ID is
1827           hashed.  This way we can access the Client ID from the cache
1828           with Client ID but with the hash of the ID (which is a hash of
1829           the nickname) as well without any difference in performance.
1830
1831           Added also silc_idcache_find_by_id_one_ext to do one on one 
1832           searching when we have the actual ID.  Added also function
1833           silc_hash_client_id_compare.  The affected files are
1834           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
1835
1836         * When hashing the name associated with a ID it is always done
1837           in lowercase.  This way we can access the cache without worrying
1838           about case-sensitivity, even though, for example nicknames are
1839           case sensitive.
1840
1841         * Fixed a bug in server with channel message sending.  It put
1842           wrong ID type as destination ID.  The affected file 
1843           silcd/packet_send.c.
1844
1845         * silc_idcache_del_by_context now deletes from all hash tables
1846           by context.  Affected file lib/silccore/idcache.c.
1847
1848 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1849
1850         * Changed the client library to use the new ID Cache interface.
1851           Changes around the source tree.
1852
1853         * Added silc_hash_table_rehash_ext to rehash with specific
1854           hash function.  Affected file lib/silcutil/silchashtable.[ch].
1855
1856         * Added silc_hash_string_compare to compare two strings in the
1857           hash table.  Affected file lib/silcutil/silcutil.[ch].
1858
1859 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1860
1861         * Added new function silc_idcache_del_by_context into the
1862           lib/silccore/idcache.[ch].
1863
1864         * Changed the server's ID list routines to use the new ID Cache
1865           interface.  Changes around the source tree.
1866
1867 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1868
1869         * Added silc_hash_table_del[_by_context]_ext functions in to the
1870           lib/silcutil/silchashtable.[ch].
1871
1872           Removed silc_hash_table_find_all* routines and added new
1873           silc_hash_table_find_foreach to replace them.
1874
1875           Added silc_hash_table_replace_ext function as extended
1876           replacing function.  Separated the simple hash table interface
1877           from the extended hash table interface in the file
1878           lib/silcutil/silchashtable.h.
1879
1880         * Fixed minor bugs and changed it to use some of the new
1881           hash table functions in lib/silccore/idcache.c
1882
1883 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1884
1885         * Added new function silc_hash_table_find_all to return all keys
1886           in the hash table by the specified key.  As the hash table is
1887           collision resistant it also makes it possible to have several
1888           duplicate keys in the hash table.  This function may be used to
1889           find all of the keys from the hash.
1890
1891           Added user_context arguments to the SilcHashFunction,
1892           SilcHashCompare and SilcHashDestructor to deliver user specified
1893           context.
1894
1895           Added new fuctions silc_hash_table_find[_all]_ext to do
1896           extended lookup with specified hash and compare functions and
1897           specified user contexts.
1898
1899           Added new function silc_hash_table_add_ext to add the key
1900           with specified hash function and user context.
1901
1902           Added new function silc_hash_table_foreach to traverse all
1903           entrys in the hash table.  Added SilcHashForeach callback
1904           function.
1905
1906           Added new function silc_hash_table_del_by_context to delete
1907           the entry only if the context associated with the key matches.
1908
1909           Affected files are lib/silcutil/silchashtable.[ch].
1910
1911         * Removed silc_hash_[server/client/channel]_id and added just
1912           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
1913           silc_hash_id_compare to compare two ID's using as the hash table
1914           comparison function.  Added also silc_hash_data to hash
1915           binary data and silc_hash_data_compare to compare it.
1916
1917         * Removed silc_idlist_find_client_by_hash as it is not needed
1918           anymore.  Affected file silcd/idlist.[ch].
1919
1920         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
1921           to use internally the SilcHashTable.  The new ID Cache is a lot
1922           faster than the old one.  Some of the ID Cache interface was also
1923           rewritten and obsolete and stupid functions were removed.
1924
1925 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1926
1927         * Added entry_count field to the SilcHashTable to keep the number
1928           of the entries in the table.  Implemented the function
1929           silc_hash_table_rehash.  Added new function
1930           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
1931
1932           Fixed a minor bug in silc_hash_table_free.
1933
1934         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
1935           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
1936           into the lib/silcutil/silcutil.[ch].
1937
1938 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1939
1940         * Implemented a collision resistant hash table into the
1941           lib/silcutil/silchashtable[ch].  See the header and the source
1942           for the SilcHashTable API.
1943
1944 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1945
1946         * Merged dotconf version 1.0.2 into lib/dotconf.
1947
1948 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1949
1950         * Do not compile anything in lib/silcsim/* if the SIM support
1951           is not enabled.  The tree should now compile without problems
1952           under cygwin.
1953
1954 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1955
1956         * Compiled the SILC under cygwin.  Compiled and tested briefly
1957           without problems.  More tests needed.  The SIMs didn't compile
1958           though.
1959
1960         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
1961
1962         * Fixed possible crash in silc_get_username in the
1963           lib/silcutil/silcutil.c.
1964
1965 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1966
1967         * Fixed a va_arg in silc/client_ops.c.
1968
1969         * Oops, RC5 routines were named AES and caused some problems
1970           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
1971
1972 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1973
1974         * Added new SilcIDIP structure into the lib/silccore/id.h and
1975           replaced the old `ip' fields from all SILC ID's to that type.
1976           This is a step towards IPv6 support.
1977
1978           The silc_id_get_len takes now the ID as an extra argument.
1979           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
1980           both IPv4 and IPv6 based ID's.
1981
1982           The affected files are lib/silccore/id.[ch] and other files
1983           around the tree using these routines.
1984
1985         * Removed the ID length arguments in server from various 
1986           silc_server_send_notify_* routines -> they are not needed 
1987           anymore.
1988
1989 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1990
1991         * Fixed memory leak in silc_encode_pem_file in the file
1992           lib/silcutil/silcutil.c.
1993
1994 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1995
1996         * Check minor version as well in the SKE.  Affected files are
1997           silcd/protocol.c and lib/silcclient/protocol.c.
1998
1999         * Added --identifier option to the server so that an identifier
2000           can be when creating the public key for the server.  Affected
2001           file is silcd/silcd.c.
2002
2003         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
2004           lib/silccrypt/silcpkcs.c.
2005
2006 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2007
2008         * Register default ciphers and stuff when using -C option with
2009           the server.  Affected file sildc/silcd.c.
2010
2011         * Put back the servers public key filename format, it is better
2012           than the new one.  For now, the client keys are saved with the
2013           new filename format.  The affected file silc/client_ops.c.
2014
2015         * Implemented the Cipher API for the rest of the ciphers that
2016           did not implement it or implemented it the wrong way.
2017
2018 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2019
2020         * Register default ciphers and stuff when using the -S option
2021           in the client.  Affected file silc/silc.c.  Same also when
2022           creating new key pair with -C option.
2023
2024 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2025
2026         * Fixed the silc_verify_public_key client operation function to
2027           save the public keys differently.  The fingerprint is now 
2028           used as filename and not the hostname.  This way also the
2029           client keys are saved uniquely and not with hostnames.  The
2030           affected file is silc/client_ops.c.
2031
2032         * Trimmed the silc_hash_fingerprint function to remove extra
2033           whitespaces from the end of the fingerprint.  The affected
2034           file is lib/silccrypt/silchash.c.
2035
2036         * Updated TODO.
2037
2038         * Added silc_cipher_register_default function to register all
2039           default ciphers.  It can be used when configuration files
2040           does not exist and the application does not want any specific
2041           ciphers in any specific order.
2042
2043           The SilcDList is now used as silc_cipher_list dynamically
2044           allocated cipher list.  Removed the static list all together
2045           and now all ciphers must be allocated to the dynamic list.
2046           The silc_cipher_alloc routine was changed to check only the
2047           dynamic list.
2048
2049           All silc_cipher_* routines that used to return int returns
2050           now bool.
2051
2052           The affected files lib/silccrypt/silccrypt.[ch].
2053
2054         * The same thing was done to silc_hash_* as for silc_cipher_*
2055           routines.  Affected files lib/silccrypt/silchash.[ch].
2056
2057         * The same thing was done to silc_pkcs_* as for silc_cipher_*
2058           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
2059           Added also silc_pkcs_[un]register[_default] functions.
2060           Removed the data_context from the PKCS API.
2061
2062         * Added silc_hmac_register_default function to register default
2063           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
2064           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
2065           to unregister all hmacs at once.
2066
2067         * Register the default ciphers, hash functions, PKCSs and HMACs
2068           if client's configuration file does not exist.  The affected
2069           file silc/silc.c.
2070
2071         * The client did not load the hash functions from the SIM
2072           modules at all.  Added support for this.  Affected file is
2073           silc/clientconfig.c.
2074
2075         * When decoding public key with silc_pkcs_public_key_decode, check
2076           the supported algorithm only if PKCS are registered.  Affected
2077           file lib/silccrypt/silcpkcs.c.  The same was done with the
2078           silc_pkcs_private_key_decode.
2079
2080         * Fixed the SILC List routines to keep the list always in order.
2081           It used to change the list's order when traversing the list but
2082           not it preserves the order.  Affected file lib/trq/silclist.h.
2083
2084 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2085
2086         * Added the client library to use the SilcSocketConnection's
2087           reference counter (by silc_socket_dup) to prevent the bug that
2088           the socket object may be freed underneath async operation.
2089
2090         * The name resolv library checking fixes in the configure.in.pre.
2091           The patch by salo.
2092
2093         * Created new version of the protocol drafts for future
2094           development. The -03 drafts are the ones that will be changed
2095           in the trunk now and the -02 will remain as they are.
2096
2097         * Send list of CUMODE notifys to the router when announcing
2098           the channel users to the router.  Affected file silcd/server.c.
2099           If the router receiving channel founder CUMODE for a channel
2100           that already has channel founder it will send CUMODE notify
2101           to the sender to remove the channel founder rights from the
2102           announced client.  Affected file silcd/packet_receive.c.
2103
2104         * The CUMODE notify may now use Server ID as well as the entity
2105           who changes the mode.  Updated protocool specs.
2106
2107         * Updated INSTALL and README files.
2108
2109 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2110
2111         * New web pages in the http://silc.pspt.fi.  The pages was
2112           designed by salo.
2113
2114         * Updated CREDITS.
2115
2116 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2117
2118         * Implemented the [DenyConnectin] config section in the server.
2119           Added silc_server_config_denied_conn to check whether incoming
2120           connection is denied.  Affected file silcd/serverconfig.[ch].
2121
2122         * Do not check the ports when checking the incoming configuration
2123           data if the port is 0, meaning any.  Affected file is
2124           silcd/serverconfig.c.
2125
2126 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2127
2128         * Fixed buffer overflow in silc_string_compare in the file
2129           lib/silcutil/silcutil.c.
2130
2131         * Fixed double free in silc_server_command_leave in the file
2132           silcd/command.c.
2133
2134 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2135
2136         * Fixed the version checking in the server.  Affected file is
2137           silcd/protocol.c.
2138
2139 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2140
2141         * Fixed the configuration data fetching when accepting new
2142           connections in the server.  Affected file silcd/server.c.
2143
2144 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2145
2146         * Added `sender_entry' argument to the function
2147           silc_server_packet_relay_to_channel so that we can check
2148           whether some destination actually belongs to the same route
2149           the sender belongs (ie, we must not resend the packet to the
2150           sender).  Affected file silcd/packet_send.[ch].
2151
2152         * Added `servername' field to the SilcClientEntry in the server
2153           to hold the name of the server where client is from.  Affected
2154           file is silcd/idlist.h.
2155
2156 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2157
2158         * Moved the channel message encrypting in the router betwen
2159           router connections from silc_server_channel_message to the
2160           silc_server_packet_relay_to_channel since we want to check
2161           whether we have anybody channel before encrypting anything.
2162           Affected files silcd/packet_[receive/send].c.
2163
2164 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2165
2166         * Fixed the [AdminConnection] server config section to support
2167           multiple entries.  Affected file silcd/serverconfig.c.
2168
2169         * Added support into the server to check the validity of the
2170           incoming connection before executing any KE or authentication
2171           protocols.
2172
2173         * The connection configuration is now saved to the KE and 
2174           connection auth protocol contexts and not fetched anymore in 
2175           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
2176
2177         * The local hosts listenning address and port is also resolved
2178           now when starting the server.  We want to have the socket object
2179           to include the real address and port for the listener.  Added
2180           new function silc_net_check_local_by_sock into the files
2181           lib/silcutil/silcnet.[ch].
2182
2183         * Fixed a broadcast bug in server -> do not broadcast if we
2184           are standalone.
2185
2186         * Fixed a routing bug.  Do not route broadcast packets ever.
2187           Broadcast packets must be processed always and not routed since
2188           they may be destined to some other host than yourself and thus
2189           would get routed without no good reason.  Affected file is
2190           silcd/server.c.
2191
2192         * Added function silc_server_config_is_primary_route to check
2193           whether primary router connection has been configured (a router
2194           configuration that we are initiating).  If there is not, we 
2195           will assume that there is only two routers in the SILC network
2196           and we will use the incoming router connection as our primary
2197           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
2198
2199         * Changed the order of the broadcasting.  Broadcast _after_ the
2200           packet has been processed not before.  Affected file is
2201           silcd/server.c.
2202
2203         * Fixed a [ClientConnection] parsing bug.  The port was never
2204           parsed correctly thus resulting to port 0.  Affected file
2205           silcd/serverconfig.c.
2206
2207         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
2208           argument and did not set the broadcast packet flag.  Affected
2209           file silcd/packet_send.c.  Fixed same bug in the function
2210           silc_server_send_notify as well.
2211
2212         * If we receive NEW_ID packet for our own ID in the server, ignore
2213           the packet.
2214
2215 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2216
2217         * Updated TODO.
2218
2219         * Removed the nickname from the Private Message Payload.
2220           Updated the code and the protocol specs.
2221
2222         * Updated protocol specs for submitting to the IETF.
2223
2224         * Tweaked the Random Number Generator a bit.  Affected file
2225           lib/silccrypt/silcrng.c.  Exported a new function
2226           silc_rng_[global]_add_noise which can be used to add more
2227           noise to the RNG.
2228
2229 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2230
2231         * Do not parse packets with different timeout when protocol
2232           is active -> may cause problem with rekey.  Affected file
2233           silcd/server.c.
2234
2235         * When server receives signoff notify it must not create
2236           new channel key if the client is on any channels since the
2237           sender of the signoff notify will create it.
2238
2239 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2240
2241         * Added printing of error messages during SKE protocol from the
2242           failure packet sent by server during SKE.  Affected file
2243           silc/client_ops.c.
2244
2245         * Removed the client's failure_callback handling with timeout
2246           and handle it immediately when received.
2247
2248         * The SKE library returned wrong type in SUCCESS and FAILURE 
2249           packets.  They must be 32 bit MSB not 16 bit MSB.
2250
2251 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2252
2253         * Ok, rewrote the logic of the re-key and now it seems to work.
2254           I tested it on high traffic with frequent re-keys without
2255           problems.  Added hmac_receive (and renamed hmac to hmac_send)
2256           in SilcClientConnection in lib/silcclient/client.h and
2257           in SilcIDListData in silcd/idlist.h.  Also, removed the
2258           SilcPacketParserContext's cipher and hmac fields as they are
2259           not needed anymore and actually caused some problems when
2260           the ciphers and hmac's changed underneath the packet parser.
2261
2262 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2263
2264         * If re-key protocol is active then process the incoming packets
2265           synchronously since we must assure that icoming packets encrypted
2266           with the old key is processed before the new keys is set to
2267           use.  This is true other packets than for REKEY packets.
2268           Affected file silcd/server.c.  The same was done to client library
2269           as well, affected file lib/silcclient/client.c.
2270
2271 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2272
2273         * Fixed bug in client and server to accept the force send if
2274           the packet is send from silc_[server/client]_packet_process
2275           function.  Otherwise the packets are never delivered, oops.
2276
2277 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2278
2279         * Disable force sending of packets when REKEY protocol is active.
2280           We must assure that no packet is sent directly when rekey is
2281           performed.  All packets must be sent through packet queue.
2282           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
2283           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
2284           function is silc_[server/client]_packet_send_real to check
2285           the situation.
2286
2287         * Replaced the SIM paths from example config files to 
2288           /usr/local/modules.  Also, make install creates now
2289           /usr/local/silc/logs directory to hold all the SILC server
2290           logs.
2291
2292 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2293
2294         * Made the configure.in.pre work on Solaris.  Patch by salo.
2295
2296         * Made all ciphers compatible with non-x86 machines.  Defined
2297           CBC mode macros into lib/silccrypt/ciphers_def.h.
2298
2299 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2300
2301         * Fixed the make install.
2302
2303 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2304
2305         * When MAC computation fails the silc_packet_decrypt returned 0
2306           even though it was supposed to return -1.  Fixed this.  The
2307           affected file is lib/silccore/silcpacket.c.
2308
2309         * Do not replace the config files in /etc/silc (in make install)
2310           if they already exist.  Affected file ./Makefile.am.
2311
2312         * Do not send re-key packets immediately but through packet queue.
2313           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
2314
2315         * Changed silc_net_check_host_by_sock to return FALSE if the
2316           IP/DNS could not be resolved.  Though, it returns the IP address
2317           now even if it could not resolve it (but returns also FALSE).
2318           Affected file lib/silcutil/silcnet.[ch].
2319
2320 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2321
2322         * Added silc_pkcs_decode_identifier to decode the public key's
2323           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
2324           Added also silc_pkcs_free_identifier.  Added also new context
2325           SilcPublicKeyIdentifier.
2326
2327         * Added -S option to the silc client.  It is used to dump the
2328           contents of the specified public key file.
2329
2330         * Changed the PKCS api to return the public key length when
2331           setting the public key.
2332
2333         * Fixed a fatal bug in the public and private key file loading.
2334           Affected file lib/silccrypt/silcpkcs.c.
2335
2336         * Execute the packet parsing for client with zero (0) timeout
2337           if the protocol is active.  Affected file silcd/server.c.
2338
2339 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2340
2341         * Made the key generation options to the silcd program.  Added
2342           -C option, equivalent to client's option.
2343
2344         * Added new [ServerKeys] config section to the server.  It
2345           configures the server's public and private key.
2346
2347         * Defined generic Public Key Payload into the protocol
2348           specification to send specific type of public keys and
2349           certificates.
2350
2351         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
2352           public key or certificate.
2353
2354         * Implemented the GETKEY command to the server and to the
2355           client library and on user interface.
2356
2357 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2358
2359         * Made preliminary `make install' work.
2360
2361 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2362
2363         * Added SilcServerRekey context into silcd/idlist.h.
2364
2365         * Added the PFS support as defined in the specification to the
2366           SKE protocol.  Affected files lib/silcske/*.c.
2367
2368         * Added `ske_group' field to the SilcServerRekey context to hold
2369           the number of the SKE group that is used with PFS in re-key.
2370           Affected file silcd/idlist.h.
2371
2372         * Added PFS re-key support to the server.  Affected file is
2373           silcd/protocol.c.
2374
2375         * Added silc_protocol_cancel to cancel execution of the next
2376           state of the protocol.  Affected file is
2377           lib/silccore/silcprotocol.[ch].
2378
2379         * Added the re-key support with and without PFS to the client
2380           library.  Re-key is performed once in an hour, by default.
2381
2382           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
2383           Added silc_client_rekey_callback and silc_client_rekey_final.
2384           Affected files are lib/silcclient/protocol.[ch] and
2385           lib/silcclient/client.[ch].
2386
2387         * Removed the `hmac_key' and `hmac_key_len' fields from the
2388           SilcClientConnection structure; not needed.  Affected file is
2389           lib/silcclient/client.h.
2390
2391         * Updated TODO.
2392
2393 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2394
2395         * Do not ask whether user wants to use the negotiated private key
2396           for private messages, just use it.  Affected file is 
2397           silc/local_command.c.
2398
2399         * Added `send_enc_key' and `enc_key_len' fields to the 
2400           SilcIDListData structure since they are needed in the re-key
2401           phase.  Affected file is silcd/idlist.[ch].
2402
2403         * Implemented the simple re-key protocol into the server.
2404           Affected files silcd/server.c and silcd/protocol.[ch].  The
2405           re-key will be performed once in an hour, by default.
2406
2407           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
2408           Added silc_server_rekey, silc_server_rekey_callback and
2409           silc_server_rekey_final.
2410
2411         * Removed Tunneled flag from the protocol.  Updated the code
2412           and the specifications.
2413
2414         * Adde `pfs' field to the SilcIDListData to indicate whether
2415           the PFS is to be performed in the re-key.  Affected file is
2416           silcd/idlist.h.
2417
2418 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2419
2420         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
2421           int64 of at least the xintXX size.  If void * is less that 4
2422           bytes uint32 * will be used.  Defined bool as boolean.
2423
2424         * Changed _ALL_ unsigned long and unsigned int to uint32, 
2425           unsgined short to uint16 in the source tree.
2426
2427         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
2428           not handle clients that has entry->data.registered == FALSE.
2429           They are not in the network anymore.  Affected file is
2430           silcd/server.c.
2431
2432 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2433
2434         * Implemented the sending of the SERVER_SIGNOFF notify in the
2435           server.  Affected file is silcd/server.c.
2436
2437         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
2438           Added also silc_notify_payload_encode_args into the
2439           lib/silccore/silcnotify.[ch].
2440
2441         * Implemented ther SERVER_SIGNOFF notify handling in the server.
2442           Affected file silcd/packet_receive.c.
2443
2444         * Implemented the SERVER_SIGNOFF notify handling in the client
2445           library.  Affected file lib/silcclient/client_notify.c.  Also,
2446           implemnted the printing of the SERVER_SIGNOFF info to the
2447           application.  Affected file silc/client_ops.c.
2448
2449         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
2450           if the deleting was successful.  Affected file silcd/idlist.[ch].
2451
2452         * Added support for public key authentication in the connection
2453           authentication protocol in the client library.  Affected file
2454           lib/silcclient/protocol.c.
2455
2456         * Changed the server's silc_idlist_get_clients_by_* interface
2457           to support already allocated array so that new entries may be
2458           added to pre-allocated array.  Affected file silcd/idlist.[ch].
2459           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
2460           and command replies.
2461
2462         * All command reply functions in the server now calls the 
2463           pending command callback even if error occured.  This way the
2464           error will be delivered to the client as well.  Affected files
2465           silcd/command.c and silcd/command_reply.c.
2466
2467         * Fixed INFO command to return local server's info if no server
2468           was provided.  Affected file lib/silcclient/command.c.
2469
2470         * Removed RESTART command for good.  Updated the code and the
2471           protocol specs.
2472
2473         * Rewrote parts of the task system.  It is a bit simpler now.
2474           Removed unsued task priorities. The affected files are
2475           lib/silcutil/silctask.[ch].
2476
2477 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2478
2479         * Moved the USERS printing from the library to the application.
2480           Affected files lib/silcclient/command.c and silc/client_ops.c.
2481
2482 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2483
2484         * Updated TODO.
2485
2486         * Added channel key re-key support.  The re-key is perfomed
2487           only by the router and is done once in an hour.  Added `rekey'
2488           field to the SilcChannelEntry in the server.  Affected files
2489           silcd/server.c and silcd/idlist.h.
2490
2491         * Added silc_task_unregister_by_context into the file
2492           lib/silcutil/silctask.[ch].
2493
2494 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2495
2496         * Added SILC_UMODE_GONE mode to indicate when the client is not
2497           present in the SILC network.  Added also support to the local
2498           command AWAY that will set this mode.  Added support of showing
2499           "xxx is gone" in WHOIS command.  The USERS command shows the
2500           gone status as well.
2501
2502         * Fixed setting server and router operator privileges in the
2503           server's UMODE command.  Affected file silcd/command.c.
2504
2505         * Merged the SKE KE1 and KE2 payloads into one payload.  The
2506           new KE payload is equivalent to the old KE2 payload.
2507
2508           Cleaned up the SKE Start Payload parsing.  It now uses the
2509           simple buffer unformatting to do the parsing.  A lot faster
2510           now.
2511
2512           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
2513           to the SKE that is used to indicate whether both of the SKE
2514           parties should perform authentication.  By default only the
2515           responder performs authentication.  By setting this flag also
2516           the initiator must do authentication.  By default it is unset
2517           since in normal SKE case, client to server connection, only
2518           the responder should do authentication.  When doing SKE between
2519           two clients both should perform authentication.  Updated the
2520           code and the protocol specs.
2521
2522         * A little fix to IDENTIFY command in the server.  Search the
2523           client first by hash not nickname.  Affected file is 
2524           silcd/command.c.
2525
2526         * Fixed the silc_client_close_connection to support closing
2527           the client to client connections wihtout deleting too much
2528           data.  Affected file lib/silcclient/client.c.
2529
2530         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
2531           are received if protocol used to be active but is not anymore
2532           the application would crash due to NULL pointer dereference.
2533           Affected files silcd/server.c and lib/silcclient/client.c.
2534
2535         * Added `hash' field to the SilcClientConnection to include
2536           the hash function negotiated in the SKE protocol.
2537
2538         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
2539           to set the channel founder authentication data.  A client can
2540           claim the founder rights later by providing the authentication
2541           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
2542           This way the channel founder can regain the channel founder
2543           privileges even it is left the channel.  This works only on
2544           local server and the client must be connected to the same
2545           server to be able to regain the founder rights.  Updated the
2546           protocol specs accordingly.
2547
2548           Added support to the CMODE command in the client to set the
2549           founder auth data.  Read the README to see how to set it.
2550
2551           Added support to the CUMODE command to claim the founder
2552           rights.  Read the README to see how to do it.
2553
2554           Added support for the founder authentication to the Channel
2555           Entry in the server.  Affected file silcd/idlist.h.
2556
2557           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
2558           server's CMODE command.  Affected file silcd/command.c.
2559
2560         * Added the following new functions into lib/silccore/silcauth.[ch]:
2561           silc_auth_get_method and silc_auth_get_data.    
2562
2563         * The server now saves the remote hosts public key to the
2564           SilcIDListData pointer.  Affected file silcd/protocol.c.
2565
2566         * The normal server now does not remove the channel entry from
2567           the cache if the founder authentication data is set.  It used
2568           to remove it if the founder was the last one on the channel on 
2569           the server and left the channel.  The auth data is saved and
2570           if the channel is re-joined later the old entry is used with
2571           the old auth data.  Affected files silcd/command_reply.c and
2572           silcd/server.c.
2573
2574         * Removed the `pkcs' field from the SilcIDListData structure
2575           in the server; it is not used.  Affected file silcd/idlist.h.
2576
2577 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2578
2579         * Fixed packet processing on slow links.  Partial packets were
2580           never re-processed because the incoming data buffer was cleared
2581           by the application.  Application must not directly clear the
2582           sock->inbuf, the packet processing routines handle it.  Fixed
2583           this in client library and in server.
2584
2585 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2586
2587         * Fixed the WHOIS and IDENTIFY send reply function to really
2588           check whether to send list or just one entry.  Affected file
2589           silcd/command.c.
2590
2591         * Cleaned up the LEAVE command's channel key distribution.  The
2592           affected file silcd/command.c.
2593
2594         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
2595           can enforce the channel mode as well.  In that case the ID
2596           includes the ID of the server.  The code now enforces the
2597           mode change if the router have different mode than the server.
2598
2599         * The notify client operation with CMODE_CHANGE notify can now
2600           return NULL client_entry pointer if the CMODE was not changed
2601           by client.  Application must check for this.
2602
2603         * Added <Server ID> argument to INFO command to support server
2604           info fetching by Server ID.
2605
2606         * Added silc_server_announce_get_channel_users to get assembled
2607           packets of channel users of the specified channel.  Affected
2608           file silcd/server.[ch].
2609
2610         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
2611           was freed underneath the ID Cache.
2612
2613         * Re-announce clients when the server received CHANNEL_CHANGE
2614           notify from the router.  Affected file silcd/packet_send.c.
2615
2616 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2617
2618         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
2619           crashed since it did not handle the fact that there is no cipher
2620           called "3" and didn't check the error condition.  Now fixed.
2621
2622         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
2623           flag.  It can be used to send message requests.
2624
2625 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2626
2627         * Implemented the RESTART command in the client.
2628
2629         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
2630           notice type messages.  Added notice printing to the user
2631           interface.
2632
2633         * The channel keys are not re-generated if the channel's mode
2634           is PRIVKEY, ie private key on the channel exists.  Affected
2635           files silcd/server.c and silcd/command.c.
2636
2637         * Fixed a little bug in channel message delivery when channel
2638           private keys are set in the server.  Affected file is
2639           silcd/packet_send.c.
2640
2641         * Changed the setting on channel->on_channel = TRUE from the
2642           silc_client_save_channel_key to the JOIN command reply.  The
2643           key payload is not received if the private channel key is set.
2644           Affected file lib/silcclient/command_reply.c and the
2645           lib/silcclient/client_channel.c.
2646
2647         * When the CMODE_CHANGE notify is sent and the channel private
2648           key mode is removed the channel key must be re-generated in
2649           other cells as well.  Added this support for the router in the
2650           silcd/packet_receive.c.
2651
2652         * Added new local command NOTICE to send notice message on
2653           channel.  Affected file silc/local_command.[ch].
2654
2655 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2656
2657         * Added new local command ME to the client.  It is used to send
2658           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
2659           some action.  Affected file silc/local_command.[ch].
2660
2661         * Changed channel_message and private_message client operations 
2662           to deliver the message flags to the application.  Added also
2663           the `flags' arguments to the silc_client_send_channel_message
2664           and silc_client_send_private_message functions.  Affected file
2665           silcapi.h.
2666
2667 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2668
2669         * Redefined the Private Message Payload to support private message
2670           keys and to support the new private message flags.  Updated
2671           the protocol specs.  Flags makes it possible to have for example
2672           CTCP style messages.
2673
2674         * Added new type SilcPrivateMessagePayload and defined an API
2675           for it in the lib/silcclient/silcprivate.[ch].
2676
2677         * Tested private message private keys successfully.  Tested the
2678           private message key set, unset and list commands with the new
2679           KEY command.
2680
2681         * Redefined the Channel Message Payload to include the channel
2682           message flags (equal with private message flags) to support
2683           for example CTCP style messages.
2684
2685         * Defined some of the message (for channel and private message)
2686           flags.  Updated the protocol specs and added the flags to the
2687           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
2688
2689 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2690
2691         * Added SilcKeyAgreementStatus type to the key agreement routines
2692           to indicate the current status and error if one occured.
2693           The status types are defined in the lib/silcclient/silcapi.h.
2694
2695         * Added new local command KEY that is used to set and unset private
2696           keys for channels, set and unset private keys for private messages
2697           with remote clients and to send key agreement requests and
2698           negotiate the key agreement protocol with remote client.  The
2699           key agreement is supported only to negotiate private message keys,
2700           it currently cannot be used to negotiate private keys for channels,
2701           as it is not convenient for that purpose.
2702
2703         * Fixed a minor pending callback setting bug in the function
2704           silc_client_get_client_by_id_resolve, now the function works.
2705           Affected file lib/silcclient/idlist.c.
2706
2707         * Added function silc_net_get_local_port to get local bound
2708           port by socket.  Added to lib/silcutil/silcnet.[ch].
2709
2710         * Added `sockets' and `sockets_count' fields to the SilcClient
2711           object.  They hold the sockets of the listenning sockets in
2712           the client.  Listenning sockets may be for example the key 
2713           agreement server.  Affected file lib/silcclient/client.[ch].
2714           Added functions the silc_client_add_socket and the
2715           silc_client_del_socket.  They are exported to the application
2716           as well.
2717
2718         * Added ~./silc/clientkeys to support other client's public keys.
2719
2720         * Renamed verify_server_key client operation to verify_public_key
2721           and added one argument to indicate the type of the connection
2722           (server, client etc.).
2723
2724 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2725
2726         * Added silc_server_connection_auth_request to handle the
2727           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
2728           silcd/packet_receive.[ch].
2729
2730         * Added silc_server_send_connection_auth_request into the
2731           silcd/packet_send.c to send the connection auth request packet.
2732
2733         * Cleaned up the silcd/protocol.c a bit and fixed some memory
2734           leaks.
2735
2736         * Fixed the public key authentication in responder side in the
2737           server.  The `auth_data' pointer includes the SilcPublicKey
2738           not the path to the public key.  Affected file silcd/protocol.c.
2739
2740         * Implemented the public key authentication in the initiator side
2741           in the server.  Affected file silcd/protocol.c.
2742
2743         * Removed the [RedirectClient] config section from the server
2744           configuration.  Is not needed and I don't want to implement it.
2745
2746 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2747
2748         * Cleaned up the CMODE command in the server.  It now works
2749           correctly and supports all the modes defined in the protocol.
2750           Affected file is silcd/command.c.
2751
2752         * Added `hmac_name' field to the SilcChannelEntry in the server
2753           to hold the default HMAC of the channel.  It can be set when
2754           creating the channel (with JOIN command).  Affected files
2755           silcd/idlist.[ch].
2756
2757         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
2758           type to indicate the change of the current cipher and hmac
2759           on the channel.  Client can safely ignore the <cipher> argument
2760           (if it chooses to do so) since the CHANNEL_KEY packet will 
2761           force the channel key change anyway.  The <hmac> argument is
2762           important since the client is responsible of setting the new
2763           HMAC and the hmac key into use.
2764
2765         * Fixed the CMODE command in the client library as well.
2766
2767         * Tested CMODE command in router environment successfully.
2768
2769 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2770
2771         * Show the version of the remote client (or server) when connecting
2772           to the server.  It is logged to the log file.  Affected file
2773           is silcd/protocol.c.
2774
2775         * Fixed the KILLED notify handling in the client library.  The
2776           client must be removed from all channels when receiving the
2777           KILLED notify.
2778
2779           Also, do not remove the client entry when giving the KILL 
2780           command but when the KILLED notify is received.
2781
2782         * Removed silc_idlist_find_client_by_nickname from the server.
2783           Not needed anymore.  Affected files silcd/idlist.[ch].
2784
2785         * Implemented the CHANNEL_CHANGE notify type handling to the
2786           server.  Affected file silcd/server.c.
2787
2788         * Updated TODO.
2789
2790 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2791
2792         * Added silc_server_send_notify_invite to send the INVITE
2793           notify between routers.
2794
2795         * Implemented the INVITE command correctly to the server.
2796
2797         * Implemented the INVITE notify type handling in the server.
2798
2799         * Implemented the INVITE command to the client library and on the
2800           user interface.
2801
2802 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2803
2804         * Added function silc_server_get_client_resolve to find the
2805           client entry by ID from all ID lists and then resolve it
2806           (using WHOIS) if it cannot be found.  Affected file is
2807           silcd/server.[ch].
2808
2809 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2810
2811         * Implemented the BAN command to the client library.
2812
2813         * The JOIN command in the server now checks the invite list
2814           and the ban list.
2815
2816         * Changed the silc_command_reply_payload_encode_va and the
2817           silc_command_payload_encode_va to support that if argument is
2818           NULL it ignores and checks the next argument.  Affected file
2819           lib/silccore/silccommand.c.
2820
2821         * Added silc_server_send_notify_ban to send the BAN notify
2822           type between routers.
2823
2824         * Chaned the silc_notify_payload_encode to support that if 
2825           argument is NULL it ignores and checks the next argument.
2826           Affected file lib/silccore/silcnotify.c.
2827
2828         * Tested ban lists in router environment successfully.
2829
2830 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2831
2832         * Implemented BAN command to the server, in silcd/command.[ch].
2833
2834         * Removed the BAN and INVITE_LIST modes from the CMODE command
2835           in the server code.
2836
2837         * Added function silc_string_match to regex match two strings.
2838           Affected files lib/silcutil/silcutil.[ch].
2839
2840 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2841
2842         * Redefined parts of the SilcChannelEntry in the server to support
2843           the new ban and invite lists.
2844
2845 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2846
2847         * Redefined the INVITE command.  The same command can be used to
2848           invite individuals to the channel but also to manage the invite
2849           list of the channel (to add to and remove from the invite list).
2850           Updated the protocol specs.
2851
2852         * Added new command SILC_COMMAND_BAN that can be used to manage
2853           the ban list of the channel.  Updated the protocol specs.
2854
2855         * Removed the channel modes: the SILC_CMODE_BAN and the 
2856           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
2857           in the CMODE command.  The equivalent features are now available
2858           using INVITE and BAN commands.  Updated the protocol specs.
2859
2860         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
2861           in the network about change in the current ban list.  The notify
2862           type is not used by the client.
2863
2864         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to 
2865           support the invite lists.
2866
2867 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2868
2869         * Added new function silc_string_regexify that converts string
2870           including wildcard characters into regex string that can
2871           be used by the GNU regex library.  Added into the file
2872           lib/silcutil/silcutil.[ch].
2873
2874           Added silc_string_regex_combine to combine to regex strings
2875           into one so that they can be used as one regex string by
2876           the GNU regex library.  Added into the file
2877           lib/silcutil/silcutil.[ch].
2878
2879           Added silc_string_regex_match to match two strings.  It returns
2880           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
2881
2882 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2883
2884         * Imported GNU regex to the soruce tree into lib/contrib.
2885           Fixed some compiler warning from the regex.c.
2886
2887 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2888
2889         * Fixed MOTD command in the server to work in router environment.
2890
2891         * Fixed the MOTD command in the client library to support
2892           the server argument in the command.
2893
2894         * Added `nickname_len' argument to the silc_idlist_add_client
2895           in the server, as the `nickname' argument may be binary data
2896           (it may be hash).
2897
2898         * Added silc_idlist_get_channels to return all channels from
2899           the ID list.
2900
2901         * Implemented LIST command to the server.  Affected file is
2902           silcd/command.c.
2903
2904         * Implemented the LIST command to the client library and on the
2905           user interface.
2906
2907         * Added [<user count>] argument to the LIST command reply.
2908           With private channels the user count is not shown.
2909
2910         * Updated TODO and README.
2911
2912 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2913
2914         * The client entry's data.registered must be TRUE even with
2915           global client entry on global client list.  The data.registered
2916           is used to check whether the client is anymore in the network,
2917           for example with WHOWAS command so it must be valid.
2918
2919         * Fixed the WHOWAS command in the server.  It now actually works
2920           in router environment.  Added function into silcd/command_reply.c
2921           silc_server_command_reply_whowas_save.
2922
2923         * Added silc_idlist_purge function to the silcd/idlist.c
2924           to periodically purge the ID Cache.
2925
2926         * Fixed INFO command in the server.  It works now in router
2927           environment.  Added <server name> argument to the INFO command
2928           reply.  Updated the protocol specs.
2929
2930         * Fixed minor bug in silc_idcache_purge to not purge if the
2931           expire value is zero.
2932
2933         * Fixed various bugs in WHOIS and IDENTIFY command handling as
2934           they were buggy because of the WHOWAS information.
2935
2936         * Fixed local command MSG to handle the async resolving of 
2937           the remote client properly.  It used to fail the first MSG.
2938           Affected file silc/local_command.c.
2939
2940         * Added `data_len' field to SilcIDCache context.
2941
2942 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2943
2944         * Update TODO.  Todo in commands in the server.
2945
2946 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2947
2948         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
2949           used by routers as broadcast packet to inform other routers
2950           about the changed user mode.
2951
2952           Implemented the notify handling in the server.  Affected file is
2953           silcd/packet_receive.c.  Added the function 
2954           silc_server_send_notify_umode to the silcd/packet_send.[ch].
2955
2956         * Added new generic Channel Payload and deprecated the New Channel
2957           Payload.  The New Channel Payload is now the generic Channel
2958           Payload.
2959
2960         * Added new argument `mode' to the silc_server_send_new_channel
2961           as it is required in the Channel Payload now.
2962
2963         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
2964           and created a new and real SilChannelPayload to represent the
2965           new generic Channel Payload.  Implemented the encode/decode
2966           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
2967
2968         * Added silc_server_get_client_channel_list to return the list
2969           of channels the client has joined for WHOIS command reply.
2970           Affected file silcd/server.[ch].
2971
2972         * Implemented the channel list sending in the WHOIS command reply
2973           in server and in the client.
2974
2975           Implemented the channel list displaying on the user interface
2976           as well.  Affected file silc/client_ops.c.
2977
2978         * Added silc_channel_payload_parse_list to parse list of Channel
2979           Payloads.  It returns SilcDList list of SilcChannelPayloads.
2980           Client for example can use this function to parse the list of
2981           channels it receives in the WHOIS command reply.  The caller
2982           must free the list by calling silc_channel_payload_list_free.
2983           Affected files lib/silccore/silcchannel.[ch].
2984
2985 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2986
2987         * Added one new argument <user mode> to the WHOIS command reply
2988           to return the mode of the user in SILC.  Updated the protocol
2989           specs.
2990
2991           Implemented it to the server and client.
2992
2993 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2994
2995         * Fixed the mode printing on the user interface on joining.
2996           Affected file silc/client_ops.c.
2997
2998         * Implemented the UMODE command and user modes in general to the
2999           client library and to the user interface.
3000
3001         * Implemented the UMODE command to the server.
3002
3003         * The server now sends UNKNOWN_COMMAND error status if client sends
3004           unknown command.  Affected file silcd/command.c.
3005
3006         * All server commands now handle the command identifier the right
3007           way when sending the command reply to the client.  The client can
3008           use to identify the command replies with the identifier.
3009
3010 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3011
3012         * Added silc_server_get_client_route to resolve the route to
3013           the client indicated by the client ID.  Affected file is
3014           silcd/server.[ch].
3015
3016         * Added silc_server_relay_packet as general function to relay
3017           packet to arbitrary destination.  This deprecates functions
3018           like _send_private_message_key, _relay_notify etc.  Affected
3019           file is silcd/packet_send.[ch].
3020
3021           Removed silc_server_send_key_agreement, 
3022           silc_server_send_private_message_key and
3023           silc_server_packet_relay_notify functions from the file
3024           silcd/packet_send.[ch].
3025
3026         * Updated TODO.
3027
3028         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
3029           server.  Affected file silcd/packet_receive.[ch].
3030
3031         * Implemented the KILL command to the client.  Implemented the
3032           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
3033           Affected files lib/silcclient/command[_reply].c and
3034           lib/silcclient/client_notify.c.  Implemented the KILL notify
3035           printing in the user inteface.
3036
3037         * Fixed a lot silc_parse_nick memory leaks from the client
3038           library in the file lib/silcclient/command.c.
3039
3040         * Changed the silc_server_send_notify_on_channels's `sender'
3041           argument from SilcSocketConnection to SilcClientEntry to 
3042           check the sender as entry and not as connection object and not
3043           to send to the client provided as argument.  The affected file
3044           is silcd/packet_send.[ch].
3045
3046         * The notify packets that are destined directly to the client used
3047           to not to be processed by the server.  Now changed that and the
3048           server processes all notify packets.  After relaying the packet
3049           to the client the notify packet is processed in the server.
3050
3051         * The silc_server_free_client_data now checks whether there is
3052           pending outgoing traffic for the client and purges the data to
3053           the network before removing the client entry.
3054
3055 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3056
3057         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
3058           an client is killed from the SILC Network.  Updated the protocol
3059           specs accordingly.
3060
3061           Added new function silc_server_send_notify_killed to the
3062           silcd/packet_send.[ch].
3063
3064         * Added function silc_server_packet_relay_notify to relay notify
3065           packets that are destined directly to a client.  In this case
3066           the server does not process the notify packets but merely relays
3067           it to the client.  Affected file silcd/packet_send.[ch].
3068
3069           Added also silc_server_packet_process_relay_notify to check
3070           whereto relay the notify.  Affected file is 
3071           silcd/packet_receive.[ch].
3072
3073         * Implemented the KILL command to the server.
3074
3075         * Updated TODO.
3076
3077         * Added the backup schema desgined last fall to the protocol
3078           specs for everyone to see.  The specification is in the
3079           *-spec-xx.txt draft and the packet type definitions for the
3080           backup routers is in *-pp-xx.txt draft.  Thusly, added also
3081           new packet type SILC_PACKET_CELL_ROUTERS.
3082
3083         * A big security problem in the implementation discovered.  The
3084           signoff of an client did not cause new channel key generation
3085           which it of course should've done.  The channel keys must be
3086           always re-generated when client leaves (or signoffs) the channel.
3087           The silc_server_remove_from_channels funtion now handles
3088           the channel key re-generation.
3089
3090         * Added `sender' argument to the silc_server_send_notify_on_channels
3091           to not to send the client provided as argument.  Affected file
3092           silcd/packet_send.[ch].
3093
3094 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3095
3096         * Implemented OPER and SILCOPER commands into the server and
3097           the client library.
3098
3099         * Added silc_auth_verify and silc_auth_verify_data to verify
3100           the authentication directly from the authentication payload.
3101           It supports verifying both passphrase and public key based
3102           authentication.  Affected file lib/silccore/silcauth.[ch].
3103
3104         * Added `hash' field to the SilcIDListData structure.  It is the
3105           hash negotiated in the SKE protocol.  Affected file is
3106           silcd/idlist.[ch].
3107
3108         * Slight redesigning of the SilcAuthPayload handling routines.
3109           Do not send SilcPKCS but SilcPublicKey as argument.
3110
3111         * Implemented the public key authentication support to the
3112           serverconfig.  The public key is loaded from the provided path
3113           and saved as authentication data to void * pointer.  Thus,
3114           changed the unsigned char *auth_data to void *auth_data;
3115
3116         * Fixed SHUTDOWN command to send the reply before the server
3117           is shutdown. :)  Affected file silcd/command.c.
3118
3119         * Fixed fatal bug in CONNECT command.  The hostname was invalid
3120           memory and server crashed.  Affected file silcd/command.c.
3121
3122         * Fixed fatal bug in CLOSE command.  The server_entry became
3123           invalid but was referenced later in the command.  Affected file
3124           silcd/command.c.
3125
3126 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3127
3128         * Fixed fatal bug in failure packet handling.  Server ignored
3129           the failure and thus crashed when it came.
3130
3131         * Updated TODO.
3132
3133 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3134
3135         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
3136           that the command may be executed only once in (about) 2 seconds.
3137           The old SILC_CF_LAG flag is same but allows command bursts up
3138           to five before limiting.
3139
3140           Added the support for CF_LAG and CF_LAG_STRICT flags to the
3141           server code.  Various commands now includes the CF_LAG_STRICT
3142           flag to disallow any kind of miss-use of the command.
3143
3144         * Fixed the silc_buffer_unformat to not to allocate any data
3145           if the length of the data is zero.  It used to allocate the
3146           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
3147
3148 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3149
3150         * Changed the format of AdminConnection configuration section
3151           in the server.  Added username of the admin to the format.
3152           Affected files silcd/serverconfig.[ch].
3153
3154           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
3155           to return admin configuration data by host, username and/or
3156           nickname.
3157
3158 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3159
3160         * Implemented WHOWAS command to the server.  Added the functions:
3161
3162           silc_server_command_whowas_parse,
3163           silc_server_command_whowas_send_reply,
3164           silc_server_command_whowas_from_client and
3165           silc_server_command_whowas_from_server
3166
3167         * Added <Client ID> argument to the WHOWAS command reply.  Updated
3168           the protocol specs accordingly.
3169
3170         * Implemented WHOWAS command and command_reply to the client
3171           library.
3172
3173           Implemented the WHOWAS printing on the user interface.
3174
3175 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3176
3177         * Added new argument to the WHOWAS command reply, the real name.
3178           It is an optional argument.  Updated the protocol specs.
3179
3180         * Added SilcIDCacheDestructor callback that is registered when
3181           the SilcIDCache is allocated.  The callback is called when
3182           an cache entry in the ID Cache expires, or is purged from the
3183           cache.  Added into lib/silccore/idcache.[ch].
3184
3185           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
3186           to destruct the client entries when the cache entry expires.
3187           Other ID Cache's in server and in the client library ignores
3188           the destructor.
3189
3190         * If the ID Cache entry's `expire' field is zero then the entry
3191           never expires.  Added boolean `expire' argument to the
3192           silc_idcache_add function in the lib/silccore/idcache.[ch].
3193           If it is TRUE the default expiry value is used.
3194
3195         * Added silc_server_free_client_data_timeout that is registered
3196           when client disconnects.  By default for 5 minutes we preserve
3197           the client entry for history - for WHOWAS command.
3198
3199 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3200
3201         * Added support to the server to enforce that commands are not
3202           executed more than once in 2 seconds.  If server receives 
3203           commands from client more frequently, timeout is registered
3204           to process the commands.  Affected file silcd/command.c.
3205           Added new function silc_server_command_process_timeout.
3206
3207         * Changed NICK_NOTIFY handling in client library to check that
3208           if the client's nickname was changed, so there is no need to
3209           resolve anything from the server.
3210
3211         * Removed error printing from the WHOIS and IDENTIFY commands.
3212           If error occurs then it is ignored silently in the client library.
3213           The application, however, may map the received error to 
3214           human readable error string.  The application currently maps
3215           the NO_SUCH_NICKNAME error to string.
3216
3217         * Made the command status message public to the application.  Moved
3218           them from lib/silcclient/command_reply.c to 
3219           lib/silcclient/command_reply.h.  The application can map the
3220           received command status to the string with the
3221           silc_client_command_status_message function.
3222
3223         * Added check to the server to check that client's ID is same
3224           as the Source ID in the packet the client sent.  They must
3225           match.
3226
3227 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3228
3229         * Added dist-bzip hook to the Makefile.am to make bzip2
3230           compressed distributions.
3231
3232 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3233
3234         * Server now enforces the maximum length for the nickname and
3235           the channel as protocol specification dictates.  128 bytes for
3236           nickname and 256 bytes for channel name.
3237
3238         * Moved the WHOIS printing to the application.  The client libary
3239           does not print out the WHOIS information anymore, the application
3240           must do it.  Renamed silc_client_command_reply_whois_print to
3241           the silc_client_command_reply_whois_save.
3242
3243           The client's idle time is also sent to the application now, and
3244           the idle is shown on screen.
3245
3246         * Added silc_client_command_reply_identify_save to save the
3247           received IDENTIFY entries.
3248
3249         * Do not check for channel private keys in message sending and
3250           reception if the channel does not have the PRIVKEY mode set.
3251           Affected file lib/silclient/client_channel.c.
3252
3253 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3254
3255         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
3256           just surfaced after chaning the JOIN procedure.
3257
3258 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3259
3260         * Added silc_client_get_clients_by_list to get client entries
3261           from Client ID list, that is returned for example by JOIN
3262           and USERS command replies.  The application should use this
3263           function for example when JOIN command reply is received to
3264           resolve the clients already on the channel (library does not
3265           do that anymore as USERS command reply is not used in the JOIN
3266           procedure anymore).  Affected files lib/silcclient/silcapi.h and
3267           lib/silcclient/idlist.c.
3268
3269         * JOIN command reply and USERS command reply returns now SilcBuffer
3270           pointers instead of unsigned char pointers when returning
3271           the client list and mode list.
3272
3273         * Added <Client ID> argument to the JOIN command reply, mainly
3274           for the server to identify for which client the command was
3275           originally sent.  Updated protocol specs accordingly.
3276
3277         * Added SilcDlist private_key pointer to the SilcChannelEntry
3278           in the client to support the channel private keys.  Affected
3279           file is lib/silcclient/idlist.h.
3280
3281         * Added SilcChannelPrivateKey argument to the function
3282           silc_client_send_channel_message so that application can choose
3283           to use specific private ke if it wants to.  If it is not provided,
3284           the normal channel key is used, unless private keys are set. 
3285           In this case the first (key that was added first) is used 
3286           as the encryption key.
3287
3288         * Implemented the support for channel private key handling.
3289           Implemented the following functions:
3290
3291           silc_client_add_channel_private_key,
3292           silc_client_del_channel_private_keys,
3293           silc_client_del_channel_private_key,
3294           silc_client_list_channel_private_keys and
3295           silc_client_free_channel_private_keys
3296
3297           Affected file lib/silcclient/client_channel.c.
3298
3299         * Added the support for the private keys in the channel message
3300           sending and encryption and in the message reception and
3301           decryption.  Affected funtions are
3302           silc_client_send_channel_message and silc_client_channel_message.
3303
3304 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3305
3306         * Added SKE's key verify callback to the client library's
3307           KE protocol context. Affected files lib/silcclient/protocol.[ch].
3308
3309         * Removed the statement that server (or router) must send USERS
3310           command reply when joining to the channel so that the client
3311           knows who are on the channel.  Instead, the client list and 
3312           client's mode list is now sent in the JOIN command reply to the
3313           client who joined channel.  This is better solution.
3314
3315         * Added function silc_server_get_users_on_channel and function
3316           silc_server_save_users_on_channel to the silcd/server.[ch].
3317
3318         * Removed function silc_server_command_send_users from the
3319           silcd/command.c.
3320
3321         * Do not show topic on the client library anymore.  The topic is
3322           sent in the command reply notify to the application and the
3323           application must show the topic now.
3324
3325 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3326
3327         * Added client searching by nickname hash into the IDENTIFY and
3328           WHOIS commands in the server as they were clearly missing from
3329           them.  Affected file is silcd/command.c.
3330
3331         * Fixed a bug in private message receiving in the client library.
3332           The remote ID was freed and it wasn't supposed, now it is
3333           duplicated.
3334
3335 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3336
3337         * Minor fix to the channel payload; allocate the data area, as it
3338           needs to be of specific length.
3339
3340         * If the key agreement port is zero then the operating
3341           system will define the bound port.  Affected files are
3342           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
3343
3344         * Added new function silc_channel_payload_decrypt into the file
3345           lib/silccore/silcchannel.[ch].
3346
3347         * Moved the channel message etc, check from silc_packet_decrypt
3348           to applications.  The library calls now a generic 
3349           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
3350           when the packet is either normal or special.  This was done to
3351           allow more wide range of checking that was not allowed when
3352           the code was in library.  Now applications can do virtually any
3353           checks to the packet and return to the library the decision how
3354           the packet should be processed.  Affected files are
3355           lib/silccore/silcpacket.[ch].
3356
3357           Added silc_server_packet_decrypt_check to the server and
3358           silc_client_packet_decrypt_check to the client library.
3359
3360         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
3361           to send with specified source and destination information.
3362
3363         * Channel message delivery between routers was broken after the
3364           channel key distribution was fixed earlier.  The channel key
3365           was used be to distributed to other routers as well which is not
3366           allowed by the protocol.  Now this is fixed and channel keys
3367           really are cell specific and the channel message delivery between
3368           routers comply with the protocol specification.
3369
3370         * Fixed various commands in server to check also the global list
3371           for the channel entry and not just the local list.  The affected
3372           file silcd/command.c.
3373
3374 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3375
3376         * Added assert()s to buffer formatting and unformatting routines
3377           to assert (if --enable-debug) when error occurs.  Affected
3378           file: lib/silcutil/silcbuffmt.c.
3379
3380         * Changed to auto-reconnect to check whether the remote host is
3381           router and register the re-connect timeout if it is.  It used 
3382           to check that whether we are normal server, but router must do
3383           auto-reconnect with another router as well.  Affected file
3384           silcd/server.c.
3385
3386         * Removed the [<key len>] option from CMODE command as the cipher
3387           name decides the key length, nowadays.  See the defined ciphers
3388           from the protocol specification.
3389
3390         * Added [<hmac>] option to the CMODE command to define the HMAC
3391           for the channel.  Added SILC_CMODE_HMAC channel mode.
3392
3393         * Added [<hmac>] option for the JOIN command so that user can
3394           select which HMAC is used to compute the MACs of the channel
3395           messages.
3396
3397         * Added Hmac field to the Channel Message Payload.  The integrity
3398           of plaintext channel messages are now protected by computing
3399           MAC of the message and attaching the MAC to the payload.  The
3400           MAC is encrypted.  Now, it is clear that this causes some
3401           overhead to the size of the packet but rationale for this is that
3402           now the receiver can verify whether the channel message decrypted
3403           correctly and also when private keys are set for the channel the
3404           receiver can decrypt the packet with several keys and check from
3405           the MAC which key decrypted the message correctly.
3406
3407         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
3408           lib/silccrypt/silccipher.[ch].
3409
3410         * Added silc_hash_len to return the digest length into the
3411           lib/silcrypt/silchash.[ch].
3412
3413         * Rewrote parts of Silc Channel Payload interface in the
3414           lib/silccore/silcchannel.[ch].  The encode function now also
3415           encrypts the packet and parse function decrypts it.
3416
3417 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3418
3419         * Fixed a minor formatting bug in the SKE's key material processing.
3420           It actually might have processed the keys wrong way resulting
3421           into wrong keys.
3422
3423         * Redefined the mandatory HMAC algorithms and added new algorithms.
3424           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
3425           and hmac-md5 truncated to 96 bits.  The mandatory is now 
3426           hmac-sha1-96.  Rest are optional (including the one that used
3427           to be mandatory).  Rationale for this is that the truncated HMAC
3428           length is sufficient from security point of view and can actually
3429           make the attack against the HMAC harder.  Also, the truncated
3430           HMAC causes less overhead to the packets.  See the RFC2104 for
3431           more information.
3432
3433         * Added new [hmac] configuration section.  The SKE used to use
3434           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
3435           is of course wrong.  The official names that must be proposed in
3436           the SKE are the ones defined in the protocol specification
3437           (hmac-sha1-96 for example).  The user can configure any hmac
3438           using any hash function configured in the [hash] section.  At
3439           least, the mandatory must be configured.
3440
3441           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
3442
3443         * Added HMAC list to the SKE proposal list.  It has now both
3444           hash algorithm list and HMAC list.  This makes the protocol
3445           incompatible with previous versions.  The SKE now seems to work
3446           the way it is supposed to work, for the first time actually.
3447
3448         * Defined plain Hash algorithms to the protocol specification.
3449           Added sha1 and md5.
3450
3451 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3452
3453         * Implemented support for key agreement packets into the server.
3454           Added functions silc_server_key_agreement and
3455           silc_server_send_key_agreement.  Other than these functions,
3456           server has nothing to do with this packet.
3457
3458         * Added support for private message key packets into the server.
3459           Added functions silc_server_private_message_key and
3460           silc_server_send_private_message_key.
3461
3462         * Updated TODO.
3463
3464         * Changed the silc_[client|server]_protocol_ke_set_keys to be
3465           called in the protocol's final callback instead in the END
3466           protocol state.  This makes a little more sense and in the same
3467           time in client we can use the same protocol routines for normal
3468           key exchange and to key agreement packet handling as well.
3469
3470         * Added to both client's and server's KE protocol context the
3471           SilcSKEKeyMaterial pointer to save the key material.  We will
3472           bring the key material to the protocol's final callback by doing
3473           this.  The final callback must free the key material.
3474
3475         * Added SKE's packet_send callback into client's KE protocol
3476           context so that the caller can choose what packet sending function
3477           is used.  This way we can use different packet sending when
3478           doing normal SKE when doing key agreement packet handling (in
3479           the key agreement packet handling we do not want to encrypt
3480           the packets).
3481
3482         * Implemented the responder side of the key agreement routines
3483           in the client.  The client can now bind to specified port and
3484           accept incoming key negotiation.  The key material is passed
3485           to the application after the protocol is over.
3486
3487         * Implemented the processing of incoming Key Agreement packet
3488           in the client.  Added function silc_client_key_agreement to
3489           process the packet.
3490
3491         * Implemented the intiator side of the key agreement routines
3492           in the client.  The client can now initiate key agreement with
3493           another remote client.  The key material is passed to the
3494           application after the protocol is over.
3495
3496         * Created client_keyagr.c to include all the key agreement 
3497           routines.
3498
3499         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
3500           SILC_TASK_CALLBACK except that it is not static.
3501
3502         * Created client_notify.c and moved the Notify packet handling
3503           from the client.[ch] into that file.
3504
3505         * Created client_prvmsg.c and moved all private message and
3506           private message key routines from the client.[ch] into that file.
3507
3508         * Create client_channel.c and moved all channel message and
3509           channel private key routines from the client.[ch] into that file.
3510
3511         * Changed silc_client_get_client_by_id_resolve to resolve with
3512           WHOIS command instead of IDENTIFY command, in the file
3513           lib/silclient/idlist.c.
3514
3515 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3516
3517         * Implemented the SKE's responder side to the Client library.
3518
3519         * When FAILURE is received to the protocol do not trust it
3520           blindly.  Register a timeout to wait whether the remote closes
3521           the connection as it should do it, only after that process the
3522           actual failure.  This was changed to both client and server.
3523
3524         * Added client_internal.h to include some of the structures
3525           there instead of client.h in lib/silcclient/.
3526
3527         * Added function silc_task_unregister_by_callback to unregister
3528           timeouts by the callback function.
3529
3530 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3531
3532         * Some "Incomplete WHOIS info" errors has been appearing on the
3533           log files.  Took away the entry->userinfo check from WHOIS
3534           reply sending.  The entry->userinfo is now " " if client did not
3535           provide one.  I thought this was fixed earlier but something
3536           is wrong still.  Let's see if the error still appears.
3537
3538 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3539
3540         * Fixed a minor bug in the login when the channel key is
3541           re-generated in the server.  It used to generate the key in
3542           wrong order and thus caused problems in the channel traffic.
3543
3544         * Fixed a minor bug in channel key distsribution after
3545           KICK command.  The key was not sent to the router even though
3546           it should've been.
3547
3548 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3549
3550         * Added silc_ske_process_key_material_data as generic routine
3551           to process any key material as the SILC protocol dictates.  The
3552           function is used by the actual SKE library but can be used by
3553           applications as well.  This relates to the private message keys
3554           and the channel private keys since they must be processed the
3555           same way the normal SILC session keys.  The protocol dictates
3556           this.  Affected files: lib/silcske/silcske.[ch].
3557
3558           Added also silc_ske_free_key_material to free the
3559           SilcSKEKeyMaterial structure.
3560
3561         * Defined silc_cipher_set_key function to set the key for
3562           cipher without using the object's method function.  The affected
3563           files: lib/silccrypt/silccipher.[ch].
3564
3565         * Implemented silc silc_client_add_private_message_key,
3566           silc_client_add_private_message_key_ske, 
3567           silc_client_del_private_message_key,
3568           silc_client_list_private_message_keys and
3569           silc_client_free_private_message_keys functions in the
3570           client library.
3571
3572           Added functions silc_client_send_private_message_key to send
3573           the Private Message Key payload and silc_client_private_message_key
3574           to handle incoming Private Message Key payload.
3575
3576         * Added Cipher field to the Private Message Key payload to set
3577           the cipher to be used.  If ignored, the default cipher defined
3578           in the SILC protocol (aes-256-cbc) is used.
3579
3580 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3581
3582         * Removed lib/silcclient/ops.h file.
3583
3584           Redefined parts of the SILC Client Library API. Created new
3585           file silcapi.h that deprecates the ops.h file and defines the
3586           published Client Library API.  Defined also private message key
3587           API and channel private key API into the file.
3588
3589           This is the file that the application must include from the
3590           SILC Client Library.  Other files need not be included by
3591           the application anymore.
3592
3593         * Added new key_agreement client operation callback and also
3594           defined the Key Agreement library API for the application.
3595
3596 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3597
3598         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
3599           is used by clients to request key negotiation  between another
3600           client in the SILC network.  If the negotiation is started it
3601           is performed using the SKE protocol.  The result of the
3602           negotiation, the secret key material, can be used for example
3603           as private message key.
3604
3605           Implemented the Key Agreement payload into the files
3606           lib/silccore/silauth.[ch].
3607
3608 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3609
3610         * Redefined ciphers for the SILC protocol.  Added some new ciphers
3611           and defined the key lengths for the algorithms.  Changed the
3612           code accordingly.  The default key length is now 256 bits.
3613
3614         * Fixed SKE key distribution function silc_ske_process_key_material
3615           when the key length is more than 128 bits.  The default key 
3616           length in SILC is now 256 bits.
3617
3618         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
3619           to indicate unsupported algorithm.
3620
3621         * Renamed rijndael.c to aes.c and all functions as well.
3622
3623         * Fixed a long standing channel key setting bug in client library.
3624           Weird that it has never surfaced before.
3625
3626         * Fixed bug in channel deletion.  If the entire channel is removed
3627           then it must also delete the references of the channel entry
3628           from the client's channel list as the client's channel entry and
3629           the channel's client entry share same memory.
3630
3631 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3632
3633         * Implemented CONNECT and SHUTDOWN commands in the client.
3634
3635         * Implemented CLOSE command to the client.
3636
3637         * Added the function silc_idlist_find_server_by_name into the
3638           files silcd/idlist.[ch].
3639
3640           Added the function silc_idlist_find_server_by_conn into the
3641           files silcd/idlist.[ch].
3642
3643 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3644
3645         * DIE command was renamed to SHUTDOWN.  Updated the both code
3646           and protocol specs.
3647
3648         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
3649           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
3650
3651         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
3652           side.
3653
3654         * Added function silc_server_create_connection function to create
3655           connection to remote router.  My server implementation actually
3656           does not allow router to connect to normal server (it expects
3657           that normal server always initiates the connection to the router)
3658           so the CONNECT command is only good for connecting to another
3659           router.
3660
3661 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3662
3663         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
3664           or some other client was kicked from the channel.
3665
3666           Implemented the handling of the notify type to both client
3667           and server.
3668
3669           Implemented silc_server_send_notify_kicked to send the KICKED
3670           notify.  It is used to send it to the server's primary router.
3671
3672         * Implemented the KICK command into server and client.
3673
3674         * Added `query' argument to the silc_idlist_get_client function
3675           to indicate whether to query the client from server or not if
3676           it was not found.
3677
3678         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
3679           to indicate that the client is not channel founder.
3680
3681         * Updated TODO.
3682
3683 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3684
3685         * Removed the rng context from SilcPacketContext structure and
3686           changed that the packet routine uses the Global RNG API.
3687
3688 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3689
3690         * Added support for quit message that client can "leave" on the
3691           channel when it quits the SILC.  It is ditributed inside the
3692           SILC_NOTIFY_TYPE_SIGNOFF notify type.
3693
3694           Added silc_server_free_client_data that will take the
3695           signoff message as argument.
3696
3697         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
3698
3699 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3700
3701         * Updated parts of the protocol specification to keep it up
3702           to date.
3703
3704 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3705
3706         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
3707           payloads in one packet.
3708
3709         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
3710           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
3711           use now the new List flag.
3712
3713         * Also deprecated the following packet types: REPLACE_ID,
3714           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
3715          
3716         * Added list support for Notify packet in server.
3717
3718         * Added silc_server_send_notify_channel_change to send the
3719           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
3720           the silc_server_send_replace_id.
3721
3722         * Added silc_server_send_notify_nick_change to send the
3723           NICK_CHANGE notify type.  Deprecates the function
3724           silc_server_send_replace_id.
3725
3726         * Added silc_server_send_notify_join to send the JOIN notify type.
3727           Deprecates the function silc_server_send_new_channel_user.
3728
3729         * Added silc_server_send_notify_leave to send LEAVE notify type.
3730           Deprecates the function silc_server_send_remove_channel_user.
3731
3732         * Added silc_server_send_notify_cmode and 
3733           silc_server_send_notify_cumode to send CMODE and CUMODE notify
3734           types.  Deprecates the silc_server_send_set_mode function.
3735
3736         * Added SERVER_SIGNOFF notify type to indicate that server has
3737           quit.  This means that all clients on the channel from that 
3738           server will drop.  This can be also used when netsplit happens.
3739
3740           Deprecated REMOVE_ID packet type since it is not needed anymore
3741           even from server.
3742
3743           Added silc_server_send_notify_server_signoff to send the
3744           SERVER_SIGNOFF notify type.  Deprecates the function
3745           silc_server_send_remove_id.
3746
3747           Added also silc_server_send_notify_signoff to send the
3748           SIGNOFF notify type.
3749
3750         * Employed the PKCS #1. It is the mandatory way to do RSA in the
3751           SILC protocol from this day on.  Changed the protocol 
3752           specification as well.
3753
3754         * Added silc_server_send_notify_topic_set to send TOPIC_SET
3755           notify type.  It is used between routers to notify about
3756           topic changes on a channel.
3757
3758         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
3759           ID data.
3760
3761         * Partly updated the protocol specification to comply with the
3762           changes now made.  It is still though a bit outdated.
3763
3764         * The JOIN notify type now takes one extra argument <Channel ID>.
3765           The packet used to be destined to the channel but now the
3766           JOIN type may be sent as list thus it is impossible to 
3767           destine it to any specific channel.  By adding this argument
3768           it is again possible.
3769
3770 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3771
3772         * Added CREDITS file.  The CHANGES and CREDITS file will appear
3773           in the distribution as well.
3774
3775 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3776
3777         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
3778           types in the server's silcd/packet_receive.c.
3779
3780         * Implemented CMODE and CUMODE to work in router environment.
3781
3782         * Fixed minor encoding and decoding buglet from the
3783           lib/silccore/silcmode.c.
3784
3785         * Fixed buffer overflow from lib/silcclient/command.c in USERS
3786           command parsing.
3787
3788 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
3789
3790         * Changed all SilcConfigServer* and silc_config_server* to
3791           SilcServerConfig* and silc_server_config*, respectively.
3792           Patch by Bostik.
3793
3794 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3795
3796         * Associated the ID (client or server ID) to the Authentication
3797           Payload to avoid any possibility of forging.  Updated the
3798           protocol specification and the code accordingly.
3799
3800 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3801
3802         * The RSA key length is now save to the RsaKey context in the
3803           key generation process in lib/silccrypt/rsa.c.  The key length
3804           is now used to figure out the maximum size of the block allowed
3805           to be encrypted/signed.
3806
3807         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
3808           is equivalent to the silc_mp_mp2bin but does not allocate any
3809           memory.
3810
3811         * Changed silc_mp_mp2bin API to take length argument.  If it is
3812           non-zero then the buffer is allocated that large.  If zero, then
3813           the size is approximated using silc_mp_sizeinbase, which however
3814           is not relieable.
3815
3816         * Created Global RNG API which is global RNG that application can
3817           initialize.  After initializing, any routine anywhere in the
3818           code (including library) can use RNG without allocating a new
3819           RNG object.  This was done to allow this sort of use of the 
3820           RNG in code that has no chance to allocate RNG object.  All
3821           applications currently allocate this and many routines in the
3822           library use this.  Affected file lib/silccrypt/silcrng.[ch].
3823
3824         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
3825           it to use the Global RNG API.
3826
3827         * Defined Authentication Payload into protocol specification that
3828           is used during SILC session to authenticate entities.  It is
3829           used for example by client to authenticate itself to the server
3830           to obtain server operator privileges.
3831
3832           Implemented this payload into the lib/silccore/silcauth.[ch].
3833           Implemented also routines for public key based authentication
3834           as the new protocol specification dictates.
3835
3836           Moved definitions of different authentication methods from
3837           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
3838
3839         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
3840           silc_pkcs_verify and silc_pkcs_sign_with_hash and
3841           silc_pkcs_verify_with_hash functions into the file 
3842           lib/silccrypt/silcpkcs.[ch].
3843
3844 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3845
3846         * The client entry's userinfo pointer must be always valid. 
3847           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
3848           will fail since it requires the userinfo.  Now, the userinfo
3849           is allocated as "" if actual userinfo does not exist.  Actually,
3850           it must exist and it is totally Ok to drop client connections
3851           that does not announce the userinfo.  However, we will make
3852           this workaround for now.
3853
3854         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
3855           to return the remote port by socket.
3856
3857 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3858
3859         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
3860           SILC_SERVER_PENDING_EXEC and added an new macro
3861           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
3862           data or when error occurs while processing the pending command.
3863
3864           Added new argument `destructor' into silc_server_command_pending
3865           and to the SilcServerCommandPending object.  This destructor is
3866           now called after calling the pending callback or if error occurs
3867           immediately.  If error occurs the actual pending callback won't
3868           be called at all - only the destructor.  The destructor may be
3869           NULL if destructor is not needed.
3870
3871           All this applies for client library code as well.  Similar
3872           changes were made there as well for the pending commands.
3873
3874           In the client, the application must now allocate the 
3875           SilcClientCommandContext with the silc_client_command_alloc
3876           function.
3877
3878         * Added reference counter to the SilcServerCommandContext.  Added
3879           function silc_server_command_alloc and silc_server_command_dup 
3880           functions.
3881
3882           Same type of functions added to the client library for the same
3883           purpose as well.
3884
3885         * Removed the cmd_ident from IDListData away since it is now 
3886           global for all connections.  It is the command identifier used
3887           in command sending and with pending commands.  The affected file
3888           is silcd/idlist.h.
3889
3890         * Added reference counter to the SilcSocketConnection objecet to
3891           indicate the usage count of the object.  The object won't be
3892           freed untill the reference counter hits zero.  Currently only
3893           server uses this, and client ignores it.  The client must be
3894           set to use this too later.  The affected files are
3895           lib/silccore/silcsockconn.[ch].  Added also the function
3896           silc_socket_dup to increase the reference counter.
3897
3898           This was mainly added because it is possible that the socket
3899           is removed underneath of pending command or other async
3900           operation.  Now it won't be free'd and proper DISCONNECTING
3901           flags, etc. can be set to avoid sending data to connection that
3902           is not valid anymore.
3903
3904         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
3905           the connection.  After that it sets SILC_SET_DISCONNECTED.
3906           It is, however, possible that the socket data is not still freed.
3907           The silc_server_packet_process now checks that data is not
3908           read or written to connection that is DISCONNECTED.  The socket
3909           get's freed when the reference counter hits zero.
3910
3911 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3912
3913         * Changed the client operation API: channel_message operation's
3914           `sender' is now the client entry of the sender, not the nickname
3915           and the `channel' is the channel entry, not the channel name.
3916
3917           In the private_message operation the `sender' is now also the
3918           client entry of the sender not the nickname.
3919
3920           Affected file is lib/silcclient/ops.h and all applications
3921           using the client operations.
3922
3923 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3924
3925         * Moved the calling of ops->connect() from connect_to_server_final
3926           into receive_new_id functin since that is the point when the
3927           client is actually allowed to send traffic to network.  The
3928           affected file is lib/silcclient/client.c.
3929
3930 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3931
3932         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
3933           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
3934           (if needs broadcasting) instead of broadcasting the packets one
3935           by one which would make a burst in the network traffic.
3936
3937         * Added `broadcast' argument to the functions in silcd/server.[ch]
3938           silc_server_create_new_channel[_with_id] to indicate whether
3939           to send New Channel packet to primary router.
3940
3941 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3942
3943         * Added new function into the silcd/server.[ch] files:
3944           silc_server_create_new_channel_with_id to create new channel with
3945           already existing Channel ID.
3946
3947         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
3948           lib/silccore/silcpacket.h.  This packet is used t send list of
3949           Set Mode payloads inside one packet.  Server uses this to set
3950           the modes for the channels and clients on those channels, that it
3951           announced to the router when it connected to it.  The protocol
3952           specification has been updated accordingly.
3953
3954         * The silc_server_new_channel did not handle the packet coming
3955           from normal server as it normally does not send that.  However,
3956           when it announces its channels it does send it.  Implemented
3957           the support for that.
3958
3959         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
3960           into the file lib/silccore/id.h.
3961
3962 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3963
3964         * Fixed memory leaks in the functions silc_idlist_del_client,
3965           silc_idlist_del_channel and silc_idlist_del_server in the file
3966           silcd/idlist.c.  All of those leaked like a sieve.
3967
3968         * Fixed some small memory leaks in the client's function
3969           silc_client_notify_by_server.
3970
3971         * Added functions into silcd/server.c: silc_server_announce_clients,
3972           silc_server_announce_channels and silc_server_announce_server.
3973           These functions are used by normal and router server to announce
3974           to its primary router about clients, channels and servers (when
3975           router) that we own.  This is done after we've connected to the
3976           router.
3977
3978           These functions effectively implements the following packet types:
3979           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
3980           and SILC_PACKET_NEW_ID_LIST.
3981
3982         * Added new functions into the silcd/packet_receive.[ch]:
3983           silc_server_new_id_list, silc_server_new_channel_list and
3984           silc_server_new_channel_user_list to handle the incoming 
3985           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
3986
3987         * Added support of changing Channel ID in the function
3988           silc_server_replace_id.  If the server that announces a channel
3989           to the router already exists in the router (with same name but
3990           with different Channel ID), router is responsible to send
3991           Replace ID packet to the server and force the server to change
3992           the Channel ID to the one router has.
3993
3994         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
3995           client that the Channel ID has been changed by the router.  The
3996           normal server sends this to the client.  Client must start using
3997           the new Channel ID as the channel's ID.
3998
3999           Implemented handling of this new type into lib/silcclient/client.c
4000           into the function silc_client_notify_by_server.
4001
4002         * Added new function silc_idlist_replace_channel_id into the files
4003           silcd/idlist.[ch] to replace the Channel ID.
4004
4005 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4006
4007         * Call silc_server_command_identify_check always when processing
4008           the IDENTIFY command in silcd/command.c
4009
4010 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4011
4012         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
4013           send keepalive packets.  The packet can be sent by clients, 
4014           servers and routers.
4015
4016           Added function silc_socket_set_heartbeat into the file
4017           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
4018           If not set, the heartbeat is not performed.  The actual 
4019           heartbeat is implemented in the low level socket connection
4020           library.  However, application is responsible of actually
4021           sending the packet.
4022
4023           Added silc_server_send_heartbeat to send the actual heartbeat
4024           packet into silcd/packet_send.[ch].  Server now performs
4025           keepalive with all connections.
4026
4027         * Added silc_task_get_first function into lib/silcutil/silctask.c
4028           to return the timeout task with shortest timeout.  There was a bug
4029           in task unregistration that caused problems.  TODO has been
4030           updated to include that task system must be rewritten.
4031
4032         * The client library will now resolve the client information when
4033           receiving JOIN notify from server for client that we know but
4034           have incomplete information.
4035
4036         * Rewrote parts of silc_server_remove_from_channels and
4037           silc_server_remove_from_one_channel as they did not remove the
4038           channel in some circumstances even though they should've.
4039
4040         * Encryption problem encountered in server:
4041
4042           The LEAVE command used to send the Channel Key packet to the
4043           router immediately after generating it.  However, the code
4044           had earlier sent Remove Channel user packet but not immediately,
4045           ie. it was put to queue.  The order of packets in the router
4046           was that Channel Key packet was first and Remove Channel User
4047           packet was second, even though they were encrypted in the
4048           reverse order.  For this reason, MAC check failed.  Now, this
4049           is fixed by not sending the Channel Key packet immediately but
4050           putting it to queue.  However, this is more fundamental problem:
4051           packets that are in queue should actually not be encrypted 
4052           because packets that are sent immediately gets encrypted
4053           actually with wrong IV (and thus MAC check fails).  So, packets
4054           that are in queue should be encrypted when they are sent to
4055           the wire and not when they put to the queue.
4056
4057           However, the problem is that the current system has not been
4058           designed to work that way.  Instead, the packet is encrypted
4059           as soon as possible and left to the queue.  The queue is then
4060           just purged into wire.  There won't be any fixes for this
4061           any time soon.  So, the current semantic for packet sending
4062           is as follows:
4063
4064           o If you send packet to remote host and do not force the send
4065           (the packet will be in queue) then all subsequent packets to the
4066           same remote host must also be put to the queue.  Only after the
4067           queue has been purged is it safe again to force the packet
4068           send immediately.
4069
4070           o If you send all packets immediately then it safe to send
4071           any of subsequent packets through the queue, however, after
4072           the first packet is put to queue then any subsequent packets
4073           must also be put to the queue.
4074
4075           Follow these rules and everything works fine.
4076
4077 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4078
4079         * Added new function silc_server_remove_clients_by_server to
4080           remove all client entries from ID list when the server connection
4081           is lost.  In this case it is also important to invalidate all
4082           client entires as they hold the invalid server entry.  This
4083           fixes fatal bug when server has lost connection and will reconnect
4084           again.
4085
4086 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4087
4088         * Made some sanity checks to silc_server_daemonise like to check
4089           whether the requested user and group actually exists.
4090
4091         * Added sanity check to SKE's silc_ske_responder_finish to check
4092           that the public and private key actually is valid. 
4093
4094         * Invalidate the client's nickname when receiving Replace ID
4095           packet and the Client ID is being replaced.  This means that the
4096           server will query the nickname if someone needs it (client)
4097           a bit later.
4098
4099         * Sort the ID Cache in client library when the ID Cache data
4100           has changed (needs sorting).
4101
4102         * Do not allow for SILC client to create several connections to
4103           several servers.  The client does not support windows right now
4104           and generating multiple connections causes weird behaviour.
4105
4106           Irssi-silc client does support windows and can handle several
4107           connections without problems, see: www.irssi.org and SILC plugin.
4108
4109         * Fixed some places where client was added to the IDList.  The
4110           rule of thumb is following (in order to get everything right):
4111           If the client is directly connected local client then the 
4112           `connection' argument must be set and `router' argument must be 
4113           NULL to silc_idlist_add_client function.  If the client is not
4114           directly connected client then the `router' argument must
4115           bet set and the `connection' argument must be NULL to the
4116           silc_idlist_add_client function.
4117
4118         * The funtion silc_server_packet_send_local_channel actually did
4119           not check whether the client was locally connected or not.  It
4120           does that now.  Fixed a bug related to LEAVE command.
4121
4122         * Fixed Remove Channel User payload parsing bug in server's
4123           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
4124
4125         * The server's silc_server_save_channel_key now checks also the
4126           global ID list for the channel as it might not be in the local
4127           list.  Fixed a bug related to LEAVE command.
4128
4129         * Is this the end of the [<unknown>] buglet that has been lurking
4130           around for a long time?  A little for loop fix in server's
4131           silc_server_command_whois_parse that is used by both IDENTIFY
4132           and WHOIS command.  At least, this was a clear bug and a cause
4133           of one type of [<unknown>] buglet.
4134
4135         * WHOIS and IDENTIFY commands call the function
4136           silc_server_command_[whois/identify]_check function even if
4137           we are not router server.
4138
4139 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4140
4141         * Added --with-gmp configuration option.  If set the GMP
4142           is always compiled in the SILC source tree.  If not set then
4143           it is checked whether the system has the GMP3 installed.  If
4144           it has then the GMP won't be compiled (the system's headers
4145           and library is used), if it doesn't have it then the GMP is
4146           compiled in the SILC source tree.
4147
4148 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4149
4150         * Changed RSA private exponent generation to what PKCS #1
4151           suggests.  We try to find the smallest possible d by doing
4152           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
4153           not security fix but optimization.
4154
4155 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4156
4157         * Added new config entry [Identity] to fork the server and run
4158           it as specific user and group.  A patch from Bostik.
4159
4160         * Imported Dotconf configuration library into lib/dotconf.
4161           This will be used to create the SILC configuration files later.
4162           It will appear in the distsribution after this commit.
4163
4164 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4165
4166         * A big code auditing weekend happening.  Auditing code for 
4167           obvious mistakes, bugs and errors.  Also, removing any code
4168           that is obsolete.
4169
4170           Removed files for being obsolete:
4171
4172           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
4173           inline in the file lib/silcutil/silcbuffer.h)
4174
4175           o lib/silcutil/silcbufutil.c (the header has inline versions)
4176
4177           Changed code to fix possible error conditions:
4178
4179           o The buffer formatting routines now check that the destination
4180           buffer really has enough space to add the data.  This applies for
4181           both buffer formatting and unformatting 
4182           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
4183           unformatting was changed to accomodate following rules: 
4184           XXX_*STRING_ALLOC will allocate space for the data into the pointer
4185           sent to the function while XXX_*STRING will not allocate or copy 
4186           the data into the buffer.  Instead it sets the pointer from the
4187           buffer into the pointer sent as argument (XXX_*STRING used to
4188           require that the pointer must be allocated already).  This change
4189           makes this whole thing a bit more consistent and more optimized
4190           (note that the data returned in the unformatting with XXX_*STRING
4191           must not be freed now).  The routines return now -1 on error.
4192
4193           o Tried to find all code that use buffer_format and buffer_unformat
4194           and added return value checking to prevent formatting and
4195           especially unformatting errors and possible subsequent fatal
4196           errors.
4197
4198           o Changed ske->x and ske->KEY to mallocated pointers in
4199           lib/silcske/silcske.h.  Fixed possible data and memory leak.
4200
4201           o Added return value checking to all *_parse* functions.  Fixed
4202           many memory leaks as well.
4203
4204           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
4205           so that buffer overflows would not happen.  All code now also
4206           checks the return value as it can fail.
4207
4208 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4209
4210         * Added reconnection support to server if the normal server looses
4211           its connection to the router (for example if router is rebooted).
4212           The server performs normal reconnection strategy implemented
4213           to the server.  Affected file silcd/server.c.
4214
4215 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4216
4217         * Added new packet type SILC_PACKET_SET_MODE that is used to
4218           distribute the information about changed modes (for clients,
4219           channels and clients channel modes) to all routers in the
4220           network.  Updated the protocol specification accordingly.
4221
4222           Added functions into silcd/packet_send.c and 
4223           silcd/packet_receive.c: silc_server_send_set_mode, 
4224           silc_server_set_mode.
4225
4226           Added new files silcmode.[ch] into lib/silccore that implements
4227           the encoding and decoding of Set Mode Payload.  Added new type
4228           SilcSetModePayload.  Moved the definitions of different modes
4229           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
4230
4231 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4232
4233         * Oops, a little mistake in server's connection authentication 
4234           protocol.  The protocol is not ended with FAILURE but with
4235           SUCCESS if the authentication is Ok. :)  Affected file is
4236           silcd/protocol.c.
4237
4238         * Implemented NICK_CHANGE notify handling in server in the file
4239           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
4240           the local clients on the channel.  After the changing nickname
4241           in router environment snhould work and the [<unknown>] nickname
4242           should appear no more.
4243  
4244           The silc_server_replace_id function that receives the Replace ID
4245           payload now sends the NICK_CHANGE notify type also in the file
4246           silcd/packet_receive.c
4247
4248         * Changed WHOIS and IDENTIFY command to support the maximum amount
4249           of arguments defined in protocol specs (3328 arguments).  This 
4250           fixed a bug that caused problems when there were more than three
4251           users on a channel.
4252
4253 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4254
4255         * Added extra parameter, command identifier, to the
4256           silc_client_send_command so that explicit command identifier
4257           can be defined.
4258
4259           Changed that ID list routines uses specific command identifier
4260           when sending WHOIS/IDENTIFY requests to the server so that they
4261           can be identified when the reply comes back.
4262
4263           Affected files lib/silcclient/command.[ch],
4264           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
4265
4266         * Added `sender' argument to silc_server_packet_send_to_channel
4267           to indicaet the sender who originally sent the packet to us
4268           that we are now re-sending.  Ignored if NULL.  Affected file
4269           silcd/packet_send.[ch].
4270
4271         * Added some server statistics support in silcd/server_internal.h
4272           SilcServerStatistics structure and around the server code.  Also
4273           send some nice statistics information when client is connecting
4274           to the client.
4275
4276 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4277
4278         * Fixed channel ID decoding in server's JOIN command reply in
4279           silcd/command_reply.c
4280
4281         * Fixed braodcasting of replace ID payload to not to send it if
4282           we are standalone server in silcd/packet_receive.c.
4283
4284         * Fixed all channel message sending routines to not to send
4285           packets to clients that has router set, since they are routed
4286           separately in the same function earlier.  Affects file
4287           silcd/packet_send.c and all channel packet sending functions.
4288
4289         * In USERS reply, res_argv[i] are not allocated, the table
4290           is allocated.  Thus changed that free the table, not its
4291           internals.
4292
4293         * In server's whois_check and identify_check if the client is
4294           locally connected do not send any WHOIS commands - they are not
4295           needed.
4296
4297 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4298
4299         * Fixed some minor bugs in client when sending WHOIS command.  The
4300           arguments was in wrong order.
4301
4302         * Removed statis function add_to_channel from server in 
4303           silcd/command.c that was previously used with the joining but
4304           is obsolete now.
4305
4306         * Tested USERS command in router environment successfully with two
4307           routers, two servers and two clients.
4308
4309 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4310
4311         * Reorganized the USERS command and command reply in client library
4312           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
4313           When the command is given by user we register a pending command
4314           callback that will reprocess the command after the reply has been
4315           received from the server.  When reprocessing the packet we then
4316           display the information.  Thus, the USERS information is displayed
4317           now in the command callback instead of in the command reply
4318           callback.  The processing of the command is same as previously
4319           when server has sent the command reply in the JOINing process.
4320
4321         * Added to USERS command in silcd/command_reply.c to join the client,
4322           we didn't use to know about, to the channel after we've created
4323           a client entry for it.  Also, for clienet we did know already still
4324           check whether it is on the channel or not and add it if not.
4325
4326         * Removed silc_server_command_join_notify as the function and its
4327           use was obsolete.
4328
4329 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4330
4331         * Changed the client's pending command handling to the same as the
4332           server's pending command handling.  It is also now possible to
4333           execute command reply functions from other command reply
4334           function as the function callbacks for commands and command
4335           replies are one and same.  The pending commands are not static
4336           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
4337           in client connection context.  Thus, pending commands are server
4338           connection specific as it is convenient.
4339
4340           Changed the function silc_client_command_pending and
4341           silc_client_command_pending_del and added new function
4342           silc_client_command_pending_check.  Removed the 
4343           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
4344           macros.
4345
4346         * Added cmd_ident, current command identifier, to the client
4347           connection context in lib/silcclient/client.h to keep track on
4348           command identifiers used in command sending.  Client's command reply
4349           function handling now supports the mandatory command identifiers.
4350
4351         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
4352           funtions in client to fully support pending command callbacks.
4353
4354         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
4355           as one of the arguments to the application in the command reply
4356           client operation.
4357
4358         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
4359           before first releasing SILC but came back.  Now it is removed again
4360           and should come back nomore.  The FORWARDED flag was used only
4361           by the JOINing procedure by forwarding the command packet to router.
4362           Now, the JOINing procedure has been changed to more generic (due
4363           to various router environment issues) and FORWARDED is not needed
4364           anymore for anything.  The protocol specification is yet to be
4365           updated.
4366
4367           Now, removed silc_server_packet_forward from server and the flag
4368           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
4369
4370 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4371
4372         * Renamed NAMES command to USERS command.  The NAMES was named that
4373           due to historical reasons.  Now it is renamed.  Also, rewrote
4374           parts of the USERS command.  The nickname list is not sent anymore
4375           by the server.  Only Client ID and mode lists are sent in the USERS
4376           command.  Changed this also to the protocol specification.
4377
4378           The client now resolves the names and stuff after it receives
4379           the USERS list from the server when joining to the channel.
4380
4381         * WHOIS and IDENTIFY commands has been changed to support multiple
4382           Client ID's per command.  One can now search for multiple users
4383           in the network by sending only one WHOIS or IDENTIFY command.
4384           Changed the code and the protocol specifications.
4385
4386         * Removed silc_server_command_identify_parse and changed that IDENTIFY
4387           uses silc_server_command_whois_parse to parse the request. */
4388
4389         * If normal server, do not parse the WHOIS and IDENTIFY requests
4390           before sending it to the router.  Saves some time.
4391
4392 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4393
4394         * Fixed JOIN command on client library.  Wrong number of arguments
4395           used to crash the client.
4396
4397         * Added silc_server_channel_has_global function to check whether
4398           channel has global users or not.
4399
4400         * Added silc_server_channel_has_local function to check whether channel
4401           has locally connected clients on the channel.
4402
4403         * The silc_server_remove_from_one_channel now checks whether the
4404           channel has global users or not after given client was removed from
4405           the channel.  It also checks whether the channel has local clients
4406           on the channel anymore.  If it does not have then the channel entry
4407           is removed as it is not needed anymore.
4408
4409         * The silc_server_notify now checks on JOIN notify whether the joining
4410           client is one of locally connected or global.  If it is global then
4411           the channel has now global users on the channel and that is marked
4412           to the channel entry.  Also, it now saves the global client to
4413           global list who is joining and JOINs it to the channel.  This is
4414           for normal server, that is.
4415
4416           Changed silc_server_send_notify_on_channel, 
4417           silc_server_packet_relay_to_channel and 
4418           silc_server_packet_send_to_channel check if we are normal server
4419           and client has router set (ie. global client) do not send the
4420           message to that client, as it is already routed to our router.
4421
4422         * Implemented LEAVE notify type handling in silc_server_notify 
4423           function.
4424
4425         * Tested LEAVE command in router environment successfully.  Tested
4426           with two routers, two servers and two clients.
4427
4428         * Updated TODO.
4429
4430         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
4431
4432         * Implemented SIGNOFF notify type handling in silc_server_notify
4433           function.
4434
4435         * silc_server_remove_id now removes the client entry from all channels
4436           it has joined and thusly sends SIGNOFF notify type.
4437
4438         * Rewrote the NAMES list generation in server by removing two excess
4439           loops.  The lists are created now inside one loop.
4440
4441 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4442
4443         * silc_server_remove_channel_user checks now also global list
4444           for channel and client.
4445
4446         * silc_server_new_channel_user checks now both local and global
4447           list for channel and client.  Fixed a bug in client id decoding.
4448           Used to decode wrong buffer.
4449
4450         * silc_server_channel_message checks now both local and global
4451           list for channel entry.
4452
4453         * Tested channel joining (hence JOIN) in router environment
4454           successfully.  Tested with two routers, two servers and two
4455           clients.
4456
4457         * Tested channel message sending in router environment successfully.
4458
4459 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4460
4461         * Added silc_server_save_channel_key into server.[ch] to save the
4462           received channel key in Channel Key payload processing. It is
4463           also used in JOIN command reply handling.
4464
4465           Equivalent function silc_client_save_channel_key added into
4466           client.[ch] into client library.
4467
4468         * Changed JOIN command reply to send information whether the channel
4469           was created or not (is existing already) and the channel key 
4470           payload.  Changed protocol specs accordingly.
4471
4472         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
4473           the request was sent by ID and not by nickname.  Crashed on
4474           NULL dereference.
4475
4476 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4477
4478         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
4479           now correctly save the received data.
4480
4481         * silc_server_free_sock_user_data now notifies routers in the 
4482           network about entities leaving the network.
4483
4484           At the same time implemented functions silc_server_remove_id
4485           and silc_server_send_remove_id to receive and send REMOVE_ID
4486           packets.  The packet is used to notify routers in the network
4487           about leaving entities.  The ID removed will become invalid in
4488           the network.
4489
4490         * Added function silc_idlist_del_server into server. Removes and
4491           free's server entry from ID list.
4492
4493         * silc_server_private_message function now checks, if we are router,
4494           that the destination ID really is valid ID, naturally.
4495
4496         * In router when NEW_ID packet is received (for new client) the
4497           hash of the Client ID is saved in the ID Cache but the
4498           client->nickname is set to NULL, instead of putting the hash
4499           to it as well.
4500
4501           IDENTIFY command now also checks that client->nickname must be
4502           valid. If it is not if will request the data from the server who
4503           owns the client.  Added new function 
4504           silc_server_command_identify_check.
4505
4506         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
4507           to set the command to already allocated Command Payload.
4508
4509         * Tested private message sending in router environment with two
4510           routers, two servers and two clients.  Fixed minor bugs and now
4511           it works fine.
4512
4513         * Fixed segfault from client's NAMES command. Used to crash if
4514           not on any channel.
4515
4516         * Forwarded packets must not be routed even if it is not destined
4517           to the receiver.  Changed server code comply with this.
4518
4519 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4520
4521         * Added `require_reverse_mapping' boolean value to ServerParams
4522           structure. If TRUE (not default) the server will require that
4523           the connecting host has fully qualified domain name.
4524
4525           If the reverse mapping is not required and hostname could not be
4526           found the IP address is used as hostname.
4527
4528 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4529
4530         * Implemented version string checking to both client and server.
4531           The check is incomplete currently due to the abnormal version 
4532           strings used in development version of SILC.
4533
4534         * Changed all command functions in server to use the new
4535           CHECK_ARGS macro.
4536
4537 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4538
4539         * Changed char *data to unsigned char *data in ID Cache system to
4540           support binary data as ID Cache data. Changed code to support
4541           binary data in lib/silccore/idcache.c.
4542
4543         * Renamed silc_server_packet_relay_command_reply to 
4544           silc_server_command_reply as it is normal packet receiving
4545           function. Rewrote the function to accept command replys for
4546           servers and not only for clients.
4547
4548         * Mark remote router always as registered server if we are connecting
4549           to it.  Otherwise, commands sent by the router to us are ignored.
4550
4551         * All ID List find routines now returns the ID Cache Entry pointer
4552           as well if requested.
4553
4554         * WHOIS command works now in router environment, tested with two
4555           routers, two servers and two clients.
4556
4557         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
4558           in router environment (as it is almost equivalent to WHOIS) but
4559           hasn't been tested thoroughly.  Added new functions:
4560
4561           silc_server_command_identify_parse
4562           silc_server_command_identify_send_reply
4563           silc_server_command_identify_from_client
4564           silc_server_command_identify_from_server
4565
4566         * Disabled route cache adding because adding two different ID's with
4567           same IP replaces the old cache entry thus giving wrong route.
4568           The entry->router->connection is always the fastest route anyway
4569           so route cache may not be needed.  Of course, new routes maybe
4570           established after receiving the ID when the entry->router->connection
4571           might not be anymore the most optimal.
4572
4573 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4574
4575         * Add route cache for received ID for fast routing.
4576
4577         * Added silc_server_packet_route to route received packet on router
4578           that is not destined to us.
4579
4580         * Renamed silc_server_get_route to silc_server_route_get.
4581
4582         * Added id_string and id_string_len fields into SilcServer to
4583           include encoded ServerID for fast comparing without excess
4584           encoding of the ID's.
4585
4586         * Cleaned up WHOIS command on server side. Added following static
4587           functions:
4588
4589           silc_server_command_whois_parse
4590           silc_server_command_whois_check
4591           silc_server_command_whois_send_reply
4592           silc_server_command_whois_from_client
4593           silc_server_command_whois_from_server
4594
4595         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
4596           arguments in command replies. All command functions should be
4597           updated to use this macro.
4598
4599 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4600
4601         * Minor typo fixes on command reply handling on server.
4602
4603 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4604
4605         * Added silc_server_command_add_to_channel internal routine to add
4606           the client to the channel after router has created the channel and
4607           sent command reply to the server.
4608
4609         * Added generic silc_server_send_command to send any command from
4610           server.
4611
4612         * Use static buffer with ID rendering instead of duplicating data.
4613
4614 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4615
4616         * Fixed a channel user mode bug when joining to a channel server gave
4617           everybody channel founder rights, oops.
4618
4619         * We mark ourselves as the router of the incoming server connection
4620           if we are router ourselves.  This way we can check in some packet
4621           sending functions whether it is locally connected server.  For
4622           incoming router connections we put NULL.
4623
4624         * For router sending packets locally means now always sending the
4625           packet cell wide; to local clients and local servers.  For normal
4626           server sending packet locally means sending it to only local
4627           clients.
4628
4629         * Fixed the JOIN command to really work in router environment.  If the
4630           channel is created it is always created by the router.  Router is
4631           also responsible of making the initial joining to the channel,
4632           sending JOIN notify to the sending server and distributing 
4633           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
4634           does not exist server doesn't do anything else but forward the
4635           command to the router which performs everything.
4636
4637         * Added silc_server_send_channel_key function to send the Channel Key
4638           payload.
4639
4640         * Added silc_server_create_channel_key to create new channel key.  The
4641           channel key is now re-generated everytime someone joins or leaves
4642           a channel, as protocol dictates.  Note: channel->key_len is the
4643           key length in bits.
4644
4645 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4646
4647         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
4648           packet_receive.[ch] to separate packet sending and receiving
4649           routines.  The server.[ch] now includes everything else including
4650           actual packet processing (writing and reading data) and other
4651           server issues.
4652
4653           Renamed silc_server_private_message_send_internal to
4654           silc_server_send_private_message.  The routine is still though
4655           used only to relay private messages as server does not send
4656           private messages itself.
4657
4658           Renamed silc_server_new_channel to silc_server_create_new_channel
4659           and added new function sicl_server_new_channel that handles the
4660           incoming New Channel packet.  Added also new sending function
4661           silc_server_send_new_channel to send New Channel Payload.
4662
4663         * Added new function silc_server_notify to process incoming notify
4664           packet to the server/router. Server may then relay the notify
4665           to clients if needed.
4666
4667         * Added new function silc_server_new_channel_user to process incoming
4668           New Channel User packet.  Router will redistribute the packet and
4669           send JOIN notify to its local clients and locally connected servers
4670           if needed.  Normal server will send JOIN notify to its local client
4671           on same channel when received this packet.  Added also corresponding
4672           sending function silc_server_send_new_channel_user to sent the
4673           payload.
4674
4675         * Added boolean route argument to send_notif_to_channel and
4676           packet_send_to_channel functions to attempt to route the packet
4677           if it is TRUE and send only locally if it is FALSE.
4678
4679 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4680
4681         * silc_server_replace_id now broadcasts the received replace ID
4682           packet if it is not broadcast packet already. The router must
4683           broadcast to inform other routers about changed ID.
4684
4685         * Added backpointer to server's router into SilcServer context in
4686           silcd/server_internal.h.
4687
4688         * Fixed silc_server_packet_broadcast to send correct broadcast
4689           packets.
4690
4691         * The channel key is now distributed to the local client as soon
4692           as it is received from the router (in router environment) so that
4693           no other packet may be sent for the channel until client has 
4694           received the key.
4695
4696         * silc_server_remove_channel_user now broadcasts the received
4697           Remove Channel User packet if it is not broadcast packet already.
4698           The router must broadcast to inform other routers about removed
4699           channel user.
4700
4701         * Added users field into SilcPacketContext that is a reference count
4702           of the context.  One can increase the reference count by calling
4703           silc_packet_context_dup which is now changed to just increase the
4704           reference count instead of duplicating the data.  The reference
4705           count is decresed by calling silc_packet_context_free that will
4706           free the data after the reference count hits zero.
4707
4708           For now on the packet context and everything allocated into it
4709           (including the raw packet from network) must be freed by calling
4710           the new silc_packet_context_free function.  Added also new function
4711           silc_packet_context_alloc that must be used now to allocate the
4712           context.  This also means that if a routine is asynchronous from
4713           silc_[client/server]_packet_parse_type the packet context must
4714           be duplicated by calling silc_packet_context_dup.  Otherwise it
4715           gets free'd after silc_[client/server]_packet_parse_type returns.
4716           Also, one must remember that if packet is duplicated then its 
4717           reference count must be decresed by calling the free function as
4718           many times as it was duplicated.
4719
4720         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
4721           from both client and server.
4722
4723 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4724
4725         * Made joining to a channel working in router environment.
4726
4727         * Cleaned up JOIN command on server side and create function
4728           silc_server_command_join_channel internal routine to make the
4729           joining happen.
4730
4731 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4732
4733         * Changed silc_command_pending list to SilcDList.  Also, added
4734           `ident' field to SilcServerCommandPending structure to identify
4735           the reply and to call correct callback.
4736
4737           Added silc_server_command_pending_check function to replace the
4738           corresnponding macro.  The silc_command_pending list is not
4739           extern anymore.
4740
4741         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
4742           to set identifier to previously allocated Command Payload.  It
4743           is used to set identifier for command when resending Command
4744           Payload.
4745
4746         * Added silc_command_payload_encode_payload to encode Command
4747           Payload buffer from SilcCommandPayload structure.
4748
4749         * Added silc_argument_payload_encode_payload to encode Argument
4750           payload buffer from SilcArgumentPayload structure.
4751
4752 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4753
4754         * Changed WHOIS command to support router connection on server side.
4755           The whois request is always sent to router unless the server is
4756           standalone server.  After server has received the reply from the
4757           router will it send the reply to the client.
4758
4759         * Added silc_server_packet_broadcast into silcd/server.[ch] to
4760           broadcast received broadcast packet.  The function is used only
4761           by router.  The broadcast packet is always sent to the router's
4762           primary route.
4763
4764         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
4765           render given ID to printable string, for log files for example.
4766
4767 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4768
4769         * Made basic router to router connections working.  At least they
4770           can now connect to each other but nothing really works the way
4771           they are supposed - yet.
4772
4773         * Added new initiator token to RouterConnection configuration
4774           file in silcd/serverconfig.[ch].  It is used to tell whether we
4775           are the initiator to the remote router or whether we'll expect
4776           the other end to connect.
4777
4778         * Moved registering of listener task to silc_server_init, hence
4779           the server starts listenning as soon as it is run, even if it
4780           does not have connections to other routers.  Let's see how well
4781           this will work.
4782
4783         * Changed default connection retry timeouts for more suitable in
4784           silcd/server.h.
4785
4786         * Removed cipher and such arguments from silc_idlist_add_client
4787           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
4788           Added new function silc_idlist_add_data to add the keys and stuff
4789           to any ID entry.
4790
4791         * Added SilcIDListData structure and added it to SilcClientEntry
4792           and SilcServerEntry as their first field in the structure.  This
4793           way we can explicitly cast the ID entries to the SilcIDListData
4794           structure and get common data for the entries.  In past, we had
4795           to first check what type of connection it is and then cast it to
4796           correct ID entry type.  Now, we can directly cast the opaque
4797           pointer to the SilcIDListData (no matter what ID entry it actually
4798           is) and get the data needed.
4799
4800 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4801
4802         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
4803           in some circumstances even if threre were timeout tasks, though not
4804           IO tasks, but tasks anyway.  Now fixed.
4805
4806         * Defined SilcServerConnection structure to hold connection specific
4807           stuff about directly connected servers and routers.  The definition
4808           is currently in silcd/server_internal.h.  I thought about having
4809           a bit more important role fro this struct but for now it is used
4810           only when connecting to other server (or router actually).
4811
4812         * Added connecting retry support in server when connecting to
4813           router(s).  The retry feature implement exponential backoff
4814           algorithm.  Also, added SilcServerParams structure to hold default
4815           parameters for server.  For now, it include these retry settings
4816           and are hard coded.  After server is moded to be as Silc Server
4817           Library this structure will be more important.
4818
4819 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4820
4821         * Changed client librarys channel->clients table to SilcList and
4822           changed code accordingly.
4823
4824 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4825
4826         * Changed client's channel table to SilcList and changed code 
4827           accordingly.  Also changed SilcChannelClientEntry to include back-
4828           pointer to the channel so that client entry can use that structure
4829           as list as well and we have fast cross-reference to the channel.
4830           This change dramatically decreased the complexity of channel
4831           handling with client entry and vice versa (removed one extra
4832           loop when searching for channel entry from many functions).
4833
4834         * Changed server->sim from table to SilcDList and changed code
4835           accordingly.
4836
4837         * NAMES command can now be used from user interface.  It will show
4838           the user list on the channel, neatly.
4839
4840         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
4841           Code now saves realname of the user if it becomes available.
4842
4843         * Renamed configure.in to configure.in.pre and made ./prepare
4844           script to automatically add correct version string to
4845           configure.in which it creates from configure.in.pre.
4846
4847 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4848
4849         * NAMES command reply now shows users mode with the nickname when
4850           joining to channel.
4851
4852         * Moved silc_client_ch[u]mode[_char] functions from 
4853           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
4854           place sucks, they are utility functions and should be in some
4855           other file.
4856
4857         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
4858
4859         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
4860           cras.
4861
4862 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
4863
4864         * Updated README.
4865
4866         * Added TRQ (efficient deque and list library) into lib/trq.  This is
4867           a very good list library that is currently used in the SILC.  Defined
4868           SilcList API over the library because I didn't like the API very
4869           much.  See lib/trq/silclist.h for the API and examples of how to
4870           use the API.  Fixed various places in the code to use the new
4871           SilcList API. The SilcList is meant for lists that has a structure
4872           already defined as a list.  It is not suitable to add just some
4873           context to the list (in TRQ, the context is the list actually).
4874
4875           So, I defined SilcDList that can be used for the purpose where 
4876           predefined list structure does not exit.  This can be used as
4877           such list.  Now some context just can be added to the SilcDList.
4878           Currently this list is not used in the SILC just yet, though there
4879           are a lot places where this can replace dynamically allocated
4880           tables and I will fix these places, later, to use SilcDList.
4881           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
4882           and use TRQ internally).
4883
4884           Also fixed some annoying warning messages that the original TRQ
4885           code generated.  Also minor changes to TRQ's Makefile.in.
4886
4887         * Added support for querying by Client ID to both WHOIS and 
4888           IDENTIFY commands into server, as required by the protocol.
4889
4890         * Removed method function pointers from SilcBuffer structure. They
4891           weren't used to anything and just increased the context size for
4892           no good reason.  This change also made silc_buffer_alloc and
4893           silc_buffer_free functions inline functions.
4894
4895         * Disabled command flooding detection support until it's fixed so 
4896           that it accepts commands in but does not execute them more than once
4897           in two seconds.
4898
4899         * Added silc_net_localhost(), to return local hostname, into
4900           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
4901           that must be initialized before calling silc_client_init.
4902
4903         * Added new function: silc_server_send_notify_on_channels to send
4904           notify messages to all channels client has joined.  It is assured
4905           that the message is sent only once per client.
4906
4907         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
4908           lib/silcutil/silcutil.[ch] as silc_format function.  The new 
4909           function is generic and is used by server as well, not only by
4910           the logging routines.
4911
4912         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
4913           the provided version string was not acceptable.  Added new function:
4914           silc_ske_check_version into lib/silcske/silcske.h.  The function
4915           must be implemented by the application (client or server) and it
4916           does not reside in the SKE library.  The function checks the version
4917           string remote end sent.
4918
4919         * Added back pointers (to opaque context and to SilcSocketConnection) 
4920           into SilcPacketContext structure into lib/silccore/silcpacket.h.
4921
4922         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
4923           duplicate packet context structure.
4924
4925         * Changed `notify' client operation to send same arguments as client
4926           receives from server except for ID's.  ID's are mapped to correct
4927           ID entry and that is returned.  Also, if channel entry is not sent
4928           by server but the notify is for channel the channel entry is sent
4929           to application (otherwise application doesn't know that it is for
4930           channel (library gets it from packet's Destination ID)).
4931
4932         * Added silc_client_remove_from_channels into client library to 
4933           remove a client from all channels it has joined to.  Used when 
4934           received SIGNOFF notify from server.  Added also new function
4935           silc_client_replace_from_channels to replace old ID entry with
4936           new ID entry on all channels.  Used when received NICK_CHANGE
4937           notify from server.
4938
4939         * Fixed ID Cache list handling in silc_idlist_get_client in 
4940           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
4941           to get (or query) client by ID.
4942
4943         * Updated TODO list.
4944
4945         * Added connection authentication status message defined by the
4946           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
4947           support for these into the code in client and server side.
4948
4949         * Added generic function silc_client_send_command to send any command
4950           with variable argument list.  Application should use this function
4951           to send commands if the command functions provided by the library
4952           does not suite for the application's user interface needs.
4953
4954         * Added new `failure' client operation.  Application is notified about
4955           received failure packet if client is executing a protocol.  In this
4956           case the protocol's execution has failed.
4957
4958         * Added SKE's end notify to send the SKE_SUCCESS notify message that
4959           is required by the protocol.
4960
4961         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
4962           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
4963           error at our end.
4964
4965         * Added status flag to SilcSKE object to indicate realtime status
4966           of the SKE protocol.
4967
4968         * Application receives now exactly same command reply arguments as
4969           the library receives from server.  However, if ID is received the
4970           corresponding ID entry is returned to the application (eg. Client
4971           ID is mapped to correct SilcClientEntry entry and that is returned).
4972           Changed command_reply client operation due to this change.
4973
4974         * Changed all ID's in commands and in command replys as ID Payloads.
4975           Change affected both client and server side codes.
4976
4977           All ID's sent in SILC network (with execption of ID's in SILC
4978           Packet header) are sent in ID Payload to support variable length
4979           ID's.
4980
4981         * Server now notifies nick changes and notifies all clients on
4982           the channels about the new nickname (about the new Client ID,
4983           actually).
4984
4985         * Implemented CMODE command to change channel modes. Supports all
4986           channel modes defined by the protocol specs except ban and invite
4987           lists. (Also, private channel key mode is supported but support for
4988           setting private channel key in client is missing, thus, this mode
4989           has no effect on client side (except that server requires that the
4990           client uses private channel key and normal channel traffic does not
4991           work anymore)).
4992
4993           Also, invite mode works per se, but INVITE command does not work
4994           yet correctly, so you can set channel as invite only channel but
4995           inviting clients to the channel does not work (it is yet to be
4996           thought what's the best way to do it).
4997
4998         * Added new command SILC_COMMAND_CUMODE to change user mode on the
4999           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
5000           Implemented CUMODE command to change user's mode on the channel.
5001           Supports all modes defined by the protocol specs.
5002
5003         * Added NAMES command reply to return users modes on the channel.
5004
5005         * Removed unnecessary and slow ciphers from lib/silccrypt.
5006
5007         * Set SO_KEEPALIVE option to connection sockets by default.
5008
5009         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
5010
5011         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
5012           redefined the Notify Payload into protocol specs.
5013
5014         * Added silc_id_payload_parse_id to get ID directly from raw
5015           ID payload data.
5016
5017 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5018
5019         * Changed SILC_COMMAND_IDENTIFY in protocol specification to 
5020           accept searching by Client ID as well.
5021
5022         * Added support for LEAVE and SIGNOFF notify types in client library.
5023
5024         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
5025           to parse ID Payload from raw data.
5026
5027 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5028
5029         * Added flags parameter into silc_ske_assemble_security_properties
5030           function in lib/silcske/silcske.[ch].
5031
5032         * Changed notify client operation to fit better for notify messages
5033           sent by server.  The notify payload received from server is now
5034           passed to the application (after parsing it to SilcNotifyPayload).
5035           It is application's responsibility to retrieve the arguments
5036           from the payload and show the message the way it wants.  The message
5037           sent by server is implementation specific.
5038
5039         * Changed public keys to comply with the protocol specification.
5040           Old public keys are not supported anymore and are not compatible.
5041
5042         * Removed nickname from Channel Payload as the latest draft removed
5043           it.  The client must resolve the nickname from the NAMES command
5044           reply received when it joined the channel.
5045
5046           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
5047
5048 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5049
5050         * Fixed some errors in protocol specification drafts.
5051
5052         * Created lib/silccore/silcnotify.c to implement Notify Payload
5053           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
5054           generic payloads described by protocol specifications.  The file
5055           includes implementations for ID Payload and Argument Payload.
5056
5057         * Changed Command Payload implementation to use the new Argument
5058           Payload.  Changed command_xxxx_payload to command_payload_xxxx
5059           to comply with SILC coding conventions.
5060
5061         * Added suppport for Argument Payload handling in Notify Payload
5062           implementation as protocol requires it.  Added the new support
5063           into server and client lib as well.
5064
5065 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5066
5067         * Added support for multiple nicknames on same channel.  [n] is
5068           added locally to the nickname if there are more than one same
5069           nicknames on the channel.
5070
5071         * Server now sends all nicknames that matched WHOIS request.
5072           Client also shows the list received from server.
5073
5074         * Added TOPIC command to client side.  User can now set and show
5075           current topic on channel.
5076
5077         * Added MOTD command to client and server.  Also, server sends the
5078           motd when client connects to the server.
5079
5080         * Changed version strings to comply ISO 8601.
5081
5082 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5083
5084         * Fixed protocol error handling in client library.  It should now
5085           cope even if the SKE fails for some reason.
5086
5087         * Made new protocol specification drafts for submitting to IETF.
5088
5089         * Implemented TOPIC command to server in silcd/command.c.
5090
5091         * Added two new notify types into lib/silccore/silcnotify.h:
5092           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
5093           notify nickname change and topic setting/change on a channel.
5094
5095         * API change of command_reply operation in client library.  The
5096           application gets now the status type received from server as well.
5097
5098 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5099
5100         * Removed the function just added to lib/silcutil/silcschedule.[ch].
5101
5102         * Cras fixed and optimized the packet handling even further and
5103           it should work now.  Minor change to the prototype of function
5104           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
5105
5106 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5107
5108         * Added new function into lib/silcutil/silcschedule.[ch]:
5109           silc_schedule_with_fd to select() a specified fd.  The function
5110           returns after timeout expires or data arrives or goes.  The
5111           function is used by packet routines to wait that all data is
5112           received from network.
5113
5114         * Fixed data reading from network in lib/silccore/silcpacket.c.
5115           The code now assures that all data is read from the fd and then
5116           continues packet processing.  This was a bug fix since the code
5117           used to drop some data in some circumstances.
5118
5119         * Added new function into lib/silcclient/client.[ch]:
5120           silc_client_start_key_exchange to start key exchange after
5121           connection has been established to server.  The code internally
5122           now uses this funtion but its main purpose was to provide it
5123           for applications that perform their own connecting.  After
5124           application has created a connection it merely calls this
5125           function to start the key exchange between client and server.
5126           The library takes care of everything else after that.
5127
5128           Updated also lib/silcclient/README to explain the usage of
5129           this new function.
5130
5131         * Do not send to application information that connection has
5132           been established.  Application gets notified it by connect
5133           operation anyway.
5134
5135 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5136
5137         * Applied cras's patch to add silc_schedule_one function.  The
5138           function runs scheduler once and returns.
5139
5140         * Fixed the scheduler after cras messed it up.  The timeout
5141           handling works now as it's supposed to work.
5142
5143         * Added into lib/silccore/ silcnotify.h to include notify
5144           message types support.  Changed silc_server_send_notify*
5145           functions, in server.[ch], to support those new notify types.
5146           Added the support for the notify types into client library,
5147           as well.  Added new notify client operation into ops.h in
5148           lib/silcclient/.
5149
5150         * Changed silc_server_packet_send_to_channel to send normal
5151           packets instead of just channel message packets.  The function
5152           is now used to send the notify packets to channels.  It is not
5153           used to send channel message packets anymore, as server never
5154           sends them anymore.
5155
5156         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
5157           va_arg()s as it seems to require it nowadays.  I guess, if SILC
5158           is compiled with older va_arg() the new code should work anyway.
5159
5160 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5161
5162         * Splitted core library.  Core library (lib/silccore) includes
5163           now only SILC protocol specific core (and common) components.
5164           Created new utility library (lib/silcutil) that includes more
5165           generic purpose stuff.  The stuff for util library was taken
5166           from the old core library.  This was minor and easy split.
5167
5168         * Created SILC Client Library (lib/silcclient) that includes
5169           implementation of the SILC client without user interface.  This
5170           was major move from silc/ directory.  The code has been changed
5171           so that it is transparent towards the user interface.  The
5172           silc/ directory includes now the same user interface as before
5173           and it uses the new client library.  Read lib/silcclient/README.
5174           Basicly, the client library performs everything else related
5175           to SILC except user interface handling.  Also, configuration
5176           files are considered to be part of user interface and library
5177           does not handle them.
5178
5179           This change also changed a lot of structures, function naming etc.
5180           Most important change was that SilcClientWindow object was
5181           renamed to SilcClientConnection in the client library.  Created
5182           also new file lib/silcclient/ops.h.  Also added new files
5183           silc/local_command.[ch] and silc/client_ops.[ch].
5184
5185           All these changes were made to make it easier for user interface
5186           designers to create what ever user interface for the SILC client
5187           they want.
5188
5189           It is also expected that the server will be moved to lib
5190           directory as well and SILC Server Library will be created;
5191           sometimes in the future.
5192
5193         * Removed Local commands from lib/silccore/silccommand.h as
5194           they are application specific and new client library does not
5195           handle any of those anymore.
5196
5197         * Several functions moved to lib/silcutil/silcutilc.[ch] from
5198           old client implementation in silc/.
5199
5200         * Added support for callback functions in SILC_LOG_* macros.
5201           Application can now set its own callbacks that will be called
5202           instead of using the default functions that will always print
5203           the debug messages to stderr (or stdout).  Also, debugging can
5204           now be disabled by setting silc_debug to FALSE and re-enabled by
5205           setting it to TRUE.  Note, that logging will still work even
5206           if debugging is disabled.
5207
5208           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
5209           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
5210           silc_log_reset_debug_callbacks.
5211
5212         * To enable debugging in silc client one must give now -d
5213           option on command line.
5214
5215         * Changed silc_schedule_init to automatically allocate task queues
5216           if they are not allocated before calling it.
5217
5218 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5219
5220         * Added GMP 3.1 into math library.
5221
5222 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5223
5224         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
5225           a channel in SILC network.  The packet is used by servers and
5226           routers to notify other routers that user has left a channel.
5227           This little feature was missing until now.  Added the feature
5228           to protocol specification as well.
5229
5230           Added functions: silc_server_send_remove_channel_user and
5231           silc_server_remove_channel_user into server.[ch].
5232
5233         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
5234           lib/silccore/silcpacket.h.  However, they are not implemented
5235           yet.
5236
5237 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5238
5239         * Fixed joining to a channel and sending channel messages
5240           between server and router.  The channel message sending should
5241           now work inside a cell.
5242
5243 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5244
5245         * Fixed the private message sending between server and router.
5246           The private message sending should now work inside a cell.
5247
5248         * Added silc_server_replace_id into server.[ch] to replace
5249           existing ID in the SILC network.
5250
5251         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
5252           and silc_idlist_replace_server_id into idlist.[ch] in server.
5253
5254 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5255
5256         * Fixed the server to server connections.  Server can again now
5257           connect to router.  Router to router connections probably does
5258           not work just yet.
5259
5260 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5261
5262         * Added dynamic protocol registering support.  Now protocols can
5263           registered and unregistered on the fly.  Patch by cras.
5264
5265 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5266
5267         * Added lib/contrib directory to hold routines that some platforms
5268           don't have but are needed by SILC.
5269
5270         * Added getopt.c, getopt1.c and getopt.h from GNU C library
5271           into lin/contrib to provide getopt() and getopt_long() for
5272           those who don't have it.
5273
5274 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5275
5276         * Added AWAY command to client.  When away message is set and
5277           client receives a private message packet the client automatically
5278           replies to the sender with the away message.
5279
5280         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
5281           bug seemed to be the cause of recent problems when compiling
5282           with gcc-2.95.
5283
5284         * Added version detection support to SKE protocol specification
5285           and added the new changes to the SKE implementation as well.
5286           There were other minor changes in the SKE protocol as well.
5287
5288           Many changes in lib/silcske/silcske.[ch] and in
5289           lib/silcske/payload.[ch].
5290
5291         * Added ^U functionality, clear input line.  Patch from cras.
5292
5293 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5294
5295         * Mainly small bugfixes on core library.  Fixed some debugging
5296           logging and buffer overflow in silclog.c.
5297
5298         * Updated config.sub and config.guess on the distribution tree.
5299
5300 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5301
5302         * Added command lagging support in server. Client may execute
5303           commands now only once in two seconds.
5304
5305 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5306
5307         * Optimized packet reception. MAC computation and checking is now
5308           also more optimized.  A lot previously duplicated code is now
5309           used as generic by both client and server.
5310
5311         * Fixed key pair generation in clientutil.c
5312
5313 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5314
5315         * Added into lib/silccore/silcbufutil.[ch] new function;
5316           silc_buffer_realloc.
5317
5318         * Moved generic packet sending/encryption functions to 
5319           lib/silccore/silcpacket.[ch] from client and server.  Some
5320           rewriting of the functions.
5321
5322         * Moved all generic packet reception/decryption functions to
5323           lib/silccore/silcpacket.[ch] from client and server.  The
5324           packet processing is now much cleaner in both client and server.
5325           These were major changes in both client and server.
5326
5327         * Created many common functions in server to do packet sending.
5328           Previously code were duplicated a lot, this has been removed
5329           with these changes.
5330
5331 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5332
5333         * Rewrote major parts of the ID cache system.  Don't know 
5334           whether it is better now or not but at least the API is more
5335           cleaner now.
5336
5337         * Major rewrite on ID cache stuff on client because of the ID
5338           cache API changes.  Added idlist.c to client.
5339
5340         * Also major rewrite on ID cache stuff on server as well.
5341           Major rewrite of idlist.[ch]. SilcXXXList's are now named
5342           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
5343           in hand, instead they are all put into the ID cache system now.
5344           All server_idlist_* routines uses ID cache now instead of
5345           traversing its own lists (those lists does not exist anymore).
5346           SilcIDList though still exists.  Also, SilcXXXEntry's are
5347           now pointers.
5348
5349 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5350
5351         * Finally made the SKE implementation compliant to the protocol
5352           specification.  All mp integers are now binary encoded as
5353           opposed being HEX encoded.
5354
5355         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
5356           from binary data.
5357
5358         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
5359           functions: silc_[encode/decode]_pem.  Also added function
5360           silc_encode_pem_file to PEM encode with newlines ('\n') for
5361           saving into a file.
5362
5363         * SILC public keys are now encoded either PEM or binary.  Same
5364           option is for private keys as well.  By default private keys
5365           are binary encoded and public keys PEM encoded.  Silly HEX
5366           encoding were removed.
5367
5368         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
5369           function to create fingerprints.
5370
5371         * Fixed a bug in SHA1; does not change the original data anymore.
5372
5373         * Partly implemented INFO command on client and server side.
5374           Fixed CLEAR command.  Changes to SERVER command; show current
5375           server(s) when giving command without arguments.  Added
5376           VERSION command to client.
5377
5378         * Added check to server that unregistered connections cannot
5379           execute commands (unless it is specificly allowed).
5380
5381 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5382
5383         * Fixed screen refresh.
5384
5385         * Fixed channel joining bug from client.  On some circumstances
5386           client tried to join to a channel it had already joined.
5387
5388         * Added public key verification process into client's protocol.c.
5389           The client now verifies the public key from user and saves
5390           it into ~./silc/serverkeys/ directory. 
5391
5392           Added into: clientutil.[ch]: silc_client_verify_server_key.
5393
5394         * Changed SKE protocol's silc_ske_initiator_finish function
5395           to accept callback function that verifies the received public
5396           key.  Removed old silc_ske_verify_public_key function.
5397
5398 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5399
5400         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
5401           silc_pkcs_private_key[_data]_set.
5402
5403         * Made the password and public authentication more cleaner in
5404           server's protocol.c.
5405
5406         * Removed historic and obsolete protocol `channel_auth' from
5407           both client and server.
5408
5409         * Removed wrong way of sending command status messages from
5410           server to client in server's command.c.  The old way violated
5411           protocol specification.  
5412
5413           Changes to silccore/silccommand.[ch]: removed
5414           silc_command_encode_status_payload -> not needed anymore,
5415           changed silc_command_encode_payload_va to accept extra
5416           argument on variable argument list.  The argument type must
5417           now be provided to the function.  Also, added new function:
5418           silc_command_encode_reply_payload_va which is same as
5419           normal command_encode_payload_va except command status type
5420           is provided as extra argument.
5421
5422 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5423
5424         * Added ~./silc directory handling.  The directory includes the
5425           public and private keys for the client.
5426
5427           Added silc_client_check_silc_dir, silc_client_create_identifier
5428           and silc_client_load_keys.
5429
5430         * Implemented SILC protocol compliant public key.  Added public
5431           and private key saving to and loading from files.
5432
5433           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
5434           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
5435           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
5436           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
5437           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
5438
5439           Implemented: silc_pkcs_save_[public/private]_key[_data] and
5440           silc_pkcs_load_[public/private]_key.
5441
5442 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5443
5444         * Added silc_server_get_route (route.[ch]) to get connection
5445           data for the fastest route for given ID.
5446
5447         * Implemented INVITE command on client and server.  The command
5448           were re-defined in the SILC Protocol Specification and the
5449           implementation now complies with the specification.
5450
5451         * Implemented PING command on client and server.
5452
5453         * Implemented NAMES command on client and server.  The server side
5454           supports currently only normal server not router server yet.
5455           Some changes to NAMES definition in SILC protocol specification.
5456
5457 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5458
5459         * Implemented LEAVE command on client and server.
5460
5461         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use 
5462           again.  This change was made to the protocol as well.  Server
5463           should not violate the protocol specification anymore.
5464
5465 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
5466
5467         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
5468           was tested.  SOCKS4 was not but should work anyway.