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