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