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