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