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