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