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