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