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