updates.
[silc.git] / CHANGES
1 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2
3         * Added SilcServerRekey context into silcd/idlist.h.
4
5         * Added the PFS support as defined in the specification to the
6           SKE protocol.  Affected files lib/silcske/*.c.
7
8         * Added `ske_group' field to the SilcServerRekey context to hold
9           the number of the SKE group that is used with PFS in re-key.
10           Affected file silcd/idlist.h.
11
12         * Added PFS re-key support to the server.  Affected file is
13           silcd/protocol.c.
14
15         * Added silc_protocol_cancel to cancel execution of the next
16           state of the protocol.  Affected file is
17           lib/silccore/silcprotocol.[ch].
18
19         * Added the re-key support with and without PFS to the client
20           library.  Re-key is performed once in an hour, by default.
21
22         * Removed the `hmac_key' and `hmac_key_len' fields from the
23           SilcClientConnection structure; not needed.  Affected file is
24           lib/silcclient/client.h.
25
26         * Updated TODO.
27
28 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
29
30         * Do not ask whether user wants to use the negotiated private key
31           for private messages, just use it.  Affected file is 
32           silc/local_command.c.
33
34         * Added `send_enc_key' and `enc_key_len' fields to the 
35           SilcIDListData structure since they are needed in the re-key
36           phase.  Affected file is silcd/idlist.[ch].
37
38         * Implemented the simple re-key protocol into the server.
39           Affected files silcd/server.c and silcd/protocol.[ch].  The
40           re-key will be performed once in an hour, by default.
41
42           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
43           Added silc_server_rekey, silc_server_rekey_callback and
44           silc_server_rekey_final.
45
46         * Removed Tunneled flag from the protocol.  Updated the code
47           and the specifications.
48
49         * Adde `pfs' field to the SilcIDListData to indicate whether
50           the PFS is to be performed in the re-key.  Affected file is
51           silcd/idlist.h.
52
53 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
54
55         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
56           int64 of at least the xintXX size.  If void * is less that 4
57           bytes uint32 * will be used.  Defined bool as boolean.
58
59         * Changed _ALL_ unsigned long and unsigned int to uint32, 
60           unsgined short to uint16 in the source tree.
61
62         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
63           not handle clients that has entry->data.registered == FALSE.
64           They are not in the network anymore.  Affected file is
65           silcd/server.c.
66
67 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
68
69         * Implemented the sending of the SERVER_SIGNOFF notify in the
70           server.  Affected file is silcd/server.c.
71
72         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
73           Added also silc_notify_payload_encode_args into the
74           lib/silccore/silcnotify.[ch].
75
76         * Implemented ther SERVER_SIGNOFF notify handling in the server.
77           Affected file silcd/packet_receive.c.
78
79         * Implemented the SERVER_SIGNOFF notify handling in the client
80           library.  Affected file lib/silcclient/client_notify.c.  Also,
81           implemnted the printing of the SERVER_SIGNOFF info to the
82           application.  Affected file silc/client_ops.c.
83
84         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
85           if the deleting was successful.  Affected file silcd/idlist.[ch].
86
87         * Added support for public key authentication in the connection
88           authentication protocol in the client library.  Affected file
89           lib/silcclient/protocol.c.
90
91         * Changed the server's silc_idlist_get_clients_by_* interface
92           to support already allocated array so that new entries may be
93           added to pre-allocated array.  Affected file silcd/idlist.[ch].
94           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
95           and command replies.
96
97         * All command reply functions in the server now calls the 
98           pending command callback even if error occured.  This way the
99           error will be delivered to the client as well.  Affected files
100           silcd/command.c and silcd/command_reply.c.
101
102         * Fixed INFO command to return local server's info if no server
103           was provided.  Affected file lib/silcclient/command.c.
104
105         * Removed RESTART command for good.  Updated the code and the
106           protocol specs.
107
108         * Rewrote parts of the task system.  It is a bit simpler now.
109           Removed unsued task priorities. The affected files are
110           lib/silcutil/silctask.[ch].
111
112 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
113
114         * Moved the USERS printing from the library to the application.
115           Affected files lib/silcclient/command.c and silc/client_ops.c.
116
117 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
118
119         * Updated TODO.
120
121         * Added channel key re-key support.  The re-key is perfomed
122           only by the router and is done once in an hour.  Added `rekey'
123           field to the SilcChannelEntry in the server.  Affected files
124           silcd/server.c and silcd/idlist.h.
125
126         * Added silc_task_unregister_by_context into the file
127           lib/silcutil/silctask.[ch].
128
129 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
130
131         * Added SILC_UMODE_GONE mode to indicate when the client is not
132           present in the SILC network.  Added also support to the local
133           command AWAY that will set this mode.  Added support of showing
134           "xxx is gone" in WHOIS command.  The USERS command shows the
135           gone status as well.
136
137         * Fixed setting server and router operator privileges in the
138           server's UMODE command.  Affected file silcd/command.c.
139
140         * Merged the SKE KE1 and KE2 payloads into one payload.  The
141           new KE payload is equivalent to the old KE2 payload.
142
143           Cleaned up the SKE Start Payload parsing.  It now uses the
144           simple buffer unformatting to do the parsing.  A lot faster
145           now.
146
147           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
148           to the SKE that is used to indicate whether both of the SKE
149           parties should perform authentication.  By default only the
150           responder performs authentication.  By setting this flag also
151           the initiator must do authentication.  By default it is unset
152           since in normal SKE case, client to server connection, only
153           the responder should do authentication.  When doing SKE between
154           two clients both should perform authentication.  Updated the
155           code and the protocol specs.
156
157         * A little fix to IDENTIFY command in the server.  Search the
158           client first by hash not nickname.  Affected file is 
159           silcd/command.c.
160
161         * Fixed the silc_client_close_connection to support closing
162           the client to client connections wihtout deleting too much
163           data.  Affected file lib/silcclient/client.c.
164
165         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
166           are received if protocol used to be active but is not anymore
167           the application would crash due to NULL pointer dereference.
168           Affected files silcd/server.c and lib/silcclient/client.c.
169
170         * Added `hash' field to the SilcClientConnection to include
171           the hash function negotiated in the SKE protocol.
172
173         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
174           to set the channel founder authentication data.  A client can
175           claim the founder rights later by providing the authentication
176           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
177           This way the channel founder can regain the channel founder
178           privileges even it is left the channel.  This works only on
179           local server and the client must be connected to the same
180           server to be able to regain the founder rights.  Updated the
181           protocol specs accordingly.
182
183           Added support to the CMODE command in the client to set the
184           founder auth data.  Read the README to see how to set it.
185
186           Added support to the CUMODE command to claim the founder
187           rights.  Read the README to see how to do it.
188
189           Added support for the founder authentication to the Channel
190           Entry in the server.  Affected file silcd/idlist.h.
191
192           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
193           server's CMODE command.  Affected file silcd/command.c.
194
195         * Added the following new functions into lib/silccore/silcauth.[ch]:
196           silc_auth_get_method and silc_auth_get_data.    
197
198         * The server now saves the remote hosts public key to the
199           SilcIDListData pointer.  Affected file silcd/protocol.c.
200
201         * The normal server now does not remove the channel entry from
202           the cache if the founder authentication data is set.  It used
203           to remove it if the founder was the last one on the channel on 
204           the server and left the channel.  The auth data is saved and
205           if the channel is re-joined later the old entry is used with
206           the old auth data.  Affected files silcd/command_reply.c and
207           silcd/server.c.
208
209         * Removed the `pkcs' field from the SilcIDListData structure
210           in the server; it is not used.  Affected file silcd/idlist.h.
211
212 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
213
214         * Fixed packet processing on slow links.  Partial packets were
215           never re-processed because the incoming data buffer was cleared
216           by the application.  Application must not directly clear the
217           sock->inbuf, the packet processing routines handle it.  Fixed
218           this in client library and in server.
219
220 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
221
222         * Fixed the WHOIS and IDENTIFY send reply function to really
223           check whether to send list or just one entry.  Affected file
224           silcd/command.c.
225
226         * Cleaned up the LEAVE command's channel key distribution.  The
227           affected file silcd/command.c.
228
229         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
230           can enforce the channel mode as well.  In that case the ID
231           includes the ID of the server.  The code now enforces the
232           mode change if the router have different mode than the server.
233
234         * The notify client operation with CMODE_CHANGE notify can now
235           return NULL client_entry pointer if the CMODE was not changed
236           by client.  Application must check for this.
237
238         * Added <Server ID> argument to INFO command to support server
239           info fetching by Server ID.
240
241         * Added silc_server_announce_get_channel_users to get assembled
242           packets of channel users of the specified channel.  Affected
243           file silcd/server.[ch].
244
245         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
246           was freed underneath the ID Cache.
247
248         * Re-announce clients when the server received CHANNEL_CHANGE
249           notify from the router.  Affected file silcd/packet_send.c.
250
251 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
252
253         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
254           crashed since it did not handle the fact that there is no cipher
255           called "3" and didn't check the error condition.  Now fixed.
256
257         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
258           flag.  It can be used to send message requests.
259
260 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
261
262         * Implemented the RESTART command in the client.
263
264         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
265           notice type messages.  Added notice printing to the user
266           interface.
267
268         * The channel keys are not re-generated if the channel's mode
269           is PRIVKEY, ie private key on the channel exists.  Affected
270           files silcd/server.c and silcd/command.c.
271
272         * Fixed a little bug in channel message delivery when channel
273           private keys are set in the server.  Affected file is
274           silcd/packet_send.c.
275
276         * Changed the setting on channel->on_channel = TRUE from the
277           silc_client_save_channel_key to the JOIN command reply.  The
278           key payload is not received if the private channel key is set.
279           Affected file lib/silcclient/command_reply.c and the
280           lib/silcclient/client_channel.c.
281
282         * When the CMODE_CHANGE notify is sent and the channel private
283           key mode is removed the channel key must be re-generated in
284           other cells as well.  Added this support for the router in the
285           silcd/packet_receive.c.
286
287         * Added new local command NOTICE to send notice message on
288           channel.  Affected file silc/local_command.[ch].
289
290 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
291
292         * Added new local command ME to the client.  It is used to send
293           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
294           some action.  Affected file silc/local_command.[ch].
295
296         * Changed channel_message and private_message client operations 
297           to deliver the message flags to the application.  Added also
298           the `flags' arguments to the silc_client_send_channel_message
299           and silc_client_send_private_message functions.  Affected file
300           silcapi.h.
301
302 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
303
304         * Redefined the Private Message Payload to support private message
305           keys and to support the new private message flags.  Updated
306           the protocol specs.  Flags makes it possible to have for example
307           CTCP style messages.
308
309         * Added new type SilcPrivateMessagePayload and defined an API
310           for it in the lib/silcclient/silcprivate.[ch].
311
312         * Tested private message private keys successfully.  Tested the
313           private message key set, unset and list commands with the new
314           KEY command.
315
316         * Redefined the Channel Message Payload to include the channel
317           message flags (equal with private message flags) to support
318           for example CTCP style messages.
319
320         * Defined some of the message (for channel and private message)
321           flags.  Updated the protocol specs and added the flags to the
322           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
323
324 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
325
326         * Added SilcKeyAgreementStatus type to the key agreement routines
327           to indicate the current status and error if one occured.
328           The status types are defined in the lib/silcclient/silcapi.h.
329
330         * Added new local command KEY that is used to set and unset private
331           keys for channels, set and unset private keys for private messages
332           with remote clients and to send key agreement requests and
333           negotiate the key agreement protocol with remote client.  The
334           key agreement is supported only to negotiate private message keys,
335           it currently cannot be used to negotiate private keys for channels,
336           as it is not convenient for that purpose.
337
338         * Fixed a minor pending callback setting bug in the function
339           silc_client_get_client_by_id_resolve, now the function works.
340           Affected file lib/silcclient/idlist.c.
341
342         * Added function silc_net_get_local_port to get local bound
343           port by socket.  Added to lib/silcutil/silcnet.[ch].
344
345         * Added `sockets' and `sockets_count' fields to the SilcClient
346           object.  They hold the sockets of the listenning sockets in
347           the client.  Listenning sockets may be for example the key 
348           agreement server.  Affected file lib/silcclient/client.[ch].
349           Added functions the silc_client_add_socket and the
350           silc_client_del_socket.  They are exported to the application
351           as well.
352
353         * Added ~./silc/clientkeys to support other client's public keys.
354
355         * Renamed verify_server_key client operation to verify_public_key
356           and added one argument to indicate the type of the connection
357           (server, client etc.).
358
359 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
360
361         * Added silc_server_connection_auth_request to handle the
362           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
363           silcd/packet_receive.[ch].
364
365         * Added silc_server_send_connection_auth_request into the
366           silcd/packet_send.c to send the connection auth request packet.
367
368         * Cleaned up the silcd/protocol.c a bit and fixed some memory
369           leaks.
370
371         * Fixed the public key authentication in responder side in the
372           server.  The `auth_data' pointer includes the SilcPublicKey
373           not the path to the public key.  Affected file silcd/protocol.c.
374
375         * Implemented the public key authentication in the initiator side
376           in the server.  Affected file silcd/protocol.c.
377
378         * Removed the [RedirectClient] config section from the server
379           configuration.  Is not needed and I don't want to implement it.
380
381 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
382
383         * Cleaned up the CMODE command in the server.  It now works
384           correctly and supports all the modes defined in the protocol.
385           Affected file is silcd/command.c.
386
387         * Added `hmac_name' field to the SilcChannelEntry in the server
388           to hold the default HMAC of the channel.  It can be set when
389           creating the channel (with JOIN command).  Affected files
390           silcd/idlist.[ch].
391
392         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
393           type to indicate the change of the current cipher and hmac
394           on the channel.  Client can safely ignore the <cipher> argument
395           (if it chooses to do so) since the CHANNEL_KEY packet will 
396           force the channel key change anyway.  The <hmac> argument is
397           important since the client is responsible of setting the new
398           HMAC and the hmac key into use.
399
400         * Fixed the CMODE command in the client library as well.
401
402         * Tested CMODE command in router environment successfully.
403
404 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
405
406         * Show the version of the remote client (or server) when connecting
407           to the server.  It is logged to the log file.  Affected file
408           is silcd/protocol.c.
409
410         * Fixed the KILLED notify handling in the client library.  The
411           client must be removed from all channels when receiving the
412           KILLED notify.
413
414           Also, do not remove the client entry when giving the KILL 
415           command but when the KILLED notify is received.
416
417         * Removed silc_idlist_find_client_by_nickname from the server.
418           Not needed anymore.  Affected files silcd/idlist.[ch].
419
420         * Implemented the CHANNEL_CHANGE notify type handling to the
421           server.  Affected file silcd/server.c.
422
423         * Updated TODO.
424
425 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
426
427         * Added silc_server_send_notify_invite to send the INVITE
428           notify between routers.
429
430         * Implemented the INVITE command correctly to the server.
431
432         * Implemented the INVITE notify type handling in the server.
433
434         * Implemented the INVITE command to the client library and on the
435           user interface.
436
437 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
438
439         * Added function silc_server_get_client_resolve to find the
440           client entry by ID from all ID lists and then resolve it
441           (using WHOIS) if it cannot be found.  Affected file is
442           silcd/server.[ch].
443
444 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
445
446         * Implemented the BAN command to the client library.
447
448         * The JOIN command in the server now checks the invite list
449           and the ban list.
450
451         * Changed the silc_command_reply_payload_encode_va and the
452           silc_command_payload_encode_va to support that if argument is
453           NULL it ignores and checks the next argument.  Affected file
454           lib/silccore/silccommand.c.
455
456         * Added silc_server_send_notify_ban to send the BAN notify
457           type between routers.
458
459         * Chaned the silc_notify_payload_encode to support that if 
460           argument is NULL it ignores and checks the next argument.
461           Affected file lib/silccore/silcnotify.c.
462
463         * Tested ban lists in router environment successfully.
464
465 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
466
467         * Implemented BAN command to the server, in silcd/command.[ch].
468
469         * Removed the BAN and INVITE_LIST modes from the CMODE command
470           in the server code.
471
472         * Added function silc_string_match to regex match two strings.
473           Affected files lib/silcutil/silcutil.[ch].
474
475 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
476
477         * Redefined parts of the SilcChannelEntry in the server to support
478           the new ban and invite lists.
479
480 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
481
482         * Redefined the INVITE command.  The same command can be used to
483           invite individuals to the channel but also to manage the invite
484           list of the channel (to add to and remove from the invite list).
485           Updated the protocol specs.
486
487         * Added new command SILC_COMMAND_BAN that can be used to manage
488           the ban list of the channel.  Updated the protocol specs.
489
490         * Removed the channel modes: the SILC_CMODE_BAN and the 
491           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
492           in the CMODE command.  The equivalent features are now available
493           using INVITE and BAN commands.  Updated the protocol specs.
494
495         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
496           in the network about change in the current ban list.  The notify
497           type is not used by the client.
498
499         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to 
500           support the invite lists.
501
502 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
503
504         * Added new function silc_string_regexify that converts string
505           including wildcard characters into regex string that can
506           be used by the GNU regex library.  Added into the file
507           lib/silcutil/silcutil.[ch].
508
509           Added silc_string_regex_combine to combine to regex strings
510           into one so that they can be used as one regex string by
511           the GNU regex library.  Added into the file
512           lib/silcutil/silcutil.[ch].
513
514           Added silc_string_regex_match to match two strings.  It returns
515           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
516
517 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
518
519         * Imported GNU regex to the soruce tree into lib/contrib.
520           Fixed some compiler warning from the regex.c.
521
522 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
523
524         * Fixed MOTD command in the server to work in router environment.
525
526         * Fixed the MOTD command in the client library to support
527           the server argument in the command.
528
529         * Added `nickname_len' argument to the silc_idlist_add_client
530           in the server, as the `nickname' argument may be binary data
531           (it may be hash).
532
533         * Added silc_idlist_get_channels to return all channels from
534           the ID list.
535
536         * Implemented LIST command to the server.  Affected file is
537           silcd/command.c.
538
539         * Implemented the LIST command to the client library and on the
540           user interface.
541
542         * Added [<user count>] argument to the LIST command reply.
543           With private channels the user count is not shown.
544
545         * Updated TODO and README.
546
547 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
548
549         * The client entry's data.registered must be TRUE even with
550           global client entry on global client list.  The data.registered
551           is used to check whether the client is anymore in the network,
552           for example with WHOWAS command so it must be valid.
553
554         * Fixed the WHOWAS command in the server.  It now actually works
555           in router environment.  Added function into silcd/command_reply.c
556           silc_server_command_reply_whowas_save.
557
558         * Added silc_idlist_purge function to the silcd/idlist.c
559           to periodically purge the ID Cache.
560
561         * Fixed INFO command in the server.  It works now in router
562           environment.  Added <server name> argument to the INFO command
563           reply.  Updated the protocol specs.
564
565         * Fixed minor bug in silc_idcache_purge to not purge if the
566           expire value is zero.
567
568         * Fixed various bugs in WHOIS and IDENTIFY command handling as
569           they were buggy because of the WHOWAS information.
570
571         * Fixed local command MSG to handle the async resolving of 
572           the remote client properly.  It used to fail the first MSG.
573           Affected file silc/local_command.c.
574
575         * Added `data_len' field to SilcIDCache context.
576
577 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
578
579         * Update TODO.  Todo in commands in the server.
580
581 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
582
583         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
584           used by routers as broadcast packet to inform other routers
585           about the changed user mode.
586
587           Implemented the notify handling in the server.  Affected file is
588           silcd/packet_receive.c.  Added the function 
589           silc_server_send_notify_umode to the silcd/packet_send.[ch].
590
591         * Added new generic Channel Payload and deprecated the New Channel
592           Payload.  The New Channel Payload is now the generic Channel
593           Payload.
594
595         * Added new argument `mode' to the silc_server_send_new_channel
596           as it is required in the Channel Payload now.
597
598         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
599           and created a new and real SilChannelPayload to represent the
600           new generic Channel Payload.  Implemented the encode/decode
601           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
602
603         * Added silc_server_get_client_channel_list to return the list
604           of channels the client has joined for WHOIS command reply.
605           Affected file silcd/server.[ch].
606
607         * Implemented the channel list sending in the WHOIS command reply
608           in server and in the client.
609
610           Implemented the channel list displaying on the user interface
611           as well.  Affected file silc/client_ops.c.
612
613         * Added silc_channel_payload_parse_list to parse list of Channel
614           Payloads.  It returns SilcDList list of SilcChannelPayloads.
615           Client for example can use this function to parse the list of
616           channels it receives in the WHOIS command reply.  The caller
617           must free the list by calling silc_channel_payload_list_free.
618           Affected files lib/silccore/silcchannel.[ch].
619
620 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
621
622         * Added one new argument <user mode> to the WHOIS command reply
623           to return the mode of the user in SILC.  Updated the protocol
624           specs.
625
626           Implemented it to the server and client.
627
628 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
629
630         * Fixed the mode printing on the user interface on joining.
631           Affected file silc/client_ops.c.
632
633         * Implemented the UMODE command and user modes in general to the
634           client library and to the user interface.
635
636         * Implemented the UMODE command to the server.
637
638         * The server now sends UNKNOWN_COMMAND error status if client sends
639           unknown command.  Affected file silcd/command.c.
640
641         * All server commands now handle the command identifier the right
642           way when sending the command reply to the client.  The client can
643           use to identify the command replies with the identifier.
644
645 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
646
647         * Added silc_server_get_client_route to resolve the route to
648           the client indicated by the client ID.  Affected file is
649           silcd/server.[ch].
650
651         * Added silc_server_relay_packet as general function to relay
652           packet to arbitrary destination.  This deprecates functions
653           like _send_private_message_key, _relay_notify etc.  Affected
654           file is silcd/packet_send.[ch].
655
656           Removed silc_server_send_key_agreement, 
657           silc_server_send_private_message_key and
658           silc_server_packet_relay_notify functions from the file
659           silcd/packet_send.[ch].
660
661         * Updated TODO.
662
663         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
664           server.  Affected file silcd/packet_receive.[ch].
665
666         * Implemented the KILL command to the client.  Implemented the
667           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
668           Affected files lib/silcclient/command[_reply].c and
669           lib/silcclient/client_notify.c.  Implemented the KILL notify
670           printing in the user inteface.
671
672         * Fixed a lot silc_parse_nick memory leaks from the client
673           library in the file lib/silcclient/command.c.
674
675         * Changed the silc_server_send_notify_on_channels's `sender'
676           argument from SilcSocketConnection to SilcClientEntry to 
677           check the sender as entry and not as connection object and not
678           to send to the client provided as argument.  The affected file
679           is silcd/packet_send.[ch].
680
681         * The notify packets that are destined directly to the client used
682           to not to be processed by the server.  Now changed that and the
683           server processes all notify packets.  After relaying the packet
684           to the client the notify packet is processed in the server.
685
686         * The silc_server_free_client_data now checks whether there is
687           pending outgoing traffic for the client and purges the data to
688           the network before removing the client entry.
689
690 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
691
692         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
693           an client is killed from the SILC Network.  Updated the protocol
694           specs accordingly.
695
696           Added new function silc_server_send_notify_killed to the
697           silcd/packet_send.[ch].
698
699         * Added function silc_server_packet_relay_notify to relay notify
700           packets that are destined directly to a client.  In this case
701           the server does not process the notify packets but merely relays
702           it to the client.  Affected file silcd/packet_send.[ch].
703
704           Added also silc_server_packet_process_relay_notify to check
705           whereto relay the notify.  Affected file is 
706           silcd/packet_receive.[ch].
707
708         * Implemented the KILL command to the server.
709
710         * Updated TODO.
711
712         * Added the backup schema desgined last fall to the protocol
713           specs for everyone to see.  The specification is in the
714           *-spec-xx.txt draft and the packet type definitions for the
715           backup routers is in *-pp-xx.txt draft.  Thusly, added also
716           new packet type SILC_PACKET_CELL_ROUTERS.
717
718         * A big security problem in the implementation discovered.  The
719           signoff of an client did not cause new channel key generation
720           which it of course should've done.  The channel keys must be
721           always re-generated when client leaves (or signoffs) the channel.
722           The silc_server_remove_from_channels funtion now handles
723           the channel key re-generation.
724
725         * Added `sender' argument to the silc_server_send_notify_on_channels
726           to not to send the client provided as argument.  Affected file
727           silcd/packet_send.[ch].
728
729 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
730
731         * Implemented OPER and SILCOPER commands into the server and
732           the client library.
733
734         * Added silc_auth_verify and silc_auth_verify_data to verify
735           the authentication directly from the authentication payload.
736           It supports verifying both passphrase and public key based
737           authentication.  Affected file lib/silccore/silcauth.[ch].
738
739         * Added `hash' field to the SilcIDListData structure.  It is the
740           hash negotiated in the SKE protocol.  Affected file is
741           silcd/idlist.[ch].
742
743         * Slight redesigning of the SilcAuthPayload handling routines.
744           Do not send SilcPKCS but SilcPublicKey as argument.
745
746         * Implemented the public key authentication support to the
747           serverconfig.  The public key is loaded from the provided path
748           and saved as authentication data to void * pointer.  Thus,
749           changed the unsigned char *auth_data to void *auth_data;
750
751         * Fixed SHUTDOWN command to send the reply before the server
752           is shutdown. :)  Affected file silcd/command.c.
753
754         * Fixed fatal bug in CONNECT command.  The hostname was invalid
755           memory and server crashed.  Affected file silcd/command.c.
756
757         * Fixed fatal bug in CLOSE command.  The server_entry became
758           invalid but was referenced later in the command.  Affected file
759           silcd/command.c.
760
761 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
762
763         * Fixed fatal bug in failure packet handling.  Server ignored
764           the failure and thus crashed when it came.
765
766         * Updated TODO.
767
768 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
769
770         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
771           that the command may be executed only once in (about) 2 seconds.
772           The old SILC_CF_LAG flag is same but allows command bursts up
773           to five before limiting.
774
775           Added the support for CF_LAG and CF_LAG_STRICT flags to the
776           server code.  Various commands now includes the CF_LAG_STRICT
777           flag to disallow any kind of miss-use of the command.
778
779         * Fixed the silc_buffer_unformat to not to allocate any data
780           if the length of the data is zero.  It used to allocate the
781           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
782
783 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
784
785         * Changed the format of AdminConnection configuration section
786           in the server.  Added username of the admin to the format.
787           Affected files silcd/serverconfig.[ch].
788
789           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
790           to return admin configuration data by host, username and/or
791           nickname.
792
793 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
794
795         * Implemented WHOWAS command to the server.  Added the functions:
796
797           silc_server_command_whowas_parse,
798           silc_server_command_whowas_send_reply,
799           silc_server_command_whowas_from_client and
800           silc_server_command_whowas_from_server
801
802         * Added <Client ID> argument to the WHOWAS command reply.  Updated
803           the protocol specs accordingly.
804
805         * Implemented WHOWAS command and command_reply to the client
806           library.
807
808           Implemented the WHOWAS printing on the user interface.
809
810 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
811
812         * Added new argument to the WHOWAS command reply, the real name.
813           It is an optional argument.  Updated the protocol specs.
814
815         * Added SilcIDCacheDestructor callback that is registered when
816           the SilcIDCache is allocated.  The callback is called when
817           an cache entry in the ID Cache expires, or is purged from the
818           cache.  Added into lib/silccore/idcache.[ch].
819
820           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
821           to destruct the client entries when the cache entry expires.
822           Other ID Cache's in server and in the client library ignores
823           the destructor.
824
825         * If the ID Cache entry's `expire' field is zero then the entry
826           never expires.  Added boolean `expire' argument to the
827           silc_idcache_add function in the lib/silccore/idcache.[ch].
828           If it is TRUE the default expiry value is used.
829
830         * Added silc_server_free_client_data_timeout that is registered
831           when client disconnects.  By default for 5 minutes we preserve
832           the client entry for history - for WHOWAS command.
833
834 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
835
836         * Added support to the server to enforce that commands are not
837           executed more than once in 2 seconds.  If server receives 
838           commands from client more frequently, timeout is registered
839           to process the commands.  Affected file silcd/command.c.
840           Added new function silc_server_command_process_timeout.
841
842         * Changed NICK_NOTIFY handling in client library to check that
843           if the client's nickname was changed, so there is no need to
844           resolve anything from the server.
845
846         * Removed error printing from the WHOIS and IDENTIFY commands.
847           If error occurs then it is ignored silently in the client library.
848           The application, however, may map the received error to 
849           human readable error string.  The application currently maps
850           the NO_SUCH_NICKNAME error to string.
851
852         * Made the command status message public to the application.  Moved
853           them from lib/silcclient/command_reply.c to 
854           lib/silcclient/command_reply.h.  The application can map the
855           received command status to the string with the
856           silc_client_command_status_message function.
857
858         * Added check to the server to check that client's ID is same
859           as the Source ID in the packet the client sent.  They must
860           match.
861
862 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
863
864         * Added dist-bzip hook to the Makefile.am to make bzip2
865           compressed distributions.
866
867 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
868
869         * Server now enforces the maximum length for the nickname and
870           the channel as protocol specification dictates.  128 bytes for
871           nickname and 256 bytes for channel name.
872
873         * Moved the WHOIS printing to the application.  The client libary
874           does not print out the WHOIS information anymore, the application
875           must do it.  Renamed silc_client_command_reply_whois_print to
876           the silc_client_command_reply_whois_save.
877
878           The client's idle time is also sent to the application now, and
879           the idle is shown on screen.
880
881         * Added silc_client_command_reply_identify_save to save the
882           received IDENTIFY entries.
883
884         * Do not check for channel private keys in message sending and
885           reception if the channel does not have the PRIVKEY mode set.
886           Affected file lib/silclient/client_channel.c.
887
888 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
889
890         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
891           just surfaced after chaning the JOIN procedure.
892
893 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
894
895         * Added silc_client_get_clients_by_list to get client entries
896           from Client ID list, that is returned for example by JOIN
897           and USERS command replies.  The application should use this
898           function for example when JOIN command reply is received to
899           resolve the clients already on the channel (library does not
900           do that anymore as USERS command reply is not used in the JOIN
901           procedure anymore).  Affected files lib/silcclient/silcapi.h and
902           lib/silcclient/idlist.c.
903
904         * JOIN command reply and USERS command reply returns now SilcBuffer
905           pointers instead of unsigned char pointers when returning
906           the client list and mode list.
907
908         * Added <Client ID> argument to the JOIN command reply, mainly
909           for the server to identify for which client the command was
910           originally sent.  Updated protocol specs accordingly.
911
912         * Added SilcDlist private_key pointer to the SilcChannelEntry
913           in the client to support the channel private keys.  Affected
914           file is lib/silcclient/idlist.h.
915
916         * Added SilcChannelPrivateKey argument to the function
917           silc_client_send_channel_message so that application can choose
918           to use specific private ke if it wants to.  If it is not provided,
919           the normal channel key is used, unless private keys are set. 
920           In this case the first (key that was added first) is used 
921           as the encryption key.
922
923         * Implemented the support for channel private key handling.
924           Implemented the following functions:
925
926           silc_client_add_channel_private_key,
927           silc_client_del_channel_private_keys,
928           silc_client_del_channel_private_key,
929           silc_client_list_channel_private_keys and
930           silc_client_free_channel_private_keys
931
932           Affected file lib/silcclient/client_channel.c.
933
934         * Added the support for the private keys in the channel message
935           sending and encryption and in the message reception and
936           decryption.  Affected funtions are
937           silc_client_send_channel_message and silc_client_channel_message.
938
939 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
940
941         * Added SKE's key verify callback to the client library's
942           KE protocol context. Affected files lib/silcclient/protocol.[ch].
943
944         * Removed the statement that server (or router) must send USERS
945           command reply when joining to the channel so that the client
946           knows who are on the channel.  Instead, the client list and 
947           client's mode list is now sent in the JOIN command reply to the
948           client who joined channel.  This is better solution.
949
950         * Added function silc_server_get_users_on_channel and function
951           silc_server_save_users_on_channel to the silcd/server.[ch].
952
953         * Removed function silc_server_command_send_users from the
954           silcd/command.c.
955
956         * Do not show topic on the client library anymore.  The topic is
957           sent in the command reply notify to the application and the
958           application must show the topic now.
959
960 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
961
962         * Added client searching by nickname hash into the IDENTIFY and
963           WHOIS commands in the server as they were clearly missing from
964           them.  Affected file is silcd/command.c.
965
966         * Fixed a bug in private message receiving in the client library.
967           The remote ID was freed and it wasn't supposed, now it is
968           duplicated.
969
970 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
971
972         * Minor fix to the channel payload; allocate the data area, as it
973           needs to be of specific length.
974
975         * If the key agreement port is zero then the operating
976           system will define the bound port.  Affected files are
977           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
978
979         * Added new function silc_channel_payload_decrypt into the file
980           lib/silccore/silcchannel.[ch].
981
982         * Moved the channel message etc, check from silc_packet_decrypt
983           to applications.  The library calls now a generic 
984           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
985           when the packet is either normal or special.  This was done to
986           allow more wide range of checking that was not allowed when
987           the code was in library.  Now applications can do virtually any
988           checks to the packet and return to the library the decision how
989           the packet should be processed.  Affected files are
990           lib/silccore/silcpacket.[ch].
991
992           Added silc_server_packet_decrypt_check to the server and
993           silc_client_packet_decrypt_check to the client library.
994
995         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
996           to send with specified source and destination information.
997
998         * Channel message delivery between routers was broken after the
999           channel key distribution was fixed earlier.  The channel key
1000           was used be to distributed to other routers as well which is not
1001           allowed by the protocol.  Now this is fixed and channel keys
1002           really are cell specific and the channel message delivery between
1003           routers comply with the protocol specification.
1004
1005         * Fixed various commands in server to check also the global list
1006           for the channel entry and not just the local list.  The affected
1007           file silcd/command.c.
1008
1009 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1010
1011         * Added assert()s to buffer formatting and unformatting routines
1012           to assert (if --enable-debug) when error occurs.  Affected
1013           file: lib/silcutil/silcbuffmt.c.
1014
1015         * Changed to auto-reconnect to check whether the remote host is
1016           router and register the re-connect timeout if it is.  It used 
1017           to check that whether we are normal server, but router must do
1018           auto-reconnect with another router as well.  Affected file
1019           silcd/server.c.
1020
1021         * Removed the [<key len>] option from CMODE command as the cipher
1022           name decides the key length, nowadays.  See the defined ciphers
1023           from the protocol specification.
1024
1025         * Added [<hmac>] option to the CMODE command to define the HMAC
1026           for the channel.  Added SILC_CMODE_HMAC channel mode.
1027
1028         * Added [<hmac>] option for the JOIN command so that user can
1029           select which HMAC is used to compute the MACs of the channel
1030           messages.
1031
1032         * Added Hmac field to the Channel Message Payload.  The integrity
1033           of plaintext channel messages are now protected by computing
1034           MAC of the message and attaching the MAC to the payload.  The
1035           MAC is encrypted.  Now, it is clear that this causes some
1036           overhead to the size of the packet but rationale for this is that
1037           now the receiver can verify whether the channel message decrypted
1038           correctly and also when private keys are set for the channel the
1039           receiver can decrypt the packet with several keys and check from
1040           the MAC which key decrypted the message correctly.
1041
1042         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
1043           lib/silccrypt/silccipher.[ch].
1044
1045         * Added silc_hash_len to return the digest length into the
1046           lib/silcrypt/silchash.[ch].
1047
1048         * Rewrote parts of Silc Channel Payload interface in the
1049           lib/silccore/silcchannel.[ch].  The encode function now also
1050           encrypts the packet and parse function decrypts it.
1051
1052 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1053
1054         * Fixed a minor formatting bug in the SKE's key material processing.
1055           It actually might have processed the keys wrong way resulting
1056           into wrong keys.
1057
1058         * Redefined the mandatory HMAC algorithms and added new algorithms.
1059           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
1060           and hmac-md5 truncated to 96 bits.  The mandatory is now 
1061           hmac-sha1-96.  Rest are optional (including the one that used
1062           to be mandatory).  Rationale for this is that the truncated HMAC
1063           length is sufficient from security point of view and can actually
1064           make the attack against the HMAC harder.  Also, the truncated
1065           HMAC causes less overhead to the packets.  See the RFC2104 for
1066           more information.
1067
1068         * Added new [hmac] configuration section.  The SKE used to use
1069           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
1070           is of course wrong.  The official names that must be proposed in
1071           the SKE are the ones defined in the protocol specification
1072           (hmac-sha1-96 for example).  The user can configure any hmac
1073           using any hash function configured in the [hash] section.  At
1074           least, the mandatory must be configured.
1075
1076           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
1077
1078         * Added HMAC list to the SKE proposal list.  It has now both
1079           hash algorithm list and HMAC list.  This makes the protocol
1080           incompatible with previous versions.  The SKE now seems to work
1081           the way it is supposed to work, for the first time actually.
1082
1083         * Defined plain Hash algorithms to the protocol specification.
1084           Added sha1 and md5.
1085
1086 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1087
1088         * Implemented support for key agreement packets into the server.
1089           Added functions silc_server_key_agreement and
1090           silc_server_send_key_agreement.  Other than these functions,
1091           server has nothing to do with this packet.
1092
1093         * Added support for private message key packets into the server.
1094           Added functions silc_server_private_message_key and
1095           silc_server_send_private_message_key.
1096
1097         * Updated TODO.
1098
1099         * Changed the silc_[client|server]_protocol_ke_set_keys to be
1100           called in the protocol's final callback instead in the END
1101           protocol state.  This makes a little more sense and in the same
1102           time in client we can use the same protocol routines for normal
1103           key exchange and to key agreement packet handling as well.
1104
1105         * Added to both client's and server's KE protocol context the
1106           SilcSKEKeyMaterial pointer to save the key material.  We will
1107           bring the key material to the protocol's final callback by doing
1108           this.  The final callback must free the key material.
1109
1110         * Added SKE's packet_send callback into client's KE protocol
1111           context so that the caller can choose what packet sending function
1112           is used.  This way we can use different packet sending when
1113           doing normal SKE when doing key agreement packet handling (in
1114           the key agreement packet handling we do not want to encrypt
1115           the packets).
1116
1117         * Implemented the responder side of the key agreement routines
1118           in the client.  The client can now bind to specified port and
1119           accept incoming key negotiation.  The key material is passed
1120           to the application after the protocol is over.
1121
1122         * Implemented the processing of incoming Key Agreement packet
1123           in the client.  Added function silc_client_key_agreement to
1124           process the packet.
1125
1126         * Implemented the intiator side of the key agreement routines
1127           in the client.  The client can now initiate key agreement with
1128           another remote client.  The key material is passed to the
1129           application after the protocol is over.
1130
1131         * Created client_keyagr.c to include all the key agreement 
1132           routines.
1133
1134         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
1135           SILC_TASK_CALLBACK except that it is not static.
1136
1137         * Created client_notify.c and moved the Notify packet handling
1138           from the client.[ch] into that file.
1139
1140         * Created client_prvmsg.c and moved all private message and
1141           private message key routines from the client.[ch] into that file.
1142
1143         * Create client_channel.c and moved all channel message and
1144           channel private key routines from the client.[ch] into that file.
1145
1146         * Changed silc_client_get_client_by_id_resolve to resolve with
1147           WHOIS command instead of IDENTIFY command, in the file
1148           lib/silclient/idlist.c.
1149
1150 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1151
1152         * Implemented the SKE's responder side to the Client library.
1153
1154         * When FAILURE is received to the protocol do not trust it
1155           blindly.  Register a timeout to wait whether the remote closes
1156           the connection as it should do it, only after that process the
1157           actual failure.  This was changed to both client and server.
1158
1159         * Added client_internal.h to include some of the structures
1160           there instead of client.h in lib/silcclient/.
1161
1162         * Added function silc_task_unregister_by_callback to unregister
1163           timeouts by the callback function.
1164
1165 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1166
1167         * Some "Incomplete WHOIS info" errors has been appearing on the
1168           log files.  Took away the entry->userinfo check from WHOIS
1169           reply sending.  The entry->userinfo is now " " if client did not
1170           provide one.  I thought this was fixed earlier but something
1171           is wrong still.  Let's see if the error still appears.
1172
1173 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1174
1175         * Fixed a minor bug in the login when the channel key is
1176           re-generated in the server.  It used to generate the key in
1177           wrong order and thus caused problems in the channel traffic.
1178
1179         * Fixed a minor bug in channel key distsribution after
1180           KICK command.  The key was not sent to the router even though
1181           it should've been.
1182
1183 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1184
1185         * Added silc_ske_process_key_material_data as generic routine
1186           to process any key material as the SILC protocol dictates.  The
1187           function is used by the actual SKE library but can be used by
1188           applications as well.  This relates to the private message keys
1189           and the channel private keys since they must be processed the
1190           same way the normal SILC session keys.  The protocol dictates
1191           this.  Affected files: lib/silcske/silcske.[ch].
1192
1193           Added also silc_ske_free_key_material to free the
1194           SilcSKEKeyMaterial structure.
1195
1196         * Defined silc_cipher_set_key function to set the key for
1197           cipher without using the object's method function.  The affected
1198           files: lib/silccrypt/silccipher.[ch].
1199
1200         * Implemented silc silc_client_add_private_message_key,
1201           silc_client_add_private_message_key_ske, 
1202           silc_client_del_private_message_key,
1203           silc_client_list_private_message_keys and
1204           silc_client_free_private_message_keys functions in the
1205           client library.
1206
1207           Added functions silc_client_send_private_message_key to send
1208           the Private Message Key payload and silc_client_private_message_key
1209           to handle incoming Private Message Key payload.
1210
1211         * Added Cipher field to the Private Message Key payload to set
1212           the cipher to be used.  If ignored, the default cipher defined
1213           in the SILC protocol (aes-256-cbc) is used.
1214
1215 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1216
1217         * Removed lib/silcclient/ops.h file.
1218
1219           Redefined parts of the SILC Client Library API. Created new
1220           file silcapi.h that deprecates the ops.h file and defines the
1221           published Client Library API.  Defined also private message key
1222           API and channel private key API into the file.
1223
1224           This is the file that the application must include from the
1225           SILC Client Library.  Other files need not be included by
1226           the application anymore.
1227
1228         * Added new key_agreement client operation callback and also
1229           defined the Key Agreement library API for the application.
1230
1231 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1232
1233         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
1234           is used by clients to request key negotiation  between another
1235           client in the SILC network.  If the negotiation is started it
1236           is performed using the SKE protocol.  The result of the
1237           negotiation, the secret key material, can be used for example
1238           as private message key.
1239
1240           Implemented the Key Agreement payload into the files
1241           lib/silccore/silauth.[ch].
1242
1243 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1244
1245         * Redefined ciphers for the SILC protocol.  Added some new ciphers
1246           and defined the key lengths for the algorithms.  Changed the
1247           code accordingly.  The default key length is now 256 bits.
1248
1249         * Fixed SKE key distribution function silc_ske_process_key_material
1250           when the key length is more than 128 bits.  The default key 
1251           length in SILC is now 256 bits.
1252
1253         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
1254           to indicate unsupported algorithm.
1255
1256         * Renamed rijndael.c to aes.c and all functions as well.
1257
1258         * Fixed a long standing channel key setting bug in client library.
1259           Weird that it has never surfaced before.
1260
1261         * Fixed bug in channel deletion.  If the entire channel is removed
1262           then it must also delete the references of the channel entry
1263           from the client's channel list as the client's channel entry and
1264           the channel's client entry share same memory.
1265
1266 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1267
1268         * Implemented CONNECT and SHUTDOWN commands in the client.
1269
1270         * Implemented CLOSE command to the client.
1271
1272         * Added the function silc_idlist_find_server_by_name into the
1273           files silcd/idlist.[ch].
1274
1275           Added the function silc_idlist_find_server_by_conn into the
1276           files silcd/idlist.[ch].
1277
1278 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1279
1280         * DIE command was renamed to SHUTDOWN.  Updated the both code
1281           and protocol specs.
1282
1283         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
1284           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
1285
1286         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
1287           side.
1288
1289         * Added function silc_server_create_connection function to create
1290           connection to remote router.  My server implementation actually
1291           does not allow router to connect to normal server (it expects
1292           that normal server always initiates the connection to the router)
1293           so the CONNECT command is only good for connecting to another
1294           router.
1295
1296 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1297
1298         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
1299           or some other client was kicked from the channel.
1300
1301           Implemented the handling of the notify type to both client
1302           and server.
1303
1304           Implemented silc_server_send_notify_kicked to send the KICKED
1305           notify.  It is used to send it to the server's primary router.
1306
1307         * Implemented the KICK command into server and client.
1308
1309         * Added `query' argument to the silc_idlist_get_client function
1310           to indicate whether to query the client from server or not if
1311           it was not found.
1312
1313         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
1314           to indicate that the client is not channel founder.
1315
1316         * Updated TODO.
1317
1318 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1319
1320         * Removed the rng context from SilcPacketContext structure and
1321           changed that the packet routine uses the Global RNG API.
1322
1323 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1324
1325         * Added support for quit message that client can "leave" on the
1326           channel when it quits the SILC.  It is ditributed inside the
1327           SILC_NOTIFY_TYPE_SIGNOFF notify type.
1328
1329           Added silc_server_free_client_data that will take the
1330           signoff message as argument.
1331
1332         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
1333
1334 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1335
1336         * Updated parts of the protocol specification to keep it up
1337           to date.
1338
1339 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1340
1341         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
1342           payloads in one packet.
1343
1344         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
1345           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
1346           use now the new List flag.
1347
1348         * Also deprecated the following packet types: REPLACE_ID,
1349           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
1350          
1351         * Added list support for Notify packet in server.
1352
1353         * Added silc_server_send_notify_channel_change to send the
1354           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
1355           the silc_server_send_replace_id.
1356
1357         * Added silc_server_send_notify_nick_change to send the
1358           NICK_CHANGE notify type.  Deprecates the function
1359           silc_server_send_replace_id.
1360
1361         * Added silc_server_send_notify_join to send the JOIN notify type.
1362           Deprecates the function silc_server_send_new_channel_user.
1363
1364         * Added silc_server_send_notify_leave to send LEAVE notify type.
1365           Deprecates the function silc_server_send_remove_channel_user.
1366
1367         * Added silc_server_send_notify_cmode and 
1368           silc_server_send_notify_cumode to send CMODE and CUMODE notify
1369           types.  Deprecates the silc_server_send_set_mode function.
1370
1371         * Added SERVER_SIGNOFF notify type to indicate that server has
1372           quit.  This means that all clients on the channel from that 
1373           server will drop.  This can be also used when netsplit happens.
1374
1375           Deprecated REMOVE_ID packet type since it is not needed anymore
1376           even from server.
1377
1378           Added silc_server_send_notify_server_signoff to send the
1379           SERVER_SIGNOFF notify type.  Deprecates the function
1380           silc_server_send_remove_id.
1381
1382           Added also silc_server_send_notify_signoff to send the
1383           SIGNOFF notify type.
1384
1385         * Employed the PKCS #1. It is the mandatory way to do RSA in the
1386           SILC protocol from this day on.  Changed the protocol 
1387           specification as well.
1388
1389         * Added silc_server_send_notify_topic_set to send TOPIC_SET
1390           notify type.  It is used between routers to notify about
1391           topic changes on a channel.
1392
1393         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
1394           ID data.
1395
1396         * Partly updated the protocol specification to comply with the
1397           changes now made.  It is still though a bit outdated.
1398
1399         * The JOIN notify type now takes one extra argument <Channel ID>.
1400           The packet used to be destined to the channel but now the
1401           JOIN type may be sent as list thus it is impossible to 
1402           destine it to any specific channel.  By adding this argument
1403           it is again possible.
1404
1405 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1406
1407         * Added CREDITS file.  The CHANGES and CREDITS file will appear
1408           in the distribution as well.
1409
1410 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1411
1412         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
1413           types in the server's silcd/packet_receive.c.
1414
1415         * Implemented CMODE and CUMODE to work in router environment.
1416
1417         * Fixed minor encoding and decoding buglet from the
1418           lib/silccore/silcmode.c.
1419
1420         * Fixed buffer overflow from lib/silcclient/command.c in USERS
1421           command parsing.
1422
1423 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
1424
1425         * Changed all SilcConfigServer* and silc_config_server* to
1426           SilcServerConfig* and silc_server_config*, respectively.
1427           Patch by Bostik.
1428
1429 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1430
1431         * Associated the ID (client or server ID) to the Authentication
1432           Payload to avoid any possibility of forging.  Updated the
1433           protocol specification and the code accordingly.
1434
1435 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1436
1437         * The RSA key length is now save to the RsaKey context in the
1438           key generation process in lib/silccrypt/rsa.c.  The key length
1439           is now used to figure out the maximum size of the block allowed
1440           to be encrypted/signed.
1441
1442         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
1443           is equivalent to the silc_mp_mp2bin but does not allocate any
1444           memory.
1445
1446         * Changed silc_mp_mp2bin API to take length argument.  If it is
1447           non-zero then the buffer is allocated that large.  If zero, then
1448           the size is approximated using silc_mp_sizeinbase, which however
1449           is not relieable.
1450
1451         * Created Global RNG API which is global RNG that application can
1452           initialize.  After initializing, any routine anywhere in the
1453           code (including library) can use RNG without allocating a new
1454           RNG object.  This was done to allow this sort of use of the 
1455           RNG in code that has no chance to allocate RNG object.  All
1456           applications currently allocate this and many routines in the
1457           library use this.  Affected file lib/silccrypt/silcrng.[ch].
1458
1459         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
1460           it to use the Global RNG API.
1461
1462         * Defined Authentication Payload into protocol specification that
1463           is used during SILC session to authenticate entities.  It is
1464           used for example by client to authenticate itself to the server
1465           to obtain server operator privileges.
1466
1467           Implemented this payload into the lib/silccore/silcauth.[ch].
1468           Implemented also routines for public key based authentication
1469           as the new protocol specification dictates.
1470
1471           Moved definitions of different authentication methods from
1472           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
1473
1474         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
1475           silc_pkcs_verify and silc_pkcs_sign_with_hash and
1476           silc_pkcs_verify_with_hash functions into the file 
1477           lib/silccrypt/silcpkcs.[ch].
1478
1479 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1480
1481         * The client entry's userinfo pointer must be always valid. 
1482           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
1483           will fail since it requires the userinfo.  Now, the userinfo
1484           is allocated as "" if actual userinfo does not exist.  Actually,
1485           it must exist and it is totally Ok to drop client connections
1486           that does not announce the userinfo.  However, we will make
1487           this workaround for now.
1488
1489         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
1490           to return the remote port by socket.
1491
1492 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1493
1494         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
1495           SILC_SERVER_PENDING_EXEC and added an new macro
1496           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
1497           data or when error occurs while processing the pending command.
1498
1499           Added new argument `destructor' into silc_server_command_pending
1500           and to the SilcServerCommandPending object.  This destructor is
1501           now called after calling the pending callback or if error occurs
1502           immediately.  If error occurs the actual pending callback won't
1503           be called at all - only the destructor.  The destructor may be
1504           NULL if destructor is not needed.
1505
1506           All this applies for client library code as well.  Similar
1507           changes were made there as well for the pending commands.
1508
1509           In the client, the application must now allocate the 
1510           SilcClientCommandContext with the silc_client_command_alloc
1511           function.
1512
1513         * Added reference counter to the SilcServerCommandContext.  Added
1514           function silc_server_command_alloc and silc_server_command_dup 
1515           functions.
1516
1517           Same type of functions added to the client library for the same
1518           purpose as well.
1519
1520         * Removed the cmd_ident from IDListData away since it is now 
1521           global for all connections.  It is the command identifier used
1522           in command sending and with pending commands.  The affected file
1523           is silcd/idlist.h.
1524
1525         * Added reference counter to the SilcSocketConnection objecet to
1526           indicate the usage count of the object.  The object won't be
1527           freed untill the reference counter hits zero.  Currently only
1528           server uses this, and client ignores it.  The client must be
1529           set to use this too later.  The affected files are
1530           lib/silccore/silcsockconn.[ch].  Added also the function
1531           silc_socket_dup to increase the reference counter.
1532
1533           This was mainly added because it is possible that the socket
1534           is removed underneath of pending command or other async
1535           operation.  Now it won't be free'd and proper DISCONNECTING
1536           flags, etc. can be set to avoid sending data to connection that
1537           is not valid anymore.
1538
1539         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
1540           the connection.  After that it sets SILC_SET_DISCONNECTED.
1541           It is, however, possible that the socket data is not still freed.
1542           The silc_server_packet_process now checks that data is not
1543           read or written to connection that is DISCONNECTED.  The socket
1544           get's freed when the reference counter hits zero.
1545
1546 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1547
1548         * Changed the client operation API: channel_message operation's
1549           `sender' is now the client entry of the sender, not the nickname
1550           and the `channel' is the channel entry, not the channel name.
1551
1552           In the private_message operation the `sender' is now also the
1553           client entry of the sender not the nickname.
1554
1555           Affected file is lib/silcclient/ops.h and all applications
1556           using the client operations.
1557
1558 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1559
1560         * Moved the calling of ops->connect() from connect_to_server_final
1561           into receive_new_id functin since that is the point when the
1562           client is actually allowed to send traffic to network.  The
1563           affected file is lib/silcclient/client.c.
1564
1565 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1566
1567         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
1568           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
1569           (if needs broadcasting) instead of broadcasting the packets one
1570           by one which would make a burst in the network traffic.
1571
1572         * Added `broadcast' argument to the functions in silcd/server.[ch]
1573           silc_server_create_new_channel[_with_id] to indicate whether
1574           to send New Channel packet to primary router.
1575
1576 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1577
1578         * Added new function into the silcd/server.[ch] files:
1579           silc_server_create_new_channel_with_id to create new channel with
1580           already existing Channel ID.
1581
1582         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
1583           lib/silccore/silcpacket.h.  This packet is used t send list of
1584           Set Mode payloads inside one packet.  Server uses this to set
1585           the modes for the channels and clients on those channels, that it
1586           announced to the router when it connected to it.  The protocol
1587           specification has been updated accordingly.
1588
1589         * The silc_server_new_channel did not handle the packet coming
1590           from normal server as it normally does not send that.  However,
1591           when it announces its channels it does send it.  Implemented
1592           the support for that.
1593
1594         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
1595           into the file lib/silccore/id.h.
1596
1597 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1598
1599         * Fixed memory leaks in the functions silc_idlist_del_client,
1600           silc_idlist_del_channel and silc_idlist_del_server in the file
1601           silcd/idlist.c.  All of those leaked like a sieve.
1602
1603         * Fixed some small memory leaks in the client's function
1604           silc_client_notify_by_server.
1605
1606         * Added functions into silcd/server.c: silc_server_announce_clients,
1607           silc_server_announce_channels and silc_server_announce_server.
1608           These functions are used by normal and router server to announce
1609           to its primary router about clients, channels and servers (when
1610           router) that we own.  This is done after we've connected to the
1611           router.
1612
1613           These functions effectively implements the following packet types:
1614           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
1615           and SILC_PACKET_NEW_ID_LIST.
1616
1617         * Added new functions into the silcd/packet_receive.[ch]:
1618           silc_server_new_id_list, silc_server_new_channel_list and
1619           silc_server_new_channel_user_list to handle the incoming 
1620           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
1621
1622         * Added support of changing Channel ID in the function
1623           silc_server_replace_id.  If the server that announces a channel
1624           to the router already exists in the router (with same name but
1625           with different Channel ID), router is responsible to send
1626           Replace ID packet to the server and force the server to change
1627           the Channel ID to the one router has.
1628
1629         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
1630           client that the Channel ID has been changed by the router.  The
1631           normal server sends this to the client.  Client must start using
1632           the new Channel ID as the channel's ID.
1633
1634           Implemented handling of this new type into lib/silcclient/client.c
1635           into the function silc_client_notify_by_server.
1636
1637         * Added new function silc_idlist_replace_channel_id into the files
1638           silcd/idlist.[ch] to replace the Channel ID.
1639
1640 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1641
1642         * Call silc_server_command_identify_check always when processing
1643           the IDENTIFY command in silcd/command.c
1644
1645 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1646
1647         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
1648           send keepalive packets.  The packet can be sent by clients, 
1649           servers and routers.
1650
1651           Added function silc_socket_set_heartbeat into the file
1652           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
1653           If not set, the heartbeat is not performed.  The actual 
1654           heartbeat is implemented in the low level socket connection
1655           library.  However, application is responsible of actually
1656           sending the packet.
1657
1658           Added silc_server_send_heartbeat to send the actual heartbeat
1659           packet into silcd/packet_send.[ch].  Server now performs
1660           keepalive with all connections.
1661
1662         * Added silc_task_get_first function into lib/silcutil/silctask.c
1663           to return the timeout task with shortest timeout.  There was a bug
1664           in task unregistration that caused problems.  TODO has been
1665           updated to include that task system must be rewritten.
1666
1667         * The client library will now resolve the client information when
1668           receiving JOIN notify from server for client that we know but
1669           have incomplete information.
1670
1671         * Rewrote parts of silc_server_remove_from_channels and
1672           silc_server_remove_from_one_channel as they did not remove the
1673           channel in some circumstances even though they should've.
1674
1675         * Encryption problem encountered in server:
1676
1677           The LEAVE command used to send the Channel Key packet to the
1678           router immediately after generating it.  However, the code
1679           had earlier sent Remove Channel user packet but not immediately,
1680           ie. it was put to queue.  The order of packets in the router
1681           was that Channel Key packet was first and Remove Channel User
1682           packet was second, even though they were encrypted in the
1683           reverse order.  For this reason, MAC check failed.  Now, this
1684           is fixed by not sending the Channel Key packet immediately but
1685           putting it to queue.  However, this is more fundamental problem:
1686           packets that are in queue should actually not be encrypted 
1687           because packets that are sent immediately gets encrypted
1688           actually with wrong IV (and thus MAC check fails).  So, packets
1689           that are in queue should be encrypted when they are sent to
1690           the wire and not when they put to the queue.
1691
1692           However, the problem is that the current system has not been
1693           designed to work that way.  Instead, the packet is encrypted
1694           as soon as possible and left to the queue.  The queue is then
1695           just purged into wire.  There won't be any fixes for this
1696           any time soon.  So, the current semantic for packet sending
1697           is as follows:
1698
1699           o If you send packet to remote host and do not force the send
1700           (the packet will be in queue) then all subsequent packets to the
1701           same remote host must also be put to the queue.  Only after the
1702           queue has been purged is it safe again to force the packet
1703           send immediately.
1704
1705           o If you send all packets immediately then it safe to send
1706           any of subsequent packets through the queue, however, after
1707           the first packet is put to queue then any subsequent packets
1708           must also be put to the queue.
1709
1710           Follow these rules and everything works fine.
1711
1712 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1713
1714         * Added new function silc_server_remove_clients_by_server to
1715           remove all client entries from ID list when the server connection
1716           is lost.  In this case it is also important to invalidate all
1717           client entires as they hold the invalid server entry.  This
1718           fixes fatal bug when server has lost connection and will reconnect
1719           again.
1720
1721 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1722
1723         * Made some sanity checks to silc_server_daemonise like to check
1724           whether the requested user and group actually exists.
1725
1726         * Added sanity check to SKE's silc_ske_responder_finish to check
1727           that the public and private key actually is valid. 
1728
1729         * Invalidate the client's nickname when receiving Replace ID
1730           packet and the Client ID is being replaced.  This means that the
1731           server will query the nickname if someone needs it (client)
1732           a bit later.
1733
1734         * Sort the ID Cache in client library when the ID Cache data
1735           has changed (needs sorting).
1736
1737         * Do not allow for SILC client to create several connections to
1738           several servers.  The client does not support windows right now
1739           and generating multiple connections causes weird behaviour.
1740
1741           Irssi-silc client does support windows and can handle several
1742           connections without problems, see: www.irssi.org and SILC plugin.
1743
1744         * Fixed some places where client was added to the IDList.  The
1745           rule of thumb is following (in order to get everything right):
1746           If the client is directly connected local client then the 
1747           `connection' argument must be set and `router' argument must be 
1748           NULL to silc_idlist_add_client function.  If the client is not
1749           directly connected client then the `router' argument must
1750           bet set and the `connection' argument must be NULL to the
1751           silc_idlist_add_client function.
1752
1753         * The funtion silc_server_packet_send_local_channel actually did
1754           not check whether the client was locally connected or not.  It
1755           does that now.  Fixed a bug related to LEAVE command.
1756
1757         * Fixed Remove Channel User payload parsing bug in server's
1758           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
1759
1760         * The server's silc_server_save_channel_key now checks also the
1761           global ID list for the channel as it might not be in the local
1762           list.  Fixed a bug related to LEAVE command.
1763
1764         * Is this the end of the [<unknown>] buglet that has been lurking
1765           around for a long time?  A little for loop fix in server's
1766           silc_server_command_whois_parse that is used by both IDENTIFY
1767           and WHOIS command.  At least, this was a clear bug and a cause
1768           of one type of [<unknown>] buglet.
1769
1770         * WHOIS and IDENTIFY commands call the function
1771           silc_server_command_[whois/identify]_check function even if
1772           we are not router server.
1773
1774 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1775
1776         * Added --with-gmp configuration option.  If set the GMP
1777           is always compiled in the SILC source tree.  If not set then
1778           it is checked whether the system has the GMP3 installed.  If
1779           it has then the GMP won't be compiled (the system's headers
1780           and library is used), if it doesn't have it then the GMP is
1781           compiled in the SILC source tree.
1782
1783 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1784
1785         * Changed RSA private exponent generation to what PKCS #1
1786           suggests.  We try to find the smallest possible d by doing
1787           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
1788           not security fix but optimization.
1789
1790 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1791
1792         * Added new config entry [Identity] to fork the server and run
1793           it as specific user and group.  A patch from Bostik.
1794
1795         * Imported Dotconf configuration library into lib/dotconf.
1796           This will be used to create the SILC configuration files later.
1797           It will appear in the distsribution after this commit.
1798
1799 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1800
1801         * A big code auditing weekend happening.  Auditing code for 
1802           obvious mistakes, bugs and errors.  Also, removing any code
1803           that is obsolete.
1804
1805           Removed files for being obsolete:
1806
1807           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
1808           inline in the file lib/silcutil/silcbuffer.h)
1809
1810           o lib/silcutil/silcbufutil.c (the header has inline versions)
1811
1812           Changed code to fix possible error conditions:
1813
1814           o The buffer formatting routines now check that the destination
1815           buffer really has enough space to add the data.  This applies for
1816           both buffer formatting and unformatting 
1817           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
1818           unformatting was changed to accomodate following rules: 
1819           XXX_*STRING_ALLOC will allocate space for the data into the pointer
1820           sent to the function while XXX_*STRING will not allocate or copy 
1821           the data into the buffer.  Instead it sets the pointer from the
1822           buffer into the pointer sent as argument (XXX_*STRING used to
1823           require that the pointer must be allocated already).  This change
1824           makes this whole thing a bit more consistent and more optimized
1825           (note that the data returned in the unformatting with XXX_*STRING
1826           must not be freed now).  The routines return now -1 on error.
1827
1828           o Tried to find all code that use buffer_format and buffer_unformat
1829           and added return value checking to prevent formatting and
1830           especially unformatting errors and possible subsequent fatal
1831           errors.
1832
1833           o Changed ske->x and ske->KEY to mallocated pointers in
1834           lib/silcske/silcske.h.  Fixed possible data and memory leak.
1835
1836           o Added return value checking to all *_parse* functions.  Fixed
1837           many memory leaks as well.
1838
1839           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
1840           so that buffer overflows would not happen.  All code now also
1841           checks the return value as it can fail.
1842
1843 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1844
1845         * Added reconnection support to server if the normal server looses
1846           its connection to the router (for example if router is rebooted).
1847           The server performs normal reconnection strategy implemented
1848           to the server.  Affected file silcd/server.c.
1849
1850 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1851
1852         * Added new packet type SILC_PACKET_SET_MODE that is used to
1853           distribute the information about changed modes (for clients,
1854           channels and clients channel modes) to all routers in the
1855           network.  Updated the protocol specification accordingly.
1856
1857           Added functions into silcd/packet_send.c and 
1858           silcd/packet_receive.c: silc_server_send_set_mode, 
1859           silc_server_set_mode.
1860
1861           Added new files silcmode.[ch] into lib/silccore that implements
1862           the encoding and decoding of Set Mode Payload.  Added new type
1863           SilcSetModePayload.  Moved the definitions of different modes
1864           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
1865
1866 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1867
1868         * Oops, a little mistake in server's connection authentication 
1869           protocol.  The protocol is not ended with FAILURE but with
1870           SUCCESS if the authentication is Ok. :)  Affected file is
1871           silcd/protocol.c.
1872
1873         * Implemented NICK_CHANGE notify handling in server in the file
1874           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
1875           the local clients on the channel.  After the changing nickname
1876           in router environment snhould work and the [<unknown>] nickname
1877           should appear no more.
1878  
1879           The silc_server_replace_id function that receives the Replace ID
1880           payload now sends the NICK_CHANGE notify type also in the file
1881           silcd/packet_receive.c
1882
1883         * Changed WHOIS and IDENTIFY command to support the maximum amount
1884           of arguments defined in protocol specs (3328 arguments).  This 
1885           fixed a bug that caused problems when there were more than three
1886           users on a channel.
1887
1888 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1889
1890         * Added extra parameter, command identifier, to the
1891           silc_client_send_command so that explicit command identifier
1892           can be defined.
1893
1894           Changed that ID list routines uses specific command identifier
1895           when sending WHOIS/IDENTIFY requests to the server so that they
1896           can be identified when the reply comes back.
1897
1898           Affected files lib/silcclient/command.[ch],
1899           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
1900
1901         * Added `sender' argument to silc_server_packet_send_to_channel
1902           to indicaet the sender who originally sent the packet to us
1903           that we are now re-sending.  Ignored if NULL.  Affected file
1904           silcd/packet_send.[ch].
1905
1906         * Added some server statistics support in silcd/server_internal.h
1907           SilcServerStatistics structure and around the server code.  Also
1908           send some nice statistics information when client is connecting
1909           to the client.
1910
1911 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1912
1913         * Fixed channel ID decoding in server's JOIN command reply in
1914           silcd/command_reply.c
1915
1916         * Fixed braodcasting of replace ID payload to not to send it if
1917           we are standalone server in silcd/packet_receive.c.
1918
1919         * Fixed all channel message sending routines to not to send
1920           packets to clients that has router set, since they are routed
1921           separately in the same function earlier.  Affects file
1922           silcd/packet_send.c and all channel packet sending functions.
1923
1924         * In USERS reply, res_argv[i] are not allocated, the table
1925           is allocated.  Thus changed that free the table, not its
1926           internals.
1927
1928         * In server's whois_check and identify_check if the client is
1929           locally connected do not send any WHOIS commands - they are not
1930           needed.
1931
1932 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1933
1934         * Fixed some minor bugs in client when sending WHOIS command.  The
1935           arguments was in wrong order.
1936
1937         * Removed statis function add_to_channel from server in 
1938           silcd/command.c that was previously used with the joining but
1939           is obsolete now.
1940
1941         * Tested USERS command in router environment successfully with two
1942           routers, two servers and two clients.
1943
1944 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1945
1946         * Reorganized the USERS command and command reply in client library
1947           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
1948           When the command is given by user we register a pending command
1949           callback that will reprocess the command after the reply has been
1950           received from the server.  When reprocessing the packet we then
1951           display the information.  Thus, the USERS information is displayed
1952           now in the command callback instead of in the command reply
1953           callback.  The processing of the command is same as previously
1954           when server has sent the command reply in the JOINing process.
1955
1956         * Added to USERS command in silcd/command_reply.c to join the client,
1957           we didn't use to know about, to the channel after we've created
1958           a client entry for it.  Also, for clienet we did know already still
1959           check whether it is on the channel or not and add it if not.
1960
1961         * Removed silc_server_command_join_notify as the function and its
1962           use was obsolete.
1963
1964 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
1965
1966         * Changed the client's pending command handling to the same as the
1967           server's pending command handling.  It is also now possible to
1968           execute command reply functions from other command reply
1969           function as the function callbacks for commands and command
1970           replies are one and same.  The pending commands are not static
1971           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
1972           in client connection context.  Thus, pending commands are server
1973           connection specific as it is convenient.
1974
1975           Changed the function silc_client_command_pending and
1976           silc_client_command_pending_del and added new function
1977           silc_client_command_pending_check.  Removed the 
1978           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
1979           macros.
1980
1981         * Added cmd_ident, current command identifier, to the client
1982           connection context in lib/silcclient/client.h to keep track on
1983           command identifiers used in command sending.  Client's command reply
1984           function handling now supports the mandatory command identifiers.
1985
1986         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
1987           funtions in client to fully support pending command callbacks.
1988
1989         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
1990           as one of the arguments to the application in the command reply
1991           client operation.
1992
1993         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
1994           before first releasing SILC but came back.  Now it is removed again
1995           and should come back nomore.  The FORWARDED flag was used only
1996           by the JOINing procedure by forwarding the command packet to router.
1997           Now, the JOINing procedure has been changed to more generic (due
1998           to various router environment issues) and FORWARDED is not needed
1999           anymore for anything.  The protocol specification is yet to be
2000           updated.
2001
2002           Now, removed silc_server_packet_forward from server and the flag
2003           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
2004
2005 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2006
2007         * Renamed NAMES command to USERS command.  The NAMES was named that
2008           due to historical reasons.  Now it is renamed.  Also, rewrote
2009           parts of the USERS command.  The nickname list is not sent anymore
2010           by the server.  Only Client ID and mode lists are sent in the USERS
2011           command.  Changed this also to the protocol specification.
2012
2013           The client now resolves the names and stuff after it receives
2014           the USERS list from the server when joining to the channel.
2015
2016         * WHOIS and IDENTIFY commands has been changed to support multiple
2017           Client ID's per command.  One can now search for multiple users
2018           in the network by sending only one WHOIS or IDENTIFY command.
2019           Changed the code and the protocol specifications.
2020
2021         * Removed silc_server_command_identify_parse and changed that IDENTIFY
2022           uses silc_server_command_whois_parse to parse the request. */
2023
2024         * If normal server, do not parse the WHOIS and IDENTIFY requests
2025           before sending it to the router.  Saves some time.
2026
2027 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2028
2029         * Fixed JOIN command on client library.  Wrong number of arguments
2030           used to crash the client.
2031
2032         * Added silc_server_channel_has_global function to check whether
2033           channel has global users or not.
2034
2035         * Added silc_server_channel_has_local function to check whether channel
2036           has locally connected clients on the channel.
2037
2038         * The silc_server_remove_from_one_channel now checks whether the
2039           channel has global users or not after given client was removed from
2040           the channel.  It also checks whether the channel has local clients
2041           on the channel anymore.  If it does not have then the channel entry
2042           is removed as it is not needed anymore.
2043
2044         * The silc_server_notify now checks on JOIN notify whether the joining
2045           client is one of locally connected or global.  If it is global then
2046           the channel has now global users on the channel and that is marked
2047           to the channel entry.  Also, it now saves the global client to
2048           global list who is joining and JOINs it to the channel.  This is
2049           for normal server, that is.
2050
2051           Changed silc_server_send_notify_on_channel, 
2052           silc_server_packet_relay_to_channel and 
2053           silc_server_packet_send_to_channel check if we are normal server
2054           and client has router set (ie. global client) do not send the
2055           message to that client, as it is already routed to our router.
2056
2057         * Implemented LEAVE notify type handling in silc_server_notify 
2058           function.
2059
2060         * Tested LEAVE command in router environment successfully.  Tested
2061           with two routers, two servers and two clients.
2062
2063         * Updated TODO.
2064
2065         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
2066
2067         * Implemented SIGNOFF notify type handling in silc_server_notify
2068           function.
2069
2070         * silc_server_remove_id now removes the client entry from all channels
2071           it has joined and thusly sends SIGNOFF notify type.
2072
2073         * Rewrote the NAMES list generation in server by removing two excess
2074           loops.  The lists are created now inside one loop.
2075
2076 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2077
2078         * silc_server_remove_channel_user checks now also global list
2079           for channel and client.
2080
2081         * silc_server_new_channel_user checks now both local and global
2082           list for channel and client.  Fixed a bug in client id decoding.
2083           Used to decode wrong buffer.
2084
2085         * silc_server_channel_message checks now both local and global
2086           list for channel entry.
2087
2088         * Tested channel joining (hence JOIN) in router environment
2089           successfully.  Tested with two routers, two servers and two
2090           clients.
2091
2092         * Tested channel message sending in router environment successfully.
2093
2094 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2095
2096         * Added silc_server_save_channel_key into server.[ch] to save the
2097           received channel key in Channel Key payload processing. It is
2098           also used in JOIN command reply handling.
2099
2100           Equivalent function silc_client_save_channel_key added into
2101           client.[ch] into client library.
2102
2103         * Changed JOIN command reply to send information whether the channel
2104           was created or not (is existing already) and the channel key 
2105           payload.  Changed protocol specs accordingly.
2106
2107         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
2108           the request was sent by ID and not by nickname.  Crashed on
2109           NULL dereference.
2110
2111 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2112
2113         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
2114           now correctly save the received data.
2115
2116         * silc_server_free_sock_user_data now notifies routers in the 
2117           network about entities leaving the network.
2118
2119           At the same time implemented functions silc_server_remove_id
2120           and silc_server_send_remove_id to receive and send REMOVE_ID
2121           packets.  The packet is used to notify routers in the network
2122           about leaving entities.  The ID removed will become invalid in
2123           the network.
2124
2125         * Added function silc_idlist_del_server into server. Removes and
2126           free's server entry from ID list.
2127
2128         * silc_server_private_message function now checks, if we are router,
2129           that the destination ID really is valid ID, naturally.
2130
2131         * In router when NEW_ID packet is received (for new client) the
2132           hash of the Client ID is saved in the ID Cache but the
2133           client->nickname is set to NULL, instead of putting the hash
2134           to it as well.
2135
2136           IDENTIFY command now also checks that client->nickname must be
2137           valid. If it is not if will request the data from the server who
2138           owns the client.  Added new function 
2139           silc_server_command_identify_check.
2140
2141         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
2142           to set the command to already allocated Command Payload.
2143
2144         * Tested private message sending in router environment with two
2145           routers, two servers and two clients.  Fixed minor bugs and now
2146           it works fine.
2147
2148         * Fixed segfault from client's NAMES command. Used to crash if
2149           not on any channel.
2150
2151         * Forwarded packets must not be routed even if it is not destined
2152           to the receiver.  Changed server code comply with this.
2153
2154 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2155
2156         * Added `require_reverse_mapping' boolean value to ServerParams
2157           structure. If TRUE (not default) the server will require that
2158           the connecting host has fully qualified domain name.
2159
2160           If the reverse mapping is not required and hostname could not be
2161           found the IP address is used as hostname.
2162
2163 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2164
2165         * Implemented version string checking to both client and server.
2166           The check is incomplete currently due to the abnormal version 
2167           strings used in development version of SILC.
2168
2169         * Changed all command functions in server to use the new
2170           CHECK_ARGS macro.
2171
2172 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2173
2174         * Changed char *data to unsigned char *data in ID Cache system to
2175           support binary data as ID Cache data. Changed code to support
2176           binary data in lib/silccore/idcache.c.
2177
2178         * Renamed silc_server_packet_relay_command_reply to 
2179           silc_server_command_reply as it is normal packet receiving
2180           function. Rewrote the function to accept command replys for
2181           servers and not only for clients.
2182
2183         * Mark remote router always as registered server if we are connecting
2184           to it.  Otherwise, commands sent by the router to us are ignored.
2185
2186         * All ID List find routines now returns the ID Cache Entry pointer
2187           as well if requested.
2188
2189         * WHOIS command works now in router environment, tested with two
2190           routers, two servers and two clients.
2191
2192         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
2193           in router environment (as it is almost equivalent to WHOIS) but
2194           hasn't been tested thoroughly.  Added new functions:
2195
2196           silc_server_command_identify_parse
2197           silc_server_command_identify_send_reply
2198           silc_server_command_identify_from_client
2199           silc_server_command_identify_from_server
2200
2201         * Disabled route cache adding because adding two different ID's with
2202           same IP replaces the old cache entry thus giving wrong route.
2203           The entry->router->connection is always the fastest route anyway
2204           so route cache may not be needed.  Of course, new routes maybe
2205           established after receiving the ID when the entry->router->connection
2206           might not be anymore the most optimal.
2207
2208 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2209
2210         * Add route cache for received ID for fast routing.
2211
2212         * Added silc_server_packet_route to route received packet on router
2213           that is not destined to us.
2214
2215         * Renamed silc_server_get_route to silc_server_route_get.
2216
2217         * Added id_string and id_string_len fields into SilcServer to
2218           include encoded ServerID for fast comparing without excess
2219           encoding of the ID's.
2220
2221         * Cleaned up WHOIS command on server side. Added following static
2222           functions:
2223
2224           silc_server_command_whois_parse
2225           silc_server_command_whois_check
2226           silc_server_command_whois_send_reply
2227           silc_server_command_whois_from_client
2228           silc_server_command_whois_from_server
2229
2230         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
2231           arguments in command replies. All command functions should be
2232           updated to use this macro.
2233
2234 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2235
2236         * Minor typo fixes on command reply handling on server.
2237
2238 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2239
2240         * Added silc_server_command_add_to_channel internal routine to add
2241           the client to the channel after router has created the channel and
2242           sent command reply to the server.
2243
2244         * Added generic silc_server_send_command to send any command from
2245           server.
2246
2247         * Use static buffer with ID rendering instead of duplicating data.
2248
2249 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2250
2251         * Fixed a channel user mode bug when joining to a channel server gave
2252           everybody channel founder rights, oops.
2253
2254         * We mark ourselves as the router of the incoming server connection
2255           if we are router ourselves.  This way we can check in some packet
2256           sending functions whether it is locally connected server.  For
2257           incoming router connections we put NULL.
2258
2259         * For router sending packets locally means now always sending the
2260           packet cell wide; to local clients and local servers.  For normal
2261           server sending packet locally means sending it to only local
2262           clients.
2263
2264         * Fixed the JOIN command to really work in router environment.  If the
2265           channel is created it is always created by the router.  Router is
2266           also responsible of making the initial joining to the channel,
2267           sending JOIN notify to the sending server and distributing 
2268           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
2269           does not exist server doesn't do anything else but forward the
2270           command to the router which performs everything.
2271
2272         * Added silc_server_send_channel_key function to send the Channel Key
2273           payload.
2274
2275         * Added silc_server_create_channel_key to create new channel key.  The
2276           channel key is now re-generated everytime someone joins or leaves
2277           a channel, as protocol dictates.  Note: channel->key_len is the
2278           key length in bits.
2279
2280 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2281
2282         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
2283           packet_receive.[ch] to separate packet sending and receiving
2284           routines.  The server.[ch] now includes everything else including
2285           actual packet processing (writing and reading data) and other
2286           server issues.
2287
2288           Renamed silc_server_private_message_send_internal to
2289           silc_server_send_private_message.  The routine is still though
2290           used only to relay private messages as server does not send
2291           private messages itself.
2292
2293           Renamed silc_server_new_channel to silc_server_create_new_channel
2294           and added new function sicl_server_new_channel that handles the
2295           incoming New Channel packet.  Added also new sending function
2296           silc_server_send_new_channel to send New Channel Payload.
2297
2298         * Added new function silc_server_notify to process incoming notify
2299           packet to the server/router. Server may then relay the notify
2300           to clients if needed.
2301
2302         * Added new function silc_server_new_channel_user to process incoming
2303           New Channel User packet.  Router will redistribute the packet and
2304           send JOIN notify to its local clients and locally connected servers
2305           if needed.  Normal server will send JOIN notify to its local client
2306           on same channel when received this packet.  Added also corresponding
2307           sending function silc_server_send_new_channel_user to sent the
2308           payload.
2309
2310         * Added boolean route argument to send_notif_to_channel and
2311           packet_send_to_channel functions to attempt to route the packet
2312           if it is TRUE and send only locally if it is FALSE.
2313
2314 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2315
2316         * silc_server_replace_id now broadcasts the received replace ID
2317           packet if it is not broadcast packet already. The router must
2318           broadcast to inform other routers about changed ID.
2319
2320         * Added backpointer to server's router into SilcServer context in
2321           silcd/server_internal.h.
2322
2323         * Fixed silc_server_packet_broadcast to send correct broadcast
2324           packets.
2325
2326         * The channel key is now distributed to the local client as soon
2327           as it is received from the router (in router environment) so that
2328           no other packet may be sent for the channel until client has 
2329           received the key.
2330
2331         * silc_server_remove_channel_user now broadcasts the received
2332           Remove Channel User packet if it is not broadcast packet already.
2333           The router must broadcast to inform other routers about removed
2334           channel user.
2335
2336         * Added users field into SilcPacketContext that is a reference count
2337           of the context.  One can increase the reference count by calling
2338           silc_packet_context_dup which is now changed to just increase the
2339           reference count instead of duplicating the data.  The reference
2340           count is decresed by calling silc_packet_context_free that will
2341           free the data after the reference count hits zero.
2342
2343           For now on the packet context and everything allocated into it
2344           (including the raw packet from network) must be freed by calling
2345           the new silc_packet_context_free function.  Added also new function
2346           silc_packet_context_alloc that must be used now to allocate the
2347           context.  This also means that if a routine is asynchronous from
2348           silc_[client/server]_packet_parse_type the packet context must
2349           be duplicated by calling silc_packet_context_dup.  Otherwise it
2350           gets free'd after silc_[client/server]_packet_parse_type returns.
2351           Also, one must remember that if packet is duplicated then its 
2352           reference count must be decresed by calling the free function as
2353           many times as it was duplicated.
2354
2355         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
2356           from both client and server.
2357
2358 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2359
2360         * Made joining to a channel working in router environment.
2361
2362         * Cleaned up JOIN command on server side and create function
2363           silc_server_command_join_channel internal routine to make the
2364           joining happen.
2365
2366 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2367
2368         * Changed silc_command_pending list to SilcDList.  Also, added
2369           `ident' field to SilcServerCommandPending structure to identify
2370           the reply and to call correct callback.
2371
2372           Added silc_server_command_pending_check function to replace the
2373           corresnponding macro.  The silc_command_pending list is not
2374           extern anymore.
2375
2376         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
2377           to set identifier to previously allocated Command Payload.  It
2378           is used to set identifier for command when resending Command
2379           Payload.
2380
2381         * Added silc_command_payload_encode_payload to encode Command
2382           Payload buffer from SilcCommandPayload structure.
2383
2384         * Added silc_argument_payload_encode_payload to encode Argument
2385           payload buffer from SilcArgumentPayload structure.
2386
2387 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2388
2389         * Changed WHOIS command to support router connection on server side.
2390           The whois request is always sent to router unless the server is
2391           standalone server.  After server has received the reply from the
2392           router will it send the reply to the client.
2393
2394         * Added silc_server_packet_broadcast into silcd/server.[ch] to
2395           broadcast received broadcast packet.  The function is used only
2396           by router.  The broadcast packet is always sent to the router's
2397           primary route.
2398
2399         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
2400           render given ID to printable string, for log files for example.
2401
2402 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2403
2404         * Made basic router to router connections working.  At least they
2405           can now connect to each other but nothing really works the way
2406           they are supposed - yet.
2407
2408         * Added new initiator token to RouterConnection configuration
2409           file in silcd/serverconfig.[ch].  It is used to tell whether we
2410           are the initiator to the remote router or whether we'll expect
2411           the other end to connect.
2412
2413         * Moved registering of listener task to silc_server_init, hence
2414           the server starts listenning as soon as it is run, even if it
2415           does not have connections to other routers.  Let's see how well
2416           this will work.
2417
2418         * Changed default connection retry timeouts for more suitable in
2419           silcd/server.h.
2420
2421         * Removed cipher and such arguments from silc_idlist_add_client
2422           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
2423           Added new function silc_idlist_add_data to add the keys and stuff
2424           to any ID entry.
2425
2426         * Added SilcIDListData structure and added it to SilcClientEntry
2427           and SilcServerEntry as their first field in the structure.  This
2428           way we can explicitly cast the ID entries to the SilcIDListData
2429           structure and get common data for the entries.  In past, we had
2430           to first check what type of connection it is and then cast it to
2431           correct ID entry type.  Now, we can directly cast the opaque
2432           pointer to the SilcIDListData (no matter what ID entry it actually
2433           is) and get the data needed.
2434
2435 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2436
2437         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
2438           in some circumstances even if threre were timeout tasks, though not
2439           IO tasks, but tasks anyway.  Now fixed.
2440
2441         * Defined SilcServerConnection structure to hold connection specific
2442           stuff about directly connected servers and routers.  The definition
2443           is currently in silcd/server_internal.h.  I thought about having
2444           a bit more important role fro this struct but for now it is used
2445           only when connecting to other server (or router actually).
2446
2447         * Added connecting retry support in server when connecting to
2448           router(s).  The retry feature implement exponential backoff
2449           algorithm.  Also, added SilcServerParams structure to hold default
2450           parameters for server.  For now, it include these retry settings
2451           and are hard coded.  After server is moded to be as Silc Server
2452           Library this structure will be more important.
2453
2454 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2455
2456         * Changed client librarys channel->clients table to SilcList and
2457           changed code accordingly.
2458
2459 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2460
2461         * Changed client's channel table to SilcList and changed code 
2462           accordingly.  Also changed SilcChannelClientEntry to include back-
2463           pointer to the channel so that client entry can use that structure
2464           as list as well and we have fast cross-reference to the channel.
2465           This change dramatically decreased the complexity of channel
2466           handling with client entry and vice versa (removed one extra
2467           loop when searching for channel entry from many functions).
2468
2469         * Changed server->sim from table to SilcDList and changed code
2470           accordingly.
2471
2472         * NAMES command can now be used from user interface.  It will show
2473           the user list on the channel, neatly.
2474
2475         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
2476           Code now saves realname of the user if it becomes available.
2477
2478         * Renamed configure.in to configure.in.pre and made ./prepare
2479           script to automatically add correct version string to
2480           configure.in which it creates from configure.in.pre.
2481
2482 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2483
2484         * NAMES command reply now shows users mode with the nickname when
2485           joining to channel.
2486
2487         * Moved silc_client_ch[u]mode[_char] functions from 
2488           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
2489           place sucks, they are utility functions and should be in some
2490           other file.
2491
2492         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
2493
2494         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
2495           cras.
2496
2497 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2498
2499         * Updated README.
2500
2501         * Added TRQ (efficient deque and list library) into lib/trq.  This is
2502           a very good list library that is currently used in the SILC.  Defined
2503           SilcList API over the library because I didn't like the API very
2504           much.  See lib/trq/silclist.h for the API and examples of how to
2505           use the API.  Fixed various places in the code to use the new
2506           SilcList API. The SilcList is meant for lists that has a structure
2507           already defined as a list.  It is not suitable to add just some
2508           context to the list (in TRQ, the context is the list actually).
2509
2510           So, I defined SilcDList that can be used for the purpose where 
2511           predefined list structure does not exit.  This can be used as
2512           such list.  Now some context just can be added to the SilcDList.
2513           Currently this list is not used in the SILC just yet, though there
2514           are a lot places where this can replace dynamically allocated
2515           tables and I will fix these places, later, to use SilcDList.
2516           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
2517           and use TRQ internally).
2518
2519           Also fixed some annoying warning messages that the original TRQ
2520           code generated.  Also minor changes to TRQ's Makefile.in.
2521
2522         * Added support for querying by Client ID to both WHOIS and 
2523           IDENTIFY commands into server, as required by the protocol.
2524
2525         * Removed method function pointers from SilcBuffer structure. They
2526           weren't used to anything and just increased the context size for
2527           no good reason.  This change also made silc_buffer_alloc and
2528           silc_buffer_free functions inline functions.
2529
2530         * Disabled command flooding detection support until it's fixed so 
2531           that it accepts commands in but does not execute them more than once
2532           in two seconds.
2533
2534         * Added silc_net_localhost(), to return local hostname, into
2535           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
2536           that must be initialized before calling silc_client_init.
2537
2538         * Added new function: silc_server_send_notify_on_channels to send
2539           notify messages to all channels client has joined.  It is assured
2540           that the message is sent only once per client.
2541
2542         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
2543           lib/silcutil/silcutil.[ch] as silc_format function.  The new 
2544           function is generic and is used by server as well, not only by
2545           the logging routines.
2546
2547         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
2548           the provided version string was not acceptable.  Added new function:
2549           silc_ske_check_version into lib/silcske/silcske.h.  The function
2550           must be implemented by the application (client or server) and it
2551           does not reside in the SKE library.  The function checks the version
2552           string remote end sent.
2553
2554         * Added back pointers (to opaque context and to SilcSocketConnection) 
2555           into SilcPacketContext structure into lib/silccore/silcpacket.h.
2556
2557         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
2558           duplicate packet context structure.
2559
2560         * Changed `notify' client operation to send same arguments as client
2561           receives from server except for ID's.  ID's are mapped to correct
2562           ID entry and that is returned.  Also, if channel entry is not sent
2563           by server but the notify is for channel the channel entry is sent
2564           to application (otherwise application doesn't know that it is for
2565           channel (library gets it from packet's Destination ID)).
2566
2567         * Added silc_client_remove_from_channels into client library to 
2568           remove a client from all channels it has joined to.  Used when 
2569           received SIGNOFF notify from server.  Added also new function
2570           silc_client_replace_from_channels to replace old ID entry with
2571           new ID entry on all channels.  Used when received NICK_CHANGE
2572           notify from server.
2573
2574         * Fixed ID Cache list handling in silc_idlist_get_client in 
2575           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
2576           to get (or query) client by ID.
2577
2578         * Updated TODO list.
2579
2580         * Added connection authentication status message defined by the
2581           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
2582           support for these into the code in client and server side.
2583
2584         * Added generic function silc_client_send_command to send any command
2585           with variable argument list.  Application should use this function
2586           to send commands if the command functions provided by the library
2587           does not suite for the application's user interface needs.
2588
2589         * Added new `failure' client operation.  Application is notified about
2590           received failure packet if client is executing a protocol.  In this
2591           case the protocol's execution has failed.
2592
2593         * Added SKE's end notify to send the SKE_SUCCESS notify message that
2594           is required by the protocol.
2595
2596         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
2597           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
2598           error at our end.
2599
2600         * Added status flag to SilcSKE object to indicate realtime status
2601           of the SKE protocol.
2602
2603         * Application receives now exactly same command reply arguments as
2604           the library receives from server.  However, if ID is received the
2605           corresponding ID entry is returned to the application (eg. Client
2606           ID is mapped to correct SilcClientEntry entry and that is returned).
2607           Changed command_reply client operation due to this change.
2608
2609         * Changed all ID's in commands and in command replys as ID Payloads.
2610           Change affected both client and server side codes.
2611
2612           All ID's sent in SILC network (with execption of ID's in SILC
2613           Packet header) are sent in ID Payload to support variable length
2614           ID's.
2615
2616         * Server now notifies nick changes and notifies all clients on
2617           the channels about the new nickname (about the new Client ID,
2618           actually).
2619
2620         * Implemented CMODE command to change channel modes. Supports all
2621           channel modes defined by the protocol specs except ban and invite
2622           lists. (Also, private channel key mode is supported but support for
2623           setting private channel key in client is missing, thus, this mode
2624           has no effect on client side (except that server requires that the
2625           client uses private channel key and normal channel traffic does not
2626           work anymore)).
2627
2628           Also, invite mode works per se, but INVITE command does not work
2629           yet correctly, so you can set channel as invite only channel but
2630           inviting clients to the channel does not work (it is yet to be
2631           thought what's the best way to do it).
2632
2633         * Added new command SILC_COMMAND_CUMODE to change user mode on the
2634           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
2635           Implemented CUMODE command to change user's mode on the channel.
2636           Supports all modes defined by the protocol specs.
2637
2638         * Added NAMES command reply to return users modes on the channel.
2639
2640         * Removed unnecessary and slow ciphers from lib/silccrypt.
2641
2642         * Set SO_KEEPALIVE option to connection sockets by default.
2643
2644         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
2645
2646         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
2647           redefined the Notify Payload into protocol specs.
2648
2649         * Added silc_id_payload_parse_id to get ID directly from raw
2650           ID payload data.
2651
2652 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2653
2654         * Changed SILC_COMMAND_IDENTIFY in protocol specification to 
2655           accept searching by Client ID as well.
2656
2657         * Added support for LEAVE and SIGNOFF notify types in client library.
2658
2659         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
2660           to parse ID Payload from raw data.
2661
2662 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2663
2664         * Added flags parameter into silc_ske_assemble_security_properties
2665           function in lib/silcske/silcske.[ch].
2666
2667         * Changed notify client operation to fit better for notify messages
2668           sent by server.  The notify payload received from server is now
2669           passed to the application (after parsing it to SilcNotifyPayload).
2670           It is application's responsibility to retrieve the arguments
2671           from the payload and show the message the way it wants.  The message
2672           sent by server is implementation specific.
2673
2674         * Changed public keys to comply with the protocol specification.
2675           Old public keys are not supported anymore and are not compatible.
2676
2677         * Removed nickname from Channel Payload as the latest draft removed
2678           it.  The client must resolve the nickname from the NAMES command
2679           reply received when it joined the channel.
2680
2681           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
2682
2683 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2684
2685         * Fixed some errors in protocol specification drafts.
2686
2687         * Created lib/silccore/silcnotify.c to implement Notify Payload
2688           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
2689           generic payloads described by protocol specifications.  The file
2690           includes implementations for ID Payload and Argument Payload.
2691
2692         * Changed Command Payload implementation to use the new Argument
2693           Payload.  Changed command_xxxx_payload to command_payload_xxxx
2694           to comply with SILC coding conventions.
2695
2696         * Added suppport for Argument Payload handling in Notify Payload
2697           implementation as protocol requires it.  Added the new support
2698           into server and client lib as well.
2699
2700 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2701
2702         * Added support for multiple nicknames on same channel.  [n] is
2703           added locally to the nickname if there are more than one same
2704           nicknames on the channel.
2705
2706         * Server now sends all nicknames that matched WHOIS request.
2707           Client also shows the list received from server.
2708
2709         * Added TOPIC command to client side.  User can now set and show
2710           current topic on channel.
2711
2712         * Added MOTD command to client and server.  Also, server sends the
2713           motd when client connects to the server.
2714
2715         * Changed version strings to comply ISO 8601.
2716
2717 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2718
2719         * Fixed protocol error handling in client library.  It should now
2720           cope even if the SKE fails for some reason.
2721
2722         * Made new protocol specification drafts for submitting to IETF.
2723
2724         * Implemented TOPIC command to server in silcd/command.c.
2725
2726         * Added two new notify types into lib/silccore/silcnotify.h:
2727           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
2728           notify nickname change and topic setting/change on a channel.
2729
2730         * API change of command_reply operation in client library.  The
2731           application gets now the status type received from server as well.
2732
2733 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2734
2735         * Removed the function just added to lib/silcutil/silcschedule.[ch].
2736
2737         * Cras fixed and optimized the packet handling even further and
2738           it should work now.  Minor change to the prototype of function
2739           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
2740
2741 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2742
2743         * Added new function into lib/silcutil/silcschedule.[ch]:
2744           silc_schedule_with_fd to select() a specified fd.  The function
2745           returns after timeout expires or data arrives or goes.  The
2746           function is used by packet routines to wait that all data is
2747           received from network.
2748
2749         * Fixed data reading from network in lib/silccore/silcpacket.c.
2750           The code now assures that all data is read from the fd and then
2751           continues packet processing.  This was a bug fix since the code
2752           used to drop some data in some circumstances.
2753
2754         * Added new function into lib/silcclient/client.[ch]:
2755           silc_client_start_key_exchange to start key exchange after
2756           connection has been established to server.  The code internally
2757           now uses this funtion but its main purpose was to provide it
2758           for applications that perform their own connecting.  After
2759           application has created a connection it merely calls this
2760           function to start the key exchange between client and server.
2761           The library takes care of everything else after that.
2762
2763           Updated also lib/silcclient/README to explain the usage of
2764           this new function.
2765
2766         * Do not send to application information that connection has
2767           been established.  Application gets notified it by connect
2768           operation anyway.
2769
2770 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2771
2772         * Applied cras's patch to add silc_schedule_one function.  The
2773           function runs scheduler once and returns.
2774
2775         * Fixed the scheduler after cras messed it up.  The timeout
2776           handling works now as it's supposed to work.
2777
2778         * Added into lib/silccore/ silcnotify.h to include notify
2779           message types support.  Changed silc_server_send_notify*
2780           functions, in server.[ch], to support those new notify types.
2781           Added the support for the notify types into client library,
2782           as well.  Added new notify client operation into ops.h in
2783           lib/silcclient/.
2784
2785         * Changed silc_server_packet_send_to_channel to send normal
2786           packets instead of just channel message packets.  The function
2787           is now used to send the notify packets to channels.  It is not
2788           used to send channel message packets anymore, as server never
2789           sends them anymore.
2790
2791         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
2792           va_arg()s as it seems to require it nowadays.  I guess, if SILC
2793           is compiled with older va_arg() the new code should work anyway.
2794
2795 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2796
2797         * Splitted core library.  Core library (lib/silccore) includes
2798           now only SILC protocol specific core (and common) components.
2799           Created new utility library (lib/silcutil) that includes more
2800           generic purpose stuff.  The stuff for util library was taken
2801           from the old core library.  This was minor and easy split.
2802
2803         * Created SILC Client Library (lib/silcclient) that includes
2804           implementation of the SILC client without user interface.  This
2805           was major move from silc/ directory.  The code has been changed
2806           so that it is transparent towards the user interface.  The
2807           silc/ directory includes now the same user interface as before
2808           and it uses the new client library.  Read lib/silcclient/README.
2809           Basicly, the client library performs everything else related
2810           to SILC except user interface handling.  Also, configuration
2811           files are considered to be part of user interface and library
2812           does not handle them.
2813
2814           This change also changed a lot of structures, function naming etc.
2815           Most important change was that SilcClientWindow object was
2816           renamed to SilcClientConnection in the client library.  Created
2817           also new file lib/silcclient/ops.h.  Also added new files
2818           silc/local_command.[ch] and silc/client_ops.[ch].
2819
2820           All these changes were made to make it easier for user interface
2821           designers to create what ever user interface for the SILC client
2822           they want.
2823
2824           It is also expected that the server will be moved to lib
2825           directory as well and SILC Server Library will be created;
2826           sometimes in the future.
2827
2828         * Removed Local commands from lib/silccore/silccommand.h as
2829           they are application specific and new client library does not
2830           handle any of those anymore.
2831
2832         * Several functions moved to lib/silcutil/silcutilc.[ch] from
2833           old client implementation in silc/.
2834
2835         * Added support for callback functions in SILC_LOG_* macros.
2836           Application can now set its own callbacks that will be called
2837           instead of using the default functions that will always print
2838           the debug messages to stderr (or stdout).  Also, debugging can
2839           now be disabled by setting silc_debug to FALSE and re-enabled by
2840           setting it to TRUE.  Note, that logging will still work even
2841           if debugging is disabled.
2842
2843           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
2844           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
2845           silc_log_reset_debug_callbacks.
2846
2847         * To enable debugging in silc client one must give now -d
2848           option on command line.
2849
2850         * Changed silc_schedule_init to automatically allocate task queues
2851           if they are not allocated before calling it.
2852
2853 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2854
2855         * Added GMP 3.1 into math library.
2856
2857 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2858
2859         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
2860           a channel in SILC network.  The packet is used by servers and
2861           routers to notify other routers that user has left a channel.
2862           This little feature was missing until now.  Added the feature
2863           to protocol specification as well.
2864
2865           Added functions: silc_server_send_remove_channel_user and
2866           silc_server_remove_channel_user into server.[ch].
2867
2868         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
2869           lib/silccore/silcpacket.h.  However, they are not implemented
2870           yet.
2871
2872 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2873
2874         * Fixed joining to a channel and sending channel messages
2875           between server and router.  The channel message sending should
2876           now work inside a cell.
2877
2878 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2879
2880         * Fixed the private message sending between server and router.
2881           The private message sending should now work inside a cell.
2882
2883         * Added silc_server_replace_id into server.[ch] to replace
2884           existing ID in the SILC network.
2885
2886         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
2887           and silc_idlist_replace_server_id into idlist.[ch] in server.
2888
2889 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2890
2891         * Fixed the server to server connections.  Server can again now
2892           connect to router.  Router to router connections probably does
2893           not work just yet.
2894
2895 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2896
2897         * Added dynamic protocol registering support.  Now protocols can
2898           registered and unregistered on the fly.  Patch by cras.
2899
2900 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2901
2902         * Added lib/contrib directory to hold routines that some platforms
2903           don't have but are needed by SILC.
2904
2905         * Added getopt.c, getopt1.c and getopt.h from GNU C library
2906           into lin/contrib to provide getopt() and getopt_long() for
2907           those who don't have it.
2908
2909 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2910
2911         * Added AWAY command to client.  When away message is set and
2912           client receives a private message packet the client automatically
2913           replies to the sender with the away message.
2914
2915         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
2916           bug seemed to be the cause of recent problems when compiling
2917           with gcc-2.95.
2918
2919         * Added version detection support to SKE protocol specification
2920           and added the new changes to the SKE implementation as well.
2921           There were other minor changes in the SKE protocol as well.
2922
2923           Many changes in lib/silcske/silcske.[ch] and in
2924           lib/silcske/payload.[ch].
2925
2926         * Added ^U functionality, clear input line.  Patch from cras.
2927
2928 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2929
2930         * Mainly small bugfixes on core library.  Fixed some debugging
2931           logging and buffer overflow in silclog.c.
2932
2933         * Updated config.sub and config.guess on the distribution tree.
2934
2935 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2936
2937         * Added command lagging support in server. Client may execute
2938           commands now only once in two seconds.
2939
2940 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2941
2942         * Optimized packet reception. MAC computation and checking is now
2943           also more optimized.  A lot previously duplicated code is now
2944           used as generic by both client and server.
2945
2946         * Fixed key pair generation in clientutil.c
2947
2948 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2949
2950         * Added into lib/silccore/silcbufutil.[ch] new function;
2951           silc_buffer_realloc.
2952
2953         * Moved generic packet sending/encryption functions to 
2954           lib/silccore/silcpacket.[ch] from client and server.  Some
2955           rewriting of the functions.
2956
2957         * Moved all generic packet reception/decryption functions to
2958           lib/silccore/silcpacket.[ch] from client and server.  The
2959           packet processing is now much cleaner in both client and server.
2960           These were major changes in both client and server.
2961
2962         * Created many common functions in server to do packet sending.
2963           Previously code were duplicated a lot, this has been removed
2964           with these changes.
2965
2966 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2967
2968         * Rewrote major parts of the ID cache system.  Don't know 
2969           whether it is better now or not but at least the API is more
2970           cleaner now.
2971
2972         * Major rewrite on ID cache stuff on client because of the ID
2973           cache API changes.  Added idlist.c to client.
2974
2975         * Also major rewrite on ID cache stuff on server as well.
2976           Major rewrite of idlist.[ch]. SilcXXXList's are now named
2977           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
2978           in hand, instead they are all put into the ID cache system now.
2979           All server_idlist_* routines uses ID cache now instead of
2980           traversing its own lists (those lists does not exist anymore).
2981           SilcIDList though still exists.  Also, SilcXXXEntry's are
2982           now pointers.
2983
2984 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2985
2986         * Finally made the SKE implementation compliant to the protocol
2987           specification.  All mp integers are now binary encoded as
2988           opposed being HEX encoded.
2989
2990         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
2991           from binary data.
2992
2993         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
2994           functions: silc_[encode/decode]_pem.  Also added function
2995           silc_encode_pem_file to PEM encode with newlines ('\n') for
2996           saving into a file.
2997
2998         * SILC public keys are now encoded either PEM or binary.  Same
2999           option is for private keys as well.  By default private keys
3000           are binary encoded and public keys PEM encoded.  Silly HEX
3001           encoding were removed.
3002
3003         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
3004           function to create fingerprints.
3005
3006         * Fixed a bug in SHA1; does not change the original data anymore.
3007
3008         * Partly implemented INFO command on client and server side.
3009           Fixed CLEAR command.  Changes to SERVER command; show current
3010           server(s) when giving command without arguments.  Added
3011           VERSION command to client.
3012
3013         * Added check to server that unregistered connections cannot
3014           execute commands (unless it is specificly allowed).
3015
3016 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
3017
3018         * Fixed screen refresh.
3019
3020         * Fixed channel joining bug from client.  On some circumstances
3021           client tried to join to a channel it had already joined.
3022
3023         * Added public key verification process into client's protocol.c.
3024           The client now verifies the public key from user and saves
3025           it into ~./silc/serverkeys/ directory. 
3026
3027           Added into: clientutil.[ch]: silc_client_verify_server_key.
3028
3029         * Changed SKE protocol's silc_ske_initiator_finish function
3030           to accept callback function that verifies the received public
3031           key.  Removed old silc_ske_verify_public_key function.
3032
3033 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
3034
3035         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
3036           silc_pkcs_private_key[_data]_set.
3037
3038         * Made the password and public authentication more cleaner in
3039           server's protocol.c.
3040
3041         * Removed historic and obsolete protocol `channel_auth' from
3042           both client and server.
3043
3044         * Removed wrong way of sending command status messages from
3045           server to client in server's command.c.  The old way violated
3046           protocol specification.  
3047
3048           Changes to silccore/silccommand.[ch]: removed
3049           silc_command_encode_status_payload -> not needed anymore,
3050           changed silc_command_encode_payload_va to accept extra
3051           argument on variable argument list.  The argument type must
3052           now be provided to the function.  Also, added new function:
3053           silc_command_encode_reply_payload_va which is same as
3054           normal command_encode_payload_va except command status type
3055           is provided as extra argument.
3056
3057 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
3058
3059         * Added ~./silc directory handling.  The directory includes the
3060           public and private keys for the client.
3061
3062           Added silc_client_check_silc_dir, silc_client_create_identifier
3063           and silc_client_load_keys.
3064
3065         * Implemented SILC protocol compliant public key.  Added public
3066           and private key saving to and loading from files.
3067
3068           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
3069           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
3070           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
3071           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
3072           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
3073
3074           Implemented: silc_pkcs_save_[public/private]_key[_data] and
3075           silc_pkcs_load_[public/private]_key.
3076
3077 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
3078
3079         * Added silc_server_get_route (route.[ch]) to get connection
3080           data for the fastest route for given ID.
3081
3082         * Implemented INVITE command on client and server.  The command
3083           were re-defined in the SILC Protocol Specification and the
3084           implementation now complies with the specification.
3085
3086         * Implemented PING command on client and server.
3087
3088         * Implemented NAMES command on client and server.  The server side
3089           supports currently only normal server not router server yet.
3090           Some changes to NAMES definition in SILC protocol specification.
3091
3092 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
3093
3094         * Implemented LEAVE command on client and server.
3095
3096         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use 
3097           again.  This change was made to the protocol as well.  Server
3098           should not violate the protocol specification anymore.
3099
3100 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
3101
3102         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
3103           was tested.  SOCKS4 was not but should work anyway.