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