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