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