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