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