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