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