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