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