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