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