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