updates.
[silc.git] / CHANGES
1 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2
3         * Create lib/doc/silcrng_intro.html document as introduction
4           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5
6 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
7
8         * Fixes to the silcd config template.  Affected file is
9           doc/example_silcd.conf.in.
10
11         * Removed type casts from silc_calloc(), conforming to the
12           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
13
14         * Removed param_name member from client, server, and router
15           section structs, now identifying the param directly.
16
17           Added CONFIG_FREE_AUTH macro in config file parsing.
18
19           Affected files are silcd/serverconfig.[ch].
20
21 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
22
23         * Fixed command line parameter handling. All SILC initialization
24           is now done in silc_core_init() which also fixes autoconnecting
25           to servers.
26
27           Affected files irssi/src/silc/core/silc-core.c,
28           irssi/src/fe-text/silc.c.
29
30 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
31
32         * Added new configuration options and blocks:
33           keepalive_secs, reconnect_count, reconnect_interval,
34           reconnect_interval_max, reconnect_keep_trying and
35           require_reverser_lookup.  Added ConnectionParam block, and
36           implemented the connection parameters when connecting as
37           initiator and when accepting connections as responder. 
38
39           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
40           whether given configuration value has been given already.
41
42           Affected files silcd/serverconfig.[c], server.[c].
43
44         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
45           algorithm parts and created new file silcalgs.conf, that
46           is now included from the example_silcd.conf.in.
47
48         * Optimized the silc_server_connect_to_router_second to take
49           the connection configuration object from the SilcServerConnection
50           object instead of finding it during the connecting phase.
51           Added the configuration object to SilcServerConnection struct.
52           Affected files silcd/server_internal.h, server.c.
53
54 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
55
56         * Add the client on channel after it was resolved at the
57           channel message receiving, and it was not already on the
58           channel.  Affected file lib/silcclient/client_channel.c.
59
60 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
61
62         * Fixed the public key authentication to allocate always the
63           destination signature buffer instead of using static buffer.
64           Affected file silcd/protocol.c.
65
66 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
67
68         * Unified the serverconfig.[ch]'s helper function interface.
69           Affected file silcd/serverconfig.[ch].
70
71         * Removed doc/example_silc.conf.in since it is redundant.
72           The make install will now install irssi/silc.conf file.
73
74         * Added new Passphrase and Publickey authentication methods to  
75           config file, allowing both public key and passphrase based
76           authentication to be set at the same time.
77
78           Added `prefer_passphrase_auth' setting in config file which
79           can be used to set to prefer passwd auth if both passwd and
80           public key is set.  If not set, public key is preferred.
81           This has effect only when being initiator (responder will try
82           both anyway).
83
84           Added support for authentication with passphrase and public key
85           at the same time.  The passphrase is tried first always since
86           it is faster to check.
87
88           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
89
90 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
91
92         * Merged the new SILC Config library, with the server parsing
93           support.  Read the header file silcconfig.h or the toolkit
94           documentation for the news.  Affected files are
95           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
96           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
97           silcd/protocol.c silcd/server.c silcd/server_backup.c
98           silcd/serverconfig.[ch] silcd/silcd.c.
99
100         * Fixed some silclog documentation.  Affected file is
101           lib/silcutil/silclog.h.
102
103 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
104
105         * The silc_cipher_register, silc_hash_register and
106           silc_hmac_register now checks if the object to be registered
107           is registered already.  Affected files are
108           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
109
110 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
111
112         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
113
114 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
115
116         * Allow zero length channel messages inside the Channel Message
117           Payload.  Affected file lib/silccore/silcchannel.c.
118
119         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
120           as header filenames.
121
122         * Removed lib/silcclient/README and created HTML file
123           lib/silcclient/silcclient_using.html, which is now included
124           as part of Toolkit documentation.
125
126 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
127
128         * Fixed CUMODE_CHANGE notify handling to change the mode of
129           correct client.  Affected file lib/silcclient/client_notify.c.
130
131         * Make silc_rng_alloc fail if it cannot allocate the sha1
132           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
133
134 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
135
136         * Fixed the file transfer's key agreement payload to include
137           zero port also if the hostname is NULL because it could not
138           be bound.  
139
140           Call file transfer monitor callback now also if error occurs
141           during key agreement protocol.
142
143           Changed the silc_client_file_send interface to return the
144           SilcClientFileError instead of session id.  The session ID
145           is returned into pointer provided as argument.
146
147           Check that the file exists locally before sending the
148           file transfer request at all.
149
150           Affected file lib/silcclient/client_ftp.c, silcapi.h.
151
152         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
153           error than can occur while key agreement protocol.  Affected
154           file lib/silcclient/silcapi.h.
155
156         * Fixed the event_mode CMODE handler to not crash when mode
157           is changed and +k mode is set in the channel.  Affected file
158           irssi/src/silc/core/silc-channels.c.
159
160         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
161           SILC_LOG_WARNING to give out Warning and not Error.  Affected
162           file lib/silcutil/silclog.c.
163
164         * Fixed the channel message payload decryption in the function
165           silc_channel_message_payload_decrypt to not modify the original
166           buffer before it is verified that the message decrypted
167           correctly.  Otherwise, next time it is called with correct
168           channel key it won't encrypt since the payload is corrupted.
169           Affected file lib/silccore/silcchannel.c.
170
171 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
172
173         * Do not constantly resize the window.  A fix patch by cras.
174           Affected file irssi/src/fe-text/screen.c.
175
176 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
177
178         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
179           Affected file lib/silcutil/silcnet.c.
180
181 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
182
183         * Fixed a bug in hash table internal routine for traversing
184           the table with foreach callback.  The current entry may
185           become invalid in the callback but it was referenced after
186           the callback returned.
187
188           Do not allow auto rehashing of hash table during the
189           silc_hash_table_foreach operation, for same reasons as it is
190           not allowed for SilcHashTableList.  Affected files are
191           lib/silcutil/silchashtable.[ch].
192
193 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
194
195         * Defined DLLAPI into silcincludes.h and silcwin32.h for
196           Win32 DLL.  extern's in header files are now declared with
197           DLLAPI.
198
199 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
200
201         * Fixed private message handling.  It used some old code that
202           caused the client to crash.  Affecte file is
203           lib/silcclient/client_prvmsg.c.
204
205 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
206
207         * Added function silc_client_add_channel, 
208           silc_client_replace_channel_id, and removed functions
209           silc_client_new_channel_id and silc_idlist_get_channel_by_id
210           from client library.
211
212         * Added cross reference of the joined channels to the 
213           SilcClientEntry, and changed the SilcChannelEntry's
214           users list to SilcHashTable.  The affected files are
215           lib/silcclient/idlist.[ch].
216
217         * Fixed a bug in hash table tarversing.  While the hash table
218           is traversed with SilcHashTableList the table must not be
219           rehashed.  It is now guaranteed that auto rehashable tables
220           are not rehashed while tarversing the list.  Also defined that
221           silc_hash_table_rehash must not be called while tarversing
222           the table.  Added function silc_hash_table_list_reset that must
223           be called after the tarversing is over.  The affected files are
224           lib/silcutil/silchashtable.[ch].
225
226         * Changed all hash table traversing to call the new
227           silc_hash_table_list_reset in server and in client library.
228
229         * Added function silc_client_on_channel to return the 
230           SilcChannelUser entry if the specified client entry is joined
231           on the specified channel.  This is exported to application as
232           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
233
234 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
235
236         * Fixed founder regaining problem with JOIN command on normal
237           server.  The notify for mode change must be sent always and
238           not only if !cmd->pending.  Affected file silcd/command.c.
239
240         * Fixed the WHOWAS command's reply sending to support the
241           lists correctly.  Affected file silcd/command.c.
242
243 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
244
245         * When sending JOIN command to router for processing the
246           sender's old command identifier was not saved back to the
247           sender's command context, fixed now.  The affected file is
248           silcd/command.c.
249
250         * Create the key in JOIN command of the router did not return
251           the channel key, added check for this.  Affected file is
252           silcd/command.c.
253
254         * Fixed a channel ID update bug in JOIN command reply.  Do
255           not directly upgrade the ID but call the function
256           silc_idlist_replace_channel_id if the ID was changed.
257           Affected file silcd/command_reply.c.
258
259         * Fixed memory leaks from command calling if it would fail.
260           Affected file silcd/command.c.
261
262 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
263
264         * Applied patches from cras:
265
266           Memory leak fixes around libaries, irssi window resize fix,
267           new silclist.h and silcdlist.h, all extern inline changed to
268           static inline.
269
270         * Removed dotconf from lib/dotconf, not needed anymore.
271
272         * Removed TRQ from lib/trq, not needed anymore.
273
274         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
275           with server connections.  Later this will be configurable
276           in config file after new config file is done.  Affected file
277           silcd/server.c.
278
279 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
280
281         * Fixed a crash in server related to channel announcements.
282           Affected file silcd/server.c.
283
284 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
285
286         * Fixed memory leaks in silc_server_create_new_channel*
287           functions.  Affected file silcd/server.c.
288
289         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
290           which ID was changed.  This way the router will send the
291           user list for the channel again, and server won't be in 
292           desync in some rare circumstances.  Affected file is
293           silcd/packet_receive.c.
294
295 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
296
297         * Check for NULL socket pointer in the function
298           silc_server_packet_send_to_channel_real.  Affected file
299           silcd/packet_send.c.
300
301         * Fixed the BAN notify handling to correctly remove ban
302           list.  Affected file silcd/packet_receive.c.
303
304 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
305
306         * Fixed some header addition to Toolkit distribution in
307           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
308
309         * Added lib/silcclient/client_ops_example.h as an template
310           file for application programmers to quickly start using
311           the SilcClientOperation functions in their application.
312           Updated the lib/silcclient/README as well to tell about this
313           nice file made available.
314
315 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
316
317         * Call silc_server_remove_from_channels when removing client
318           entry when NO_SUCH_CLIENT_ID was received.  Affected file
319           is silcd/command_reply.c.
320
321 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
322
323         * Added server & router operator statistics updating.  Affected
324           file silcd/packet_receive.c and silcd/command.c.
325
326         * Fixed the SERVER_SIGNOFF notify handling on normal server
327           not to save the history information for clients.  Same was
328           fixed earlier in remove_clients_by_server function, but not
329           here.  Affected file silcd/packet_receive.c.
330
331         * Raised the default connection-retry count from 4 to 7 in
332           server.  Affected file silcd/server.h.
333
334         * Cancel any possible reconnect timeouts when we start the
335           key exchange.  Affected file silcd/server.c.
336
337         * Do not reconnect on connection failure when SCONNECT was
338           given.  Affected files silcd/server.[ch].
339
340 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
341
342         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
343
344         * Fixed the NICK command to always give the unformatted
345           nickname to the one giving the NICK command.  If unformatted
346           nickname is cached already it will be formatted and the
347           local entry will always get the unformatted nickname.
348           Affected file lib/silcclient/idlist.c.
349
350         * Fixed some double frees from client library commands.
351           Affected file is lib/silcclient/command.c.
352
353         * Fixed CUMODE command in server to assure that no one can
354           change founder's mode than the founder itself, there was a
355           little bug.  Affected file silcd/command.c.
356
357 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
358
359         * Removed the SilcClientCommandDestructor from the client
360           libary, it is not needed anymore.  Affected files are
361           lib/silcclient/silcapi.h, command[_reply].[ch],
362           client_notify, idlist.c.
363
364         * Fixed GETKEY command to first resolve client, and then
365           resolve the server only if the client was not found, instead
366           of resolving both at the same time.  Affected file is
367           lib/silcclient/command.c.
368
369         * Added silc_client_start_key_exchange_cb and lookup the
370           remote hostname and IP address before starting the key
371           exchange with server.  The affected file is 
372           lib/silcclient/client.c.
373
374         * The server's public key is now saved using the IP address
375           of the server and not the servername for the filename.
376           The hostname public key filename is checked as an fall back
377           method if the IP address based filename is not found.
378
379           Fixed the GETKEY command to save the fetched server key
380           in correct filename.
381
382           Print the remote server's hostname now when new key is
383           received during connection process.  Affected file is
384           irssi/src/silc/core/client_ops.c.
385
386         * Return always our own public key to the client if it asks
387           for it with GETKEY command.  Affected file silcd/command.c.
388
389         * Removed the use_auto_addr variable from default config
390           file since it was in wrong section.  Affected file is
391           irssi/src/config.
392
393         * Fixed TOPIC_CHANGE notification to not route it when it
394           was sent using silc_server_send_notify_to_channel function.
395           Affected file silcd/command.c.
396
397         * Fixed silc_server_send_notify_kicked to send the kicker's
398           Client ID also, it was missing.  Affected files are
399           silcd/command.c, silcd/packet_send.[ch].
400
401 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
402
403         * Do not save client history information in SERVER_SIGNOFF.
404           Fixes the bug in normal server that it does not detect
405           the client becoming valid after the server becomes back
406           online.  Affected file silcd/server_util.c.
407
408         * Added `sock_error' field  into the SilcSocketConnection
409           context.  When error occurs during socket operation (read
410           or write) the error is saved.  Added also new function
411           silc_socket_get_error to return human readable socket error
412           message.  Affected files are lib/silcutil/silcsockconn.[ch], 
413           lib/silcutil/unix/silcunixsockconn.c, and
414           lib/silcutil/win32/silcwin32sockconn.c.
415
416         * The server now prints the socket error message in the
417           signoff for client.  Affected file silcd/server.c.
418
419         * Fixed the `created' channel information sending from router
420           to server in JOIN command.  Checks now whether the channel
421           really was created or not and set it according that. 
422
423           Fixed the JOIN command to use the client entry's current
424           ID during the joining procedure instead of the one it sent
425           in the command (it is checked though), since it can change
426           between the packet processing and command processing, and 
427           would just case unnecessary pain in the client end.  Affected
428           file silcd/command.c.
429
430         * Fixed a channel key payload sending to use correct channel
431           ID when the server was forced to change the channel's ID by
432           router.  Router sent the key payload with the old Channel ID.
433           Affected file silcd/packet_receive.c.
434
435 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
436
437         * Call silc_server_save_channel_key only if the key payload
438           was provided in the JOIN command's command reply.  Affected
439           file silcd/command_reply.c.
440
441 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
442
443         * Fixed silc_mp_sizeinbase to return the value correctly with
444           MPI.  Affected file lib/silcmath/mp_mpi.c.
445
446         * Fixed the stop_server signal to correctly stop the scheduler
447           and gracefully stop the server when SIGTERM or SIGINT signals
448           are received.  Affected file silcd/silcd.c.
449
450 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
451
452         * Simple handling of TERM and HUP signals. Also added some log
453           flushing call around.  Affected file is
454           silcd/silcd.c.
455
456         * Fixed small bugs in silclog.c. Now buffering output will take
457           effect after 10 seconds since startup: This will ensure that
458           no important startup messages are lost. Also output redirection
459           will preserve original format ([Date] [Type] message).
460           Affected file is lib/silcutil/silclog.c.
461
462         * Added two options to the config file, in the logging section:
463           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
464           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
465
466 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
467
468         * Do not print the warning about log files not being initialized
469           more than once to avoid excess logging.  Affected file is
470           lib/silcutil/silclog.c.
471
472         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
473           the SIM copying in make install in Makefile.am.pre.
474
475 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
476
477         * Rewritten silclog APIs. Globally interesting changes follows:
478           silc_log_set_files() changed to silc_log_set_file().
479           silc_log_set_callbacks() changed to silc_log_set_callback().
480           ROBOdoc documented silclog header file.
481           SilcLogCb now returns bool to wether inihibit the default
482           handler or not (to keep the old behaviour return always TRUE).
483           The new APIs should also fix the problem of the
484           silcd_error.log file that was written in the current directory.
485
486           New features:
487           Log files streams will remain opened after silc_log_set_file()
488           call, means less CPU usage notably on high traffic servers.
489           File streams are now full buffered, and flushed to the disk
490           every 5 minutes, lesses HD activity and CPU usage.
491           Messages can be redirected, allowing admins to configure
492           one single logfile for all server messages.
493           the silc_log_quick global variable to activate fast-logging.
494           Affected files lib/silcutil/silclog.[ch]
495
496         * Changed some code to conform new silclog APIs. Affected
497           files are doc/example_silcd.conf.in, silcd/server.c
498           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
499           silcd/silcd.c.
500
501         * Fixed a memory leak that could occur in some situations.
502           Affected file silcd/serverconfig.c.
503
504 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
505
506         * Added the silc_client_del_client to remove the client from
507           all channels as well.  Affected file lib/silcclient/idlist.c.
508
509         * Fixed the client library to correctly remove the client
510           from all channels when the client entry is being destroyed.
511           Affected file lib/silcclient/client_notify.c, command.c.
512
513         * Added auto-nicking support to the client library.  If the
514           applicatio now sets client->nickname it will be sent to the
515           server after connecting by the library.  This way for example
516           SILCNICK (or IRCNICK) environment variables will have effect
517           and always change the nickname automatically to whatever
518           it is wanted.  Affected file lib/silcclient/client.[ch].
519
520         * Renamed silc_server_command_bad_chars to the
521           silc_server_name_bad_chars and moved it to the
522           silcd/server_util.[ch].  Added also new function
523           silc_server_name_modify_bad to return nickname that
524           includes bad characters as new nickname without those
525           bad characters.  This check and modify is now used in
526           silc_server_new_client when the username is initially set
527           as nickname, so it must be checked to be valid nickname.
528           Affected file silcd/packet_receive.c.
529
530         * The nickname length is now taken from the packet for real
531           and not trusted to strlen() since it clearly can return
532           wrong length for nickname including bad characters.  This
533           also applies to channel names.  Affected file silcd/command.c.
534
535         * Removed the lib/silcsilm/modules directory.  Modules are now
536           compiled into the lib/silcsim.  Fixed the copying of the
537           modules to follow symbolic links in Makefile.am.pre.
538
539 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
540
541         * Fixed silc_string_regexify list creation.  Fixes bugs with
542           BAN and INVITE commands in server.  The affected file is
543           lib/silcutil/unix/silcunixutil.c.
544
545 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
546
547         * Removed the command destructor entirely from the server's
548           command and command reply routines.  It is not needed, and
549           its usage was buggy and caused crashes.  Affected files are
550           silcd/command[_reply].[ch].
551
552 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
553
554         * Cancel protocol and NULL sock->protocol if timeout
555           occurred during protocol.  Affected file silcd/server.c.
556
557         * Cancel protocol timeouts always before calling the final
558           callback, to assure that after final callback is called
559           no other state will be called for the protocol anymore.
560           Affected file silcd/protocol.c.
561
562         * Print error log if incoming connection configuration could
563           not be found.  Affected file silcd/server.c.
564
565         * Fixed JOIN command to correctly save the founder mode
566           to the client on normal SILC server, when the channel
567           was created by the router.  Affected file silcd/command.c.
568
569         * Fixed LIST command (hopefully) to send correct reply
570           packets.  Affected file silcd/command.c.
571
572 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
573
574         * The silc_packet_receive_process now returns FALSE if the
575           read data was invalid packet, and TRUE if it was ok.
576
577           The server now checks that if unauthenticated connection
578           sends data and its processing fails the server will close
579           the connection since it could be a malicious flooder. 
580
581           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
582
583 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
584
585         * Make sure the warning about error opening a log file is
586           printed only once and not everytime it fails (produces
587           too much useless log).  Affected file lib/silcutil/silclog.c.
588
589 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
590  
591         * Made the silc_server_daemonise() function more readable.
592           Affected file silcd/server.c.
593  
594         * Pid file is now optional, the user may comment it out from
595           the config file. Removed define SILC_SERVER_PID_FILE, we
596           don't need a default any longer.  Affected file
597           configure.in.pre, lib/Makefile.am.pre.
598  
599         * Make some use of the pid file. The server now dies at startup
600           if it detects a valid pid file on his path. The server would
601           die anyway in this circumstance, because of the bind() failure.
602           Affected file silcd/silcd.c.
603  
604         * No longer compiling lib/dotconf.
605
606 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
607
608         * Fixed JOIN command parsing not to crash.  Affected file
609           lib/silcclient/command.c.
610
611         * Fied the NICK_CHANGE notify to add the new client entry
612           even it is resolved.  This removes an <[unknown]> nick
613           thingy bug in the client.  Affected file is 
614           lib/silcclient/client_notify.c.
615
616         * Do not try to allocate 0 bytes (efence does not like it)
617           in lib/silccore/silccomand.c when encoding payload.
618
619         * Do not take IRCNICK as nickname in Irssi SILC client since
620           it is not possible to set nickname before hand connecting
621           the server (TODO has an entry about adding auto-nicking
622           support).
623
624         * Changed the silc_server_command_pending to check whether
625           there already exists an pending entry with the specified
626           command, command identifier and pending callback.  This is
627           to fix IDENTIFY and WHOIS related crashes that may register
628           multiple pending commands with same identifier.  Affected
629           file silcd/command.c.
630
631         * Fixed the server to reconnect to the router even if it
632           was already reconnecting and EOF was received.  This to
633           fix a possibility that the server wouldn't ever try to
634           auto-reconnect to the router.  Affected file silcd/server.c.
635
636 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
637
638         * Fixed the server's password authentication to use the
639           length of the locally saved password, and not the one
640           sent in the packet.  Affected file silcd/protocol.c.
641
642         * Fixed same password authentication problem in the
643           Authentication Payload handling routines in
644           lib/silccore/silcauth.c.
645
646         * Yet another password authentication problem fixed with
647           channel password handling in silcd/command.c.
648
649 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
650
651         * If first character of string in silc_parse_userfqdn is '@'
652           then do not parse it.  Affected file is
653           lib/silcutil/silcutil.c.
654
655 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
656
657         * Fixed minor bug in IDENTIFY command reply sending, which
658           caused various weird problems during JOIN when it was
659           resolving names for users.  Affected file silcd/command.c.
660
661 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
662
663         * Fixed the IDENTIFY command reply sending to chech better valid
664           clients.  It was possible to send incomplete list of replies.
665           Affected file silcd/command.c.
666
667 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
668
669         * Added silc_client_command[s]_[un]register functions now to
670           dynamically register the commands in client library.  Removed
671           the static table of commands.  This allows the client library
672           to call commands without causing the application to know about
673           what commands library has called.
674
675           Removed the INFO command reply kludge to detect when the command
676           was called by library.  Now library use its own command reply
677           function for INFO command.
678
679           Added function silc_client_command_call to call a command.
680           Application can use it to call command, not access the structure
681           directly.
682
683           Now all commands that are sent by the client library (not
684           explicitly sent by application) use own command reply functions.
685
686           Affected files around lib/silcclient/ and in
687           irssi/src/silc/core/.
688
689         * Fixed the WHOIS command reply sending to chech better valid
690           clients.  It was possible to send incomplete list of replies.
691
692           Fixed the WHOIS and IDENTIFY to send the request to router
693           if normal server did not do it and did not find any results.
694
695           Affected file silcd/command.c.
696
697 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
698
699         * Moved the internal data from SilcClient context into its
700           own file, not accesible to application.  Affected files
701           lib/silcclient/client.h and lib/silcclient/client_internal.h,
702           and other files in client library.
703
704 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
705
706         * Added doc/examples installation target in Makefile.am.pre.
707           A patch by salo.
708
709 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
710
711         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
712           commands the found client entry will be removed from the
713           cache, after notifying application about the error.  Affected
714           file lib/silcclient/command_reply.c.
715
716         * Changed the /MSG to check for exact nickname user gave, and
717           not let `nick' match `nick@host' if it is only one found.  Now,
718           user must type the exact nickname (like nick@host2) even if
719           there are no more than one same nicks found.  This is to avoid
720           a possibility of sending nickname to wrong nickname since
721           `nick' could match `nick@host'.  Affected file is
722           irssi/src/core/silc-servers.c.
723
724 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
725
726         * Do not print "you are now server operator" or similar when
727           giving /away command.  Affected files are
728           irssi/src/silc/core/client_ops.c, silc-servers.h.
729
730         * Made the silc_server_command_pending_error_check to send
731           the same command reply payload it received back to the
732           original sender of the command.  This way all arguments
733           that was received by the server will be received by the
734           client too.  Affected file silcd/command.c.
735
736         * Added the silc_idcache_add to return the created cache entry
737           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
738
739         * Add global clients to expire if they are not on any channel.
740           This is because normal server will never know if they signoff
741           if they are not on any channel.  The cache expiry will take
742           case of these entries.  This is done by normal servers only.
743           The affected files are silcd/command_reply.c,
744           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
745
746         * If server receives invalid ID notification for WHOIS or
747           IDENTIFY and the ID exists in the lists, it is removed.
748           Affected file silcd/command_reply.c.
749
750         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
751           in client then client entry that it matches is searched and
752           the nickname is printed on the screen for user.  Affected
753           file irssi/src/silc/core/client_ops.c.
754
755 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
756
757         * Use cache entry expire time in the LIST command reply to
758           purge old entries from the cache after the LIST command
759           reply has been received.  This way we don't have non-existent
760           entries in the cache for too long.  Affected file is
761           silcd/command_reply.c.
762
763 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
764
765         * If we are normal server, and we've not resolved client info
766           in WHOIS or IDENTIFY from router, and it is global client,
767           we'll check whether it is on some channel.  If it is not
768           then we cannot be sure about its validity and will resolve it
769           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected 
770           file silcd/command.c.
771
772         * Search channel by name (if possible) rather than by ID
773           in IDENTIFY command's command reply.  Affected file is
774           silcd/command_reply.c.
775
776 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
777
778         * Distribute to the channel passphrase in CMODE_CHANGE notify.
779           Updated specs and implemented it.  Affected file silcd/command.c,
780           silcd/packet_send.c and silcd/packet_receive.c.
781
782         * Implemented the <founder auth> payload handling in the JOIN
783           command.  If provided all conditions for channel joining
784           except requirement to provide correct passphrase can be 
785           overrided by the channel founder.  Updated the protocol specs.
786           Affected file silcd/command.c.
787
788           Added support for founder auth in JOIN command in client
789           library.  Fixed the parsing of the JOIN command now to support
790           all options as they should be.  The affected file is
791           lib/silcclient/command.c.
792
793         * Optimized the WHOIS and IDENTIFY commands to send the request
794           to router only if it includes nicknames or other names.  If
795           they include only IDs then check the local cache first before
796           routing.  Affected file is silcd/command.c.
797
798         * Added channels topic announcements.  Affected file is
799           silcd/packet_receive.c and silcd/server.c.
800
801         * Fixed the silc_server_send_notify_topic_set to really destine
802           the packet to channel.  Affected file silcd/packet_send.c.
803
804         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
805           library.  Affected file lib/silcclient/client_notify.c.
806
807         * Added UMODE announcements.  Affected file silcd/server.c.
808
809 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
810
811         * Memory leak fixes in:
812
813           lib/silcutil/silcsockconn.c
814           lib/silcske/silcske.c
815           lib/silcske/groups.c
816           lib/silccrypt/rsa.c
817           lib/silccrypt/silcpkcs.c
818           lib/silccore/silccommand.c
819           lib/silccore/silcidcache.c
820           silcd/idlist.c
821           silcd/packet_send.c
822           silcd/command.c
823
824         * ROBOdoc documented the lib/silcske/groups.h file and a
825           bit changed the interface for better.
826
827 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
828
829         * Update the client entry context in the ID cache after
830           nick change.  Affected file lib/silcclient/command.c.
831           Fixes the CUMODE command when regaining founder privileges,
832           and a little WHOIS problem.
833
834         * Fixed silc_net_gethostbyname to correctly call the
835           inet_ntop.  Affected file lib/silcutil/silcnet.c.
836
837 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
838
839         * Added IPv6 support checking to the configure.in.pre, added
840           also --enable-ipv6 option to override the check.  Affected
841           file configure.in.pre.
842
843         * The silc_thread_create now calls the start function
844           directly if threads support is not compiled in.  Removes
845           ugly #ifdef's from generic code.  Affected files are
846           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
847
848         * Added silc_net_gethostby[name/addr]_async to asynchronously
849           resolve.  Affected files are lib/silcutil/silcnet.[ch].
850
851         * Added support for rendering IPv6 based server, client and
852           channel IDs.  Affected file lib/silcutil/silcutil.c.
853
854         * Added support for creating IPv6 based server IDs.  Affected
855           file is silcd/serverid.c.
856
857 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
858
859         * Added silc_net_gethostby[addr/name] into the
860           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
861           routines.  Added silc_net_is_ip[4/6].  Affected file is
862           lib/silcutil/unix/silcunixnet.c.  All routines that take
863           address as argument now supports both IPv4 and IPv6 addresses.
864
865 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
866
867         * Fixed LIST command reply sending in server.  Affected file
868           silcd/command.c.
869
870         * Server now sends the kicker's client ID in the KICK notify
871           to the kicked client.  Affected file silcd/command.c.
872
873         * The client library now parses the kickers client ID and
874           UI displays it.  Affected files lib/silcclient/client_notify.c
875           and irssi/src/silc/core/silc-channels.c, module-formats.c.
876
877         * Made all payload parsing function prototypes consistent.
878           They all take now const unsigned char * and uint32 pair as
879           the payload data instead of SilcBuffer.  Changes all around
880           the source tree.  Other unsigned char* -> const unsigned char*
881           changes around the tree as well.
882
883         * Optimized SFTP client and server packet sending not to
884           allocate new buffer for each packet but to recycle the
885           first allocated buffer.  Affected files are
886           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
887
888         * Optimized the SFTP client to use SilcList instead of
889           SilcDList for requests, because it is faster.  Affected file
890           is lib/silcsftp/sftp_client.c.
891
892         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
893           into lib/silccore/silcid.[ch].
894
895           Renamed silcpayload.[ch] into silcargument.[ch].
896
897 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
898
899         * If client entry is deleted with active key agreement
900           session, abort the session.
901
902           The silc_client_abort_key_agreement now calls the completion
903           callback with new SILC_KEY_AGREEMENT_ABORTED status.
904
905           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
906           idlist.c.
907
908 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
909
910         * Don't use __restrict in older GCC's.  Affected file is
911           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
912
913         * silc_net_localhost now attempts to reverse lookup the
914           IP/hostname.  Affected file lib/silcutil/silcnet.c.
915
916         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
917           command.  It can be used to gain founder privileges at 
918           the same time when joining the channel.
919
920           Defined that the SILC_NOTIFY_TYPE_KICKED send the 
921           kicker's client ID as well.  Updated protocol specs.
922
923           Defined that the server must send SILC_COMMAND_IDENTIFY
924           command reply with error status to client who sent
925           private message with invalid client ID.
926
927           Updated the protocol specification.
928
929         * Added silc_server_send_command_reply to send any
930           command reply.  Affected file silcd/packet_send.[ch].
931
932         * Added silc_id_payload_encode_data to encode ID payload
933           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
934
935         * The server now send IDENTIFY command reply with error
936           status if client ID in private message is invalid.  Affected
937           file silcd/packet_receive.c.
938
939         * Save the server key file with server's IP address in
940           the filename instead of hostname.  The affected file is
941           irssi/src/silc/core/client_ops.c.
942
943 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
944
945         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
946           A patch by Sunfall.
947
948         * Added libtool support for compiling shared objects in
949           lib/silcsim.  Affected file configure.in.pre and
950           lib/silcsim/Makefile.am.  Original patch by cras.
951
952 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
953
954         * Pid file configuration, and server's config file fixes
955           patch by toma.  Updated CREDITS file. 
956
957 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
958
959         * Fixed silc_client_channel_message to not try to decrypt
960           the message twice if it resolved the destination client
961           information.  This could cause of dropping one channel
962           message.  Affected file lib/silcclient/client_channel.c.
963
964 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
965
966         * Added silc_client_run_one into lib/silcclient/silcapi.h and
967           lib/silcclient/client.c. This function is used when the SILC
968           Client is run under some other scheduler, or event loop or
969           main loop.  On GUI applications, for example this may be
970           desired to used to run the client under the GUI application's
971           main loop.  Typically the GUI application would register an
972           idle task that calls this function multiple times in a second
973           to quickly process the SILC specific data.
974
975 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
976
977         * Fixed silc_server_drop() for dropping the supplementary
978           groups as well, this could cause a security hole on some
979           systems.
980
981 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
982
983         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
984           johnny.
985
986         * Write PID file after dropping privileges.  Added -F option
987           to run server on foreground.  A patch by debolaz.
988           Affected files silcd/server.c, silcd/silcd.c.
989
990         * Fixed MOTD to return the MOTD file server name.  Affected
991           file silcd/command.c.
992
993         * Added INFO command reply handling to the Irssi SILC Client.
994           Affected file irssi/src/silc/core/client_ops.c.
995
996 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
997
998         * Fixed the silc_idcache_list_* routines to really support
999           the dynamic list.  Fixes a crash.  Affected file is
1000           lib/silccore/silcidcache.c.
1001
1002         * Fixed the LIST command reply to really call LIST command's
1003           pending callbacks.  Affected file silcd/command_reply.c.
1004
1005 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1006
1007         * Update conn->local_entry->nickname after giving NICK
1008           command.  Affected file lib/silcclient/command.c.
1009
1010 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
1011
1012         * Added the [pid] option to the silcd configuration file
1013
1014           Affected files: serverconfig.[ch] and silcd.c
1015
1016 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1017
1018         * Save fingerprint in WHOIS command reply in server.
1019           Affected file silcd/command_reply.c.
1020
1021         * Fixed NICK commands pending callback registration.
1022           Affected file lib/silcclient/command.c.
1023
1024 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1025
1026         * Use ++server->cmd_ident when sending commands in server,
1027           instead of random number.  Affected file silcd/command.c.
1028
1029         * Fixed GETKEY command reply to call actually GETKEY pending
1030           command callbacks.  Affected file silcd/command_reply.c.
1031
1032         * A bit stricter check for nicknames.  Check for same nickname
1033           in NICK command also.  Affected file silcd/command.c.
1034
1035         * Do not call INFO command everytime client ID changes, only
1036           during first connecting.  Affected file lib/silcclient/client.c.
1037
1038         * Set the new nickname only after successful command reply for
1039           NICK command is returned by server.  Affected file
1040           lib/silcclient/command.c.
1041
1042         * Remove nicknames from nicklist during server_signoff notify.
1043           Should fix /NAMES bit more.  The affected file is
1044           irssi/src/silc/core/silc-channels.c.
1045
1046         * Added `fingerprint' field to the SilcIDListData in the 
1047           silcd/idlist.h to hold the fingerprint of the client's
1048           public key.
1049
1050           Send the fingerprint of the client's public key in WHOIS
1051           command reply.
1052
1053           Affected files silcd/command.c, and silcd/idlist.[ch].
1054
1055         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
1056           create fingerprint from given data.
1057
1058         * Show the fingerprint of the client's public key in WHOIS.
1059           Affected files irssi/src/module-formats.[ch] and
1060           irssi/src/silc/core/client_ops.c.
1061
1062         * Format the multiple same nicknames also during JOIN and
1063           NICK_CHANGE notifys.  Affected file is
1064           lib/silcclient/client_notify.c.
1065
1066         * Do not print error on screen for invalid private message
1067           payload since it can come if someone is sending private
1068           messages with wrong key.  Affected file
1069           lib/silccore/silcprivate.c.
1070
1071         * Fixed multiple concurrent /PING crash.  Affected file
1072           lib/silcclient/command.c.
1073
1074         * Changed the wrong ID encoding.  All IP addresses must be
1075           in MSB first order in encoded format.  They were encoded
1076           wrong and was in LSB format.  Affected files are
1077           silcd/serverid.c, lib/silcutil/silcutil.c.
1078
1079         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
1080
1081         * Call the `connect' client operation through the scheduler
1082           in case of error.  Affected file lib/silcclient/client.c.
1083
1084         * Call the `failure' client operation even if the error
1085           occurred locally during a protocol.  Affected file is
1086           lib/silcclient/protocol.c.
1087
1088         * Added support of sending LIST command to router from normal
1089           server.  This way normal server can get list of all channels
1090           in the network too.  Fixed the channel list sending in the
1091           server too.  Affected files are silcd/command.c, and
1092           silcd/command_reply.[ch].
1093
1094         * Added silc_server_update_channels_by_server and
1095           silc_server_remove_channels_by_server.  They are used during
1096           disconnection of primary router and in backup router protocol.
1097           Affected file silcd/server_util.[ch], silcd/server.c and
1098           silcd/server_backup.c.
1099
1100         * Fixed channel adding to global list in IDENTIFY command
1101           reply in server.  Affected file silcd/command_reply.c.
1102
1103 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1104
1105         * If the incoming packet type is REKEY or REKEY_DONE process
1106           that packet always synchronously.  Fixes yet another MAC
1107           failed error on slow (dialup) connections.  Affected file
1108           lib/silcclient/client.c and silcd/server.c.
1109
1110 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1111
1112         * Call check_version SKE callback for initiator too.  Affected
1113           file lib/silcske/silcske.c.
1114
1115         * Implemented fix for security hole found in the SKE that was
1116           fixed in the specification few days back; the initiator's
1117           public key is now added to the HASH value computation.
1118           Added backwards support for the old way of doing it too, for
1119           old clients and old servers.  Affected file is
1120           lib/silcske/silcske.c.
1121
1122         * Enabled mutual authentication by default in SKE.  If initiator
1123           is not providing mutual authentication the responder will
1124           force it.  This will provide the proof of posession of the
1125           private key for responder.  The affected files are
1126           lib/silcclient/protocol.c and silcd/protocol.c.
1127
1128         * Do not cache anymore the server's public key during SKE.
1129           We do mutual authentication so the proof of posession of
1130           private key is done, and if the server is authenticated in
1131           conn auth protocol with public key we must have the public
1132           key already.  Affected file silcd/protocol.c.
1133
1134         * Added new global debug variable: silc_debug_hexdump.  If
1135           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
1136           file lib/silcutil/silclog.[ch].
1137
1138         * Fixed compilation warning due to char * -> const char *.
1139           Affected files lib/silcutil/silcnet.h, and
1140           lib/silccore/silcauth.[ch].
1141
1142 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1143
1144         * Fixed CMODE command when new channel key was created.  If
1145           the creation failed the old key was removed.  Next time giving
1146           same command would crash the server since the old key was
1147           freed already.  Affected file silcd/command.c.
1148
1149         * Fixed the silc_server_announce_get_channels to not crash
1150           on reconnect.  Affected file silcd/server.c.
1151
1152 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1153
1154         * Added silc_log_set_debug_string function to set a regex
1155           string to match for debug output.  Only the function names,
1156           or filenames matching the given debug string is actually
1157           printed.  This way it is possible to filter out those debug
1158           strings that user is not interested in.
1159
1160           Fixed a bug in silc_string_regexify.
1161
1162           Affected files lib/silcutil/silclog.[ch], and
1163           lib/silcutil/unix/silcunixutil.c.
1164
1165         * Changed the -d options in both server and Irssi SILC client
1166           to take the debug string as argument.  Affected files
1167           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
1168
1169 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1170
1171         * Added silc_hash_babbleprint to create a Bubble Babble
1172           Encoded fingerprint.  The encoding is developed by Antti
1173           Huima (draft-huima-babble-01.txt), and it creates human
1174           readable strings out of binary data.  Affected file
1175           lib/silccrypt/silchash.[ch].
1176
1177         * Print the babble print now in addition of fingerprint as well
1178           in Irssi SILC client.  Affected files are
1179           irssi/src/fe-common/silc/module-formats.[ch],
1180           irssi/src/fe-common/silc/core/client_ops.c.
1181
1182 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1183
1184         * Fixed a security problem found in SKE.  The initiator's
1185           public key too is now added to the HASH hash value creation
1186           which is signed by the responder to create the SIGN value.
1187           This will prevent anyone in the middle to lie to the responder
1188           about the initiator's public key.  If this is done now, the
1189           man in the middle will get caught.  Updated the protocol
1190           specification.
1191
1192 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1193
1194         * Better installation directory handling.  Configure module
1195           paths and other paths automatically to example_silc* files
1196           in doc/.  A patch by toma.
1197
1198         * Fixed compiler warning from MPI library, and from SILC RNG.
1199           A patch by johnny.
1200
1201         * Added SILC_SERVER_PID_FILE to define the pid file for server.
1202           It can be configured with ./configure.  A patch by toma.
1203
1204 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1205
1206         * Find correct make to use in prepare-clean.  A patch by
1207           toma.  Affected file prepare-clean.
1208
1209 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
1210
1211         * Added irssi variables use_auto_addr, auto_bind_ip,
1212           auto_bind_port and auto_public_ip.
1213
1214         * Changed the interface for silc_client_send_key_agreement
1215           in lib/silcclient/silcapi.h
1216
1217         Affected files:
1218
1219          irssi/src/silc/core/silc-core.c
1220          irssi/config
1221          lib/silcclient/silcapi.h
1222          irssi/src/silc/core/silc-channels.c
1223          lib/silcclient/client_keyagr.c
1224          irssi/docs/help/key
1225
1226 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
1227
1228         * Added silc_pkcs_public_key_compare to compare two 
1229           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
1230
1231         * Check that the client who set the founder mode on the
1232           channel is the same client that is giving the founder
1233           mode to itself.  It is done by comparing the saved public
1234           key (it is saved even in the authentication is passphrase).
1235           Affected file silcd/command.c.
1236
1237 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
1238
1239         * Do not process packet for disconnected socket connection.
1240           Affected file lib/silccore/silcpacket.c.
1241
1242         * Process the DISCONNECT packet through scheduler in the
1243           client library.  Affected file lib/silcclient/client.c.
1244
1245         * Fixed the silc_client_packet_parse to not to increase
1246           the packet sequence number if the conn->sock and the 
1247           current socket connection is not same.  This can happen
1248           for example during key agreement when the conn includes
1249           multiple socket connections (listeners).  Affected file
1250           lib/silcclient/client.c.
1251
1252         * The sender of the file transfer request now provides also
1253           the pointer (listener) for the key exchange protocol.  If
1254           the listener cannot be created then it sends empty key
1255           agreement and lets the receiver provide the listener.
1256
1257           Added `local_ip' and `local_port' arguments to the
1258           silc_client_file_send.  If they are provided they are used,
1259           if not then it will attempt to find local IP address, if
1260           not found or bind fails then the remote client will provide
1261           the listener.
1262
1263           Affected files are lib/silcclient/client_ftp.c and
1264           lib/silcclient/silcapi.h.
1265
1266         * Extended the FILE SEND command to support defining the
1267           local IP and port for key exchange listener.  They are
1268           optional.  Affected file irssi/src/silc/core/silc-servers.c.
1269
1270 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
1271
1272         * Defined to WHOIS command reply the sending of fingerprint
1273           of the client's public key (if the proof of posession of the
1274           corresponding private key is verified by the server).
1275           Updated to the protocol specification.
1276
1277         * Added support of receiving the client's public key's 
1278           fingerprint in command reply in client library.  Affected
1279           file is lib/silcclient/command_reply.c, and
1280           lib/silcclient/idlist.[ch].
1281
1282 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
1283
1284         * Do not send over 128 chars long nickname to the server
1285           in NICK command.  Affected file lib/silcclient/command.c.
1286
1287         * Do not send over 256 chars long channel names to the server
1288           in JOIN command.  Affected file lib/silcclient/command.c.
1289
1290 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
1291
1292         * Assure that silc_server_close_connection cannot be called
1293           twice for same socket context.  Affected file is
1294           silcd/server.c.
1295
1296 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
1297
1298         * Send error message to application if opening file for
1299           writing during file transfer fails.  Affected file is
1300           lib/silcclient/client_ftp.c.
1301
1302           Remove all file transfer sessions for a client that we're
1303           removing from ID cache.
1304
1305           Affected file is lib/silcclient/client_ftp.c.
1306
1307         * Fixed silc_net_addr2bin to return correct address.  Affected
1308           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
1309
1310         * Fixed file transfer session removing on signoff notify.
1311           Affected file irssi/src/silc/core/silc-servers.c.
1312
1313         * Added the SilcClientFileError to be returned in the monitor
1314           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
1315           Affected file lib/silcclient/silcapi.h.
1316
1317 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
1318
1319         * Fixed a crash in silc_client_ftp_free_sessions and
1320           silc_client_ftp_session_free_client.  Affected file
1321           lib/silcclient/client_ftp.c.
1322
1323         * Added `disabled' field in the SilcChannelEntry in the server
1324           to indicate if the server entry is disabled.  Affected file
1325           silcd/idlist.h, silcd/command[_reply].c.
1326
1327         * SILC server adds now /var/run/silcd.pid everytime it is
1328           started.  Affected file silcd/silcd.c.
1329
1330         * Added silc_server_packet_send_clients to send a packet to
1331           the provided table of client entries.  Affected file
1332           silcd/packet_send.[ch].
1333
1334         * Fixed a crash in client resolving in client_prvmsg.c in 
1335           client library.  Affected file lib/silcclient/client_prvmsg.c.
1336
1337         * Do not actually remove the client directly from ID cache
1338           during SERVER_SIGNOFF, but invalidate it.  This way we
1339           preserve the WHOWAS info for the client.  Affected file
1340           silcd/server_util.c.
1341
1342         * Fixed SERVER_SIGNOFF notify handling in the server.  The
1343           server is now able to process incoming SERVER_SIGNOFF notify
1344           for a server that it doesn't even know about.  It will remove
1345           the clients provided in the notify.  Affected file
1346           silcd/packet_receive.c.
1347
1348         * Check for partial packet in data queue after every packet that
1349           was found from the queue.  Return and wait for more data if 
1350           there is partial data in queue.  Affected file is
1351           lib/silccore/silcpacket.c.
1352
1353 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
1354
1355         * Added SilcClietFileError enum to indicate error in
1356           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
1357           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
1358           Affected files lib/silcclient/silcapi.h and
1359           lib/silcclient/client_ftp.c.
1360
1361         * Check that newsize in silc_buffer_realloc is larger than
1362           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
1363
1364         * Added better monitor of file transfers.  It now monitors
1365           key agreement protocol during the file transfer too.  Added
1366           error reporting too.  Affected files
1367           irssi/src/silc/core/silc-servers.c,
1368           irssi/src/fe-common/silc/module-formats.[ch].
1369
1370         * Wrote a help file for FILE command.
1371
1372         * Added silc_rng_global_get_byte_fast to get not-so-secure
1373           random data as fast as possible.  Random data is read from
1374           /dev/urandom if available and from the SILC RNG if not
1375           available.  It is used in padding generation.  Affected file
1376           lib/silccrypt/silcrng.[ch].
1377
1378         * All packets in client library are now processed synchronously.
1379           Optimized packet processing a lot.  Affected file
1380           lib/silcclient/client.c.
1381
1382         * All server connection packets are processing synchronously
1383           now in server, to optimize packet processing.  Affected file
1384           silcd/server.c.
1385
1386         * Include files are installed now only in Toolkit distribution
1387           if make install is given.  Affected files: all Makefile.am's.
1388
1389 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1390
1391         * Assure that silc_client_notify_by_server_resolve does not
1392           resolve the client information multiple times.  If it cannot
1393           be found by the first it cannot be found at all.  Affected
1394           file lib/silcclient/client_notify.c.
1395
1396         * Fixed WHOWAS command reply calling.  Affected file
1397           lib/silcclient/command_reply.c.
1398
1399         * Removed all references to silc_idlist_get_client from the
1400           Irssi SILC client since that call is internal call used by
1401           the library.  The Irssi SILC client will use now client
1402           retrieval functions found in silcapi.h.
1403
1404         * Fixed a bug in resolving nickname info before sending
1405           private message.  It used freed memory.  Affected file
1406           irssi/src/silc/core/silc-servers.c.
1407
1408 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1409
1410         * Assure my_channels statistics cannot go negative in server.
1411           Affected files silcd/server.c, silcd/server_util.c.
1412
1413 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1414
1415         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
1416
1417 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1418
1419         * Win32 Toolkit changes.  Affected files
1420           win32/silc.dsw, win32/libsilc/libsilc.def,
1421           win32/libsilcclient/libsilc.def,
1422           lib/silcutil/silcutil.c, and
1423           lib/sftp/sftp_fs_memory.c.
1424
1425 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1426
1427         * Added silc_net_localip to return local host's IP address.
1428           Affected file lib/silcutil/silcnet.[ch].
1429
1430         * If key exchange or rekey protocol is active for a connection
1431           parse all packets syncronously since there might be packets
1432           in packet queue that we are not able to process without first
1433           processing packets before them.  Affected file silcd/server,
1434           lib/silcclient/client.c.
1435
1436         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
1437           whether library should continue processing the packet. 
1438           Affected file lib/silccore/silcpacket.h.
1439
1440         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
1441           SilcSFTPMonitorData to SFTP server to monitor various
1442           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
1443           lib/silcsftp/sftp_server.c.
1444
1445         * Added silc_file_size to return file size.  Affected file
1446           lib/silcutil/silcutil.[ch].
1447
1448         * Implemented the file transfer support for the client library.
1449           Added preliminary support for simple client to client one-file
1450           transmission.  Affected file lib/silcclient/client_ftp.c,
1451           lib/silccilent/client.[ch].
1452
1453         * Added new local command FILE to the Irssi SILC Client.
1454           It is used to perform the file transfer.  It has subcommands
1455           SEND, RECEIVE, SHOW and CLOSE.  Affected files
1456           irssi/src/silc/core/client_ops.c, 
1457           irssi/src/silc/core/silc-server.[ch].
1458
1459 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1460
1461         * Relay the SILC_PACKET_FTP in the server.  Affected files
1462           silcd/server.c and silcd/packet_receive.c.
1463
1464 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1465
1466         * Renamed silc_file_read and silc_file_write to functions
1467           silc_file_readfile and silc_file_writefile.  Added function
1468           silc_file_open and silc_file_close.  Affected files 
1469           lib/silcutil/silcutil.[ch].
1470
1471 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1472
1473         * Resolve the client info when received private message or
1474           channel message for a client which nickname we don't know.
1475           Affected files lib/silcclient/client_prvmsg.c and
1476           lib/silcclient/client_channel.c.
1477
1478         * Do not crash in /KEY if client is not connected.  Affected
1479           file irssi/src/silc/core/silc-channels.c.
1480
1481         * Added SilcClientStatus field to the SilcClientEntry in the
1482           lib/silcclient/idlist.h.
1483
1484           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
1485           is incomplete and is being resolved, it won't be resolved
1486           twice.
1487
1488           Make sure also that USERS command reply does not resolve
1489           twice information.  Affected file is
1490           lib/silcclient/command_reply.c.
1491
1492           Make sure that silc_client_get_clients_by_list does not
1493           resolve twice same information.
1494
1495         * Check for valid client->id in the silc_server_free_client_data.
1496           Affected file silcd/server.c.
1497
1498         * Fixed /GETKEY nick@server not to crash if the server entry
1499           is not found.  Affected file lib/silcclient/command.c.
1500
1501         * Fixed the silc_server_check_cmode_rights to check the
1502           requested modes correctly.  Affected file silcd/command.c.
1503
1504 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
1505
1506         * Better checks for non-printable chars in nick added.
1507           Affected file silcd/command.c.
1508
1509 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1510
1511         * Call the silc_server_udpate_servers_by_server in the
1512           primary router that comes back online in the backup resuming
1513           protocol.  Otherwise it routes packets wrong.  Affected file
1514           silcd/server_util.[ch], silcd/server_backup.c.
1515
1516 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1517
1518         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
1519           lib/silcutil/silcbuffmt.[ch].
1520
1521         * Redefined the SILC packet header to include the padding
1522           length.  Affected file lib/silccore/silcpacket.[ch].
1523
1524         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
1525           length for maximum padding up to 128 bytes).  Affected
1526           file lib/silccore/silcpacket.h.
1527
1528         * Removed all backwards support for old 0.5.x MAC thingies.
1529           The SILC packet header change makes it impossible to be
1530           backwards compatible.
1531
1532         * Send the ENDING packet with timeout in the backup resuming
1533           protocol.  This is to assure that all routers has connected
1534           to the primary router.  Affected file silcd/server_backup.c.
1535
1536         * Changed the RNG to take the first IV from random data.  It
1537           used to take it from zero actually.  Changed the RNG also
1538           to use /dev/urandom during session.  /dev/random is used
1539           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
1540
1541 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1542
1543         * Changed the SILC packet header to have the first two bytes
1544           (the packet length) encrypted.  Affected files aroung the
1545           code tree, lib/silccore/silcpacket.[ch].  Removed the
1546           SilcPacketCheckDecrypt callback.  It is not needed anymore
1547           since the silc_packet_receive_process will determine now
1548           whether the packet is normal or special.
1549
1550         * Implemented the unidirectional MAC keys.  Affected files
1551           lib/silcske/silcske.c, silcd/protocol.c and
1552           lib/silcclient/protocol.c.
1553
1554         * Implemented the packet sequence number to the MAC computation.
1555           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
1556           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
1557           lib/silcclient/protocol.c.
1558
1559 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1560
1561         * Allow backup router to announce servers.  All servers
1562           announced by backup router are added to the global list
1563           automatically.  Update hte server's socket to our primary
1564           router also when backup router announces a server.
1565           Affected file silcd/packet_receive.c.
1566
1567         * Do not update the client->router in the function
1568           silc_server_udpate_clients_by_server if the client is on
1569           global list.  We might fail to find any specific server
1570           for locally connected clients and local cell clients.  They
1571           should still use the `from' and not `to' as client->router.
1572           This fixes backup router resuming protocol.  Affected file
1573           silcd/server_util.c.
1574
1575         * Decrease channel statistics count only if the channel
1576           deletion worked.  Affected files are silcd/server.c and
1577           silcd/server_util.c.
1578
1579         * Added silc_server_update_servers_by_server to update origin
1580           of all server entries.  Used during backup router protocol.
1581           Affected files silcd/server_util.[ch], silcd/server.c. and
1582           silcd/backup_router.c.
1583
1584         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
1585           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
1586           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
1587           lib/silccrypt/silchmac.c.
1588
1589 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1590
1591         * Assure that router cannot reroute the same channel message
1592           to the sender.  Affected file silcd/packet_receive.c.
1593
1594 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1595
1596         * Made better checks that the channel message is not sent
1597           to the router it came from.  Affected file is
1598           silcd/packet_send.c.  Fixed memory leak too.
1599
1600         * Announce informations for incoming router connection, but
1601           only after checking if it is replaced by backup router.
1602           Affected file silcd/packet_receive.c.
1603
1604 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1605
1606         * Fixed the backup resuming protocol to work in multiple
1607           router environment.  Affected file silcd/server_backup.c.
1608
1609         * Route packet only to one router in the function
1610           silc_server_packet_send_to_channel.  Affected file is
1611           silcd/packet_send.c.
1612
1613         * Fixed silc_server_send_notify_dest to set the broadcast
1614           flag.  Fixed the silc_server_send_notify_topic to actually
1615           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
1616           Affected file silcd/packet_send.c.
1617
1618         * Changed the SFTP Filesystem interface.  Changed the
1619           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
1620           the filesystem operation function.  The SilcSFTPFilesystem
1621           is now a context that is allocated by all filesystem allocation
1622           functions and it already includes the operations structure
1623           and filesystem specific context.  It is given as argument
1624           now to the silc_sftp_server_start.  This made the interface
1625           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
1626           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
1627
1628 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1629
1630         * Changed the backup router adding and getting interfaces
1631           in the server.  The router that will be replaced by the
1632           specified backup router is now sent as argument.  Affected
1633           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
1634           silcd/server.c.
1635
1636         * Added silc_net_addr2bin_ne to return the binary form of
1637           the IP address in network byte order.  Affected files
1638           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
1639
1640 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1641
1642         * Check for existing server ID in silc_server_new_server
1643           and in silc_server_connect_to_router_final and remove the
1644           old entry if it exists.  Affected file silcd/packet_receive.c,
1645           silcd/server.c.
1646
1647         * Send the channel message always to only one router, either
1648           in upstream or downstream.  Affected file is
1649           silcd/packet_send.c.
1650
1651 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1652
1653         * Wrote the definition of the backup resuming protocol to the
1654           protocol specification.
1655
1656         * Removed one redundant channel key generation from normal
1657           server during joining procedure.  Removed one redundant
1658           channel key sending from server to router during joining
1659           procedure.  Affected file silcd/command.c.
1660
1661         * Made minor bugfixes to the backup router resuming protocol.
1662           Affected file silcd/server_backup.c, server.c.
1663
1664 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1665
1666         * Added --disable-asm configuration option.  Affected files
1667           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
1668           by salo.
1669
1670         * Implemented the backup resuming protocol that is used to
1671           resume the primary router position in the cell after the
1672           primary router comes back online.  Affected files
1673           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
1674           and silcd/server_util.[ch].
1675
1676 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1677
1678         * Sleep two (2) seconds after sending QUIT command to server.
1679           Affected file lib/silcclient/command.c.
1680
1681         * Assure that if outgoing data buffer is pending do not force
1682           send any data.  Affected file silcd/packet_send.c.
1683
1684         * Assure that if outgoing data buffer is pending do not force
1685           send any data.  Affected file lib/silcclient/client.c.
1686
1687         * Implemented the backup router support when the primary router
1688           goes down.  The servers and routers can now use the backup
1689           router as new primary router without loosing connectivity.
1690
1691 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1692
1693         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
1694           in the server to indicate disabled entry.  All data read
1695           from the connection will be ignored and no data is sent
1696           for entry that is disabled.  Affected files are
1697           silcd/idlist.h, silcd/server.c.
1698
1699 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1700
1701         * Created SFTP client and server test programs in the
1702           lib/silcsftp/tests directory.
1703
1704 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
1705
1706         * Implemented memory filesystem (virtual filesystem) for
1707           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
1708           sftp_fs_memory.c.
1709
1710 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1711
1712         * Implemented the SFTP (SSH File Transfer Protocol) to the
1713           lib/silcsftp.  It includes SFTP client and SFTP server
1714           implementations.
1715
1716 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1717
1718         * Moved lib/silccore/silcprotocol.[ch] to the
1719           lib/silcutil library.
1720
1721         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
1722           take variable argument list pointer as argument.  Affected
1723           file lib/silcutil/silcbuffmt.[ch].
1724
1725         * Added silc_buffer_set function that is used to set data
1726           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
1727           Affected file lib/silcutil/silcbuffer.h.
1728
1729         * Changed various routines in the core library to use the new
1730           silc_buffer_set instead of allocating new buffer only for
1731           temporary purposes.
1732
1733         * Added 64-bit value formatting and unformatting support to the
1734           silc_buffer_[un]format routines.  Affected file is
1735           lib/silcutil/silcbuffmt.[ch].
1736
1737           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
1738           to includes/bitmove.h.
1739
1740 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1741
1742         * Fixed channel user mode saving in client library.  Affected
1743           file lib/silcclient/command[_reply].c.
1744
1745 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1746
1747         * Defined the file transfer to the SILC Protocol.  Added
1748           new packet type SILC_PACKET_FTP and defined File Transfer
1749           Payload.  The mandatory file transfer protocol is SFTP
1750           (SSH File Transfer Protocol).  Affected file in addition
1751           of the internet draft is lib/silccore/silcpacket.h.
1752
1753         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new 
1754           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
1755           is used as part of backup router protocol when the primary
1756           router of the cell is back online and wishes to resume
1757           the position as primary router.
1758
1759         * Redefined the MAC generation keys in the protocol.  The
1760           same key is not used anymore in both direction.  Both
1761           direction will now use different keys for sending and
1762           receiving.  This fixes a potential security flaw.  This
1763           change causes incompatibilities in the protocol.
1764
1765         * Redefined also the MAC computation from the packet.
1766           An packet sequence number is now added to the MAC 
1767           computation.  This prevents possible replay attacks against
1768           the protocol.  This change too causes incompatibilities
1769           in the protocol.
1770
1771           Added `sequence' field to the SilcPacketContext to hold
1772           the current sequence number for the packet.
1773
1774 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1775
1776         * Added `created' field to the SilcIDListData in the file
1777           silcd/idlist.h to indicate the time when the entry was
1778           created.
1779
1780         * Added `created' field to the SilcChannelEntry too.  Affected
1781           file silcd/idlist.h.
1782
1783         * Added `creation_time' aguments to all the announcement functions
1784           in the server.  If it is provided then only the entries that
1785           was created after the provided time frame are actually
1786           announced.  Affected file silcd/server.[ch].
1787
1788         * The protocol says that the Channel ID's IP address must be
1789           based on the router's IP address.  Added check for this in
1790           the silc_server_new_channel when processing incoming New Channel
1791           Payload.  Affected file silcd/packet_receive.c.
1792
1793         * Print out the correct version with --version in SILC client.
1794           Affected file irssi/src/silc/core/silc-core.c.
1795
1796 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1797
1798         * Fixed WHOWAS command to check for completnes of the client
1799           entry always, not just when the command is coming from client.
1800           Affected file silcd/command.c.
1801
1802         * Added new function silc_server_packet_queue_purge to purge the
1803           outgoing data queue to the network.  After the function returns
1804           it is guaranteed that the outgoing packet queue is empty.
1805           Affected file silcd/packet_send.[ch].
1806
1807         * Purge the outgoing packet queue in the rekey protocol's final
1808           callback to assure that all rekey packets go to the network
1809           before quitting the protocol.  Affected file silcd/server.c.
1810
1811         * Added silc_client_packet_queue_parse as similar function as
1812           in server to the client library.  The affected file is
1813           lib/silcclient/client.c.
1814
1815 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1816
1817         * Splitted silcd/server.c and created silcd/server_util.[ch]
1818           for utility functions.
1819
1820         * Added new socket flag SILC_SF_DISABLED to indicate that the
1821           connection is open but nothing can be sent to or received from
1822           the connection.  Affected file lib/silcutil/silsockconn.[ch].
1823           The checking for disabled socket is checked in the low level
1824           silc_socket_write and silc_socket_read functions.
1825
1826 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1827
1828         * Allow only nicknames and channel names that fits into the
1829           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
1830
1831 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1832
1833         * When processing JOIN command reply in server check that if
1834           the channel exists in our global list we'll move it the local
1835           list.  Affected file silcd/command_reply.c.
1836
1837         * Fixed the check whether client is joined on the channel already
1838           in JOIN command.  Affected file lib/silcclient/command.c.
1839
1840         * Fixed the JOIN command reply to check whether the channel
1841           already exists.  Affected file lib/silcclient/command_reply.c.
1842
1843 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1844
1845         * Added silc_ske_status_string to map the SKE error numbers
1846           to readable strings.  The affected files are
1847           lib/silcske/silcske[_status].[ch].
1848
1849 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1850
1851         * Do not show the private channels on the WHOIS channel list
1852           as it is not allowed by the protocol.  The affected file is
1853           silcd/server.c.
1854
1855 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1856
1857         * Assure that the packet length digged from the actual packet
1858           is something sensible in the silc_packet_decrypt_rest_special
1859           in lib/silccrypt/silcpacket.c.
1860
1861         * Free and NULL the allocated pointer in silc_hmac_alloc if
1862           the HMAC allocation fails.  The affected file is
1863           lib/silccrypt/silchmac.c.
1864
1865         * Print the selected security properties to the log files in
1866           the server.  Affected file silcd/protocol.c.
1867
1868         * Add SKE's reference counter even if calling the completion
1869           callback manually.  Otherwise it goes negative, although it
1870           does not cause any problems.  The affected file is
1871           lib/silcske/silcske.c.
1872
1873         * Remove the client entry with short timeout after giving the
1874           KILL command.  Affected file lib/silcclient/command.c.
1875
1876         * Fixed to send error reply in WHOIS and IDENTIFY commands in
1877           case all found clients are already disconnected (WHOWAS would
1878           found them) in the server.  Affected file silcd/command.c.
1879
1880         * Update the last_receive (time of last data received) to be 
1881           updated only when received private or channel message so that
1882           the idle time showed in WHOIS makes more sense.
1883
1884         * Added boolean field `valid' in to the SilcClientEntry in the
1885           client library to indicate whether the entry is valid or not.
1886           This fixes the nickname change bug on channel when changing
1887           the nickname to be same than the old (like nick to Nick) the
1888           nickname formatter doesn't set the new nick anymore to Nick@host.
1889           Affected file lib/silcclient/idlist.[ch].
1890
1891         * Now actually fixed the nickname changing on disconnection.
1892           Added new function silc_change_nick to the Irssi SILC Client.
1893           Affected file irssi/src/silc/core/client_ops.c,
1894           irssi/src/silc/core/silc-nicklist.[ch].
1895
1896 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1897
1898         * Check that the public key exists in the GETKEY command before
1899           trying to encode it.  Affected file silcd/command.c.
1900
1901         * Print some notifications on received public keys with GETKEY
1902           command in the Irssi SILC Client.  Affected files are
1903           irssi/src/fe-common/silc/module-formats.[ch],
1904           irssi/src/silc/core/client_ops.c.
1905
1906         * Use IDENTIFY command to resolve the server information in the
1907           GETKEY command instead of INFO command.  Affected file
1908           lib/silcclient/command.c.
1909
1910         * All command reply functions in the client library now calls
1911           the pending command reply callbacks even if an error has
1912           occurred.  The server has done this a long time and now it was
1913           time to move the client library to this as well.  Now all
1914           errors can be delivered back to the pending command reply
1915           callbacks if necessary.  Affected files are
1916           lib/silcclient/command[_reply].[ch].
1917
1918         * Change the nickname on disconnection back to the username
1919           because in reconnect the server will enforce it to it anyway.
1920           Affected file irssi/src/silc/core/silc-servers.c.
1921
1922         * Fixed a config file parsing bug in the Irssi SILC client.
1923           Affected file irssi/src/silc/core/clientconfig.c.
1924
1925 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1926
1927         * When printing the channel mode on JOIN, verify that the
1928           channel key and channel's HMAC are valid.  Affected file
1929           irssi/src/silc/core/client_ops.c.
1930
1931 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1932
1933         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
1934           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
1935           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
1936
1937         * Removed channel key rekey task deleting from the function
1938           silc_server_save_channel_key.  Affected file silcd/server.c.
1939           Added explicit timeout task context instead that is used to   
1940           delete the task if we are registering a new task before the
1941           new task has elapsed.
1942
1943         * When channel key rekey occurs the client library now saves
1944           the old channel key for a short period of time (10 seconds) and
1945           is able to use it in case some is still sending channel
1946           messages encrypted with the old key after the rekey.  Affected
1947           file lib/silcclient/[idlist.h|client_channel.c].
1948
1949 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
1950
1951         * Added check to the silc_server_new_id_real to not accept
1952           new ID if it is the sender's own ID.  Affected file is
1953           silcd/packet_receive.c.
1954
1955         * Assure that we do not announce ourself or the one we've
1956           sending our announcements when we're router and are announcing
1957           servers to our primary router.  Affected file silcd/server.c.
1958
1959         * Fixed silc_server_command_identify_check_client to assemble
1960           correct WHOIS packet.  It send corrupted WHOIS packet and
1961           caused problem with router to router connections.  Affected
1962           file silcd/command.c.
1963
1964           Fixed also silc_server_command_whois_check the same way
1965           as for the IDENTIFY command.
1966
1967         * Added new SilcIDListStatus to the server in the SilcIDListData
1968           structure.   The status now includes the current status of
1969           the entry (like registered, resolved etc.).  Affected file
1970           silcd/idlist.[ch].  Defined a bunch of different status types
1971           as well.  This replaced the old boolean registered field as well.
1972
1973           Added resolve_cmd_ident field to the SilcClientEntry structure
1974           too so that if the entry is for example being resolved so 
1975           another command may attach to the same pending command reply
1976           without requiring to resolve the same entry again.  This concept
1977           should optimize the WHOIS and the IDENTIFY resolving under
1978           heavy load by taking away unnecessary resolving for entries
1979           that are being resolved already.
1980
1981           Added support for adding multiple pending commands for one
1982           command idenfier.  Affected file silcd/command[_reply].[ch].
1983
1984         * Fixed WHOIS and IDENTIFY save to remove the cache entry
1985           before deleting the data.  Otherwise the hash table will have
1986           freed data in comparison functions.  Affected file is
1987           silcd/command_reply.c.
1988
1989         * Fixed silc_idlist_replace_client_id to add the new entry to
1990           the cache with NULL nickname.  Otherwise there will be invalid
1991           memory as the nickname after the nickname is freed.  Affected
1992           file silcd/packet_receive.c.
1993
1994         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
1995           saved into wrong slots because the previous number of entries
1996           was not taken into account.  Affected file silcd/idlist.c.
1997           Fixed same thing in silc_idlist_get_clients_by_nickname too.
1998
1999         * If we are router and we receive JOIN notify to a channel that
2000           does not have any users then notified client is marked as the
2001           channel founder, as it is it.  The affected file is
2002           silcd/packet_receive.c
2003
2004         * Added to the extended hash table API's table_del_*ext functions
2005           the destructor as argument too, so that the caller can decide
2006           which destructor to use or whether to use destructor at all.
2007           Affected file lib/silcutil/silchashtable.[ch].
2008
2009         * Fixed ID Cache purging.  It actually deleted the entries from
2010           the hash table after the data was freed.  The hash table ended
2011           up comparing freed memory.  The affected file is
2012           lib/silccore/silcidcache.c.
2013
2014 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2015
2016         * Fixed Irssi SILC client's KILL command's HELP syntax.
2017
2018         * The USERS command now resolves the detailed user information
2019           if the userinfo field is missing.  Affected file is
2020           lib/silcclient/command_reply.c.
2021
2022         * Do not print error in silc_file_read if the read file does
2023           not exist.  Just silently return NULL.  Affected file is
2024           lib/silcutil/silcutil.c.
2025
2026         * Fixed the silc_log_output to not wine about NULL filename
2027           and to not create some bogus " " filename.  Affected file is
2028           lib/silcutil/silclog.c.
2029
2030 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2031
2032         * Fixed various printing bugs on the user interface in the
2033           Irssi SILC Client.  Minor changes that were forgotten from
2034           the release.
2035
2036 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2037
2038         * Fixed the configure.in.pre and the compilation and distribution
2039           environment to support the new autoconf 2.52.  That version is
2040           now required to compile the CVS trunk.
2041
2042 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2043
2044         * Renamed function silc_parse_nickname to silc_parse_userfqdn
2045           to generally parse user@fqdn format strings.  Affected file
2046           lib/silcutil/silcutil.c.
2047
2048         * Added nickname_format and nickname_force_format fields to the
2049           SilcClientParams structure.  The first one defines the format
2050           for the nicknames that the library will enforce if the receives
2051           multiple same nicknames.  The second one is boolean value and
2052           can be used to force the library to always enforce the format
2053           to the nicknames regardles whether there are multiple nicknames
2054           or not.  This configurable formatting was employed to flexibly
2055           support accessing multiple nicknames from the user interface.
2056           The userinterface can now set the nicknames to what ever format
2057           they prefer.  Affected file lib/silcclient/silcapi.h.
2058
2059           Added function silc_client_nickname_format to the file
2060           lib/silcclient/idlist.c.  It performs the nickname formatting.
2061
2062           Added new field `hostname´ to the SilcClientEntry context.
2063           It holds the hostname of the client.  Affected file is
2064           lib/silcclient/idlist.h.
2065
2066         * Irssi SILC Client sets the nicknames in nick@hostn format.
2067           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
2068           irssi/src/silc/core/silc-core.c.
2069
2070           The WHOIS printing now also shows both the real nickname and
2071           the formatted nickname so that user knows how to access the
2072           user if there are multiple same nicknames cached.  Affected
2073           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
2074           printing formatting too to take the hostname now as a separate
2075           argument.  The Affected file is
2076           irssi/src/fe-common/silc/modules-formats.[ch].
2077
2078         * Changed the silc_client_get_clients_local to accept the formatted
2079           nickname as argument.  It accepts the real nickname too but the
2080           formatted nickname can be used to find the true entry from 
2081           multiple entries.  Affected file lib/silcclient/silcapi.h and
2082           lib/silcclient/idlist.c.
2083
2084         * Added nickname_format_parse field to the SilcClientParams.
2085           It is a callback function provided by the application to parse
2086           the nickname out of the formatted nickname string. The library
2087           calls it to get the nickname from the formatted string. Since
2088           the application generally knows better the format of the nickname
2089           string it parses it instead of the library, even though library
2090           encodes the formatted string.  If the callback function is not
2091           provided then the library will use the string as is.  The
2092           affected file is lib/silcclient/silcapi.h.
2093
2094         * All the nickname strings passed to the client library in 
2095           commands are now expected to be formatted nickname strings.
2096           If the command does not support the formatted nickname string
2097           it will assume that the sent string is the actual nickname.
2098           Affected file lib/silcclient/command.c.
2099
2100 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2101
2102         * Added public key authentication support to OPER and SILCOPER
2103           commands in the client library.  Affected file is
2104           lib/silcclient/command.c.
2105
2106 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2107
2108         * Changed the get_auth_methdod client operation to be asynchronous.
2109           It can be async if the application resolves the authentication
2110           method from the server during the negotiation.  Added new
2111           SilcGetAuthMeth completion callback that the application will
2112           call after resolving the authentication method.
2113
2114           Added function silc_client_request_authentication_method that
2115           the application can use to resolve the authentication method
2116           from the server.  Added also SilcConnectionAuthRequest callback
2117           that the library will call after the server has replied.  The
2118           application can call this function if it does not know the
2119           current authentication method.
2120
2121           Affected files are lib/silcclient/client.c and 
2122           lib/silcclient/silcapi.h.
2123
2124         * The Irssi SILC client now automatically resolves the authentication
2125           method incase any configuration information is not present (and
2126           currently there never is).  The affected file is
2127           irssi/src/silc/core/client_ops.c.
2128
2129         * Fixed public key authentication from the client library.
2130           Affected file lib/silcclient/protocol.c.  Changed also the
2131           protocol specification about the public key authentication in
2132           the connection authentication protocol.  The actual data to be
2133           signed is now computed with a hash function before signing.
2134
2135         * Fixed the public key authentication from the server as well.
2136           Affected file silcd/protocol.c.
2137
2138         * Removed the mlock()'s from the memory allocation routines.
2139           Affected file lib/silcutil/silcmemory.c.  The ./configure does
2140           not check anymore for the mlock().  Affected file is
2141           configure.in.pre.
2142
2143         * Fixed USERS command in server to allow the execution of the
2144           command for private and secret channels if the client sending
2145           the command is on the channel.  Affected file silcd/command.c.
2146
2147         * Fixed silc_client_get_clients_local to return the clients
2148           count correctly.  It could return wrong value.  Affected file
2149           lib/silcclient/idlist.c.
2150
2151 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2152
2153         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
2154           types.  The assembler optimizations seemed not to like 64-bit
2155           data types.  The assmebler optimizations thus are now enabled
2156           also for BSD systems as opposed to only enable them for Linux.
2157
2158         * Do not check for threads at all on BSD systems.  Affected
2159           file configure.in.pre.
2160
2161         * Removed -n and -h options from the Irssi SILC Client since
2162           they are not used in silc.
2163
2164         * Fixed the prime generation to assure that the first digit
2165           of the generated random number is not zero since our conversion
2166           routines does not like number strings that starts with zero
2167           digit.  If zero digit is seen the random number is regenerated.
2168           This caused some corrupted RSA keys when the zero first digit
2169           was met.  Affected file lib/silcmath/silcprimegen.c.
2170
2171 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2172
2173         * Fixed WIN32 configuration in the ./configure script.
2174           Fixed to include xti.h on environments that has it.
2175           Patches by Carsten Ilchmann and andrew.
2176
2177 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2178
2179         * Changed the silc_id_create_client_id to be collision
2180           resistant.  It is now assured that there cannot be created
2181           two same client ID's.  I suspect that some weird bugs in 
2182           the server were actually caused by duplicate Client IDs.
2183           Affected file silcd/serverid.[ch].  A router receiving
2184           new ID now also assures and informs the sending server
2185           if the ID caused collision.
2186
2187         * Changed the silc_id_create_channel_id to also assure that
2188           there are no collisions.
2189
2190 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2191
2192         * Statement about ignoring the Mutual Authentication flag when
2193           performing rekey with PFS was a bit misleading.  It is ignored
2194           if it was set in the initial negotiation, it cannot be even
2195           set in the rekey.  Fixed in the ke-auth draft.  Started the
2196           new versions of the protocol drafts in the doc/.
2197
2198 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2199
2200         * Fixed a bug in silc_client_command_identify_save when saving
2201           new channel information.  The channel name was no duplicated
2202           and caused crash on exit.  Affected file is
2203           lib/silcclient/command_reply.c.
2204
2205 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2206
2207         * Fixed the getkey command handling in the server.  Send just
2208           empty OK reply to the sender if the key could not be fetched
2209           (but everything else was ok, like the key just was not available).
2210           Changed the public key parameter to optional in the protocol
2211           specs so that empty OK reply can be sent.  Affected file
2212           silcd/command.c.
2213
2214           Added a message to Irssi SILC client to tell to user if the
2215           server did not return a public key.
2216
2217 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
2218
2219         * Fixed a channel key regeneration bug.  It registered new
2220           timeout tasks exponentially until all system resources were
2221           used.  Affected file silcd/server.c.
2222
2223 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2224
2225         * Added the SILC Document generator to the scripts/silcdoc.
2226           It can be used to generate the Toolkit Reference Manual out
2227           of the source tree.  Internally it will also use the RoboDoc
2228           generator now imported in util/robodoc.
2229
2230 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2231
2232         * Added couple of return's in rekey protocol if error orccurred
2233           during the protocol.  The execution must be terminated.
2234           Affected file silcd/protocol.c.  Also, terminate the protocol
2235           always with timeout.
2236
2237 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2238
2239         * The client's Client ID was created initally from the wrong
2240           nickname (it could have been in format nick@host) in the
2241           silc_server_new_client.  Affected file silcd/packet_receive.c
2242
2243 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2244
2245         * Added some SILC_LOG_ERROR's to various error conditions
2246           if client could not be added to ID cache.  Affected files
2247           silcd/packet_receive.c and silcd/server.c.
2248
2249         * When client's sock->user_data is freed, NULL also the 
2250           client->router and client->connection pointers.  Added check
2251           for these pointers being NULL to various places around the
2252           code.  Affected file silcd/server.c.
2253
2254         * Added client->data.registered == TRUE checks to various
2255           places around the code to assure that unregistered client's
2256           are not handled when it is not allowed.  Affected file
2257           silcd/server.c.
2258
2259         * Added `bool registered' fields to all 
2260           silc_idlist_[server|client]_get_* routines to indicate whether
2261           the fetched client needs to be registered or not.  Affected
2262           file silcd/idlist.[ch].
2263
2264         * Add your own entry as registered to the ID cache in the
2265           server.  Affected file server.c.
2266
2267         * Fixed a bug in silc_server_new_server.  The SilcServer was
2268           set as the new server's context instead of SilcServerEntry.
2269           This naturally caused some weird bugs.
2270
2271 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2272
2273         * Do not delete the channel rekey task when adding it
2274           for in silc_server_create_channel_key.
2275
2276         * Changed the silc_server_create_channel_key to return
2277           TRUE or FALSE to indicate the success of the channel key
2278           creation.
2279
2280 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2281
2282         * Fixed MSVC++ project files and added missing files to
2283           Makefiles under win32/.
2284
2285 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2286
2287         * Do not add TCP_NODELAY flag if the operating system
2288           does not have it defined.  Affected files are
2289           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
2290
2291         * Fixed buffer overflow from Irssi SILC Client.  Affected
2292           file irssi/src/fe-common/core/themes.c.
2293
2294         * Fixed double free in client library in the file
2295           lib/silcclient/client.c when disconnecting from server.
2296
2297         * Applied double free patch from cras to Irssi SILC client.
2298           Affected files irssi/src/core/[modules/expandos].c
2299
2300         * Fixed the disconnection handling to Irssi SILC Client.
2301           The application must call silc_client_close_connection
2302           in ops->connect client operation in case of failure of
2303           the connection.  Affected file is
2304           irssi/src/silc/core/client_ops.c.
2305
2306         * Do not set sock->protocol to NULL in the function
2307           silc_client_close_connection after executing the protocol's
2308           final callback since the sock might not be valid anymore.
2309           Affected file lib/silcclient/client.c.
2310
2311 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2312
2313         * Do not enable SILC_THREADS if the linking with libpthread
2314           did not happen.  Affected file configure.in.pre.
2315
2316         * Added notion to protocol specification that server must
2317           verify the sent authentication payload with CMODE when
2318           setting the channel founder key.  Implemented it to the
2319           server.  Affected file silcd/command.c.
2320
2321 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2322
2323         * Added _EXTRA_DIST SILC distribution variable to the
2324           distributions file.  It is used to conditionally add extra
2325           files or directories to the specific distribution.  Affected
2326           files ./prepare, Makefile.am.pre and distributions.
2327
2328           Removed the `_' from the start of the distribution names.
2329           It is redundant.
2330
2331         * Added README.WIN32 for instructions to compile the Toolkit
2332           under WIN32.
2333
2334 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2335
2336         * Fixed a double free in disconnection in the server.  Affected
2337           file is silcd/server.c.
2338
2339         * Fixed the lib/silcske/groups.c to work now also with GMP
2340           MP library.  The string conversion did not work when using
2341           specific base and the base is indicated in the string as well.
2342
2343         * Created win32/ directory which now includes MSVC++ specific
2344           stuff so that toolkit (DLLs) may be compiled with MSVC++.
2345           It will appear only in the toolkit distribution
2346
2347 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2348
2349         * Changed the key material distribution function in case when
2350           the hash output is too short.  The data is now concatenated
2351           a bit differently than it used to.  Made the change to the
2352           SKE protocol specification.
2353
2354         * Added better GMP detection to configure.in.pre.  A patch
2355           by salo.
2356
2357 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2358
2359         * Fixed a minor bug in SKE that might cause some problem on
2360           some platforms.  Affected file lib/silcske/silcske.c.
2361
2362         * Added the cookie checking for initiator in the SKE.  It checks
2363           that the responder returns the sent cookie unmodified.  The
2364           affected file is lib/silcske/silcske.c.  Added new SKE
2365           error type INVALID_COOKIE that can be sent during the
2366           negotiation.  Fixed some memory leaks as well.
2367
2368         * Added the "invalid cookie" error message to Irssi SILC client's
2369           message formats.
2370
2371 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2372
2373         * Added `task_max' field to the SilcClientParams to indicate
2374           the maximum tasks the scheduler can handle.  If set to zero,
2375           default values are used.  Affected file lib/silcclient/silcapi.h.
2376
2377         * Fixed memory leaks in silc_client_close_connection.  Affected
2378           file lib/silcclient/client.c.
2379
2380         * Added silc_client_del_client_entry to client library to free
2381           all memory of given client entry.  Affected file is
2382           lib/silcclient/idlist.[ch].
2383
2384         * Added new functions silc_client_del_channel and
2385           silc_client_del_server to delete channel and server entries.
2386           Affected file lib/silcclient/[silcapi.h/idlist.c].
2387
2388         * Removed silc_client_del_client_by_id from silcapi.h.
2389
2390         * Fixed the INFO command to return the server's own info
2391           correctly when querying by Server ID.  Affected file is
2392           silcd/command.c.
2393
2394 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2395
2396         * Removed the non-blocking settings in WIN32 code in the
2397           silc_sock_[read/write] and added SleepEx instead.  Affected
2398           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
2399           of input data is now checked with FIONREAD and ioctlsocket.
2400
2401 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2402
2403         * Call silc_schedule_task_del_by_context in the 
2404           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
2405           Affected file lib/silccore/silcprotocol.c.
2406
2407         * Call silc_protocol_cancel for active protocols in the
2408           silc_server_close_connection if the funtion
2409           silc_server_free_sock_user_data has not been called.
2410           Affected file silcd/server.c.
2411
2412         * Generic tasks cannot be deleted using the del_by_fd
2413           task deleting function since generic tasks does not match
2414           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
2415
2416         * Added a notion to SILCOPER help file that the SILCOPER works
2417           only on router server, not on normal server.
2418
2419 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2420
2421         * Added for WIN32 support for the new scheduler as well.
2422           Affected file lib/silcutil/win32/silcwin32schedule.c.
2423
2424         * Fixed the SHA1 implementation to work on various platforms.
2425
2426 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2427
2428         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
2429           API.  It is part of the scheduler now.  Everything else is
2430           as previously but some functions has changed their names.
2431           Checkout the lib/silcutil/silcschedule.h for the interface.
2432           Updated all applications to use the new interface.  Affected
2433           files are lib/silcutil/silcschedule.[ch].
2434
2435 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2436
2437         * Found a bug in the SKE implementation.  The HASH value,
2438           specified by the protocol, was not computed correctly.  The
2439           public key of the responder was not added to the computation
2440           even though it is mandatory.  Affected file lib/silcske/silcske.c.
2441           This unfortunately causes incompatibilities with older
2442           clients and servers.
2443
2444         * Added WIN32 specific network init and uninit functions:
2445           silc_net_win32_init and silc_net_win32_uninit to init and uninit
2446           the Winsock2.  Affected file lib/silcutil/silcnet.h and
2447           lib/silcutil/win32/silcwin32net.c.
2448
2449         * Set the socket always to nonblocking mode on WIN32 after
2450           reading data or writing data.  Affected file is
2451           lib/silcutil/win32/silcwin32sockconn.c.
2452
2453 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2454
2455         * Fixed various compilation problems under WIN32.  Affected
2456           files lib/silcutil/win32/silcwin32thread.c and
2457           lib/silcutil/win32/silcwin32schedule.c.
2458
2459         * Removed all _internal.h #includes from public header
2460           files.  Internal headers must never be included from
2461           public headers.
2462
2463           Removed also the lib/silcske/payload_internal.h file.
2464
2465         * All include files that may be needed (public and some others
2466           included by the public headers) by application developers are
2467           now copied to the ./includes directory.  It does not copy any
2468           internal headers.  Affected file Makefile.defines.pre and all
2469           Makefile.am's under lib/ and subdirs.
2470
2471 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2472
2473         * Do not change the ~/.silc directory's permissions automatically.
2474           Affected file irssi/src/silc/core/clientutil.c.
2475
2476 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2477
2478         * Do not cancel the protocol in silc_server_close_connection
2479           it might cause recursion.  Now cancelled in the function
2480           silc_server_free_sock_user_data.  Affected file silcd/server.c.
2481
2482         * Fixed the silc_server_remove_clients_by_server to regenerate
2483           the channel keys correctly finally.  Added also new function
2484           silc_server_remove_clients_channels to actually do it.
2485           Affected file silcd/server.c.
2486
2487         * Fixed the silc_server_new_channel to not crash by giving
2488           wrong router to the new channel.  Affected file is
2489           silcd/packet_receive.c.
2490
2491 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2492
2493         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
2494           which is given as argument to the silc_client_alloc now.
2495           It can be used to configure the client and set various parameters
2496           that affect the function of the client.
2497
2498         * The USERS command in server did not check whether the channel
2499           is private or secret.  Affected file silcd/command.c.
2500
2501         * Added new argument to the USERS command in protocol specification.
2502           The USERS command now can take the channel name as argument
2503           as well.  Added support for this in client and server and
2504           updated the protocol specs.
2505
2506         * Completed the GETKEY command in client. It can be now used
2507           to fetch also servers public key not only some clients. 
2508           Affected files lib/silcclient/command[_reply].c.
2509
2510         * Added silc_client_get_server to return server entry by the
2511           server name.  Affected files lib/silcclient/silcapi.h and
2512           idlist.c.
2513
2514         * Redefined the IDENTIFY command in protocol specification to be
2515           more generic.  It now can be used to query information about
2516           any entity in the SILC Network, including clients, servers and
2517           channels.  The query may be based either the entity's name
2518           or the ID.  Added support for this in both client and server.
2519
2520           Affected files silcd/command.c and lib/silcclient/command.c
2521           and command_reply.c.
2522
2523         * Optimized the WHOIS and WHOWAS commands in the server. Removed
2524           the _from_client and _from_server functions.  Affected file
2525           silcd/command.c.
2526
2527         * Added silc_client_get_channel_by_id_resolve to the file
2528           lib/silcclient/silcapi.h to resolve channel information by
2529           its ID.  Added also silc_client_get_channel_by_id that
2530           does not resolve it from the server.
2531
2532 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2533
2534         * Added SilcServerEntry context into the client library
2535           to represent one server.  The INFO command now allocates
2536           these to save the resolved server info.  For now on the
2537           client library will also keep information about servers,
2538           connected and resolved with INFO.
2539
2540           The INFO command now allocates the SilcServerEntry context
2541           and saves the server info there.  The COMMAND_REPLY in
2542           the INFO now returns the parameters to application in 
2543           same order as defined in the protocol specification.
2544
2545           The entries are cached in the client->server_cache.
2546
2547         * The INFO command is now issued after received the Client ID
2548           from the server.  Affected file lib/silcclient/client.c.
2549
2550         * The CMODE_CHANGE notify may now return also an SilcServerEntry
2551           to the application as the mode changer might be server.
2552           It is guaranteed that NULL is not returned anymore to the
2553           application.  Affected file lib/silcclient/client_notify.c.
2554
2555           The ID Type is now also passed to the application so that
2556           it can check whether the returned entry is SilcClientEntry
2557           or SilcServerEntry.
2558
2559           Added new function silc_client_get_server_by_id to return
2560           the server entry by ID.  Affected files are the
2561           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
2562
2563         * Do not create the channel in the Irssi SILC Client when issuing
2564           the JOIN command but when received the sucessful JOIN command
2565           reply.  Otherwise the channel might get created even though we
2566           could not join it.  The Affected file is
2567           irssi/src/silc/core/[silc-channels.c/client_ops.c].
2568
2569         * Fixed a channel joining bug in router.  The router must also
2570           check the channel modes, invite and ban lists etc. when serving
2571           the JOIN command sent by normal server.  Affected file is
2572           silcd/command.c.  The router now resolves the client's 
2573           information from the server who sent the JOIN command if it
2574           does not know it, and processes the JOIN command only after
2575           that.
2576
2577         * Changed the SilcCommandCb to take new argument; void *context2.
2578           Affected file lib/silccore/silccommand.h
2579
2580           The second argument in the command callbacks in the server now
2581           includes the SilcServerCommandReplyContext if the command was
2582           called as pending command callback from the command reply.
2583           Otherwise it is NULL. When called as pending the status of the
2584           command reply will be checked and if it was erronous the
2585           error will be sent to the original sender of the command.
2586           This way the client always receives the error messages even
2587           though the server was actually the one who received the error
2588           when it resent the command to router, for example.  Affected
2589           files silcd/command[_reply].[ch].
2590
2591         * Fixed sending WHOWAS command's error message to client if
2592           the requested client could not be found.  It was missing.
2593           silcd/command.c.
2594
2595         * Changed the CMODE and CUMODE commands reply arguments in the
2596           protocol specification.  The Channel ID is now sent in both
2597           of the commands to identify the channel.  Implemented this
2598           new feature to the client and server.  Affected files
2599           lib/silcclient/command_reply.c and silcd/command.c.
2600
2601         * Made better checks for invite and ban lists in the JOIN
2602           command in server.  Affected file silcd/command.c.
2603
2604 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2605
2606         * The server now performs the incoming host IP/DNS lookup
2607           using the silc_socket_host_lookup and thus does not block
2608           the server anymore.  Affected file silcd/server.c.
2609
2610         * Completed the multi-thread support for SILC Scheduler in
2611           the lib/silcutil/silcschedule.c.
2612
2613         * Fixed the configure.in.pre to detect the pthread correctly
2614           on various systems.
2615
2616         * Fixed a deadlock in silc_task_queue_wakeup in the file
2617           lib/silcutil/silctask.c.
2618
2619 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2620
2621         * Added new function silc_schedule_wakeup that is used in
2622           multi-threaded environment to wakeup the main thread's
2623           schduler. It needs to be used when a thread adds a new task
2624           or removes a task from task queues. After waking up, the
2625           scheduler will detect the task queue changes. If threads
2626           support is not compiled in this function has no effect.
2627           Implemented the wakeup mechanism to both Unix and WIN32
2628           systems.  Affected files are lib/silcutil/silcschedule.[ch],
2629           lib/silcutil/unix/silcunixschedule.c and the
2630           lib/silcutil/win32/silcwin32schedule.c.
2631
2632         * Added new function silc_task_queue_wakeup to wakeup the
2633           scheduler by the specified task queue.  Affected file
2634           lib/silcutil/silctask.[ch].
2635
2636         * The silc_socket_host_lookup_start now wakes up the scheduler
2637           after adding the timeout task.  Affected file is
2638           lib/silcutil/silcsockconn.c.
2639
2640         * The silc_socket_host_lookup is synchronous now if the threads
2641           support is not compiled in.  However, the callback is still
2642           called asyncronously through the scheduler, anyway.  Affected
2643           file lib/silcutil/silcsockconn.c.
2644
2645 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2646
2647         * Added new function silc_socket_host_lookup to perform
2648           asynchronous IP and FQDN lookups for the socket connection.
2649           Affected files lib/silcutil/silcsockconn.[ch].
2650
2651 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2652
2653         * Added SILC_MUTEX_DEFINE to define the mutex on environments
2654           that may or may not compile the mutex support in.
2655         
2656           Changed the silc_mutex_alloc interface. It allocates the
2657           mutex now to the sent pointer and returns TRUE or FALSE.
2658
2659           Affected file lib/silcutil/silcmutex.h.
2660
2661         * Wrote the SILC Task Queue interface to support multi-threads.
2662           Affected file lib/silcutil/silctask.[ch].
2663
2664         * Wrote the SILC Scheduler to support multi-threads.  Affected
2665           file lib/silcutil/silcschedule.c.
2666
2667 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2668
2669         * Implemented the SILC Mutex API and SILC Thread API for WIN32
2670           in lib/silcutil/win32/.
2671
2672 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2673
2674         * Defined SILC Mutex API and SILC Thread API and implemented
2675           them for Unix.  Affected files are
2676           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
2677           lib/silcutil/unix/silcunixmutex.c and
2678           lib/silcutil/unix/silcunixthread.c.
2679
2680 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2681
2682         * Fixed the silc_server_remove_clients_by_server's channel
2683           key re-generation.  The hash table handling was incorrect
2684           and would not work with many channels.  Affected file is
2685           silcd/server.c.
2686
2687         * Fixed some memory leaks around the server code.
2688
2689         * Rewrote the silc_server_get_users_on_channel to support IPv6
2690           based Client ID's.  Affected file silcd/server.c.
2691
2692         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
2693           specification.  However, a separate document must be written
2694           to define the detailed signing procedure and the payload
2695           associated with the flag.  Defined the flag to the
2696           lib/silccore/silcchannel.h as well.
2697
2698 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2699
2700         * Changed the dynamic tables to static size tables in the
2701           lib/silccrypt/silchmac.c.
2702
2703         * Removed GCC dependencies from the code.  A patch by cras.
2704
2705 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2706
2707         * Do not show the error "Error receiving packet bla bla"
2708           in server if it really was not an error (-2 means that reading
2709           is pending).  Affected file silcd/server.c.
2710
2711 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2712
2713         * Fixed a possible crash in silc_server_remove_clients_by_server
2714           in silcd/server.c.  Fixed there also some memory leaks.
2715
2716         * Fixed the silc_idlist_replace_client_id.  It could replace
2717           wrong key in the hash table.  Affected file silcd/idlist.c.
2718
2719         * Do not check whether there are global users on the channel
2720           if the channel->global_users is FALSE.  Affected functions
2721           silc_server_remove_from_one_channel and
2722           silc_server_remove_from_channels in silcd/server.c.  Also,
2723           do not check if the removed client is local as we can be
2724           sure that global client was not removed from the channel
2725           and checking for global users is not needed.
2726
2727         * The silc_server_remove_clients_by_server now re-generates
2728           the channel keys correctly for those channels that had
2729           clients removed from them.  Affected file silcd/server.c.
2730
2731 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2732
2733         * Found the reason of random crashes in the server.  We weren't
2734           ignoring the SIGPIPE signal (which can be sent in write())
2735           and it crashed the server.  Affected file silcd/silcd.c.
2736
2737 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2738
2739         * Assure that sock->user_data is not NULL in the function
2740           silc_server_packet_send in silcd/packet_send.c.
2741
2742         * Disconnect the remote connection if it could not be added
2743           to any ID lists in the server.  The affected file is
2744           silcd/server.c.
2745
2746         * Check in silc_server_packet_send[_real/dest] that the
2747           socket is not disconnecting and ignore the data if it is.
2748           Affected file silcd/packet_send.c.
2749
2750         * Define inline to __inline on native WIN32 compilation.
2751           Affected file includes/silcwin32.h.
2752
2753         * Added some explicit type casts for inline code since MSVC
2754           require them.  Affected files lib/silcutil/silcbuffer.h,
2755           lib/trq/silcdlist.h and lib/trq/silclist.h.
2756
2757         * Print warning in log files from now on if the packet
2758           decryption fails.  Affected file silcd/server.c.
2759
2760 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2761
2762         * Changed the `say' client operation's interface to accept
2763           new `type' argument to indicate the type of the message sent
2764           by the library.  The application may filter the library's
2765           messages according the type.  The affected file is the
2766           lib/silcclient/silcapi.h.
2767
2768         * Added two new functions to lib/silcclient/silcapi.h:
2769           silc_client_del_client and silc_client_del_client_by_id.
2770           Affected file lib/silcclient/idlist.c.
2771
2772         * Moved the clientincludes.h from includes/ to silc/ and
2773           serverincludes.h from includes/ to silcd/.
2774
2775         * The modes for the CMODE and CUMODE are now passed as
2776           uint32 for application with COMMAND_REPLY.  The affected
2777           file is lib/silcclient/command_reply.c.
2778
2779 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2780
2781         * /WHOIS without arguments shows client's own information.
2782           Affected file lib/silcclient/command.c.
2783
2784         * Changed PING to not accept any arguments.  The specs
2785           says that client can ping only the connected server so
2786           requiring an argument is not needed.  Affected file is
2787           lib/silcclient/command.c.
2788
2789 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2790
2791         * Fixed a fatal bug in private message sending and reception
2792           encryption and decryption when using private message keys.
2793           The implementation was incorrect and did not follow the
2794           specification.  It causd that some of the message were
2795           lost since it did not use the sending and receiving keys
2796           as the protocol suggests.  This has been fixed and will cause
2797           incompatibilities with older clients when sending private
2798           message encrypted with private message keys.  Affected files
2799           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
2800           and various other in Irssi SILC Client.
2801
2802           Added `responder' boolean argument to the functions
2803           silc_client_add_private_message_key[_ske] to indicate when
2804           the key is added as responder or initiator of the key
2805           negotiation.
2806
2807 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2808
2809         * Removed the silc_ske_check_version function and created
2810           a SilcSKECheckVersion callback.  Added also a function
2811           silc_ske_set_callbacks that is now used to set all SKE
2812           callbacks.  The callback functions are not given to
2813           the SKE functions anymore, but this function is used to
2814           set the callbacks.
2815
2816         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
2817
2818         * Added `silc_version' argument to the silc_client_alloc
2819           to define the version of the application for the library.
2820           The library will use the version string to compare it
2821           against the remote host's (usually a server) version
2822           string.  Affected file lib/silcclient/silcapi.h
2823
2824         * Added the KE protocol context to Key Agreement context
2825           in client library so that we can abort the SKE if it
2826           is in process when we get timeout.  Affected file is
2827           lib/silcclient/client_keyagr.c.
2828
2829         * Do not resolve the client ID forever if it returns in the
2830           first time that such client does not exist.  This was done
2831           for example with private message.  Affected file is
2832           lib/silcclient/client_prvmsg.c.
2833
2834 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2835
2836         * Do not add regex.h for WIN32.  The affected file
2837           includes/silcincludes.h.
2838
2839         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
2840           not work yet 100%.  It generates the DLL's automatically
2841           when compiling with --with-win32 under cygwin.
2842
2843 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2844
2845         * lib/contrib/regex.c is not compiled on WIN32.
2846
2847         * Added silc_net_get_socket_opt function to the
2848           lib/silcutil/silcnet.h.
2849
2850         * Added includes/silcwin32.h for WIN32 specific includes
2851           and definitions.
2852
2853         * Do not use ptime structure or any of the posix process
2854           functions on WIN32 in lib/silccrypt/silrng.c.
2855
2856         * Added silc_gettimeofday to provide generic function
2857           for struct timeval on all platforms.  Added the function
2858           to lib/silcutil/silcutil.h.
2859
2860 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2861
2862         * Moved the lib/silccore/silcsockconn.[ch] to the utility
2863           library as they clearly belong there.  As a plus side we
2864           can make the actual socket connection routines platform
2865           specific.
2866
2867           Added also new generic function silc_socket_read and
2868           silc_socket_write (that used to be silc_packet_[read/write].
2869           The implementation of these are platform specific.
2870
2871         * Added WIN32 specific routines of silc_socket_[read/write]
2872           to lib/silcutil/win32/silcwin32sockconn.c.
2873
2874 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2875
2876         * Added preliminary support for native WIN32 compilation under
2877           cygwin (using the -mno-cygwin option for GCC) to the
2878           ./configure.in.pre.  The --with-win32 now prepares the
2879           compilation for native WIN32.
2880
2881         * Rewrote the SILC Scheduler interface in the file
2882           lib/silcutil/silcschedule.h.  The scheduler is now context
2883           based and does not have anymore any global static scheduler.
2884           Moved the Unix scheduler to the lib/silcutil/unix/ directory
2885           and created lib/silcutil/win32 directory for WIN32 based
2886           scheduler.
2887
2888         * Added Unix specific network routines to the
2889           lib/silcutil/unix/silcunixnet.c and the old
2890           lib/silcutil/silcnet.c includes now only generic routines.
2891
2892           Added WIN32 specific network routines to the
2893           lib/silcutil/win32/silcwin32net.c.
2894
2895         * Added Unix specific utility functions from the
2896           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
2897
2898         * Added WIN32 SILC Scheduler to the file
2899           lib/silcutil/win32/silcwin32schedule.c. The code is of course
2900           untested.
2901
2902 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
2903
2904         * Do not handle JOIN notify in the server if the target client
2905           is not registered (idata->registered == FALSE).  The affected
2906           file is silcd/packet_receive.c.
2907
2908         * Update the nickrec->founder in event_cumode in the Irssi SILC
2909           client.  Affected file irssi/src/silc/core/silc-channels.c.
2910
2911         * Fixed the CUMODE_CHANGE notify handling in the server when
2912           server and router are announcing their clients on channels.
2913           Now the mode changes are saved and notified correctly.  The
2914           affected file is /silcd/packet_receive.c.
2915
2916         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
2917           They really did not replace the cache entry in the ID Cache.
2918           Now they do that.  Affected file silcd/idlist.c.
2919
2920         * Fixed the KICK notify handling in the Irssi SILC client to
2921           update the channel records so that the kicked client does not
2922           appear to be on the channel.  The affected file is 
2923           irssi/src/silc/core/silc-channels.c.
2924
2925         * Always update the conn->current_channel when executing command
2926           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
2927
2928         * Fixed the KILL notify handling in Irssi SILC client to remove
2929           the killed client on all channels.
2930
2931 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2932
2933         * Fixed the silc_parse_command_line to remove extra spaces
2934           from the start and end of the arguments.  Affected file is
2935           lib/silcutil/silcutil.c.
2936
2937         * Cancel and free any active protocol in the function
2938           silc_server_close_connection.  Affected file silcd/server.c.
2939
2940         * Cancel and free any active protocol in the function
2941           silc_client_close_connction.  Affected file is
2942           lib/silcclient/client.c.
2943
2944         * Do not execute the KILL command for clients that are in
2945           history (ie. they are not in the network).  Affected file is
2946           silcd/command.c.
2947
2948         * Fixed KILL notify handling, client does not crash anymore.
2949           Affected file irssi/src/silc/core/silc-channels.c.
2950
2951         * Reduced the default packet buffer size from 2048 to 1024 in   
2952           lib/silccore/silcpacket.c.
2953
2954         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
2955           counter to the SKE context that is incresed when the SKE library
2956           performs async operation outside the library.  If the outside
2957           process frees the SKE context and FREED status will be set 
2958           and the library will detect after the sync operation that the
2959           libary is freed.  The affected files are
2960           lib/silcske/silcske[_status].[ch].
2961
2962         * Resolve the client entry information in the function
2963           silc_client_channel_message to assure that NULL pointer is not
2964           passed as client entry to the application. */
2965
2966         * Fixed the task timeout calculation to assure that there is
2967           never negative timeouts.  The affected file is 
2968           lib/silcutil/silcschedule.c.
2969
2970         * Fixed the channel user mode notification sending in server.
2971           It was sent point-to-point to the router (or to server by router)
2972           but it needs to be destined to a channel.  The routines now
2973           supports sending the channel user mode notifys to the channels
2974           when announcing clients and channels.  Affected files are
2975           silcd/server.c and silcd/packet_receive.c.
2976
2977         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
2978           It did not actually replace the old channel entry in the cache.
2979           Affected file lib/silcclient/client_notify.c.
2980
2981 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2982
2983         * Fixed a possible crash in silc_packet_send_prepare.  It now
2984           assures always that there is enough space in the buffer and
2985           at the tail area of the buffer (for MAC). 
2986
2987           Fixed the inbound buffer reallocation in silc_packet_read.
2988           It was old code and did not handle the reallocation correctly.
2989           Affected
2990
2991           The affected file is lib/silccore/silcpacket.c.
2992
2993         * Fixed buffer overflow in silc_parse_nickname in the file
2994           lib/silcutil/silcutil.c.
2995
2996 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
2997
2998         * make install generates new server keys only if there is not
2999           keys already.
3000
3001 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3002
3003         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
3004           Added check that if the NOREPLY is set then we will not send
3005           the away message.  This avoids infinite loop of away messages
3006           if both clients are away.  The affected file is
3007           lib/silcclient/client_prvmsg.c.
3008
3009         * Fixed client crash if /NICK was given without arguments.
3010           Affected file lib/silcclient/command.c.
3011
3012         * Server does not send the invite list in INVITE command back
3013           to the client if the list was not altered.  Added this notion
3014           to the protocol spec as well.  Affected file silcd/command.c.
3015
3016           Fixed possible crash in INVITE command by checking the
3017           value of silc_server_get_client_route command.
3018
3019         * Fixed the INVITE notify type handling.  The arguments are now
3020           taken in correct order and client does not crash.  The affected
3021           file is irssi/src/silc/core/silc-channels.c.
3022
3023           Removed the "Inviting xxx to channel" message from the
3024           client library away and let the application handle it.
3025           Affected file lib/silcclient/command.c.  Added that message
3026           to Irssi SILC client's message formats.
3027
3028         * Fixed CMODE command crash in client.  It now checks the
3029           amount of arguments correctly and does not crash.  The affected
3030           file is lib/silcclient/command.c.
3031
3032         * Do not create new channel automatically in silc_channels_join
3033           but check whether the channel by that name already exists.
3034           Affected file irssi/silc/core/silc-channels.c.
3035
3036         * Do not send the SERVER_SIGNOFF to router if the disconnected
3037           entity was the router.  Affected file silcd/server.c.
3038
3039         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
3040           SILC client as it was missing from there.
3041
3042           Added the handling of the KICK notify to the Irssi SILC client
3043           as it was missing.  Added "you have been kicked" message to
3044           Irssi SILC client's message modules formats.
3045
3046           Added the handing of the KILL notify to the Irssi SILC client
3047           as it was missing.  Added the kill message module formats 
3048           as well.
3049
3050           The affected file is irssi/src/silc/core/silc-channels.c.
3051
3052         * The router did not save the channel mode the server announced.
3053           Affected file silcd/packet_receive.c.
3054
3055         * Fixed a possible crash in INFO command in server.  If the
3056           server did not provide the server info it crashed.  Affected
3057           file silcd/command.c.
3058
3059 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3060
3061         * Fixed the GETKEY command in the server to check also the
3062           global list.  Otherwise the GETKEY would not work correctly
3063           in normal SILC server.  Affected file silcd/command.c.
3064
3065 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3066
3067         * Fixed GETKEY crash, it crashed if the command did not succseed.
3068
3069 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3070
3071         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
3072           is now real and not just an macro interface to GMP.
3073
3074           Removed the entire GMP from the source tree and imported new
3075           NSS MPI library instead.  Reason for removing GMP is that it is
3076           extremely large and compiles extremely slow.  The NSS MPI
3077           is only a few files and compiles in less than 10 seconds.
3078           The speed is also about the same as GMP.  The MPI is imported
3079           to lib/silcmath/mpi.
3080
3081           If the system has GMP installed we will still use the GMP.
3082           If it is not then the NSS MPI will be compiled.
3083
3084 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3085
3086         * Merged a long nickname (127 characters long) crash bugfix from
3087           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
3088
3089         * Merged a freed memory reference bugfix from Irssi CVS tree.
3090           Affected file irssi/src/core/commands.c.
3091
3092 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3093
3094         * Added the server's public key sving and verification to the
3095           server when performing the SKE.  This was missing and the
3096           remote server's (or router's) public key was accepted without
3097           checking whether we have it previously or trust it at all.
3098           Affected file silcd/protocol.c.
3099
3100 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3101
3102         * Check in the silc_server_timeout_remote if protocol is active
3103           and make sure that the protocol's final callback is called so
3104           that all memory if freed.  Affected file silcd/server.c.
3105
3106 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3107
3108         * silc_server_whois_send_reply crashed the server if the nickname
3109           was 127 characters long.  Affected file silcd/command.c.
3110
3111 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3112
3113         * Added sanity check to the silc_server_new_client. If the hostname
3114           is provided inside username then check that the provided hostname
3115           really is the same as the resolved one.  If the hostname was not
3116           resolved then check it from the public key.  Affected file is
3117           silcd/packet_receive.c.
3118
3119         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
3120           if the server disconnected us and the connection is not valid
3121           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
3122
3123         * Moved the silc_client_[chmode|chumode|chumode_char] away from
3124           the library to the lib/silcutil/silcutil.[ch].
3125
3126 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3127
3128         * Close log file after open.  Affected file 
3129           lib/silcutil/silclog.c.
3130
3131         * Check whether sock == NULL in silc_client_send_packet and return
3132           if it is.  Affected file lib/silcclient/silcclient.c.
3133
3134         * Check rec->entry == NULL in the Irssi SILC Client before
3135           sending the channel message.  Affecte file is
3136           irssi/src/silc/core/silc-servers.c.
3137
3138 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3139
3140         * Merged a splitted window bugfix from Irssi CVS tree.  The 
3141           affected file is irssi/src/fe-text/textbuffer-view.c.
3142
3143         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
3144           It did not print nickname.
3145
3146         * Improved the distributions system a bit.
3147
3148 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3149
3150         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
3151           irssi/src/fe-text/gui-window.c.
3152
3153         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
3154           to in-active server.  The affected file is
3155           irssi/src/silc/core/client_ops.c.
3156
3157         * Resolve the client in USERS command reply if the entry does
3158           not have username resolved.  The affected file is
3159           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
3160           command to WHOIS command to really resolve stuff.  The USERS
3161           is not used any more in any critical section so WHOIS can
3162           be used even though it might be slower than IDENTIFY.
3163
3164         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
3165           format.
3166
3167 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3168
3169         * Changed the protocol API a bit more consistent in the
3170           lib/silccore/silcprotocol.[ch].
3171
3172         * Changed the following headers to ROBODoc format:
3173
3174                 lib/silccore/silcpayload.h
3175                 lib/silccore/silcprotocol.h
3176                 lib/silccore/silcsockconn.h
3177
3178           All core library headers are now formatted.
3179
3180 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3181
3182         * Fixed a bug in Irssi SILC client; do not show that you are
3183           server/router operator if you really are not.  Affected file is
3184           irssi/src/silc/core/client_ops.c.
3185
3186         * Renamed silc_command_free_payload to silc_command_payload_free.
3187           Affected file lib/silccore/silccommand.h
3188
3189         * Added silcmath.h to include the prototoypes of various routines
3190           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
3191           silcprimegen.h.
3192
3193         * Changed the following headers to ROBODoc format:
3194
3195                 lib/silccore/silcchannel.h
3196                 lib/silccore/silccommand.h
3197                 lib/silccore/silcid.h
3198                 lib/silccore/silcidcache.h
3199                 lib/silccore/silcmode.h
3200                 lib/silccore/silcnotify.h
3201                 lib/silccore/silcpacket.h
3202                 lib/silcmath/silcmath.h
3203
3204 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3205
3206         * Added checking to the server code not to start the server if
3207           ciphers and stuff are not configured properly.  Affected files
3208           silcd/serverconfig.[h] and silcd/server.c.
3209
3210         * Changed the layout of the header files of the public interfaces
3211           in the SILC libraries.  The new layout supports ROBODoc 
3212           documentation tool (and some others) so that it is easy to create
3213           a library reference manual.  All the other headers and source
3214           code must still follow the CodingStyle document.  Also source
3215           code must not include these ROBODoc stuffs, only the headers.
3216           Furthermore, all public interface headers must now be named
3217           by using `silc' prefix, example: silcapi.h, silccipher.h.
3218           Some files were renamed due to this.  All the other headers
3219           must not be used as public interfaces.  I will update the
3220           CodingStyle document later.  Changed following headers, so far:
3221
3222                 lib/silcclient/silcapi.h
3223                 lib/silccore/silcauth.h
3224                 lib/silccore/silcprivate.h
3225                 lib/silccrypt/silcdh.h
3226
3227 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3228
3229         * Updated TODO.
3230
3231         * Removed silc_client_packet_send_flush from the client library
3232           as it is not needed.  Affected file lib/silcclient/client.[ch].
3233
3234         * Added printing of message of unresolved authentication method
3235           to the Irssi SILC client.  Added it to the module formats.
3236           Removed the same message from the client library.
3237
3238 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3239
3240         * Added new distribution feature, DISTLABEL.  Every distribution
3241           can define own preprocessor label that can be used in the
3242           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
3243           file distributions, acconfig.h.pre and prepare.
3244
3245 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3246
3247         * Added Makefile.defines_int to include the actual definitions
3248           for Makefile.defines.in.  Tested the new distribution system,
3249           created distributions and tested installation.
3250
3251         * Added AWAY message printing to the Irssi SILC client.  Added
3252           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
3253
3254         * Added SCONNECT command to call the SILC's CONNECT command.
3255           Cannot use CONNECT directly since Irssi uses that internally.
3256           Affected file irssi/src/silc/core/silc-servers.c.
3257
3258           Added ACTION local command.  It is same as ME command but takes
3259           the channel as mandatory argument.
3260
3261           Rewrote some of the Irssi's help files to suite for SILC
3262           protocol.
3263
3264 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3265
3266         * Added Makefile.defines[.in] that should for now on be included
3267           in all Makefile.am file in the source tree.  That file includes
3268           all common compilation definitions for SILC source tree.
3269
3270 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3271
3272         * Minor changes to the ./prepare script to change the package
3273           name according the distribution name to the configure.in.
3274
3275 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3276
3277         * Created new distribution system.  Added file `distributions'
3278           that defines all the distributions that can be created out of
3279           the SILC source tree.  The ./prepare script now reads that
3280           file to determine how to prepare the distributions.  The
3281           first argument to the ./prepare is the name of the distribution
3282           and second is the version of the distribution.  If given
3283           without arguments it creates the default (toolkit) distribution
3284           with the default version (defined in ./prepare).
3285
3286           All Makefile.am files that are subject to the distributions
3287           are now named as Makefile.am.pre.  These are ./Makefile.am
3288           and lib/Makefile.am.  Others may be changed later.
3289
3290 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3291
3292         * Added invite list, ban list, some key management and connection
3293           error message printing to module formats in the Irssi SILC client.
3294
3295         * Added new silc_client_set_away_message to set the away message
3296           that is back to the person who sent private message.  The 
3297           affected file lib/silcclient/silcapi.h and the
3298           lib/silcclient/client_prvmsg.c.
3299
3300 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3301
3302         * Fixed the private message sending in the Irssi SILC client,
3303           added local command KEY to the Irssi SILC client.
3304
3305           Added key management and key agreement message formats to the
3306           irssi/src/fe-common/silc/module-formats.[ch].
3307
3308           Added USERS (alias WHO) printing, server/router operator
3309           indication and LIST command printing to the module formats.
3310
3311 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3312
3313         * Fixed channel joining notify handling, cumode notify handling
3314           from Irssi SILC client.
3315
3316         * Added SILC specific module-formats to the Irssi SILC client so
3317           that SILC specific message hilighting, colors etc is possible.
3318           Affected file irssi/src/fe-common/silc/module-formats.[ch].
3319
3320           Added channel mode, channel user mode, actions, notices,
3321           whois and whowas printing to the the module-formats.c.
3322
3323         * Fixed a bug in channel deletion in the server.  The channel
3324           is not left to the cache even if the channel founder auth mode
3325           is set when there are no users anymore on the channel.  Affected
3326           file silcd/server.c.
3327
3328         * The silc_net_localhost now resolves the entire hostname including
3329           the domain name.  Affected file lib/silcutil/silcnet.c.
3330
3331 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3332
3333         * Changed the ask_passphrase client operation to be ascynchronous.
3334           It has now a completion callback and a context that the 
3335           application must call after it has got the passphrase from
3336           the user.  Affected files lib/silcclient/silcapi.h,
3337           lib/silcclient/protocol.c, lib/silcclient/command.c and
3338           silc/client_ops.c.
3339
3340           Added SilcAskPassphrase callback that the application calls
3341           to deliver the passphrase to the library.
3342
3343         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
3344           The public key verification and especially a certificate
3345           verification is asynchronous procedure.
3346
3347           Added new SILC_SKE_STATUS_PENDING status to indicate the
3348           request is pending and a callback will be called to finalize
3349           the request.
3350
3351           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
3352           indicate that remote end did not send its public key (or
3353           certificate), even though we require it.  Added check for this
3354           condition in the SKE.  This was a security bug, now fixed.
3355
3356           Defined new SilcSKEVerifyCbCompletion callback that is called
3357           when the verification process is completed.
3358
3359           The affected files lib/silcske/silcske_status.h and
3360           lib/silcske/silcske.[ch].
3361
3362         * Changed the verify_public_key client operation to be async
3363           as well.  Defined SilcVerifyPublicKey callback that is used to
3364           indicate the success of the public key verification process.
3365
3366           Changed the server and client to use the new async client 
3367           operations.
3368
3369         * Changed the Irssi SILC client's internal scheduler to be called
3370           twice as many times as it used to be.  As a result the client
3371           should be a bit faster now.  Affected file is
3372           irssi/src/silc/core/silc-core.c.
3373
3374         * Added support to Irssi SILC client of asynchronous public key
3375           verification and passphrase inquiry.  Affected file is
3376           irssi/src/silc/core/silc-core.c.
3377
3378 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3379
3380         * Do not say "You have left channel %s" in client library.
3381           Moved it to the application.  Affected files are
3382           lib/silcclient/command.c and silc/client_ops.c.
3383
3384         * Fixed silc_client_get_clients.  Command context was not
3385           duplicated and was freed memory in the callback.  Affected
3386           file lib/silcclient/idlist.c.
3387
3388         * Do not say "you are now talking..." on JOIN command in the
3389           client library.  The appliation must handle it.
3390
3391         * Do not say ".. changed topic to" in command reply in the
3392           client libary.  The application must handle it.
3393
3394         * Fixed TOPIC command sending in the client library.
3395
3396         * Fixed a memory leak in silc_client_command_free in the file
3397           lib/silcclient/command.c.
3398
3399 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3400
3401         * Imported a modified version of Irssi client to the source tree.
3402           The Irssi will be used to create a new client called
3403           Irssi SILC.  Imported to irssi/.
3404
3405           Added silc_core_init_finish function to the Irssi.  Affected
3406           file irssi/configure.in.
3407
3408           A lot changes in the Makefile.ams around the irssi tree.
3409
3410 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3411
3412         * Do not rehash if the new size is same as the old size of the
3413           hash table, in the silc_hash_table_rehash*.  The affected file
3414           lib/silcutil/silchashtable.c.
3415
3416         * Replaced hash_table_del_by_context calls from the server
3417           (when channel->user_list and client->channels) to the
3418           hash_table_del as it is sufficient and faster.
3419
3420 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3421
3422         * Added silc_hash_table_list, silc_hash_table_get and the
3423           SilcHashTableList structure to provide an alternative way to
3424           traverse the hash table.  The affected files are
3425           lib/silcutil/silchashtable.[ch].
3426
3427         * Changed the server's idlist routines to use the hash table
3428           routines to optimize the code.
3429
3430 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3431
3432         * Replaced the client entry's `channel' list and channel entry's
3433           `user_list' list to hash tables for optimized lookup.  Changed
3434           the code to use the hash table interface around the code. 
3435           Affected file lib/silcd/idlist.[ch].
3436
3437         * Added `auto_rehash' boolean argument to the function
3438           silc_hash_table_alloc to indicate whether the hash table should
3439           auto-rehash when it thinks is appropriate time.  It will
3440           increase the hash table size if the there is twice as much
3441           entries in the table than the size of the table, and will
3442           decrease the size if there are twice as less entries than
3443           the size of the table.
3444
3445 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3446
3447         * Fixed silc_xxx_get_supported to not crash at some circumstances.
3448
3449 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3450
3451         * silc_idcache_purge_by_context deletes the entry now by context
3452           as it is supposed to do.  Affected file lib/silccore/idcache.c.
3453
3454         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
3455           client is not anymore valid (WHOWAS givens the info) and not
3456           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
3457
3458 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3459
3460         * Removed the `data' and `data_len' arguments from the ID Cache
3461           interfaces and added `name' argument.  ID Cache does not handle
3462           anymore the binary data only a names associated with given ID.
3463
3464         * When hashing a Client ID with silc_hash_id the entire ID is
3465           not hashed anymore, instead only the hash of the Client ID is
3466           hashed.  This way we can access the Client ID from the cache
3467           with Client ID but with the hash of the ID (which is a hash of
3468           the nickname) as well without any difference in performance.
3469
3470           Added also silc_idcache_find_by_id_one_ext to do one on one 
3471           searching when we have the actual ID.  Added also function
3472           silc_hash_client_id_compare.  The affected files are
3473           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
3474
3475         * When hashing the name associated with a ID it is always done
3476           in lowercase.  This way we can access the cache without worrying
3477           about case-sensitivity, even though, for example nicknames are
3478           case sensitive.
3479
3480         * Fixed a bug in server with channel message sending.  It put
3481           wrong ID type as destination ID.  The affected file 
3482           silcd/packet_send.c.
3483
3484         * silc_idcache_del_by_context now deletes from all hash tables
3485           by context.  Affected file lib/silccore/idcache.c.
3486
3487 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3488
3489         * Changed the client library to use the new ID Cache interface.
3490           Changes around the source tree.
3491
3492         * Added silc_hash_table_rehash_ext to rehash with specific
3493           hash function.  Affected file lib/silcutil/silchashtable.[ch].
3494
3495         * Added silc_hash_string_compare to compare two strings in the
3496           hash table.  Affected file lib/silcutil/silcutil.[ch].
3497
3498 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3499
3500         * Added new function silc_idcache_del_by_context into the
3501           lib/silccore/idcache.[ch].
3502
3503         * Changed the server's ID list routines to use the new ID Cache
3504           interface.  Changes around the source tree.
3505
3506 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3507
3508         * Added silc_hash_table_del[_by_context]_ext functions in to the
3509           lib/silcutil/silchashtable.[ch].
3510
3511           Removed silc_hash_table_find_all* routines and added new
3512           silc_hash_table_find_foreach to replace them.
3513
3514           Added silc_hash_table_replace_ext function as extended
3515           replacing function.  Separated the simple hash table interface
3516           from the extended hash table interface in the file
3517           lib/silcutil/silchashtable.h.
3518
3519         * Fixed minor bugs and changed it to use some of the new
3520           hash table functions in lib/silccore/idcache.c
3521
3522 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3523
3524         * Added new function silc_hash_table_find_all to return all keys
3525           in the hash table by the specified key.  As the hash table is
3526           collision resistant it also makes it possible to have several
3527           duplicate keys in the hash table.  This function may be used to
3528           find all of the keys from the hash.
3529
3530           Added user_context arguments to the SilcHashFunction,
3531           SilcHashCompare and SilcHashDestructor to deliver user specified
3532           context.
3533
3534           Added new fuctions silc_hash_table_find[_all]_ext to do
3535           extended lookup with specified hash and compare functions and
3536           specified user contexts.
3537
3538           Added new function silc_hash_table_add_ext to add the key
3539           with specified hash function and user context.
3540
3541           Added new function silc_hash_table_foreach to traverse all
3542           entrys in the hash table.  Added SilcHashForeach callback
3543           function.
3544
3545           Added new function silc_hash_table_del_by_context to delete
3546           the entry only if the context associated with the key matches.
3547
3548           Affected files are lib/silcutil/silchashtable.[ch].
3549
3550         * Removed silc_hash_[server/client/channel]_id and added just
3551           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
3552           silc_hash_id_compare to compare two ID's using as the hash table
3553           comparison function.  Added also silc_hash_data to hash
3554           binary data and silc_hash_data_compare to compare it.
3555
3556         * Removed silc_idlist_find_client_by_hash as it is not needed
3557           anymore.  Affected file silcd/idlist.[ch].
3558
3559         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
3560           to use internally the SilcHashTable.  The new ID Cache is a lot
3561           faster than the old one.  Some of the ID Cache interface was also
3562           rewritten and obsolete and stupid functions were removed.
3563
3564 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3565
3566         * Added entry_count field to the SilcHashTable to keep the number
3567           of the entries in the table.  Implemented the function
3568           silc_hash_table_rehash.  Added new function
3569           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
3570
3571           Fixed a minor bug in silc_hash_table_free.
3572
3573         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
3574           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
3575           into the lib/silcutil/silcutil.[ch].
3576
3577 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3578
3579         * Implemented a collision resistant hash table into the
3580           lib/silcutil/silchashtable[ch].  See the header and the source
3581           for the SilcHashTable API.
3582
3583 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3584
3585         * Merged dotconf version 1.0.2 into lib/dotconf.
3586
3587 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3588
3589         * Do not compile anything in lib/silcsim/* if the SIM support
3590           is not enabled.  The tree should now compile without problems
3591           under cygwin.
3592
3593 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3594
3595         * Compiled the SILC under cygwin.  Compiled and tested briefly
3596           without problems.  More tests needed.  The SIMs didn't compile
3597           though.
3598
3599         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
3600
3601         * Fixed possible crash in silc_get_username in the
3602           lib/silcutil/silcutil.c.
3603
3604 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3605
3606         * Fixed a va_arg in silc/client_ops.c.
3607
3608         * Oops, RC5 routines were named AES and caused some problems
3609           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
3610
3611 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3612
3613         * Added new SilcIDIP structure into the lib/silccore/id.h and
3614           replaced the old `ip' fields from all SILC ID's to that type.
3615           This is a step towards IPv6 support.
3616
3617           The silc_id_get_len takes now the ID as an extra argument.
3618           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
3619           both IPv4 and IPv6 based ID's.
3620
3621           The affected files are lib/silccore/id.[ch] and other files
3622           around the tree using these routines.
3623
3624         * Removed the ID length arguments in server from various 
3625           silc_server_send_notify_* routines -> they are not needed 
3626           anymore.
3627
3628 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3629
3630         * Fixed memory leak in silc_encode_pem_file in the file
3631           lib/silcutil/silcutil.c.
3632
3633 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3634
3635         * Check minor version as well in the SKE.  Affected files are
3636           silcd/protocol.c and lib/silcclient/protocol.c.
3637
3638         * Added --identifier option to the server so that an identifier
3639           can be when creating the public key for the server.  Affected
3640           file is silcd/silcd.c.
3641
3642         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
3643           lib/silccrypt/silcpkcs.c.
3644
3645 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3646
3647         * Register default ciphers and stuff when using -C option with
3648           the server.  Affected file sildc/silcd.c.
3649
3650         * Put back the servers public key filename format, it is better
3651           than the new one.  For now, the client keys are saved with the
3652           new filename format.  The affected file silc/client_ops.c.
3653
3654         * Implemented the Cipher API for the rest of the ciphers that
3655           did not implement it or implemented it the wrong way.
3656
3657 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3658
3659         * Register default ciphers and stuff when using the -S option
3660           in the client.  Affected file silc/silc.c.  Same also when
3661           creating new key pair with -C option.
3662
3663 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3664
3665         * Fixed the silc_verify_public_key client operation function to
3666           save the public keys differently.  The fingerprint is now 
3667           used as filename and not the hostname.  This way also the
3668           client keys are saved uniquely and not with hostnames.  The
3669           affected file is silc/client_ops.c.
3670
3671         * Trimmed the silc_hash_fingerprint function to remove extra
3672           whitespaces from the end of the fingerprint.  The affected
3673           file is lib/silccrypt/silchash.c.
3674
3675         * Updated TODO.
3676
3677         * Added silc_cipher_register_default function to register all
3678           default ciphers.  It can be used when configuration files
3679           does not exist and the application does not want any specific
3680           ciphers in any specific order.
3681
3682           The SilcDList is now used as silc_cipher_list dynamically
3683           allocated cipher list.  Removed the static list all together
3684           and now all ciphers must be allocated to the dynamic list.
3685           The silc_cipher_alloc routine was changed to check only the
3686           dynamic list.
3687
3688           All silc_cipher_* routines that used to return int returns
3689           now bool.
3690
3691           The affected files lib/silccrypt/silccrypt.[ch].
3692
3693         * The same thing was done to silc_hash_* as for silc_cipher_*
3694           routines.  Affected files lib/silccrypt/silchash.[ch].
3695
3696         * The same thing was done to silc_pkcs_* as for silc_cipher_*
3697           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
3698           Added also silc_pkcs_[un]register[_default] functions.
3699           Removed the data_context from the PKCS API.
3700
3701         * Added silc_hmac_register_default function to register default
3702           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
3703           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
3704           to unregister all hmacs at once.
3705
3706         * Register the default ciphers, hash functions, PKCSs and HMACs
3707           if client's configuration file does not exist.  The affected
3708           file silc/silc.c.
3709
3710         * The client did not load the hash functions from the SIM
3711           modules at all.  Added support for this.  Affected file is
3712           silc/clientconfig.c.
3713
3714         * When decoding public key with silc_pkcs_public_key_decode, check
3715           the supported algorithm only if PKCS are registered.  Affected
3716           file lib/silccrypt/silcpkcs.c.  The same was done with the
3717           silc_pkcs_private_key_decode.
3718
3719         * Fixed the SILC List routines to keep the list always in order.
3720           It used to change the list's order when traversing the list but
3721           not it preserves the order.  Affected file lib/trq/silclist.h.
3722
3723 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3724
3725         * Added the client library to use the SilcSocketConnection's
3726           reference counter (by silc_socket_dup) to prevent the bug that
3727           the socket object may be freed underneath async operation.
3728
3729         * The name resolv library checking fixes in the configure.in.pre.
3730           The patch by salo.
3731
3732         * Created new version of the protocol drafts for future
3733           development. The -03 drafts are the ones that will be changed
3734           in the trunk now and the -02 will remain as they are.
3735
3736         * Send list of CUMODE notifys to the router when announcing
3737           the channel users to the router.  Affected file silcd/server.c.
3738           If the router receiving channel founder CUMODE for a channel
3739           that already has channel founder it will send CUMODE notify
3740           to the sender to remove the channel founder rights from the
3741           announced client.  Affected file silcd/packet_receive.c.
3742
3743         * The CUMODE notify may now use Server ID as well as the entity
3744           who changes the mode.  Updated protocool specs.
3745
3746         * Updated INSTALL and README files.
3747
3748 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3749
3750         * New web pages in the http://silc.pspt.fi.  The pages was
3751           designed by salo.
3752
3753         * Updated CREDITS.
3754
3755 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3756
3757         * Implemented the [DenyConnectin] config section in the server.
3758           Added silc_server_config_denied_conn to check whether incoming
3759           connection is denied.  Affected file silcd/serverconfig.[ch].
3760
3761         * Do not check the ports when checking the incoming configuration
3762           data if the port is 0, meaning any.  Affected file is
3763           silcd/serverconfig.c.
3764
3765 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3766
3767         * Fixed buffer overflow in silc_string_compare in the file
3768           lib/silcutil/silcutil.c.
3769
3770         * Fixed double free in silc_server_command_leave in the file
3771           silcd/command.c.
3772
3773 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3774
3775         * Fixed the version checking in the server.  Affected file is
3776           silcd/protocol.c.
3777
3778 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3779
3780         * Fixed the configuration data fetching when accepting new
3781           connections in the server.  Affected file silcd/server.c.
3782
3783 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3784
3785         * Added `sender_entry' argument to the function
3786           silc_server_packet_relay_to_channel so that we can check
3787           whether some destination actually belongs to the same route
3788           the sender belongs (ie, we must not resend the packet to the
3789           sender).  Affected file silcd/packet_send.[ch].
3790
3791         * Added `servername' field to the SilcClientEntry in the server
3792           to hold the name of the server where client is from.  Affected
3793           file is silcd/idlist.h.
3794
3795 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3796
3797         * Moved the channel message encrypting in the router betwen
3798           router connections from silc_server_channel_message to the
3799           silc_server_packet_relay_to_channel since we want to check
3800           whether we have anybody channel before encrypting anything.
3801           Affected files silcd/packet_[receive/send].c.
3802
3803 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3804
3805         * Fixed the [AdminConnection] server config section to support
3806           multiple entries.  Affected file silcd/serverconfig.c.
3807
3808         * Added support into the server to check the validity of the
3809           incoming connection before executing any KE or authentication
3810           protocols.
3811
3812         * The connection configuration is now saved to the KE and 
3813           connection auth protocol contexts and not fetched anymore in 
3814           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
3815
3816         * The local hosts listenning address and port is also resolved
3817           now when starting the server.  We want to have the socket object
3818           to include the real address and port for the listener.  Added
3819           new function silc_net_check_local_by_sock into the files
3820           lib/silcutil/silcnet.[ch].
3821
3822         * Fixed a broadcast bug in server -> do not broadcast if we
3823           are standalone.
3824
3825         * Fixed a routing bug.  Do not route broadcast packets ever.
3826           Broadcast packets must be processed always and not routed since
3827           they may be destined to some other host than yourself and thus
3828           would get routed without no good reason.  Affected file is
3829           silcd/server.c.
3830
3831         * Added function silc_server_config_is_primary_route to check
3832           whether primary router connection has been configured (a router
3833           configuration that we are initiating).  If there is not, we 
3834           will assume that there is only two routers in the SILC network
3835           and we will use the incoming router connection as our primary
3836           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
3837
3838         * Changed the order of the broadcasting.  Broadcast _after_ the
3839           packet has been processed not before.  Affected file is
3840           silcd/server.c.
3841
3842         * Fixed a [ClientConnection] parsing bug.  The port was never
3843           parsed correctly thus resulting to port 0.  Affected file
3844           silcd/serverconfig.c.
3845
3846         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
3847           argument and did not set the broadcast packet flag.  Affected
3848           file silcd/packet_send.c.  Fixed same bug in the function
3849           silc_server_send_notify as well.
3850
3851         * If we receive NEW_ID packet for our own ID in the server, ignore
3852           the packet.
3853
3854 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3855
3856         * Updated TODO.
3857
3858         * Removed the nickname from the Private Message Payload.
3859           Updated the code and the protocol specs.
3860
3861         * Updated protocol specs for submitting to the IETF.
3862
3863         * Tweaked the Random Number Generator a bit.  Affected file
3864           lib/silccrypt/silcrng.c.  Exported a new function
3865           silc_rng_[global]_add_noise which can be used to add more
3866           noise to the RNG.
3867
3868 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3869
3870         * Do not parse packets with different timeout when protocol
3871           is active -> may cause problem with rekey.  Affected file
3872           silcd/server.c.
3873
3874         * When server receives signoff notify it must not create
3875           new channel key if the client is on any channels since the
3876           sender of the signoff notify will create it.
3877
3878 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3879
3880         * Added printing of error messages during SKE protocol from the
3881           failure packet sent by server during SKE.  Affected file
3882           silc/client_ops.c.
3883
3884         * Removed the client's failure_callback handling with timeout
3885           and handle it immediately when received.
3886
3887         * The SKE library returned wrong type in SUCCESS and FAILURE 
3888           packets.  They must be 32 bit MSB not 16 bit MSB.
3889
3890 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3891
3892         * Ok, rewrote the logic of the re-key and now it seems to work.
3893           I tested it on high traffic with frequent re-keys without
3894           problems.  Added hmac_receive (and renamed hmac to hmac_send)
3895           in SilcClientConnection in lib/silcclient/client.h and
3896           in SilcIDListData in silcd/idlist.h.  Also, removed the
3897           SilcPacketParserContext's cipher and hmac fields as they are
3898           not needed anymore and actually caused some problems when
3899           the ciphers and hmac's changed underneath the packet parser.
3900
3901 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3902
3903         * If re-key protocol is active then process the incoming packets
3904           synchronously since we must assure that icoming packets encrypted
3905           with the old key is processed before the new keys is set to
3906           use.  This is true other packets than for REKEY packets.
3907           Affected file silcd/server.c.  The same was done to client library
3908           as well, affected file lib/silcclient/client.c.
3909
3910 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3911
3912         * Fixed bug in client and server to accept the force send if
3913           the packet is send from silc_[server/client]_packet_process
3914           function.  Otherwise the packets are never delivered, oops.
3915
3916 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3917
3918         * Disable force sending of packets when REKEY protocol is active.
3919           We must assure that no packet is sent directly when rekey is
3920           performed.  All packets must be sent through packet queue.
3921           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
3922           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
3923           function is silc_[server/client]_packet_send_real to check
3924           the situation.
3925
3926         * Replaced the SIM paths from example config files to 
3927           /usr/local/modules.  Also, make install creates now
3928           /usr/local/silc/logs directory to hold all the SILC server
3929           logs.
3930
3931 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3932
3933         * Made the configure.in.pre work on Solaris.  Patch by salo.
3934
3935         * Made all ciphers compatible with non-x86 machines.  Defined
3936           CBC mode macros into lib/silccrypt/ciphers_def.h.
3937
3938 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3939
3940         * Fixed the make install.
3941
3942 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3943
3944         * When MAC computation fails the silc_packet_decrypt returned 0
3945           even though it was supposed to return -1.  Fixed this.  The
3946           affected file is lib/silccore/silcpacket.c.
3947
3948         * Do not replace the config files in /etc/silc (in make install)
3949           if they already exist.  Affected file ./Makefile.am.
3950
3951         * Do not send re-key packets immediately but through packet queue.
3952           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
3953
3954         * Changed silc_net_check_host_by_sock to return FALSE if the
3955           IP/DNS could not be resolved.  Though, it returns the IP address
3956           now even if it could not resolve it (but returns also FALSE).
3957           Affected file lib/silcutil/silcnet.[ch].
3958
3959 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3960
3961         * Added silc_pkcs_decode_identifier to decode the public key's
3962           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
3963           Added also silc_pkcs_free_identifier.  Added also new context
3964           SilcPublicKeyIdentifier.
3965
3966         * Added -S option to the silc client.  It is used to dump the
3967           contents of the specified public key file.
3968
3969         * Changed the PKCS api to return the public key length when
3970           setting the public key.
3971
3972         * Fixed a fatal bug in the public and private key file loading.
3973           Affected file lib/silccrypt/silcpkcs.c.
3974
3975         * Execute the packet parsing for client with zero (0) timeout
3976           if the protocol is active.  Affected file silcd/server.c.
3977
3978 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3979
3980         * Made the key generation options to the silcd program.  Added
3981           -C option, equivalent to client's option.
3982
3983         * Added new [ServerKeys] config section to the server.  It
3984           configures the server's public and private key.
3985
3986         * Defined generic Public Key Payload into the protocol
3987           specification to send specific type of public keys and
3988           certificates.
3989
3990         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
3991           public key or certificate.
3992
3993         * Implemented the GETKEY command to the server and to the
3994           client library and on user interface.
3995
3996 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
3997
3998         * Made preliminary `make install' work.
3999
4000 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4001
4002         * Added SilcServerRekey context into silcd/idlist.h.
4003
4004         * Added the PFS support as defined in the specification to the
4005           SKE protocol.  Affected files lib/silcske/*.c.
4006
4007         * Added `ske_group' field to the SilcServerRekey context to hold
4008           the number of the SKE group that is used with PFS in re-key.
4009           Affected file silcd/idlist.h.
4010
4011         * Added PFS re-key support to the server.  Affected file is
4012           silcd/protocol.c.
4013
4014         * Added silc_protocol_cancel to cancel execution of the next
4015           state of the protocol.  Affected file is
4016           lib/silccore/silcprotocol.[ch].
4017
4018         * Added the re-key support with and without PFS to the client
4019           library.  Re-key is performed once in an hour, by default.
4020
4021           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
4022           Added silc_client_rekey_callback and silc_client_rekey_final.
4023           Affected files are lib/silcclient/protocol.[ch] and
4024           lib/silcclient/client.[ch].
4025
4026         * Removed the `hmac_key' and `hmac_key_len' fields from the
4027           SilcClientConnection structure; not needed.  Affected file is
4028           lib/silcclient/client.h.
4029
4030         * Updated TODO.
4031
4032 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4033
4034         * Do not ask whether user wants to use the negotiated private key
4035           for private messages, just use it.  Affected file is 
4036           silc/local_command.c.
4037
4038         * Added `send_enc_key' and `enc_key_len' fields to the 
4039           SilcIDListData structure since they are needed in the re-key
4040           phase.  Affected file is silcd/idlist.[ch].
4041
4042         * Implemented the simple re-key protocol into the server.
4043           Affected files silcd/server.c and silcd/protocol.[ch].  The
4044           re-key will be performed once in an hour, by default.
4045
4046           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
4047           Added silc_server_rekey, silc_server_rekey_callback and
4048           silc_server_rekey_final.
4049
4050         * Removed Tunneled flag from the protocol.  Updated the code
4051           and the specifications.
4052
4053         * Adde `pfs' field to the SilcIDListData to indicate whether
4054           the PFS is to be performed in the re-key.  Affected file is
4055           silcd/idlist.h.
4056
4057 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4058
4059         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
4060           int64 of at least the xintXX size.  If void * is less that 4
4061           bytes uint32 * will be used.  Defined bool as boolean.
4062
4063         * Changed _ALL_ unsigned long and unsigned int to uint32, 
4064           unsgined short to uint16 in the source tree.
4065
4066         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
4067           not handle clients that has entry->data.registered == FALSE.
4068           They are not in the network anymore.  Affected file is
4069           silcd/server.c.
4070
4071 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4072
4073         * Implemented the sending of the SERVER_SIGNOFF notify in the
4074           server.  Affected file is silcd/server.c.
4075
4076         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
4077           Added also silc_notify_payload_encode_args into the
4078           lib/silccore/silcnotify.[ch].
4079
4080         * Implemented ther SERVER_SIGNOFF notify handling in the server.
4081           Affected file silcd/packet_receive.c.
4082
4083         * Implemented the SERVER_SIGNOFF notify handling in the client
4084           library.  Affected file lib/silcclient/client_notify.c.  Also,
4085           implemnted the printing of the SERVER_SIGNOFF info to the
4086           application.  Affected file silc/client_ops.c.
4087
4088         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
4089           if the deleting was successful.  Affected file silcd/idlist.[ch].
4090
4091         * Added support for public key authentication in the connection
4092           authentication protocol in the client library.  Affected file
4093           lib/silcclient/protocol.c.
4094
4095         * Changed the server's silc_idlist_get_clients_by_* interface
4096           to support already allocated array so that new entries may be
4097           added to pre-allocated array.  Affected file silcd/idlist.[ch].
4098           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
4099           and command replies.
4100
4101         * All command reply functions in the server now calls the 
4102           pending command callback even if error occured.  This way the
4103           error will be delivered to the client as well.  Affected files
4104           silcd/command.c and silcd/command_reply.c.
4105
4106         * Fixed INFO command to return local server's info if no server
4107           was provided.  Affected file lib/silcclient/command.c.
4108
4109         * Removed RESTART command for good.  Updated the code and the
4110           protocol specs.
4111
4112         * Rewrote parts of the task system.  It is a bit simpler now.
4113           Removed unsued task priorities. The affected files are
4114           lib/silcutil/silctask.[ch].
4115
4116 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4117
4118         * Moved the USERS printing from the library to the application.
4119           Affected files lib/silcclient/command.c and silc/client_ops.c.
4120
4121 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4122
4123         * Updated TODO.
4124
4125         * Added channel key re-key support.  The re-key is perfomed
4126           only by the router and is done once in an hour.  Added `rekey'
4127           field to the SilcChannelEntry in the server.  Affected files
4128           silcd/server.c and silcd/idlist.h.
4129
4130         * Added silc_task_unregister_by_context into the file
4131           lib/silcutil/silctask.[ch].
4132
4133 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4134
4135         * Added SILC_UMODE_GONE mode to indicate when the client is not
4136           present in the SILC network.  Added also support to the local
4137           command AWAY that will set this mode.  Added support of showing
4138           "xxx is gone" in WHOIS command.  The USERS command shows the
4139           gone status as well.
4140
4141         * Fixed setting server and router operator privileges in the
4142           server's UMODE command.  Affected file silcd/command.c.
4143
4144         * Merged the SKE KE1 and KE2 payloads into one payload.  The
4145           new KE payload is equivalent to the old KE2 payload.
4146
4147           Cleaned up the SKE Start Payload parsing.  It now uses the
4148           simple buffer unformatting to do the parsing.  A lot faster
4149           now.
4150
4151           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
4152           to the SKE that is used to indicate whether both of the SKE
4153           parties should perform authentication.  By default only the
4154           responder performs authentication.  By setting this flag also
4155           the initiator must do authentication.  By default it is unset
4156           since in normal SKE case, client to server connection, only
4157           the responder should do authentication.  When doing SKE between
4158           two clients both should perform authentication.  Updated the
4159           code and the protocol specs.
4160
4161         * A little fix to IDENTIFY command in the server.  Search the
4162           client first by hash not nickname.  Affected file is 
4163           silcd/command.c.
4164
4165         * Fixed the silc_client_close_connection to support closing
4166           the client to client connections wihtout deleting too much
4167           data.  Affected file lib/silcclient/client.c.
4168
4169         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
4170           are received if protocol used to be active but is not anymore
4171           the application would crash due to NULL pointer dereference.
4172           Affected files silcd/server.c and lib/silcclient/client.c.
4173
4174         * Added `hash' field to the SilcClientConnection to include
4175           the hash function negotiated in the SKE protocol.
4176
4177         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
4178           to set the channel founder authentication data.  A client can
4179           claim the founder rights later by providing the authentication
4180           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
4181           This way the channel founder can regain the channel founder
4182           privileges even it is left the channel.  This works only on
4183           local server and the client must be connected to the same
4184           server to be able to regain the founder rights.  Updated the
4185           protocol specs accordingly.
4186
4187           Added support to the CMODE command in the client to set the
4188           founder auth data.  Read the README to see how to set it.
4189
4190           Added support to the CUMODE command to claim the founder
4191           rights.  Read the README to see how to do it.
4192
4193           Added support for the founder authentication to the Channel
4194           Entry in the server.  Affected file silcd/idlist.h.
4195
4196           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
4197           server's CMODE command.  Affected file silcd/command.c.
4198
4199         * Added the following new functions into lib/silccore/silcauth.[ch]:
4200           silc_auth_get_method and silc_auth_get_data.    
4201
4202         * The server now saves the remote hosts public key to the
4203           SilcIDListData pointer.  Affected file silcd/protocol.c.
4204
4205         * The normal server now does not remove the channel entry from
4206           the cache if the founder authentication data is set.  It used
4207           to remove it if the founder was the last one on the channel on 
4208           the server and left the channel.  The auth data is saved and
4209           if the channel is re-joined later the old entry is used with
4210           the old auth data.  Affected files silcd/command_reply.c and
4211           silcd/server.c.
4212
4213         * Removed the `pkcs' field from the SilcIDListData structure
4214           in the server; it is not used.  Affected file silcd/idlist.h.
4215
4216 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4217
4218         * Fixed packet processing on slow links.  Partial packets were
4219           never re-processed because the incoming data buffer was cleared
4220           by the application.  Application must not directly clear the
4221           sock->inbuf, the packet processing routines handle it.  Fixed
4222           this in client library and in server.
4223
4224 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4225
4226         * Fixed the WHOIS and IDENTIFY send reply function to really
4227           check whether to send list or just one entry.  Affected file
4228           silcd/command.c.
4229
4230         * Cleaned up the LEAVE command's channel key distribution.  The
4231           affected file silcd/command.c.
4232
4233         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
4234           can enforce the channel mode as well.  In that case the ID
4235           includes the ID of the server.  The code now enforces the
4236           mode change if the router have different mode than the server.
4237
4238         * The notify client operation with CMODE_CHANGE notify can now
4239           return NULL client_entry pointer if the CMODE was not changed
4240           by client.  Application must check for this.
4241
4242         * Added <Server ID> argument to INFO command to support server
4243           info fetching by Server ID.
4244
4245         * Added silc_server_announce_get_channel_users to get assembled
4246           packets of channel users of the specified channel.  Affected
4247           file silcd/server.[ch].
4248
4249         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
4250           was freed underneath the ID Cache.
4251
4252         * Re-announce clients when the server received CHANNEL_CHANGE
4253           notify from the router.  Affected file silcd/packet_send.c.
4254
4255 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4256
4257         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
4258           crashed since it did not handle the fact that there is no cipher
4259           called "3" and didn't check the error condition.  Now fixed.
4260
4261         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
4262           flag.  It can be used to send message requests.
4263
4264 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4265
4266         * Implemented the RESTART command in the client.
4267
4268         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
4269           notice type messages.  Added notice printing to the user
4270           interface.
4271
4272         * The channel keys are not re-generated if the channel's mode
4273           is PRIVKEY, ie private key on the channel exists.  Affected
4274           files silcd/server.c and silcd/command.c.
4275
4276         * Fixed a little bug in channel message delivery when channel
4277           private keys are set in the server.  Affected file is
4278           silcd/packet_send.c.
4279
4280         * Changed the setting on channel->on_channel = TRUE from the
4281           silc_client_save_channel_key to the JOIN command reply.  The
4282           key payload is not received if the private channel key is set.
4283           Affected file lib/silcclient/command_reply.c and the
4284           lib/silcclient/client_channel.c.
4285
4286         * When the CMODE_CHANGE notify is sent and the channel private
4287           key mode is removed the channel key must be re-generated in
4288           other cells as well.  Added this support for the router in the
4289           silcd/packet_receive.c.
4290
4291         * Added new local command NOTICE to send notice message on
4292           channel.  Affected file silc/local_command.[ch].
4293
4294 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4295
4296         * Added new local command ME to the client.  It is used to send
4297           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
4298           some action.  Affected file silc/local_command.[ch].
4299
4300         * Changed channel_message and private_message client operations 
4301           to deliver the message flags to the application.  Added also
4302           the `flags' arguments to the silc_client_send_channel_message
4303           and silc_client_send_private_message functions.  Affected file
4304           silcapi.h.
4305
4306 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4307
4308         * Redefined the Private Message Payload to support private message
4309           keys and to support the new private message flags.  Updated
4310           the protocol specs.  Flags makes it possible to have for example
4311           CTCP style messages.
4312
4313         * Added new type SilcPrivateMessagePayload and defined an API
4314           for it in the lib/silcclient/silcprivate.[ch].
4315
4316         * Tested private message private keys successfully.  Tested the
4317           private message key set, unset and list commands with the new
4318           KEY command.
4319
4320         * Redefined the Channel Message Payload to include the channel
4321           message flags (equal with private message flags) to support
4322           for example CTCP style messages.
4323
4324         * Defined some of the message (for channel and private message)
4325           flags.  Updated the protocol specs and added the flags to the
4326           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
4327
4328 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4329
4330         * Added SilcKeyAgreementStatus type to the key agreement routines
4331           to indicate the current status and error if one occured.
4332           The status types are defined in the lib/silcclient/silcapi.h.
4333
4334         * Added new local command KEY that is used to set and unset private
4335           keys for channels, set and unset private keys for private messages
4336           with remote clients and to send key agreement requests and
4337           negotiate the key agreement protocol with remote client.  The
4338           key agreement is supported only to negotiate private message keys,
4339           it currently cannot be used to negotiate private keys for channels,
4340           as it is not convenient for that purpose.
4341
4342         * Fixed a minor pending callback setting bug in the function
4343           silc_client_get_client_by_id_resolve, now the function works.
4344           Affected file lib/silcclient/idlist.c.
4345
4346         * Added function silc_net_get_local_port to get local bound
4347           port by socket.  Added to lib/silcutil/silcnet.[ch].
4348
4349         * Added `sockets' and `sockets_count' fields to the SilcClient
4350           object.  They hold the sockets of the listenning sockets in
4351           the client.  Listenning sockets may be for example the key 
4352           agreement server.  Affected file lib/silcclient/client.[ch].
4353           Added functions the silc_client_add_socket and the
4354           silc_client_del_socket.  They are exported to the application
4355           as well.
4356
4357         * Added ~./silc/clientkeys to support other client's public keys.
4358
4359         * Renamed verify_server_key client operation to verify_public_key
4360           and added one argument to indicate the type of the connection
4361           (server, client etc.).
4362
4363 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4364
4365         * Added silc_server_connection_auth_request to handle the
4366           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
4367           silcd/packet_receive.[ch].
4368
4369         * Added silc_server_send_connection_auth_request into the
4370           silcd/packet_send.c to send the connection auth request packet.
4371
4372         * Cleaned up the silcd/protocol.c a bit and fixed some memory
4373           leaks.
4374
4375         * Fixed the public key authentication in responder side in the
4376           server.  The `auth_data' pointer includes the SilcPublicKey
4377           not the path to the public key.  Affected file silcd/protocol.c.
4378
4379         * Implemented the public key authentication in the initiator side
4380           in the server.  Affected file silcd/protocol.c.
4381
4382         * Removed the [RedirectClient] config section from the server
4383           configuration.  Is not needed and I don't want to implement it.
4384
4385 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4386
4387         * Cleaned up the CMODE command in the server.  It now works
4388           correctly and supports all the modes defined in the protocol.
4389           Affected file is silcd/command.c.
4390
4391         * Added `hmac_name' field to the SilcChannelEntry in the server
4392           to hold the default HMAC of the channel.  It can be set when
4393           creating the channel (with JOIN command).  Affected files
4394           silcd/idlist.[ch].
4395
4396         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
4397           type to indicate the change of the current cipher and hmac
4398           on the channel.  Client can safely ignore the <cipher> argument
4399           (if it chooses to do so) since the CHANNEL_KEY packet will 
4400           force the channel key change anyway.  The <hmac> argument is
4401           important since the client is responsible of setting the new
4402           HMAC and the hmac key into use.
4403
4404         * Fixed the CMODE command in the client library as well.
4405
4406         * Tested CMODE command in router environment successfully.
4407
4408 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4409
4410         * Show the version of the remote client (or server) when connecting
4411           to the server.  It is logged to the log file.  Affected file
4412           is silcd/protocol.c.
4413
4414         * Fixed the KILLED notify handling in the client library.  The
4415           client must be removed from all channels when receiving the
4416           KILLED notify.
4417
4418           Also, do not remove the client entry when giving the KILL 
4419           command but when the KILLED notify is received.
4420
4421         * Removed silc_idlist_find_client_by_nickname from the server.
4422           Not needed anymore.  Affected files silcd/idlist.[ch].
4423
4424         * Implemented the CHANNEL_CHANGE notify type handling to the
4425           server.  Affected file silcd/server.c.
4426
4427         * Updated TODO.
4428
4429 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4430
4431         * Added silc_server_send_notify_invite to send the INVITE
4432           notify between routers.
4433
4434         * Implemented the INVITE command correctly to the server.
4435
4436         * Implemented the INVITE notify type handling in the server.
4437
4438         * Implemented the INVITE command to the client library and on the
4439           user interface.
4440
4441 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4442
4443         * Added function silc_server_get_client_resolve to find the
4444           client entry by ID from all ID lists and then resolve it
4445           (using WHOIS) if it cannot be found.  Affected file is
4446           silcd/server.[ch].
4447
4448 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4449
4450         * Implemented the BAN command to the client library.
4451
4452         * The JOIN command in the server now checks the invite list
4453           and the ban list.
4454
4455         * Changed the silc_command_reply_payload_encode_va and the
4456           silc_command_payload_encode_va to support that if argument is
4457           NULL it ignores and checks the next argument.  Affected file
4458           lib/silccore/silccommand.c.
4459
4460         * Added silc_server_send_notify_ban to send the BAN notify
4461           type between routers.
4462
4463         * Chaned the silc_notify_payload_encode to support that if 
4464           argument is NULL it ignores and checks the next argument.
4465           Affected file lib/silccore/silcnotify.c.
4466
4467         * Tested ban lists in router environment successfully.
4468
4469 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4470
4471         * Implemented BAN command to the server, in silcd/command.[ch].
4472
4473         * Removed the BAN and INVITE_LIST modes from the CMODE command
4474           in the server code.
4475
4476         * Added function silc_string_match to regex match two strings.
4477           Affected files lib/silcutil/silcutil.[ch].
4478
4479 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4480
4481         * Redefined parts of the SilcChannelEntry in the server to support
4482           the new ban and invite lists.
4483
4484 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4485
4486         * Redefined the INVITE command.  The same command can be used to
4487           invite individuals to the channel but also to manage the invite
4488           list of the channel (to add to and remove from the invite list).
4489           Updated the protocol specs.
4490
4491         * Added new command SILC_COMMAND_BAN that can be used to manage
4492           the ban list of the channel.  Updated the protocol specs.
4493
4494         * Removed the channel modes: the SILC_CMODE_BAN and the 
4495           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
4496           in the CMODE command.  The equivalent features are now available
4497           using INVITE and BAN commands.  Updated the protocol specs.
4498
4499         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
4500           in the network about change in the current ban list.  The notify
4501           type is not used by the client.
4502
4503         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to 
4504           support the invite lists.
4505
4506 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4507
4508         * Added new function silc_string_regexify that converts string
4509           including wildcard characters into regex string that can
4510           be used by the GNU regex library.  Added into the file
4511           lib/silcutil/silcutil.[ch].
4512
4513           Added silc_string_regex_combine to combine to regex strings
4514           into one so that they can be used as one regex string by
4515           the GNU regex library.  Added into the file
4516           lib/silcutil/silcutil.[ch].
4517
4518           Added silc_string_regex_match to match two strings.  It returns
4519           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
4520
4521 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4522
4523         * Imported GNU regex to the soruce tree into lib/contrib.
4524           Fixed some compiler warning from the regex.c.
4525
4526 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4527
4528         * Fixed MOTD command in the server to work in router environment.
4529
4530         * Fixed the MOTD command in the client library to support
4531           the server argument in the command.
4532
4533         * Added `nickname_len' argument to the silc_idlist_add_client
4534           in the server, as the `nickname' argument may be binary data
4535           (it may be hash).
4536
4537         * Added silc_idlist_get_channels to return all channels from
4538           the ID list.
4539
4540         * Implemented LIST command to the server.  Affected file is
4541           silcd/command.c.
4542
4543         * Implemented the LIST command to the client library and on the
4544           user interface.
4545
4546         * Added [<user count>] argument to the LIST command reply.
4547           With private channels the user count is not shown.
4548
4549         * Updated TODO and README.
4550
4551 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4552
4553         * The client entry's data.registered must be TRUE even with
4554           global client entry on global client list.  The data.registered
4555           is used to check whether the client is anymore in the network,
4556           for example with WHOWAS command so it must be valid.
4557
4558         * Fixed the WHOWAS command in the server.  It now actually works
4559           in router environment.  Added function into silcd/command_reply.c
4560           silc_server_command_reply_whowas_save.
4561
4562         * Added silc_idlist_purge function to the silcd/idlist.c
4563           to periodically purge the ID Cache.
4564
4565         * Fixed INFO command in the server.  It works now in router
4566           environment.  Added <server name> argument to the INFO command
4567           reply.  Updated the protocol specs.
4568
4569         * Fixed minor bug in silc_idcache_purge to not purge if the
4570           expire value is zero.
4571
4572         * Fixed various bugs in WHOIS and IDENTIFY command handling as
4573           they were buggy because of the WHOWAS information.
4574
4575         * Fixed local command MSG to handle the async resolving of 
4576           the remote client properly.  It used to fail the first MSG.
4577           Affected file silc/local_command.c.
4578
4579         * Added `data_len' field to SilcIDCache context.
4580
4581 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4582
4583         * Update TODO.  Todo in commands in the server.
4584
4585 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4586
4587         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
4588           used by routers as broadcast packet to inform other routers
4589           about the changed user mode.
4590
4591           Implemented the notify handling in the server.  Affected file is
4592           silcd/packet_receive.c.  Added the function 
4593           silc_server_send_notify_umode to the silcd/packet_send.[ch].
4594
4595         * Added new generic Channel Payload and deprecated the New Channel
4596           Payload.  The New Channel Payload is now the generic Channel
4597           Payload.
4598
4599         * Added new argument `mode' to the silc_server_send_new_channel
4600           as it is required in the Channel Payload now.
4601
4602         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
4603           and created a new and real SilChannelPayload to represent the
4604           new generic Channel Payload.  Implemented the encode/decode
4605           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
4606
4607         * Added silc_server_get_client_channel_list to return the list
4608           of channels the client has joined for WHOIS command reply.
4609           Affected file silcd/server.[ch].
4610
4611         * Implemented the channel list sending in the WHOIS command reply
4612           in server and in the client.
4613
4614           Implemented the channel list displaying on the user interface
4615           as well.  Affected file silc/client_ops.c.
4616
4617         * Added silc_channel_payload_parse_list to parse list of Channel
4618           Payloads.  It returns SilcDList list of SilcChannelPayloads.
4619           Client for example can use this function to parse the list of
4620           channels it receives in the WHOIS command reply.  The caller
4621           must free the list by calling silc_channel_payload_list_free.
4622           Affected files lib/silccore/silcchannel.[ch].
4623
4624 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4625
4626         * Added one new argument <user mode> to the WHOIS command reply
4627           to return the mode of the user in SILC.  Updated the protocol
4628           specs.
4629
4630           Implemented it to the server and client.
4631
4632 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4633
4634         * Fixed the mode printing on the user interface on joining.
4635           Affected file silc/client_ops.c.
4636
4637         * Implemented the UMODE command and user modes in general to the
4638           client library and to the user interface.
4639
4640         * Implemented the UMODE command to the server.
4641
4642         * The server now sends UNKNOWN_COMMAND error status if client sends
4643           unknown command.  Affected file silcd/command.c.
4644
4645         * All server commands now handle the command identifier the right
4646           way when sending the command reply to the client.  The client can
4647           use to identify the command replies with the identifier.
4648
4649 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4650
4651         * Added silc_server_get_client_route to resolve the route to
4652           the client indicated by the client ID.  Affected file is
4653           silcd/server.[ch].
4654
4655         * Added silc_server_relay_packet as general function to relay
4656           packet to arbitrary destination.  This deprecates functions
4657           like _send_private_message_key, _relay_notify etc.  Affected
4658           file is silcd/packet_send.[ch].
4659
4660           Removed silc_server_send_key_agreement, 
4661           silc_server_send_private_message_key and
4662           silc_server_packet_relay_notify functions from the file
4663           silcd/packet_send.[ch].
4664
4665         * Updated TODO.
4666
4667         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
4668           server.  Affected file silcd/packet_receive.[ch].
4669
4670         * Implemented the KILL command to the client.  Implemented the
4671           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
4672           Affected files lib/silcclient/command[_reply].c and
4673           lib/silcclient/client_notify.c.  Implemented the KILL notify
4674           printing in the user inteface.
4675
4676         * Fixed a lot silc_parse_nick memory leaks from the client
4677           library in the file lib/silcclient/command.c.
4678
4679         * Changed the silc_server_send_notify_on_channels's `sender'
4680           argument from SilcSocketConnection to SilcClientEntry to 
4681           check the sender as entry and not as connection object and not
4682           to send to the client provided as argument.  The affected file
4683           is silcd/packet_send.[ch].
4684
4685         * The notify packets that are destined directly to the client used
4686           to not to be processed by the server.  Now changed that and the
4687           server processes all notify packets.  After relaying the packet
4688           to the client the notify packet is processed in the server.
4689
4690         * The silc_server_free_client_data now checks whether there is
4691           pending outgoing traffic for the client and purges the data to
4692           the network before removing the client entry.
4693
4694 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4695
4696         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
4697           an client is killed from the SILC Network.  Updated the protocol
4698           specs accordingly.
4699
4700           Added new function silc_server_send_notify_killed to the
4701           silcd/packet_send.[ch].
4702
4703         * Added function silc_server_packet_relay_notify to relay notify
4704           packets that are destined directly to a client.  In this case
4705           the server does not process the notify packets but merely relays
4706           it to the client.  Affected file silcd/packet_send.[ch].
4707
4708           Added also silc_server_packet_process_relay_notify to check
4709           whereto relay the notify.  Affected file is 
4710           silcd/packet_receive.[ch].
4711
4712         * Implemented the KILL command to the server.
4713
4714         * Updated TODO.
4715
4716         * Added the backup schema desgined last fall to the protocol
4717           specs for everyone to see.  The specification is in the
4718           *-spec-xx.txt draft and the packet type definitions for the
4719           backup routers is in *-pp-xx.txt draft.  Thusly, added also
4720           new packet type SILC_PACKET_CELL_ROUTERS.
4721
4722         * A big security problem in the implementation discovered.  The
4723           signoff of an client did not cause new channel key generation
4724           which it of course should've done.  The channel keys must be
4725           always re-generated when client leaves (or signoffs) the channel.
4726           The silc_server_remove_from_channels funtion now handles
4727           the channel key re-generation.
4728
4729         * Added `sender' argument to the silc_server_send_notify_on_channels
4730           to not to send the client provided as argument.  Affected file
4731           silcd/packet_send.[ch].
4732
4733 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4734
4735         * Implemented OPER and SILCOPER commands into the server and
4736           the client library.
4737
4738         * Added silc_auth_verify and silc_auth_verify_data to verify
4739           the authentication directly from the authentication payload.
4740           It supports verifying both passphrase and public key based
4741           authentication.  Affected file lib/silccore/silcauth.[ch].
4742
4743         * Added `hash' field to the SilcIDListData structure.  It is the
4744           hash negotiated in the SKE protocol.  Affected file is
4745           silcd/idlist.[ch].
4746
4747         * Slight redesigning of the SilcAuthPayload handling routines.
4748           Do not send SilcPKCS but SilcPublicKey as argument.
4749
4750         * Implemented the public key authentication support to the
4751           serverconfig.  The public key is loaded from the provided path
4752           and saved as authentication data to void * pointer.  Thus,
4753           changed the unsigned char *auth_data to void *auth_data;
4754
4755         * Fixed SHUTDOWN command to send the reply before the server
4756           is shutdown. :)  Affected file silcd/command.c.
4757
4758         * Fixed fatal bug in CONNECT command.  The hostname was invalid
4759           memory and server crashed.  Affected file silcd/command.c.
4760
4761         * Fixed fatal bug in CLOSE command.  The server_entry became
4762           invalid but was referenced later in the command.  Affected file
4763           silcd/command.c.
4764
4765 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4766
4767         * Fixed fatal bug in failure packet handling.  Server ignored
4768           the failure and thus crashed when it came.
4769
4770         * Updated TODO.
4771
4772 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4773
4774         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
4775           that the command may be executed only once in (about) 2 seconds.
4776           The old SILC_CF_LAG flag is same but allows command bursts up
4777           to five before limiting.
4778
4779           Added the support for CF_LAG and CF_LAG_STRICT flags to the
4780           server code.  Various commands now includes the CF_LAG_STRICT
4781           flag to disallow any kind of miss-use of the command.
4782
4783         * Fixed the silc_buffer_unformat to not to allocate any data
4784           if the length of the data is zero.  It used to allocate the
4785           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
4786
4787 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4788
4789         * Changed the format of AdminConnection configuration section
4790           in the server.  Added username of the admin to the format.
4791           Affected files silcd/serverconfig.[ch].
4792
4793           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
4794           to return admin configuration data by host, username and/or
4795           nickname.
4796
4797 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4798
4799         * Implemented WHOWAS command to the server.  Added the functions:
4800
4801           silc_server_command_whowas_parse,
4802           silc_server_command_whowas_send_reply,
4803           silc_server_command_whowas_from_client and
4804           silc_server_command_whowas_from_server
4805
4806         * Added <Client ID> argument to the WHOWAS command reply.  Updated
4807           the protocol specs accordingly.
4808
4809         * Implemented WHOWAS command and command_reply to the client
4810           library.
4811
4812           Implemented the WHOWAS printing on the user interface.
4813
4814 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4815
4816         * Added new argument to the WHOWAS command reply, the real name.
4817           It is an optional argument.  Updated the protocol specs.
4818
4819         * Added SilcIDCacheDestructor callback that is registered when
4820           the SilcIDCache is allocated.  The callback is called when
4821           an cache entry in the ID Cache expires, or is purged from the
4822           cache.  Added into lib/silccore/idcache.[ch].
4823
4824           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
4825           to destruct the client entries when the cache entry expires.
4826           Other ID Cache's in server and in the client library ignores
4827           the destructor.
4828
4829         * If the ID Cache entry's `expire' field is zero then the entry
4830           never expires.  Added boolean `expire' argument to the
4831           silc_idcache_add function in the lib/silccore/idcache.[ch].
4832           If it is TRUE the default expiry value is used.
4833
4834         * Added silc_server_free_client_data_timeout that is registered
4835           when client disconnects.  By default for 5 minutes we preserve
4836           the client entry for history - for WHOWAS command.
4837
4838 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4839
4840         * Added support to the server to enforce that commands are not
4841           executed more than once in 2 seconds.  If server receives 
4842           commands from client more frequently, timeout is registered
4843           to process the commands.  Affected file silcd/command.c.
4844           Added new function silc_server_command_process_timeout.
4845
4846         * Changed NICK_NOTIFY handling in client library to check that
4847           if the client's nickname was changed, so there is no need to
4848           resolve anything from the server.
4849
4850         * Removed error printing from the WHOIS and IDENTIFY commands.
4851           If error occurs then it is ignored silently in the client library.
4852           The application, however, may map the received error to 
4853           human readable error string.  The application currently maps
4854           the NO_SUCH_NICKNAME error to string.
4855
4856         * Made the command status message public to the application.  Moved
4857           them from lib/silcclient/command_reply.c to 
4858           lib/silcclient/command_reply.h.  The application can map the
4859           received command status to the string with the
4860           silc_client_command_status_message function.
4861
4862         * Added check to the server to check that client's ID is same
4863           as the Source ID in the packet the client sent.  They must
4864           match.
4865
4866 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4867
4868         * Added dist-bzip hook to the Makefile.am to make bzip2
4869           compressed distributions.
4870
4871 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4872
4873         * Server now enforces the maximum length for the nickname and
4874           the channel as protocol specification dictates.  128 bytes for
4875           nickname and 256 bytes for channel name.
4876
4877         * Moved the WHOIS printing to the application.  The client libary
4878           does not print out the WHOIS information anymore, the application
4879           must do it.  Renamed silc_client_command_reply_whois_print to
4880           the silc_client_command_reply_whois_save.
4881
4882           The client's idle time is also sent to the application now, and
4883           the idle is shown on screen.
4884
4885         * Added silc_client_command_reply_identify_save to save the
4886           received IDENTIFY entries.
4887
4888         * Do not check for channel private keys in message sending and
4889           reception if the channel does not have the PRIVKEY mode set.
4890           Affected file lib/silclient/client_channel.c.
4891
4892 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4893
4894         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
4895           just surfaced after chaning the JOIN procedure.
4896
4897 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4898
4899         * Added silc_client_get_clients_by_list to get client entries
4900           from Client ID list, that is returned for example by JOIN
4901           and USERS command replies.  The application should use this
4902           function for example when JOIN command reply is received to
4903           resolve the clients already on the channel (library does not
4904           do that anymore as USERS command reply is not used in the JOIN
4905           procedure anymore).  Affected files lib/silcclient/silcapi.h and
4906           lib/silcclient/idlist.c.
4907
4908         * JOIN command reply and USERS command reply returns now SilcBuffer
4909           pointers instead of unsigned char pointers when returning
4910           the client list and mode list.
4911
4912         * Added <Client ID> argument to the JOIN command reply, mainly
4913           for the server to identify for which client the command was
4914           originally sent.  Updated protocol specs accordingly.
4915
4916         * Added SilcDlist private_key pointer to the SilcChannelEntry
4917           in the client to support the channel private keys.  Affected
4918           file is lib/silcclient/idlist.h.
4919
4920         * Added SilcChannelPrivateKey argument to the function
4921           silc_client_send_channel_message so that application can choose
4922           to use specific private ke if it wants to.  If it is not provided,
4923           the normal channel key is used, unless private keys are set. 
4924           In this case the first (key that was added first) is used 
4925           as the encryption key.
4926
4927         * Implemented the support for channel private key handling.
4928           Implemented the following functions:
4929
4930           silc_client_add_channel_private_key,
4931           silc_client_del_channel_private_keys,
4932           silc_client_del_channel_private_key,
4933           silc_client_list_channel_private_keys and
4934           silc_client_free_channel_private_keys
4935
4936           Affected file lib/silcclient/client_channel.c.
4937
4938         * Added the support for the private keys in the channel message
4939           sending and encryption and in the message reception and
4940           decryption.  Affected funtions are
4941           silc_client_send_channel_message and silc_client_channel_message.
4942
4943 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4944
4945         * Added SKE's key verify callback to the client library's
4946           KE protocol context. Affected files lib/silcclient/protocol.[ch].
4947
4948         * Removed the statement that server (or router) must send USERS
4949           command reply when joining to the channel so that the client
4950           knows who are on the channel.  Instead, the client list and 
4951           client's mode list is now sent in the JOIN command reply to the
4952           client who joined channel.  This is better solution.
4953
4954         * Added function silc_server_get_users_on_channel and function
4955           silc_server_save_users_on_channel to the silcd/server.[ch].
4956
4957         * Removed function silc_server_command_send_users from the
4958           silcd/command.c.
4959
4960         * Do not show topic on the client library anymore.  The topic is
4961           sent in the command reply notify to the application and the
4962           application must show the topic now.
4963
4964 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4965
4966         * Added client searching by nickname hash into the IDENTIFY and
4967           WHOIS commands in the server as they were clearly missing from
4968           them.  Affected file is silcd/command.c.
4969
4970         * Fixed a bug in private message receiving in the client library.
4971           The remote ID was freed and it wasn't supposed, now it is
4972           duplicated.
4973
4974 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
4975
4976         * Minor fix to the channel payload; allocate the data area, as it
4977           needs to be of specific length.
4978
4979         * If the key agreement port is zero then the operating
4980           system will define the bound port.  Affected files are
4981           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
4982
4983         * Added new function silc_channel_payload_decrypt into the file
4984           lib/silccore/silcchannel.[ch].
4985
4986         * Moved the channel message etc, check from silc_packet_decrypt
4987           to applications.  The library calls now a generic 
4988           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
4989           when the packet is either normal or special.  This was done to
4990           allow more wide range of checking that was not allowed when
4991           the code was in library.  Now applications can do virtually any
4992           checks to the packet and return to the library the decision how
4993           the packet should be processed.  Affected files are
4994           lib/silccore/silcpacket.[ch].
4995
4996           Added silc_server_packet_decrypt_check to the server and
4997           silc_client_packet_decrypt_check to the client library.
4998
4999         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
5000           to send with specified source and destination information.
5001
5002         * Channel message delivery between routers was broken after the
5003           channel key distribution was fixed earlier.  The channel key
5004           was used be to distributed to other routers as well which is not
5005           allowed by the protocol.  Now this is fixed and channel keys
5006           really are cell specific and the channel message delivery between
5007           routers comply with the protocol specification.
5008
5009         * Fixed various commands in server to check also the global list
5010           for the channel entry and not just the local list.  The affected
5011           file silcd/command.c.
5012
5013 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5014
5015         * Added assert()s to buffer formatting and unformatting routines
5016           to assert (if --enable-debug) when error occurs.  Affected
5017           file: lib/silcutil/silcbuffmt.c.
5018
5019         * Changed to auto-reconnect to check whether the remote host is
5020           router and register the re-connect timeout if it is.  It used 
5021           to check that whether we are normal server, but router must do
5022           auto-reconnect with another router as well.  Affected file
5023           silcd/server.c.
5024
5025         * Removed the [<key len>] option from CMODE command as the cipher
5026           name decides the key length, nowadays.  See the defined ciphers
5027           from the protocol specification.
5028
5029         * Added [<hmac>] option to the CMODE command to define the HMAC
5030           for the channel.  Added SILC_CMODE_HMAC channel mode.
5031
5032         * Added [<hmac>] option for the JOIN command so that user can
5033           select which HMAC is used to compute the MACs of the channel
5034           messages.
5035
5036         * Added Hmac field to the Channel Message Payload.  The integrity
5037           of plaintext channel messages are now protected by computing
5038           MAC of the message and attaching the MAC to the payload.  The
5039           MAC is encrypted.  Now, it is clear that this causes some
5040           overhead to the size of the packet but rationale for this is that
5041           now the receiver can verify whether the channel message decrypted
5042           correctly and also when private keys are set for the channel the
5043           receiver can decrypt the packet with several keys and check from
5044           the MAC which key decrypted the message correctly.
5045
5046         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
5047           lib/silccrypt/silccipher.[ch].
5048
5049         * Added silc_hash_len to return the digest length into the
5050           lib/silcrypt/silchash.[ch].
5051
5052         * Rewrote parts of Silc Channel Payload interface in the
5053           lib/silccore/silcchannel.[ch].  The encode function now also
5054           encrypts the packet and parse function decrypts it.
5055
5056 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5057
5058         * Fixed a minor formatting bug in the SKE's key material processing.
5059           It actually might have processed the keys wrong way resulting
5060           into wrong keys.
5061
5062         * Redefined the mandatory HMAC algorithms and added new algorithms.
5063           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
5064           and hmac-md5 truncated to 96 bits.  The mandatory is now 
5065           hmac-sha1-96.  Rest are optional (including the one that used
5066           to be mandatory).  Rationale for this is that the truncated HMAC
5067           length is sufficient from security point of view and can actually
5068           make the attack against the HMAC harder.  Also, the truncated
5069           HMAC causes less overhead to the packets.  See the RFC2104 for
5070           more information.
5071
5072         * Added new [hmac] configuration section.  The SKE used to use
5073           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
5074           is of course wrong.  The official names that must be proposed in
5075           the SKE are the ones defined in the protocol specification
5076           (hmac-sha1-96 for example).  The user can configure any hmac
5077           using any hash function configured in the [hash] section.  At
5078           least, the mandatory must be configured.
5079
5080           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
5081
5082         * Added HMAC list to the SKE proposal list.  It has now both
5083           hash algorithm list and HMAC list.  This makes the protocol
5084           incompatible with previous versions.  The SKE now seems to work
5085           the way it is supposed to work, for the first time actually.
5086
5087         * Defined plain Hash algorithms to the protocol specification.
5088           Added sha1 and md5.
5089
5090 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5091
5092         * Implemented support for key agreement packets into the server.
5093           Added functions silc_server_key_agreement and
5094           silc_server_send_key_agreement.  Other than these functions,
5095           server has nothing to do with this packet.
5096
5097         * Added support for private message key packets into the server.
5098           Added functions silc_server_private_message_key and
5099           silc_server_send_private_message_key.
5100
5101         * Updated TODO.
5102
5103         * Changed the silc_[client|server]_protocol_ke_set_keys to be
5104           called in the protocol's final callback instead in the END
5105           protocol state.  This makes a little more sense and in the same
5106           time in client we can use the same protocol routines for normal
5107           key exchange and to key agreement packet handling as well.
5108
5109         * Added to both client's and server's KE protocol context the
5110           SilcSKEKeyMaterial pointer to save the key material.  We will
5111           bring the key material to the protocol's final callback by doing
5112           this.  The final callback must free the key material.
5113
5114         * Added SKE's packet_send callback into client's KE protocol
5115           context so that the caller can choose what packet sending function
5116           is used.  This way we can use different packet sending when
5117           doing normal SKE when doing key agreement packet handling (in
5118           the key agreement packet handling we do not want to encrypt
5119           the packets).
5120
5121         * Implemented the responder side of the key agreement routines
5122           in the client.  The client can now bind to specified port and
5123           accept incoming key negotiation.  The key material is passed
5124           to the application after the protocol is over.
5125
5126         * Implemented the processing of incoming Key Agreement packet
5127           in the client.  Added function silc_client_key_agreement to
5128           process the packet.
5129
5130         * Implemented the intiator side of the key agreement routines
5131           in the client.  The client can now initiate key agreement with
5132           another remote client.  The key material is passed to the
5133           application after the protocol is over.
5134
5135         * Created client_keyagr.c to include all the key agreement 
5136           routines.
5137
5138         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
5139           SILC_TASK_CALLBACK except that it is not static.
5140
5141         * Created client_notify.c and moved the Notify packet handling
5142           from the client.[ch] into that file.
5143
5144         * Created client_prvmsg.c and moved all private message and
5145           private message key routines from the client.[ch] into that file.
5146
5147         * Create client_channel.c and moved all channel message and
5148           channel private key routines from the client.[ch] into that file.
5149
5150         * Changed silc_client_get_client_by_id_resolve to resolve with
5151           WHOIS command instead of IDENTIFY command, in the file
5152           lib/silclient/idlist.c.
5153
5154 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5155
5156         * Implemented the SKE's responder side to the Client library.
5157
5158         * When FAILURE is received to the protocol do not trust it
5159           blindly.  Register a timeout to wait whether the remote closes
5160           the connection as it should do it, only after that process the
5161           actual failure.  This was changed to both client and server.
5162
5163         * Added client_internal.h to include some of the structures
5164           there instead of client.h in lib/silcclient/.
5165
5166         * Added function silc_task_unregister_by_callback to unregister
5167           timeouts by the callback function.
5168
5169 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5170
5171         * Some "Incomplete WHOIS info" errors has been appearing on the
5172           log files.  Took away the entry->userinfo check from WHOIS
5173           reply sending.  The entry->userinfo is now " " if client did not
5174           provide one.  I thought this was fixed earlier but something
5175           is wrong still.  Let's see if the error still appears.
5176
5177 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5178
5179         * Fixed a minor bug in the login when the channel key is
5180           re-generated in the server.  It used to generate the key in
5181           wrong order and thus caused problems in the channel traffic.
5182
5183         * Fixed a minor bug in channel key distsribution after
5184           KICK command.  The key was not sent to the router even though
5185           it should've been.
5186
5187 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5188
5189         * Added silc_ske_process_key_material_data as generic routine
5190           to process any key material as the SILC protocol dictates.  The
5191           function is used by the actual SKE library but can be used by
5192           applications as well.  This relates to the private message keys
5193           and the channel private keys since they must be processed the
5194           same way the normal SILC session keys.  The protocol dictates
5195           this.  Affected files: lib/silcske/silcske.[ch].
5196
5197           Added also silc_ske_free_key_material to free the
5198           SilcSKEKeyMaterial structure.
5199
5200         * Defined silc_cipher_set_key function to set the key for
5201           cipher without using the object's method function.  The affected
5202           files: lib/silccrypt/silccipher.[ch].
5203
5204         * Implemented silc silc_client_add_private_message_key,
5205           silc_client_add_private_message_key_ske, 
5206           silc_client_del_private_message_key,
5207           silc_client_list_private_message_keys and
5208           silc_client_free_private_message_keys functions in the
5209           client library.
5210
5211           Added functions silc_client_send_private_message_key to send
5212           the Private Message Key payload and silc_client_private_message_key
5213           to handle incoming Private Message Key payload.
5214
5215         * Added Cipher field to the Private Message Key payload to set
5216           the cipher to be used.  If ignored, the default cipher defined
5217           in the SILC protocol (aes-256-cbc) is used.
5218
5219 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5220
5221         * Removed lib/silcclient/ops.h file.
5222
5223           Redefined parts of the SILC Client Library API. Created new
5224           file silcapi.h that deprecates the ops.h file and defines the
5225           published Client Library API.  Defined also private message key
5226           API and channel private key API into the file.
5227
5228           This is the file that the application must include from the
5229           SILC Client Library.  Other files need not be included by
5230           the application anymore.
5231
5232         * Added new key_agreement client operation callback and also
5233           defined the Key Agreement library API for the application.
5234
5235 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5236
5237         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
5238           is used by clients to request key negotiation  between another
5239           client in the SILC network.  If the negotiation is started it
5240           is performed using the SKE protocol.  The result of the
5241           negotiation, the secret key material, can be used for example
5242           as private message key.
5243
5244           Implemented the Key Agreement payload into the files
5245           lib/silccore/silauth.[ch].
5246
5247 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5248
5249         * Redefined ciphers for the SILC protocol.  Added some new ciphers
5250           and defined the key lengths for the algorithms.  Changed the
5251           code accordingly.  The default key length is now 256 bits.
5252
5253         * Fixed SKE key distribution function silc_ske_process_key_material
5254           when the key length is more than 128 bits.  The default key 
5255           length in SILC is now 256 bits.
5256
5257         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
5258           to indicate unsupported algorithm.
5259
5260         * Renamed rijndael.c to aes.c and all functions as well.
5261
5262         * Fixed a long standing channel key setting bug in client library.
5263           Weird that it has never surfaced before.
5264
5265         * Fixed bug in channel deletion.  If the entire channel is removed
5266           then it must also delete the references of the channel entry
5267           from the client's channel list as the client's channel entry and
5268           the channel's client entry share same memory.
5269
5270 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5271
5272         * Implemented CONNECT and SHUTDOWN commands in the client.
5273
5274         * Implemented CLOSE command to the client.
5275
5276         * Added the function silc_idlist_find_server_by_name into the
5277           files silcd/idlist.[ch].
5278
5279           Added the function silc_idlist_find_server_by_conn into the
5280           files silcd/idlist.[ch].
5281
5282 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5283
5284         * DIE command was renamed to SHUTDOWN.  Updated the both code
5285           and protocol specs.
5286
5287         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
5288           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
5289
5290         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
5291           side.
5292
5293         * Added function silc_server_create_connection function to create
5294           connection to remote router.  My server implementation actually
5295           does not allow router to connect to normal server (it expects
5296           that normal server always initiates the connection to the router)
5297           so the CONNECT command is only good for connecting to another
5298           router.
5299
5300 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5301
5302         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
5303           or some other client was kicked from the channel.
5304
5305           Implemented the handling of the notify type to both client
5306           and server.
5307
5308           Implemented silc_server_send_notify_kicked to send the KICKED
5309           notify.  It is used to send it to the server's primary router.
5310
5311         * Implemented the KICK command into server and client.
5312
5313         * Added `query' argument to the silc_idlist_get_client function
5314           to indicate whether to query the client from server or not if
5315           it was not found.
5316
5317         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
5318           to indicate that the client is not channel founder.
5319
5320         * Updated TODO.
5321
5322 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5323
5324         * Removed the rng context from SilcPacketContext structure and
5325           changed that the packet routine uses the Global RNG API.
5326
5327 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5328
5329         * Added support for quit message that client can "leave" on the
5330           channel when it quits the SILC.  It is ditributed inside the
5331           SILC_NOTIFY_TYPE_SIGNOFF notify type.
5332
5333           Added silc_server_free_client_data that will take the
5334           signoff message as argument.
5335
5336         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
5337
5338 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5339
5340         * Updated parts of the protocol specification to keep it up
5341           to date.
5342
5343 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5344
5345         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
5346           payloads in one packet.
5347
5348         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
5349           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
5350           use now the new List flag.
5351
5352         * Also deprecated the following packet types: REPLACE_ID,
5353           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
5354          
5355         * Added list support for Notify packet in server.
5356
5357         * Added silc_server_send_notify_channel_change to send the
5358           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
5359           the silc_server_send_replace_id.
5360
5361         * Added silc_server_send_notify_nick_change to send the
5362           NICK_CHANGE notify type.  Deprecates the function
5363           silc_server_send_replace_id.
5364
5365         * Added silc_server_send_notify_join to send the JOIN notify type.
5366           Deprecates the function silc_server_send_new_channel_user.
5367
5368         * Added silc_server_send_notify_leave to send LEAVE notify type.
5369           Deprecates the function silc_server_send_remove_channel_user.
5370
5371         * Added silc_server_send_notify_cmode and 
5372           silc_server_send_notify_cumode to send CMODE and CUMODE notify
5373           types.  Deprecates the silc_server_send_set_mode function.
5374
5375         * Added SERVER_SIGNOFF notify type to indicate that server has
5376           quit.  This means that all clients on the channel from that 
5377           server will drop.  This can be also used when netsplit happens.
5378
5379           Deprecated REMOVE_ID packet type since it is not needed anymore
5380           even from server.
5381
5382           Added silc_server_send_notify_server_signoff to send the
5383           SERVER_SIGNOFF notify type.  Deprecates the function
5384           silc_server_send_remove_id.
5385
5386           Added also silc_server_send_notify_signoff to send the
5387           SIGNOFF notify type.
5388
5389         * Employed the PKCS #1. It is the mandatory way to do RSA in the
5390           SILC protocol from this day on.  Changed the protocol 
5391           specification as well.
5392
5393         * Added silc_server_send_notify_topic_set to send TOPIC_SET
5394           notify type.  It is used between routers to notify about
5395           topic changes on a channel.
5396
5397         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
5398           ID data.
5399
5400         * Partly updated the protocol specification to comply with the
5401           changes now made.  It is still though a bit outdated.
5402
5403         * The JOIN notify type now takes one extra argument <Channel ID>.
5404           The packet used to be destined to the channel but now the
5405           JOIN type may be sent as list thus it is impossible to 
5406           destine it to any specific channel.  By adding this argument
5407           it is again possible.
5408
5409 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5410
5411         * Added CREDITS file.  The CHANGES and CREDITS file will appear
5412           in the distribution as well.
5413
5414 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5415
5416         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
5417           types in the server's silcd/packet_receive.c.
5418
5419         * Implemented CMODE and CUMODE to work in router environment.
5420
5421         * Fixed minor encoding and decoding buglet from the
5422           lib/silccore/silcmode.c.
5423
5424         * Fixed buffer overflow from lib/silcclient/command.c in USERS
5425           command parsing.
5426
5427 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
5428
5429         * Changed all SilcConfigServer* and silc_config_server* to
5430           SilcServerConfig* and silc_server_config*, respectively.
5431           Patch by Bostik.
5432
5433 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5434
5435         * Associated the ID (client or server ID) to the Authentication
5436           Payload to avoid any possibility of forging.  Updated the
5437           protocol specification and the code accordingly.
5438
5439 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5440
5441         * The RSA key length is now save to the RsaKey context in the
5442           key generation process in lib/silccrypt/rsa.c.  The key length
5443           is now used to figure out the maximum size of the block allowed
5444           to be encrypted/signed.
5445
5446         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
5447           is equivalent to the silc_mp_mp2bin but does not allocate any
5448           memory.
5449
5450         * Changed silc_mp_mp2bin API to take length argument.  If it is
5451           non-zero then the buffer is allocated that large.  If zero, then
5452           the size is approximated using silc_mp_sizeinbase, which however
5453           is not relieable.
5454
5455         * Created Global RNG API which is global RNG that application can
5456           initialize.  After initializing, any routine anywhere in the
5457           code (including library) can use RNG without allocating a new
5458           RNG object.  This was done to allow this sort of use of the 
5459           RNG in code that has no chance to allocate RNG object.  All
5460           applications currently allocate this and many routines in the
5461           library use this.  Affected file lib/silccrypt/silcrng.[ch].
5462
5463         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
5464           it to use the Global RNG API.
5465
5466         * Defined Authentication Payload into protocol specification that
5467           is used during SILC session to authenticate entities.  It is
5468           used for example by client to authenticate itself to the server
5469           to obtain server operator privileges.
5470
5471           Implemented this payload into the lib/silccore/silcauth.[ch].
5472           Implemented also routines for public key based authentication
5473           as the new protocol specification dictates.
5474
5475           Moved definitions of different authentication methods from
5476           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
5477
5478         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
5479           silc_pkcs_verify and silc_pkcs_sign_with_hash and
5480           silc_pkcs_verify_with_hash functions into the file 
5481           lib/silccrypt/silcpkcs.[ch].
5482
5483 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5484
5485         * The client entry's userinfo pointer must be always valid. 
5486           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
5487           will fail since it requires the userinfo.  Now, the userinfo
5488           is allocated as "" if actual userinfo does not exist.  Actually,
5489           it must exist and it is totally Ok to drop client connections
5490           that does not announce the userinfo.  However, we will make
5491           this workaround for now.
5492
5493         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
5494           to return the remote port by socket.
5495
5496 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5497
5498         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
5499           SILC_SERVER_PENDING_EXEC and added an new macro
5500           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
5501           data or when error occurs while processing the pending command.
5502
5503           Added new argument `destructor' into silc_server_command_pending
5504           and to the SilcServerCommandPending object.  This destructor is
5505           now called after calling the pending callback or if error occurs
5506           immediately.  If error occurs the actual pending callback won't
5507           be called at all - only the destructor.  The destructor may be
5508           NULL if destructor is not needed.
5509
5510           All this applies for client library code as well.  Similar
5511           changes were made there as well for the pending commands.
5512
5513           In the client, the application must now allocate the 
5514           SilcClientCommandContext with the silc_client_command_alloc
5515           function.
5516
5517         * Added reference counter to the SilcServerCommandContext.  Added
5518           function silc_server_command_alloc and silc_server_command_dup 
5519           functions.
5520
5521           Same type of functions added to the client library for the same
5522           purpose as well.
5523
5524         * Removed the cmd_ident from IDListData away since it is now 
5525           global for all connections.  It is the command identifier used
5526           in command sending and with pending commands.  The affected file
5527           is silcd/idlist.h.
5528
5529         * Added reference counter to the SilcSocketConnection objecet to
5530           indicate the usage count of the object.  The object won't be
5531           freed untill the reference counter hits zero.  Currently only
5532           server uses this, and client ignores it.  The client must be
5533           set to use this too later.  The affected files are
5534           lib/silccore/silcsockconn.[ch].  Added also the function
5535           silc_socket_dup to increase the reference counter.
5536
5537           This was mainly added because it is possible that the socket
5538           is removed underneath of pending command or other async
5539           operation.  Now it won't be free'd and proper DISCONNECTING
5540           flags, etc. can be set to avoid sending data to connection that
5541           is not valid anymore.
5542
5543         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
5544           the connection.  After that it sets SILC_SET_DISCONNECTED.
5545           It is, however, possible that the socket data is not still freed.
5546           The silc_server_packet_process now checks that data is not
5547           read or written to connection that is DISCONNECTED.  The socket
5548           get's freed when the reference counter hits zero.
5549
5550 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5551
5552         * Changed the client operation API: channel_message operation's
5553           `sender' is now the client entry of the sender, not the nickname
5554           and the `channel' is the channel entry, not the channel name.
5555
5556           In the private_message operation the `sender' is now also the
5557           client entry of the sender not the nickname.
5558
5559           Affected file is lib/silcclient/ops.h and all applications
5560           using the client operations.
5561
5562 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5563
5564         * Moved the calling of ops->connect() from connect_to_server_final
5565           into receive_new_id functin since that is the point when the
5566           client is actually allowed to send traffic to network.  The
5567           affected file is lib/silcclient/client.c.
5568
5569 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5570
5571         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
5572           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
5573           (if needs broadcasting) instead of broadcasting the packets one
5574           by one which would make a burst in the network traffic.
5575
5576         * Added `broadcast' argument to the functions in silcd/server.[ch]
5577           silc_server_create_new_channel[_with_id] to indicate whether
5578           to send New Channel packet to primary router.
5579
5580 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5581
5582         * Added new function into the silcd/server.[ch] files:
5583           silc_server_create_new_channel_with_id to create new channel with
5584           already existing Channel ID.
5585
5586         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
5587           lib/silccore/silcpacket.h.  This packet is used t send list of
5588           Set Mode payloads inside one packet.  Server uses this to set
5589           the modes for the channels and clients on those channels, that it
5590           announced to the router when it connected to it.  The protocol
5591           specification has been updated accordingly.
5592
5593         * The silc_server_new_channel did not handle the packet coming
5594           from normal server as it normally does not send that.  However,
5595           when it announces its channels it does send it.  Implemented
5596           the support for that.
5597
5598         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
5599           into the file lib/silccore/id.h.
5600
5601 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5602
5603         * Fixed memory leaks in the functions silc_idlist_del_client,
5604           silc_idlist_del_channel and silc_idlist_del_server in the file
5605           silcd/idlist.c.  All of those leaked like a sieve.
5606
5607         * Fixed some small memory leaks in the client's function
5608           silc_client_notify_by_server.
5609
5610         * Added functions into silcd/server.c: silc_server_announce_clients,
5611           silc_server_announce_channels and silc_server_announce_server.
5612           These functions are used by normal and router server to announce
5613           to its primary router about clients, channels and servers (when
5614           router) that we own.  This is done after we've connected to the
5615           router.
5616
5617           These functions effectively implements the following packet types:
5618           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
5619           and SILC_PACKET_NEW_ID_LIST.
5620
5621         * Added new functions into the silcd/packet_receive.[ch]:
5622           silc_server_new_id_list, silc_server_new_channel_list and
5623           silc_server_new_channel_user_list to handle the incoming 
5624           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
5625
5626         * Added support of changing Channel ID in the function
5627           silc_server_replace_id.  If the server that announces a channel
5628           to the router already exists in the router (with same name but
5629           with different Channel ID), router is responsible to send
5630           Replace ID packet to the server and force the server to change
5631           the Channel ID to the one router has.
5632
5633         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
5634           client that the Channel ID has been changed by the router.  The
5635           normal server sends this to the client.  Client must start using
5636           the new Channel ID as the channel's ID.
5637
5638           Implemented handling of this new type into lib/silcclient/client.c
5639           into the function silc_client_notify_by_server.
5640
5641         * Added new function silc_idlist_replace_channel_id into the files
5642           silcd/idlist.[ch] to replace the Channel ID.
5643
5644 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5645
5646         * Call silc_server_command_identify_check always when processing
5647           the IDENTIFY command in silcd/command.c
5648
5649 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5650
5651         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
5652           send keepalive packets.  The packet can be sent by clients, 
5653           servers and routers.
5654
5655           Added function silc_socket_set_heartbeat into the file
5656           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
5657           If not set, the heartbeat is not performed.  The actual 
5658           heartbeat is implemented in the low level socket connection
5659           library.  However, application is responsible of actually
5660           sending the packet.
5661
5662           Added silc_server_send_heartbeat to send the actual heartbeat
5663           packet into silcd/packet_send.[ch].  Server now performs
5664           keepalive with all connections.
5665
5666         * Added silc_task_get_first function into lib/silcutil/silctask.c
5667           to return the timeout task with shortest timeout.  There was a bug
5668           in task unregistration that caused problems.  TODO has been
5669           updated to include that task system must be rewritten.
5670
5671         * The client library will now resolve the client information when
5672           receiving JOIN notify from server for client that we know but
5673           have incomplete information.
5674
5675         * Rewrote parts of silc_server_remove_from_channels and
5676           silc_server_remove_from_one_channel as they did not remove the
5677           channel in some circumstances even though they should've.
5678
5679         * Encryption problem encountered in server:
5680
5681           The LEAVE command used to send the Channel Key packet to the
5682           router immediately after generating it.  However, the code
5683           had earlier sent Remove Channel user packet but not immediately,
5684           ie. it was put to queue.  The order of packets in the router
5685           was that Channel Key packet was first and Remove Channel User
5686           packet was second, even though they were encrypted in the
5687           reverse order.  For this reason, MAC check failed.  Now, this
5688           is fixed by not sending the Channel Key packet immediately but
5689           putting it to queue.  However, this is more fundamental problem:
5690           packets that are in queue should actually not be encrypted 
5691           because packets that are sent immediately gets encrypted
5692           actually with wrong IV (and thus MAC check fails).  So, packets
5693           that are in queue should be encrypted when they are sent to
5694           the wire and not when they put to the queue.
5695
5696           However, the problem is that the current system has not been
5697           designed to work that way.  Instead, the packet is encrypted
5698           as soon as possible and left to the queue.  The queue is then
5699           just purged into wire.  There won't be any fixes for this
5700           any time soon.  So, the current semantic for packet sending
5701           is as follows:
5702
5703           o If you send packet to remote host and do not force the send
5704           (the packet will be in queue) then all subsequent packets to the
5705           same remote host must also be put to the queue.  Only after the
5706           queue has been purged is it safe again to force the packet
5707           send immediately.
5708
5709           o If you send all packets immediately then it safe to send
5710           any of subsequent packets through the queue, however, after
5711           the first packet is put to queue then any subsequent packets
5712           must also be put to the queue.
5713
5714           Follow these rules and everything works fine.
5715
5716 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5717
5718         * Added new function silc_server_remove_clients_by_server to
5719           remove all client entries from ID list when the server connection
5720           is lost.  In this case it is also important to invalidate all
5721           client entires as they hold the invalid server entry.  This
5722           fixes fatal bug when server has lost connection and will reconnect
5723           again.
5724
5725 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5726
5727         * Made some sanity checks to silc_server_daemonise like to check
5728           whether the requested user and group actually exists.
5729
5730         * Added sanity check to SKE's silc_ske_responder_finish to check
5731           that the public and private key actually is valid. 
5732
5733         * Invalidate the client's nickname when receiving Replace ID
5734           packet and the Client ID is being replaced.  This means that the
5735           server will query the nickname if someone needs it (client)
5736           a bit later.
5737
5738         * Sort the ID Cache in client library when the ID Cache data
5739           has changed (needs sorting).
5740
5741         * Do not allow for SILC client to create several connections to
5742           several servers.  The client does not support windows right now
5743           and generating multiple connections causes weird behaviour.
5744
5745           Irssi-silc client does support windows and can handle several
5746           connections without problems, see: www.irssi.org and SILC plugin.
5747
5748         * Fixed some places where client was added to the IDList.  The
5749           rule of thumb is following (in order to get everything right):
5750           If the client is directly connected local client then the 
5751           `connection' argument must be set and `router' argument must be 
5752           NULL to silc_idlist_add_client function.  If the client is not
5753           directly connected client then the `router' argument must
5754           bet set and the `connection' argument must be NULL to the
5755           silc_idlist_add_client function.
5756
5757         * The funtion silc_server_packet_send_local_channel actually did
5758           not check whether the client was locally connected or not.  It
5759           does that now.  Fixed a bug related to LEAVE command.
5760
5761         * Fixed Remove Channel User payload parsing bug in server's
5762           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
5763
5764         * The server's silc_server_save_channel_key now checks also the
5765           global ID list for the channel as it might not be in the local
5766           list.  Fixed a bug related to LEAVE command.
5767
5768         * Is this the end of the [<unknown>] buglet that has been lurking
5769           around for a long time?  A little for loop fix in server's
5770           silc_server_command_whois_parse that is used by both IDENTIFY
5771           and WHOIS command.  At least, this was a clear bug and a cause
5772           of one type of [<unknown>] buglet.
5773
5774         * WHOIS and IDENTIFY commands call the function
5775           silc_server_command_[whois/identify]_check function even if
5776           we are not router server.
5777
5778 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5779
5780         * Added --with-gmp configuration option.  If set the GMP
5781           is always compiled in the SILC source tree.  If not set then
5782           it is checked whether the system has the GMP3 installed.  If
5783           it has then the GMP won't be compiled (the system's headers
5784           and library is used), if it doesn't have it then the GMP is
5785           compiled in the SILC source tree.
5786
5787 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5788
5789         * Changed RSA private exponent generation to what PKCS #1
5790           suggests.  We try to find the smallest possible d by doing
5791           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
5792           not security fix but optimization.
5793
5794 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5795
5796         * Added new config entry [Identity] to fork the server and run
5797           it as specific user and group.  A patch from Bostik.
5798
5799         * Imported Dotconf configuration library into lib/dotconf.
5800           This will be used to create the SILC configuration files later.
5801           It will appear in the distsribution after this commit.
5802
5803 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5804
5805         * A big code auditing weekend happening.  Auditing code for 
5806           obvious mistakes, bugs and errors.  Also, removing any code
5807           that is obsolete.
5808
5809           Removed files for being obsolete:
5810
5811           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
5812           inline in the file lib/silcutil/silcbuffer.h)
5813
5814           o lib/silcutil/silcbufutil.c (the header has inline versions)
5815
5816           Changed code to fix possible error conditions:
5817
5818           o The buffer formatting routines now check that the destination
5819           buffer really has enough space to add the data.  This applies for
5820           both buffer formatting and unformatting 
5821           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
5822           unformatting was changed to accomodate following rules: 
5823           XXX_*STRING_ALLOC will allocate space for the data into the pointer
5824           sent to the function while XXX_*STRING will not allocate or copy 
5825           the data into the buffer.  Instead it sets the pointer from the
5826           buffer into the pointer sent as argument (XXX_*STRING used to
5827           require that the pointer must be allocated already).  This change
5828           makes this whole thing a bit more consistent and more optimized
5829           (note that the data returned in the unformatting with XXX_*STRING
5830           must not be freed now).  The routines return now -1 on error.
5831
5832           o Tried to find all code that use buffer_format and buffer_unformat
5833           and added return value checking to prevent formatting and
5834           especially unformatting errors and possible subsequent fatal
5835           errors.
5836
5837           o Changed ske->x and ske->KEY to mallocated pointers in
5838           lib/silcske/silcske.h.  Fixed possible data and memory leak.
5839
5840           o Added return value checking to all *_parse* functions.  Fixed
5841           many memory leaks as well.
5842
5843           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
5844           so that buffer overflows would not happen.  All code now also
5845           checks the return value as it can fail.
5846
5847 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5848
5849         * Added reconnection support to server if the normal server looses
5850           its connection to the router (for example if router is rebooted).
5851           The server performs normal reconnection strategy implemented
5852           to the server.  Affected file silcd/server.c.
5853
5854 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5855
5856         * Added new packet type SILC_PACKET_SET_MODE that is used to
5857           distribute the information about changed modes (for clients,
5858           channels and clients channel modes) to all routers in the
5859           network.  Updated the protocol specification accordingly.
5860
5861           Added functions into silcd/packet_send.c and 
5862           silcd/packet_receive.c: silc_server_send_set_mode, 
5863           silc_server_set_mode.
5864
5865           Added new files silcmode.[ch] into lib/silccore that implements
5866           the encoding and decoding of Set Mode Payload.  Added new type
5867           SilcSetModePayload.  Moved the definitions of different modes
5868           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
5869
5870 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5871
5872         * Oops, a little mistake in server's connection authentication 
5873           protocol.  The protocol is not ended with FAILURE but with
5874           SUCCESS if the authentication is Ok. :)  Affected file is
5875           silcd/protocol.c.
5876
5877         * Implemented NICK_CHANGE notify handling in server in the file
5878           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
5879           the local clients on the channel.  After the changing nickname
5880           in router environment snhould work and the [<unknown>] nickname
5881           should appear no more.
5882  
5883           The silc_server_replace_id function that receives the Replace ID
5884           payload now sends the NICK_CHANGE notify type also in the file
5885           silcd/packet_receive.c
5886
5887         * Changed WHOIS and IDENTIFY command to support the maximum amount
5888           of arguments defined in protocol specs (3328 arguments).  This 
5889           fixed a bug that caused problems when there were more than three
5890           users on a channel.
5891
5892 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5893
5894         * Added extra parameter, command identifier, to the
5895           silc_client_send_command so that explicit command identifier
5896           can be defined.
5897
5898           Changed that ID list routines uses specific command identifier
5899           when sending WHOIS/IDENTIFY requests to the server so that they
5900           can be identified when the reply comes back.
5901
5902           Affected files lib/silcclient/command.[ch],
5903           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
5904
5905         * Added `sender' argument to silc_server_packet_send_to_channel
5906           to indicaet the sender who originally sent the packet to us
5907           that we are now re-sending.  Ignored if NULL.  Affected file
5908           silcd/packet_send.[ch].
5909
5910         * Added some server statistics support in silcd/server_internal.h
5911           SilcServerStatistics structure and around the server code.  Also
5912           send some nice statistics information when client is connecting
5913           to the client.
5914
5915 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5916
5917         * Fixed channel ID decoding in server's JOIN command reply in
5918           silcd/command_reply.c
5919
5920         * Fixed braodcasting of replace ID payload to not to send it if
5921           we are standalone server in silcd/packet_receive.c.
5922
5923         * Fixed all channel message sending routines to not to send
5924           packets to clients that has router set, since they are routed
5925           separately in the same function earlier.  Affects file
5926           silcd/packet_send.c and all channel packet sending functions.
5927
5928         * In USERS reply, res_argv[i] are not allocated, the table
5929           is allocated.  Thus changed that free the table, not its
5930           internals.
5931
5932         * In server's whois_check and identify_check if the client is
5933           locally connected do not send any WHOIS commands - they are not
5934           needed.
5935
5936 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5937
5938         * Fixed some minor bugs in client when sending WHOIS command.  The
5939           arguments was in wrong order.
5940
5941         * Removed statis function add_to_channel from server in 
5942           silcd/command.c that was previously used with the joining but
5943           is obsolete now.
5944
5945         * Tested USERS command in router environment successfully with two
5946           routers, two servers and two clients.
5947
5948 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5949
5950         * Reorganized the USERS command and command reply in client library
5951           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
5952           When the command is given by user we register a pending command
5953           callback that will reprocess the command after the reply has been
5954           received from the server.  When reprocessing the packet we then
5955           display the information.  Thus, the USERS information is displayed
5956           now in the command callback instead of in the command reply
5957           callback.  The processing of the command is same as previously
5958           when server has sent the command reply in the JOINing process.
5959
5960         * Added to USERS command in silcd/command_reply.c to join the client,
5961           we didn't use to know about, to the channel after we've created
5962           a client entry for it.  Also, for clienet we did know already still
5963           check whether it is on the channel or not and add it if not.
5964
5965         * Removed silc_server_command_join_notify as the function and its
5966           use was obsolete.
5967
5968 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
5969
5970         * Changed the client's pending command handling to the same as the
5971           server's pending command handling.  It is also now possible to
5972           execute command reply functions from other command reply
5973           function as the function callbacks for commands and command
5974           replies are one and same.  The pending commands are not static
5975           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
5976           in client connection context.  Thus, pending commands are server
5977           connection specific as it is convenient.
5978
5979           Changed the function silc_client_command_pending and
5980           silc_client_command_pending_del and added new function
5981           silc_client_command_pending_check.  Removed the 
5982           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
5983           macros.
5984
5985         * Added cmd_ident, current command identifier, to the client
5986           connection context in lib/silcclient/client.h to keep track on
5987           command identifiers used in command sending.  Client's command reply
5988           function handling now supports the mandatory command identifiers.
5989
5990         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
5991           funtions in client to fully support pending command callbacks.
5992
5993         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
5994           as one of the arguments to the application in the command reply
5995           client operation.
5996
5997         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
5998           before first releasing SILC but came back.  Now it is removed again
5999           and should come back nomore.  The FORWARDED flag was used only
6000           by the JOINing procedure by forwarding the command packet to router.
6001           Now, the JOINing procedure has been changed to more generic (due
6002           to various router environment issues) and FORWARDED is not needed
6003           anymore for anything.  The protocol specification is yet to be
6004           updated.
6005
6006           Now, removed silc_server_packet_forward from server and the flag
6007           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
6008
6009 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6010
6011         * Renamed NAMES command to USERS command.  The NAMES was named that
6012           due to historical reasons.  Now it is renamed.  Also, rewrote
6013           parts of the USERS command.  The nickname list is not sent anymore
6014           by the server.  Only Client ID and mode lists are sent in the USERS
6015           command.  Changed this also to the protocol specification.
6016
6017           The client now resolves the names and stuff after it receives
6018           the USERS list from the server when joining to the channel.
6019
6020         * WHOIS and IDENTIFY commands has been changed to support multiple
6021           Client ID's per command.  One can now search for multiple users
6022           in the network by sending only one WHOIS or IDENTIFY command.
6023           Changed the code and the protocol specifications.
6024
6025         * Removed silc_server_command_identify_parse and changed that IDENTIFY
6026           uses silc_server_command_whois_parse to parse the request. */
6027
6028         * If normal server, do not parse the WHOIS and IDENTIFY requests
6029           before sending it to the router.  Saves some time.
6030
6031 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6032
6033         * Fixed JOIN command on client library.  Wrong number of arguments
6034           used to crash the client.
6035
6036         * Added silc_server_channel_has_global function to check whether
6037           channel has global users or not.
6038
6039         * Added silc_server_channel_has_local function to check whether channel
6040           has locally connected clients on the channel.
6041
6042         * The silc_server_remove_from_one_channel now checks whether the
6043           channel has global users or not after given client was removed from
6044           the channel.  It also checks whether the channel has local clients
6045           on the channel anymore.  If it does not have then the channel entry
6046           is removed as it is not needed anymore.
6047
6048         * The silc_server_notify now checks on JOIN notify whether the joining
6049           client is one of locally connected or global.  If it is global then
6050           the channel has now global users on the channel and that is marked
6051           to the channel entry.  Also, it now saves the global client to
6052           global list who is joining and JOINs it to the channel.  This is
6053           for normal server, that is.
6054
6055           Changed silc_server_send_notify_on_channel, 
6056           silc_server_packet_relay_to_channel and 
6057           silc_server_packet_send_to_channel check if we are normal server
6058           and client has router set (ie. global client) do not send the
6059           message to that client, as it is already routed to our router.
6060
6061         * Implemented LEAVE notify type handling in silc_server_notify 
6062           function.
6063
6064         * Tested LEAVE command in router environment successfully.  Tested
6065           with two routers, two servers and two clients.
6066
6067         * Updated TODO.
6068
6069         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
6070
6071         * Implemented SIGNOFF notify type handling in silc_server_notify
6072           function.
6073
6074         * silc_server_remove_id now removes the client entry from all channels
6075           it has joined and thusly sends SIGNOFF notify type.
6076
6077         * Rewrote the NAMES list generation in server by removing two excess
6078           loops.  The lists are created now inside one loop.
6079
6080 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6081
6082         * silc_server_remove_channel_user checks now also global list
6083           for channel and client.
6084
6085         * silc_server_new_channel_user checks now both local and global
6086           list for channel and client.  Fixed a bug in client id decoding.
6087           Used to decode wrong buffer.
6088
6089         * silc_server_channel_message checks now both local and global
6090           list for channel entry.
6091
6092         * Tested channel joining (hence JOIN) in router environment
6093           successfully.  Tested with two routers, two servers and two
6094           clients.
6095
6096         * Tested channel message sending in router environment successfully.
6097
6098 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
6099
6100         * Added silc_server_save_channel_key into server.[ch] to save the
6101           received channel key in Channel Key payload processing. It is
6102           also used in JOIN command reply handling.
6103
6104           Equivalent function silc_client_save_channel_key added into
6105           client.[ch] into client library.
6106
6107         * Changed JOIN command reply to send information whether the channel
6108           was created or not (is existing already) and the channel key 
6109           payload.  Changed protocol specs accordingly.
6110
6111         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
6112           the request was sent by ID and not by nickname.  Crashed on
6113           NULL dereference.
6114
6115 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6116
6117         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
6118           now correctly save the received data.
6119
6120         * silc_server_free_sock_user_data now notifies routers in the 
6121           network about entities leaving the network.
6122
6123           At the same time implemented functions silc_server_remove_id
6124           and silc_server_send_remove_id to receive and send REMOVE_ID
6125           packets.  The packet is used to notify routers in the network
6126           about leaving entities.  The ID removed will become invalid in
6127           the network.
6128
6129         * Added function silc_idlist_del_server into server. Removes and
6130           free's server entry from ID list.
6131
6132         * silc_server_private_message function now checks, if we are router,
6133           that the destination ID really is valid ID, naturally.
6134
6135         * In router when NEW_ID packet is received (for new client) the
6136           hash of the Client ID is saved in the ID Cache but the
6137           client->nickname is set to NULL, instead of putting the hash
6138           to it as well.
6139
6140           IDENTIFY command now also checks that client->nickname must be
6141           valid. If it is not if will request the data from the server who
6142           owns the client.  Added new function 
6143           silc_server_command_identify_check.
6144
6145         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
6146           to set the command to already allocated Command Payload.
6147
6148         * Tested private message sending in router environment with two
6149           routers, two servers and two clients.  Fixed minor bugs and now
6150           it works fine.
6151
6152         * Fixed segfault from client's NAMES command. Used to crash if
6153           not on any channel.
6154
6155         * Forwarded packets must not be routed even if it is not destined
6156           to the receiver.  Changed server code comply with this.
6157
6158 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6159
6160         * Added `require_reverse_mapping' boolean value to ServerParams
6161           structure. If TRUE (not default) the server will require that
6162           the connecting host has fully qualified domain name.
6163
6164           If the reverse mapping is not required and hostname could not be
6165           found the IP address is used as hostname.
6166
6167 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6168
6169         * Implemented version string checking to both client and server.
6170           The check is incomplete currently due to the abnormal version 
6171           strings used in development version of SILC.
6172
6173         * Changed all command functions in server to use the new
6174           CHECK_ARGS macro.
6175
6176 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6177
6178         * Changed char *data to unsigned char *data in ID Cache system to
6179           support binary data as ID Cache data. Changed code to support
6180           binary data in lib/silccore/idcache.c.
6181
6182         * Renamed silc_server_packet_relay_command_reply to 
6183           silc_server_command_reply as it is normal packet receiving
6184           function. Rewrote the function to accept command replys for
6185           servers and not only for clients.
6186
6187         * Mark remote router always as registered server if we are connecting
6188           to it.  Otherwise, commands sent by the router to us are ignored.
6189
6190         * All ID List find routines now returns the ID Cache Entry pointer
6191           as well if requested.
6192
6193         * WHOIS command works now in router environment, tested with two
6194           routers, two servers and two clients.
6195
6196         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
6197           in router environment (as it is almost equivalent to WHOIS) but
6198           hasn't been tested thoroughly.  Added new functions:
6199
6200           silc_server_command_identify_parse
6201           silc_server_command_identify_send_reply
6202           silc_server_command_identify_from_client
6203           silc_server_command_identify_from_server
6204
6205         * Disabled route cache adding because adding two different ID's with
6206           same IP replaces the old cache entry thus giving wrong route.
6207           The entry->router->connection is always the fastest route anyway
6208           so route cache may not be needed.  Of course, new routes maybe
6209           established after receiving the ID when the entry->router->connection
6210           might not be anymore the most optimal.
6211
6212 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6213
6214         * Add route cache for received ID for fast routing.
6215
6216         * Added silc_server_packet_route to route received packet on router
6217           that is not destined to us.
6218
6219         * Renamed silc_server_get_route to silc_server_route_get.
6220
6221         * Added id_string and id_string_len fields into SilcServer to
6222           include encoded ServerID for fast comparing without excess
6223           encoding of the ID's.
6224
6225         * Cleaned up WHOIS command on server side. Added following static
6226           functions:
6227
6228           silc_server_command_whois_parse
6229           silc_server_command_whois_check
6230           silc_server_command_whois_send_reply
6231           silc_server_command_whois_from_client
6232           silc_server_command_whois_from_server
6233
6234         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
6235           arguments in command replies. All command functions should be
6236           updated to use this macro.
6237
6238 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6239
6240         * Minor typo fixes on command reply handling on server.
6241
6242 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6243
6244         * Added silc_server_command_add_to_channel internal routine to add
6245           the client to the channel after router has created the channel and
6246           sent command reply to the server.
6247
6248         * Added generic silc_server_send_command to send any command from
6249           server.
6250
6251         * Use static buffer with ID rendering instead of duplicating data.
6252
6253 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6254
6255         * Fixed a channel user mode bug when joining to a channel server gave
6256           everybody channel founder rights, oops.
6257
6258         * We mark ourselves as the router of the incoming server connection
6259           if we are router ourselves.  This way we can check in some packet
6260           sending functions whether it is locally connected server.  For
6261           incoming router connections we put NULL.
6262
6263         * For router sending packets locally means now always sending the
6264           packet cell wide; to local clients and local servers.  For normal
6265           server sending packet locally means sending it to only local
6266           clients.
6267
6268         * Fixed the JOIN command to really work in router environment.  If the
6269           channel is created it is always created by the router.  Router is
6270           also responsible of making the initial joining to the channel,
6271           sending JOIN notify to the sending server and distributing 
6272           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
6273           does not exist server doesn't do anything else but forward the
6274           command to the router which performs everything.
6275
6276         * Added silc_server_send_channel_key function to send the Channel Key
6277           payload.
6278
6279         * Added silc_server_create_channel_key to create new channel key.  The
6280           channel key is now re-generated everytime someone joins or leaves
6281           a channel, as protocol dictates.  Note: channel->key_len is the
6282           key length in bits.
6283
6284 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6285
6286         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
6287           packet_receive.[ch] to separate packet sending and receiving
6288           routines.  The server.[ch] now includes everything else including
6289           actual packet processing (writing and reading data) and other
6290           server issues.
6291
6292           Renamed silc_server_private_message_send_internal to
6293           silc_server_send_private_message.  The routine is still though
6294           used only to relay private messages as server does not send
6295           private messages itself.
6296
6297           Renamed silc_server_new_channel to silc_server_create_new_channel
6298           and added new function sicl_server_new_channel that handles the
6299           incoming New Channel packet.  Added also new sending function
6300           silc_server_send_new_channel to send New Channel Payload.
6301
6302         * Added new function silc_server_notify to process incoming notify
6303           packet to the server/router. Server may then relay the notify
6304           to clients if needed.
6305
6306         * Added new function silc_server_new_channel_user to process incoming
6307           New Channel User packet.  Router will redistribute the packet and
6308           send JOIN notify to its local clients and locally connected servers
6309           if needed.  Normal server will send JOIN notify to its local client
6310           on same channel when received this packet.  Added also corresponding
6311           sending function silc_server_send_new_channel_user to sent the
6312           payload.
6313
6314         * Added boolean route argument to send_notif_to_channel and
6315           packet_send_to_channel functions to attempt to route the packet
6316           if it is TRUE and send only locally if it is FALSE.
6317
6318 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6319
6320         * silc_server_replace_id now broadcasts the received replace ID
6321           packet if it is not broadcast packet already. The router must
6322           broadcast to inform other routers about changed ID.
6323
6324         * Added backpointer to server's router into SilcServer context in
6325           silcd/server_internal.h.
6326
6327         * Fixed silc_server_packet_broadcast to send correct broadcast
6328           packets.
6329
6330         * The channel key is now distributed to the local client as soon
6331           as it is received from the router (in router environment) so that
6332           no other packet may be sent for the channel until client has 
6333           received the key.
6334
6335         * silc_server_remove_channel_user now broadcasts the received
6336           Remove Channel User packet if it is not broadcast packet already.
6337           The router must broadcast to inform other routers about removed
6338           channel user.
6339
6340         * Added users field into SilcPacketContext that is a reference count
6341           of the context.  One can increase the reference count by calling
6342           silc_packet_context_dup which is now changed to just increase the
6343           reference count instead of duplicating the data.  The reference
6344           count is decresed by calling silc_packet_context_free that will
6345           free the data after the reference count hits zero.
6346
6347           For now on the packet context and everything allocated into it
6348           (including the raw packet from network) must be freed by calling
6349           the new silc_packet_context_free function.  Added also new function
6350           silc_packet_context_alloc that must be used now to allocate the
6351           context.  This also means that if a routine is asynchronous from
6352           silc_[client/server]_packet_parse_type the packet context must
6353           be duplicated by calling silc_packet_context_dup.  Otherwise it
6354           gets free'd after silc_[client/server]_packet_parse_type returns.
6355           Also, one must remember that if packet is duplicated then its 
6356           reference count must be decresed by calling the free function as
6357           many times as it was duplicated.
6358
6359         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
6360           from both client and server.
6361
6362 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6363
6364         * Made joining to a channel working in router environment.
6365
6366         * Cleaned up JOIN command on server side and create function
6367           silc_server_command_join_channel internal routine to make the
6368           joining happen.
6369
6370 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6371
6372         * Changed silc_command_pending list to SilcDList.  Also, added
6373           `ident' field to SilcServerCommandPending structure to identify
6374           the reply and to call correct callback.
6375
6376           Added silc_server_command_pending_check function to replace the
6377           corresnponding macro.  The silc_command_pending list is not
6378           extern anymore.
6379
6380         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
6381           to set identifier to previously allocated Command Payload.  It
6382           is used to set identifier for command when resending Command
6383           Payload.
6384
6385         * Added silc_command_payload_encode_payload to encode Command
6386           Payload buffer from SilcCommandPayload structure.
6387
6388         * Added silc_argument_payload_encode_payload to encode Argument
6389           payload buffer from SilcArgumentPayload structure.
6390
6391 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6392
6393         * Changed WHOIS command to support router connection on server side.
6394           The whois request is always sent to router unless the server is
6395           standalone server.  After server has received the reply from the
6396           router will it send the reply to the client.
6397
6398         * Added silc_server_packet_broadcast into silcd/server.[ch] to
6399           broadcast received broadcast packet.  The function is used only
6400           by router.  The broadcast packet is always sent to the router's
6401           primary route.
6402
6403         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
6404           render given ID to printable string, for log files for example.
6405
6406 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6407
6408         * Made basic router to router connections working.  At least they
6409           can now connect to each other but nothing really works the way
6410           they are supposed - yet.
6411
6412         * Added new initiator token to RouterConnection configuration
6413           file in silcd/serverconfig.[ch].  It is used to tell whether we
6414           are the initiator to the remote router or whether we'll expect
6415           the other end to connect.
6416
6417         * Moved registering of listener task to silc_server_init, hence
6418           the server starts listenning as soon as it is run, even if it
6419           does not have connections to other routers.  Let's see how well
6420           this will work.
6421
6422         * Changed default connection retry timeouts for more suitable in
6423           silcd/server.h.
6424
6425         * Removed cipher and such arguments from silc_idlist_add_client
6426           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
6427           Added new function silc_idlist_add_data to add the keys and stuff
6428           to any ID entry.
6429
6430         * Added SilcIDListData structure and added it to SilcClientEntry
6431           and SilcServerEntry as their first field in the structure.  This
6432           way we can explicitly cast the ID entries to the SilcIDListData
6433           structure and get common data for the entries.  In past, we had
6434           to first check what type of connection it is and then cast it to
6435           correct ID entry type.  Now, we can directly cast the opaque
6436           pointer to the SilcIDListData (no matter what ID entry it actually
6437           is) and get the data needed.
6438
6439 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6440
6441         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
6442           in some circumstances even if threre were timeout tasks, though not
6443           IO tasks, but tasks anyway.  Now fixed.
6444
6445         * Defined SilcServerConnection structure to hold connection specific
6446           stuff about directly connected servers and routers.  The definition
6447           is currently in silcd/server_internal.h.  I thought about having
6448           a bit more important role fro this struct but for now it is used
6449           only when connecting to other server (or router actually).
6450
6451         * Added connecting retry support in server when connecting to
6452           router(s).  The retry feature implement exponential backoff
6453           algorithm.  Also, added SilcServerParams structure to hold default
6454           parameters for server.  For now, it include these retry settings
6455           and are hard coded.  After server is moded to be as Silc Server
6456           Library this structure will be more important.
6457
6458 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6459
6460         * Changed client librarys channel->clients table to SilcList and
6461           changed code accordingly.
6462
6463 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6464
6465         * Changed client's channel table to SilcList and changed code 
6466           accordingly.  Also changed SilcChannelClientEntry to include back-
6467           pointer to the channel so that client entry can use that structure
6468           as list as well and we have fast cross-reference to the channel.
6469           This change dramatically decreased the complexity of channel
6470           handling with client entry and vice versa (removed one extra
6471           loop when searching for channel entry from many functions).
6472
6473         * Changed server->sim from table to SilcDList and changed code
6474           accordingly.
6475
6476         * NAMES command can now be used from user interface.  It will show
6477           the user list on the channel, neatly.
6478
6479         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
6480           Code now saves realname of the user if it becomes available.
6481
6482         * Renamed configure.in to configure.in.pre and made ./prepare
6483           script to automatically add correct version string to
6484           configure.in which it creates from configure.in.pre.
6485
6486 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6487
6488         * NAMES command reply now shows users mode with the nickname when
6489           joining to channel.
6490
6491         * Moved silc_client_ch[u]mode[_char] functions from 
6492           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
6493           place sucks, they are utility functions and should be in some
6494           other file.
6495
6496         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
6497
6498         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
6499           cras.
6500
6501 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6502
6503         * Updated README.
6504
6505         * Added TRQ (efficient deque and list library) into lib/trq.  This is
6506           a very good list library that is currently used in the SILC.  Defined
6507           SilcList API over the library because I didn't like the API very
6508           much.  See lib/trq/silclist.h for the API and examples of how to
6509           use the API.  Fixed various places in the code to use the new
6510           SilcList API. The SilcList is meant for lists that has a structure
6511           already defined as a list.  It is not suitable to add just some
6512           context to the list (in TRQ, the context is the list actually).
6513
6514           So, I defined SilcDList that can be used for the purpose where 
6515           predefined list structure does not exit.  This can be used as
6516           such list.  Now some context just can be added to the SilcDList.
6517           Currently this list is not used in the SILC just yet, though there
6518           are a lot places where this can replace dynamically allocated
6519           tables and I will fix these places, later, to use SilcDList.
6520           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
6521           and use TRQ internally).
6522
6523           Also fixed some annoying warning messages that the original TRQ
6524           code generated.  Also minor changes to TRQ's Makefile.in.
6525
6526         * Added support for querying by Client ID to both WHOIS and 
6527           IDENTIFY commands into server, as required by the protocol.
6528
6529         * Removed method function pointers from SilcBuffer structure. They
6530           weren't used to anything and just increased the context size for
6531           no good reason.  This change also made silc_buffer_alloc and
6532           silc_buffer_free functions inline functions.
6533
6534         * Disabled command flooding detection support until it's fixed so 
6535           that it accepts commands in but does not execute them more than once
6536           in two seconds.
6537
6538         * Added silc_net_localhost(), to return local hostname, into
6539           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
6540           that must be initialized before calling silc_client_init.
6541
6542         * Added new function: silc_server_send_notify_on_channels to send
6543           notify messages to all channels client has joined.  It is assured
6544           that the message is sent only once per client.
6545
6546         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
6547           lib/silcutil/silcutil.[ch] as silc_format function.  The new 
6548           function is generic and is used by server as well, not only by
6549           the logging routines.
6550
6551         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
6552           the provided version string was not acceptable.  Added new function:
6553           silc_ske_check_version into lib/silcske/silcske.h.  The function
6554           must be implemented by the application (client or server) and it
6555           does not reside in the SKE library.  The function checks the version
6556           string remote end sent.
6557
6558         * Added back pointers (to opaque context and to SilcSocketConnection) 
6559           into SilcPacketContext structure into lib/silccore/silcpacket.h.
6560
6561         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
6562           duplicate packet context structure.
6563
6564         * Changed `notify' client operation to send same arguments as client
6565           receives from server except for ID's.  ID's are mapped to correct
6566           ID entry and that is returned.  Also, if channel entry is not sent
6567           by server but the notify is for channel the channel entry is sent
6568           to application (otherwise application doesn't know that it is for
6569           channel (library gets it from packet's Destination ID)).
6570
6571         * Added silc_client_remove_from_channels into client library to 
6572           remove a client from all channels it has joined to.  Used when 
6573           received SIGNOFF notify from server.  Added also new function
6574           silc_client_replace_from_channels to replace old ID entry with
6575           new ID entry on all channels.  Used when received NICK_CHANGE
6576           notify from server.
6577
6578         * Fixed ID Cache list handling in silc_idlist_get_client in 
6579           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
6580           to get (or query) client by ID.
6581
6582         * Updated TODO list.
6583
6584         * Added connection authentication status message defined by the
6585           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
6586           support for these into the code in client and server side.
6587
6588         * Added generic function silc_client_send_command to send any command
6589           with variable argument list.  Application should use this function
6590           to send commands if the command functions provided by the library
6591           does not suite for the application's user interface needs.
6592
6593         * Added new `failure' client operation.  Application is notified about
6594           received failure packet if client is executing a protocol.  In this
6595           case the protocol's execution has failed.
6596
6597         * Added SKE's end notify to send the SKE_SUCCESS notify message that
6598           is required by the protocol.
6599
6600         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
6601           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
6602           error at our end.
6603
6604         * Added status flag to SilcSKE object to indicate realtime status
6605           of the SKE protocol.
6606
6607         * Application receives now exactly same command reply arguments as
6608           the library receives from server.  However, if ID is received the
6609           corresponding ID entry is returned to the application (eg. Client
6610           ID is mapped to correct SilcClientEntry entry and that is returned).
6611           Changed command_reply client operation due to this change.
6612
6613         * Changed all ID's in commands and in command replys as ID Payloads.
6614           Change affected both client and server side codes.
6615
6616           All ID's sent in SILC network (with execption of ID's in SILC
6617           Packet header) are sent in ID Payload to support variable length
6618           ID's.
6619
6620         * Server now notifies nick changes and notifies all clients on
6621           the channels about the new nickname (about the new Client ID,
6622           actually).
6623
6624         * Implemented CMODE command to change channel modes. Supports all
6625           channel modes defined by the protocol specs except ban and invite
6626           lists. (Also, private channel key mode is supported but support for
6627           setting private channel key in client is missing, thus, this mode
6628           has no effect on client side (except that server requires that the
6629           client uses private channel key and normal channel traffic does not
6630           work anymore)).
6631
6632           Also, invite mode works per se, but INVITE command does not work
6633           yet correctly, so you can set channel as invite only channel but
6634           inviting clients to the channel does not work (it is yet to be
6635           thought what's the best way to do it).
6636
6637         * Added new command SILC_COMMAND_CUMODE to change user mode on the
6638           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
6639           Implemented CUMODE command to change user's mode on the channel.
6640           Supports all modes defined by the protocol specs.
6641
6642         * Added NAMES command reply to return users modes on the channel.
6643
6644         * Removed unnecessary and slow ciphers from lib/silccrypt.
6645
6646         * Set SO_KEEPALIVE option to connection sockets by default.
6647
6648         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
6649
6650         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
6651           redefined the Notify Payload into protocol specs.
6652
6653         * Added silc_id_payload_parse_id to get ID directly from raw
6654           ID payload data.
6655
6656 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6657
6658         * Changed SILC_COMMAND_IDENTIFY in protocol specification to 
6659           accept searching by Client ID as well.
6660
6661         * Added support for LEAVE and SIGNOFF notify types in client library.
6662
6663         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
6664           to parse ID Payload from raw data.
6665
6666 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6667
6668         * Added flags parameter into silc_ske_assemble_security_properties
6669           function in lib/silcske/silcske.[ch].
6670
6671         * Changed notify client operation to fit better for notify messages
6672           sent by server.  The notify payload received from server is now
6673           passed to the application (after parsing it to SilcNotifyPayload).
6674           It is application's responsibility to retrieve the arguments
6675           from the payload and show the message the way it wants.  The message
6676           sent by server is implementation specific.
6677
6678         * Changed public keys to comply with the protocol specification.
6679           Old public keys are not supported anymore and are not compatible.
6680
6681         * Removed nickname from Channel Payload as the latest draft removed
6682           it.  The client must resolve the nickname from the NAMES command
6683           reply received when it joined the channel.
6684
6685           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
6686
6687 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6688
6689         * Fixed some errors in protocol specification drafts.
6690
6691         * Created lib/silccore/silcnotify.c to implement Notify Payload
6692           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
6693           generic payloads described by protocol specifications.  The file
6694           includes implementations for ID Payload and Argument Payload.
6695
6696         * Changed Command Payload implementation to use the new Argument
6697           Payload.  Changed command_xxxx_payload to command_payload_xxxx
6698           to comply with SILC coding conventions.
6699
6700         * Added suppport for Argument Payload handling in Notify Payload
6701           implementation as protocol requires it.  Added the new support
6702           into server and client lib as well.
6703
6704 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6705
6706         * Added support for multiple nicknames on same channel.  [n] is
6707           added locally to the nickname if there are more than one same
6708           nicknames on the channel.
6709
6710         * Server now sends all nicknames that matched WHOIS request.
6711           Client also shows the list received from server.
6712
6713         * Added TOPIC command to client side.  User can now set and show
6714           current topic on channel.
6715
6716         * Added MOTD command to client and server.  Also, server sends the
6717           motd when client connects to the server.
6718
6719         * Changed version strings to comply ISO 8601.
6720
6721 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6722
6723         * Fixed protocol error handling in client library.  It should now
6724           cope even if the SKE fails for some reason.
6725
6726         * Made new protocol specification drafts for submitting to IETF.
6727
6728         * Implemented TOPIC command to server in silcd/command.c.
6729
6730         * Added two new notify types into lib/silccore/silcnotify.h:
6731           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
6732           notify nickname change and topic setting/change on a channel.
6733
6734         * API change of command_reply operation in client library.  The
6735           application gets now the status type received from server as well.
6736
6737 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6738
6739         * Removed the function just added to lib/silcutil/silcschedule.[ch].
6740
6741         * Cras fixed and optimized the packet handling even further and
6742           it should work now.  Minor change to the prototype of function
6743           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
6744
6745 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6746
6747         * Added new function into lib/silcutil/silcschedule.[ch]:
6748           silc_schedule_with_fd to select() a specified fd.  The function
6749           returns after timeout expires or data arrives or goes.  The
6750           function is used by packet routines to wait that all data is
6751           received from network.
6752
6753         * Fixed data reading from network in lib/silccore/silcpacket.c.
6754           The code now assures that all data is read from the fd and then
6755           continues packet processing.  This was a bug fix since the code
6756           used to drop some data in some circumstances.
6757
6758         * Added new function into lib/silcclient/client.[ch]:
6759           silc_client_start_key_exchange to start key exchange after
6760           connection has been established to server.  The code internally
6761           now uses this funtion but its main purpose was to provide it
6762           for applications that perform their own connecting.  After
6763           application has created a connection it merely calls this
6764           function to start the key exchange between client and server.
6765           The library takes care of everything else after that.
6766
6767           Updated also lib/silcclient/README to explain the usage of
6768           this new function.
6769
6770         * Do not send to application information that connection has
6771           been established.  Application gets notified it by connect
6772           operation anyway.
6773
6774 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6775
6776         * Applied cras's patch to add silc_schedule_one function.  The
6777           function runs scheduler once and returns.
6778
6779         * Fixed the scheduler after cras messed it up.  The timeout
6780           handling works now as it's supposed to work.
6781
6782         * Added into lib/silccore/ silcnotify.h to include notify
6783           message types support.  Changed silc_server_send_notify*
6784           functions, in server.[ch], to support those new notify types.
6785           Added the support for the notify types into client library,
6786           as well.  Added new notify client operation into ops.h in
6787           lib/silcclient/.
6788
6789         * Changed silc_server_packet_send_to_channel to send normal
6790           packets instead of just channel message packets.  The function
6791           is now used to send the notify packets to channels.  It is not
6792           used to send channel message packets anymore, as server never
6793           sends them anymore.
6794
6795         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
6796           va_arg()s as it seems to require it nowadays.  I guess, if SILC
6797           is compiled with older va_arg() the new code should work anyway.
6798
6799 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6800
6801         * Splitted core library.  Core library (lib/silccore) includes
6802           now only SILC protocol specific core (and common) components.
6803           Created new utility library (lib/silcutil) that includes more
6804           generic purpose stuff.  The stuff for util library was taken
6805           from the old core library.  This was minor and easy split.
6806
6807         * Created SILC Client Library (lib/silcclient) that includes
6808           implementation of the SILC client without user interface.  This
6809           was major move from silc/ directory.  The code has been changed
6810           so that it is transparent towards the user interface.  The
6811           silc/ directory includes now the same user interface as before
6812           and it uses the new client library.  Read lib/silcclient/README.
6813           Basicly, the client library performs everything else related
6814           to SILC except user interface handling.  Also, configuration
6815           files are considered to be part of user interface and library
6816           does not handle them.
6817
6818           This change also changed a lot of structures, function naming etc.
6819           Most important change was that SilcClientWindow object was
6820           renamed to SilcClientConnection in the client library.  Created
6821           also new file lib/silcclient/ops.h.  Also added new files
6822           silc/local_command.[ch] and silc/client_ops.[ch].
6823
6824           All these changes were made to make it easier for user interface
6825           designers to create what ever user interface for the SILC client
6826           they want.
6827
6828           It is also expected that the server will be moved to lib
6829           directory as well and SILC Server Library will be created;
6830           sometimes in the future.
6831
6832         * Removed Local commands from lib/silccore/silccommand.h as
6833           they are application specific and new client library does not
6834           handle any of those anymore.
6835
6836         * Several functions moved to lib/silcutil/silcutilc.[ch] from
6837           old client implementation in silc/.
6838
6839         * Added support for callback functions in SILC_LOG_* macros.
6840           Application can now set its own callbacks that will be called
6841           instead of using the default functions that will always print
6842           the debug messages to stderr (or stdout).  Also, debugging can
6843           now be disabled by setting silc_debug to FALSE and re-enabled by
6844           setting it to TRUE.  Note, that logging will still work even
6845           if debugging is disabled.
6846
6847           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
6848           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
6849           silc_log_reset_debug_callbacks.
6850
6851         * To enable debugging in silc client one must give now -d
6852           option on command line.
6853
6854         * Changed silc_schedule_init to automatically allocate task queues
6855           if they are not allocated before calling it.
6856
6857 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6858
6859         * Added GMP 3.1 into math library.
6860
6861 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6862
6863         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
6864           a channel in SILC network.  The packet is used by servers and
6865           routers to notify other routers that user has left a channel.
6866           This little feature was missing until now.  Added the feature
6867           to protocol specification as well.
6868
6869           Added functions: silc_server_send_remove_channel_user and
6870           silc_server_remove_channel_user into server.[ch].
6871
6872         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
6873           lib/silccore/silcpacket.h.  However, they are not implemented
6874           yet.
6875
6876 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6877
6878         * Fixed joining to a channel and sending channel messages
6879           between server and router.  The channel message sending should
6880           now work inside a cell.
6881
6882 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6883
6884         * Fixed the private message sending between server and router.
6885           The private message sending should now work inside a cell.
6886
6887         * Added silc_server_replace_id into server.[ch] to replace
6888           existing ID in the SILC network.
6889
6890         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
6891           and silc_idlist_replace_server_id into idlist.[ch] in server.
6892
6893 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6894
6895         * Fixed the server to server connections.  Server can again now
6896           connect to router.  Router to router connections probably does
6897           not work just yet.
6898
6899 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6900
6901         * Added dynamic protocol registering support.  Now protocols can
6902           registered and unregistered on the fly.  Patch by cras.
6903
6904 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6905
6906         * Added lib/contrib directory to hold routines that some platforms
6907           don't have but are needed by SILC.
6908
6909         * Added getopt.c, getopt1.c and getopt.h from GNU C library
6910           into lin/contrib to provide getopt() and getopt_long() for
6911           those who don't have it.
6912
6913 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6914
6915         * Added AWAY command to client.  When away message is set and
6916           client receives a private message packet the client automatically
6917           replies to the sender with the away message.
6918
6919         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
6920           bug seemed to be the cause of recent problems when compiling
6921           with gcc-2.95.
6922
6923         * Added version detection support to SKE protocol specification
6924           and added the new changes to the SKE implementation as well.
6925           There were other minor changes in the SKE protocol as well.
6926
6927           Many changes in lib/silcske/silcske.[ch] and in
6928           lib/silcske/payload.[ch].
6929
6930         * Added ^U functionality, clear input line.  Patch from cras.
6931
6932 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6933
6934         * Mainly small bugfixes on core library.  Fixed some debugging
6935           logging and buffer overflow in silclog.c.
6936
6937         * Updated config.sub and config.guess on the distribution tree.
6938
6939 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6940
6941         * Added command lagging support in server. Client may execute
6942           commands now only once in two seconds.
6943
6944 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6945
6946         * Optimized packet reception. MAC computation and checking is now
6947           also more optimized.  A lot previously duplicated code is now
6948           used as generic by both client and server.
6949
6950         * Fixed key pair generation in clientutil.c
6951
6952 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6953
6954         * Added into lib/silccore/silcbufutil.[ch] new function;
6955           silc_buffer_realloc.
6956
6957         * Moved generic packet sending/encryption functions to 
6958           lib/silccore/silcpacket.[ch] from client and server.  Some
6959           rewriting of the functions.
6960
6961         * Moved all generic packet reception/decryption functions to
6962           lib/silccore/silcpacket.[ch] from client and server.  The
6963           packet processing is now much cleaner in both client and server.
6964           These were major changes in both client and server.
6965
6966         * Created many common functions in server to do packet sending.
6967           Previously code were duplicated a lot, this has been removed
6968           with these changes.
6969
6970 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6971
6972         * Rewrote major parts of the ID cache system.  Don't know 
6973           whether it is better now or not but at least the API is more
6974           cleaner now.
6975
6976         * Major rewrite on ID cache stuff on client because of the ID
6977           cache API changes.  Added idlist.c to client.
6978
6979         * Also major rewrite on ID cache stuff on server as well.
6980           Major rewrite of idlist.[ch]. SilcXXXList's are now named
6981           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
6982           in hand, instead they are all put into the ID cache system now.
6983           All server_idlist_* routines uses ID cache now instead of
6984           traversing its own lists (those lists does not exist anymore).
6985           SilcIDList though still exists.  Also, SilcXXXEntry's are
6986           now pointers.
6987
6988 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
6989
6990         * Finally made the SKE implementation compliant to the protocol
6991           specification.  All mp integers are now binary encoded as
6992           opposed being HEX encoded.
6993
6994         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
6995           from binary data.
6996
6997         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
6998           functions: silc_[encode/decode]_pem.  Also added function
6999           silc_encode_pem_file to PEM encode with newlines ('\n') for
7000           saving into a file.
7001
7002         * SILC public keys are now encoded either PEM or binary.  Same
7003           option is for private keys as well.  By default private keys
7004           are binary encoded and public keys PEM encoded.  Silly HEX
7005           encoding were removed.
7006
7007         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
7008           function to create fingerprints.
7009
7010         * Fixed a bug in SHA1; does not change the original data anymore.
7011
7012         * Partly implemented INFO command on client and server side.
7013           Fixed CLEAR command.  Changes to SERVER command; show current
7014           server(s) when giving command without arguments.  Added
7015           VERSION command to client.
7016
7017         * Added check to server that unregistered connections cannot
7018           execute commands (unless it is specificly allowed).
7019
7020 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7021
7022         * Fixed screen refresh.
7023
7024         * Fixed channel joining bug from client.  On some circumstances
7025           client tried to join to a channel it had already joined.
7026
7027         * Added public key verification process into client's protocol.c.
7028           The client now verifies the public key from user and saves
7029           it into ~./silc/serverkeys/ directory. 
7030
7031           Added into: clientutil.[ch]: silc_client_verify_server_key.
7032
7033         * Changed SKE protocol's silc_ske_initiator_finish function
7034           to accept callback function that verifies the received public
7035           key.  Removed old silc_ske_verify_public_key function.
7036
7037 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7038
7039         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
7040           silc_pkcs_private_key[_data]_set.
7041
7042         * Made the password and public authentication more cleaner in
7043           server's protocol.c.
7044
7045         * Removed historic and obsolete protocol `channel_auth' from
7046           both client and server.
7047
7048         * Removed wrong way of sending command status messages from
7049           server to client in server's command.c.  The old way violated
7050           protocol specification.  
7051
7052           Changes to silccore/silccommand.[ch]: removed
7053           silc_command_encode_status_payload -> not needed anymore,
7054           changed silc_command_encode_payload_va to accept extra
7055           argument on variable argument list.  The argument type must
7056           now be provided to the function.  Also, added new function:
7057           silc_command_encode_reply_payload_va which is same as
7058           normal command_encode_payload_va except command status type
7059           is provided as extra argument.
7060
7061 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7062
7063         * Added ~./silc directory handling.  The directory includes the
7064           public and private keys for the client.
7065
7066           Added silc_client_check_silc_dir, silc_client_create_identifier
7067           and silc_client_load_keys.
7068
7069         * Implemented SILC protocol compliant public key.  Added public
7070           and private key saving to and loading from files.
7071
7072           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
7073           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
7074           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
7075           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
7076           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
7077
7078           Implemented: silc_pkcs_save_[public/private]_key[_data] and
7079           silc_pkcs_load_[public/private]_key.
7080
7081 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7082
7083         * Added silc_server_get_route (route.[ch]) to get connection
7084           data for the fastest route for given ID.
7085
7086         * Implemented INVITE command on client and server.  The command
7087           were re-defined in the SILC Protocol Specification and the
7088           implementation now complies with the specification.
7089
7090         * Implemented PING command on client and server.
7091
7092         * Implemented NAMES command on client and server.  The server side
7093           supports currently only normal server not router server yet.
7094           Some changes to NAMES definition in SILC protocol specification.
7095
7096 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7097
7098         * Implemented LEAVE command on client and server.
7099
7100         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use 
7101           again.  This change was made to the protocol as well.  Server
7102           should not violate the protocol specification anymore.
7103
7104 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
7105
7106         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
7107           was tested.  SOCKS4 was not but should work anyway.