544168d684d2292437e5b2bbd6cdfdb41cd35706
[silc.git] / CHANGES
1 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2
3         * Updated parts of the protocol specification to keep it up
4           to date.
5
6 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7
8         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
9           payloads in one packet.
10
11         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
12           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
13           use now the new List flag.
14
15         * Also deprecated the following packet types: REPLACE_ID,
16           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
17          
18         * Added list support for Notify packet in server.
19
20         * Added silc_server_send_notify_channel_change to send the
21           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
22           the silc_server_send_replace_id.
23
24         * Added silc_server_send_notify_nick_change to send the
25           NICK_CHANGE notify type.  Deprecates the function
26           silc_server_send_replace_id.
27
28         * Added silc_server_send_notify_join to send the JOIN notify type.
29           Deprecates the function silc_server_send_new_channel_user.
30
31         * Added silc_server_send_notify_leave to send LEAVE notify type.
32           Deprecates the function silc_server_send_remove_channel_user.
33
34         * Added silc_server_send_notify_cmode and 
35           silc_server_send_notify_cumode to send CMODE and CUMODE notify
36           types.  Deprecates the silc_server_send_set_mode function.
37
38         * Added SERVER_SIGNOFF notify type to indicate that server has
39           quit.  This means that all clients on the channel from that 
40           server will drop.  This can be also used when netsplit happens.
41
42           Deprecated REMOVE_ID packet type since it is not needed anymore
43           even from server.
44
45           Added silc_server_send_notify_server_signoff to send the
46           SERVER_SIGNOFF notify type.  Deprecates the function
47           silc_server_send_remove_id.
48
49           Added also silc_server_send_notify_signoff to send the
50           SIGNOFF notify type.
51
52         * Employed the PKCS #1. It is the mandatory way to do RSA in the
53           SILC protocol from this day on.  Changed the protocol 
54           specification as well.
55
56         * Added silc_server_send_notify_topic_set to send TOPIC_SET
57           notify type.  It is used between routers to notify about
58           topic changes on a channel.
59
60         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
61           ID data.
62
63         * Partly updated the protocol specification to comply with the
64           changes now made.  It is still though a bit outdated.
65
66         * The JOIN notify type now takes one extra argument <Channel ID>.
67           The packet used to be destined to the channel but now the
68           JOIN type may be sent as list thus it is impossible to 
69           destine it to any specific channel.  By adding this argument
70           it is again possible.
71
72 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
73
74         * Added CREDITS file.  The CHANGES and CREDITS file will appear
75           in the distribution as well.
76
77 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
78
79         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
80           types in the server's silcd/packet_receive.c.
81
82         * Implemented CMODE and CUMODE to work in router environment.
83
84         * Fixed minor encoding and decoding buglet from the
85           lib/silccore/silcmode.c.
86
87         * Fixed buffer overflow from lib/silcclient/command.c in USERS
88           command parsing.
89
90 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
91
92         * Changed all SilcConfigServer* and silc_config_server* to
93           SilcServerConfig* and silc_server_config*, respectively.
94           Patch by Bostik.
95
96 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
97
98         * Associated the ID (client or server ID) to the Authentication
99           Payload to avoid any possibility of forging.  Updated the
100           protocol specification and the code accordingly.
101
102 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
103
104         * The RSA key length is now save to the RsaKey context in the
105           key generation process in lib/silccrypt/rsa.c.  The key length
106           is now used to figure out the maximum size of the block allowed
107           to be encrypted/signed.
108
109         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
110           is equivalent to the silc_mp_mp2bin but does not allocate any
111           memory.
112
113         * Changed silc_mp_mp2bin API to take length argument.  If it is
114           non-zero then the buffer is allocated that large.  If zero, then
115           the size is approximated using silc_mp_sizeinbase, which however
116           is not relieable.
117
118         * Created Global RNG API which is global RNG that application can
119           initialize.  After initializing, any routine anywhere in the
120           code (including library) can use RNG without allocating a new
121           RNG object.  This was done to allow this sort of use of the 
122           RNG in code that has no chance to allocate RNG object.  All
123           applications currently allocate this and many routines in the
124           library use this.  Affected file lib/silccrypt/silcrng.[ch].
125
126         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
127           it to use the Global RNG API.
128
129         * Defined Authentication Payload into protocol specification that
130           is used during SILC session to authenticate entities.  It is
131           used for example by client to authenticate itself to the server
132           to obtain server operator privileges.
133
134           Implemented this payload into the lib/silccore/silcauth.[ch].
135           Implemented also routines for public key based authentication
136           as the new protocol specification dictates.
137
138           Moved definitions of different authentication methods from
139           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
140
141         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
142           silc_pkcs_verify and silc_pkcs_sign_with_hash and
143           silc_pkcs_verify_with_hash functions into the file 
144           lib/silccrypt/silcpkcs.[ch].
145
146 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
147
148         * The client entry's userinfo pointer must be always valid. 
149           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
150           will fail since it requires the userinfo.  Now, the userinfo
151           is allocated as "" if actual userinfo does not exist.  Actually,
152           it must exist and it is totally Ok to drop client connections
153           that does not announce the userinfo.  However, we will make
154           this workaround for now.
155
156         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
157           to return the remote port by socket.
158
159 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
160
161         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
162           SILC_SERVER_PENDING_EXEC and added an new macro
163           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
164           data or when error occurs while processing the pending command.
165
166           Added new argument `destructor' into silc_server_command_pending
167           and to the SilcServerCommandPending object.  This destructor is
168           now called after calling the pending callback or if error occurs
169           immediately.  If error occurs the actual pending callback won't
170           be called at all - only the destructor.  The destructor may be
171           NULL if destructor is not needed.
172
173           All this applies for client library code as well.  Similar
174           changes were made there as well for the pending commands.
175
176           In the client, the application must now allocate the 
177           SilcClientCommandContext with the silc_client_command_alloc
178           function.
179
180         * Added reference counter to the SilcServerCommandContext.  Added
181           function silc_server_command_alloc and silc_server_command_dup 
182           functions.
183
184           Same type of functions added to the client library for the same
185           purpose as well.
186
187         * Removed the cmd_ident from IDListData away since it is now 
188           global for all connections.  It is the command identifier used
189           in command sending and with pending commands.  The affected file
190           is silcd/idlist.h.
191
192         * Added reference counter to the SilcSocketConnection objecet to
193           indicate the usage count of the object.  The object won't be
194           freed untill the reference counter hits zero.  Currently only
195           server uses this, and client ignores it.  The client must be
196           set to use this too later.  The affected files are
197           lib/silccore/silcsockconn.[ch].  Added also the function
198           silc_socket_dup to increase the reference counter.
199
200           This was mainly added because it is possible that the socket
201           is removed underneath of pending command or other async
202           operation.  Now it won't be free'd and proper DISCONNECTING
203           flags, etc. can be set to avoid sending data to connection that
204           is not valid anymore.
205
206         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
207           the connection.  After that it sets SILC_SET_DISCONNECTED.
208           It is, however, possible that the socket data is not still freed.
209           The silc_server_packet_process now checks that data is not
210           read or written to connection that is DISCONNECTED.  The socket
211           get's freed when the reference counter hits zero.
212
213 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
214
215         * Changed the client operation API: channel_message operation's
216           `sender' is now the client entry of the sender, not the nickname
217           and the `channel' is the channel entry, not the channel name.
218
219           In the private_message operation the `sender' is now also the
220           client entry of the sender not the nickname.
221
222           Affected file is lib/silcclient/ops.h and all applications
223           using the client operations.
224
225 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
226
227         * Moved the calling of ops->connect() from connect_to_server_final
228           into receive_new_id functin since that is the point when the
229           client is actually allowed to send traffic to network.  The
230           affected file is lib/silcclient/client.c.
231
232 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
233
234         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
235           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
236           (if needs broadcasting) instead of broadcasting the packets one
237           by one which would make a burst in the network traffic.
238
239         * Added `broadcast' argument to the functions in silcd/server.[ch]
240           silc_server_create_new_channel[_with_id] to indicate whether
241           to send New Channel packet to primary router.
242
243 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
244
245         * Added new function into the silcd/server.[ch] files:
246           silc_server_create_new_channel_with_id to create new channel with
247           already existing Channel ID.
248
249         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
250           lib/silccore/silcpacket.h.  This packet is used t send list of
251           Set Mode payloads inside one packet.  Server uses this to set
252           the modes for the channels and clients on those channels, that it
253           announced to the router when it connected to it.  The protocol
254           specification has been updated accordingly.
255
256         * The silc_server_new_channel did not handle the packet coming
257           from normal server as it normally does not send that.  However,
258           when it announces its channels it does send it.  Implemented
259           the support for that.
260
261         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
262           into the file lib/silccore/id.h.
263
264 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
265
266         * Fixed memory leaks in the functions silc_idlist_del_client,
267           silc_idlist_del_channel and silc_idlist_del_server in the file
268           silcd/idlist.c.  All of those leaked like a sieve.
269
270         * Fixed some small memory leaks in the client's function
271           silc_client_notify_by_server.
272
273         * Added functions into silcd/server.c: silc_server_announce_clients,
274           silc_server_announce_channels and silc_server_announce_server.
275           These functions are used by normal and router server to announce
276           to its primary router about clients, channels and servers (when
277           router) that we own.  This is done after we've connected to the
278           router.
279
280           These functions effectively implements the following packet types:
281           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
282           and SILC_PACKET_NEW_ID_LIST.
283
284         * Added new functions into the silcd/packet_receive.[ch]:
285           silc_server_new_id_list, silc_server_new_channel_list and
286           silc_server_new_channel_user_list to handle the incoming 
287           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
288
289         * Added support of changing Channel ID in the function
290           silc_server_replace_id.  If the server that announces a channel
291           to the router already exists in the router (with same name but
292           with different Channel ID), router is responsible to send
293           Replace ID packet to the server and force the server to change
294           the Channel ID to the one router has.
295
296         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
297           client that the Channel ID has been changed by the router.  The
298           normal server sends this to the client.  Client must start using
299           the new Channel ID as the channel's ID.
300
301           Implemented handling of this new type into lib/silcclient/client.c
302           into the function silc_client_notify_by_server.
303
304         * Added new function silc_idlist_replace_channel_id into the files
305           silcd/idlist.[ch] to replace the Channel ID.
306
307 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
308
309         * Call silc_server_command_identify_check always when processing
310           the IDENTIFY command in silcd/command.c
311
312 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
313
314         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
315           send keepalive packets.  The packet can be sent by clients, 
316           servers and routers.
317
318           Added function silc_socket_set_heartbeat into the file
319           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
320           If not set, the heartbeat is not performed.  The actual 
321           heartbeat is implemented in the low level socket connection
322           library.  However, application is responsible of actually
323           sending the packet.
324
325           Added silc_server_send_heartbeat to send the actual heartbeat
326           packet into silcd/packet_send.[ch].  Server now performs
327           keepalive with all connections.
328
329         * Added silc_task_get_first function into lib/silcutil/silctask.c
330           to return the timeout task with shortest timeout.  There was a bug
331           in task unregistration that caused problems.  TODO has been
332           updated to include that task system must be rewritten.
333
334         * The client library will now resolve the client information when
335           receiving JOIN notify from server for client that we know but
336           have incomplete information.
337
338         * Rewrote parts of silc_server_remove_from_channels and
339           silc_server_remove_from_one_channel as they did not remove the
340           channel in some circumstances even though they should've.
341
342         * Encryption problem encountered in server:
343
344           The LEAVE command used to send the Channel Key packet to the
345           router immediately after generating it.  However, the code
346           had earlier sent Remove Channel user packet but not immediately,
347           ie. it was put to queue.  The order of packets in the router
348           was that Channel Key packet was first and Remove Channel User
349           packet was second, even though they were encrypted in the
350           reverse order.  For this reason, MAC check failed.  Now, this
351           is fixed by not sending the Channel Key packet immediately but
352           putting it to queue.  However, this is more fundamental problem:
353           packets that are in queue should actually not be encrypted 
354           because packets that are sent immediately gets encrypted
355           actually with wrong IV (and thus MAC check fails).  So, packets
356           that are in queue should be encrypted when they are sent to
357           the wire and not when they put to the queue.
358
359           However, the problem is that the current system has not been
360           designed to work that way.  Instead, the packet is encrypted
361           as soon as possible and left to the queue.  The queue is then
362           just purged into wire.  There won't be any fixes for this
363           any time soon.  So, the current semantic for packet sending
364           is as follows:
365
366           o If you send packet to remote host and do not force the send
367           (the packet will be in queue) then all subsequent packets to the
368           same remote host must also be put to the queue.  Only after the
369           queue has been purged is it safe again to force the packet
370           send immediately.
371
372           o If you send all packets immediately then it safe to send
373           any of subsequent packets through the queue, however, after
374           the first packet is put to queue then any subsequent packets
375           must also be put to the queue.
376
377           Follow these rules and everything works fine.
378
379 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
380
381         * Added new function silc_server_remove_clients_by_server to
382           remove all client entries from ID list when the server connection
383           is lost.  In this case it is also important to invalidate all
384           client entires as they hold the invalid server entry.  This
385           fixes fatal bug when server has lost connection and will reconnect
386           again.
387
388 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
389
390         * Made some sanity checks to silc_server_daemonise like to check
391           whether the requested user and group actually exists.
392
393         * Added sanity check to SKE's silc_ske_responder_finish to check
394           that the public and private key actually is valid. 
395
396         * Invalidate the client's nickname when receiving Replace ID
397           packet and the Client ID is being replaced.  This means that the
398           server will query the nickname if someone needs it (client)
399           a bit later.
400
401         * Sort the ID Cache in client library when the ID Cache data
402           has changed (needs sorting).
403
404         * Do not allow for SILC client to create several connections to
405           several servers.  The client does not support windows right now
406           and generating multiple connections causes weird behaviour.
407
408           Irssi-silc client does support windows and can handle several
409           connections without problems, see: www.irssi.org and SILC plugin.
410
411         * Fixed some places where client was added to the IDList.  The
412           rule of thumb is following (in order to get everything right):
413           If the client is directly connected local client then the 
414           `connection' argument must be set and `router' argument must be 
415           NULL to silc_idlist_add_client function.  If the client is not
416           directly connected client then the `router' argument must
417           bet set and the `connection' argument must be NULL to the
418           silc_idlist_add_client function.
419
420         * The funtion silc_server_packet_send_local_channel actually did
421           not check whether the client was locally connected or not.  It
422           does that now.  Fixed a bug related to LEAVE command.
423
424         * Fixed Remove Channel User payload parsing bug in server's
425           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
426
427         * The server's silc_server_save_channel_key now checks also the
428           global ID list for the channel as it might not be in the local
429           list.  Fixed a bug related to LEAVE command.
430
431         * Is this the end of the [<unknown>] buglet that has been lurking
432           around for a long time?  A little for loop fix in server's
433           silc_server_command_whois_parse that is used by both IDENTIFY
434           and WHOIS command.  At least, this was a clear bug and a cause
435           of one type of [<unknown>] buglet.
436
437         * WHOIS and IDENTIFY commands call the function
438           silc_server_command_[whois/identify]_check function even if
439           we are not router server.
440
441 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
442
443         * Added --with-gmp configuration option.  If set the GMP
444           is always compiled in the SILC source tree.  If not set then
445           it is checked whether the system has the GMP3 installed.  If
446           it has then the GMP won't be compiled (the system's headers
447           and library is used), if it doesn't have it then the GMP is
448           compiled in the SILC source tree.
449
450 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
451
452         * Changed RSA private exponent generation to what PKCS #1
453           suggests.  We try to find the smallest possible d by doing
454           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
455           not security fix but optimization.
456
457 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
458
459         * Added new config entry [Identity] to fork the server and run
460           it as specific user and group.  A patch from Bostik.
461
462         * Imported Dotconf configuration library into lib/dotconf.
463           This will be used to create the SILC configuration files later.
464           It will appear in the distsribution after this commit.
465
466 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
467
468         * A big code auditing weekend happening.  Auditing code for 
469           obvious mistakes, bugs and errors.  Also, removing any code
470           that is obsolete.
471
472           Removed files for being obsolete:
473
474           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
475           inline in the file lib/silcutil/silcbuffer.h)
476
477           o lib/silcutil/silcbufutil.c (the header has inline versions)
478
479           Changed code to fix possible error conditions:
480
481           o The buffer formatting routines now check that the destination
482           buffer really has enough space to add the data.  This applies for
483           both buffer formatting and unformatting 
484           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
485           unformatting was changed to accomodate following rules: 
486           XXX_*STRING_ALLOC will allocate space for the data into the pointer
487           sent to the function while XXX_*STRING will not allocate or copy 
488           the data into the buffer.  Instead it sets the pointer from the
489           buffer into the pointer sent as argument (XXX_*STRING used to
490           require that the pointer must be allocated already).  This change
491           makes this whole thing a bit more consistent and more optimized
492           (note that the data returned in the unformatting with XXX_*STRING
493           must not be freed now).  The routines return now -1 on error.
494
495           o Tried to find all code that use buffer_format and buffer_unformat
496           and added return value checking to prevent formatting and
497           especially unformatting errors and possible subsequent fatal
498           errors.
499
500           o Changed ske->x and ske->KEY to mallocated pointers in
501           lib/silcske/silcske.h.  Fixed possible data and memory leak.
502
503           o Added return value checking to all *_parse* functions.  Fixed
504           many memory leaks as well.
505
506           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
507           so that buffer overflows would not happen.  All code now also
508           checks the return value as it can fail.
509
510 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
511
512         * Added reconnection support to server if the normal server looses
513           its connection to the router (for example if router is rebooted).
514           The server performs normal reconnection strategy implemented
515           to the server.  Affected file silcd/server.c.
516
517 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
518
519         * Added new packet type SILC_PACKET_SET_MODE that is used to
520           distribute the information about changed modes (for clients,
521           channels and clients channel modes) to all routers in the
522           network.  Updated the protocol specification accordingly.
523
524           Added functions into silcd/packet_send.c and 
525           silcd/packet_receive.c: silc_server_send_set_mode, 
526           silc_server_set_mode.
527
528           Added new files silcmode.[ch] into lib/silccore that implements
529           the encoding and decoding of Set Mode Payload.  Added new type
530           SilcSetModePayload.  Moved the definitions of different modes
531           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
532
533 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
534
535         * Oops, a little mistake in server's connection authentication 
536           protocol.  The protocol is not ended with FAILURE but with
537           SUCCESS if the authentication is Ok. :)  Affected file is
538           silcd/protocol.c.
539
540         * Implemented NICK_CHANGE notify handling in server in the file
541           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
542           the local clients on the channel.  After the changing nickname
543           in router environment snhould work and the [<unknown>] nickname
544           should appear no more.
545  
546           The silc_server_replace_id function that receives the Replace ID
547           payload now sends the NICK_CHANGE notify type also in the file
548           silcd/packet_receive.c
549
550         * Changed WHOIS and IDENTIFY command to support the maximum amount
551           of arguments defined in protocol specs (3328 arguments).  This 
552           fixed a bug that caused problems when there were more than three
553           users on a channel.
554
555 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
556
557         * Added extra parameter, command identifier, to the
558           silc_client_send_command so that explicit command identifier
559           can be defined.
560
561           Changed that ID list routines uses specific command identifier
562           when sending WHOIS/IDENTIFY requests to the server so that they
563           can be identified when the reply comes back.
564
565           Affected files lib/silcclient/command.[ch],
566           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
567
568         * Added `sender' argument to silc_server_packet_send_to_channel
569           to indicaet the sender who originally sent the packet to us
570           that we are now re-sending.  Ignored if NULL.  Affected file
571           silcd/packet_send.[ch].
572
573         * Added some server statistics support in silcd/server_internal.h
574           SilcServerStatistics structure and around the server code.  Also
575           send some nice statistics information when client is connecting
576           to the client.
577
578 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
579
580         * Fixed channel ID decoding in server's JOIN command reply in
581           silcd/command_reply.c
582
583         * Fixed braodcasting of replace ID payload to not to send it if
584           we are standalone server in silcd/packet_receive.c.
585
586         * Fixed all channel message sending routines to not to send
587           packets to clients that has router set, since they are routed
588           separately in the same function earlier.  Affects file
589           silcd/packet_send.c and all channel packet sending functions.
590
591         * In USERS reply, res_argv[i] are not allocated, the table
592           is allocated.  Thus changed that free the table, not its
593           internals.
594
595         * In server's whois_check and identify_check if the client is
596           locally connected do not send any WHOIS commands - they are not
597           needed.
598
599 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
600
601         * Fixed some minor bugs in client when sending WHOIS command.  The
602           arguments was in wrong order.
603
604         * Removed statis function add_to_channel from server in 
605           silcd/command.c that was previously used with the joining but
606           is obsolete now.
607
608         * Tested USERS command in router environment successfully with two
609           routers, two servers and two clients.
610
611 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
612
613         * Reorganized the USERS command and command reply in client library
614           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
615           When the command is given by user we register a pending command
616           callback that will reprocess the command after the reply has been
617           received from the server.  When reprocessing the packet we then
618           display the information.  Thus, the USERS information is displayed
619           now in the command callback instead of in the command reply
620           callback.  The processing of the command is same as previously
621           when server has sent the command reply in the JOINing process.
622
623         * Added to USERS command in silcd/command_reply.c to join the client,
624           we didn't use to know about, to the channel after we've created
625           a client entry for it.  Also, for clienet we did know already still
626           check whether it is on the channel or not and add it if not.
627
628         * Removed silc_server_command_join_notify as the function and its
629           use was obsolete.
630
631 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
632
633         * Changed the client's pending command handling to the same as the
634           server's pending command handling.  It is also now possible to
635           execute command reply functions from other command reply
636           function as the function callbacks for commands and command
637           replies are one and same.  The pending commands are not static
638           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
639           in client connection context.  Thus, pending commands are server
640           connection specific as it is convenient.
641
642           Changed the function silc_client_command_pending and
643           silc_client_command_pending_del and added new function
644           silc_client_command_pending_check.  Removed the 
645           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
646           macros.
647
648         * Added cmd_ident, current command identifier, to the client
649           connection context in lib/silcclient/client.h to keep track on
650           command identifiers used in command sending.  Client's command reply
651           function handling now supports the mandatory command identifiers.
652
653         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
654           funtions in client to fully support pending command callbacks.
655
656         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
657           as one of the arguments to the application in the command reply
658           client operation.
659
660         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
661           before first releasing SILC but came back.  Now it is removed again
662           and should come back nomore.  The FORWARDED flag was used only
663           by the JOINing procedure by forwarding the command packet to router.
664           Now, the JOINing procedure has been changed to more generic (due
665           to various router environment issues) and FORWARDED is not needed
666           anymore for anything.  The protocol specification is yet to be
667           updated.
668
669           Now, removed silc_server_packet_forward from server and the flag
670           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
671
672 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
673
674         * Renamed NAMES command to USERS command.  The NAMES was named that
675           due to historical reasons.  Now it is renamed.  Also, rewrote
676           parts of the USERS command.  The nickname list is not sent anymore
677           by the server.  Only Client ID and mode lists are sent in the USERS
678           command.  Changed this also to the protocol specification.
679
680           The client now resolves the names and stuff after it receives
681           the USERS list from the server when joining to the channel.
682
683         * WHOIS and IDENTIFY commands has been changed to support multiple
684           Client ID's per command.  One can now search for multiple users
685           in the network by sending only one WHOIS or IDENTIFY command.
686           Changed the code and the protocol specifications.
687
688         * Removed silc_server_command_identify_parse and changed that IDENTIFY
689           uses silc_server_command_whois_parse to parse the request. */
690
691         * If normal server, do not parse the WHOIS and IDENTIFY requests
692           before sending it to the router.  Saves some time.
693
694 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
695
696         * Fixed JOIN command on client library.  Wrong number of arguments
697           used to crash the client.
698
699         * Added silc_server_channel_has_global function to check whether
700           channel has global users or not.
701
702         * Added silc_server_channel_has_local function to check whether channel
703           has locally connected clients on the channel.
704
705         * The silc_server_remove_from_one_channel now checks whether the
706           channel has global users or not after given client was removed from
707           the channel.  It also checks whether the channel has local clients
708           on the channel anymore.  If it does not have then the channel entry
709           is removed as it is not needed anymore.
710
711         * The silc_server_notify now checks on JOIN notify whether the joining
712           client is one of locally connected or global.  If it is global then
713           the channel has now global users on the channel and that is marked
714           to the channel entry.  Also, it now saves the global client to
715           global list who is joining and JOINs it to the channel.  This is
716           for normal server, that is.
717
718           Changed silc_server_send_notify_on_channel, 
719           silc_server_packet_relay_to_channel and 
720           silc_server_packet_send_to_channel check if we are normal server
721           and client has router set (ie. global client) do not send the
722           message to that client, as it is already routed to our router.
723
724         * Implemented LEAVE notify type handling in silc_server_notify 
725           function.
726
727         * Tested LEAVE command in router environment successfully.  Tested
728           with two routers, two servers and two clients.
729
730         * Updated TODO.
731
732         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
733
734         * Implemented SIGNOFF notify type handling in silc_server_notify
735           function.
736
737         * silc_server_remove_id now removes the client entry from all channels
738           it has joined and thusly sends SIGNOFF notify type.
739
740         * Rewrote the NAMES list generation in server by removing two excess
741           loops.  The lists are created now inside one loop.
742
743 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
744
745         * silc_server_remove_channel_user checks now also global list
746           for channel and client.
747
748         * silc_server_new_channel_user checks now both local and global
749           list for channel and client.  Fixed a bug in client id decoding.
750           Used to decode wrong buffer.
751
752         * silc_server_channel_message checks now both local and global
753           list for channel entry.
754
755         * Tested channel joining (hence JOIN) in router environment
756           successfully.  Tested with two routers, two servers and two
757           clients.
758
759         * Tested channel message sending in router environment successfully.
760
761 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
762
763         * Added silc_server_save_channel_key into server.[ch] to save the
764           received channel key in Channel Key payload processing. It is
765           also used in JOIN command reply handling.
766
767           Equivalent function silc_client_save_channel_key added into
768           client.[ch] into client library.
769
770         * Changed JOIN command reply to send information whether the channel
771           was created or not (is existing already) and the channel key 
772           payload.  Changed protocol specs accordingly.
773
774         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
775           the request was sent by ID and not by nickname.  Crashed on
776           NULL dereference.
777
778 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
779
780         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
781           now correctly save the received data.
782
783         * silc_server_free_sock_user_data now notifies routers in the 
784           network about entities leaving the network.
785
786           At the same time implemented functions silc_server_remove_id
787           and silc_server_send_remove_id to receive and send REMOVE_ID
788           packets.  The packet is used to notify routers in the network
789           about leaving entities.  The ID removed will become invalid in
790           the network.
791
792         * Added function silc_idlist_del_server into server. Removes and
793           free's server entry from ID list.
794
795         * silc_server_private_message function now checks, if we are router,
796           that the destination ID really is valid ID, naturally.
797
798         * In router when NEW_ID packet is received (for new client) the
799           hash of the Client ID is saved in the ID Cache but the
800           client->nickname is set to NULL, instead of putting the hash
801           to it as well.
802
803           IDENTIFY command now also checks that client->nickname must be
804           valid. If it is not if will request the data from the server who
805           owns the client.  Added new function 
806           silc_server_command_identify_check.
807
808         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
809           to set the command to already allocated Command Payload.
810
811         * Tested private message sending in router environment with two
812           routers, two servers and two clients.  Fixed minor bugs and now
813           it works fine.
814
815         * Fixed segfault from client's NAMES command. Used to crash if
816           not on any channel.
817
818         * Forwarded packets must not be routed even if it is not destined
819           to the receiver.  Changed server code comply with this.
820
821 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
822
823         * Added `require_reverse_mapping' boolean value to ServerParams
824           structure. If TRUE (not default) the server will require that
825           the connecting host has fully qualified domain name.
826
827           If the reverse mapping is not required and hostname could not be
828           found the IP address is used as hostname.
829
830 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
831
832         * Implemented version string checking to both client and server.
833           The check is incomplete currently due to the abnormal version 
834           strings used in development version of SILC.
835
836         * Changed all command functions in server to use the new
837           CHECK_ARGS macro.
838
839 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
840
841         * Changed char *data to unsigned char *data in ID Cache system to
842           support binary data as ID Cache data. Changed code to support
843           binary data in lib/silccore/idcache.c.
844
845         * Renamed silc_server_packet_relay_command_reply to 
846           silc_server_command_reply as it is normal packet receiving
847           function. Rewrote the function to accept command replys for
848           servers and not only for clients.
849
850         * Mark remote router always as registered server if we are connecting
851           to it.  Otherwise, commands sent by the router to us are ignored.
852
853         * All ID List find routines now returns the ID Cache Entry pointer
854           as well if requested.
855
856         * WHOIS command works now in router environment, tested with two
857           routers, two servers and two clients.
858
859         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
860           in router environment (as it is almost equivalent to WHOIS) but
861           hasn't been tested thoroughly.  Added new functions:
862
863           silc_server_command_identify_parse
864           silc_server_command_identify_send_reply
865           silc_server_command_identify_from_client
866           silc_server_command_identify_from_server
867
868         * Disabled route cache adding because adding two different ID's with
869           same IP replaces the old cache entry thus giving wrong route.
870           The entry->router->connection is always the fastest route anyway
871           so route cache may not be needed.  Of course, new routes maybe
872           established after receiving the ID when the entry->router->connection
873           might not be anymore the most optimal.
874
875 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
876
877         * Add route cache for received ID for fast routing.
878
879         * Added silc_server_packet_route to route received packet on router
880           that is not destined to us.
881
882         * Renamed silc_server_get_route to silc_server_route_get.
883
884         * Added id_string and id_string_len fields into SilcServer to
885           include encoded ServerID for fast comparing without excess
886           encoding of the ID's.
887
888         * Cleaned up WHOIS command on server side. Added following static
889           functions:
890
891           silc_server_command_whois_parse
892           silc_server_command_whois_check
893           silc_server_command_whois_send_reply
894           silc_server_command_whois_from_client
895           silc_server_command_whois_from_server
896
897         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
898           arguments in command replies. All command functions should be
899           updated to use this macro.
900
901 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
902
903         * Minor typo fixes on command reply handling on server.
904
905 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
906
907         * Added silc_server_command_add_to_channel internal routine to add
908           the client to the channel after router has created the channel and
909           sent command reply to the server.
910
911         * Added generic silc_server_send_command to send any command from
912           server.
913
914         * Use static buffer with ID rendering instead of duplicating data.
915
916 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
917
918         * Fixed a channel user mode bug when joining to a channel server gave
919           everybody channel founder rights, oops.
920
921         * We mark ourselves as the router of the incoming server connection
922           if we are router ourselves.  This way we can check in some packet
923           sending functions whether it is locally connected server.  For
924           incoming router connections we put NULL.
925
926         * For router sending packets locally means now always sending the
927           packet cell wide; to local clients and local servers.  For normal
928           server sending packet locally means sending it to only local
929           clients.
930
931         * Fixed the JOIN command to really work in router environment.  If the
932           channel is created it is always created by the router.  Router is
933           also responsible of making the initial joining to the channel,
934           sending JOIN notify to the sending server and distributing 
935           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
936           does not exist server doesn't do anything else but forward the
937           command to the router which performs everything.
938
939         * Added silc_server_send_channel_key function to send the Channel Key
940           payload.
941
942         * Added silc_server_create_channel_key to create new channel key.  The
943           channel key is now re-generated everytime someone joins or leaves
944           a channel, as protocol dictates.  Note: channel->key_len is the
945           key length in bits.
946
947 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
948
949         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
950           packet_receive.[ch] to separate packet sending and receiving
951           routines.  The server.[ch] now includes everything else including
952           actual packet processing (writing and reading data) and other
953           server issues.
954
955           Renamed silc_server_private_message_send_internal to
956           silc_server_send_private_message.  The routine is still though
957           used only to relay private messages as server does not send
958           private messages itself.
959
960           Renamed silc_server_new_channel to silc_server_create_new_channel
961           and added new function sicl_server_new_channel that handles the
962           incoming New Channel packet.  Added also new sending function
963           silc_server_send_new_channel to send New Channel Payload.
964
965         * Added new function silc_server_notify to process incoming notify
966           packet to the server/router. Server may then relay the notify
967           to clients if needed.
968
969         * Added new function silc_server_new_channel_user to process incoming
970           New Channel User packet.  Router will redistribute the packet and
971           send JOIN notify to its local clients and locally connected servers
972           if needed.  Normal server will send JOIN notify to its local client
973           on same channel when received this packet.  Added also corresponding
974           sending function silc_server_send_new_channel_user to sent the
975           payload.
976
977         * Added boolean route argument to send_notif_to_channel and
978           packet_send_to_channel functions to attempt to route the packet
979           if it is TRUE and send only locally if it is FALSE.
980
981 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
982
983         * silc_server_replace_id now broadcasts the received replace ID
984           packet if it is not broadcast packet already. The router must
985           broadcast to inform other routers about changed ID.
986
987         * Added backpointer to server's router into SilcServer context in
988           silcd/server_internal.h.
989
990         * Fixed silc_server_packet_broadcast to send correct broadcast
991           packets.
992
993         * The channel key is now distributed to the local client as soon
994           as it is received from the router (in router environment) so that
995           no other packet may be sent for the channel until client has 
996           received the key.
997
998         * silc_server_remove_channel_user now broadcasts the received
999           Remove Channel User packet if it is not broadcast packet already.
1000           The router must broadcast to inform other routers about removed
1001           channel user.
1002
1003         * Added users field into SilcPacketContext that is a reference count
1004           of the context.  One can increase the reference count by calling
1005           silc_packet_context_dup which is now changed to just increase the
1006           reference count instead of duplicating the data.  The reference
1007           count is decresed by calling silc_packet_context_free that will
1008           free the data after the reference count hits zero.
1009
1010           For now on the packet context and everything allocated into it
1011           (including the raw packet from network) must be freed by calling
1012           the new silc_packet_context_free function.  Added also new function
1013           silc_packet_context_alloc that must be used now to allocate the
1014           context.  This also means that if a routine is asynchronous from
1015           silc_[client/server]_packet_parse_type the packet context must
1016           be duplicated by calling silc_packet_context_dup.  Otherwise it
1017           gets free'd after silc_[client/server]_packet_parse_type returns.
1018           Also, one must remember that if packet is duplicated then its 
1019           reference count must be decresed by calling the free function as
1020           many times as it was duplicated.
1021
1022         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
1023           from both client and server.
1024
1025 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1026
1027         * Made joining to a channel working in router environment.
1028
1029         * Cleaned up JOIN command on server side and create function
1030           silc_server_command_join_channel internal routine to make the
1031           joining happen.
1032
1033 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1034
1035         * Changed silc_command_pending list to SilcDList.  Also, added
1036           `ident' field to SilcServerCommandPending structure to identify
1037           the reply and to call correct callback.
1038
1039           Added silc_server_command_pending_check function to replace the
1040           corresnponding macro.  The silc_command_pending list is not
1041           extern anymore.
1042
1043         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
1044           to set identifier to previously allocated Command Payload.  It
1045           is used to set identifier for command when resending Command
1046           Payload.
1047
1048         * Added silc_command_payload_encode_payload to encode Command
1049           Payload buffer from SilcCommandPayload structure.
1050
1051         * Added silc_argument_payload_encode_payload to encode Argument
1052           payload buffer from SilcArgumentPayload structure.
1053
1054 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1055
1056         * Changed WHOIS command to support router connection on server side.
1057           The whois request is always sent to router unless the server is
1058           standalone server.  After server has received the reply from the
1059           router will it send the reply to the client.
1060
1061         * Added silc_server_packet_broadcast into silcd/server.[ch] to
1062           broadcast received broadcast packet.  The function is used only
1063           by router.  The broadcast packet is always sent to the router's
1064           primary route.
1065
1066         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
1067           render given ID to printable string, for log files for example.
1068
1069 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1070
1071         * Made basic router to router connections working.  At least they
1072           can now connect to each other but nothing really works the way
1073           they are supposed - yet.
1074
1075         * Added new initiator token to RouterConnection configuration
1076           file in silcd/serverconfig.[ch].  It is used to tell whether we
1077           are the initiator to the remote router or whether we'll expect
1078           the other end to connect.
1079
1080         * Moved registering of listener task to silc_server_init, hence
1081           the server starts listenning as soon as it is run, even if it
1082           does not have connections to other routers.  Let's see how well
1083           this will work.
1084
1085         * Changed default connection retry timeouts for more suitable in
1086           silcd/server.h.
1087
1088         * Removed cipher and such arguments from silc_idlist_add_client
1089           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
1090           Added new function silc_idlist_add_data to add the keys and stuff
1091           to any ID entry.
1092
1093         * Added SilcIDListData structure and added it to SilcClientEntry
1094           and SilcServerEntry as their first field in the structure.  This
1095           way we can explicitly cast the ID entries to the SilcIDListData
1096           structure and get common data for the entries.  In past, we had
1097           to first check what type of connection it is and then cast it to
1098           correct ID entry type.  Now, we can directly cast the opaque
1099           pointer to the SilcIDListData (no matter what ID entry it actually
1100           is) and get the data needed.
1101
1102 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1103
1104         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
1105           in some circumstances even if threre were timeout tasks, though not
1106           IO tasks, but tasks anyway.  Now fixed.
1107
1108         * Defined SilcServerConnection structure to hold connection specific
1109           stuff about directly connected servers and routers.  The definition
1110           is currently in silcd/server_internal.h.  I thought about having
1111           a bit more important role fro this struct but for now it is used
1112           only when connecting to other server (or router actually).
1113
1114         * Added connecting retry support in server when connecting to
1115           router(s).  The retry feature implement exponential backoff
1116           algorithm.  Also, added SilcServerParams structure to hold default
1117           parameters for server.  For now, it include these retry settings
1118           and are hard coded.  After server is moded to be as Silc Server
1119           Library this structure will be more important.
1120
1121 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1122
1123         * Changed client librarys channel->clients table to SilcList and
1124           changed code accordingly.
1125
1126 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1127
1128         * Changed client's channel table to SilcList and changed code 
1129           accordingly.  Also changed SilcChannelClientEntry to include back-
1130           pointer to the channel so that client entry can use that structure
1131           as list as well and we have fast cross-reference to the channel.
1132           This change dramatically decreased the complexity of channel
1133           handling with client entry and vice versa (removed one extra
1134           loop when searching for channel entry from many functions).
1135
1136         * Changed server->sim from table to SilcDList and changed code
1137           accordingly.
1138
1139         * NAMES command can now be used from user interface.  It will show
1140           the user list on the channel, neatly.
1141
1142         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
1143           Code now saves realname of the user if it becomes available.
1144
1145         * Renamed configure.in to configure.in.pre and made ./prepare
1146           script to automatically add correct version string to
1147           configure.in which it creates from configure.in.pre.
1148
1149 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1150
1151         * NAMES command reply now shows users mode with the nickname when
1152           joining to channel.
1153
1154         * Moved silc_client_ch[u]mode[_char] functions from 
1155           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
1156           place sucks, they are utility functions and should be in some
1157           other file.
1158
1159         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
1160
1161         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
1162           cras.
1163
1164 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1165
1166         * Updated README.
1167
1168         * Added TRQ (efficient deque and list library) into lib/trq.  This is
1169           a very good list library that is currently used in the SILC.  Defined
1170           SilcList API over the library because I didn't like the API very
1171           much.  See lib/trq/silclist.h for the API and examples of how to
1172           use the API.  Fixed various places in the code to use the new
1173           SilcList API. The SilcList is meant for lists that has a structure
1174           already defined as a list.  It is not suitable to add just some
1175           context to the list (in TRQ, the context is the list actually).
1176
1177           So, I defined SilcDList that can be used for the purpose where 
1178           predefined list structure does not exit.  This can be used as
1179           such list.  Now some context just can be added to the SilcDList.
1180           Currently this list is not used in the SILC just yet, though there
1181           are a lot places where this can replace dynamically allocated
1182           tables and I will fix these places, later, to use SilcDList.
1183           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
1184           and use TRQ internally).
1185
1186           Also fixed some annoying warning messages that the original TRQ
1187           code generated.  Also minor changes to TRQ's Makefile.in.
1188
1189         * Added support for querying by Client ID to both WHOIS and 
1190           IDENTIFY commands into server, as required by the protocol.
1191
1192         * Removed method function pointers from SilcBuffer structure. They
1193           weren't used to anything and just increased the context size for
1194           no good reason.  This change also made silc_buffer_alloc and
1195           silc_buffer_free functions inline functions.
1196
1197         * Disabled command flooding detection support until it's fixed so 
1198           that it accepts commands in but does not execute them more than once
1199           in two seconds.
1200
1201         * Added silc_net_localhost(), to return local hostname, into
1202           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
1203           that must be initialized before calling silc_client_init.
1204
1205         * Added new function: silc_server_send_notify_on_channels to send
1206           notify messages to all channels client has joined.  It is assured
1207           that the message is sent only once per client.
1208
1209         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
1210           lib/silcutil/silcutil.[ch] as silc_format function.  The new 
1211           function is generic and is used by server as well, not only by
1212           the logging routines.
1213
1214         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
1215           the provided version string was not acceptable.  Added new function:
1216           silc_ske_check_version into lib/silcske/silcske.h.  The function
1217           must be implemented by the application (client or server) and it
1218           does not reside in the SKE library.  The function checks the version
1219           string remote end sent.
1220
1221         * Added back pointers (to opaque context and to SilcSocketConnection) 
1222           into SilcPacketContext structure into lib/silccore/silcpacket.h.
1223
1224         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
1225           duplicate packet context structure.
1226
1227         * Changed `notify' client operation to send same arguments as client
1228           receives from server except for ID's.  ID's are mapped to correct
1229           ID entry and that is returned.  Also, if channel entry is not sent
1230           by server but the notify is for channel the channel entry is sent
1231           to application (otherwise application doesn't know that it is for
1232           channel (library gets it from packet's Destination ID)).
1233
1234         * Added silc_client_remove_from_channels into client library to 
1235           remove a client from all channels it has joined to.  Used when 
1236           received SIGNOFF notify from server.  Added also new function
1237           silc_client_replace_from_channels to replace old ID entry with
1238           new ID entry on all channels.  Used when received NICK_CHANGE
1239           notify from server.
1240
1241         * Fixed ID Cache list handling in silc_idlist_get_client in 
1242           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
1243           to get (or query) client by ID.
1244
1245         * Updated TODO list.
1246
1247         * Added connection authentication status message defined by the
1248           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
1249           support for these into the code in client and server side.
1250
1251         * Added generic function silc_client_send_command to send any command
1252           with variable argument list.  Application should use this function
1253           to send commands if the command functions provided by the library
1254           does not suite for the application's user interface needs.
1255
1256         * Added new `failure' client operation.  Application is notified about
1257           received failure packet if client is executing a protocol.  In this
1258           case the protocol's execution has failed.
1259
1260         * Added SKE's end notify to send the SKE_SUCCESS notify message that
1261           is required by the protocol.
1262
1263         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
1264           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
1265           error at our end.
1266
1267         * Added status flag to SilcSKE object to indicate realtime status
1268           of the SKE protocol.
1269
1270         * Application receives now exactly same command reply arguments as
1271           the library receives from server.  However, if ID is received the
1272           corresponding ID entry is returned to the application (eg. Client
1273           ID is mapped to correct SilcClientEntry entry and that is returned).
1274           Changed command_reply client operation due to this change.
1275
1276         * Changed all ID's in commands and in command replys as ID Payloads.
1277           Change affected both client and server side codes.
1278
1279           All ID's sent in SILC network (with execption of ID's in SILC
1280           Packet header) are sent in ID Payload to support variable length
1281           ID's.
1282
1283         * Server now notifies nick changes and notifies all clients on
1284           the channels about the new nickname (about the new Client ID,
1285           actually).
1286
1287         * Implemented CMODE command to change channel modes. Supports all
1288           channel modes defined by the protocol specs except ban and invite
1289           lists. (Also, private channel key mode is supported but support for
1290           setting private channel key in client is missing, thus, this mode
1291           has no effect on client side (except that server requires that the
1292           client uses private channel key and normal channel traffic does not
1293           work anymore)).
1294
1295           Also, invite mode works per se, but INVITE command does not work
1296           yet correctly, so you can set channel as invite only channel but
1297           inviting clients to the channel does not work (it is yet to be
1298           thought what's the best way to do it).
1299
1300         * Added new command SILC_COMMAND_CUMODE to change user mode on the
1301           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
1302           Implemented CUMODE command to change user's mode on the channel.
1303           Supports all modes defined by the protocol specs.
1304
1305         * Added NAMES command reply to return users modes on the channel.
1306
1307         * Removed unnecessary and slow ciphers from lib/silccrypt.
1308
1309         * Set SO_KEEPALIVE option to connection sockets by default.
1310
1311         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
1312
1313         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
1314           redefined the Notify Payload into protocol specs.
1315
1316         * Added silc_id_payload_parse_id to get ID directly from raw
1317           ID payload data.
1318
1319 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1320
1321         * Changed SILC_COMMAND_IDENTIFY in protocol specification to 
1322           accept searching by Client ID as well.
1323
1324         * Added support for LEAVE and SIGNOFF notify types in client library.
1325
1326         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
1327           to parse ID Payload from raw data.
1328
1329 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1330
1331         * Added flags parameter into silc_ske_assemble_security_properties
1332           function in lib/silcske/silcske.[ch].
1333
1334         * Changed notify client operation to fit better for notify messages
1335           sent by server.  The notify payload received from server is now
1336           passed to the application (after parsing it to SilcNotifyPayload).
1337           It is application's responsibility to retrieve the arguments
1338           from the payload and show the message the way it wants.  The message
1339           sent by server is implementation specific.
1340
1341         * Changed public keys to comply with the protocol specification.
1342           Old public keys are not supported anymore and are not compatible.
1343
1344         * Removed nickname from Channel Payload as the latest draft removed
1345           it.  The client must resolve the nickname from the NAMES command
1346           reply received when it joined the channel.
1347
1348           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
1349
1350 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1351
1352         * Fixed some errors in protocol specification drafts.
1353
1354         * Created lib/silccore/silcnotify.c to implement Notify Payload
1355           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
1356           generic payloads described by protocol specifications.  The file
1357           includes implementations for ID Payload and Argument Payload.
1358
1359         * Changed Command Payload implementation to use the new Argument
1360           Payload.  Changed command_xxxx_payload to command_payload_xxxx
1361           to comply with SILC coding conventions.
1362
1363         * Added suppport for Argument Payload handling in Notify Payload
1364           implementation as protocol requires it.  Added the new support
1365           into server and client lib as well.
1366
1367 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1368
1369         * Added support for multiple nicknames on same channel.  [n] is
1370           added locally to the nickname if there are more than one same
1371           nicknames on the channel.
1372
1373         * Server now sends all nicknames that matched WHOIS request.
1374           Client also shows the list received from server.
1375
1376         * Added TOPIC command to client side.  User can now set and show
1377           current topic on channel.
1378
1379         * Added MOTD command to client and server.  Also, server sends the
1380           motd when client connects to the server.
1381
1382         * Changed version strings to comply ISO 8601.
1383
1384 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1385
1386         * Fixed protocol error handling in client library.  It should now
1387           cope even if the SKE fails for some reason.
1388
1389         * Made new protocol specification drafts for submitting to IETF.
1390
1391         * Implemented TOPIC command to server in silcd/command.c.
1392
1393         * Added two new notify types into lib/silccore/silcnotify.h:
1394           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
1395           notify nickname change and topic setting/change on a channel.
1396
1397         * API change of command_reply operation in client library.  The
1398           application gets now the status type received from server as well.
1399
1400 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1401
1402         * Removed the function just added to lib/silcutil/silcschedule.[ch].
1403
1404         * Cras fixed and optimized the packet handling even further and
1405           it should work now.  Minor change to the prototype of function
1406           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
1407
1408 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1409
1410         * Added new function into lib/silcutil/silcschedule.[ch]:
1411           silc_schedule_with_fd to select() a specified fd.  The function
1412           returns after timeout expires or data arrives or goes.  The
1413           function is used by packet routines to wait that all data is
1414           received from network.
1415
1416         * Fixed data reading from network in lib/silccore/silcpacket.c.
1417           The code now assures that all data is read from the fd and then
1418           continues packet processing.  This was a bug fix since the code
1419           used to drop some data in some circumstances.
1420
1421         * Added new function into lib/silcclient/client.[ch]:
1422           silc_client_start_key_exchange to start key exchange after
1423           connection has been established to server.  The code internally
1424           now uses this funtion but its main purpose was to provide it
1425           for applications that perform their own connecting.  After
1426           application has created a connection it merely calls this
1427           function to start the key exchange between client and server.
1428           The library takes care of everything else after that.
1429
1430           Updated also lib/silcclient/README to explain the usage of
1431           this new function.
1432
1433         * Do not send to application information that connection has
1434           been established.  Application gets notified it by connect
1435           operation anyway.
1436
1437 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1438
1439         * Applied cras's patch to add silc_schedule_one function.  The
1440           function runs scheduler once and returns.
1441
1442         * Fixed the scheduler after cras messed it up.  The timeout
1443           handling works now as it's supposed to work.
1444
1445         * Added into lib/silccore/ silcnotify.h to include notify
1446           message types support.  Changed silc_server_send_notify*
1447           functions, in server.[ch], to support those new notify types.
1448           Added the support for the notify types into client library,
1449           as well.  Added new notify client operation into ops.h in
1450           lib/silcclient/.
1451
1452         * Changed silc_server_packet_send_to_channel to send normal
1453           packets instead of just channel message packets.  The function
1454           is now used to send the notify packets to channels.  It is not
1455           used to send channel message packets anymore, as server never
1456           sends them anymore.
1457
1458         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
1459           va_arg()s as it seems to require it nowadays.  I guess, if SILC
1460           is compiled with older va_arg() the new code should work anyway.
1461
1462 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1463
1464         * Splitted core library.  Core library (lib/silccore) includes
1465           now only SILC protocol specific core (and common) components.
1466           Created new utility library (lib/silcutil) that includes more
1467           generic purpose stuff.  The stuff for util library was taken
1468           from the old core library.  This was minor and easy split.
1469
1470         * Created SILC Client Library (lib/silcclient) that includes
1471           implementation of the SILC client without user interface.  This
1472           was major move from silc/ directory.  The code has been changed
1473           so that it is transparent towards the user interface.  The
1474           silc/ directory includes now the same user interface as before
1475           and it uses the new client library.  Read lib/silcclient/README.
1476           Basicly, the client library performs everything else related
1477           to SILC except user interface handling.  Also, configuration
1478           files are considered to be part of user interface and library
1479           does not handle them.
1480
1481           This change also changed a lot of structures, function naming etc.
1482           Most important change was that SilcClientWindow object was
1483           renamed to SilcClientConnection in the client library.  Created
1484           also new file lib/silcclient/ops.h.  Also added new files
1485           silc/local_command.[ch] and silc/client_ops.[ch].
1486
1487           All these changes were made to make it easier for user interface
1488           designers to create what ever user interface for the SILC client
1489           they want.
1490
1491           It is also expected that the server will be moved to lib
1492           directory as well and SILC Server Library will be created;
1493           sometimes in the future.
1494
1495         * Removed Local commands from lib/silccore/silccommand.h as
1496           they are application specific and new client library does not
1497           handle any of those anymore.
1498
1499         * Several functions moved to lib/silcutil/silcutilc.[ch] from
1500           old client implementation in silc/.
1501
1502         * Added support for callback functions in SILC_LOG_* macros.
1503           Application can now set its own callbacks that will be called
1504           instead of using the default functions that will always print
1505           the debug messages to stderr (or stdout).  Also, debugging can
1506           now be disabled by setting silc_debug to FALSE and re-enabled by
1507           setting it to TRUE.  Note, that logging will still work even
1508           if debugging is disabled.
1509
1510           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
1511           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
1512           silc_log_reset_debug_callbacks.
1513
1514         * To enable debugging in silc client one must give now -d
1515           option on command line.
1516
1517         * Changed silc_schedule_init to automatically allocate task queues
1518           if they are not allocated before calling it.
1519
1520 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1521
1522         * Added GMP 3.1 into math library.
1523
1524 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1525
1526         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
1527           a channel in SILC network.  The packet is used by servers and
1528           routers to notify other routers that user has left a channel.
1529           This little feature was missing until now.  Added the feature
1530           to protocol specification as well.
1531
1532           Added functions: silc_server_send_remove_channel_user and
1533           silc_server_remove_channel_user into server.[ch].
1534
1535         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
1536           lib/silccore/silcpacket.h.  However, they are not implemented
1537           yet.
1538
1539 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1540
1541         * Fixed joining to a channel and sending channel messages
1542           between server and router.  The channel message sending should
1543           now work inside a cell.
1544
1545 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1546
1547         * Fixed the private message sending between server and router.
1548           The private message sending should now work inside a cell.
1549
1550         * Added silc_server_replace_id into server.[ch] to replace
1551           existing ID in the SILC network.
1552
1553         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
1554           and silc_idlist_replace_server_id into idlist.[ch] in server.
1555
1556 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1557
1558         * Fixed the server to server connections.  Server can again now
1559           connect to router.  Router to router connections probably does
1560           not work just yet.
1561
1562 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1563
1564         * Added dynamic protocol registering support.  Now protocols can
1565           registered and unregistered on the fly.  Patch by cras.
1566
1567 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1568
1569         * Added lib/contrib directory to hold routines that some platforms
1570           don't have but are needed by SILC.
1571
1572         * Added getopt.c, getopt1.c and getopt.h from GNU C library
1573           into lin/contrib to provide getopt() and getopt_long() for
1574           those who don't have it.
1575
1576 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1577
1578         * Added AWAY command to client.  When away message is set and
1579           client receives a private message packet the client automatically
1580           replies to the sender with the away message.
1581
1582         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
1583           bug seemed to be the cause of recent problems when compiling
1584           with gcc-2.95.
1585
1586         * Added version detection support to SKE protocol specification
1587           and added the new changes to the SKE implementation as well.
1588           There were other minor changes in the SKE protocol as well.
1589
1590           Many changes in lib/silcske/silcske.[ch] and in
1591           lib/silcske/payload.[ch].
1592
1593         * Added ^U functionality, clear input line.  Patch from cras.
1594
1595 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1596
1597         * Mainly small bugfixes on core library.  Fixed some debugging
1598           logging and buffer overflow in silclog.c.
1599
1600         * Updated config.sub and config.guess on the distribution tree.
1601
1602 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1603
1604         * Added command lagging support in server. Client may execute
1605           commands now only once in two seconds.
1606
1607 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1608
1609         * Optimized packet reception. MAC computation and checking is now
1610           also more optimized.  A lot previously duplicated code is now
1611           used as generic by both client and server.
1612
1613         * Fixed key pair generation in clientutil.c
1614
1615 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1616
1617         * Added into lib/silccore/silcbufutil.[ch] new function;
1618           silc_buffer_realloc.
1619
1620         * Moved generic packet sending/encryption functions to 
1621           lib/silccore/silcpacket.[ch] from client and server.  Some
1622           rewriting of the functions.
1623
1624         * Moved all generic packet reception/decryption functions to
1625           lib/silccore/silcpacket.[ch] from client and server.  The
1626           packet processing is now much cleaner in both client and server.
1627           These were major changes in both client and server.
1628
1629         * Created many common functions in server to do packet sending.
1630           Previously code were duplicated a lot, this has been removed
1631           with these changes.
1632
1633 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1634
1635         * Rewrote major parts of the ID cache system.  Don't know 
1636           whether it is better now or not but at least the API is more
1637           cleaner now.
1638
1639         * Major rewrite on ID cache stuff on client because of the ID
1640           cache API changes.  Added idlist.c to client.
1641
1642         * Also major rewrite on ID cache stuff on server as well.
1643           Major rewrite of idlist.[ch]. SilcXXXList's are now named
1644           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
1645           in hand, instead they are all put into the ID cache system now.
1646           All server_idlist_* routines uses ID cache now instead of
1647           traversing its own lists (those lists does not exist anymore).
1648           SilcIDList though still exists.  Also, SilcXXXEntry's are
1649           now pointers.
1650
1651 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1652
1653         * Finally made the SKE implementation compliant to the protocol
1654           specification.  All mp integers are now binary encoded as
1655           opposed being HEX encoded.
1656
1657         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
1658           from binary data.
1659
1660         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
1661           functions: silc_[encode/decode]_pem.  Also added function
1662           silc_encode_pem_file to PEM encode with newlines ('\n') for
1663           saving into a file.
1664
1665         * SILC public keys are now encoded either PEM or binary.  Same
1666           option is for private keys as well.  By default private keys
1667           are binary encoded and public keys PEM encoded.  Silly HEX
1668           encoding were removed.
1669
1670         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
1671           function to create fingerprints.
1672
1673         * Fixed a bug in SHA1; does not change the original data anymore.
1674
1675         * Partly implemented INFO command on client and server side.
1676           Fixed CLEAR command.  Changes to SERVER command; show current
1677           server(s) when giving command without arguments.  Added
1678           VERSION command to client.
1679
1680         * Added check to server that unregistered connections cannot
1681           execute commands (unless it is specificly allowed).
1682
1683 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1684
1685         * Fixed screen refresh.
1686
1687         * Fixed channel joining bug from client.  On some circumstances
1688           client tried to join to a channel it had already joined.
1689
1690         * Added public key verification process into client's protocol.c.
1691           The client now verifies the public key from user and saves
1692           it into ~./silc/serverkeys/ directory. 
1693
1694           Added into: clientutil.[ch]: silc_client_verify_server_key.
1695
1696         * Changed SKE protocol's silc_ske_initiator_finish function
1697           to accept callback function that verifies the received public
1698           key.  Removed old silc_ske_verify_public_key function.
1699
1700 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1701
1702         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
1703           silc_pkcs_private_key[_data]_set.
1704
1705         * Made the password and public authentication more cleaner in
1706           server's protocol.c.
1707
1708         * Removed historic and obsolete protocol `channel_auth' from
1709           both client and server.
1710
1711         * Removed wrong way of sending command status messages from
1712           server to client in server's command.c.  The old way violated
1713           protocol specification.  
1714
1715           Changes to silccore/silccommand.[ch]: removed
1716           silc_command_encode_status_payload -> not needed anymore,
1717           changed silc_command_encode_payload_va to accept extra
1718           argument on variable argument list.  The argument type must
1719           now be provided to the function.  Also, added new function:
1720           silc_command_encode_reply_payload_va which is same as
1721           normal command_encode_payload_va except command status type
1722           is provided as extra argument.
1723
1724 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1725
1726         * Added ~./silc directory handling.  The directory includes the
1727           public and private keys for the client.
1728
1729           Added silc_client_check_silc_dir, silc_client_create_identifier
1730           and silc_client_load_keys.
1731
1732         * Implemented SILC protocol compliant public key.  Added public
1733           and private key saving to and loading from files.
1734
1735           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
1736           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
1737           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
1738           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
1739           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
1740
1741           Implemented: silc_pkcs_save_[public/private]_key[_data] and
1742           silc_pkcs_load_[public/private]_key.
1743
1744 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1745
1746         * Added silc_server_get_route (route.[ch]) to get connection
1747           data for the fastest route for given ID.
1748
1749         * Implemented INVITE command on client and server.  The command
1750           were re-defined in the SILC Protocol Specification and the
1751           implementation now complies with the specification.
1752
1753         * Implemented PING command on client and server.
1754
1755         * Implemented NAMES command on client and server.  The server side
1756           supports currently only normal server not router server yet.
1757           Some changes to NAMES definition in SILC protocol specification.
1758
1759 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1760
1761         * Implemented LEAVE command on client and server.
1762
1763         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use 
1764           again.  This change was made to the protocol as well.  Server
1765           should not violate the protocol specification anymore.
1766
1767 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
1768
1769         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
1770           was tested.  SOCKS4 was not but should work anyway.