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