Tue Apr 10 12:40:19 CEST 2007 Jochen Eisinger <coffee@silcnet.org>
[silc.git] / CHANGES
1 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
2
3         * Only pass -rpath to libtool when building shared libraries.
4           Affected file lib/Makefile.ad
5         * Removing the stray "s" in configure.ad
6
7 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
8
9         * Redraw the screen after creating a new key.  Affected file
10           apps/irssi/src/silc/core/clientutil.c
11
12 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
13
14         * Added SILC Client setting /set nickname_format that specifies
15           the nickname format string.  Changed default nickname format
16           string to "%n#%a".  Affected file is 
17           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
18
19         * Fixed nickname parsing with WHOIS command to accept formatted
20           nicknames.  Changed the silc_client_get_clients_local to allow
21           the searched nickname to be formatted nickname.  Removed %s and
22           %S nickname formatters.  Affected files are in lib/silcclient/.
23
24         * Added silc_client_nickname_parse to Client library API.  Affected
25           file is lib/silcclient/silcclient.h.
26
27         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
28           commands.  Affected file are
29           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
30
31 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
32
33         * Incorporate SILC Plugin patches.  Affected files are
34           apps/irssi/src/fe-common/silc/module-formats.{c,h},
35           apps/irssi/src/silc/core/clientutil.{c,h},
36           apps/irssi/src/silc/core/silc-core.c,
37           apps/irssi/src/silc/core/silc-chatnets.{c,h},
38           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
39           apps/irssi/src/fe-common/silc/module.h
40
41 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
42
43         * In notify handling resolve user entries many times if the
44           resolving timedout.  Affected file lib/silcclient/client_notify.c.
45
46         * silc_client_get_clients_local do not return any invalid entries.
47           Affected file is lib/silcclient/client_entry.c.
48
49         * Do not print "there are now xx user on this channel" for users
50           that actually aren't anymore on the channel.  Affected file
51           is apps/irssi/src/client_ops.c.
52
53 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
54
55         * When joining channels with a password given in the config file,
56           use it.  Also use it when cycling (it would be better to get
57           the password from the server, but this isn't possible in SILC).
58           Affected files apps/irssi/src/silc/core/silc-servers.c,
59           apps/irssi/src/silc/core/silc-channels.c
60
61 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
62
63         * Import perl script for sign_messages from silc-plugin.  Affected
64           file apps/irssi/scripts/silc.pl
65
66 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
67
68         * Only wait for a nick on connecting, when it differs
69           (not counting case) from the username.  Affected file
70           is apps/irssi/src/silc/core/silc-servers.c
71
72 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
73
74         * Use time settings for lag settings.  Affected file is
75           apps/irssi/src/silc/core/silc-lag.c
76
77 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
78
79         * Added silc_thread_yield.  Affected file is 
80           lib/silcutil/silcmutex.h.
81
82 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
83
84         * Fixed WHOIS command and requested attributes handling in
85           client library.  Affected files are lib/silcclient/command.c
86           and lib/silcclient/client_attrs.c.
87
88         * Fixed silc_time_value to actually work.  Added new function
89           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
90
91 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
92
93         * SILC Client 1.1 beta2.
94
95 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
96
97         * Fixed client to properly abort TCP stream creation when
98           giving /QUIT.  Affected file 
99           apps/irssi/src/silc/core/silc-servers.c.
100
101         * Fixed several connecting aborting crashes from the client
102           library, packet engine and socket stream.  Affected files
103           are in lib/silclient/, lib/silccore/silcpacket.c and
104           lib/silcutil/unix/silcunixsocketstream.c.
105
106         * Fixed private key export double free crash in key generation.
107           Affected file is lib/silccrypt/silcpk.c.
108
109         * Fixed FSM event waiting when there are multiple signallers
110           and the waiter goes away after the first signal.  Affected
111           file in lib/silcutil/silcfsm.c.
112
113 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
114
115         * Fixed FSM event signalling to check if the waiter has gone
116           away already.  Affected file is lib/silcutil/silcfsm.c.
117
118         * Fixed counter mode encryption/decryption to handle non-padded
119           SILC packets correctly.  The silc_cipher_set_iv now
120           in counter mode resets for a new block.  Affected files are
121           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
122
123 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
124
125         * SILC Client 1.1 beta1.
126
127         * Memory leak fixes around the libraries.
128
129 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
130
131         * Added better check for epoll() in configure.  Affected file
132           is lib/configure.ad.
133
134 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
135
136         * Fixed per scheduler data input buffer in packet engine.  Use
137           list of inbufs instead of just one so that multiple streams
138           can do partial reads to different buffers.  Affected file is
139           lib/silccore/silcpacket.c.
140
141         * Fixed WATCH notify handling in client library.  Affected file
142           is lib/silcclient/client_notify.c.
143
144 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
145
146         * Fixed packet wrapper stream API to support encoder/decoder
147           for packets, and to handle partial reading correctly.  Fixed
148           also inbuf size checking in reading to have enough space before
149           reading.  Affected files are lib/silccore/silcpacket.[ch].
150
151         * Rewrote file transfer in client library.  Affected files are
152           in lib/silcclient/.
153
154         * Added TCP/UDP listener (internal) API to client library to have
155           generic way of dealing with listeners.  Fixed Key Agreement and
156           file transfer to use it.  Affected files are in lib/silcclient/.
157
158         * Fixed SKE to process SUCCESS packets synchronously and to call
159           completion synchronously.  Affected file is lib/silcske/silske.c.
160
161         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
162
163         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
164           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
165
166 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
167
168         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
169           to client library.  Affected file is
170           lib/silcclient/client_register.c.
171
172         * Serialize NICK and JOIN commands to avoid problems locally
173           with changing ID while joining to channel.  Affected file is
174           lib/silcclient/command.c.
175
176         * Fixed entry resolving while handling incoming JOIN notify.
177           Handle properly cases, in re-processing of notify packets, where
178           the IDs may become invalid while resolving the entry (like nick
179           change).  Entry is invalid if it doesn't have nickname, and such
180           entries are not delivered to application anymore.  These fixes
181           problems of not seeing JOINs when remote user changes nickname
182           at the same time.  Affected files are in lib/silcclient/.
183
184 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
185
186         * Added support for computing message payload MAC in new way
187           (SILC Protocol version 1.3).  Bakcwards support for old way
188           remains.  Affected files are lib/silccore/silcmessage.[ch].
189
190 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
191
192         * Added SilcRwLock API, a read/write lock.  Affected files are
193           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
194
195 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
196
197         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
198
199 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
200
201         * The silc_schedule_set_listen_fd now returns boolean value.
202           Fixed FD task adding to check correctly for already added
203           FD tasks.  Added stricter error checking for FD scheduling
204           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
205           and lib/silcutil/unix/silcunixschedule.c.
206
207         * The silc_stream_set_notifier now returns boolean value.  Changed
208           all streams to support and check for the error condition.
209           Affected files are in lib/silcutil/.
210
211         * Fixed SKE library session aborting and deletion.  Affected
212           file are lib/silcske/silcske.c.
213
214 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
215
216         * Implemented PKCS #1 with appendix with hash OID in the
217           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
218           lib/silccrypt/silchash.[ch] and
219           lib/silcasn1/silcasn1[_encode|decode].[ch].
220
221 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
222
223         * Added support for Version (V) SILC public key identifier.
224           Affected files are lib/silccrypt/silcpk.[ch].
225
226 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
227
228         * Rewrote connection auth request in client library.  It is now
229           done automatically by the library and the resolved method given
230           as a hint to get_auth_method client operation.  Affected files
231           are lib/silcclient/.
232
233 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
234
235         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
236           It can be used to wrap SilcPacketStream into SilcStream.
237
238         * Fixed %p formatting from silc_snprintf.  Affected file is
239           lib/silcutil/silcsnprintf.c.
240
241         * Ported SFTP library to new utility library.  Ported also
242           the SFTP testers.  Affected files in lib/silcsftp/.
243
244 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
245
246         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
247           of silc_snprintf, silc_vsnprintf, silc_asprintf and
248           silc_vasprintf.
249
250 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
251
252         * Added preliminary Symbian support.  Changes around the source
253           tree.  The symbian/ directory now includes Carbide.c++ project
254           files to compile the sources.
255
256         * Added silc_snprintf.  Affected files are
257           lib/silcutil/silcstrutil.[ch].
258
259 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
260
261         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
262           macros.  SILC_FSM_CONTINUE macro now immediately calls the
263           next state instead of first returning back to FSM.  Helps
264           in debugging crashes etc.
265
266           Removed FSM Semaphores.  Introduced FSM Event which is
267           asynchronous event.   Affected files are in lib/.
268
269         * Added epoll(7) support to SILC Scheduler.  It is used by default
270           if it is available.  Affected files are
271           lib/silcutil/silcschedule.[ch],
272           lib/silcutil/unix/silcunixschedule.c.
273
274 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
275
276         * Added CTR mode to AES.  Simplified cipher implementation API
277           more.  Affected files are in lib/silccrypt/.
278
279 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
280
281         * Removed `detach' client operation.  The detachment data is
282           now delivered in SILC_COMMAND_DETACH command reply to
283           application.  Affected file in lib/silcclient/.
284
285         * Rewrote resuming/detaching in client library.
286
287         * Added boolean encryption indicator for silc_cipher_set_key.
288           Affected files lib/silccrypt/silccipher.[ch].
289
290 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
291
292         * Added silc_likely and silc_unlikely macros for GCC branch
293           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
294
295         * Added assembler AES optimization.  Cleaned up the SILC Cipher
296           implementation API.  Affected files are in lib/silccrypt/.
297
298 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
299
300         * Changed back the SILC_FSM_THREAD_WAIT operation to not
301           continue to next state if thread is finished already.  That
302           check is not done anymore.  Affected files are
303           lib/silcutil/silcfsm.[ch].
304
305 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
306
307         * Removed silc_packet_[get|set]_ciphers and
308           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
309           handle REKEY_DONE packet sending in rekey.  Affected files
310           are lib/silccore/silcpacket.[ch].
311
312         * Added silc_fsm_is_started.  Affected files are
313           lib/silcutil/silcfsm.[ch].
314
315         * Added settings sign_channel_message, sign_private_message
316           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
317           support for key agreement in /KEY command. Affected files
318           in apps/irssi/src/silc/core/.
319
320         * During SILC Client initialization forward log messages to
321           stderr.   Affected files in apps/irssi/src/silc/core/.
322
323 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
324
325         * Added silc_ske_get_key_material.  Affected files are
326           lib/silcske/silcske.[ch].
327
328         * Added silc_packet_stream_is_udp.  Affected files are
329           lib/silccore/silcpacket.[ch].
330
331         * Added SKE packet retransmission support with UDP transport.
332           Affected file is lib/silcske/silcske.c.
333
334 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
335
336         * Added silc_socket_stream_is_udp.  Affected file is
337           lib/silcutil/silcsocketstream.[ch].
338
339         * Added UDP transport support to packet engine.  Affected file
340           is lib/silccore/silcpacket.c.
341
342         * Added silc_socket_stream_is_udp.  Affected file is
343           lib/silcutil/silcsocketstream.[ch].
344
345 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
346
347         * Added silc_packet_send_va[_ext] to send variable argument
348           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
349
350         * Timeout freelist garbage collection added to scheduler.
351           Affected file lib/silcutil/silcschedule.c.
352
353 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
354
355         * Added silc_show_public_key_file to
356           lib/silcapputil/silcapputil.[ch].
357
358         * Added SILC_STR_ADVANCE support for buffer unformatting.
359           Affected file lib/silcutil/silcbuffmt.c.
360
361 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
362
363         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
364
365         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
366
367         * silc_fsm_continue[_sync] now cancels erlier timeout set with
368           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
369
370 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
371
372         * Added SILC_STR_FUNC to buffer format API.  Affected files
373           are lib/silcutil/silcbuffmt.[ch].
374
375         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
376
377         * No more memory allocation for message payload parsing.
378           Pre-allocated buffer can be used with message payload encoding.
379           Affected files lib/silccore/silcmessage.[ch].
380
381 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
382
383         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
384           to silcutil/silcbuffmt.[ch].
385
386 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
387
388         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
389           Affected file lib/silcutil/silcbuffmt.[ch].
390
391         * Removed silc_schedule_signal_[un]register and
392           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
393           to add signal task.  Only one callback per signal may be
394           added.  The signals are now automatically called back to
395           caller.  Affected files lib/silcutil/silcschedule.[ch] and
396           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
397
398         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
399
400         * Added SilcSKEParams for SKE parameters and simplied even more
401           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
402           Added support for IV included and session port handling with
403           UDP/IP connections.
404
405         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
406           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
407           which is called after every rekey when IV Included flag is used.
408           See SILC specifications for details.
409
410 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
411
412         * Added lib/silcapputil and moved SILC application specific
413           utility routines from the generic util library lib/silcutil
414           to the new library.  Removed lib/silcidcache and moved that
415           to lib/silcapputil as well.
416
417 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
418
419         * Added SILC_STR_ADVANCE.  Affected file is
420           lib/silcutil/silcbuffmt.[ch].
421
422         * The silc_buffer_strformat preserves buffer locations now.
423
424         * Added lib/silcutil/silcatomic.h for atomic operations.
425
426 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
427
428         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
429           server.
430
431         * Fixed MIME deocing when data portion is not present.
432           Affected file lib/silcutil/silcmime.c.
433
434 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
435
436         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
437
438         * Added IV Included support to packet routines, to allow
439           packet sending and receiving on UDP/IP.  Affected files are
440           lib/silccore/silcpacket.[ch].
441
442         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
443
444 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
445
446         * Added UDP support to network and socket stream library.
447
448 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
449
450         * Added conditional variables.  New files are
451           lib/silcutil/silcondvar.h and platform specific implementations.
452
453 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
454
455         * make sure session->hostname and session->port are valid before the
456           application callback is done, since things will go wrong if the
457           application immediately calls silc_client_file_receive. Affected
458           file lib/silcclient/client_ftp.c.
459           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
460
461 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
462
463         * New SILC PKCS API enabling support for other public keys
464           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
465
466         * Separated SILC Public Key Payload routines from the PKCS API
467           to lib/silccore/silcpubkey.[ch].
468
469 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
470
471         * Added SILC Key Repository library, lib/silcskr.
472
473         * Added SILC Server library, lib/silcserver.
474
475 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
476
477         * MIME objects in attributes now use SilcMime.  Affected files
478           are lib/silccore/silcattrs.[ch].
479
480 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
481
482         * Synchronize semaphore posting for real threads in FSM.
483           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
484
485 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
486
487         * Added silc_file_set_nonblock.  Affected file is
488           lib/silcutil/silcfileutil.h.
489
490         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
491
492 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
493
494         * FSM based implementation of SILC SKE.  Simpler interface also.
495           Affected files are in lib/silcske/.
496
497         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
498
499 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
500
501         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
502           silc_mime_parse is available but deprecated.
503
504         * Check that packet is valid when processing key exchange,
505           authentication and rekey protocols.  Fixes a crashbug.
506           Affected files are apps/silcd/protocol.c and
507           lib/silcclient/protocol.c.
508
509         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
510           all hash buffers to use that instead of fixed values.
511
512 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
513
514         * Added SHA-256 to crypto library.  The SHA-256 takes now
515           precedence over SHA-1.
516
517 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
518
519         * Check for valid return value from regcomp.  Affected file
520           lib/silcutil/unix/silcunixutil.c.
521
522 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
523
524         * Fixed silc_hash_uint to work with integers.  Affected
525           file lib/silcutil/silcutil.c.
526
527 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
528
529         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
530
531 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
532
533         * Fixed channel public key list saving on JOIN command reply
534           on backup router.  Affected file apps/silcd/command_reply.c.
535
536 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
537
538         * Added default limit how many channels client can join,
539           default is 50.  Added 'channel_join_limit' configuration
540           option to server too.  Affected files are apps/silcd/command.c
541           and serverconfig.[ch].
542
543 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
544
545         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
546           On Toolkit the server and client are not compiled by default.
547           Affected file configure.ad.
548
549 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
550
551         * Added lib/contrib/getopt.[ch] for platforms that don't
552           have it (it is not GPL implementation).
553
554         * Fixed compilation when pkg-config is used.
555
556 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
557
558         * A comma in invite/ban string is invalid, check for it.
559           Affected file apps/silcd/server_util.c.
560
561         * Added SERVICE command to the server.  It parses the command
562           request but SILC Server does not support services for the
563           time being.  Affected file apps/silcd/command.[ch].
564
565         * Added SERVICE command and command reply to client library.
566           It is however incomplete.  Updated Toolkit documentation.
567           Affected files are lib/silcclient/command[_reply].[ch].
568
569         * Fixed IDENTIFY/WHOWAS command reply to send the username
570           correctly (uninitialized buffer).  Affected file is
571           apps/silcd/server_query.c.
572
573 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
574
575         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
576           finalizes the major restructuring of the CVS tree.
577
578 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
579
580         * Send empty MOTD reply if MOTD file cannot be read.
581           Affected file silcd/command.c.
582
583 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
584
585         * Optimized primer number generator to use simpler conversion
586           routines.  Also assure that the prime number will have the
587           highest bit set after modifying it.  Affected file is
588           lib/silcmath/silcprimegen.c.
589
590         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
591
592         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
593           for now only for testing purposes, it will not be delivered
594           in any distribution for now.
595
596         * Removed NSS MPI from the source tree.  Due to upcoming
597           license change for the SILC Toolkit, we cannot deliver the
598           NSS MPI anymore.  I decided to replace it in all distributions
599           with public domain library.
600
601         * Removed GNU regex from lib/contrib and introduced free
602           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
603           GNU regex compatible API to it (only partial).
604
605         * Removed getopt routines from lib/contrib.
606
607 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
608
609         * Use silc_server_send_command_reply to send replies instead
610           of encoding packet itself.  Affected file silcd/command.c.
611
612         * Added command sending and receiving statistics to server.
613           Affected files in silcd/.
614
615         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
616           with GCC, for it not to warn about pointer signedness.
617
618 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
619
620         * Added context to the SilcIDCache destructor.  Affected
621           files are lib/silccore/silcidcache.[ch],
622           lib/silcclient/client.c and silcd/server.c.
623
624 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
625
626         * Added pkg-config check to configure.
627
628         * The PublicKeyDir must not be used with Admin block in server
629           config.  Affected file silcd/serverconfig.c.
630
631 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
632
633         * Added Autodist.
634
635 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
636
637         * Handle empty LIST command reply correcttly in server.  Affected
638           file silcd/command_reply.c.
639
640         * Handle empty LIST command reply correctly in client library.
641           The application will now receive one LIST command reply with
642           all arguments set to NULL if there are no channels.  Updated
643           Client Library documentation accordingly.  Affected file
644           lib/silcclient/command_reply.c.
645
646 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
647
648         * Added channel name string stringprep profile to the protocol
649           and implementation to allow a little free'er channel name
650           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
651
652         * Added silc_channel_name_[check|verify] to check and verify
653           channel name strings.  Affected files are
654           lib/silcutil/silcstrutil.[ch].
655
656         * Added support for the new channel name preparation in client
657           library and server.  Affected files in lib/silcclient and
658           silcd/.
659
660 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
661
662         * Added the Autodist into the source tree.  It replaces the
663           old ./prepare.  It can be used to create distributions as
664           previously.  See README.CVS and README.DIST.  See
665           distributions in distdir/.
666
667 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
668
669         * Make sure query sends at least an error back if nothing
670           more is sent.  Affected file silcd/server_query.c.
671
672 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
673
674         * During query, check if the original command caller goes
675           away.  If it does, stop the query.  Affected file
676           silcd/server_query.c.
677
678         * Check for valid channel creation in JOIN command reply.
679           Affected file lib/silcclient/command_reply.c.
680
681         * Handle the resolver counter in silc_client_get_users_by_channel
682           callback correctly.  Fixed auto-join bug in Gaim.  Affected
683           file lib/silcclient/idlist.c.
684
685 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
686
687         * Added some better error messages.  Affected file
688           silcd/command_reply.c and packet_receive.c.
689
690         * Handle error in WATCH command propely on backup router.
691           Affected file silcd/command.c.
692
693         * Fixed freeing of unfreeable variable in WHOIS command reply.
694           Affected file silcd/command_reply.c.
695
696 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
697
698         * Added pkg-config .pc file creation for silc core library
699           and silcclient library.  A patch by c0ffee.
700
701         * Removed the need for GNU Libidn.  Added the simple stringprep
702           from libidn into lib/contrib/.  It is now used also on Windows
703           build.
704
705 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
706
707         * Simplified the invite and ban string handling in the
708           server.  Check for valid invite and ban arguments also.
709           Affected file silcd/server_util.c.
710
711 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
712
713         * Added WATCH list announcing in backup router protocol.
714           Affected files are silcd/command.c, server.c, server_backup.c.
715
716         * Do not change users mode to founder on normal server/backup
717           if the founder mode is set, and user is first one to join.
718           Affected file silcd/pcaket_receive.c.
719
720         * Do not send CUMODE_CHANGE notify back to sender.  Affected
721           file silcd/packet_receive.c.
722
723         * Added getrusage() to take noise in SILC RNG.  A patch by
724           Mika Boström.  Affected files are configure.in.pre,
725           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
726
727 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
728
729         * Splitted the SILC libraries configuration into a configure
730           fragment into lib/configure.ad.  It is now possible, once
731           this feature is added, to specify whether to compile or not
732           compile included SILC libraries.  Affected files are
733           configure.in.pre, lib/silcmath/mpi/configure.ad,
734           lib/configure.ad, Makefile.defines.pre and
735           Makefile.defines_int.pre.
736
737         * Added --with-silc-includes and --with-silc-libs to configure.
738           If specified the included libs are not compiled, but the
739           specified libs are used.  Pkg-config is not yet supported.
740           Affected file configure.in.pre.
741
742         * Fixed WATCH command handling on backup router.  Router does not
743           send the watch command any more to backup if it originates from
744           backup.  Affected file silcd/command.c.
745
746 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
747
748         * Changed announcing to not announce unregistered clients.
749           Affected file silcd/server.c.
750
751         * Fixed username handling in command reply.  Affected file
752           silcd/command_reply.c.
753
754         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
755
756 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
757
758         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
759           Affected file: includes/silcincludes.h.in
760
761         * bool is defined as _Bool on Mac OS X now.
762           Affected file: lib/silcutil/silctypes.h
763
764 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
765
766         * Added support for UTF-8 nicknames, channel names and
767           server names in client library.  Affected files in
768           lib/silcclient/.
769
770         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
771           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
772           software to check how Toolkit has been compiled.
773
774 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
775
776         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
777
778         * Use silc_utf8_str[n]casecmp instead of strcmp routines
779           in library and in SILC Client when dealing with nicknames
780           and other identifier strings.  Affected file in client lib
781           and irssi.
782
783         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
784           irssi/src/silc/core/silc-servers.c.
785
786 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
787
788         * Fixed idcache to work with the new identifier strings.
789           Affected file lib/silccore/silcidcache.c.
790
791         * Added UTF-8 hash and compare function for SilcHashTable.
792           Affected file lib/silcutil/silcutil.[ch].
793
794         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
795           Affected file lib/silcutil/silcstringprep.[ch].
796
797         * Changed the identifier string handling to include the original
798           format in client, server, channel entries and normalized
799           format in cache.  Affected files in silcd/.
800
801 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
802
803         * Added support for the new identifier strings and their
804           validity checking.  Nicknames, channel names and usernames
805           can now include practically any kind of letters and various
806           other characters.  Affected files in silcd/ and in libraries.
807
808           NOTE: comparing these strings should now be done with memcmp()
809           to check binary compatibility.  All these strings are normalized
810           and casing is irrelevant.
811
812         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
813           as easy function for applications to check whether identifier
814           strings are valid.
815
816 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
817
818         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
819           file lib/silcutil/silcutf8.c.
820
821         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
822
823 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
824
825         * Make public key in getkey reply mandatory.  Affected file
826           lib/silcclient/command_reply.c
827
828 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
829
830         * Added Parameter dont_register_crypto_library to
831           SilcClientParam. If set to TRUE, silcclient library will
832           not initalize the Crypto Libraries and application
833           will need to do it. Affected file lib/silcclient/silcclient.h,
834           lib/silcclient/client.c.
835
836 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
837
838         * Imported new silc_utf8_[encode|decode] routines from
839           my internal SILC 1.1 source tree.  New encodings added:
840           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
841           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
842           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
843           SILC_STRING_LDAP_DN.
844
845         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
846
847         * Implemented stringprep (RFC 3454) API.  Internally we use
848           GNU Libidn's stringprep, for now, so it is required now to
849           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
850
851         * Added checking for GNU Libidn and --with-libidn to configure.
852
853 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
854
855         * If the passphrases entered do not match while generating a new key,
856           completly start over instead of going into an infinite loop asking
857           the user to re-enter the passphrase correctly.  Affected file
858           lib/silcutil/silcapputil.c
859
860 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
861
862         * Make sure server is removed from backup list when it is
863           deleted.  Affected files silcd/command.c, server.c,
864           server_util.c.
865
866         * Close socket when connecting to router fails.  Affected
867           file silcd/server.c.
868
869 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
870
871         * Adopt configuration toolchain to current auto-tools.
872           Affected files prepare, irssi/configure.in
873         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
874           redo that.  Affected files irssi/src/silc/core/client_ops.c,
875           irssi/src/fe-common/silc/fe-silc-channels.c
876         * Take over command line options into silcclient data structure.
877           Affected file irssi/src/silc/core/silc-core.c
878
879 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
880
881         * Do not try to initiate backup resuming protocol forever.
882           Affected file silcd/server_backup.c.
883
884 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
885
886         * ID change in resuming has to be done before changing
887           detached client's modes, since the ID change may fail and
888           leave ghosts on the network.  Affected file is
889           silcd/packet_receive.c.
890
891 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
892
893         * Fixed Win32 scheduler to not stuck anymore.  A patch from
894           Juha Räsänen.  Affected file is
895           lib/silcutil/win32/silcwin32schedule.c.
896
897         * Fixed QoS parsing for connection blocks in server.  Affected
898           file is silcd/serverconfig.c.
899
900         * Fixed server statistics increasing in server.  Affected file
901           is silcd/server.c.
902
903         * The CLOSE command now marks backup router as self disconnected
904           to avoid resuming problems.  Affected file silcd/command.c.
905
906 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
907
908         * When using silc_net_create_connection[_async], and your system can
909           create IPv6 sockets, it will try to connect to the IPv6 host.
910           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
911           file lib/silcutil/unix/silcunixnet.c
912
913 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
914
915         * Check for valid route when receiving packet from router and
916           when routing it to local server in the cell.  A patch from
917           Matt Miller.  Affected files silcd/router.c and server.c.
918
919 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
920
921         * Couldn't detach and reattach twice, because of the previous
922           commit. Affected file silcd/packet_receive.c
923
924 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
925
926         * Added check to ignore Port value if Initiator is FALSE.
927           Remote router coudln't connect if Port was set. Affected file
928           silcd/serverconfig.c
929
930         * If some client tries to resume more than once at the same time,
931           server crashed. Router didn't crash, but showed odd behaviour
932           (didn't allow clients to join anymore, ..). Affected files
933           silcd/packet_receive.c silcd/idlist.h
934
935 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
936
937         * Destroy the file transfer session in silc_client_file_close
938           with timeout.  Affected file lib/silcclient/client_ftp.c.
939
940         * Call SFTP server monitor in READ and WRITE after the actual
941           operations.  Affected file lib/silcsftp/sftp_server.c.
942
943 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
944
945         * Create one configure script from configure fragments
946           (configure.ad).  This is a first step towards new distribution
947           system.  Affected files prepare, configure.in.pre,
948           lib/silcmath/mpi/configure.ad.
949
950 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
951
952         * Removed expiring of client key pair.  Affected file is
953           irssi/src/silc/core/clientutil.c
954
955 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
956
957         * Check the number of connections from real number of
958           connections instead of socket number, when deciding if
959           server is full.  Affected files are silcd/server.c,
960           server_internal.h and silcd.c.
961
962         * Clarified the connections_max meaning in General section
963           in doc/example_silcd.conf.in.
964
965         * The reconnect_keep_trying default value set to TRUE
966           if it is not defined in the config file.  Affected file
967           silcd/serverconfig.c.
968
969 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
970
971         * Fixed crashbug in connection closing, after a protocol
972           completion callback, which might have closed it already.
973           Affected file silcd/server.c.
974
975         * Fixed rekey with PFS in backup router.  It did not allow
976           rekeys with PFS, and when the rekey protocol timedout
977           it crashed the backup router without the above fix.  Affected
978           file silcd/packet_send.c and server.c.
979
980 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
981
982         * The silc_client_add_channel_private_key now returns the
983           private key context if pointer is given as argument.
984           Affected files are lib/silcclient/silcclient.h and
985           client_channel.c.
986
987         * Added support for using channel private keys in SILC
988           Client Library even if the private key mode is not set
989           on the channel.  Affected file lib/silcclient/client_channel.c.
990
991         * The channel private key used to decrypt message is now
992           delivered to the application in the 'channel_messageÃ' client
993           operation.  Affected files are lib/silcclient/silcclient.h
994           and client_channel.c.
995
996         * Fixed wrong arg type for user limit in CMODE command reply.
997           Affected file silcd/command.c.
998
999         * The user limit is now taken and saved to SilcClientEntry in
1000           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1001           Affected files lib/silcclient/silcclient.h, command_reply.c
1002           and client_notify.c.
1003
1004         * Added support to the new private message key indicator
1005           packet.  Added a new function to the client library:
1006           silc_client_send_private_message_key_request.  The sender
1007           indicates to be initiator, and receiver is responder.
1008           Added the indicator to the SilcClientEntry as 'prv_resp'
1009           boolean.  Affected files are lib/silcclient/silcclient.h
1010           client.[ch], and client_prvmsg.c.
1011
1012 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1013
1014         * Fixed the JOIN command calling when called with both
1015          -auth and -founder.  Affected file is lib/silcclien/command.c.
1016
1017 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1018
1019         * Check watcher list for resumed clients as well.  Affected
1020           file is silcd/packet_receive.c.
1021
1022 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1023
1024         * Implemented the user limit to the CMODE_CHANGE notify,
1025           CMODE command reply and JOIN command reply in server.
1026           Affected files are silcd/server.c, command.c, command_reply.c,
1027           packet_send.c and packet_receive.c.
1028
1029 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1030
1031         * Defined SILC_STRFMT_END that must be used now with
1032           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1033           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1034           lib/silcclient/silcvcard.c, silcd/server_util.c.
1035
1036         * Fixed the adding of public key to the WATCH list in server.
1037           Fixed the WATCH notify sending to client.  Affected files
1038           are silcd/packet_send.[ch], command.c, server_util.c.
1039
1040         * Implemented the watching by public key in the SILC Client
1041           Library and SILC Client.  Affected files are
1042           lib/silcclient/command.c and client_notify.c.
1043
1044 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1045
1046         * Added support for public key watching in server.  Affected
1047           files are silcd/server.c, server_internal.h, command.c,
1048           server_util.c.
1049
1050 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1051
1052         * Added public key to the SIlcClientEntry.  Affected files
1053           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1054
1055         * Fixed the get_clients_whois reply processing to return
1056           exactly same entries server returned.  Makes it possible
1057           to search using attributes.  Affected file is
1058           lib/silcclient/idlist.c.
1059
1060 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1061
1062         * Save founder key to SilcChannelEntry.  Affected files are
1063           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1064
1065 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1066
1067         * Call the monitor callback with _CLOSED status from the
1068           silc_client_file_close.  Affected files are
1069           lib/silcclient/client_fpt.c, silcclient.h
1070
1071         * Added silc_client_get_clients_whois which resolves using
1072           WHOIS, and supports requested attributes as well.
1073           Affected files are lib/silcclient/silcclient.h, idlist.c.
1074
1075 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1076
1077         * Added support for asking the destination filename where
1078           the downloaded file is saved in the file transfer.  Affected
1079           files are lib/silccilent/silcclient.h, client_ftp.c.
1080
1081 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1082
1083         * Fixed error handling in resuming data processing.  Affected
1084           files are lib/silcclient/client_resume.c and client.c.
1085
1086 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1087
1088         * Fixed silc_client_send_private_message to return TRUE correctly.
1089           Affected file lib/silcclient/client_prvmsg.c.
1090
1091         * Added topic to the SilcChannelEntry.  Affected files are
1092           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1093
1094 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1095
1096         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1097           file lib/silcclient/command.c
1098
1099 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1100
1101         * Convert all commands to UTF-8 before passing them to the
1102           client library.  Still need to convert replies from UTF-8 to
1103           the locale encoding.  Affected file
1104           irssi/src/silc/core/silc-cmdqueue.c
1105
1106 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1107
1108         * redirect all silc_client_command_calls through a queueing framework.
1109           This fixes /CYCLE and the annoying "nick change after auto-joining
1110           a channel".  Furthermore it defines one central point where
1111           command parameters can be UTF-8-ified.  Affected files
1112           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1113           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1114
1115 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1116
1117         * use asynchronous connect() to establish router connections.
1118           Fixes problem when the primary router goes down.  Affected files
1119           silcd/server.c, silcd/server_backup.c
1120
1121 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1122
1123         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1124           Fixed various compilation warnings when type casting ints
1125           to pointers or vice versa, of different size.  Updates around
1126           the source free.
1127
1128 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1129
1130         * Surrogates not allowed in UTF-8 strings, updated decoder.
1131           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1132           testers in lib/silcutil/tests/ directory.
1133
1134 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1135
1136         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1137           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1138           files are lib/silcclient/silcclient.h, client.c.
1139
1140 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1141
1142         * When resuming a session fails, notify the user that the session
1143           file needs to be removed eventually.  Affected files
1144           irssi/src/fe-common/silc/module-formats.[ch],
1145           irssi/src/silc/core/client_ops.c.
1146
1147 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1148
1149         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1150           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1151
1152         * Typofix in Irssi::Silc module.  Affected file
1153           irssi/src/perl/silc/Silc.xs.
1154
1155 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1156
1157         * Changed the way NOTICE flagged messages are treated. Added support
1158           for notices in queries and signing notices.  Affected files
1159           irssi/default.theme; irssi/docs/help/in/notice.in;
1160           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1161           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1162
1163         * Fixed typo in /ACTION help.  Affected file
1164           irssi/docs/help/in/action.in
1165
1166 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1167
1168         * Fixed typo in perl module.  Affected file
1169           irssi/src/perl/silc/Server.xs
1170
1171         * Changed the way ACTION flagged messages are treated. Added support
1172           for actions in queries and signing actions.  Affected files
1173           irssi/default.theme; irssi/docs/help/in/action.in;
1174           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1175           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1176           silc-servers.[ch]
1177
1178 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1179
1180         * Incorrectly reported error when client had to be resolved from
1181           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1182
1183 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1184
1185         * Fixed whois public key hash table deleting and adding in
1186           detached client case.  Affected file silcd/packet_receive.c.
1187
1188 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1189
1190         * Changed filenames of silc/fe module not to collide with filenames
1191           from core/fe.  Also seperated public messages printing from
1192           query messages printing.  Affected files are all in
1193           irssi/src/fe-common/silc.
1194
1195 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1196
1197         * Fixed the invite process handling during joining to use
1198           correct server name for the client that is matched against
1199           the invite string for the channel.  Wrong server name caused
1200           inability to join the channel.  Affected file is
1201           silcd/command.c.
1202
1203 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1204
1205         * Fixed the CUMODE channel founder authentication on normal
1206           server to not remove the founder rights on existing founder
1207           before checking that router accepts the mode change.  Affected
1208           files are silcd/command.c and silcd/packet_receive.c.
1209
1210         * Remove the server entry correctly when rekey timeouts and
1211           remote router connection on normal server is closed.  Fixes
1212           a crash where server uses the freed server entry.  Affected
1213           file silcd/server.c.
1214
1215 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1216
1217         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1218           networks.  This is the first step in solving the bug about
1219           /SERVER ADD -silcnet <silcnet>.  Affected files
1220           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1221           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1222           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1223
1224 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1225
1226         * /SMSG and /MMSG now correctly create new queries. Affected files
1227           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1228
1229         * Add basic support for SILC protocol specific variables in perl.
1230           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1231           irssi/src/perl/Makefile.am
1232
1233 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1234
1235         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1236           issue when the current key expires.  Affect file
1237           irssi/src/silc/core/clientutils.c
1238
1239         * Make the session data filename configurable.  This makes it
1240           possible to have different session files for different
1241           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1242           client_ops.[ch], silc-servers.c,
1243           irssi/src/silc/fe-common/silc/module-formats.[ch]
1244
1245         * Use the same set of libtool files for the MPI lib as for the
1246           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
1247           config.sub, configure.in, install-sh, missing, mkinstalldirs
1248
1249 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1250
1251         * Fixed server statistics decrementing error to not go to
1252           negative.  Affected file silcd/packet_receive.c.
1253
1254 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1255
1256         * Use silc_server_query_add_error to add error in public key
1257           search error.  Added support in send_reply to send errors
1258           without specific argument.  Affected file silcd/server_query.c.
1259
1260         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
1261           Client for NO_SUCH_NICK.  It was against the protocol specs.
1262           Affected file irssi/src/silc/core/client_ops.c.
1263
1264         * Added backwards support for the wrong NO_SUCH_NICK error sending
1265           in server.  To be removed in SILC Server 1.0.  Both old clients
1266           and clients with fixed error handling now works.  Affected file
1267           silcd/server_query.c.
1268
1269 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
1270
1271         * fixed a bug in the whois using attributes function where no
1272           error was sent if no nickname and client id but the attributes were
1273           given to whois. Affected file silcd/server_query.c
1274
1275 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
1276
1277         * remove public key from public key hashtable on detach. Affected
1278           file silcd/packet_receive.c
1279
1280         * free public key hashtable before removing clients on server
1281           shutdown. Affected file silcd/server.c
1282
1283         * remove public key prior deleting client-data on killing a client.
1284           Affected file silcd/server_util.c
1285
1286 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
1287
1288         * Getting the MOTD from other servers works now. Affected
1289           files are silcd/command.c and silcd/command_reply.c
1290
1291 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1292
1293         * Initialize the variable idletag, since it is tested in
1294           silc_core_deinit for its default value.  Affected file
1295           irssi/src/silc/core/silc-core.c
1296
1297 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
1298
1299         * Fixed signed channel messages across cells. Affected file
1300           silcd/packet_send.c
1301
1302 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1303
1304         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
1305           is not defined.  They can now be safely used in if-statements
1306           without braces.  Affected file lib/silcutil/silclog.h.
1307
1308         * Added the checks for backup closing connection due to error
1309           (local or remote) and thus not allow the resuming to occur
1310           in reconnect.  Affected files are silcd/packet_send.c
1311           and server.c.
1312
1313 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1314
1315         * Help file updates.  Affected files in irssi/src/docs/help/in/.
1316
1317 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
1318
1319         * Fixed channel messages across cells. Affected file
1320           silcd/packet_send.c
1321
1322 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1323
1324         * Fixed file transmission accepting in client library to not
1325           start the negotiation if user hasn't accepted the transfer,
1326           instead create new session for resent transfer.  Affected
1327           file lib/silcclient/client_ftp.c.
1328
1329         * Show the session ID in the file transmision list.  Remove
1330           session from list that failed to transfer.  Switch the current
1331           session automatically after transmission, and in errors, to new
1332           session if other sessions exists in the transfer list.  Affected
1333           files are irssi/src/silc/core/silc-servers.c,
1334           irssi/src/fe-common/silc/modfule-formats.c.
1335
1336 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1337
1338         * Fixed MIME header parsing for the hopefully last time.  Affected
1339           file lib/silcutil/silcstrutil.c
1340
1341 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1342
1343         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
1344
1345         * The SILC RNG is now gauranteed to return non-zero random
1346           values.  Affected files are lib/silccrypt/silcrng.[ch].
1347
1348 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1349
1350         * Fixed nickname formatting when changing only case of the
1351           nickname.  Affected file lib/silcclient/idlist.c.
1352
1353 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1354
1355         * Fixed a memory leak and incorrect printing of the "appears as"
1356           message.  Affected file irssi/src/silc/core/client_ops.c
1357
1358 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1359
1360         * Added CRT (Chinese Remainder Theorem) supported RSA
1361           private keys and private key operations.  This significantly
1362           increases private key operation efficiency.  No compatibility
1363           issues with new or old private keys.  Affected files are
1364           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
1365
1366 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1367
1368         * Fixed GCC-3.3.2 related compilation warnings from the
1369           source tree.
1370
1371 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1372
1373         * Removed RC6 from distributions.
1374
1375 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1376
1377         * Added some better comments to lib/silccrypt/silcpkcs.h,
1378           optimized some routines in lib/silccrypt/silcpkcs.c.
1379           Added test_silcpkcs into lib/silccrypt/tests/.
1380
1381         * Fixed silc_rng_global_init to actually init the global RNG
1382           if RNG wasn't provided for it.  Affected file is
1383           lib/silccrypt/silrng.c.
1384
1385 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1386
1387         * Added silc_hash_table_find_by_context_ext.  Affected files
1388           lib/silcutil/silchashtable.[ch].
1389
1390         * Save the public key on normal server in WHOIS command reply
1391           from attributes, if present, and add it to public key hash
1392           table.  Fixes WHOIS resolving by public key on normal server.
1393
1394           Optimized the attributes resolving on normal server to not
1395           resolve if we resolved them already from router.
1396
1397           Affected files are silcd/server_query.c, command_reply.c.
1398
1399 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
1400
1401         * Added support for whois using attributes.
1402           Affected files silcd/command_reply.c, silcd/packet_receive.c,
1403           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
1404           silcd/server_util.c
1405
1406         * Added support for whois using public key attribute to /WHOIS i
1407           client command. Affected files irssi/docs/help/in/whois.in,
1408           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
1409
1410 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1411
1412         * Fixed UMODE setting in server when the client has anonymous
1413           mode set.  The mode setting was not working.  Affected file
1414           silcd/command.c.
1415
1416 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1417
1418         * Fixed some bugs and typos related to sending split messages.
1419           Print notification when sending messages with /MMSG.  Affected
1420           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
1421
1422 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1423
1424         * Optimized the socket referencing in packet routines, client
1425           library and server.  Affected files are lib/silccore/silcpacket.c,
1426           lib/silcclient/client.c and silcd/server.c.
1427
1428         * If silc_socket_set_qos is given with NULL arguments the QoS is
1429           reset from the socket.  Affected files are
1430           lib/silcutil/silcsockconn.[ch].
1431
1432 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1433
1434         * Add a /LISTKEYS command which lists the locally cached
1435           client and server keys.  Affected files
1436           irssi/src/fe-common/module-formats.[ch],
1437           irssi/src/silc/core/silc-{channels,servers}.c
1438           irssi/docs/help/in/listkeys.in
1439
1440 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1441
1442         * Check that packet queue purging was successful.  Affected
1443           files lib/silcclient/client.c and silcd/packet_send.c.  Related
1444           to MAC failed errors.
1445
1446         * Do not clear the inbuf even if it is empty if QoS was applied
1447           to it.  Otherwise the QoS data is cleared and MAC failed error
1448           will occur.  Affected file lib/silccore/silcpacket.c.
1449
1450         * Use the rekey period time as rekey protocol timeout value.
1451           If the rekey does not succeed during the rekey period there's
1452           something very wrong, and we most likely end up with wrong keys,
1453           do graceful reconnect then.   Affected file silcd/server.c.
1454
1455         * Take reference of the socket in the parser context, as it's
1456           possible to have the parsers in queue after the socket is
1457           disconnected and this may cause crash.  Affected files are
1458           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1459           silcd/server.c.
1460
1461 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1462
1463         * Fixed KICK command reply sending, it sent to replies.
1464           Affected file silcd/command.c.
1465
1466 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1467
1468         * Finish the silc-mime.pl script. It now supports MIME type
1469           guessing using magic files, signing data messages, executing
1470           MIME handlers in background. Affected files
1471           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1472
1473         * Changed MIME signal handler to make things easier for the perl
1474           script. Affected files irssi/src/silc/core/client_ops.c,
1475           silc-servers.c, and irssi/docs/signals.txt
1476
1477         * Cleaned up the silc_mime_parse function and fixed detection
1478           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1479
1480 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1481
1482         * Resolve the IP for file transfer listener from the connection
1483           socket.  Affected file lib/silcclient/client_ftp.c.
1484
1485         * Accept NULL hostname parameter in the functions
1486           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1487           if hostname is not wanted.
1488
1489 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1490
1491         * Fixed race condition between silc_client_init and
1492           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1493
1494 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1495
1496         * Fixed file transfer connection closing when SIGNOFF for
1497           the client is received from server.  Affected file is
1498           lib/silcclient/client_ftp.c.
1499
1500 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1501
1502         * Check for disconnected socket in QUIT callback.  Affected
1503           file silcd/command.c.
1504
1505 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1506
1507         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1508           Affected files lib/silcutil/silcstrutil.c
1509
1510         * Cleaned up the escape/unescape functions for correctness and
1511           speed. Affected file irssi/src/silc/core/client_ops.c
1512
1513         * Removed handling for data messages with Content-Type: text/*,
1514           moved parsing of MIME headers to the signal handler, added
1515           support for signing and verifying data messages. Affected
1516           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1517           irssi/src/silc/core/silc-{servers,channels}.c
1518
1519         * Added a perl script for handling data messages based on
1520           information read from Mailcap files. New file
1521           irssi/scripts/silc-mime.pl
1522
1523 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1524
1525         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1526           acknowledge recepetion of a message to the sender.  Updated
1527           protocol specs.
1528
1529 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1530
1531         * Unregister channel key saving callback when deleting channel.
1532           Affected file lib/silcclient/idlist.c.
1533
1534         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1535           before calling notify client operation.  Affected file is
1536           lib/silcclient/client_notify.c.
1537
1538         * Unregister QoS tasks when deleting the socket connection.
1539           Affected files lib/silcutil/silcsockconn.[ch],
1540           unix/silcunixsockconn.c.
1541
1542         * Implemented latest presence-attrs draft changes.  Affected
1543           files lib/silccore/silcattrs.h and
1544           irssi/src/silc/core/silc-queries.c.
1545
1546 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1547
1548         * Save old channel keys in list to allow more rapid change
1549           of channel keys if server for some reason does that.  This
1550           avoids loosing so many channel messages due to not having
1551           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1552           idlist.c and client_channel.c.
1553
1554 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1555
1556         * Continued backup router tests and fixes.  Affected files
1557           silcd/server_backup, server_util.c, server.c.  See TODO.
1558
1559 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1560
1561         * Fixed SERVER_SIGNOFF handling in servers.  The client
1562           was removed from wrong list thus not removing the client
1563           at all.  Affected file silcd/packet_receive.c.
1564
1565         * Do not execute rekey protocol for disabled connections as
1566           it would never go through.  Affected file silcd/server.c.
1567
1568         * Added timeout for rekey protocol to catch if the protocol
1569           never executes successfully.  Affected files silcd/server.c
1570           and protocol.h.
1571
1572 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1573
1574         * Abandon packet processing for disconnected sockets.  Check
1575           this always after calling packet processing callback.
1576           Affected file lib/silccore/silcpacket.c.
1577
1578         * Fixed double registration disconnection code in server.
1579           Closed wrong connection.  Affected file silcd/packet_receive.c.
1580
1581 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1582
1583         * On normal server reconnect to primary during resuming 4
1584           times, then give up.  Affected file silcd/server_backup.c.
1585
1586         * If during reconnecting to routers we notice we have router
1587           connection but no primary router set, the server is in desync.
1588           Reconnect to primary to restore network.  Affected file
1589           silcd/server.c.
1590
1591         * Assure that only one protocol is exeucting at the same time.
1592           Added checks for all protocols.  Affected files are
1593           silcd/server.c and server_backup.c.
1594
1595 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1596
1597         * Check that a string is not already part on invite/ban
1598           string when processing it.  Affected file silcd/server_util.c.
1599
1600 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1601
1602         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1603           with 1.2 version of the protocol.  Affected file is
1604           silcd/packet_receive.c.
1605
1606 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1607
1608         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1609           where the passphrase was given.  Affected file is
1610           silcd/command.c.
1611
1612 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1613
1614         * INVITE and BAN notifys are now delivered from routers to
1615           servers (but not clients) on the channel.  Updated specs and
1616           code.  Affected files silcd/packet_[send|receive].[ch],
1617           command.c, server.c and server_util.c.
1618
1619         * Implemented INVITE and BAN announcing.  Affected files are
1620           silcd/server.[ch], server_util.c.
1621
1622         * Implemented SilcStatus error type argument returning in
1623           command reply error in server.  Affected file silcd/command.c.
1624
1625         * Implemented SilcStatus argument returning in comand reply
1626           in client library.  The command_reply client operation now
1627           returns error specific arguments as well.  Affected files
1628           are lib/silcclient/command_reply.[ch], client_resume.c,
1629           lib/silccore/silcstatus.[ch].
1630
1631 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1632
1633         * Backup router protocol version 1.2 implemented.  Testing still
1634           required.  Affected files in silcd/server_backup.[ch], server.c,
1635           packet_receive.c and server_internal.h.
1636
1637 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1638
1639         * silc_client_send_[channel|private]_message now return TRUE
1640           or FALSE.  Affected file lib/silcclien/client_channel.c and
1641           client_prvmsg.c.
1642
1643 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1644
1645         * Check for explicit nickname in INVITE and BAN processing
1646           during join as well (and don't expect only wildcards in
1647           invite/ban strings).  Affected file silcd/command.c.
1648
1649         * Fixed the INVITE and BAN by public key.  The public key saved
1650           is the PK payload (as specified) not the raw data.  Affected
1651           file silcd/server_util.c.
1652
1653 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1654
1655         * UTF-8 text message support for actions and notices in SILC
1656           Client.  Affected file irssi/src/silc/core/client_ops.c.
1657
1658         * silc_get_username and silc_get_real_name now returns sensible
1659           data on Win32.  Patch by Toni Willberg.  Affected file is
1660           lib/silcutil/win32/silcwin32util.c.
1661
1662 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1663
1664         * Provide a signal handler to send MIME encoded messages and emit
1665           a signal when a MIME encoded message is received. Also document
1666           the signals for usage with the perl interface.
1667
1668           A sample perl script will be supplied at a later point.
1669
1670           Affected files are irssi/docs/signals.txt,
1671           irssi/src/silc/core/client_ops.[ch],
1672           irssi/src/silc/core/silc-{channels,servers}.c
1673
1674 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1675
1676         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1677           server. Use this time to display a lag and disconnect when it
1678           exceeds a specified limit.
1679
1680           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1681
1682 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1683
1684         * Remove the channel auth list in normal server if router
1685           encofrces its list during connecting.  Send notify to channel
1686           to remove the mode to remove the list.  Affected files are
1687           silcd/server_util.c and silcd/packet_receive.c.
1688
1689 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1690
1691         * Added support for channel public keys.  Updated protocol specs
1692           and implemented it.  Affected files are
1693           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1694           lib/silcclient/command_reply.c.
1695
1696 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1697
1698         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
1699           terminate the process on Linux.  Affected file silcd/silcd.c.
1700
1701 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1702
1703         * Check for NULL buffer in silc_buffer_clear.  Affected file
1704           is lib/silcutil/silcbuffer.h.
1705
1706         * Simplified the backup router protocol by removing the _GLOBAL
1707           types.  Updated protocol specs and the code.  Affected files
1708           are silcd/server_backup.[ch].
1709
1710 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1711
1712         * Deny '@' and '!' from nicknames since they are reserved
1713           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
1714           Updated protocol specs and the code.
1715
1716           Affected files are silcd/server_util.[ch].
1717
1718 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1719
1720         * Fixed stack overflow in Irssi SILC client.  Affected
1721           file irssi/src/silc/core/client_ops.c.
1722
1723         * Check that Host is set in ServerConnection and RouterConnection
1724           in silcd.conf.  Affected file silcd/serverconfig.c.
1725
1726         * Fixed crash in server with protocol completion callbacks,
1727           namely rekey and backup resuming protocols.  Affected files
1728           are silcd/server_backup.c and silcd/server.c.
1729
1730         * Fixed rekey protocol to not restart if it is started already.
1731           Affected files are lib/silcclient/client.c and
1732           silcd/server.c.c
1733
1734 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1735
1736         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
1737
1738         * Fixed EOF handling in SILC Config, affected file
1739           lib/silcutil/silcconfig.c.
1740
1741         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
1742
1743         * Fixed RESOLVING flag handling in JOIN notify and other
1744           notifys to handle the resolvings correctly in client library.
1745           Affected file lib/silcclient/client_notify.c.
1746
1747         * Do not send full INVITE and BAN lists in INVITE and BAN
1748           notifys, only the changed information.  Affected file
1749           silcd/command.c.
1750
1751         * Fixed INVITE notify sending in INVITE command, send it
1752           only when needed.  Affected file silcd/command.c.
1753
1754         * Handle the founder key change properly in CMODE_CHANGE
1755           notify.  Bug #122.  Affected file silcd/packet_receive.c.
1756
1757 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1758
1759         * Remove the mark for output (mark it only for input) after
1760           purging outgoing queue.  Prevents the "Error in select()"
1761           floods.  Affected file silcd/packet_send.c.
1762
1763         * Fixed incorrect connection deletion from client library
1764           after calling "connect" client operation.  Could cause
1765           crashes for example during reconnect timeouts.  Affected
1766           files are lib/silcclient/client.c and
1767           irssi/src/silc/core/client_ops.c.
1768
1769         * Check server private key file permissions before starting
1770           the server.  Affected file silcd/serverconfig.c.
1771
1772 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1773
1774         * NULL terminate allocated string in silc_buffer_strformat.
1775           Affected file lib/silcutil/silcbuffmt.c.
1776
1777         * Rewrote the invite/ban list string handling in server to
1778           use SilcBuffer instead.  Affected files are silcd/command.c
1779           and silcd/server_util.c.
1780
1781 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1782
1783         * Fixed double free in CMODE command when setting new HMAC
1784           for channel.  Affected file silcd/command.c.
1785
1786         * Added couple of missing memset's to zero sensitive memory.
1787           Affected files silcd/command.c, lib/silcclient/command.c.
1788
1789 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1790
1791         * Fixed a double free in INVITE command error handling in
1792           server.  Affected file silcd/command.c.
1793
1794         * Added macros SILC_SWAB_[16|32] to swab byte order of
1795           16-bit and 32-bit unsigned integers.  Affected file
1796           lib/silcutil/silctypes.h.
1797
1798         * Use the SILC_SWAB_16 instead of htons() in server when
1799           handling ports since the ports in structures are always
1800           in little-endian order (regardless of platform).  Affected
1801           file silcd/serverid.c and silcd/server_backup.c.
1802
1803 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1804
1805         * Send DISCONNECT in close admin command in server.  Affected
1806           file silcd/command.c.
1807
1808         * Check whether we are already connecting to a remote router
1809           (in addition of checking whether we are already connected)
1810           before creating new connection.  Affected file silcd/server.c.
1811
1812 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1813
1814         * Added better compiler and compiler flags checking in
1815           configure.
1816
1817         * Check that socket is valid after QoS is applied to data.
1818           Affected file lib/silcutil/unix/silcunixsockconn.c.
1819
1820         * Make sure the socket connecetion is not closed to early
1821           when closing connection in server.  Also make sure the
1822           connection is always closed after error in a protocol.
1823           Affected file silcd/server.c.
1824
1825 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1826
1827         * Removed --session and --dummy options from Irssi SILC Client.
1828           -d option is available only if --enable-debug was given.
1829           Affected files are irssi/src/silc/core/silc-core,
1830           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
1831
1832 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1833
1834         * Added silc_buffer_steal to steal the data from the buffer.
1835           Affected file lib/silcutil/silcbuffer.h.
1836
1837 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
1838
1839         * Fixed server crash with double Primary block in config file.
1840
1841           Fixed also various memory leaks around the config file
1842           parser.  Affected files lib/silcutil/silcconfig.c,
1843           silcd/serverconfig.c.
1844
1845         * Changed my nickname (Johnny Mnemonic) to my real name, this
1846           means that bugs introduced by him were actually introduced
1847           by me!
1848
1849 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1850
1851         * Don't display "foo appears as foo\nYou're now known as foo"
1852           messages.  Affected file irssi/src/silc/core/client_ops.c
1853
1854 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1855
1856         * Fixed error handling of invalid client entry when calling
1857           commands in server.  Fixes a crash.  Affected file
1858           silcd/command.c.
1859
1860 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1861
1862         * Added some sanity checks in server for correctness of the
1863           server configuration.  Affected file silcd/serverconfig.c.
1864
1865 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1866
1867         * Prevent endless resolving of user informations in USERS
1868           command by checking the command reply status correctly.
1869           Affected file lib/silcclient/command_reply.c.
1870
1871 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1872
1873         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
1874           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
1875           Aldous <Matthew@Aldous.com>.
1876
1877         * Added better implementation using CriticalSection of
1878           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
1879           <mikko.lahteenmaki@pikabaana.net>.
1880
1881         * Added some Winsock WIN32 compatiblity defines into
1882           includes/silcwin32.h.
1883
1884 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1885
1886         * Fixed double free in async host lookup code.  Affected file
1887           lib/silcutil/silcsockconn.c.
1888
1889         * On backup router handle now the SERVER_SIGNOFF from router
1890           for local connected servers too, and close the connections.
1891
1892           Do not process them as normally signing off servers when they
1893           really signoff by sending EOF fe, but always assume that
1894           router sends the SERVER_SIGNOFF.
1895
1896           Affected files silcd/server.c and silcd/packet_receive.c.
1897
1898         * Fixed socket unsetting when closing connections.  Affected
1899           files silcd/server.c and silcd/packet_send.c.
1900
1901         * Do not print the nickname in SERVER_SIGNOFF if we do not
1902           have it.  Prevents asserts in Irssi core.  It is possible we
1903           don't have the nick if it was just being resolved when server
1904           signoff.  Affected file irssi/src/silc/core/client_ops.c.
1905
1906 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1907
1908         * Fixed autonick crashbug in client library.  Affected file
1909           lib/silcclient/client.c.
1910
1911         * Fixed Unix implementation of SilcMutex to really assert if
1912           the mutex is locked/unlcoked already.  Affected file
1913           lib/silcutil/unix/silcunixmutex.c.
1914
1915         * Fixed locking in silc_schedule_uninit.  It didn't lock
1916           when dispatching timeout tasks.  Affected file is
1917           lib/silcutil/silcschedule.c.
1918
1919         * Changed Win32 implementation of SilcThread to use modern
1920           Win32 interface.  Affected file is
1921           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
1922
1923 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1924
1925         * Don't print signed messages when sending failed.  Affected files
1926           irssi/src/silc/core/silc-[servers.c/commands.h]
1927
1928         * Send adquate signal when founding a channel by joing it.  Affect
1929           file irssi/src/silc/core/client_ops.c
1930
1931 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1932
1933         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
1934           irssi/src/fe-common/core/themes.c
1935
1936 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1937
1938         * Fixed close command to use the port correctly when closing
1939           server connections.  Affected file silcd/idlist.c.
1940
1941         * Check for NULL outbuf in silc_socket_write.  It is possible
1942           that it is NULL is some odd case.  Affected files are
1943           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
1944
1945         * Do not call final protocol callback for backup router
1946           resuming protocol when closing connection.  It is closed
1947           by timeout in case of error.  Affected file silcd/server.c.
1948
1949         * Backup reconnect to router if backup resuming protocol
1950           failed.  Affected file silcd/server_backup.c.
1951
1952 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1953
1954         * Fixed double free in SKE library error hadling when signature
1955           error occurred.  Affected file lib/silcske/silcske.c.
1956
1957         * Save the fingerprint to new SilcClientEntry after changing
1958           nickname.  Affected file lib/silcclient/client_notify.c.
1959
1960         * Print SIGNOFF in Irssi SILC client only if the nickname is
1961           known.  Prevents asserts in Irssi core.  It is possible we
1962           don't have the nick if it was just being resolved when it
1963           quit.  Affected file irssi/src/silc/core/client_ops.c.
1964
1965 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1966
1967         * Fixed double free in invite list adding code when adding
1968           invite strings.  Affected file silcd/server_util.c.
1969
1970 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1971
1972         * More log printing during backup router protocol.  Affected
1973           file silcd/server_backup.c.
1974
1975         * Removed backwards support for old private key file format.
1976           Affected file lib/silccrypt/silcpkcs.c.
1977
1978         * Removed backwards support for not-so-strict decryption length
1979           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
1980
1981         * GETKEY to update the client entrys fingerprint too.
1982           Affected file lib/silcclient/command_reply.c.
1983
1984         * Added --without-libtoolfix for package builders using weird
1985           wrappers around libtool (BSD at least).
1986
1987 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1988
1989         * Fixed backup router bugs:  When backup resumes router and
1990           receives a CHANNEL_MESSAGE packet the backup must not act
1991           as router since the packet header decryption would be
1992           different.  Also, when relaying packets to channel, do
1993           not re-encrypt packets on backup that came from the primary
1994           since the connection isn't really router-router connection.
1995           Affected files silcd/server.c, silcd/packet_send.c.
1996
1997         * Added checks in encryption/decryption that encryption/decryption
1998           length sent as argument really is multiple by block size.  Helps
1999           catching really weird bugs like the above backup router bugs
2000           when packets are being decrypted in wrong way.  Affected files
2001           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2002
2003         * Fixed padding generation in private key file encryption.
2004           Affected file lib/silccrypt/silcpkcs.c.
2005
2006 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2007
2008         * Added ignore_message_signatures setting which can be used
2009           to ignore signatures in messages.  Affected files are
2010           irssi/src/silc/core/client_ops.c, silc-core.c.
2011
2012         * Fixed the libtoolfix to use command line options instead of
2013           environment variables.  They didn't work as expected.  Now,
2014           the libtool is fully run-time configurable.
2015
2016 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2017
2018         * Verify signature payload for signed messages. Affected files
2019           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2020           irssi/src/silc/core/silc-core.h
2021
2022         * Display signature verification result in public and private
2023           messages using theme abstracts. See irssi/default.theme for
2024           examples on their usage. Affected files
2025           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2026           irssi/src/fe-common/silc/module-formats.[ch],
2027           irssi/src/fe-common/silc/fe-common-silc.c,
2028           irssi/src/fe-common/silc/Makefile.am
2029           irssi/src/fe-common/core/fe-messages.[ch]
2030
2031         * Fixed bugs in Irssi's theme parsing. Affected files
2032           irssi/src/fe-common/core/themes.c
2033
2034 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2035
2036         * Calculate the correct length for signed messages before
2037           encrypting, it must be multiple by block size.  Affected
2038           file lib/silccore/silcmessage.c.
2039
2040         * silc_message_signed_get_public_key returns now both
2041           decoded and encoded public key.  Affected files are
2042           lib/silccore/silcmessage.[ch].
2043
2044         * Added libtoolfix script that makes the libtool more generic
2045           and configurable in run-time.  Now we can specify in run-time
2046           if what kind of libraries we want to create, regardless of
2047           configuration.  SIMs are now creates even if --disable-shared
2048           was explicitly given.
2049
2050 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2051
2052         * Fixed founder key sending in CMODE command in client.
2053           Affected file lib/silcclient/command.c.
2054
2055         * Fixed CUMODE founder authentication in server to not check
2056           for client's public key since it's not supposed to do that.
2057           Affected file silcd/command.c.
2058
2059 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2060
2061         * Set realname and hostname in NICK_REC records. Affected file
2062           irssi/src/silc/core/silc-nicklist.c
2063
2064 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2065
2066         * Remove 1.0 protocol backwards compat code from client
2067           library.
2068
2069         * Added more reliable check for whether nickname did change
2070           or not, or whether only Client ID changed in NICK_CHANGE
2071           notify.  Affected file lib/silcclient/client_notify.c.
2072           Fixes bug in '@' character handling in a nickname.
2073
2074         * Added support for automatically parsing signature from
2075           the message payload.  Added new function
2076           silc_message_get_signature to return the payload to
2077           application.  Affected files lib/silccore/silcmessage.[ch].
2078
2079         * Changed the private_message and channel_message client
2080           operations to deliver the SilcMessagePayload to the
2081           application too.  Application can use it fe. to get the
2082           signature from the message for verification.  Affected
2083           file lib/silcclient/silcclient.h, client_channel.c and
2084           client_prvmsg.c.
2085
2086         * Redefined the signed payload for message payloads.
2087           Updated protocol specs and implemented.
2088
2089 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2090
2091         * Fixed wrong invite and ban list handling in server command
2092           reply.  Affected files are silcd/command_reply.c,
2093           silcd/server_util.[ch].
2094
2095 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2096
2097         * Fixed CMODE setting in server when founder mode was set.
2098           Affected file silcd/command.c.  Bug #95.
2099
2100         * Added support to setting specific public key in CMODE in
2101           Irssi SILC client.  Affected file lib/silcclient/command.c.
2102
2103         * Added support to use specific public key in CUMODE in
2104           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2105
2106         * Added support for inviting and banning by public key in
2107           Irssi SILC client.  Affected file lib/silcclient/command.c.
2108
2109         * Fixed fingerprint/babbleprint showing in invite and ban
2110           list command replys.  Affected file is
2111           irssi/src/silc/core/client_ops.c.
2112
2113 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2114
2115         * Format CMODE +c and +h to display both the mode and the argument
2116
2117 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2118
2119         * Added test vectors and test programs for SHA-1, MD5,
2120           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2121           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2122           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2123
2124         * Changed the channel private key and private message key
2125           generation (with static keys) to use SHA1 instead of MD5,
2126           as SHA1 is the mandatory hash function in SILC.  Affected
2127           file lib/silcclient/client_[channel/prvmsg].c.
2128
2129         * Changed the private key file encryption to use SHA1 instead
2130           of MD5.  Added support for the old generation and added
2131           automatic change of the key (to be removed later).  Affected
2132           files lib/silccrypt/silcpkcs.c.
2133
2134 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2135
2136         * Load only files with .pub suffix in PublicKeyDir.  Affected
2137           file silcd/serverconfig.c.
2138
2139 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2140
2141         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2142           channels.  Affected files silcd/silcd.c, silcd/server.h.
2143
2144         * Added the config directive PublicKeyDir for the client block.
2145           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2146
2147 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2148
2149         * Merged Toni's irssi/silc.conf patch.
2150
2151         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2152
2153         * Max alloc tests in allocation routines.  Affected file
2154           lib/silcutil/silcmemory.c.
2155
2156 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2157
2158         * Fixed a typo in resuming code that fixed detach/resume code
2159           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2160
2161 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2162
2163         * Do reverse lookups for server when /connecting. Affected files
2164           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2165           irssi/src/core/net-nonblock.*
2166
2167 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2168
2169         * Added library versioning for shared libraries.  Affected
2170           files configure.in.pre and lib/Makefile.am.pre.
2171
2172 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2173
2174         * Display INVITE and BAN lists as specified by SILC 1.2
2175
2176 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2177
2178         * Do not send invite list back unless asked (when sending
2179           no arguments) or when list was modified.  Affected file
2180           silcd/command.c.
2181
2182         * Remove client from invite list in KILLED notify and in
2183           KILL command.  Affected file silcd/command.c and
2184           silcd/server.[ch].
2185
2186         * Fixed bugs in invite list handling in INVITE command.
2187           Affected files silcd/command.c and silcd/server_util.c.
2188
2189         * Merged with Irssi 0.8.6.
2190
2191         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2192           Affected file irssi/src/fe-text/silc.c.
2193
2194 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2195
2196         * The silc_argument_get_[first/next] now return the argument
2197           type to caller.  Added silc_argument_payload_encode_one.
2198
2199           Affected files are lib/silccore/silcargument.[ch].
2200
2201         * Added support for the SILC 1.2 INVITE command and new
2202           invite lists to server.  Affected files are silcd/command.c,
2203           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2204
2205         * Added support for the SILC 1.2 BAN command and new
2206           ban lists to server.  Affected files are silcd/command.c,
2207           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2208
2209         * Added support to client sending new INVITE command.  Affected
2210           file is lib/silcclient/command.c.
2211
2212         * Added support to client sending new BAN command.  Affected
2213           file is lib/silcclient/command.c.
2214
2215         * Added support for removing client from invite list when kicked
2216           from channel, as SILC 1.2 dictates.  Affected files are
2217           silcd/packet_receive.c and silcd/command.c.
2218
2219 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2220
2221         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2222           automatically the cipher's internal IV.  Affected files
2223           lib/silccrypt/silccipher.[ch].
2224
2225         * Assure the RESUME_CLIENT packet is not sent to twice to
2226           backup router if the detached client was originated from
2227           the backup.  Affected file silcd/server.c.  Bug #76.
2228
2229         * Changed silc_sim_symname to not allocate memory.  Affected
2230           file lib/silcsim/silcsimutil.c.
2231
2232         * Fixed memory leaks with SIMs in server.  Affected files
2233           silcd/serverconfig.c, silcd/server.c.
2234
2235         * Fixed channel key distribution after resuming detached
2236           client.  Affected files silcd/packet_receive.c.
2237
2238         * Fixed channel's global_user boolean checking after detaching.
2239           Check it after changing the owner of the client not before.
2240           Affected file silcd/packet_receive.c.
2241
2242         * Fixed few double frees from client library.  Fixes at least
2243           Bug #81, possibly others too.
2244
2245         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2246           notifys in Irssi SILC Client.  Affected file is
2247           irssi/src/silc/core/client_ops.c.  Bug #82.
2248
2249         * Applied Ville Räsänen's manual page and --mandir bugfix
2250           patch.  Affected files are configure.in.pre and Makefile.am.pre.
2251           Bug #88.
2252
2253 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2254
2255         * Added support to backup router protocol for backup to tell
2256           normal server that it cannot use the backup router as primary
2257           because the primary isn't really down.  Updated protocol
2258           specs.
2259
2260         * Added support for primary router to tell backup router that
2261           resuming is not possible because the backup really isn't primary
2262           in the cell.  For example if backup disconnected itself the
2263           resuming is not allowed since the primary really did not
2264           go down.  Updated protocol specs.
2265
2266         * Removed MARS from crypto library.
2267
2268         * Defined the CTR mode and Randomized CBC mode in SILC.  The
2269           CTR mode is RECOMMENDED now in specification.  Defined also
2270           Serpent cipher as optional cipher.  Updated the protocol specs.
2271
2272 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2273
2274         * Added support for inviting/banning by IP/MASK, public key,
2275           and explicit Client ID.  Redefined the command and notify
2276           types to allow easier forwards support for other methods
2277           of inviting/banning.  Updated protocol specs.
2278
2279         * Remove the client from channel's invite lists if the client
2280           is kicked or killed.  Updated protocol specs.
2281
2282         * Unified the Channel Message Payload and Private Message
2283           into one Message Payload.  Updated protocol specs and
2284           implemented.
2285
2286 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2287
2288         * Don't wait for EOF after socket error has occurred, but
2289           close the connection.  Affected file is silcd/server.c.
2290
2291 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2292
2293         * Added support for setting FOUNDER mode on channel with
2294           specific public key which can be set with CMODE command.
2295           Updated protocol specs and implemented in client and server.
2296
2297         * Fixed the Irssi SILC client to correctly shutdown the client
2298           library to avoid memory leaks.  Affected files are
2299           irssi/src/silc/core/silc-core.c and silc-servers.c.
2300
2301         * Deprecated the No Reply flag in SKE protocol and introduced
2302           "IV Included" flag which can be used to indicate that the IV
2303           is included in the ciphertext.  This makes it possible to use
2304           SILC on unreliable transport, such as UDP which may cause
2305           packet reordering and losses.  Updated protocol specs, did
2306           not implement yet.
2307
2308 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2309
2310         * Fixed the MPI implementation of silc_mp_sizeinbase to return
2311           < 32 bit values in correct size.  Affected file is
2312           lib/silcmath/mp_mpi.c.
2313
2314 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2315
2316         * Fixed the KE Start Payload parsing to check that mandatory
2317           fields are present.  Affected file lib/silcske/payload.c.
2318
2319         * Fixed compilation warnigs in Irssi SILC Client.  Affected
2320           files are irssi/src/silc/core/silc-query.c. client_ops.c.
2321
2322 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2323
2324         * Print "nick now appears as newnick" and update Irssi's nicklist
2325           when you change your nick to "nick". Closes #62
2326
2327         * Never format your own nick. Closes #63
2328
2329 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2330
2331         * SILC_UMODE_GONE changes are now propagated correctly to the
2332           Irssi client. Closes #54
2333
2334 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2335
2336         * Fixed example in /HELP KEY
2337
2338         * Added expando $j which expands to current SILC Client version
2339
2340 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2341
2342         * Fixed public key decoding in crypto library.
2343
2344         * Added better error printing to SKE library.
2345
2346 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2347
2348         * Fixed NICK command to not crash if nickname was not sent.
2349
2350 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2351
2352         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
2353           Deprecated the old Encrypt-And-MAC order.  Updated protocol
2354           specs and implemented.
2355
2356         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
2357           generation.  Updated specs and implemented.
2358
2359 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2360
2361         * Added support for rekey before 2^32 sequence number wraps.
2362           Affected files in server and client library.
2363
2364         * Padding must be at least 8 bytes now.  Implemented and updated
2365           protocol specs.
2366
2367         * Compute maximum padding for authentication packets to make
2368           passphrase approximation attacks impossible.  Affected files
2369           in client library and in server.
2370
2371         * Fixed PING command sending in client library and handling in
2372           server.  The server ID must be ID Payload, not raw ID data.
2373           Affected files in server and client library.
2374
2375         * Defined that all public keys sent in commands and notify
2376           payloads are actually Public Key Payloads not raw public key
2377           data.  Updated protocol specs and implemented.
2378
2379         * Updated protocol version to 1.2.  Updated specs and code.
2380
2381         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
2382           status types.  Updated specs and the code.
2383
2384         * Added support for normal client to kill its own entries from
2385           the network.  Updated protocol specs and the code.
2386
2387         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
2388           and added initial implementation.
2389
2390         * Added MAC field to the Private Message Payload to protect
2391           against chosen ciphertext attacks.  Updated the protocol specs
2392           and implemented.
2393
2394         * Added idle and signon fields to the ATTRIBUTE_SERVICE
2395           attribute to indicate the user's current idle and signon time
2396           of a service.  Updated protocol specs and implemented.
2397
2398 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2399
2400         * Added "do_not_bind" argument to silc_client_file_send what
2401           can be used to not bind locally but assume the file receiver
2402           provides the point of connect.  Usefull when sender is behind
2403           NAT device.  Affected file lib/silcclient/silcclient.h and
2404           client_ftp.c.
2405
2406         * Added -no-listener option to FILE SEND command in Irssi SILC
2407           client.  Affected file irssi/src/silc/core/silc-servers.c.
2408           Renamed FILE RECEIVE to FILE ACCEPT.
2409
2410         * Confirm passphrase for private key encryption in
2411           silc_create_key_pair and silc_change_private_key_passphrase.
2412           Affected files are lib/silcutil/silcapputil.c.
2413
2414 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2415
2416         * Move silc_client_packet_send back to internal, added
2417           silc_client_send_packet, a bit simpler function for application.
2418           Affected files lib/silcclient/silcclient.h, client.c and
2419           client_internal.h.
2420
2421         * Moved the SilcClientEntry, SilcChannelEntry and
2422           SilcServerEntry to silcclient.h to be public and documented
2423           them for application.  Affected files are
2424           lib/silcclient/silcclient.h and idlist.h.
2425
2426 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2427
2428         * Fixed manual page installation patch by Ville Räsänen.
2429           USERS help page fix patch by Ville Räsänen
2430
2431         * Changed the silc_client_command_call interface to make
2432           the command call simpler for the application.  The library
2433           now handles the command line parsing, command finding and
2434           execution.  Application only needs to call the function
2435           with the command line.  Affected files are
2436           lib/silcclient/silcclient.h, command.[ch].
2437
2438         * Fixed silc_get_input to NULL-terminate the returned input.
2439           Affected file lib/silcutil/silcutil.c.
2440
2441         * Resolve the client's public key in JOIN command if the
2442           founder auth data is being requested but we don't know the
2443           client's public key.  Affected file silcd/command.c.
2444           Bug #53.
2445
2446 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2447
2448         * Print notify for server opers when backup router comes
2449           online.  Affected file silcd/server.c.
2450
2451         * Fixed the INVITE command to send the invite list in
2452           command reply.  Affected file silcd/command_reply.c.
2453
2454         * Fixed MOTD command reply sending.  Affected file
2455           silcd/command.c.
2456
2457         * UTF-8 decode the topic in TOPIC command reply and LIST
2458           command reply in Irssi SILC client.  Affected file is
2459           irssi/src/silc/core/client_ops.c.
2460
2461 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2462
2463         * Fixed the INVITE command to not crash Irssi SILC client
2464           when given without nickname argument.  AFfected file
2465           irssi/src/silc/core/client_ops.c.
2466
2467         * Fixed double free in WHOIS query on normal server when
2468           forwarding query to router.  Affected file is
2469           silcd/server_query.c.
2470
2471         * Fixed WATCH command reply handling on normal server which
2472           was missing altogether.  Affected file silcd/command_reply.c.
2473           Bug #44.
2474
2475 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2476
2477         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2478           Included yodl sources for each of these. Also modified
2479           Makefile.am prototype to install these files to proper
2480           locations. Updated CREDITS. Affected file Makefile.am.pre,
2481           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2482           doc/silcd.8.
2483
2484 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2485
2486         * Added support for encrypted private key files.  Now
2487           passphrase must be provided when new key pair is created
2488           (can be empty though), and prompted when loading the
2489           private key.  Added support for loading the old-style
2490           non-encrypted private keys as well.  Affected files
2491           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2492           SILC Server.
2493
2494         * Fixed silc_get_input to accept input on all terminals.
2495           Affected file lib/silcutil/silcutil.c.
2496
2497         * Moved the Irssi SILC client key loading and other stuff
2498           to be called after the arguments and UI is initialized.
2499           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2500
2501         * Added -P option to Irssi SILC client which can be used
2502           to change the passphrase of the private key.  Affected
2503           file irssi/src/silc/core/silc-core.c.
2504
2505         * Added silc_change_private_key_passphrase apputil routine
2506           to lib/silcutil/silcapputil.[ch].
2507
2508 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2509
2510         * Fixed connection closing in client library to not crash.
2511           Moved the connection freeing totally to function
2512           silc_clinet_del_connection.  Affected file
2513           lib/silcclinet/client.c.
2514
2515 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2516
2517         * Changed includes/silcincludes.h to silcincludes.h.in to
2518           include configuration specific information.  The silcdefs.h
2519           is not included in to installation anymore (it's only
2520           compilation time header).
2521
2522 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2523
2524         * Moved the SilcClient and SilcClientConnection from client.h
2525           to the public lib/silcclient/silcclient.h.  Changed the
2526           structures a bit.
2527
2528 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2529
2530         * If version string in silc_clinet_alloc is NULL the library
2531           puts it automatically.  Affected file lib/silcclient/client.c.
2532
2533         * Changed the version strings from variables to #define's
2534           in includes/silcversion.h.
2535
2536 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2537
2538         * Added shared library complation support.
2539
2540 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2541
2542         * Added lib/silcutil/silcapputil.[ch] for application
2543           utility functions.  It includes routines for applications'
2544           convenience.  Added silc_create_key_pair, silc_show_public_key
2545           and silc_load_key_pair functions.
2546
2547 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2548
2549         * Send RESUME_CLIENT packet from router to backup routers
2550           to in resuming.  Affected file silcd/packet_receive.c.
2551
2552 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2553
2554         * In IDENTIFY command parsing, send all other IDs except
2555           Client IDs explicitly to router for resolving on normal
2556           server.  Also check that ID received in WHOIS command is
2557           always Client ID, others are not allowed.  Affected file
2558           silcd/server_query.c.
2559
2560         * Merged latest changes from irssi.org CVS.
2561
2562 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2563
2564         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2565           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2566
2567         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2568           the silc_client_packet_send to silcclient.h for application
2569           usage.  Affected files lib/silcclient/client_internal.h
2570           lib/silcclient/silcclient.h.
2571
2572         * Fixed a bug in query resolving in server.  Used wrong
2573           variable in a for loop and crashed.  Affected file is
2574           silcd/server_query.c.
2575
2576         * Server constructs requested attributes only to locally
2577           connected clients.  Affected file silcd/server_query.c.
2578           Bug #36.
2579
2580         * Fixed a bug when sending resolving from router to server
2581           with requested attributes.  The constructed WHOIS command
2582           was incorrect.  Affected file silcd/server_query.c.
2583           Bug #38.
2584
2585         * Fixed Requested Attributes saving in WHOIS command reply.
2586           The length of the data buffer must be saved too.  Affected
2587           file silcd/command_reply.c.
2588
2589         * Update the client entry's servername after detaching is
2590           over.  Affected file silcd/packet_receive.c.  Bug #37.
2591
2592         * Resolve incomplete client entrys in CUMODE_CHANGE and
2593           CMODE_CHANGE notifys.  Affected file is
2594           lib/silcclient/client_notify.c.  Bug #42.
2595
2596 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2597
2598         * Fixed channel key packet processing bug on backup router
2599           during backup resuming protocol.  Affected file is
2600           silcd/packet_receive.c.
2601
2602         * Fixed memory leaks in server.  Affected files are
2603           silcd/server.c and silcd/packet_receive.c.
2604
2605         * Fixed packet decryption problem when backup router encrypted
2606           channel message with wrong key during backup resuming
2607           protocol.  Affected file silcd/packet_send.c.
2608
2609         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2610           Toni Willberg (toniw@iki.fi)
2611
2612         * Changed the SilcCipher context to be private.  Changed the
2613           silc_cipher_get_iv to just return pointer to the IV.  Added
2614           silc_cipher_get_name to return the name of the cipher.
2615           Fixed code all around to support these changes.  Affected
2616           files are lib/silccrypt/silccipher.[ch], client library and
2617           server.
2618
2619 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2620
2621         * Fixed unaligned access in lib/silccore/silcattrs.c.
2622
2623         * Fixed libtool linking in lib/silcsim/Makefile.am.
2624
2625         * Fixed services attribute printing.  Affected files is
2626           irssi/src/silc/core/silc-queries.c.
2627
2628 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2629
2630         * Fixed a crashbug in incoming server accepting.  Affected
2631           file silcd/server.c.
2632
2633 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2634
2635         * Added automatically generated index to Toolkit Reference
2636           Manual.
2637
2638         * Added support for Postscript Toolkit Reference Manual.
2639
2640 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2641
2642         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2643           CVS.
2644
2645 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2646
2647         * Added 'send_events' boolean argument to the function
2648           silc_schedule_set_listen_fd which sends the set events to
2649           the application explicitly if set to TRUE.  Default action
2650           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2651           lib/silcclient/client_internal.h and silcd/server_internal.h.
2652
2653         * Added silc_compare_timeval to determine which time values
2654           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2655
2656         * Added sort-of "Quality of Service" (QoS) support to
2657           SilcSocketConnection.  Data reception can be controlled with
2658           rate limit per second and/or read data length limit.
2659           Added silc_socket_set_qos.  Affected files are
2660           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2661
2662         * Added the QoS configuration to SILC Server configuration
2663           file.  Affected files are silcd/serverconfig.[ch] and
2664           server.c.
2665
2666 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2667
2668         * Merged with irssi.org CVS.
2669
2670         * Failed OPER and SILCOPER authentications are now logged.
2671           Affected file silcd/command.c.  Bugs #25.
2672
2673 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2674
2675         * ROBODoc documented lib/silcutil/silcbuffer.h and
2676           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2677           <ville.rasanen@iki.fi>.
2678
2679 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2680
2681         * Added support for auto-passphrase authentication from the
2682           config file during connecting which was not implemented
2683           yet.  Affected file irssi/src/silc/core/client_ops.c.
2684
2685         * Fixed a bug in authentication protocol failure handling which
2686           was processing wrong callback context.  Affected files
2687           are lib/silcclient/client.c and protocol.c.
2688
2689         * Fixed the /ATTR allow off to actually work.  Affected file
2690           is irssi/src/silc/core/silc-queries.c.
2691
2692         * Fixed the /ATTR -del to work.  Affected file is
2693           irssi/src/silc/core/silc-queries.c.
2694
2695 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2696
2697         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
2698
2699         * Fixed mask attribute adding in Irssi SILC client.  Affected
2700           file irssi/src/silc/core/silc-queries.c.
2701
2702 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2703
2704         * Added support for saving the requested attributes in
2705           WHOIS to directory.  Affected file is
2706           irssi/src/silc/core/silc-queries.c.
2707
2708 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2709
2710         * Added support for parsing VCard fields that do not have
2711           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
2712
2713         * Fixed a double free bug in hash table foreach function
2714           if the entry was deleted in the foreach callback.  Affected
2715           file lib/silcutil/silchashtable.c.
2716
2717 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2718
2719         * Added silc_attribute_get_verify_data to return the signature
2720           verification data for either user digital signature or
2721           server digital signature in Requested Attributes.  Affected
2722           files are lib/silccore/silcattrs.[ch].
2723
2724         * Added silc_vcard_alloc which is used to allocated dynamic
2725           SilcVCard context.  The silc_vcard_free now checks whether
2726           the context is dynamically allocated or not.  Affected files
2727           are lib/silcutil/silcvcard.[ch].
2728
2729 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2730
2731         * Periodically remove the NOATTR status from client entry
2732           so that the client may take the attributes in use even after
2733           server has resolved them unsuccessfully earlier.  Affected
2734           file silcd/server_query.c and idlist.h.
2735
2736         * Moved sha1hash and md5hash from client->internal to
2737           SilcClient for application usage.  Affected files are
2738           lib/silcclient/client.h and client_internal.h.
2739
2740         * Fixed attribute encoding and decoding bugs.  Affected
2741           files lib/silccore/silcattrs.[ch].
2742
2743         * Added ATTR command to Irssi SILC Client which is used to
2744           manage user's Requested Attributes sending and values for
2745           WHOIS command.  Affected files around Irssi SILC client.
2746
2747 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2748
2749         * Added silc_buffer_strformat which can be used to format
2750           strings into a buffer which size is automatically increased.
2751           Affected file lib/silcutil/silcbuffmt.[ch].
2752
2753         * Added implementation of VCard (RFC 2426) which can be used
2754           as part of Requested Attributes in WHOIS command.  Affected
2755           file lib/silcutil/silcvcard.[ch].
2756
2757 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2758
2759         * Some strncat -> silc_strncat changes our the core and
2760           client library.
2761
2762         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
2763           errors.  Added better error printing to SKE library.
2764           Affected files lib/silcske/silcske.c, silcske_status.h and
2765           payload.c.
2766
2767         * Save the PKCS key length even if only private key is set to
2768           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
2769
2770         * Fixed the usage of silc_pkcs_get_key_len since it returns the
2771           length in bits not in bytes.  Affected files are
2772           lib/silcske/silcske.c, lib/silccore/silcauth.c and
2773           silcd/server_query.c.
2774
2775 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2776
2777         * Added silc_attribute_payload_encode_data to directly encode
2778           the data into the attributes buffer.  Renamed function
2779           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
2780           Affected files are lib/silccore/silcattrs.[ch].
2781
2782         * silc_hash_table_find_foreach calls the foreach function now
2783           once even if the nothing was found with context set to NULL.
2784           Affected file lib/silcutil/silchashtable.[ch].
2785
2786         * Remove the RESOLVING flag from client entry after received
2787           the Requested Attributes from the client.  Fixed memory leak
2788           in client entry freeing.  Affected files silcd/server_query.c
2789           and idlist.c.
2790
2791         * Added Requested Attributes support into SILC Client Library.
2792           It is not able to send requested attributes in WHOIS command,
2793           and also receive and process requested attributes.  Added
2794           silc_client_attribute_[add|del] and silc_client_attributes_get
2795           functions.  Added also `ignore_requested_attributes' to the
2796           SilcClientParams to not use attributes in client.  Affected
2797           files are lib/silcclient/command.c, client_attrs.[ch],
2798           silcclient.h, client_internal and client.[ch].
2799
2800         * Changed the silc_client_get_client_by_id to support Requested
2801           Attributes, it takes them as argument now.  Affected file
2802           is lib/silcclient/silcclient.h, and idlist.c.
2803
2804         * Added -details option to WHOIS command in Irssi SILC Client
2805           to support the requested attributes.  By default it requests
2806           all attributes.  Affected file lib/silcclient/command.c and
2807           irssi/doc/help/in/whois.in.
2808
2809 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2810
2811         * Add also SERVICE attribute for server-constructed attribute
2812           data.  Also digitally sign the attributes and add
2813           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
2814           silcd/server_query.c.
2815
2816 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2817
2818         * Changed the silc_attribute_payload_encode to support list
2819           of attributes (function may be called several times to add
2820           a new attribute).  Removed the silc_attribute_payload_encode_list
2821           function.  The encoding function now also automatically encodes
2822           the data, so the caller does not need to do that.  Affected
2823           files lib/silccore/silcattrs.[ch].
2824
2825         * Added support for replying on behalf of the user to the
2826           Requested Attributes in WHOIS command in the server.  Affected
2827           file silcd/server_query.c.
2828
2829         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
2830           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
2831
2832 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2833
2834         * Don't swtich to become primary router if we are backup if
2835           decryption error has occurred.  Affected file silcd/server.c.
2836
2837         * Fixed a bug in backup router IP address comparison in
2838           silc_server_backup_get.
2839
2840           Save now also the port of the server/router and use that
2841           in comparison as well.  Affected file silcd/server_backup.c.
2842
2843         * Normal server now reconnects to backup router automatically
2844           if connection is lost to it.  Affected file silcd/server.c.
2845
2846 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2847
2848         * If packet processing fails (like integrity check fails)
2849           the connection is closed now.  Affected files are
2850           lib/silccore/silcpacket.c and silcd/server.c.
2851
2852 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2853
2854         * Fixed double free in RSA public key set function
2855           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
2856           Bug #29.
2857
2858 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2859
2860         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
2861           Added server_query.[ch] which provides one interface for
2862           querying information using all three commands.
2863
2864         * Changed all "typedef unsigned char" in core library to
2865           "typedef SilcUInt8".
2866
2867 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2868
2869         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
2870
2871         * Renamed silc_server_get_client_resolve to
2872           silc_server_query_resolve and moved to server_query.[ch].
2873
2874 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2875
2876         * Resumed client packet handling from server put the resumed
2877           client on wrong list on router and caused the client not
2878           be present on the network anymore.  Now fixed to put the
2879           client to correct list.  Affected file silcd/packet_receive.c.
2880
2881 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2882
2883         * Various cleanup in error message output in config parsing code
2884           and in server init code.  Fixed error log files containing
2885           too many newlines ('\n') in some situations.  Affected files are
2886           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
2887
2888 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2889
2890         * Use the reverse lookupped hostname in client internals
2891           instead of one user provided us as remote server name.
2892           Affected file lib/silcclient/client.c.
2893
2894 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2895
2896         * Added 'app_context' to silc_schedule_init.  It is an
2897           application specific context that is delivered to application
2898           in task callback functions.  Affected files are
2899           lib/silcutil/silcutil.[ch].
2900
2901         * The hb_context in SilcSocketConnection is not freed
2902           automatically anymore (application must free it).  Freeing
2903           it automatic is inconsistent.  Affected files are
2904           lib/silcutil/silcsockconn.[ch].
2905
2906 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2907
2908         * Added support for removing explicitly added client connections
2909           in rehash and closing the client connections if they were
2910           unconfigured in the rehash.  Affected file silcd/server.c.
2911
2912         * Added support for aborting automatically pending commands
2913           that never receives the reply (to avoid memory leaks).
2914           Added also silc_server_command_pending_timed to set the
2915           specific timeout for pending command.  Affected files are
2916           silcd/command[_reply].[ch].
2917
2918         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
2919           specs and lib/silccore/silcstatus.h.
2920
2921 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2922
2923         * Changed the silc_get_time to accept time value as argument
2924           or if zero is sent return current local time.  Affected
2925           file lib/silcutil/silcutil.[ch].
2926
2927         * Added STATS command to client library and Irssi SILC client.
2928           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
2929
2930 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2931
2932         * Assure that channel key is set before sending it.  May
2933           crash server otherwise.  Affected file silcd/packet_send.c.
2934
2935 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2936
2937         * Assure that endless loop cannot happen with detached client
2938           resolving on normal server.  Added idlist status
2939           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
2940           silcd/idlist.h and silcd/packet_receive.c.
2941
2942 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2943
2944         * Incoming file transfer request cannot use same session as
2945           the sending session.  This can happen when sending file to
2946           yourself.  Crashed the client on quit.  Affected file
2947           lib/silcclient/client_ftp.c.  Bug #24.
2948
2949 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2950
2951         * Implemented the draft-riikonen-precense-attrs draft and
2952           the Attribute Payload into the lib/silccore/silcattrs.[ch].
2953
2954 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2955
2956         * Distribute the SERVER_SIGNOFF notify also to local backup
2957           routers from the primary router.  The backup router may not
2958           have the signing of local server directly connected and need
2959           to know about the signoff.  Affected file silcd/server_util.c.
2960
2961         * Use the primary router as the origin of the locally connected
2962           server when it is disconnecting from the backup router since
2963           that's where it really is coming from.  Now the clients from
2964           the disconnecting server are removed correctly and "shadow"
2965           clients are not left to the backup router.  Affected file
2966           silcd/server.c.
2967
2968 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2969
2970         * If normal server is standalone and found existing but disabled
2971           channel, do not re-create the channel since it creates
2972           duplicate same channels.  Affected file silcd/server.c.
2973
2974         * Added anonymous client connections support to server.  New
2975           "anonymous" configuration option to ConnectionParams section
2976           added.  If set to true, the username and hostname information
2977           of the client will be scrambled and anonymous user mode is
2978           set automatically to the user.  Affected files are
2979           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
2980
2981 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2982
2983         * In JOIN notify handling, mark that the cache entry of the
2984           client cannot be expired.  Can cause crashes on normal
2985           server (asserts client->channels).  Affected file is
2986           silcd/packet_receive.c.
2987
2988         * From now on distribution versions are used as protocol versions
2989           instead of by default using the Toolkit base version as protocol
2990           version.  Affected file prepare.
2991
2992         * Do not set the locally resolved hostname for local client
2993           entry but take what server sends.  This way the real hostname
2994           is showed in WHOIS for yourself.  Affected file is
2995           lib/silcclient/idlist.c and lib/silcclient/client.c.
2996
2997         * Resolve local info with IDENTIFY when connecting to server.y
2998
2999 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3000
3001         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3002           for implied search (not needed on platforms which has native
3003           pthreads library).  Use --without-pthreads to disable threads.
3004           Affected file is configure.in.pre
3005
3006         * Fixed --with-iconv on platforms which need to bypass (broken)
3007           native iconv().  Affected file is configure.in.pre
3008
3009 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3010
3011         * Moved -C option parsing in Irssi SILC client at same time
3012           as other options.  The UI was initialized earlier and caused
3013           problems on command line.  Bug #16.  Affected file is
3014           irssi/src/silc/core/silc-core.c.
3015
3016 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3017
3018         * Added global variable silc_log_timestamp that tells silclog
3019           wether to print or not the timestamp in the logging files.
3020           Affected file lib/silcutil/silclog.[ch].
3021
3022         * Added silcd configuration option Timestamp in the Logging
3023           section.  Affected file silcd/serverconfig.[ch],
3024           doc/example_silcd.conf.in.
3025
3026 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3027
3028         * Fixed fingerprint checking to check for entirely empty
3029           fingerprint instead of two first bytes when determining
3030           if it is set.  Bug #18.  Affected file silcd/command.c.
3031
3032         * Fixed duplicate PKCS name registering to not allow it.
3033           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3034
3035 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3036
3037         * Conditionalize non-gcc compiler optimizations for various
3038           platforms, enable those commented out.  Cleanups.
3039           Affected file lib/silcmath/mpi/configure.in
3040
3041 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3042
3043         * silc_rng_exec_command() left zombie processes if command
3044           didn't generate any output.  Affected file
3045           lib/silccrypt/silcrng.c
3046
3047 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3048
3049         * Rewrote iconv checking, introduce --with-iconv for systems
3050           which rely on libiconv.  Check if iconv() provided by libc
3051           is good enough, otherwise demand libiconv.  Affected file
3052           configure.in.pre
3053
3054 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3055
3056         * Search for ldopen() also in libc.  This enables SIM support
3057           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3058           file configure.in.pre
3059
3060 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3061
3062         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3063           This fixes prepare on *BSD systems.  Affected file
3064           configure.in.pre
3065
3066 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3067
3068         * More fixed for not having purge timeout for global clients
3069           that are on channel.  Affected files silcd/command_reply.c
3070           and server_util.c.
3071
3072         * Fixed the rekey protocol to work with backup router connections.
3073           Rekey packets are now allowed on disabled connections as
3074           well.  Affected files silcd/packet_send.c and server.c.
3075
3076         * Do not switch to be as backup router when shutting down and
3077           closing the primary connection.  Affected file silcd/server.c.
3078
3079         * Fixed memory leaks in backup router deleting.  Added
3080           silc_server_backup_free to free all data during shutdown of
3081           server.  Affected files silcd/server_backup.[ch].
3082
3083 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3084
3085         * Do not process commands if the sock->user_data is NULL.
3086           Affected file silcd/command.c.
3087
3088 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3089
3090         * Fixed buffer overflow and security problems (loosing bits
3091           in CFB encryption) in SILC RNG.  Problems reported by
3092           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3093
3094 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3095
3096         * Added yet more checks that client is not expired on global
3097           list if it is on channels.  Affected file is
3098           silcd/command_reply.c.
3099
3100 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3101
3102         * Merged c0ffee's MIME signal patch which adds support for
3103           sending also MIME messages in Irssi SILC Client, and handling
3104           received MIME messages in a signal (and perhaps doing something
3105           to non-textual MIME messages).
3106
3107 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3108
3109         * Fixed pending command deletion in server and client library
3110           to check the whole list instead of breaking after first found.
3111           The affected files are silcd/command.[ch] and
3112           lib/silcclient/command.[ch].
3113
3114 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3115
3116         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3117           secret or private, otherwise it's possible to find out
3118           whether a secret channel exists or not.  Affected file
3119           silcd/command.c.
3120
3121         * If CMODE change fails during the mode setting, assure that
3122           the old mode mask is set for the channel back.  Affected
3123           file silcd/command.c.
3124
3125         * Fixed passphrase saving on +a channel on normal server
3126           after successful JOIN command.  Affected file silcd/command.c.
3127
3128 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3129
3130         * Remove server/router operator privileges in DETACH command,
3131           since it's possible to resume to server where these
3132           privileges would not be allowed for the client.  Affected
3133           file silcd/command.c.
3134
3135         * Do not set to wait for backup in rehash of the server.
3136           Affected file silcd/server.c.
3137
3138         * Do not check listener sockets when counting how many
3139           socket connections we have.  Affected file is
3140           silcd/server_util.c.
3141
3142         * Do not announce disconnected clients that are remaining
3143           in history (for WHOWAS).  This is because SIGNOFF notify
3144           for these has been sent earlier already.  Affected file
3145           silcd/server.c.
3146
3147 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3148
3149         * Buffer overflow with CUMODE command's mode->mode character
3150           conversion.  Reported by Ville Räsänen.  Affected file
3151           lib/silcutil/silcutil.c.
3152
3153 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3154
3155         * Allow heartbeat packets to go disabled connections anyway.
3156           Affected files silcd/server.c and silcd/packet_send.c.
3157
3158         * Do not broadcast New Channel packets with List flag set
3159           in the packet to backup routers.  The router must check
3160           for the correctness of the packets before sending them.
3161           It is possible that router will have enforce Channel ID
3162           change and this would cause desync in the backup router.
3163           Affected file silcd/packet_receive.c.
3164
3165         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3166           are handled in list parsing.  They are not list packets
3167           anymore.  Affected file silcd/packet_receive.c.
3168
3169 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3170
3171         * Stop waiting for backup router through the timeout, not
3172           directly after backup router has arrived.  Affected file
3173           silcd/server.c.
3174
3175         * Do not re-create channel keys and send them when removing
3176           clients in server shutdown.  Affected files are
3177           silcd/server_internal.h and silcd/server_util.c.
3178
3179         * Notify distribution to backup routers was missing from
3180           the silc_server_send_notify_dest function which caused
3181           desyncing problems with backup router.  Affected file is
3182           silcd/packet_send.c.
3183
3184         * The client's channel removing was working wrong on
3185           backup router.  It assumed that it doesn't know global
3186           information but backup router does know.  For this reason
3187           it could remove channel when it wasn't supposed to do that.
3188           Affected file silcd/server.c and silcd/server_util.c.
3189
3190 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3191
3192         * Stop for a couple seconds after badkup router has become
3193           primary router.  Affected file silcd/server.c.
3194
3195         * Added silc_server_remove_servers_by_server, which is used
3196           to remove servers originated from some other server.  Also
3197           clients of those servers can be removed too.  Affected file
3198           silcd/server_util.[ch].
3199
3200         * When removing clients after a server has signed of remove
3201           also all servers behind that server (unless they are known
3202           to be available locally), and send SERVER_SIGNOFF for each
3203           of the server separately.  Also the signed off clients are
3204           sent now separately per signed off server.  The affected files
3205           are silcd/server.c and silcd/server_util.[ch].
3206
3207         * All servers added with silc_idlist_add_server must always
3208           have both "router" and "connection" pointers set.  Otherwise,
3209           bad server entries may be left around in the cache.
3210           Affected file silcd/command_reply.c.
3211
3212         * Do not create the channel key in NEW_CHANNEL packet
3213           processing if the channel is empty.  Affected file
3214           silcd/packet_receive.c.
3215
3216         * Completed backup router support for standalone routers.
3217           Supports also servers in the cell that do not use the backup
3218           at all.
3219
3220 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3221
3222         * Fixed a bug in silc_string_regexify which did not add '^'
3223           at the start of each string, and thus the matching was
3224           not explicit.  For example ban list iikone@*!*@* would
3225           match also "priikone", which is wrong, it would have to be
3226           *iikone@*!*@* to match also "priikone".  Affected
3227           file lib/silcutil/unix/silcunixutil.c.
3228
3229 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3230
3231         * Enable all local server connections before updating client
3232           caches when we've become backup router.  Otherwise, signoff
3233           packets may not reach the clients.  Affected files are
3234           silcd/server.c and silcd/server_util.[ch].
3235
3236         * Fixed a bug in version string parsing which could crash
3237           the program with specially formatted version string.
3238           Bug reported and patch provided by Ville Räsänen.  Affected
3239           file lib/silcutil/silcutil.c.
3240
3241         * Handle the disconnection immediately when DISCONNECT
3242           packet is received in server.  Affected file silcd/server.c.
3243
3244         * Primary router now waits a short time (10 seconds) for
3245           backup router connection before accepting any other
3246           connection (except local).  Affected file silcd/server.c,
3247           serverconfig.[ch].
3248
3249         * Fixed a crash in client libary in NICK_CHANGE notify when
3250           NICK_CHANGE arrived for client entry we are resolving
3251           currently.  Affected file lib/silcclient/client_notify.c.
3252
3253         * Call the sconn->callback completion even if error had
3254           occurred.  Start reconnecting always if connection to
3255           primary router fails during backup router protocol.
3256           Affected files silcd/server.c and server_backup.c.
3257
3258 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3259
3260         * Added functions silc_server_send_opers and
3261           silc_server_send_opers_notify to send packets stricly
3262           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
3263           to send variable argument notify to operators.
3264           Affected files silcd/packet_send.[ch] and silcd/server.h.
3265
3266         * Removed UMODE rights checking with UMODE_CHANGE notify.
3267           Affected file silcd/packet_receive.c.
3268
3269         * Server/router operator now receives notify when network
3270           switches to backup router and when it resumes the use of
3271           primary router.  Affected file silcd/server.c and
3272           silcd/server_backup.c.
3273
3274         * Fixed the updating of client information after backup
3275           resuming protocol is over; update all except local clients
3276           to the new primary router.  The affected file is
3277           silcd/server_util.c.
3278
3279         * Added support for closing active connections in rehash
3280           that were unconfigured by the user.  Supports currently
3281           closing server and router connections.  Affected file
3282           silcd/server.c.
3283
3284         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
3285
3286 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3287
3288         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
3289           is NULL since seems that on some platforms NULL is allowed
3290           and on some it's not.  Fallback encoding is used instead.
3291           Affected file lib/silcutil/silcstrutil.c.
3292
3293         * Fixed statistics updating for incoming server connection
3294           which could cause problems when re-connecting.  Affected
3295           file silcd/server.c.
3296
3297         * Preliminary backup router support for standalone router
3298           added.  Affected files in silcd/.
3299
3300         * Mark server connections in backup router disabled before
3301           and after backup protocol.  Affected file is
3302           silcd/server_backup.c.
3303
3304         * Added support for reconnecting to remote server connection
3305           even if the protocol fails, and if the configuration wants
3306           us to keep trying to connect anyway.
3307
3308           Server connection is not allowed to backup router if
3309           backup router does not have connection to primary router yet.
3310
3311           Affected file is silcd/server.c.
3312
3313 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3314
3315         * Added silc_client_udpate_server function to update changed
3316           server info.  Affected file lib/silcclient/idlist.[ch].
3317
3318         * Added check for server entries that are being resolved when
3319           notify is received.  If being resolved, handle the received
3320           notify only after it's resolved so that all notifys are
3321           handled in same order as received from the server.
3322
3323           Added similar resolver check to channel entries.  Every
3324           notify that cause resolving of any information that affects
3325           channel entry marks the channel entry in waiting state.
3326           After whatever resolving is over the waiters are signalled
3327           and only then the notifys are handled in the same order
3328           as delivered from the server.
3329
3330           Affected files are lib/silcclient/idlist.[ch], and
3331           client_notify.c.
3332
3333         * Fixed KILLED notify handling in normal server.  Affected
3334           file silcd/packet_receive.c.
3335
3336         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
3337           is locally connected, or was locally connected (but may
3338           be detached and connection is not active).  Added also
3339           SILC_IS_LOCAL for checking this status.  Affected files
3340           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
3341           silcd/server.c and silcd/server_internal.h.
3342
3343 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3344
3345         * Don't send or handle TOPIC_SET if topic is already set and
3346           is same as being set.  Affected files silcd/command.c and
3347           silcd/packet_receive.c.
3348
3349         * Fixed CMODE change rights checking to work correctly when
3350           removing modes by operator.  Affected file is
3351           silcd/server_util.c.
3352
3353         * Fixed some handling with New Channel packet in router and
3354           fixed some CMODE_CHANGE notify handling in server and router.
3355           Affected file is silcd/packet_receive.c.
3356
3357         * Changed "disconnect" client operation to include the
3358           reason of the disconnection and optional disconnection
3359           message.  Affected file lib/silcclient/silcclient.h.
3360
3361         * Made the compilation of lib/contrib/ stuff conditional.
3362           Affected files configure.in.pre, lib/contrib/Makefile.am.
3363
3364 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3365
3366         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
3367           to the sender of the notify too, to avoid situation where two
3368           notifys are in the network at the same time going to oppsite
3369           directions.  Affected file silcd/packet_receice.c.
3370
3371 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3372
3373         * Delete the client from channel even if the cilent->id is
3374           NULL.  It was possible that client was deleted without
3375           removing from channels (theoretically at least).  Affected
3376           file silcd/server.c and silcd/server_util.c.
3377
3378         * Free the client data too when resuming is not successful.
3379           Affected file silcd/packet_receive.c.
3380
3381         * Merged some code from c0ffee's silc-plugin.  Affected files
3382           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
3383
3384         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
3385           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
3386           to the primary router connection, the other one returns
3387           TRUE if packet must be broadcasted to network.
3388
3389         * All notifys that are destined to primary router (to network)
3390           are now automatically sent to backup routers even if the
3391           router is standalone (and has backup router).  Affected files
3392           in silcd/.
3393
3394         * Added --without-irssi and --without-silcd configuration
3395           options for disabling the compilation of these applications.
3396           Affected file configure.in.pre and prepare.
3397
3398 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3399
3400         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
3401           UTF-8 encoding and decoding.  Added also new encodings
3402           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
3403
3404           Added also SILC_STRING_LANGUAGE which is language and charset
3405           specific encoder and decoer for those platforms that support
3406           iconv().  It can convert the UTF-8 to and from the locale
3407           specific character set.
3408
3409           Affected file lib/silcutil/silcstrutil.[ch].
3410
3411         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
3412
3413         * Added function silc_get_command_name to the file
3414           lib/silcutil/silcutil.[ch].
3415
3416         * Improved the server debug output a bit.  Affected files are
3417           in silcd/.
3418
3419 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3420
3421         * Save the channel passphrase when received succesful JOIN
3422           command reply from router, on normal server.  Otherwise
3423           joinig +a channels from normal server is not possible.
3424           Affected file silcd/command.c.
3425
3426         * Fixed a bug in TOPIC_SET notify handling.  The notifier
3427           may be other than client too, like server or channel.
3428           It expected it to always be only client and ignored the
3429           notify.  Affected file silcd/packet_recieve.c.
3430
3431         * Removed some (unnecessary) debug printing from
3432           lib/silccore/silcid.c and lib/silccore/silcargument.c.
3433
3434         * Do not force CMODE_CHANGE when server is announcing new
3435           channel.
3436
3437           Router announces stuff only after server reannounces channel
3438           after CHANNEL_CHANGE notify.
3439
3440           These fixes optimizes the announcing procedure, and perhaps
3441           fixes some problems too.  Affected file silcd/packet_receive.c.
3442
3443         * Fixed SERVER_SIGNOFF sending to local clients.  It was
3444           totally broken and sent the notify to all local clients,
3445           instead of only to those that was on same channel as the
3446           signing off clients.  Affected file silcd/server_util.c.
3447
3448         * Added -D option to server.  It can be used to give debug
3449           level.  The levels are from 0 - 99, and are predefined for
3450           smooth server debugging.  (see silcd.c for the predefined
3451           levels).  Affected file silcd/server.c.
3452
3453 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3454
3455         * Fixed a bug in Irssi SILC client to close the connection
3456           properly when disconnecting from server.  Affected file
3457           irssi/src/silc/core/client_ops.c.
3458
3459 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3460
3461         * When authenticating as founder during JOIN command, check
3462           that the one authenticating becomes the only founder on the
3463           channel.  Affected file silcd/command.c.
3464
3465         * Better checking for founder mode setting when CUMODE_CHANGE
3466           notify is received.  Affected file silcd/packet_receive.c.
3467
3468         * Close all connections when shutting down the server by sending
3469           DISCONNECT packet.  Close all listeners too when shutting
3470           down the server.  Affected file silcd/server.c.
3471
3472         * Handle DISCONNECT packet correctly in client library by
3473           calling the "disconnect" client operation.  Affected file
3474           lib/silcclient/client.c.
3475
3476         * Handle local errors correctly during resuming.  Affected
3477           file lib/silcclient/client.c.
3478
3479 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3480
3481         * The log file is not dupped internally anymore in
3482           lib/silcutil/silclog.c.  Fixed memory leaks too.
3483
3484         * The scheduler now dispatches all pending timeout tasks
3485           when it is uninitialized with silc_schedule_uninit.
3486           Affected file lib/silcutil/silcschedule.c.
3487
3488 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3489
3490         * Added --enable-stack-trace option to configure.  Added
3491           memory allocation stack trace support.  Added files
3492           lib/silcutil/stacktrace.[ch].  Affected files are
3493           lib/silcutil/silcmemory.[ch].
3494
3495         * Fixed memory leaks from libraries and server.  Affected
3496           files around the tree.
3497
3498         * Reverted back a fix made to CUMODE which broke it.
3499           Affected file silcd/command.c.
3500
3501 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3502
3503         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3504           core library, and implemented it.  All textual messages SHOULD
3505           use this flag and the message MUST be UTF-8 encoded.
3506           All text messages sent by Irssi SILC client are now UTF-8
3507           encoded (regardless whether the terminal supports UTF-8 or not).
3508           Affected files are lib/silccore/silcchannel.h,
3509           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3510           client_ops.c.
3511
3512 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3513
3514         * Added lots of new statistics updating that was missing from
3515           the server and router code.  Affected files in silcd/.
3516
3517         * Sending SIGUSR1 signal to server now dumps the current
3518           server statistics into /tmp directory.  Affected file is
3519           silcd/silcd.c.
3520
3521         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3522           the SILC Hash Interface also.  Added new functions
3523           silc_hash_get_name, silc_hash_init, silc_hash_update and
3524           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3525
3526 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3527
3528         * Added some better info printing for client during connecting.
3529           Affected file silcd/server_util.c.
3530
3531         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3532           to silence a user on a channel.  Affected files are
3533           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3534           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3535           and silcd/packet_receive.c.
3536
3537         * Fixed a fatal bug in handling of malformed command payload.
3538           Affected file silcd/command.c.
3539
3540         * Fixed a double free when announcing channel users to router.
3541           Affected file silcd/server.c.
3542
3543         * After successful authentication to channel founder mode, check
3544           that there isn't anyone else with founder mode on the channel.
3545           The one that authenticated will become founder and anyone
3546           else is demoted.  Affected file silcd/command.c.
3547
3548         * Added error printing of any error that has occurred during
3549           any command in client library.  Affected file is
3550           irssi/src/silc/core/client_ops.c.
3551
3552         * Removed some error printing from the client library and left
3553           it for the application to worry (from the error status it
3554           receives in 'command' client operation.  Affected file is
3555           lib/silcclient/command.c.
3556
3557 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3558
3559         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3560           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3561           Starting key agreement with itself is denied.  Affected file
3562           is lib/silcclient/client_keyagr.c.
3563
3564         * Fixed some error checkings from the SFTP library which caused
3565           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3566           and lib/silcsftp/sftp_util.c.
3567
3568         * Added new "debug" and "debug_string" settings to Irssi SILC
3569           client which can be used to print runtime debugging on the
3570           Irssi's screen.  Available when compiled with --enable-debug
3571           option.  Affected file irssi/src/silc/core/silc-core.c.
3572
3573 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3574
3575         * Fixed a missing variadic parameter in a function call that
3576           caused server crash when a non-allowed connection arrived.
3577           Reported by Richard Becker.  Affected file silcd/server.c.
3578
3579 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3580
3581         * Added WATCH list sending to backup routers from router.
3582           The WATCH command is sent by the router to the backup
3583           router.  Affected file silcd/command.c.
3584
3585         * Mark the backup_router flag for RouterConnection entry
3586           if the backup router stuff is defined in the config file.
3587           Affected file silcd/serverconfig.c.
3588
3589         * Fixed some backup data sending around the code to work better
3590           if the router is standalone router.  Not all places were fixed.
3591           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3592           silcd/server.c.
3593
3594         * Fixed the router connecting when connecting to multiple
3595           routers.  It ignored every other router except the first
3596           one.  Affected file silcd/server.c.
3597
3598 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3599
3600         * Made the private key generation after expiration optional.
3601           If not created after expiration the old key will re-expire
3602           at a later time (and thus key pair is not necessary to
3603           change).  Affected file irssi/src/silc/core/clientutil.c.
3604
3605 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3606
3607         * The length arguments in bind() and connect() were wrong
3608           and fixed now to used SIZEOF_SOCKADDR in the
3609           lib/silcutil/unix/silcunixutil.c.
3610
3611 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3612
3613         * Fixed detach timeout handling to use Client ID and not
3614           the actual client entry which may be freed in the callback.
3615           Affected file silcd/command.c.
3616
3617 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3618
3619         * Merged c0ffee's multiple interface support patch.
3620           Affected files in silcd/.
3621
3622 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3623
3624         * Cleanup keys properly.  Affected file is
3625           irssi/src/silc/core/clientutil.c.
3626
3627 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3628
3629         * Display the user mode on the status bar.  Affected file
3630           irssi/src/silc/core/silc-expandos.c.
3631
3632 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3633
3634         * If private message key is not set, but the flag is set in
3635           the packet, ignore the packet since it cannot be decrypted.
3636           Affected file lib/silcclient/client_prvmsg.c.
3637
3638 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3639
3640         * When resuming client, remove the old client entry from
3641           the watcher list too.  Affected file silcd/packet_receive.c.
3642
3643         * Do not allow normal server to force founder mode away
3644           from router if the founder mode is already set.  Affected
3645           file silcd/packet_receive.c.
3646
3647         * Remove the client entry with watch notify types with short
3648           timeout, and not directly, so that other notifys can be
3649           retrieved too.  Affected file lib/silcclient/client_notify.c.
3650
3651         * Display notification about data messages that cannot be
3652           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3653           irssi/src/fe-common/silc/module-formats.[ch].
3654
3655 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3656
3657         * Fixed the CHANNEL_CHANGE notify handling in client libary
3658           to not use freed memory.  Affected file is
3659           lib/silcclient/client_notify.c.
3660
3661         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3662           file silcd/packet_receive.c.
3663
3664         * Fixed USERS command to support empty channels.  Affected
3665           file silcd/command.c.
3666
3667 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3668
3669         * Allow multiple identical pending commands to be registered
3670           in client library.  Affected file is lib/silcclient/command.c.
3671
3672         * Call the completion for resolving client information only
3673           after all resolvers has finished.  This fixes a crash in
3674           the client.  Added support for checking when the resolvers
3675           are finished.  Affected file is lib/silcclient/idlist.c.
3676
3677         * Wait by default 3 seconds before reconnecting to the server
3678           after being disconnected.  Makes the /detach command a bit
3679           more usable.
3680
3681 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3682
3683         * Check the watcher list before sending signoff notifys
3684           when closing client connection.  Affected file is
3685           silcd/server.c.
3686
3687         * Added better CMODE command rights checking.  Affected file
3688           silcd/server_util.c.
3689
3690 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3691
3692         * Fixed watcher list checking during server signoff.  It
3693           crashed the server.  Affected file silcd/server_util.c.
3694
3695         * The JOIN command reply returns now the founder's public
3696           key.  Affected file is silcd/command.c.
3697
3698         * Announce the channel mode, and the mode properties with
3699           CMODE_CHANGE notify.  Affected file silcd/server.c.
3700
3701         * Mark new channels by default disabled, untill at least
3702           one user joins the channel.  Affected file is
3703           silcd/packet_receive.c.
3704
3705 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3706
3707         * The nickname argument to watch notify can be optional.
3708           Fixes a crash in server.  Affected file silcd/packet_send.c.
3709
3710         * Remove the client entry from cache if the WATCH notify type
3711           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
3712           lib/silcclient/client_notify.c.
3713
3714         * Check the watcher list before and after changing nickname
3715           when the NICK_CHANGE notify is received.  Affected file is
3716           silcd/idlist.c.
3717
3718         * Fixed a crash in OPER and SILCOPER command sending.  Empty
3719           passphrase caused the crash.  Affected file is
3720           lib/silcclient/command.c.
3721
3722 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3723
3724         * Merged with Irssi CVS for Irssi SILC client.
3725
3726 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3727
3728         * Completed the protocol specifications.
3729
3730 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3731
3732         * Merged with Irssi CVS for Irssi SILC client.
3733
3734 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3735
3736         * Added the founder's public key delivery to the
3737           CUMODE_CHANGE notify type as well.  Updated the protocol
3738           specs and the code.  Affected files are silcd/packet_send.[ch],
3739           silcd/packet_receive.c and silcd/command.c.
3740
3741 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3742
3743         * Added silc_pkcs_public_key_copy function into the
3744           lib/silccrypt/silcpkcs.[ch].
3745
3746         * Remove the `iv' from the SilcChannelEntry since we can
3747           live without it.  Affected files are silcd/idlist.h and
3748           silcd/packet_receive.c.
3749
3750         * Added support for sending the founder's public key in
3751           the CMODE_CHANGE notify packet in the server.  Affected
3752           files are silcd/packet_send.[ch], silcd/packet_receive.c,
3753           silcd/command.c and silcd/server.c.
3754
3755         * Changed the FOUNDER_AUTH authentication to use only
3756           public key authentication as defined by new protocol
3757           specs.  Passphrase authentication with that mode cannot
3758           be used anymore.  It is now possible to reclaim founder
3759           mode from any server in the network.  Affected files are
3760           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
3761
3762         * Added permanent channels support by making the channel
3763           permanent when FOUNDER_AUTH mode is set on the channel.
3764           The channel will not be destroyed even if channel is empty
3765           when that mode is set.  Protocol TODO #17.  Affected
3766           files are silcd/server.[ch], server_util.[ch],
3767           silcd/command.c, silcd/packet_receive.c and
3768           lib/silcclient/command.c.
3769
3770 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3771
3772         * Added reference counter to the command reply context in
3773           the client library.  Affected files are
3774           lib/silcclient/command_reply.[ch].
3775
3776 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3777
3778         * Fixed rekey protocol with PFS in the client library.
3779           Affected file is lib/silcclient/protocol.c.
3780
3781         * Added support for list of errors in client library
3782           command reply handling.  Affected file is
3783           lib/silcclient/command_reply.c.
3784
3785         * Defined that the WHOIS and IDENTIFY commands can send
3786           list of errors.  Updated the protocol specs.  Protocol
3787           TODO #2.
3788
3789         * Added support for sending list of errors to WHOIS and
3790           IDENTIFY commands in server.  Added support for receiving
3791           list of errors in server.  Affected files are
3792           silcd/command.c and silcd/command_reply.c.
3793
3794         * Fixed client info resolving on LEAVE command in client
3795           library to not crash.  Affected file is
3796           lib/silcclient/client_notify.c.
3797
3798 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3799
3800         * Defined that the NICK command replies with thew changed
3801           nickname too, to make the nickname changing simpler at
3802           the client's end.  Updated protocol specs and the code
3803           in client and server.  Affected files are
3804           silcd/command.c, lib/silcclient/command_reply.c and
3805           lib/silcclient/command.c.
3806
3807 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3808
3809         * Added `Compressed' packet flag to indicate that the packet
3810           payload is compressed by the sender.  Updated the protocol
3811           specs and the core library.  The compression still is not
3812           implemented in the sources.  Affected file is
3813           lib/silccore/silcpacket.h.
3814
3815 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3816
3817         * Remove pending command callbacks also if the connection
3818           to the server is destroyed.  Affected file is
3819           lib/silcclient/client.c.
3820
3821 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3822
3823         * Added new QUIET channel user mode that can be used to
3824           quiet a user in a channel.  Updated the protocol specs but
3825           it wasn't implemented yet.  Protocol TODO #27.  Affected
3826           file is lib/silccore/silcmode.h.
3827
3828 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3829
3830         * Added BLOCK_INVITE user mode to be able to block incoming
3831           invite notifications.  Protoocol TODO #26.  Affected files
3832           are lib/silccore/silcmode.h, lib/silcclient/command.c and
3833           silcd/command.c.
3834
3835         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
3836           the protocol specs and the code.  Affected file is
3837           lib/silccrypt/silcpkcs.c.
3838
3839 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3840
3841         * Disconnect Payload includes now the status type.  Updated
3842           the protocol specs and the code.  Protocol TODO #25.
3843           Affected files are silcd/server.c, lib/silcclient/client.c.
3844
3845         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
3846           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
3847           Moved the silc_client_command_status_messages table to the
3848           lib/silcutil/silcutil.c and added new funtion
3849           silc_get_status_message, which deprecates function
3850           silc_client_status_message.  Affected files are
3851           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
3852           lib/silcutil/silcutil.[ch].
3853
3854 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3855
3856         * Defined that the nickname hash in Client ID MUST be from
3857           lowercase nickname.  This effectively changes nicknames in
3858           SILC to case-insensitive.  Updated the protocol specs and
3859           the code.  Affected files are lib/silcutil/silcutil.[ch],
3860           silcd/serverid.c, and silcd/idlist.c.
3861
3862         * Added new channel user modes BLOCK_MESSAGES_USERS and
3863           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
3864           code.  Affected files are lib/silccore/silcmode.h,
3865           lib/silcclient/command.c, and silcd/packet_send.c.
3866
3867         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
3868           specs and code.  Affected file lib/silccore/silcstatus.h.
3869
3870         * Added support for watch list.  It is possible to add nicknames
3871           to be watched, and when they come to network, leave network
3872           or user mode changes the watcher will be notified of this
3873           change.  Added SILC_COMMAND_WATCH command, added new
3874           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
3875           notifications.  Updated the protocol specs and implemented
3876           this to library, client and server.  Protocol TODO #21.
3877           Affected files are lib/silccore/silccomand.h,
3878           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
3879           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
3880           silcd/packet_send.[ch], silcd/packet_receive.c, and
3881           irssi/src/silc/core/client_ops.c.
3882
3883         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
3884           somebody watching you.  Updated the protocol specs and the
3885           code.  Affected files are lib/silccore/silcmode.h, and
3886           lib/silcclient/command.c.
3887
3888 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3889
3890         * Added service support to SILC protocol.  Added new command
3891           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
3892           core library.  Services are not implemented in server or
3893           client for now.  Protocol TODO #20.  Affected files are
3894           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
3895
3896         * Added SilcStatus argument to `command' client operation
3897           to return the error status when command sending fails
3898           locally.  Changed all command in client library to return
3899           correct command status.  Affected files are
3900           lib/silcclient/command.c, lib/silcclient/silcclient.h and
3901           irssi/src/silc/core/client_ops.c.
3902
3903 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3904
3905         * Added silc_mime_parse function to parse MIME headers.
3906           Affected files are lib/silcutil/silcstruti.[ch].
3907
3908         * Added MIME header parsing in Irssi SILC Client.  It displays
3909           all textual MIME objects, others it ignores.  Affected file
3910           is irssi/src/silc/core/clien_ops.c.
3911
3912 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3913
3914         * Fixed a bug in the pid writing function, which couldn't be
3915           written in a root-owned directory.
3916
3917 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3918
3919         * Defined that channel message to unknown Channel ID must
3920           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
3921           Updated the protocol specs and the code in server.  The
3922           affected file is silcd/packet_receive.c.
3923
3924 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3925
3926         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
3927           that it is used to send error notifys if error occurs during
3928           some SILC packet processing, except commands.  The error
3929           types are same as for command reply types.  Defined that
3930           if private message is sent to unknown Client ID the error
3931           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
3932           Updated the protocol specs and code.  Affected files are
3933           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
3934           lib/silcclient/client_notify.c, silcd/packet_receive.c,
3935           and irssi/src/silc/core/client_ops.c.  Renamed the
3936           SilcCommandStatus to SilcStatus.
3937
3938         * Defined the use of extra WHOIS attributes in WHOIS command.
3939           The <Requested Attributes> (defined in a separate document)
3940           can be used to request additional information about user
3941           not returned by standard WHOIS command.  Defined that server
3942           can send WHOIS command directly to client.  Client provides
3943           the requested attributes to the server.  Updated the protocol
3944           specs.  Protocol TODO #4.  Implementation is not done yet
3945           (Protocol TODO #24).
3946
3947         * Renamed function silc_client_command_status_message to
3948           silc_client_status_message.  Affected files are
3949           lib/silcclient/command_reply.[ch].
3950
3951 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3952
3953         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
3954           32 bit integers.  Updated the protcol specs and the code.
3955           Affected files are silcd/command.c and
3956           lib/silcclient/command.c.
3957
3958 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3959
3960         * Fixed a bug in library where sending a bogus authentication
3961           payload would lead to a crash.  Affected file is
3962           lib/silccore/silcauth.c.
3963
3964 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3965
3966         * Added detach_disabled and detach_timeout server config
3967           options to the server.  Affected files silcd/serverconfig.[ch],
3968           silcd/command.c and silcd/packet_receive.c.
3969
3970 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3971
3972         * Added resolve_cmd_ident field to the SilcClientEntry structure
3973           too so that if the entry is for example being resolved so
3974           another command may attach to the same pending command reply
3975           without requiring to resolve the same entry again.  Added
3976           support for adding multiple pending commands for one
3977           command idenfier.  Affected files lib/silcclient/command.[ch],
3978           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
3979
3980 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3981
3982         * Defined that server receives WHOIS command reply for private
3983           and secret channels too.  Updated protocol specs and the
3984           code in server.  Affected file silcd/command.c.
3985
3986         * Defined <channel user mode list> argument to WHOIS command
3987           reply for returning user modes on the channels.  The
3988           channel list now doesn't include the user mode anymore but the
3989           actual channel mode.  Updated protocol specs and the code in
3990           client and server.  Affected files are silcd/command_reply.c,
3991           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
3992           and lib/silcclient/command_reply.c.
3993
3994         * Save the channels list in WHOIS command reply in normal server
3995           so that WHOIS always shows joined channels also in normal
3996           server and not just on router.  Affected file is
3997           silcd/command_reply.c.
3998
3999 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4000
4001         * Defined that server receives USERS command reply for private
4002           and secret channels too.  Updated protocol specs and the
4003           code in server.  Affected file silcd/command.c.
4004
4005 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4006
4007         * Changed the UMODE's mode mask argument to be optional.  If
4008           not provided then the command merely returns the current mode
4009           mask to the client.  Updated protocol specs and the server.
4010           Affected file is silcd/command.c.
4011
4012         * Added SILC session detachment/resuming support.  It is possible
4013           to detach by closing the network connection and then re-connect
4014           and resume to the old client session.  Added DETACHED user
4015           mode that server will set for detached client.  Added new
4016           packet RESUME_CLIENT which is used to perform the resuming
4017           process.  Added DETACH command.  Updated the protocol specs,
4018           core library, client and server.  Protocol TODO #22.  Very
4019           many affected files around the tree.
4020
4021 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4022
4023         * Changed the CMODE's mode mask argument to be optional.  If
4024           not provided then the command merely returns the current mode
4025           mask to the client.  Updated protocol specs and the server.
4026           Affected file is silcd/command.c.
4027
4028         * Changed the Killer's Client ID in KILLED notify to be just
4029           any ID payload since router server is allowed to kill as well.
4030           Updated protocol specs, client libary and server.  Affected
4031           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4032           and irssi/src/silc/core/client_ops.c.
4033
4034 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4035
4036         * Added new user modes ANONYMOUS for special anonymous servers
4037           that may set the mode for client, and BLOCK_PRIVMSG which
4038           client may set to block incoming private messages unless the
4039           Private Message Key flag is set (using private keys to protect
4040           private messages).  Updated protocol specs and code in client
4041           and server and core library.  Protocol TODO #23.  Affected
4042           files are lib/silccore/silcmode.h, silcd/server.[ch],
4043           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4044           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4045
4046         * Added new channel user mode BLOCK_MESSAGES which the client
4047           may set to itself to tell server not send channel messages.
4048           Other packets such as channel key packets are still sent.
4049           Protocol TODO #23.  Updated the protocol specs, client and
4050           server.  Affected files are lib/silccore/silcmode.h,
4051           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4052           lib/silcutil/silcutil.c, silcd/command.c, and
4053           silcd/packet_send.c.
4054
4055 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4056
4057         * Redefined the Status Payload to include now two 8 bit fields,
4058           instead of one 16 bit field.  This now makes it possible to
4059           send list of errors.  Updated the protocol specs and the code
4060           in core library, client library and server.  Protocol TODO #1.
4061           Affected files are lib/silccore/silccommand.[ch],
4062           lib/silcclient/command_reply.[ch], silcd/command.c,
4063           silcd/command_reply.c and silcd/packet_receive.[ch].
4064
4065 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4066
4067         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4068           must be handled by the application and should tell the application
4069           that an error message was already printed, and it should print the
4070           config coords (line, filename, ...).  Affected files are
4071           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4072
4073         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4074           server config parsing code more readable.
4075
4076           Fixed a bug in the fetch_logging() config callback.
4077
4078           Affected files is silcd/serverconfig.c.
4079
4080         * Drop root privileges when started in foreground.  Don't drop them
4081           if debugging also.  Affected file is silcd/silcd.c.
4082
4083 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4084
4085         * Added more IM-like features by introducing new user modes
4086           for setting various presence information.  Added new modes:
4087           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4088           specs and code.  Protocol TODO #19. Affected files are
4089           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4090           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4091
4092 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4093
4094         * Added STATS command to the protocol after all, to return
4095           various statistical information about the network.  It can
4096           be used by clients to retrieve statistical information, and
4097           servers may use it to to fetch cell and network wide
4098           statistics from router.  Updated the protocol specs and
4099           implemented it to the server.  Protocol TODO #16.
4100           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4101           silcd/command_reply.[ch].
4102
4103 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4104
4105         * The LIST command reply in client libary now adds new channel
4106           entry if the returned channel doesn't exist yet in cache,
4107           and returns the channel entry to the application in the
4108           command_reply client operation.  Affected file is
4109           lib/silcclient/command_reply.c.
4110
4111         * Changed the channel message payload's MAC generation to
4112           include the IV in the MAC as well.  This way all relevant
4113           parts of the channel message payload are authenticated also
4114           with the channel message MAC (and not only by packet MAC).
4115           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4116           Affected file is lib/silccore/silcchannel.c.
4117
4118         * Fixed the SKE to save the remote version, since the
4119           silc_ske_parse_version mistakenly checked wrong version,
4120           after it replaced the start payload.  Affected files are
4121           lib/silcske/silcske.[ch].
4122
4123 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4124
4125         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4126           string utility functions.  Added there also new functions
4127           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4128           Affected files lib/silcutil/silcstrutil.[ch].
4129
4130         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4131           files are lib/silcutil/silcstrutil.[ch].
4132
4133         * Defined that the security property fields in SKE SHOULD be
4134           UTF-8 encoded, defined that version string MUST be US-ASCII
4135           encoded, defined that passphrases sent in connection
4136           authentication protocol MUST be UTF-8 encoded.  Implemented
4137           these to the client and server.  Defined also that other
4138           passphrases sent in the protocol MUST be UTF-8 encoded.
4139           Affected files are lib/silcske/silcske.c,
4140           lib/silcclient/protocol.c, silcd/protocol.c,
4141           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4142
4143         * Changed the silc_client_close_connection interface to not
4144           need the SilcSocketConnection which should not be visible
4145           to application.  Affected files are lib/silcclient/client.c
4146           and lib/silcclient/silcclient.h.
4147
4148         * Rewrote the text for Private Message Key Payload in the
4149           protocol specification.  Protocol TODO #11.
4150
4151 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4152
4153         * Upgraded the protocol version to 1.1, updated protocol specs
4154           and software.
4155
4156         * Added the nickname as new argument to NICK_CHANGE notify and
4157           added it to protocol specs and implemented it to client and
4158           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4159           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4160           lib/silcclient/client_notify.c.
4161
4162         * Added the killer's client ID to the KILLED notify and added
4163           it to protocol specs and implemented it to client and server.
4164           Protocol TODO #13.  Affected files are silcd/command.c,
4165           silcd/packet_receive.c, packet_send.[ch],
4166           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4167           The killer's client entry is now returned to application in
4168           the `notify' client operation.
4169
4170         * Fixed the Max Argument fields that had too large value set
4171           in the protocol specs.  Protocol TODO #14.
4172
4173         * Added the LEAVE command reply to return the ID of parted
4174           channel.  Updated protocol specs and implemented it to the
4175           client and server.  Protocol TODO #15.  Affected files are
4176           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4177           entry is now returned to application in the `command_reply'
4178           client operation.
4179
4180         * Rewrote the version SKE version checking in client libary
4181           and in server to use the silc_parse_version_string.  Affected
4182           files are lib/silcclient/protocol.c, silcd/protocol.c.
4183
4184         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4185           commands that was missing it, and updated protocol specs and
4186           the server implementation.  Protocol TODO #10.  The affected
4187           file is silcd/command.c.
4188
4189         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4190           generic reply to a generic request (REQUEST flag), and
4191           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4192           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4193           to define the payload for DATA flag.  Added the flags to
4194           the implementation.  Protocol TODO #9.  Affected file is
4195           lib/silccore/silcchannel.h.
4196
4197           Changed the client library to return the message length
4198           to application as well in the channel_message and private_message
4199           client operations.  Affected files are
4200           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4201           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4202           and lib/silcclient/client_ops_example.c.
4203
4204         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4205           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4206           the channel.  Updated protocol specs and impelemented this
4207           to client and server.  Protocol TODO #6.  Affected files are
4208           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4209           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4210
4211           Added new options m and M to CMODE command in Irssi SILC
4212           client to set these modes.
4213
4214         * Deprecated all administrative commands from SILC protocol
4215           since they are highly implementation specific commands.
4216           Updated protocol specs.  Moved the old commands in
4217           implementations to private range of command types.  Affected
4218           files are silcd/command.c, lib/silcclient/command.c and
4219           lib/silcclient/command_reply.c.  Protocol TODO #8.
4220
4221         * Fixed a bug in server where sending unknown command crashes
4222           the server.  Affected file silcd/command.c.
4223
4224 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4225
4226         * Added SILC_PROTOCOLVERSION macro to check protocol version
4227           of a socket connection.  The affected file is
4228           lib/silcutil/silcsockconn.h.
4229
4230         * Added better error logging in rekey protocol.  Affected file
4231           silcd/protocol.c.
4232
4233         * Do not check public key types in SKE during rekey.  Affected
4234           file lib/silcske/payload.c.
4235
4236         * Fixed the rekey protocol with PFS, which was totally broken.
4237           Affected file silcd/protocol.c.
4238
4239 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4240
4241         * Some client implementations quit network by doing first LEAVE
4242           and then immediately SIGNOFF (like Bombyx).  We now do check
4243           after a short time after LEAVE notify and check whether the
4244           client is still valid after LEAVE, and if not we remove it from
4245           cache.  Affected file is lib/silcclient/client_notify.c.
4246
4247 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4248
4249         * Merged version 1.1.4 of zlib. Even if it not currently in use,
4250           it's good not to have security holes here.
4251
4252         * Fixed a negative refcount situtuation for the config context.
4253           Affected file is silcd/serverconfig.c.
4254
4255 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4256
4257         * ROBOdoc documented lib/silcutil/silcutil.h.
4258
4259 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4260
4261         * Optimized even more the SilcPacketContext structure.  Now
4262           totally saved 16 bytes of memory per context after optimization.
4263           Affected files are lib/silccore/silcpacket.[ch].
4264
4265         * Made strict checks for valid SILC IDs.  Affected file is
4266           lib/silccore/silcid.c.
4267
4268 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4269
4270         * Changed the object argument for silc_cipher_register,
4271           silc_hash_register, silc_hmac_register and silc_pkcs_register
4272           to const.  Affected files are lib/silccrypt/silccipher.[ch],
4273           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
4274
4275         * Changed the silc_get_username and silc_get_real_name to
4276           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
4277
4278         * Fixed the Irssi SILC Client to use the silc_get_username and
4279           silc_get_real_name insted of glib routines since the glib
4280           routines only corrupt stack.  Fixes the Irssi SILC to work in
4281           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
4282
4283         * Fixed the Irssi to not use g_get_home_dir since it crashes
4284           or returns garbage on cygwin and corrupts stack.  Added function
4285           get_home_dir to Irssi routines.  Affected files are
4286           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
4287
4288 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4289
4290         * Made some structure optimizations.  SFTP memory FS MemFSEntry
4291           entry structure.  Optimized SilcTask structure.  Optimized
4292           SilcPacketContext structure.
4293
4294           Affected files lib/silcsftp/sftp_fs_memory.c,
4295           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
4296
4297 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4298
4299         * And yet again reverted back the config thing since Johnny
4300           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
4301           and silcd.c.
4302
4303         * Fixed memory leaks from config object.  Affected files are
4304           silcd/serverconfig.[ch].
4305
4306         * Added support for adding new connections to the server in rehash.
4307           After rehash they take effect.
4308
4309           Added support for changing the maximum allowed connections in
4310           rehash.  The number can grow but going smaller is not supported.
4311
4312           Added function silc_server_num_sockets_by_remote to the
4313           silcd/server_util.[ch].
4314
4315           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
4316
4317 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
4318
4319         * Added preliminary checking during config parsing for a valid
4320           public/private key and removed further checks in the code.
4321           Affected files are silcd/serverconfig.[ch], server.c.
4322
4323         * Moved functions silc_server_drop() and silc_server_daemonise()
4324           from server.c to silcd.c since they are stricly related to
4325           the application activity.
4326
4327         * Reverted a small part of the automatic ref/unref since
4328           it caused a double unref in some situations.  Affected
4329           files are silcd/silcd.[ch], server.c, serverconfig.c.
4330
4331         * Added some .cvsignore files in the lib directory.
4332
4333 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4334
4335         * Fixed silc_net_gethostbyaddr to correctly resolve by
4336           address.  Affected file lib/silcutil/silcnet.c.
4337
4338         * Fixed the notify relaying to client.  The HMAC to be used
4339           with relayed packets ws wrong and caused decryption failure
4340           at the client end.  Affected file is silcd/packet_receive.c.
4341
4342 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4343
4344         * Created new branch silc_protocol_1_0_branch.
4345
4346         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
4347
4348         * Changed the silc_server_config_* routines to be SilcServer
4349           independent.  They are now officially application specific code
4350           and not part of generic server implementation.  Affected files
4351           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
4352
4353 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4354
4355         * Added automatic referencing of config context in the
4356           silc_server_config_alloc, and automatic unreferencing in the
4357           silc_server_config_destroy.  Affected files are
4358           silcd/serverconfig.[ch], silcd/silcd.c.
4359
4360         * Fixed the silc_log_quick handling in the logging routines.
4361           It didn't log quickly when it was TRUE.  Affected file is
4362           lib/silcutil/silclog.c.  Also the flush delay was set even
4363           if it was 0 in config file.  Affected file is
4364           silcd/serverconfig.c.
4365
4366         * Added support for changing key pair of the server in rehash.
4367           Affected file silcd/server.c.
4368
4369 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4370
4371         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
4372           too early, before getting the channel entry.  Affected file
4373           is silcd/packet_receive.c.
4374
4375 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4376
4377         * Added functions silc_server_config_[ref/unref], these are used
4378           to prevent that the config object is destroyed.
4379
4380           No longer directly affect global variables silc_log_quick and
4381           silc_log_delay, they are first cached inside the config object
4382           and then applied with silc_server_config_setlogfiles().
4383
4384           silc_server_config_set_defaults() is now internal to
4385           serverconfig.c, there are no reasons to show this internal stuff
4386           to the server.
4387
4388           Affected files are silcd/serverconfig.[ch].
4389
4390         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
4391           fprintf's to stderr, since some code may be executed again after
4392           the server went into the background.  Affected files are
4393           silcd/server.[ch].
4394
4395         * Added rehash support. Added function silc_server_rehash() that
4396           will perform all the basic tasks of the rehashing procedure.
4397
4398         * Added command line option `-x, --hexdump'. This will enable the
4399           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
4400           The option `--hexdump' implies `--debug'.
4401
4402         * Fixed a bad bug in the logging APIs (silcutil library) where
4403           the application would crash after calling silc_log_reset_all().
4404
4405 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4406
4407         * Fixed the KICKED notify handling in client library to
4408           correctly remove the channel and all entries from the
4409           channel when I was kicked.  This bug crashed the client.
4410
4411           Fixed yet another but in KICKED notify handling to remove
4412           the kicked client correctly from the channel.
4413
4414           Affected file is lib/silcclient/client_notify.c.
4415
4416         * Fixed a minor bug in looking up correct client entry
4417           in KICKED notify in server.  Affected file is
4418           silcd/packet_receive.c.
4419
4420         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
4421           sources correctly to distribution.  Fixes --with-gmp option.
4422
4423         * Removed the manual rehashing from ID Cache, and changed it
4424           to use the SILC Hash Table's auto rehash feature.  Affected
4425           file is lib/silccore/silcidcache.c.
4426
4427 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4428
4429         * Fixed a bug in the silc_client_nickname_format function that
4430           handles the multiple same nickname formatting.  Two clients
4431           with same nickname caused problems after the first one left
4432           and rejoined.  It didn't format the nickname correctly.
4433           Affected file is lib/silcclient/idlist.c.
4434
4435 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4436
4437         * Don't change the topic if olod topic is same as new one.
4438           Affected file is silcd/packet_receive.c.
4439
4440 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4441
4442         * Added cross-reference support to the SILC Documentation
4443           generator.  All types across all HTML files are now cross-
4444           referenced.  Affected files util/robodoc/generator.c and
4445           scripts/silcdoc/silcdoc.
4446
4447         * Added file lib/silcutil/silctypes.h to include all the
4448           arithmetic type definitions and some macros.  Removed
4449           includes/bitmove.h and moved macros to silctypes.h.
4450
4451 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4452
4453         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
4454
4455 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4456
4457         * Added `type' argument to silc_id_payload_parse_id function which
4458           now returns the type of the ID to the sent pointer.  Affected
4459           file is lib/silccore/silcid.[ch].
4460
4461         * Added check for CMODE_CHANGE notify type that mode change is
4462           allowed by the sender.  Affected file silcd/packet_receive.c.
4463
4464         * Added check for CUMODE_CHANGE notify type that mode change is
4465           allowed by the sender.  Affected file silcd/packet_receive.c.
4466           Added the ID type as CUMODE_CHANGE notify type as argument
4467           to the `notify' client operation.  Affected files are
4468           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4469
4470         * Added function silc_client_add_server to the client library.
4471           Added support for resolving also channel and server info when
4472           received unknown entity in notify packet.  Affected files are
4473           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4474
4475         * Added function silc_command_get_status to return the command
4476           status from the command reply's argument payload.  Affected files
4477           are lib/silccore/silccommand.[ch].
4478
4479         * Added check for KICKED notify type that the kicking is
4480           allowed by the client.  Affected file silcd/packet_receive.c.
4481
4482         * Created function silc_get_input which can be used to get input
4483           (echo on or off) from user on command line.  Affected files are
4484           lib/silcutil/silcutil.[ch].
4485
4486 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4487
4488         * Optimized silc_server_packet_relay_to_channel function.
4489           Added new function silc_channel_message_payload_encrypt which
4490           can be called directly if channel message payload needs to
4491           be encrypted and is already encoded (no need to call _encode
4492           function).  Packet relaying is now done by router without any
4493           extra memory allocations.  Affected files are
4494           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4495           silcd/packet_send.c.
4496
4497         * Fixed the INVITE notify handling.  It took wrong arguments
4498           as invite list and invite delete.  Affected file is
4499           silcd/packet_receive.c.
4500
4501         * Added check for TOPIC_SET notify type that the topic change is
4502           allowed by the client.  Affected file silcd/packet_receive.c.
4503
4504         * Added check for INVITE notify type that inviting is allowed by
4505           the client.  Affected file silcd/packet_receive.c.
4506
4507         * Changed the silc_server_client_on_channel to return the
4508           SilcChannelClientEntry as well.  Moved the function
4509           silc_server_check_cmode_rights to server_util.[ch].
4510           Affected files are silcd/server_util.[ch], silcd/command.c.
4511
4512         * Added function silc_server_check_umode_rights to check whether
4513           changing client's user mode is allowed.  Added check for
4514           UMODE_CHANGE notify type that the umode change is allowed
4515           by the client.  Affected files are silcd/server_util.[ch],
4516           silcd/packet_receive.c and silcd/command.c.
4517
4518 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4519
4520         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4521           ID length.  It ignored that ID can be IPv6 based as well.
4522           Affected file lib/silccore/silcpacket.h.
4523
4524         * Fixed the silc_id_id2str and silc_id_str2id to take the
4525           IPv6 address offset's into consideration.  Affecte file is
4526           lib/silccore/silcid.c.
4527
4528 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4529
4530         * Fixed the internal Unix scheduler functions to check for
4531           NULL context they may receive.  The affected file is
4532           lib/silcutil/unix/silcunixschedule.c.
4533
4534 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4535
4536         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4537           can specify different directory with --home command line
4538           parameter. Affected files irssi/src/silc/core/client_ops.c,
4539           clientutil.c
4540
4541         * SILC-specific commands aren't now executed if the active server
4542           isn't of SILC-type, so there won't be problems with having
4543           IRC and SILC protocol support in same client. Affected files
4544           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4545           silc-commands.h
4546
4547 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4548
4549         * Improved the signal support in SILC Schedule.  Added new
4550           function silc_schedule_signal_call which is used by application
4551           to mark a signal to be called.  It is now safe to perform
4552           any kind of tasks in signal callbacks since it is guaranteed
4553           that the application specified signal callback is called
4554           after the signal is over.  Affected files are
4555           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4556
4557 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4558
4559         * Added `name' field to SilcChannelPrivateKey to represent
4560           application given name for the key.  Moved also the context from
4561           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4562           Added the `name' argument also to the function
4563           silc_client_add_channel_private_key.
4564
4565           Added function silc_client_current_channel_private_key to set the
4566           current channel private key in use.
4567
4568           Added "change" command to KEY command which can be used to change
4569           the current channel private key.  Bound the command also to
4570           alt+K (Alt+Shift+k).
4571
4572           Also affected files lib/silcclient/client_channel.c,
4573           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4574
4575 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4576
4577         * Added silc_rng_get_byte_fast function in to the
4578           lib/silccrypt/silcrng.[ch].
4579
4580         * Changed the interface of silc_packet_assemble and the
4581           silc_packet_send_prepare.  If silc_packet_assmble is now
4582           called the application does not call silc_packet_send_prepare
4583           because the library will call it automatically.  These
4584           interfaces now also return a reference to the outgoing buffer
4585           which includes the assembled packet, which the application can
4586           use to encrypt the packet.
4587
4588           Affected files are lib/silccore/silcpacket.[ch],
4589           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4590           silcd/packet_send.c, server_backup.c and packet_receive.c.
4591
4592         * Fixed a packet sending bug on very high load, where outgoing
4593           packet queue wasn't handled correctly and packets got corrupted.
4594           Affected files are lib/silcutil/*/silc*sockconn.c,
4595           lib/silcclient/client.c and silcd/server.c.
4596
4597 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4598
4599         * Added macro SILC_PACKET_DATALEN which can be used during
4600           packet assembling to check whether the data to be added to
4601           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4602           len is truncated until it fits it.
4603
4604           Added checks for maximum length of channel message payload and
4605           private message payload also.
4606
4607           Added checks for maximum packet length in server and in
4608           client library.
4609
4610           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4611           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4612           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4613           lib/silcclient/client_prvmsg.c.
4614
4615 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4616
4617         * Added silc_server_packet_queue_purge call to the
4618           silc_server_disconnect_remote to assure that all data in the
4619           queue before disconnecting is sent to the network.  Affected
4620           file silcd/server.c.
4621
4622 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4623
4624         * Added the deleting of server's own ID cache entry to the
4625           silc_server_free function.  Free also everything else that
4626           has been allocated in silc_server_init.  The affected file
4627           is silcd/server.c.
4628
4629 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4630
4631         * Added functions silc_parse_version_string, silc_version_to_num,
4632           and silc_ske_parse_version to parse SILC protocol style version
4633           strings.  Affected files lib/silcutil/silcutil.[ch] and
4634           lib/silcske/silcske.[ch].
4635
4636         * Added new configuration params: version_protocol, version_software
4637           and version_software_vendor to specify what version the remote
4638           host must at least be to be able to connect to server.  The vendor
4639           string can be regex matched too.  Added new function
4640           silc_server_connection_allowed to check maximum number of allowed
4641           connections, and allowed versions for incoming connections.
4642           Affected files are silcd/server.c, server_util.[ch] and
4643           serverconfig.[ch].
4644
4645 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4646
4647         * Added preliminary support for signals in scheduler.  The
4648           signals we care about are now blocked always when the scheduler
4649           is locked.  This way we can synchronise the use of signal with
4650           scheduler.  It is guaranteed that when signal occurs the scheduler
4651           is not locked, and thus new tasks can be safely added to the
4652           scheduler.
4653
4654           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4655           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4656           Added new platform specific routines
4657           silc_schedule_internal_signals_[un]block and
4658           silc_schedule_internal_signal_[un]register.
4659
4660           Added new functions to SILC Schedule API:
4661           silc_schedule_signal_[un]register.  Each signal that application
4662           is going to use should be registered to the scheduler.
4663
4664           Affected files are lib/silcutil/silcschedule.[ch],
4665           lib/silcutil/*/silc*schedule.c.
4666
4667 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4668
4669         * Check for unauthenticated client and server in the
4670           silc_server_new_client and silc_server_new_server functions.
4671           Affected file silcd/packet_receive.c.
4672
4673         * Added function silc_string_is_ascii to check whether given
4674           string is 7-bit ASCII string.  Affected files are
4675           lib/silcutil/silcutil.[ch].
4676
4677         * Added function silc_id_is_valid_server_id into the
4678           silcd/serverid.c and added checking for valid Server ID's in
4679           silc_server_new_server.  The Server ID must always be based
4680           on the server's public IP address.
4681
4682         * Added logging of DISCONNECT packet message in the server.
4683           Affected file silcd/server.c.
4684
4685 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4686
4687         * Changed all library interfaces that use Global RNG to also
4688           accept SilcRng as argument.  Affected files are
4689           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4690           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4691           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4692           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4693           lib/silccrypt/rsa.c.
4694
4695         * Added function silc_pkcs_generate_key to the
4696           lib/silccrypt/silcpkcs.[ch] for applications so that they
4697           don't need to do pkcs->pkcs->init calls anymore.
4698
4699         * Remove SilcSocketConnection from the SFTP API since it really
4700           wasn't needed there.  The application has the information
4701           saved in its contexts anyway and the SFTP layer doesn't need
4702           know about it.  Affected files lib/silcsft/silcsftp.h and
4703           lib/silcsftp/sftp_[server/client].c.
4704
4705         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
4706           The SilcSimContext is not SilcSim.
4707
4708         * Fixed possible buffer overflows in silc_id_render in the
4709           lib/silcutil/silcutil.c.
4710
4711         * On EPOC the global crypto module lists are not used at all
4712           in the crypto library.  Added support for using the constant
4713           algorithm list on EPOC.  Affected files are
4714           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
4715           silcpkcs.c.
4716
4717         * Fixed the handling of third parameter of KICKED notify, since
4718           it was mistakenly updated to SILC Protocol 1.0 even though it
4719           is to be included in 1.1.  Since it is not in 1.0 it is not
4720           mandatory, and this fix now handles it only if it is provided,
4721           and it is not error if it is not provided.  Affected file
4722           lib/silcclient/client_notify.c.
4723
4724 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4725
4726         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
4727           client.  Affected file irssi/src/silc/core/client_ops.c.
4728
4729         * Merged with Irssi 0.8.4 from irssi.org CVS.
4730
4731 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4732
4733         * Check for valid socket connection in client entries before
4734           sending any messages.  Fixes a crash, but doesn't fix some
4735           other underlaying bug that is lurking there.  Affected
4736           file silcd/packet_send.c.
4737
4738 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
4739
4740         * $usermode, $cumode and $cumode_space expandos shouldn't do
4741           anything with non-SILC server records. Affected file
4742           irssi/src/silc/core/silc-expandos.c
4743
4744 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4745
4746         * Fixed the silc_net_check_[host/local]_by_sock to support
4747           IPv6 bound sockets as well.  Now they can return IPv6 addresses
4748           as well.  Affected file lib/silcutil/silcnet.c.
4749
4750         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
4751           Affected lib/silcutil/unix/silcunixnet.c.
4752
4753         * Fixed ID rendering (at least on some platforms, not NetBSD)
4754           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
4755
4756 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4757
4758         * Added silc_hash_public_key and silc_hash_public_key_compare
4759           functions to be used with SilcHashTable.  They can be used to
4760           hash public keys and compare public keys in hash table.  Affected
4761           file lib/silcutil/silcutil.[ch].
4762
4763         * Added support for specifying multiple public keys for Client
4764           connection section in server configuration file.  This makes it
4765           possible to accept multiple public keys from same host, or to
4766           make a section that accepts any incoming host, and have the
4767           accepted public keys listed in the section.
4768
4769           Added functions silc_sever_[find/get]_public_key,  added the
4770           support for this actually to all connection sections but only
4771           the Client section is currently allowed to specify multiple
4772           public keys.
4773
4774           Affected files are silcd/server.c, server_internal.h,
4775           command.c, protocol.c, server_util.[ch], packet_receive.c.
4776
4777 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4778
4779         * Merged Irssi 0.8.2 from irssi.org CVS.
4780
4781 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4782
4783         * If silc_debug is TRUE, also output standard logging messages
4784           to stderr with the debug output.
4785
4786           Made silc_log_reset_all() flushing all channels before returning.
4787           Also fixed some documentation typos.
4788
4789           Affected files are lib/silcutil/silclog.[ch].
4790
4791 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4792
4793         * Fixed the server to check correctly the amount of connections
4794           from single host, by checking also the type of the connection.
4795           Fixed also the comparison of number of connections and number
4796           of allowed connections.  Affected files are silcd/server.c,
4797           server_util.[ch].
4798
4799 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4800
4801         * Fixed the USERS command reply to save the user's mode on the
4802           channel as well.  Fixed JOIN command reply to check whether a
4803           client is on channel already and not join it twice.  Affected
4804           file lib/silcclient/command_reply.c.
4805
4806         * Added new file silc-expandos.c into irssi/silc/core/ to return
4807           various stuff for various signal for the statusbar etc. updating.
4808           Now Irssi SILC client prints channel user modes etc. on the
4809           statusbar.
4810
4811         * The user mode (like server/router operator changes) is now shown
4812           on the Irssi SILC client's statusbar.  The affected files are
4813           irssi/src/silc/core/client_ops.c, silc-expandos.c.
4814
4815 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4816
4817         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
4818           to SILC_SCHEDULE_[UN]LOCK macros.
4819
4820         * Added more error printing to logs in server code.  Affected
4821           files silcd/server.c and silcd/protocol.c.
4822
4823         * Fixed -S option parsing in Irssi SILC Client.  Affected file
4824           irssi/src/silc/core/silc-core.c.
4825
4826         * Added silc_buffer_alloc_size function.  Affected file is
4827           lib/silcutil/silcbuffer.h.
4828
4829 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4830
4831         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
4832           constants.  Affected files in
4833           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
4834           silccipher.[ch].
4835
4836         * Changed the internal SFTP Memory FS table to const.  Affected
4837           file lib/silcsftp/sftp_fs_memory.c.
4838
4839 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4840
4841         * Fixed the buffer formatting and unformatting routines to
4842           check the size of 64 bits types with sizeof().  Affected
4843           file is lib/silcutil/silcbuffmt.c.
4844
4845 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4846
4847         * Removed 0.6.x backwards support.
4848
4849 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4850
4851         * Changed all integer type names:
4852           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
4853           to avoid collisions with other libraries using same type names
4854           as we did.
4855
4856 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4857
4858         * Added `prefer_ipv6' argument to the functions
4859           silc_net_gethostbyname[_async].  If it is TRUE it will return
4860           IPv6 address over IPv4.  If FALSE IPv4 address is returned
4861           even if IPv6 address was found.  Affected files
4862           lib/silcutil/silcnet.[ch].
4863
4864         * Added support silc_net_create_connection[_async] to fallback
4865           to IPv4 address if IPv6 address could not be used (like if
4866           it doesn't work on a specific system).  Affected file in
4867           lib/silcutil/unix/silcunixnet.c.
4868
4869 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4870
4871         * Added silc_schedule_reinit function to do the enlarging
4872           of the max tasks handling capabilities of the scheduler.
4873           Affected files lib/silcutil/silcschedule.[ch].
4874
4875 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4876
4877         * Added automatic extern "C" { ... } for C++ compilers so the
4878           application does not need to define them.  Affected file
4879           includes/silcincludes.h.
4880
4881         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
4882           old name went against naming convention.  Applications now
4883           include "silcclient.h" instead of "clientlibincludes.h".
4884           Removed includes/clientlibincludes.h, it is redundant now.
4885
4886         * Renamed includes/version.h to silcversion.h.
4887
4888         * Added really preliminary support for OS/2 into the util
4889           library.  Only thread & mutex API is implemented, others
4890           are still to be implemented.  Created the lib/silcutil/os2/
4891           directory.  Created also file includes/silcos2.h.
4892
4893 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4894
4895         * Added preliminary BeOS support into the util library.
4896           Created lib/silcutil/beos/, and implemented all the needed
4897           functions to support SILC on BeOS.  Created also file
4898           includes/silcbeos.h.
4899
4900 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
4901
4902         * Added proper initializations to silc's irssi code, so it's
4903           now possible to load it as module.  Affected files
4904           irssi/src/silc/core/silc-core.c,
4905           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
4906
4907 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4908
4909         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
4910           the SILC tree.
4911
4912         * Fixed the silcdoc document generator to correct generate
4913           docs from all kinds of filenames.  Affected files are
4914           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
4915
4916         * ROBOdoc documented lib/silcutil/silcmemory.h.
4917           Added also new function silc_memdup.
4918
4919         * Removed lib/silcutil/silcbufutil.h and moved those routines
4920           to the lib/silcutil/silcbuffer.h.
4921
4922 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4923
4924         * Added `user_count' to the SilcChannelEntry which now tells the
4925           number of users on the channel.  The user count is now saved
4926           in normal server of global channels as well.  Affected files
4927           silcd/server.c, idlist.h, packet_receive.c and command.c.
4928
4929         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
4930           include file utility functions.
4931
4932         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
4933           instead of calling directly OS routines.
4934
4935         * Fixed NICK change printing in Irssi SILC Client. Fixed
4936           KICKED notify printing in Irssi SILC Client.  Affected file
4937           irssi/src/silc/core/client_ops.c.
4938
4939         * Fixed a NICK change bug in client library, to not recreate the
4940           client_entry->channels hash table everytime nick is changed.
4941           Affected file lib/silcclient/client.c.
4942
4943 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4944
4945         * ROBOdoc documented the lib/silcske/silcske.h, and improved
4946           the SKE interface a bit.
4947
4948         * Fixed padding problem in PKCS#1. The padding was not actually
4949           random since the random number generator was used incorrectly.
4950           This security bug affects only when encrypting with PKCS#1, and
4951           it is not currently used at all in SILC. SILC only use signing
4952           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
4953
4954 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4955
4956         * Rewrote the notify handling in Irssi SILC client to not call
4957           the events as signals.  Fixes problems with Perl support.
4958           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
4959
4960         * Send the auto-nicking NICK command in client library with
4961           little timeout after connecting.  The affected file is
4962           lib/silcclient/client.c.
4963
4964         * Added following new config file settings:
4965           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
4966           key_exchange_timeout, conn_auth_timeout, connections_max,
4967           links_max.
4968
4969           Implemented all the new config settings handling in the server.
4970
4971           Optimized the use of SKE Mutual flag usage.  Use it only
4972           if connection authentication protocol is not based in public
4973           key authentication.
4974
4975           Renamed all SilcServerConfigSection* to SilcServerConfig*
4976           to have a bit shorter names.
4977
4978           Affected files silcd/serverconfig.[ch], server.[ch], and
4979           protocol.[ch].
4980
4981 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4982
4983         * Cleaned up the listening sockets code, preparing for the rehash
4984           support.  Affected file is silcd/server.c.
4985
4986         * Fixed some output messages.  Affected files are silcd/silcd.c,
4987           and silcd/server.c.
4988
4989 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4990
4991         * Create lib/doc/silcrng_intro.html document as introduction
4992           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
4993
4994 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4995
4996         * Fixes to the silcd config template.  Affected file is
4997           doc/example_silcd.conf.in.
4998
4999         * Removed type casts from silc_calloc(), conforming to the
5000           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5001
5002         * Removed param_name member from client, server, and router
5003           section structs, now identifying the param directly.
5004
5005           Added CONFIG_FREE_AUTH macro in config file parsing.
5006
5007           Affected files are silcd/serverconfig.[ch].
5008
5009 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5010
5011         * Fixed command line parameter handling. All SILC initialization
5012           is now done in silc_core_init() which also fixes autoconnecting
5013           to servers.
5014
5015           Affected files irssi/src/silc/core/silc-core.c,
5016           irssi/src/fe-text/silc.c.
5017
5018 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5019
5020         * Added new configuration options and blocks:
5021           keepalive_secs, reconnect_count, reconnect_interval,
5022           reconnect_interval_max, reconnect_keep_trying and
5023           require_reverser_lookup.  Added ConnectionParam block, and
5024           implemented the connection parameters when connecting as
5025           initiator and when accepting connections as responder.
5026
5027           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5028           whether given configuration value has been given already.
5029
5030           Affected files silcd/serverconfig.[c], server.[c].
5031
5032         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5033           algorithm parts and created new file silcalgs.conf, that
5034           is now included from the example_silcd.conf.in.
5035
5036         * Optimized the silc_server_connect_to_router_second to take
5037           the connection configuration object from the SilcServerConnection
5038           object instead of finding it during the connecting phase.
5039           Added the configuration object to SilcServerConnection struct.
5040           Affected files silcd/server_internal.h, server.c.
5041
5042 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5043
5044         * Add the client on channel after it was resolved at the
5045           channel message receiving, and it was not already on the
5046           channel.  Affected file lib/silcclient/client_channel.c.
5047
5048 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5049
5050         * Fixed the public key authentication to allocate always the
5051           destination signature buffer instead of using static buffer.
5052           Affected file silcd/protocol.c.
5053
5054 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5055
5056         * Unified the serverconfig.[ch]'s helper function interface.
5057           Affected file silcd/serverconfig.[ch].
5058
5059         * Removed doc/example_silc.conf.in since it is redundant.
5060           The make install will now install irssi/silc.conf file.
5061
5062         * Added new Passphrase and Publickey authentication methods to
5063           config file, allowing both public key and passphrase based
5064           authentication to be set at the same time.
5065
5066           Added `prefer_passphrase_auth' setting in config file which
5067           can be used to set to prefer passwd auth if both passwd and
5068           public key is set.  If not set, public key is preferred.
5069           This has effect only when being initiator (responder will try
5070           both anyway).
5071
5072           Added support for authentication with passphrase and public key
5073           at the same time.  The passphrase is tried first always since
5074           it is faster to check.
5075
5076           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5077
5078 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5079
5080         * Merged the new SILC Config library, with the server parsing
5081           support.  Read the header file silcconfig.h or the toolkit
5082           documentation for the news.  Affected files are
5083           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5084           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5085           silcd/protocol.c silcd/server.c silcd/server_backup.c
5086           silcd/serverconfig.[ch] silcd/silcd.c.
5087
5088         * Fixed some silclog documentation.  Affected file is
5089           lib/silcutil/silclog.h.
5090
5091 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5092
5093         * The silc_cipher_register, silc_hash_register and
5094           silc_hmac_register now checks if the object to be registered
5095           is registered already.  Affected files are
5096           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5097
5098 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5099
5100         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5101
5102 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5103
5104         * Allow zero length channel messages inside the Channel Message
5105           Payload.  Affected file lib/silccore/silcchannel.c.
5106
5107         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5108           as header filenames.
5109
5110         * Removed lib/silcclient/README and created HTML file
5111           lib/silcclient/silcclient_using.html, which is now included
5112           as part of Toolkit documentation.
5113
5114 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5115
5116         * Fixed CUMODE_CHANGE notify handling to change the mode of
5117           correct client.  Affected file lib/silcclient/client_notify.c.
5118
5119         * Make silc_rng_alloc fail if it cannot allocate the sha1
5120           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5121
5122 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5123
5124         * Fixed the file transfer's key agreement payload to include
5125           zero port also if the hostname is NULL because it could not
5126           be bound.
5127
5128           Call file transfer monitor callback now also if error occurs
5129           during key agreement protocol.
5130
5131           Changed the silc_client_file_send interface to return the
5132           SilcClientFileError instead of session id.  The session ID
5133           is returned into pointer provided as argument.
5134
5135           Check that the file exists locally before sending the
5136           file transfer request at all.
5137
5138           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5139
5140         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5141           error than can occur while key agreement protocol.  Affected
5142           file lib/silcclient/silcapi.h.
5143
5144         * Fixed the event_mode CMODE handler to not crash when mode
5145           is changed and +k mode is set in the channel.  Affected file
5146           irssi/src/silc/core/silc-channels.c.
5147
5148         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5149           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5150           file lib/silcutil/silclog.c.
5151
5152         * Fixed the channel message payload decryption in the function
5153           silc_channel_message_payload_decrypt to not modify the original
5154           buffer before it is verified that the message decrypted
5155           correctly.  Otherwise, next time it is called with correct
5156           channel key it won't encrypt since the payload is corrupted.
5157           Affected file lib/silccore/silcchannel.c.
5158
5159 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5160
5161         * Do not constantly resize the window.  A fix patch by cras.
5162           Affected file irssi/src/fe-text/screen.c.
5163
5164 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5165
5166         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5167           Affected file lib/silcutil/silcnet.c.
5168
5169 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5170
5171         * Fixed a bug in hash table internal routine for traversing
5172           the table with foreach callback.  The current entry may
5173           become invalid in the callback but it was referenced after
5174           the callback returned.
5175
5176           Do not allow auto rehashing of hash table during the
5177           silc_hash_table_foreach operation, for same reasons as it is
5178           not allowed for SilcHashTableList.  Affected files are
5179           lib/silcutil/silchashtable.[ch].
5180
5181 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5182
5183         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5184           Win32 DLL.  extern's in header files are now declared with
5185           DLLAPI.
5186
5187 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5188
5189         * Fixed private message handling.  It used some old code that
5190           caused the client to crash.  Affecte file is
5191           lib/silcclient/client_prvmsg.c.
5192
5193 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5194
5195         * Added function silc_client_add_channel,
5196           silc_client_replace_channel_id, and removed functions
5197           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5198           from client library.
5199
5200         * Added cross reference of the joined channels to the
5201           SilcClientEntry, and changed the SilcChannelEntry's
5202           users list to SilcHashTable.  The affected files are
5203           lib/silcclient/idlist.[ch].
5204
5205         * Fixed a bug in hash table tarversing.  While the hash table
5206           is traversed with SilcHashTableList the table must not be
5207           rehashed.  It is now guaranteed that auto rehashable tables
5208           are not rehashed while tarversing the list.  Also defined that
5209           silc_hash_table_rehash must not be called while tarversing
5210           the table.  Added function silc_hash_table_list_reset that must
5211           be called after the tarversing is over.  The affected files are
5212           lib/silcutil/silchashtable.[ch].
5213
5214         * Changed all hash table traversing to call the new
5215           silc_hash_table_list_reset in server and in client library.
5216
5217         * Added function silc_client_on_channel to return the
5218           SilcChannelUser entry if the specified client entry is joined
5219           on the specified channel.  This is exported to application as
5220           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5221
5222 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5223
5224         * Fixed founder regaining problem with JOIN command on normal
5225           server.  The notify for mode change must be sent always and
5226           not only if !cmd->pending.  Affected file silcd/command.c.
5227
5228         * Fixed the WHOWAS command's reply sending to support the
5229           lists correctly.  Affected file silcd/command.c.
5230
5231 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5232
5233         * When sending JOIN command to router for processing the
5234           sender's old command identifier was not saved back to the
5235           sender's command context, fixed now.  The affected file is
5236           silcd/command.c.
5237
5238         * Create the key in JOIN command of the router did not return
5239           the channel key, added check for this.  Affected file is
5240           silcd/command.c.
5241
5242         * Fixed a channel ID update bug in JOIN command reply.  Do
5243           not directly upgrade the ID but call the function
5244           silc_idlist_replace_channel_id if the ID was changed.
5245           Affected file silcd/command_reply.c.
5246
5247         * Fixed memory leaks from command calling if it would fail.
5248           Affected file silcd/command.c.
5249
5250 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5251
5252         * Applied patches from cras:
5253
5254           Memory leak fixes around libaries, irssi window resize fix,
5255           new silclist.h and silcdlist.h, all extern inline changed to
5256           static inline.
5257
5258         * Removed dotconf from lib/dotconf, not needed anymore.
5259
5260         * Removed TRQ from lib/trq, not needed anymore.
5261
5262         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
5263           with server connections.  Later this will be configurable
5264           in config file after new config file is done.  Affected file
5265           silcd/server.c.
5266
5267 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5268
5269         * Fixed a crash in server related to channel announcements.
5270           Affected file silcd/server.c.
5271
5272 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5273
5274         * Fixed memory leaks in silc_server_create_new_channel*
5275           functions.  Affected file silcd/server.c.
5276
5277         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
5278           which ID was changed.  This way the router will send the
5279           user list for the channel again, and server won't be in
5280           desync in some rare circumstances.  Affected file is
5281           silcd/packet_receive.c.
5282
5283 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5284
5285         * Check for NULL socket pointer in the function
5286           silc_server_packet_send_to_channel_real.  Affected file
5287           silcd/packet_send.c.
5288
5289         * Fixed the BAN notify handling to correctly remove ban
5290           list.  Affected file silcd/packet_receive.c.
5291
5292 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5293
5294         * Fixed some header addition to Toolkit distribution in
5295           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
5296
5297         * Added lib/silcclient/client_ops_example.h as an template
5298           file for application programmers to quickly start using
5299           the SilcClientOperation functions in their application.
5300           Updated the lib/silcclient/README as well to tell about this
5301           nice file made available.
5302
5303 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5304
5305         * Call silc_server_remove_from_channels when removing client
5306           entry when NO_SUCH_CLIENT_ID was received.  Affected file
5307           is silcd/command_reply.c.
5308
5309 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5310
5311         * Added server & router operator statistics updating.  Affected
5312           file silcd/packet_receive.c and silcd/command.c.
5313
5314         * Fixed the SERVER_SIGNOFF notify handling on normal server
5315           not to save the history information for clients.  Same was
5316           fixed earlier in remove_clients_by_server function, but not
5317           here.  Affected file silcd/packet_receive.c.
5318
5319         * Raised the default connection-retry count from 4 to 7 in
5320           server.  Affected file silcd/server.h.
5321
5322         * Cancel any possible reconnect timeouts when we start the
5323           key exchange.  Affected file silcd/server.c.
5324
5325         * Do not reconnect on connection failure when SCONNECT was
5326           given.  Affected files silcd/server.[ch].
5327
5328 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5329
5330         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
5331
5332         * Fixed the NICK command to always give the unformatted
5333           nickname to the one giving the NICK command.  If unformatted
5334           nickname is cached already it will be formatted and the
5335           local entry will always get the unformatted nickname.
5336           Affected file lib/silcclient/idlist.c.
5337
5338         * Fixed some double frees from client library commands.
5339           Affected file is lib/silcclient/command.c.
5340
5341         * Fixed CUMODE command in server to assure that no one can
5342           change founder's mode than the founder itself, there was a
5343           little bug.  Affected file silcd/command.c.
5344
5345 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5346
5347         * Removed the SilcClientCommandDestructor from the client
5348           libary, it is not needed anymore.  Affected files are
5349           lib/silcclient/silcapi.h, command[_reply].[ch],
5350           client_notify, idlist.c.
5351
5352         * Fixed GETKEY command to first resolve client, and then
5353           resolve the server only if the client was not found, instead
5354           of resolving both at the same time.  Affected file is
5355           lib/silcclient/command.c.
5356
5357         * Added silc_client_start_key_exchange_cb and lookup the
5358           remote hostname and IP address before starting the key
5359           exchange with server.  The affected file is
5360           lib/silcclient/client.c.
5361
5362         * The server's public key is now saved using the IP address
5363           of the server and not the servername for the filename.
5364           The hostname public key filename is checked as an fall back
5365           method if the IP address based filename is not found.
5366
5367           Fixed the GETKEY command to save the fetched server key
5368           in correct filename.
5369
5370           Print the remote server's hostname now when new key is
5371           received during connection process.  Affected file is
5372           irssi/src/silc/core/client_ops.c.
5373
5374         * Return always our own public key to the client if it asks
5375           for it with GETKEY command.  Affected file silcd/command.c.
5376
5377         * Removed the use_auto_addr variable from default config
5378           file since it was in wrong section.  Affected file is
5379           irssi/src/config.
5380
5381         * Fixed TOPIC_CHANGE notification to not route it when it
5382           was sent using silc_server_send_notify_to_channel function.
5383           Affected file silcd/command.c.
5384
5385         * Fixed silc_server_send_notify_kicked to send the kicker's
5386           Client ID also, it was missing.  Affected files are
5387           silcd/command.c, silcd/packet_send.[ch].
5388
5389 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5390
5391         * Do not save client history information in SERVER_SIGNOFF.
5392           Fixes the bug in normal server that it does not detect
5393           the client becoming valid after the server becomes back
5394           online.  Affected file silcd/server_util.c.
5395
5396         * Added `sock_error' field  into the SilcSocketConnection
5397           context.  When error occurs during socket operation (read
5398           or write) the error is saved.  Added also new function
5399           silc_socket_get_error to return human readable socket error
5400           message.  Affected files are lib/silcutil/silcsockconn.[ch],
5401           lib/silcutil/unix/silcunixsockconn.c, and
5402           lib/silcutil/win32/silcwin32sockconn.c.
5403
5404         * The server now prints the socket error message in the
5405           signoff for client.  Affected file silcd/server.c.
5406
5407         * Fixed the `created' channel information sending from router
5408           to server in JOIN command.  Checks now whether the channel
5409           really was created or not and set it according that.
5410
5411           Fixed the JOIN command to use the client entry's current
5412           ID during the joining procedure instead of the one it sent
5413           in the command (it is checked though), since it can change
5414           between the packet processing and command processing, and
5415           would just case unnecessary pain in the client end.  Affected
5416           file silcd/command.c.
5417
5418         * Fixed a channel key payload sending to use correct channel
5419           ID when the server was forced to change the channel's ID by
5420           router.  Router sent the key payload with the old Channel ID.
5421           Affected file silcd/packet_receive.c.
5422
5423 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5424
5425         * Call silc_server_save_channel_key only if the key payload
5426           was provided in the JOIN command's command reply.  Affected
5427           file silcd/command_reply.c.
5428
5429 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5430
5431         * Fixed silc_mp_sizeinbase to return the value correctly with
5432           MPI.  Affected file lib/silcmath/mp_mpi.c.
5433
5434         * Fixed the stop_server signal to correctly stop the scheduler
5435           and gracefully stop the server when SIGTERM or SIGINT signals
5436           are received.  Affected file silcd/silcd.c.
5437
5438 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5439
5440         * Simple handling of TERM and HUP signals. Also added some log
5441           flushing call around.  Affected file is
5442           silcd/silcd.c.
5443
5444         * Fixed small bugs in silclog.c. Now buffering output will take
5445           effect after 10 seconds since startup: This will ensure that
5446           no important startup messages are lost. Also output redirection
5447           will preserve original format ([Date] [Type] message).
5448           Affected file is lib/silcutil/silclog.c.
5449
5450         * Added two options to the config file, in the logging section:
5451           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
5452           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
5453
5454 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5455
5456         * Do not print the warning about log files not being initialized
5457           more than once to avoid excess logging.  Affected file is
5458           lib/silcutil/silclog.c.
5459
5460         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5461           the SIM copying in make install in Makefile.am.pre.
5462
5463 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5464
5465         * Rewritten silclog APIs. Globally interesting changes follows:
5466           silc_log_set_files() changed to silc_log_set_file().
5467           silc_log_set_callbacks() changed to silc_log_set_callback().
5468           ROBOdoc documented silclog header file.
5469           SilcLogCb now returns bool to wether inihibit the default
5470           handler or not (to keep the old behaviour return always TRUE).
5471           The new APIs should also fix the problem of the
5472           silcd_error.log file that was written in the current directory.
5473
5474           New features:
5475           Log files streams will remain opened after silc_log_set_file()
5476           call, means less CPU usage notably on high traffic servers.
5477           File streams are now full buffered, and flushed to the disk
5478           every 5 minutes, lesses HD activity and CPU usage.
5479           Messages can be redirected, allowing admins to configure
5480           one single logfile for all server messages.
5481           the silc_log_quick global variable to activate fast-logging.
5482           Affected files lib/silcutil/silclog.[ch]
5483
5484         * Changed some code to conform new silclog APIs. Affected
5485           files are doc/example_silcd.conf.in, silcd/server.c
5486           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5487           silcd/silcd.c.
5488
5489         * Fixed a memory leak that could occur in some situations.
5490           Affected file silcd/serverconfig.c.
5491
5492 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5493
5494         * Added the silc_client_del_client to remove the client from
5495           all channels as well.  Affected file lib/silcclient/idlist.c.
5496
5497         * Fixed the client library to correctly remove the client
5498           from all channels when the client entry is being destroyed.
5499           Affected file lib/silcclient/client_notify.c, command.c.
5500
5501         * Added auto-nicking support to the client library.  If the
5502           applicatio now sets client->nickname it will be sent to the
5503           server after connecting by the library.  This way for example
5504           SILCNICK (or IRCNICK) environment variables will have effect
5505           and always change the nickname automatically to whatever
5506           it is wanted.  Affected file lib/silcclient/client.[ch].
5507
5508         * Renamed silc_server_command_bad_chars to the
5509           silc_server_name_bad_chars and moved it to the
5510           silcd/server_util.[ch].  Added also new function
5511           silc_server_name_modify_bad to return nickname that
5512           includes bad characters as new nickname without those
5513           bad characters.  This check and modify is now used in
5514           silc_server_new_client when the username is initially set
5515           as nickname, so it must be checked to be valid nickname.
5516           Affected file silcd/packet_receive.c.
5517
5518         * The nickname length is now taken from the packet for real
5519           and not trusted to strlen() since it clearly can return
5520           wrong length for nickname including bad characters.  This
5521           also applies to channel names.  Affected file silcd/command.c.
5522
5523         * Removed the lib/silcsilm/modules directory.  Modules are now
5524           compiled into the lib/silcsim.  Fixed the copying of the
5525           modules to follow symbolic links in Makefile.am.pre.
5526
5527 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5528
5529         * Fixed silc_string_regexify list creation.  Fixes bugs with
5530           BAN and INVITE commands in server.  The affected file is
5531           lib/silcutil/unix/silcunixutil.c.
5532
5533 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5534
5535         * Removed the command destructor entirely from the server's
5536           command and command reply routines.  It is not needed, and
5537           its usage was buggy and caused crashes.  Affected files are
5538           silcd/command[_reply].[ch].
5539
5540 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5541
5542         * Cancel protocol and NULL sock->protocol if timeout
5543           occurred during protocol.  Affected file silcd/server.c.
5544
5545         * Cancel protocol timeouts always before calling the final
5546           callback, to assure that after final callback is called
5547           no other state will be called for the protocol anymore.
5548           Affected file silcd/protocol.c.
5549
5550         * Print error log if incoming connection configuration could
5551           not be found.  Affected file silcd/server.c.
5552
5553         * Fixed JOIN command to correctly save the founder mode
5554           to the client on normal SILC server, when the channel
5555           was created by the router.  Affected file silcd/command.c.
5556
5557         * Fixed LIST command (hopefully) to send correct reply
5558           packets.  Affected file silcd/command.c.
5559
5560 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5561
5562         * The silc_packet_receive_process now returns FALSE if the
5563           read data was invalid packet, and TRUE if it was ok.
5564
5565           The server now checks that if unauthenticated connection
5566           sends data and its processing fails the server will close
5567           the connection since it could be a malicious flooder.
5568
5569           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5570
5571 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5572
5573         * Make sure the warning about error opening a log file is
5574           printed only once and not everytime it fails (produces
5575           too much useless log).  Affected file lib/silcutil/silclog.c.
5576
5577 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5578
5579         * Made the silc_server_daemonise() function more readable.
5580           Affected file silcd/server.c.
5581
5582         * Pid file is now optional, the user may comment it out from
5583           the config file. Removed define SILC_SERVER_PID_FILE, we
5584           don't need a default any longer.  Affected file
5585           configure.in.pre, lib/Makefile.am.pre.
5586
5587         * Make some use of the pid file. The server now dies at startup
5588           if it detects a valid pid file on his path. The server would
5589           die anyway in this circumstance, because of the bind() failure.
5590           Affected file silcd/silcd.c.
5591
5592         * No longer compiling lib/dotconf.
5593
5594 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5595
5596         * Fixed JOIN command parsing not to crash.  Affected file
5597           lib/silcclient/command.c.
5598
5599         * Fied the NICK_CHANGE notify to add the new client entry
5600           even it is resolved.  This removes an <[unknown]> nick
5601           thingy bug in the client.  Affected file is
5602           lib/silcclient/client_notify.c.
5603
5604         * Do not try to allocate 0 bytes (efence does not like it)
5605           in lib/silccore/silccomand.c when encoding payload.
5606
5607         * Do not take IRCNICK as nickname in Irssi SILC client since
5608           it is not possible to set nickname before hand connecting
5609           the server (TODO has an entry about adding auto-nicking
5610           support).
5611
5612         * Changed the silc_server_command_pending to check whether
5613           there already exists an pending entry with the specified
5614           command, command identifier and pending callback.  This is
5615           to fix IDENTIFY and WHOIS related crashes that may register
5616           multiple pending commands with same identifier.  Affected
5617           file silcd/command.c.
5618
5619         * Fixed the server to reconnect to the router even if it
5620           was already reconnecting and EOF was received.  This to
5621           fix a possibility that the server wouldn't ever try to
5622           auto-reconnect to the router.  Affected file silcd/server.c.
5623
5624 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5625
5626         * Fixed the server's password authentication to use the
5627           length of the locally saved password, and not the one
5628           sent in the packet.  Affected file silcd/protocol.c.
5629
5630         * Fixed same password authentication problem in the
5631           Authentication Payload handling routines in
5632           lib/silccore/silcauth.c.
5633
5634         * Yet another password authentication problem fixed with
5635           channel password handling in silcd/command.c.
5636
5637 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5638
5639         * If first character of string in silc_parse_userfqdn is '@'
5640           then do not parse it.  Affected file is
5641           lib/silcutil/silcutil.c.
5642
5643 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5644
5645         * Fixed minor bug in IDENTIFY command reply sending, which
5646           caused various weird problems during JOIN when it was
5647           resolving names for users.  Affected file silcd/command.c.
5648
5649 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5650
5651         * Fixed the IDENTIFY command reply sending to chech better valid
5652           clients.  It was possible to send incomplete list of replies.
5653           Affected file silcd/command.c.
5654
5655 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5656
5657         * Added silc_client_command[s]_[un]register functions now to
5658           dynamically register the commands in client library.  Removed
5659           the static table of commands.  This allows the client library
5660           to call commands without causing the application to know about
5661           what commands library has called.
5662
5663           Removed the INFO command reply kludge to detect when the command
5664           was called by library.  Now library use its own command reply
5665           function for INFO command.
5666
5667           Added function silc_client_command_call to call a command.
5668           Application can use it to call command, not access the structure
5669           directly.
5670
5671           Now all commands that are sent by the client library (not
5672           explicitly sent by application) use own command reply functions.
5673
5674           Affected files around lib/silcclient/ and in
5675           irssi/src/silc/core/.
5676
5677         * Fixed the WHOIS command reply sending to chech better valid
5678           clients.  It was possible to send incomplete list of replies.
5679
5680           Fixed the WHOIS and IDENTIFY to send the request to router
5681           if normal server did not do it and did not find any results.
5682
5683           Affected file silcd/command.c.
5684
5685 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5686
5687         * Moved the internal data from SilcClient context into its
5688           own file, not accesible to application.  Affected files
5689           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5690           and other files in client library.
5691
5692 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5693
5694         * Added doc/examples installation target in Makefile.am.pre.
5695           A patch by salo.
5696
5697 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5698
5699         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
5700           commands the found client entry will be removed from the
5701           cache, after notifying application about the error.  Affected
5702           file lib/silcclient/command_reply.c.
5703
5704         * Changed the /MSG to check for exact nickname user gave, and
5705           not let `nick' match `nick@host' if it is only one found.  Now,
5706           user must type the exact nickname (like nick@host2) even if
5707           there are no more than one same nicks found.  This is to avoid
5708           a possibility of sending nickname to wrong nickname since
5709           `nick' could match `nick@host'.  Affected file is
5710           irssi/src/core/silc-servers.c.
5711
5712 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5713
5714         * Do not print "you are now server operator" or similar when
5715           giving /away command.  Affected files are
5716           irssi/src/silc/core/client_ops.c, silc-servers.h.
5717
5718         * Made the silc_server_command_pending_error_check to send
5719           the same command reply payload it received back to the
5720           original sender of the command.  This way all arguments
5721           that was received by the server will be received by the
5722           client too.  Affected file silcd/command.c.
5723
5724         * Added the silc_idcache_add to return the created cache entry
5725           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
5726
5727         * Add global clients to expire if they are not on any channel.
5728           This is because normal server will never know if they signoff
5729           if they are not on any channel.  The cache expiry will take
5730           case of these entries.  This is done by normal servers only.
5731           The affected files are silcd/command_reply.c,
5732           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
5733
5734         * If server receives invalid ID notification for WHOIS or
5735           IDENTIFY and the ID exists in the lists, it is removed.
5736           Affected file silcd/command_reply.c.
5737
5738         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
5739           in client then client entry that it matches is searched and
5740           the nickname is printed on the screen for user.  Affected
5741           file irssi/src/silc/core/client_ops.c.
5742
5743 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5744
5745         * Use cache entry expire time in the LIST command reply to
5746           purge old entries from the cache after the LIST command
5747           reply has been received.  This way we don't have non-existent
5748           entries in the cache for too long.  Affected file is
5749           silcd/command_reply.c.
5750
5751 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5752
5753         * If we are normal server, and we've not resolved client info
5754           in WHOIS or IDENTIFY from router, and it is global client,
5755           we'll check whether it is on some channel.  If it is not
5756           then we cannot be sure about its validity and will resolve it
5757           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
5758           file silcd/command.c.
5759
5760         * Search channel by name (if possible) rather than by ID
5761           in IDENTIFY command's command reply.  Affected file is
5762           silcd/command_reply.c.
5763
5764 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5765
5766         * Distribute to the channel passphrase in CMODE_CHANGE notify.
5767           Updated specs and implemented it.  Affected file silcd/command.c,
5768           silcd/packet_send.c and silcd/packet_receive.c.
5769
5770         * Implemented the <founder auth> payload handling in the JOIN
5771           command.  If provided all conditions for channel joining
5772           except requirement to provide correct passphrase can be
5773           overrided by the channel founder.  Updated the protocol specs.
5774           Affected file silcd/command.c.
5775
5776           Added support for founder auth in JOIN command in client
5777           library.  Fixed the parsing of the JOIN command now to support
5778           all options as they should be.  The affected file is
5779           lib/silcclient/command.c.
5780
5781         * Optimized the WHOIS and IDENTIFY commands to send the request
5782           to router only if it includes nicknames or other names.  If
5783           they include only IDs then check the local cache first before
5784           routing.  Affected file is silcd/command.c.
5785
5786         * Added channels topic announcements.  Affected file is
5787           silcd/packet_receive.c and silcd/server.c.
5788
5789         * Fixed the silc_server_send_notify_topic_set to really destine
5790           the packet to channel.  Affected file silcd/packet_send.c.
5791
5792         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
5793           library.  Affected file lib/silcclient/client_notify.c.
5794
5795         * Added UMODE announcements.  Affected file silcd/server.c.
5796
5797 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5798
5799         * Memory leak fixes in:
5800
5801           lib/silcutil/silcsockconn.c
5802           lib/silcske/silcske.c
5803           lib/silcske/groups.c
5804           lib/silccrypt/rsa.c
5805           lib/silccrypt/silcpkcs.c
5806           lib/silccore/silccommand.c
5807           lib/silccore/silcidcache.c
5808           silcd/idlist.c
5809           silcd/packet_send.c
5810           silcd/command.c
5811
5812         * ROBOdoc documented the lib/silcske/groups.h file and a
5813           bit changed the interface for better.
5814
5815 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5816
5817         * Update the client entry context in the ID cache after
5818           nick change.  Affected file lib/silcclient/command.c.
5819           Fixes the CUMODE command when regaining founder privileges,
5820           and a little WHOIS problem.
5821
5822         * Fixed silc_net_gethostbyname to correctly call the
5823           inet_ntop.  Affected file lib/silcutil/silcnet.c.
5824
5825 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5826
5827         * Added IPv6 support checking to the configure.in.pre, added
5828           also --enable-ipv6 option to override the check.  Affected
5829           file configure.in.pre.
5830
5831         * The silc_thread_create now calls the start function
5832           directly if threads support is not compiled in.  Removes
5833           ugly #ifdef's from generic code.  Affected files are
5834           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
5835
5836         * Added silc_net_gethostby[name/addr]_async to asynchronously
5837           resolve.  Affected files are lib/silcutil/silcnet.[ch].
5838
5839         * Added support for rendering IPv6 based server, client and
5840           channel IDs.  Affected file lib/silcutil/silcutil.c.
5841
5842         * Added support for creating IPv6 based server IDs.  Affected
5843           file is silcd/serverid.c.
5844
5845 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5846
5847         * Added silc_net_gethostby[addr/name] into the
5848           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
5849           routines.  Added silc_net_is_ip[4/6].  Affected file is
5850           lib/silcutil/unix/silcunixnet.c.  All routines that take
5851           address as argument now supports both IPv4 and IPv6 addresses.
5852
5853 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5854
5855         * Fixed LIST command reply sending in server.  Affected file
5856           silcd/command.c.
5857
5858         * Server now sends the kicker's client ID in the KICK notify
5859           to the kicked client.  Affected file silcd/command.c.
5860
5861         * The client library now parses the kickers client ID and
5862           UI displays it.  Affected files lib/silcclient/client_notify.c
5863           and irssi/src/silc/core/silc-channels.c, module-formats.c.
5864
5865         * Made all payload parsing function prototypes consistent.
5866           They all take now const unsigned char * and uint32 pair as
5867           the payload data instead of SilcBuffer.  Changes all around
5868           the source tree.  Other unsigned char* -> const unsigned char*
5869           changes around the tree as well.
5870
5871         * Optimized SFTP client and server packet sending not to
5872           allocate new buffer for each packet but to recycle the
5873           first allocated buffer.  Affected files are
5874           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
5875
5876         * Optimized the SFTP client to use SilcList instead of
5877           SilcDList for requests, because it is faster.  Affected file
5878           is lib/silcsftp/sftp_client.c.
5879
5880         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
5881           into lib/silccore/silcid.[ch].
5882
5883           Renamed silcpayload.[ch] into silcargument.[ch].
5884
5885 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5886
5887         * If client entry is deleted with active key agreement
5888           session, abort the session.
5889
5890           The silc_client_abort_key_agreement now calls the completion
5891           callback with new SILC_KEY_AGREEMENT_ABORTED status.
5892
5893           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
5894           idlist.c.
5895
5896 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5897
5898         * Don't use __restrict in older GCC's.  Affected file is
5899           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
5900
5901         * silc_net_localhost now attempts to reverse lookup the
5902           IP/hostname.  Affected file lib/silcutil/silcnet.c.
5903
5904         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
5905           command.  It can be used to gain founder privileges at
5906           the same time when joining the channel.
5907
5908           Defined that the SILC_NOTIFY_TYPE_KICKED send the
5909           kicker's client ID as well.  Updated protocol specs.
5910
5911           Defined that the server must send SILC_COMMAND_IDENTIFY
5912           command reply with error status to client who sent
5913           private message with invalid client ID.
5914
5915           Updated the protocol specification.
5916
5917         * Added silc_server_send_command_reply to send any
5918           command reply.  Affected file silcd/packet_send.[ch].
5919
5920         * Added silc_id_payload_encode_data to encode ID payload
5921           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
5922
5923         * The server now send IDENTIFY command reply with error
5924           status if client ID in private message is invalid.  Affected
5925           file silcd/packet_receive.c.
5926
5927         * Save the server key file with server's IP address in
5928           the filename instead of hostname.  The affected file is
5929           irssi/src/silc/core/client_ops.c.
5930
5931 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5932
5933         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
5934           A patch by Sunfall.
5935
5936         * Added libtool support for compiling shared objects in
5937           lib/silcsim.  Affected file configure.in.pre and
5938           lib/silcsim/Makefile.am.  Original patch by cras.
5939
5940 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5941
5942         * Pid file configuration, and server's config file fixes
5943           patch by toma.  Updated CREDITS file.
5944
5945 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5946
5947         * Fixed silc_client_channel_message to not try to decrypt
5948           the message twice if it resolved the destination client
5949           information.  This could cause of dropping one channel
5950           message.  Affected file lib/silcclient/client_channel.c.
5951
5952 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5953
5954         * Added silc_client_run_one into lib/silcclient/silcapi.h and
5955           lib/silcclient/client.c. This function is used when the SILC
5956           Client is run under some other scheduler, or event loop or
5957           main loop.  On GUI applications, for example this may be
5958           desired to used to run the client under the GUI application's
5959           main loop.  Typically the GUI application would register an
5960           idle task that calls this function multiple times in a second
5961           to quickly process the SILC specific data.
5962
5963 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5964
5965         * Fixed silc_server_drop() for dropping the supplementary
5966           groups as well, this could cause a security hole on some
5967           systems.
5968
5969 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5970
5971         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
5972           johnny.
5973
5974         * Write PID file after dropping privileges.  Added -F option
5975           to run server on foreground.  A patch by debolaz.
5976           Affected files silcd/server.c, silcd/silcd.c.
5977
5978         * Fixed MOTD to return the MOTD file server name.  Affected
5979           file silcd/command.c.
5980
5981         * Added INFO command reply handling to the Irssi SILC Client.
5982           Affected file irssi/src/silc/core/client_ops.c.
5983
5984 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5985
5986         * Fixed the silc_idcache_list_* routines to really support
5987           the dynamic list.  Fixes a crash.  Affected file is
5988           lib/silccore/silcidcache.c.
5989
5990         * Fixed the LIST command reply to really call LIST command's
5991           pending callbacks.  Affected file silcd/command_reply.c.
5992
5993 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5994
5995         * Update conn->local_entry->nickname after giving NICK
5996           command.  Affected file lib/silcclient/command.c.
5997
5998 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
5999
6000         * Added the [pid] option to the silcd configuration file
6001
6002           Affected files: serverconfig.[ch] and silcd.c
6003
6004 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6005
6006         * Save fingerprint in WHOIS command reply in server.
6007           Affected file silcd/command_reply.c.
6008
6009         * Fixed NICK commands pending callback registration.
6010           Affected file lib/silcclient/command.c.
6011
6012 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6013
6014         * Use ++server->cmd_ident when sending commands in server,
6015           instead of random number.  Affected file silcd/command.c.
6016
6017         * Fixed GETKEY command reply to call actually GETKEY pending
6018           command callbacks.  Affected file silcd/command_reply.c.
6019
6020         * A bit stricter check for nicknames.  Check for same nickname
6021           in NICK command also.  Affected file silcd/command.c.
6022
6023         * Do not call INFO command everytime client ID changes, only
6024           during first connecting.  Affected file lib/silcclient/client.c.
6025
6026         * Set the new nickname only after successful command reply for
6027           NICK command is returned by server.  Affected file
6028           lib/silcclient/command.c.
6029
6030         * Remove nicknames from nicklist during server_signoff notify.
6031           Should fix /NAMES bit more.  The affected file is
6032           irssi/src/silc/core/silc-channels.c.
6033
6034         * Added `fingerprint' field to the SilcIDListData in the
6035           silcd/idlist.h to hold the fingerprint of the client's
6036           public key.
6037
6038           Send the fingerprint of the client's public key in WHOIS
6039           command reply.
6040
6041           Affected files silcd/command.c, and silcd/idlist.[ch].
6042
6043         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6044           create fingerprint from given data.
6045
6046         * Show the fingerprint of the client's public key in WHOIS.
6047           Affected files irssi/src/module-formats.[ch] and
6048           irssi/src/silc/core/client_ops.c.
6049
6050         * Format the multiple same nicknames also during JOIN and
6051           NICK_CHANGE notifys.  Affected file is
6052           lib/silcclient/client_notify.c.
6053
6054         * Do not print error on screen for invalid private message
6055           payload since it can come if someone is sending private
6056           messages with wrong key.  Affected file
6057           lib/silccore/silcprivate.c.
6058
6059         * Fixed multiple concurrent /PING crash.  Affected file
6060           lib/silcclient/command.c.
6061
6062         * Changed the wrong ID encoding.  All IP addresses must be
6063           in MSB first order in encoded format.  They were encoded
6064           wrong and was in LSB format.  Affected files are
6065           silcd/serverid.c, lib/silcutil/silcutil.c.
6066
6067         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6068
6069         * Call the `connect' client operation through the scheduler
6070           in case of error.  Affected file lib/silcclient/client.c.
6071
6072         * Call the `failure' client operation even if the error
6073           occurred locally during a protocol.  Affected file is
6074           lib/silcclient/protocol.c.
6075
6076         * Added support of sending LIST command to router from normal
6077           server.  This way normal server can get list of all channels
6078           in the network too.  Fixed the channel list sending in the
6079           server too.  Affected files are silcd/command.c, and
6080           silcd/command_reply.[ch].
6081
6082         * Added silc_server_update_channels_by_server and
6083           silc_server_remove_channels_by_server.  They are used during
6084           disconnection of primary router and in backup router protocol.
6085           Affected file silcd/server_util.[ch], silcd/server.c and
6086           silcd/server_backup.c.
6087
6088         * Fixed channel adding to global list in IDENTIFY command
6089           reply in server.  Affected file silcd/command_reply.c.
6090
6091 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6092
6093         * If the incoming packet type is REKEY or REKEY_DONE process
6094           that packet always synchronously.  Fixes yet another MAC
6095           failed error on slow (dialup) connections.  Affected file
6096           lib/silcclient/client.c and silcd/server.c.
6097
6098 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6099
6100         * Call check_version SKE callback for initiator too.  Affected
6101           file lib/silcske/silcske.c.
6102
6103         * Implemented fix for security hole found in the SKE that was
6104           fixed in the specification few days back; the initiator's
6105           public key is now added to the HASH value computation.
6106           Added backwards support for the old way of doing it too, for
6107           old clients and old servers.  Affected file is
6108           lib/silcske/silcske.c.
6109
6110         * Enabled mutual authentication by default in SKE.  If initiator
6111           is not providing mutual authentication the responder will
6112           force it.  This will provide the proof of posession of the
6113           private key for responder.  The affected files are
6114           lib/silcclient/protocol.c and silcd/protocol.c.
6115
6116         * Do not cache anymore the server's public key during SKE.
6117           We do mutual authentication so the proof of posession of
6118           private key is done, and if the server is authenticated in
6119           conn auth protocol with public key we must have the public
6120           key already.  Affected file silcd/protocol.c.
6121
6122         * Added new global debug variable: silc_debug_hexdump.  If
6123           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6124           file lib/silcutil/silclog.[ch].
6125
6126         * Fixed compilation warning due to char * -> const char *.
6127           Affected files lib/silcutil/silcnet.h, and
6128           lib/silccore/silcauth.[ch].
6129
6130 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6131
6132         * Fixed CMODE command when new channel key was created.  If
6133           the creation failed the old key was removed.  Next time giving
6134           same command would crash the server since the old key was
6135           freed already.  Affected file silcd/command.c.
6136
6137         * Fixed the silc_server_announce_get_channels to not crash
6138           on reconnect.  Affected file silcd/server.c.
6139
6140 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6141
6142         * Added silc_log_set_debug_string function to set a regex
6143           string to match for debug output.  Only the function names,
6144           or filenames matching the given debug string is actually
6145           printed.  This way it is possible to filter out those debug
6146           strings that user is not interested in.
6147
6148           Fixed a bug in silc_string_regexify.
6149
6150           Affected files lib/silcutil/silclog.[ch], and
6151           lib/silcutil/unix/silcunixutil.c.
6152
6153         * Changed the -d options in both server and Irssi SILC client
6154           to take the debug string as argument.  Affected files
6155           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6156
6157 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6158
6159         * Added silc_hash_babbleprint to create a Bubble Babble
6160           Encoded fingerprint.  The encoding is developed by Antti
6161           Huima (draft-huima-babble-01.txt), and it creates human
6162           readable strings out of binary data.  Affected file
6163           lib/silccrypt/silchash.[ch].
6164
6165         * Print the babble print now in addition of fingerprint as well
6166           in Irssi SILC client.  Affected files are
6167           irssi/src/fe-common/silc/module-formats.[ch],
6168           irssi/src/fe-common/silc/core/client_ops.c.
6169
6170 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6171
6172         * Fixed a security problem found in SKE.  The initiator's
6173           public key too is now added to the HASH hash value creation
6174           which is signed by the responder to create the SIGN value.
6175           This will prevent anyone in the middle to lie to the responder
6176           about the initiator's public key.  If this is done now, the
6177           man in the middle will get caught.  Updated the protocol
6178           specification.
6179
6180 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6181
6182         * Better installation directory handling.  Configure module
6183           paths and other paths automatically to example_silc* files
6184           in doc/.  A patch by toma.
6185
6186         * Fixed compiler warning from MPI library, and from SILC RNG.
6187           A patch by johnny.
6188
6189         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6190           It can be configured with ./configure.  A patch by toma.
6191
6192 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6193
6194         * Find correct make to use in prepare-clean.  A patch by
6195           toma.  Affected file prepare-clean.
6196
6197 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6198
6199         * Added irssi variables use_auto_addr, auto_bind_ip,
6200           auto_bind_port and auto_public_ip.
6201
6202         * Changed the interface for silc_client_send_key_agreement
6203           in lib/silcclient/silcapi.h
6204
6205         Affected files:
6206
6207          irssi/src/silc/core/silc-core.c
6208          irssi/config
6209          lib/silcclient/silcapi.h
6210          irssi/src/silc/core/silc-channels.c
6211          lib/silcclient/client_keyagr.c
6212          irssi/docs/help/key
6213
6214 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6215
6216         * Added silc_pkcs_public_key_compare to compare two
6217           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6218
6219         * Check that the client who set the founder mode on the
6220           channel is the same client that is giving the founder
6221           mode to itself.  It is done by comparing the saved public
6222           key (it is saved even in the authentication is passphrase).
6223           Affected file silcd/command.c.
6224
6225 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6226
6227         * Do not process packet for disconnected socket connection.
6228           Affected file lib/silccore/silcpacket.c.
6229
6230         * Process the DISCONNECT packet through scheduler in the
6231           client library.  Affected file lib/silcclient/client.c.
6232
6233         * Fixed the silc_client_packet_parse to not to increase
6234           the packet sequence number if the conn->sock and the
6235           current socket connection is not same.  This can happen
6236           for example during key agreement when the conn includes
6237           multiple socket connections (listeners).  Affected file
6238           lib/silcclient/client.c.
6239
6240         * The sender of the file transfer request now provides also
6241           the pointer (listener) for the key exchange protocol.  If
6242           the listener cannot be created then it sends empty key
6243           agreement and lets the receiver provide the listener.
6244
6245           Added `local_ip' and `local_port' arguments to the
6246           silc_client_file_send.  If they are provided they are used,
6247           if not then it will attempt to find local IP address, if
6248           not found or bind fails then the remote client will provide
6249           the listener.
6250
6251           Affected files are lib/silcclient/client_ftp.c and
6252           lib/silcclient/silcapi.h.
6253
6254         * Extended the FILE SEND command to support defining the
6255           local IP and port for key exchange listener.  They are
6256           optional.  Affected file irssi/src/silc/core/silc-servers.c.
6257
6258 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6259
6260         * Defined to WHOIS command reply the sending of fingerprint
6261           of the client's public key (if the proof of posession of the
6262           corresponding private key is verified by the server).
6263           Updated to the protocol specification.
6264
6265         * Added support of receiving the client's public key's
6266           fingerprint in command reply in client library.  Affected
6267           file is lib/silcclient/command_reply.c, and
6268           lib/silcclient/idlist.[ch].
6269
6270 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6271
6272         * Do not send over 128 chars long nickname to the server
6273           in NICK command.  Affected file lib/silcclient/command.c.
6274
6275         * Do not send over 256 chars long channel names to the server
6276           in JOIN command.  Affected file lib/silcclient/command.c.
6277
6278 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6279
6280         * Assure that silc_server_close_connection cannot be called
6281           twice for same socket context.  Affected file is
6282           silcd/server.c.
6283
6284 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6285
6286         * Send error message to application if opening file for
6287           writing during file transfer fails.  Affected file is
6288           lib/silcclient/client_ftp.c.
6289
6290           Remove all file transfer sessions for a client that we're
6291           removing from ID cache.
6292
6293           Affected file is lib/silcclient/client_ftp.c.
6294
6295         * Fixed silc_net_addr2bin to return correct address.  Affected
6296           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6297
6298         * Fixed file transfer session removing on signoff notify.
6299           Affected file irssi/src/silc/core/silc-servers.c.
6300
6301         * Added the SilcClientFileError to be returned in the monitor
6302           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
6303           Affected file lib/silcclient/silcapi.h.
6304
6305 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6306
6307         * Fixed a crash in silc_client_ftp_free_sessions and
6308           silc_client_ftp_session_free_client.  Affected file
6309           lib/silcclient/client_ftp.c.
6310
6311         * Added `disabled' field in the SilcChannelEntry in the server
6312           to indicate if the server entry is disabled.  Affected file
6313           silcd/idlist.h, silcd/command[_reply].c.
6314
6315         * SILC server adds now /var/run/silcd.pid everytime it is
6316           started.  Affected file silcd/silcd.c.
6317
6318         * Added silc_server_packet_send_clients to send a packet to
6319           the provided table of client entries.  Affected file
6320           silcd/packet_send.[ch].
6321
6322         * Fixed a crash in client resolving in client_prvmsg.c in
6323           client library.  Affected file lib/silcclient/client_prvmsg.c.
6324
6325         * Do not actually remove the client directly from ID cache
6326           during SERVER_SIGNOFF, but invalidate it.  This way we
6327           preserve the WHOWAS info for the client.  Affected file
6328           silcd/server_util.c.
6329
6330         * Fixed SERVER_SIGNOFF notify handling in the server.  The
6331           server is now able to process incoming SERVER_SIGNOFF notify
6332           for a server that it doesn't even know about.  It will remove
6333           the clients provided in the notify.  Affected file
6334           silcd/packet_receive.c.
6335
6336         * Check for partial packet in data queue after every packet that
6337           was found from the queue.  Return and wait for more data if
6338           there is partial data in queue.  Affected file is
6339           lib/silccore/silcpacket.c.
6340
6341 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6342
6343         * Added SilcClietFileError enum to indicate error in
6344           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
6345           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
6346           Affected files lib/silcclient/silcapi.h and
6347           lib/silcclient/client_ftp.c.
6348
6349         * Check that newsize in silc_buffer_realloc is larger than
6350           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
6351
6352         * Added better monitor of file transfers.  It now monitors
6353           key agreement protocol during the file transfer too.  Added
6354           error reporting too.  Affected files
6355           irssi/src/silc/core/silc-servers.c,
6356           irssi/src/fe-common/silc/module-formats.[ch].
6357
6358         * Wrote a help file for FILE command.
6359
6360         * Added silc_rng_global_get_byte_fast to get not-so-secure
6361           random data as fast as possible.  Random data is read from
6362           /dev/urandom if available and from the SILC RNG if not
6363           available.  It is used in padding generation.  Affected file
6364           lib/silccrypt/silcrng.[ch].
6365
6366         * All packets in client library are now processed synchronously.
6367           Optimized packet processing a lot.  Affected file
6368           lib/silcclient/client.c.
6369
6370         * All server connection packets are processing synchronously
6371           now in server, to optimize packet processing.  Affected file
6372           silcd/server.c.
6373
6374         * Include files are installed now only in Toolkit distribution
6375           if make install is given.  Affected files: all Makefile.am's.
6376
6377 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6378
6379         * Assure that silc_client_notify_by_server_resolve does not
6380           resolve the client information multiple times.  If it cannot
6381           be found by the first it cannot be found at all.  Affected
6382           file lib/silcclient/client_notify.c.
6383
6384         * Fixed WHOWAS command reply calling.  Affected file
6385           lib/silcclient/command_reply.c.
6386
6387         * Removed all references to silc_idlist_get_client from the
6388           Irssi SILC client since that call is internal call used by
6389           the library.  The Irssi SILC client will use now client
6390           retrieval functions found in silcapi.h.
6391
6392         * Fixed a bug in resolving nickname info before sending
6393           private message.  It used freed memory.  Affected file
6394           irssi/src/silc/core/silc-servers.c.
6395
6396 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6397
6398         * Assure my_channels statistics cannot go negative in server.
6399           Affected files silcd/server.c, silcd/server_util.c.
6400
6401 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6402
6403         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
6404
6405 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6406
6407         * Win32 Toolkit changes.  Affected files
6408           win32/silc.dsw, win32/libsilc/libsilc.def,
6409           win32/libsilcclient/libsilc.def,
6410           lib/silcutil/silcutil.c, and
6411           lib/sftp/sftp_fs_memory.c.
6412
6413 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6414
6415         * Added silc_net_localip to return local host's IP address.
6416           Affected file lib/silcutil/silcnet.[ch].
6417
6418         * If key exchange or rekey protocol is active for a connection
6419           parse all packets syncronously since there might be packets
6420           in packet queue that we are not able to process without first
6421           processing packets before them.  Affected file silcd/server,
6422           lib/silcclient/client.c.
6423
6424         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
6425           whether library should continue processing the packet.
6426           Affected file lib/silccore/silcpacket.h.
6427
6428         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
6429           SilcSFTPMonitorData to SFTP server to monitor various
6430           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
6431           lib/silcsftp/sftp_server.c.
6432
6433         * Added silc_file_size to return file size.  Affected file
6434           lib/silcutil/silcutil.[ch].
6435
6436         * Implemented the file transfer support for the client library.
6437           Added preliminary support for simple client to client one-file
6438           transmission.  Affected file lib/silcclient/client_ftp.c,
6439           lib/silccilent/client.[ch].
6440
6441         * Added new local command FILE to the Irssi SILC Client.
6442           It is used to perform the file transfer.  It has subcommands
6443           SEND, RECEIVE, SHOW and CLOSE.  Affected files
6444           irssi/src/silc/core/client_ops.c,
6445           irssi/src/silc/core/silc-server.[ch].
6446
6447 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6448
6449         * Relay the SILC_PACKET_FTP in the server.  Affected files
6450           silcd/server.c and silcd/packet_receive.c.
6451
6452 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6453
6454         * Renamed silc_file_read and silc_file_write to functions
6455           silc_file_readfile and silc_file_writefile.  Added function
6456           silc_file_open and silc_file_close.  Affected files
6457           lib/silcutil/silcutil.[ch].
6458
6459 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6460
6461         * Resolve the client info when received private message or
6462           channel message for a client which nickname we don't know.
6463           Affected files lib/silcclient/client_prvmsg.c and
6464           lib/silcclient/client_channel.c.
6465
6466         * Do not crash in /KEY if client is not connected.  Affected
6467           file irssi/src/silc/core/silc-channels.c.
6468
6469         * Added SilcClientStatus field to the SilcClientEntry in the
6470           lib/silcclient/idlist.h.
6471
6472           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6473           is incomplete and is being resolved, it won't be resolved
6474           twice.
6475
6476           Make sure also that USERS command reply does not resolve
6477           twice information.  Affected file is
6478           lib/silcclient/command_reply.c.
6479
6480           Make sure that silc_client_get_clients_by_list does not
6481           resolve twice same information.
6482
6483         * Check for valid client->id in the silc_server_free_client_data.
6484           Affected file silcd/server.c.
6485
6486         * Fixed /GETKEY nick@server not to crash if the server entry
6487           is not found.  Affected file lib/silcclient/command.c.
6488
6489         * Fixed the silc_server_check_cmode_rights to check the
6490           requested modes correctly.  Affected file silcd/command.c.
6491
6492 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6493
6494         * Better checks for non-printable chars in nick added.
6495           Affected file silcd/command.c.
6496
6497 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6498
6499         * Call the silc_server_udpate_servers_by_server in the
6500           primary router that comes back online in the backup resuming
6501           protocol.  Otherwise it routes packets wrong.  Affected file
6502           silcd/server_util.[ch], silcd/server_backup.c.
6503
6504 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6505
6506         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6507           lib/silcutil/silcbuffmt.[ch].
6508
6509         * Redefined the SILC packet header to include the padding
6510           length.  Affected file lib/silccore/silcpacket.[ch].
6511
6512         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6513           length for maximum padding up to 128 bytes).  Affected
6514           file lib/silccore/silcpacket.h.
6515
6516         * Removed all backwards support for old 0.5.x MAC thingies.
6517           The SILC packet header change makes it impossible to be
6518           backwards compatible.
6519
6520         * Send the ENDING packet with timeout in the backup resuming
6521           protocol.  This is to assure that all routers has connected
6522           to the primary router.  Affected file silcd/server_backup.c.
6523
6524         * Changed the RNG to take the first IV from random data.  It
6525           used to take it from zero actually.  Changed the RNG also
6526           to use /dev/urandom during session.  /dev/random is used
6527           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6528
6529 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6530
6531         * Changed the SILC packet header to have the first two bytes
6532           (the packet length) encrypted.  Affected files aroung the
6533           code tree, lib/silccore/silcpacket.[ch].  Removed the
6534           SilcPacketCheckDecrypt callback.  It is not needed anymore
6535           since the silc_packet_receive_process will determine now
6536           whether the packet is normal or special.
6537
6538         * Implemented the unidirectional MAC keys.  Affected files
6539           lib/silcske/silcske.c, silcd/protocol.c and
6540           lib/silcclient/protocol.c.
6541
6542         * Implemented the packet sequence number to the MAC computation.
6543           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6544           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6545           lib/silcclient/protocol.c.
6546
6547 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6548
6549         * Allow backup router to announce servers.  All servers
6550           announced by backup router are added to the global list
6551           automatically.  Update hte server's socket to our primary
6552           router also when backup router announces a server.
6553           Affected file silcd/packet_receive.c.
6554
6555         * Do not update the client->router in the function
6556           silc_server_udpate_clients_by_server if the client is on
6557           global list.  We might fail to find any specific server
6558           for locally connected clients and local cell clients.  They
6559           should still use the `from' and not `to' as client->router.
6560           This fixes backup router resuming protocol.  Affected file
6561           silcd/server_util.c.
6562
6563         * Decrease channel statistics count only if the channel
6564           deletion worked.  Affected files are silcd/server.c and
6565           silcd/server_util.c.
6566
6567         * Added silc_server_update_servers_by_server to update origin
6568           of all server entries.  Used during backup router protocol.
6569           Affected files silcd/server_util.[ch], silcd/server.c. and
6570           silcd/backup_router.c.
6571
6572         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6573           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6574           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6575           lib/silccrypt/silchmac.c.
6576
6577 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6578
6579         * Assure that router cannot reroute the same channel message
6580           to the sender.  Affected file silcd/packet_receive.c.
6581
6582 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6583
6584         * Made better checks that the channel message is not sent
6585           to the router it came from.  Affected file is
6586           silcd/packet_send.c.  Fixed memory leak too.
6587
6588         * Announce informations for incoming router connection, but
6589           only after checking if it is replaced by backup router.
6590           Affected file silcd/packet_receive.c.
6591
6592 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6593
6594         * Fixed the backup resuming protocol to work in multiple
6595           router environment.  Affected file silcd/server_backup.c.
6596
6597         * Route packet only to one router in the function
6598           silc_server_packet_send_to_channel.  Affected file is
6599           silcd/packet_send.c.
6600
6601         * Fixed silc_server_send_notify_dest to set the broadcast
6602           flag.  Fixed the silc_server_send_notify_topic to actually
6603           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6604           Affected file silcd/packet_send.c.
6605
6606         * Changed the SFTP Filesystem interface.  Changed the
6607           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6608           the filesystem operation function.  The SilcSFTPFilesystem
6609           is now a context that is allocated by all filesystem allocation
6610           functions and it already includes the operations structure
6611           and filesystem specific context.  It is given as argument
6612           now to the silc_sftp_server_start.  This made the interface
6613           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6614           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6615
6616 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6617
6618         * Changed the backup router adding and getting interfaces
6619           in the server.  The router that will be replaced by the
6620           specified backup router is now sent as argument.  Affected
6621           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6622           silcd/server.c.
6623
6624         * Added silc_net_addr2bin_ne to return the binary form of
6625           the IP address in network byte order.  Affected files
6626           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6627
6628 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6629
6630         * Check for existing server ID in silc_server_new_server
6631           and in silc_server_connect_to_router_final and remove the
6632           old entry if it exists.  Affected file silcd/packet_receive.c,
6633           silcd/server.c.
6634
6635         * Send the channel message always to only one router, either
6636           in upstream or downstream.  Affected file is
6637           silcd/packet_send.c.
6638
6639 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6640
6641         * Wrote the definition of the backup resuming protocol to the
6642           protocol specification.
6643
6644         * Removed one redundant channel key generation from normal
6645           server during joining procedure.  Removed one redundant
6646           channel key sending from server to router during joining
6647           procedure.  Affected file silcd/command.c.
6648
6649         * Made minor bugfixes to the backup router resuming protocol.
6650           Affected file silcd/server_backup.c, server.c.
6651
6652 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6653
6654         * Added --disable-asm configuration option.  Affected files
6655           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6656           by salo.
6657
6658         * Implemented the backup resuming protocol that is used to
6659           resume the primary router position in the cell after the
6660           primary router comes back online.  Affected files
6661           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6662           and silcd/server_util.[ch].
6663
6664 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6665
6666         * Sleep two (2) seconds after sending QUIT command to server.
6667           Affected file lib/silcclient/command.c.
6668
6669         * Assure that if outgoing data buffer is pending do not force
6670           send any data.  Affected file silcd/packet_send.c.
6671
6672         * Assure that if outgoing data buffer is pending do not force
6673           send any data.  Affected file lib/silcclient/client.c.
6674
6675         * Implemented the backup router support when the primary router
6676           goes down.  The servers and routers can now use the backup
6677           router as new primary router without loosing connectivity.
6678
6679 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6680
6681         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6682           in the server to indicate disabled entry.  All data read
6683           from the connection will be ignored and no data is sent
6684           for entry that is disabled.  Affected files are
6685           silcd/idlist.h, silcd/server.c.
6686
6687 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6688
6689         * Created SFTP client and server test programs in the
6690           lib/silcsftp/tests directory.
6691
6692 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6693
6694         * Implemented memory filesystem (virtual filesystem) for
6695           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
6696           sftp_fs_memory.c.
6697
6698 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6699
6700         * Implemented the SFTP (SSH File Transfer Protocol) to the
6701           lib/silcsftp.  It includes SFTP client and SFTP server
6702           implementations.
6703
6704 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6705
6706         * Moved lib/silccore/silcprotocol.[ch] to the
6707           lib/silcutil library.
6708
6709         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
6710           take variable argument list pointer as argument.  Affected
6711           file lib/silcutil/silcbuffmt.[ch].
6712
6713         * Added silc_buffer_set function that is used to set data
6714           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
6715           Affected file lib/silcutil/silcbuffer.h.
6716
6717         * Changed various routines in the core library to use the new
6718           silc_buffer_set instead of allocating new buffer only for
6719           temporary purposes.
6720
6721         * Added 64-bit value formatting and unformatting support to the
6722           silc_buffer_[un]format routines.  Affected file is
6723           lib/silcutil/silcbuffmt.[ch].
6724
6725           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
6726           to includes/bitmove.h.
6727
6728 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6729
6730         * Fixed channel user mode saving in client library.  Affected
6731           file lib/silcclient/command[_reply].c.
6732
6733 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6734
6735         * Defined the file transfer to the SILC Protocol.  Added
6736           new packet type SILC_PACKET_FTP and defined File Transfer
6737           Payload.  The mandatory file transfer protocol is SFTP
6738           (SSH File Transfer Protocol).  Affected file in addition
6739           of the internet draft is lib/silccore/silcpacket.h.
6740
6741         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
6742           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
6743           is used as part of backup router protocol when the primary
6744           router of the cell is back online and wishes to resume
6745           the position as primary router.
6746
6747         * Redefined the MAC generation keys in the protocol.  The
6748           same key is not used anymore in both direction.  Both
6749           direction will now use different keys for sending and
6750           receiving.  This fixes a potential security flaw.  This
6751           change causes incompatibilities in the protocol.
6752
6753         * Redefined also the MAC computation from the packet.
6754           An packet sequence number is now added to the MAC
6755           computation.  This prevents possible replay attacks against
6756           the protocol.  This change too causes incompatibilities
6757           in the protocol.
6758
6759           Added `sequence' field to the SilcPacketContext to hold
6760           the current sequence number for the packet.
6761
6762 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6763
6764         * Added `created' field to the SilcIDListData in the file
6765           silcd/idlist.h to indicate the time when the entry was
6766           created.
6767
6768         * Added `created' field to the SilcChannelEntry too.  Affected
6769           file silcd/idlist.h.
6770
6771         * Added `creation_time' aguments to all the announcement functions
6772           in the server.  If it is provided then only the entries that
6773           was created after the provided time frame are actually
6774           announced.  Affected file silcd/server.[ch].
6775
6776         * The protocol says that the Channel ID's IP address must be
6777           based on the router's IP address.  Added check for this in
6778           the silc_server_new_channel when processing incoming New Channel
6779           Payload.  Affected file silcd/packet_receive.c.
6780
6781         * Print out the correct version with --version in SILC client.
6782           Affected file irssi/src/silc/core/silc-core.c.
6783
6784 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6785
6786         * Fixed WHOWAS command to check for completnes of the client
6787           entry always, not just when the command is coming from client.
6788           Affected file silcd/command.c.
6789
6790         * Added new function silc_server_packet_queue_purge to purge the
6791           outgoing data queue to the network.  After the function returns
6792           it is guaranteed that the outgoing packet queue is empty.
6793           Affected file silcd/packet_send.[ch].
6794
6795         * Purge the outgoing packet queue in the rekey protocol's final
6796           callback to assure that all rekey packets go to the network
6797           before quitting the protocol.  Affected file silcd/server.c.
6798
6799         * Added silc_client_packet_queue_parse as similar function as
6800           in server to the client library.  The affected file is
6801           lib/silcclient/client.c.
6802
6803 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6804
6805         * Splitted silcd/server.c and created silcd/server_util.[ch]
6806           for utility functions.
6807
6808         * Added new socket flag SILC_SF_DISABLED to indicate that the
6809           connection is open but nothing can be sent to or received from
6810           the connection.  Affected file lib/silcutil/silsockconn.[ch].
6811           The checking for disabled socket is checked in the low level
6812           silc_socket_write and silc_socket_read functions.
6813
6814 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6815
6816         * Allow only nicknames and channel names that fits into the
6817           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
6818
6819 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6820
6821         * When processing JOIN command reply in server check that if
6822           the channel exists in our global list we'll move it the local
6823           list.  Affected file silcd/command_reply.c.
6824
6825         * Fixed the check whether client is joined on the channel already
6826           in JOIN command.  Affected file lib/silcclient/command.c.
6827
6828         * Fixed the JOIN command reply to check whether the channel
6829           already exists.  Affected file lib/silcclient/command_reply.c.
6830
6831 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6832
6833         * Added silc_ske_status_string to map the SKE error numbers
6834           to readable strings.  The affected files are
6835           lib/silcske/silcske[_status].[ch].
6836
6837 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6838
6839         * Do not show the private channels on the WHOIS channel list
6840           as it is not allowed by the protocol.  The affected file is
6841           silcd/server.c.
6842
6843 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6844
6845         * Assure that the packet length digged from the actual packet
6846           is something sensible in the silc_packet_decrypt_rest_special
6847           in lib/silccrypt/silcpacket.c.
6848
6849         * Free and NULL the allocated pointer in silc_hmac_alloc if
6850           the HMAC allocation fails.  The affected file is
6851           lib/silccrypt/silchmac.c.
6852
6853         * Print the selected security properties to the log files in
6854           the server.  Affected file silcd/protocol.c.
6855
6856         * Add SKE's reference counter even if calling the completion
6857           callback manually.  Otherwise it goes negative, although it
6858           does not cause any problems.  The affected file is
6859           lib/silcske/silcske.c.
6860
6861         * Remove the client entry with short timeout after giving the
6862           KILL command.  Affected file lib/silcclient/command.c.
6863
6864         * Fixed to send error reply in WHOIS and IDENTIFY commands in
6865           case all found clients are already disconnected (WHOWAS would
6866           found them) in the server.  Affected file silcd/command.c.
6867
6868         * Update the last_receive (time of last data received) to be
6869           updated only when received private or channel message so that
6870           the idle time showed in WHOIS makes more sense.
6871
6872         * Added boolean field `valid' in to the SilcClientEntry in the
6873           client library to indicate whether the entry is valid or not.
6874           This fixes the nickname change bug on channel when changing
6875           the nickname to be same than the old (like nick to Nick) the
6876           nickname formatter doesn't set the new nick anymore to Nick@host.
6877           Affected file lib/silcclient/idlist.[ch].
6878
6879         * Now actually fixed the nickname changing on disconnection.
6880           Added new function silc_change_nick to the Irssi SILC Client.
6881           Affected file irssi/src/silc/core/client_ops.c,
6882           irssi/src/silc/core/silc-nicklist.[ch].
6883
6884 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6885
6886         * Check that the public key exists in the GETKEY command before
6887           trying to encode it.  Affected file silcd/command.c.
6888
6889         * Print some notifications on received public keys with GETKEY
6890           command in the Irssi SILC Client.  Affected files are
6891           irssi/src/fe-common/silc/module-formats.[ch],
6892           irssi/src/silc/core/client_ops.c.
6893
6894         * Use IDENTIFY command to resolve the server information in the
6895           GETKEY command instead of INFO command.  Affected file
6896           lib/silcclient/command.c.
6897
6898         * All command reply functions in the client library now calls
6899           the pending command reply callbacks even if an error has
6900           occurred.  The server has done this a long time and now it was
6901           time to move the client library to this as well.  Now all
6902           errors can be delivered back to the pending command reply
6903           callbacks if necessary.  Affected files are
6904           lib/silcclient/command[_reply].[ch].
6905
6906         * Change the nickname on disconnection back to the username
6907           because in reconnect the server will enforce it to it anyway.
6908           Affected file irssi/src/silc/core/silc-servers.c.
6909
6910         * Fixed a config file parsing bug in the Irssi SILC client.
6911           Affected file irssi/src/silc/core/clientconfig.c.
6912
6913 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6914
6915         * When printing the channel mode on JOIN, verify that the
6916           channel key and channel's HMAC are valid.  Affected file
6917           irssi/src/silc/core/client_ops.c.
6918
6919 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6920
6921         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
6922           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
6923           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
6924
6925         * Removed channel key rekey task deleting from the function
6926           silc_server_save_channel_key.  Affected file silcd/server.c.
6927           Added explicit timeout task context instead that is used to
6928           delete the task if we are registering a new task before the
6929           new task has elapsed.
6930
6931         * When channel key rekey occurs the client library now saves
6932           the old channel key for a short period of time (10 seconds) and
6933           is able to use it in case some is still sending channel
6934           messages encrypted with the old key after the rekey.  Affected
6935           file lib/silcclient/[idlist.h|client_channel.c].
6936
6937 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6938
6939         * Added check to the silc_server_new_id_real to not accept
6940           new ID if it is the sender's own ID.  Affected file is
6941           silcd/packet_receive.c.
6942
6943         * Assure that we do not announce ourself or the one we've
6944           sending our announcements when we're router and are announcing
6945           servers to our primary router.  Affected file silcd/server.c.
6946
6947         * Fixed silc_server_command_identify_check_client to assemble
6948           correct WHOIS packet.  It send corrupted WHOIS packet and
6949           caused problem with router to router connections.  Affected
6950           file silcd/command.c.
6951
6952           Fixed also silc_server_command_whois_check the same way
6953           as for the IDENTIFY command.
6954
6955         * Added new SilcIDListStatus to the server in the SilcIDListData
6956           structure.   The status now includes the current status of
6957           the entry (like registered, resolved etc.).  Affected file
6958           silcd/idlist.[ch].  Defined a bunch of different status types
6959           as well.  This replaced the old boolean registered field as well.
6960
6961           Added resolve_cmd_ident field to the SilcClientEntry structure
6962           too so that if the entry is for example being resolved so
6963           another command may attach to the same pending command reply
6964           without requiring to resolve the same entry again.  This concept
6965           should optimize the WHOIS and the IDENTIFY resolving under
6966           heavy load by taking away unnecessary resolving for entries
6967           that are being resolved already.
6968
6969           Added support for adding multiple pending commands for one
6970           command idenfier.  Affected file silcd/command[_reply].[ch].
6971
6972         * Fixed WHOIS and IDENTIFY save to remove the cache entry
6973           before deleting the data.  Otherwise the hash table will have
6974           freed data in comparison functions.  Affected file is
6975           silcd/command_reply.c.
6976
6977         * Fixed silc_idlist_replace_client_id to add the new entry to
6978           the cache with NULL nickname.  Otherwise there will be invalid
6979           memory as the nickname after the nickname is freed.  Affected
6980           file silcd/packet_receive.c.
6981
6982         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
6983           saved into wrong slots because the previous number of entries
6984           was not taken into account.  Affected file silcd/idlist.c.
6985           Fixed same thing in silc_idlist_get_clients_by_nickname too.
6986
6987         * If we are router and we receive JOIN notify to a channel that
6988           does not have any users then notified client is marked as the
6989           channel founder, as it is it.  The affected file is
6990           silcd/packet_receive.c
6991
6992         * Added to the extended hash table API's table_del_*ext functions
6993           the destructor as argument too, so that the caller can decide
6994           which destructor to use or whether to use destructor at all.
6995           Affected file lib/silcutil/silchashtable.[ch].
6996
6997         * Fixed ID Cache purging.  It actually deleted the entries from
6998           the hash table after the data was freed.  The hash table ended
6999           up comparing freed memory.  The affected file is
7000           lib/silccore/silcidcache.c.
7001
7002 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7003
7004         * Fixed Irssi SILC client's KILL command's HELP syntax.
7005
7006         * The USERS command now resolves the detailed user information
7007           if the userinfo field is missing.  Affected file is
7008           lib/silcclient/command_reply.c.
7009
7010         * Do not print error in silc_file_read if the read file does
7011           not exist.  Just silently return NULL.  Affected file is
7012           lib/silcutil/silcutil.c.
7013
7014         * Fixed the silc_log_output to not wine about NULL filename
7015           and to not create some bogus " " filename.  Affected file is
7016           lib/silcutil/silclog.c.
7017
7018 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7019
7020         * Fixed various printing bugs on the user interface in the
7021           Irssi SILC Client.  Minor changes that were forgotten from
7022           the release.
7023
7024 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7025
7026         * Fixed the configure.in.pre and the compilation and distribution
7027           environment to support the new autoconf 2.52.  That version is
7028           now required to compile the CVS trunk.
7029
7030 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7031
7032         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7033           to generally parse user@fqdn format strings.  Affected file
7034           lib/silcutil/silcutil.c.
7035
7036         * Added nickname_format and nickname_force_format fields to the
7037           SilcClientParams structure.  The first one defines the format
7038           for the nicknames that the library will enforce if the receives
7039           multiple same nicknames.  The second one is boolean value and
7040           can be used to force the library to always enforce the format
7041           to the nicknames regardles whether there are multiple nicknames
7042           or not.  This configurable formatting was employed to flexibly
7043           support accessing multiple nicknames from the user interface.
7044           The userinterface can now set the nicknames to what ever format
7045           they prefer.  Affected file lib/silcclient/silcapi.h.
7046
7047           Added function silc_client_nickname_format to the file
7048           lib/silcclient/idlist.c.  It performs the nickname formatting.
7049
7050           Added new field `hostname´ to the SilcClientEntry context.
7051           It holds the hostname of the client.  Affected file is
7052           lib/silcclient/idlist.h.
7053
7054         * Irssi SILC Client sets the nicknames in nick@hostn format.
7055           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7056           irssi/src/silc/core/silc-core.c.
7057
7058           The WHOIS printing now also shows both the real nickname and
7059           the formatted nickname so that user knows how to access the
7060           user if there are multiple same nicknames cached.  Affected
7061           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7062           printing formatting too to take the hostname now as a separate
7063           argument.  The Affected file is
7064           irssi/src/fe-common/silc/modules-formats.[ch].
7065
7066         * Changed the silc_client_get_clients_local to accept the formatted
7067           nickname as argument.  It accepts the real nickname too but the
7068           formatted nickname can be used to find the true entry from
7069           multiple entries.  Affected file lib/silcclient/silcapi.h and
7070           lib/silcclient/idlist.c.
7071
7072         * Added nickname_format_parse field to the SilcClientParams.
7073           It is a callback function provided by the application to parse
7074           the nickname out of the formatted nickname string. The library
7075           calls it to get the nickname from the formatted string. Since
7076           the application generally knows better the format of the nickname
7077           string it parses it instead of the library, even though library
7078           encodes the formatted string.  If the callback function is not
7079           provided then the library will use the string as is.  The
7080           affected file is lib/silcclient/silcapi.h.
7081
7082         * All the nickname strings passed to the client library in
7083           commands are now expected to be formatted nickname strings.
7084           If the command does not support the formatted nickname string
7085           it will assume that the sent string is the actual nickname.
7086           Affected file lib/silcclient/command.c.
7087
7088 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7089
7090         * Added public key authentication support to OPER and SILCOPER
7091           commands in the client library.  Affected file is
7092           lib/silcclient/command.c.
7093
7094 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7095
7096         * Changed the get_auth_methdod client operation to be asynchronous.
7097           It can be async if the application resolves the authentication
7098           method from the server during the negotiation.  Added new
7099           SilcGetAuthMeth completion callback that the application will
7100           call after resolving the authentication method.
7101
7102           Added function silc_client_request_authentication_method that
7103           the application can use to resolve the authentication method
7104           from the server.  Added also SilcConnectionAuthRequest callback
7105           that the library will call after the server has replied.  The
7106           application can call this function if it does not know the
7107           current authentication method.
7108
7109           Affected files are lib/silcclient/client.c and
7110           lib/silcclient/silcapi.h.
7111
7112         * The Irssi SILC client now automatically resolves the authentication
7113           method incase any configuration information is not present (and
7114           currently there never is).  The affected file is
7115           irssi/src/silc/core/client_ops.c.
7116
7117         * Fixed public key authentication from the client library.
7118           Affected file lib/silcclient/protocol.c.  Changed also the
7119           protocol specification about the public key authentication in
7120           the connection authentication protocol.  The actual data to be
7121           signed is now computed with a hash function before signing.
7122
7123         * Fixed the public key authentication from the server as well.
7124           Affected file silcd/protocol.c.
7125
7126         * Removed the mlock()'s from the memory allocation routines.
7127           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7128           not check anymore for the mlock().  Affected file is
7129           configure.in.pre.
7130
7131         * Fixed USERS command in server to allow the execution of the
7132           command for private and secret channels if the client sending
7133           the command is on the channel.  Affected file silcd/command.c.
7134
7135         * Fixed silc_client_get_clients_local to return the clients
7136           count correctly.  It could return wrong value.  Affected file
7137           lib/silcclient/idlist.c.
7138
7139 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7140
7141         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7142           types.  The assembler optimizations seemed not to like 64-bit
7143           data types.  The assmebler optimizations thus are now enabled
7144           also for BSD systems as opposed to only enable them for Linux.
7145
7146         * Do not check for threads at all on BSD systems.  Affected
7147           file configure.in.pre.
7148
7149         * Removed -n and -h options from the Irssi SILC Client since
7150           they are not used in silc.
7151
7152         * Fixed the prime generation to assure that the first digit
7153           of the generated random number is not zero since our conversion
7154           routines does not like number strings that starts with zero
7155           digit.  If zero digit is seen the random number is regenerated.
7156           This caused some corrupted RSA keys when the zero first digit
7157           was met.  Affected file lib/silcmath/silcprimegen.c.
7158
7159 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7160
7161         * Fixed WIN32 configuration in the ./configure script.
7162           Fixed to include xti.h on environments that has it.
7163           Patches by Carsten Ilchmann and andrew.
7164
7165 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7166
7167         * Changed the silc_id_create_client_id to be collision
7168           resistant.  It is now assured that there cannot be created
7169           two same client ID's.  I suspect that some weird bugs in
7170           the server were actually caused by duplicate Client IDs.
7171           Affected file silcd/serverid.[ch].  A router receiving
7172           new ID now also assures and informs the sending server
7173           if the ID caused collision.
7174
7175         * Changed the silc_id_create_channel_id to also assure that
7176           there are no collisions.
7177
7178 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7179
7180         * Statement about ignoring the Mutual Authentication flag when
7181           performing rekey with PFS was a bit misleading.  It is ignored
7182           if it was set in the initial negotiation, it cannot be even
7183           set in the rekey.  Fixed in the ke-auth draft.  Started the
7184           new versions of the protocol drafts in the doc/.
7185
7186 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7187
7188         * Fixed a bug in silc_client_command_identify_save when saving
7189           new channel information.  The channel name was no duplicated
7190           and caused crash on exit.  Affected file is
7191           lib/silcclient/command_reply.c.
7192
7193 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7194
7195         * Fixed the getkey command handling in the server.  Send just
7196           empty OK reply to the sender if the key could not be fetched
7197           (but everything else was ok, like the key just was not available).
7198           Changed the public key parameter to optional in the protocol
7199           specs so that empty OK reply can be sent.  Affected file
7200           silcd/command.c.
7201
7202           Added a message to Irssi SILC client to tell to user if the
7203           server did not return a public key.
7204
7205 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7206
7207         * Fixed a channel key regeneration bug.  It registered new
7208           timeout tasks exponentially until all system resources were
7209           used.  Affected file silcd/server.c.
7210
7211 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7212
7213         * Added the SILC Document generator to the scripts/silcdoc.
7214           It can be used to generate the Toolkit Reference Manual out
7215           of the source tree.  Internally it will also use the RoboDoc
7216           generator now imported in util/robodoc.
7217
7218 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7219
7220         * Added couple of return's in rekey protocol if error orccurred
7221           during the protocol.  The execution must be terminated.
7222           Affected file silcd/protocol.c.  Also, terminate the protocol
7223           always with timeout.
7224
7225 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7226
7227         * The client's Client ID was created initally from the wrong
7228           nickname (it could have been in format nick@host) in the
7229           silc_server_new_client.  Affected file silcd/packet_receive.c
7230
7231 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7232
7233         * Added some SILC_LOG_ERROR's to various error conditions
7234           if client could not be added to ID cache.  Affected files
7235           silcd/packet_receive.c and silcd/server.c.
7236
7237         * When client's sock->user_data is freed, NULL also the
7238           client->router and client->connection pointers.  Added check
7239           for these pointers being NULL to various places around the
7240           code.  Affected file silcd/server.c.
7241
7242         * Added client->data.registered == TRUE checks to various
7243           places around the code to assure that unregistered client's
7244           are not handled when it is not allowed.  Affected file
7245           silcd/server.c.
7246
7247         * Added `bool registered' fields to all
7248           silc_idlist_[server|client]_get_* routines to indicate whether
7249           the fetched client needs to be registered or not.  Affected
7250           file silcd/idlist.[ch].
7251
7252         * Add your own entry as registered to the ID cache in the
7253           server.  Affected file server.c.
7254
7255         * Fixed a bug in silc_server_new_server.  The SilcServer was
7256           set as the new server's context instead of SilcServerEntry.
7257           This naturally caused some weird bugs.
7258
7259         * Added "updated" field the SilcChannelEntry which indicates
7260           the time since the channel entry was last accessed.  This
7261           can be used to determine whether it is necessary to
7262           announce the channel after backup resuming protocol.
7263           Affected files silcd/idlist.[ch].
7264
7265 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7266
7267         * Do not delete the channel rekey task when adding it
7268           for in silc_server_create_channel_key.
7269
7270         * Changed the silc_server_create_channel_key to return
7271           TRUE or FALSE to indicate the success of the channel key
7272           creation.
7273
7274 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7275
7276         * Fixed MSVC++ project files and added missing files to
7277           Makefiles under win32/.
7278
7279 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7280
7281         * Do not add TCP_NODELAY flag if the operating system
7282           does not have it defined.  Affected files are
7283           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7284
7285         * Fixed buffer overflow from Irssi SILC Client.  Affected
7286           file irssi/src/fe-common/core/themes.c.
7287
7288         * Fixed double free in client library in the file
7289           lib/silcclient/client.c when disconnecting from server.
7290
7291         * Applied double free patch from cras to Irssi SILC client.
7292           Affected files irssi/src/core/[modules/expandos].c
7293
7294         * Fixed the disconnection handling to Irssi SILC Client.
7295           The application must call silc_client_close_connection
7296           in ops->connect client operation in case of failure of
7297           the connection.  Affected file is
7298           irssi/src/silc/core/client_ops.c.
7299
7300         * Do not set sock->protocol to NULL in the function
7301           silc_client_close_connection after executing the protocol's
7302           final callback since the sock might not be valid anymore.
7303           Affected file lib/silcclient/client.c.
7304
7305 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7306
7307         * Do not enable SILC_THREADS if the linking with libpthread
7308           did not happen.  Affected file configure.in.pre.
7309
7310         * Added notion to protocol specification that server must
7311           verify the sent authentication payload with CMODE when
7312           setting the channel founder key.  Implemented it to the
7313           server.  Affected file silcd/command.c.
7314
7315 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7316
7317         * Added _EXTRA_DIST SILC distribution variable to the
7318           distributions file.  It is used to conditionally add extra
7319           files or directories to the specific distribution.  Affected
7320           files ./prepare, Makefile.am.pre and distributions.
7321
7322           Removed the `_' from the start of the distribution names.
7323           It is redundant.
7324
7325         * Added README.WIN32 for instructions to compile the Toolkit
7326           under WIN32.
7327
7328 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7329
7330         * Fixed a double free in disconnection in the server.  Affected
7331           file is silcd/server.c.
7332
7333         * Fixed the lib/silcske/groups.c to work now also with GMP
7334           MP library.  The string conversion did not work when using
7335           specific base and the base is indicated in the string as well.
7336
7337         * Created win32/ directory which now includes MSVC++ specific
7338           stuff so that toolkit (DLLs) may be compiled with MSVC++.
7339           It will appear only in the toolkit distribution
7340
7341 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7342
7343         * Changed the key material distribution function in case when
7344           the hash output is too short.  The data is now concatenated
7345           a bit differently than it used to.  Made the change to the
7346           SKE protocol specification.
7347
7348         * Added better GMP detection to configure.in.pre.  A patch
7349           by salo.
7350
7351 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7352
7353         * Fixed a minor bug in SKE that might cause some problem on
7354           some platforms.  Affected file lib/silcske/silcske.c.
7355
7356         * Added the cookie checking for initiator in the SKE.  It checks
7357           that the responder returns the sent cookie unmodified.  The
7358           affected file is lib/silcske/silcske.c.  Added new SKE
7359           error type INVALID_COOKIE that can be sent during the
7360           negotiation.  Fixed some memory leaks as well.
7361
7362         * Added the "invalid cookie" error message to Irssi SILC client's
7363           message formats.
7364
7365 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7366
7367         * Added `task_max' field to the SilcClientParams to indicate
7368           the maximum tasks the scheduler can handle.  If set to zero,
7369           default values are used.  Affected file lib/silcclient/silcapi.h.
7370
7371         * Fixed memory leaks in silc_client_close_connection.  Affected
7372           file lib/silcclient/client.c.
7373
7374         * Added silc_client_del_client_entry to client library to free
7375           all memory of given client entry.  Affected file is
7376           lib/silcclient/idlist.[ch].
7377
7378         * Added new functions silc_client_del_channel and
7379           silc_client_del_server to delete channel and server entries.
7380           Affected file lib/silcclient/[silcapi.h/idlist.c].
7381
7382         * Removed silc_client_del_client_by_id from silcapi.h.
7383
7384         * Fixed the INFO command to return the server's own info
7385           correctly when querying by Server ID.  Affected file is
7386           silcd/command.c.
7387
7388 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7389
7390         * Removed the non-blocking settings in WIN32 code in the
7391           silc_sock_[read/write] and added SleepEx instead.  Affected
7392           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
7393           of input data is now checked with FIONREAD and ioctlsocket.
7394
7395 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7396
7397         * Call silc_schedule_task_del_by_context in the
7398           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
7399           Affected file lib/silccore/silcprotocol.c.
7400
7401         * Call silc_protocol_cancel for active protocols in the
7402           silc_server_close_connection if the funtion
7403           silc_server_free_sock_user_data has not been called.
7404           Affected file silcd/server.c.
7405
7406         * Generic tasks cannot be deleted using the del_by_fd
7407           task deleting function since generic tasks does not match
7408           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
7409
7410         * Added a notion to SILCOPER help file that the SILCOPER works
7411           only on router server, not on normal server.
7412
7413 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7414
7415         * Added for WIN32 support for the new scheduler as well.
7416           Affected file lib/silcutil/win32/silcwin32schedule.c.
7417
7418         * Fixed the SHA1 implementation to work on various platforms.
7419
7420 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7421
7422         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
7423           API.  It is part of the scheduler now.  Everything else is
7424           as previously but some functions has changed their names.
7425           Checkout the lib/silcutil/silcschedule.h for the interface.
7426           Updated all applications to use the new interface.  Affected
7427           files are lib/silcutil/silcschedule.[ch].
7428
7429 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7430
7431         * Found a bug in the SKE implementation.  The HASH value,
7432           specified by the protocol, was not computed correctly.  The
7433           public key of the responder was not added to the computation
7434           even though it is mandatory.  Affected file lib/silcske/silcske.c.
7435           This unfortunately causes incompatibilities with older
7436           clients and servers.
7437
7438         * Added WIN32 specific network init and uninit functions:
7439           silc_net_win32_init and silc_net_win32_uninit to init and uninit
7440           the Winsock2.  Affected file lib/silcutil/silcnet.h and
7441           lib/silcutil/win32/silcwin32net.c.
7442
7443         * Set the socket always to nonblocking mode on WIN32 after
7444           reading data or writing data.  Affected file is
7445           lib/silcutil/win32/silcwin32sockconn.c.
7446
7447 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7448
7449         * Fixed various compilation problems under WIN32.  Affected
7450           files lib/silcutil/win32/silcwin32thread.c and
7451           lib/silcutil/win32/silcwin32schedule.c.
7452
7453         * Removed all _internal.h #includes from public header
7454           files.  Internal headers must never be included from
7455           public headers.
7456
7457           Removed also the lib/silcske/payload_internal.h file.
7458
7459         * All include files that may be needed (public and some others
7460           included by the public headers) by application developers are
7461           now copied to the ./includes directory.  It does not copy any
7462           internal headers.  Affected file Makefile.defines.pre and all
7463           Makefile.am's under lib/ and subdirs.
7464
7465 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7466
7467         * Do not change the ~/.silc directory's permissions automatically.
7468           Affected file irssi/src/silc/core/clientutil.c.
7469
7470 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7471
7472         * Do not cancel the protocol in silc_server_close_connection
7473           it might cause recursion.  Now cancelled in the function
7474           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7475
7476         * Fixed the silc_server_remove_clients_by_server to regenerate
7477           the channel keys correctly finally.  Added also new function
7478           silc_server_remove_clients_channels to actually do it.
7479           Affected file silcd/server.c.
7480
7481         * Fixed the silc_server_new_channel to not crash by giving
7482           wrong router to the new channel.  Affected file is
7483           silcd/packet_receive.c.
7484
7485 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7486
7487         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7488           which is given as argument to the silc_client_alloc now.
7489           It can be used to configure the client and set various parameters
7490           that affect the function of the client.
7491
7492         * The USERS command in server did not check whether the channel
7493           is private or secret.  Affected file silcd/command.c.
7494
7495         * Added new argument to the USERS command in protocol specification.
7496           The USERS command now can take the channel name as argument
7497           as well.  Added support for this in client and server and
7498           updated the protocol specs.
7499
7500         * Completed the GETKEY command in client. It can be now used
7501           to fetch also servers public key not only some clients.
7502           Affected files lib/silcclient/command[_reply].c.
7503
7504         * Added silc_client_get_server to return server entry by the
7505           server name.  Affected files lib/silcclient/silcapi.h and
7506           idlist.c.
7507
7508         * Redefined the IDENTIFY command in protocol specification to be
7509           more generic.  It now can be used to query information about
7510           any entity in the SILC Network, including clients, servers and
7511           channels.  The query may be based either the entity's name
7512           or the ID.  Added support for this in both client and server.
7513
7514           Affected files silcd/command.c and lib/silcclient/command.c
7515           and command_reply.c.
7516
7517         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7518           the _from_client and _from_server functions.  Affected file
7519           silcd/command.c.
7520
7521         * Added silc_client_get_channel_by_id_resolve to the file
7522           lib/silcclient/silcapi.h to resolve channel information by
7523           its ID.  Added also silc_client_get_channel_by_id that
7524           does not resolve it from the server.
7525
7526 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7527
7528         * Added SilcServerEntry context into the client library
7529           to represent one server.  The INFO command now allocates
7530           these to save the resolved server info.  For now on the
7531           client library will also keep information about servers,
7532           connected and resolved with INFO.
7533
7534           The INFO command now allocates the SilcServerEntry context
7535           and saves the server info there.  The COMMAND_REPLY in
7536           the INFO now returns the parameters to application in
7537           same order as defined in the protocol specification.
7538
7539           The entries are cached in the client->server_cache.
7540
7541         * The INFO command is now issued after received the Client ID
7542           from the server.  Affected file lib/silcclient/client.c.
7543
7544         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7545           to the application as the mode changer might be server.
7546           It is guaranteed that NULL is not returned anymore to the
7547           application.  Affected file lib/silcclient/client_notify.c.
7548
7549           The ID Type is now also passed to the application so that
7550           it can check whether the returned entry is SilcClientEntry
7551           or SilcServerEntry.
7552
7553           Added new function silc_client_get_server_by_id to return
7554           the server entry by ID.  Affected files are the
7555           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7556
7557         * Do not create the channel in the Irssi SILC Client when issuing
7558           the JOIN command but when received the sucessful JOIN command
7559           reply.  Otherwise the channel might get created even though we
7560           could not join it.  The Affected file is
7561           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7562
7563         * Fixed a channel joining bug in router.  The router must also
7564           check the channel modes, invite and ban lists etc. when serving
7565           the JOIN command sent by normal server.  Affected file is
7566           silcd/command.c.  The router now resolves the client's
7567           information from the server who sent the JOIN command if it
7568           does not know it, and processes the JOIN command only after
7569           that.
7570
7571         * Changed the SilcCommandCb to take new argument; void *context2.
7572           Affected file lib/silccore/silccommand.h
7573
7574           The second argument in the command callbacks in the server now
7575           includes the SilcServerCommandReplyContext if the command was
7576           called as pending command callback from the command reply.
7577           Otherwise it is NULL. When called as pending the status of the
7578           command reply will be checked and if it was erronous the
7579           error will be sent to the original sender of the command.
7580           This way the client always receives the error messages even
7581           though the server was actually the one who received the error
7582           when it resent the command to router, for example.  Affected
7583           files silcd/command[_reply].[ch].
7584
7585         * Fixed sending WHOWAS command's error message to client if
7586           the requested client could not be found.  It was missing.
7587           silcd/command.c.
7588
7589         * Changed the CMODE and CUMODE commands reply arguments in the
7590           protocol specification.  The Channel ID is now sent in both
7591           of the commands to identify the channel.  Implemented this
7592           new feature to the client and server.  Affected files
7593           lib/silcclient/command_reply.c and silcd/command.c.
7594
7595         * Made better checks for invite and ban lists in the JOIN
7596           command in server.  Affected file silcd/command.c.
7597
7598 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7599
7600         * The server now performs the incoming host IP/DNS lookup
7601           using the silc_socket_host_lookup and thus does not block
7602           the server anymore.  Affected file silcd/server.c.
7603
7604         * Completed the multi-thread support for SILC Scheduler in
7605           the lib/silcutil/silcschedule.c.
7606
7607         * Fixed the configure.in.pre to detect the pthread correctly
7608           on various systems.
7609
7610         * Fixed a deadlock in silc_task_queue_wakeup in the file
7611           lib/silcutil/silctask.c.
7612
7613 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7614
7615         * Added new function silc_schedule_wakeup that is used in
7616           multi-threaded environment to wakeup the main thread's
7617           schduler. It needs to be used when a thread adds a new task
7618           or removes a task from task queues. After waking up, the
7619           scheduler will detect the task queue changes. If threads
7620           support is not compiled in this function has no effect.
7621           Implemented the wakeup mechanism to both Unix and WIN32
7622           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7623           lib/silcutil/unix/silcunixschedule.c and the
7624           lib/silcutil/win32/silcwin32schedule.c.
7625
7626         * Added new function silc_task_queue_wakeup to wakeup the
7627           scheduler by the specified task queue.  Affected file
7628           lib/silcutil/silctask.[ch].
7629
7630         * The silc_socket_host_lookup_start now wakes up the scheduler
7631           after adding the timeout task.  Affected file is
7632           lib/silcutil/silcsockconn.c.
7633
7634         * The silc_socket_host_lookup is synchronous now if the threads
7635           support is not compiled in.  However, the callback is still
7636           called asyncronously through the scheduler, anyway.  Affected
7637           file lib/silcutil/silcsockconn.c.
7638
7639 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7640
7641         * Added new function silc_socket_host_lookup to perform
7642           asynchronous IP and FQDN lookups for the socket connection.
7643           Affected files lib/silcutil/silcsockconn.[ch].
7644
7645 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7646
7647         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7648           that may or may not compile the mutex support in.
7649
7650           Changed the silc_mutex_alloc interface. It allocates the
7651           mutex now to the sent pointer and returns TRUE or FALSE.
7652
7653           Affected file lib/silcutil/silcmutex.h.
7654
7655         * Wrote the SILC Task Queue interface to support multi-threads.
7656           Affected file lib/silcutil/silctask.[ch].
7657
7658         * Wrote the SILC Scheduler to support multi-threads.  Affected
7659           file lib/silcutil/silcschedule.c.
7660
7661 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7662
7663         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7664           in lib/silcutil/win32/.
7665
7666 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7667
7668         * Defined SILC Mutex API and SILC Thread API and implemented
7669           them for Unix.  Affected files are
7670           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7671           lib/silcutil/unix/silcunixmutex.c and
7672           lib/silcutil/unix/silcunixthread.c.
7673
7674 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7675
7676         * Fixed the silc_server_remove_clients_by_server's channel
7677           key re-generation.  The hash table handling was incorrect
7678           and would not work with many channels.  Affected file is
7679           silcd/server.c.
7680
7681         * Fixed some memory leaks around the server code.
7682
7683         * Rewrote the silc_server_get_users_on_channel to support IPv6
7684           based Client ID's.  Affected file silcd/server.c.
7685
7686         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7687           specification.  However, a separate document must be written
7688           to define the detailed signing procedure and the payload
7689           associated with the flag.  Defined the flag to the
7690           lib/silccore/silcchannel.h as well.
7691
7692 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7693
7694         * Changed the dynamic tables to static size tables in the
7695           lib/silccrypt/silchmac.c.
7696
7697         * Removed GCC dependencies from the code.  A patch by cras.
7698
7699 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7700
7701         * Do not show the error "Error receiving packet bla bla"
7702           in server if it really was not an error (-2 means that reading
7703           is pending).  Affected file silcd/server.c.
7704
7705 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7706
7707         * Fixed a possible crash in silc_server_remove_clients_by_server
7708           in silcd/server.c.  Fixed there also some memory leaks.
7709
7710         * Fixed the silc_idlist_replace_client_id.  It could replace
7711           wrong key in the hash table.  Affected file silcd/idlist.c.
7712
7713         * Do not check whether there are global users on the channel
7714           if the channel->global_users is FALSE.  Affected functions
7715           silc_server_remove_from_one_channel and
7716           silc_server_remove_from_channels in silcd/server.c.  Also,
7717           do not check if the removed client is local as we can be
7718           sure that global client was not removed from the channel
7719           and checking for global users is not needed.
7720
7721         * The silc_server_remove_clients_by_server now re-generates
7722           the channel keys correctly for those channels that had
7723           clients removed from them.  Affected file silcd/server.c.
7724
7725 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7726
7727         * Found the reason of random crashes in the server.  We weren't
7728           ignoring the SIGPIPE signal (which can be sent in write())
7729           and it crashed the server.  Affected file silcd/silcd.c.
7730
7731 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7732
7733         * Assure that sock->user_data is not NULL in the function
7734           silc_server_packet_send in silcd/packet_send.c.
7735
7736         * Disconnect the remote connection if it could not be added
7737           to any ID lists in the server.  The affected file is
7738           silcd/server.c.
7739
7740         * Check in silc_server_packet_send[_real/dest] that the
7741           socket is not disconnecting and ignore the data if it is.
7742           Affected file silcd/packet_send.c.
7743
7744         * Define inline to __inline on native WIN32 compilation.
7745           Affected file includes/silcwin32.h.
7746
7747         * Added some explicit type casts for inline code since MSVC
7748           require them.  Affected files lib/silcutil/silcbuffer.h,
7749           lib/trq/silcdlist.h and lib/trq/silclist.h.
7750
7751         * Print warning in log files from now on if the packet
7752           decryption fails.  Affected file silcd/server.c.
7753
7754 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7755
7756         * Changed the `say' client operation's interface to accept
7757           new `type' argument to indicate the type of the message sent
7758           by the library.  The application may filter the library's
7759           messages according the type.  The affected file is the
7760           lib/silcclient/silcapi.h.
7761
7762         * Added two new functions to lib/silcclient/silcapi.h:
7763           silc_client_del_client and silc_client_del_client_by_id.
7764           Affected file lib/silcclient/idlist.c.
7765
7766         * Moved the clientincludes.h from includes/ to silc/ and
7767           serverincludes.h from includes/ to silcd/.
7768
7769         * The modes for the CMODE and CUMODE are now passed as
7770           uint32 for application with COMMAND_REPLY.  The affected
7771           file is lib/silcclient/command_reply.c.
7772
7773 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7774
7775         * /WHOIS without arguments shows client's own information.
7776           Affected file lib/silcclient/command.c.
7777
7778         * Changed PING to not accept any arguments.  The specs
7779           says that client can ping only the connected server so
7780           requiring an argument is not needed.  Affected file is
7781           lib/silcclient/command.c.
7782
7783 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7784
7785         * Fixed a fatal bug in private message sending and reception
7786           encryption and decryption when using private message keys.
7787           The implementation was incorrect and did not follow the
7788           specification.  It causd that some of the message were
7789           lost since it did not use the sending and receiving keys
7790           as the protocol suggests.  This has been fixed and will cause
7791           incompatibilities with older clients when sending private
7792           message encrypted with private message keys.  Affected files
7793           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
7794           and various other in Irssi SILC Client.
7795
7796           Added `responder' boolean argument to the functions
7797           silc_client_add_private_message_key[_ske] to indicate when
7798           the key is added as responder or initiator of the key
7799           negotiation.
7800
7801 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7802
7803         * Removed the silc_ske_check_version function and created
7804           a SilcSKECheckVersion callback.  Added also a function
7805           silc_ske_set_callbacks that is now used to set all SKE
7806           callbacks.  The callback functions are not given to
7807           the SKE functions anymore, but this function is used to
7808           set the callbacks.
7809
7810         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
7811
7812         * Added `silc_version' argument to the silc_client_alloc
7813           to define the version of the application for the library.
7814           The library will use the version string to compare it
7815           against the remote host's (usually a server) version
7816           string.  Affected file lib/silcclient/silcapi.h
7817
7818         * Added the KE protocol context to Key Agreement context
7819           in client library so that we can abort the SKE if it
7820           is in process when we get timeout.  Affected file is
7821           lib/silcclient/client_keyagr.c.
7822
7823         * Do not resolve the client ID forever if it returns in the
7824           first time that such client does not exist.  This was done
7825           for example with private message.  Affected file is
7826           lib/silcclient/client_prvmsg.c.
7827
7828 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7829
7830         * Do not add regex.h for WIN32.  The affected file
7831           includes/silcincludes.h.
7832
7833         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
7834           not work yet 100%.  It generates the DLL's automatically
7835           when compiling with --with-win32 under cygwin.
7836
7837 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7838
7839         * lib/contrib/regex.c is not compiled on WIN32.
7840
7841         * Added silc_net_get_socket_opt function to the
7842           lib/silcutil/silcnet.h.
7843
7844         * Added includes/silcwin32.h for WIN32 specific includes
7845           and definitions.
7846
7847         * Do not use ptime structure or any of the posix process
7848           functions on WIN32 in lib/silccrypt/silrng.c.
7849
7850         * Added silc_gettimeofday to provide generic function
7851           for struct timeval on all platforms.  Added the function
7852           to lib/silcutil/silcutil.h.
7853
7854 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7855
7856         * Moved the lib/silccore/silcsockconn.[ch] to the utility
7857           library as they clearly belong there.  As a plus side we
7858           can make the actual socket connection routines platform
7859           specific.
7860
7861           Added also new generic function silc_socket_read and
7862           silc_socket_write (that used to be silc_packet_[read/write].
7863           The implementation of these are platform specific.
7864
7865         * Added WIN32 specific routines of silc_socket_[read/write]
7866           to lib/silcutil/win32/silcwin32sockconn.c.
7867
7868 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7869
7870         * Added preliminary support for native WIN32 compilation under
7871           cygwin (using the -mno-cygwin option for GCC) to the
7872           ./configure.in.pre.  The --with-win32 now prepares the
7873           compilation for native WIN32.
7874
7875         * Rewrote the SILC Scheduler interface in the file
7876           lib/silcutil/silcschedule.h.  The scheduler is now context
7877           based and does not have anymore any global static scheduler.
7878           Moved the Unix scheduler to the lib/silcutil/unix/ directory
7879           and created lib/silcutil/win32 directory for WIN32 based
7880           scheduler.
7881
7882         * Added Unix specific network routines to the
7883           lib/silcutil/unix/silcunixnet.c and the old
7884           lib/silcutil/silcnet.c includes now only generic routines.
7885
7886           Added WIN32 specific network routines to the
7887           lib/silcutil/win32/silcwin32net.c.
7888
7889         * Added Unix specific utility functions from the
7890           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
7891
7892         * Added WIN32 SILC Scheduler to the file
7893           lib/silcutil/win32/silcwin32schedule.c. The code is of course
7894           untested.
7895
7896 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7897
7898         * Do not handle JOIN notify in the server if the target client
7899           is not registered (idata->registered == FALSE).  The affected
7900           file is silcd/packet_receive.c.
7901
7902         * Update the nickrec->founder in event_cumode in the Irssi SILC
7903           client.  Affected file irssi/src/silc/core/silc-channels.c.
7904
7905         * Fixed the CUMODE_CHANGE notify handling in the server when
7906           server and router are announcing their clients on channels.
7907           Now the mode changes are saved and notified correctly.  The
7908           affected file is /silcd/packet_receive.c.
7909
7910         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
7911           They really did not replace the cache entry in the ID Cache.
7912           Now they do that.  Affected file silcd/idlist.c.
7913
7914         * Fixed the KICK notify handling in the Irssi SILC client to
7915           update the channel records so that the kicked client does not
7916           appear to be on the channel.  The affected file is
7917           irssi/src/silc/core/silc-channels.c.
7918
7919         * Always update the conn->current_channel when executing command
7920           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
7921
7922         * Fixed the KILL notify handling in Irssi SILC client to remove
7923           the killed client on all channels.
7924
7925 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7926
7927         * Fixed the silc_parse_command_line to remove extra spaces
7928           from the start and end of the arguments.  Affected file is
7929           lib/silcutil/silcutil.c.
7930
7931         * Cancel and free any active protocol in the function
7932           silc_server_close_connection.  Affected file silcd/server.c.
7933
7934         * Cancel and free any active protocol in the function
7935           silc_client_close_connction.  Affected file is
7936           lib/silcclient/client.c.
7937
7938         * Do not execute the KILL command for clients that are in
7939           history (ie. they are not in the network).  Affected file is
7940           silcd/command.c.
7941
7942         * Fixed KILL notify handling, client does not crash anymore.
7943           Affected file irssi/src/silc/core/silc-channels.c.
7944
7945         * Reduced the default packet buffer size from 2048 to 1024 in
7946           lib/silccore/silcpacket.c.
7947
7948         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
7949           counter to the SKE context that is incresed when the SKE library
7950           performs async operation outside the library.  If the outside
7951           process frees the SKE context and FREED status will be set
7952           and the library will detect after the sync operation that the
7953           libary is freed.  The affected files are
7954           lib/silcske/silcske[_status].[ch].
7955
7956         * Resolve the client entry information in the function
7957           silc_client_channel_message to assure that NULL pointer is not
7958           passed as client entry to the application. */
7959
7960         * Fixed the task timeout calculation to assure that there is
7961           never negative timeouts.  The affected file is
7962           lib/silcutil/silcschedule.c.
7963
7964         * Fixed the channel user mode notification sending in server.
7965           It was sent point-to-point to the router (or to server by router)
7966           but it needs to be destined to a channel.  The routines now
7967           supports sending the channel user mode notifys to the channels
7968           when announcing clients and channels.  Affected files are
7969           silcd/server.c and silcd/packet_receive.c.
7970
7971         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
7972           It did not actually replace the old channel entry in the cache.
7973           Affected file lib/silcclient/client_notify.c.
7974
7975 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7976
7977         * Fixed a possible crash in silc_packet_send_prepare.  It now
7978           assures always that there is enough space in the buffer and
7979           at the tail area of the buffer (for MAC).
7980
7981           Fixed the inbound buffer reallocation in silc_packet_read.
7982           It was old code and did not handle the reallocation correctly.
7983           Affected
7984
7985           The affected file is lib/silccore/silcpacket.c.
7986
7987         * Fixed buffer overflow in silc_parse_nickname in the file
7988           lib/silcutil/silcutil.c.
7989
7990 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7991
7992         * make install generates new server keys only if there is not
7993           keys already.
7994
7995 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7996
7997         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
7998           Added check that if the NOREPLY is set then we will not send
7999           the away message.  This avoids infinite loop of away messages
8000           if both clients are away.  The affected file is
8001           lib/silcclient/client_prvmsg.c.
8002
8003         * Fixed client crash if /NICK was given without arguments.
8004           Affected file lib/silcclient/command.c.
8005
8006         * Server does not send the invite list in INVITE command back
8007           to the client if the list was not altered.  Added this notion
8008           to the protocol spec as well.  Affected file silcd/command.c.
8009
8010           Fixed possible crash in INVITE command by checking the
8011           value of silc_server_get_client_route command.
8012
8013         * Fixed the INVITE notify type handling.  The arguments are now
8014           taken in correct order and client does not crash.  The affected
8015           file is irssi/src/silc/core/silc-channels.c.
8016
8017           Removed the "Inviting xxx to channel" message from the
8018           client library away and let the application handle it.
8019           Affected file lib/silcclient/command.c.  Added that message
8020           to Irssi SILC client's message formats.
8021
8022         * Fixed CMODE command crash in client.  It now checks the
8023           amount of arguments correctly and does not crash.  The affected
8024           file is lib/silcclient/command.c.
8025
8026         * Do not create new channel automatically in silc_channels_join
8027           but check whether the channel by that name already exists.
8028           Affected file irssi/silc/core/silc-channels.c.
8029
8030         * Do not send the SERVER_SIGNOFF to router if the disconnected
8031           entity was the router.  Affected file silcd/server.c.
8032
8033         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8034           SILC client as it was missing from there.
8035
8036           Added the handling of the KICK notify to the Irssi SILC client
8037           as it was missing.  Added "you have been kicked" message to
8038           Irssi SILC client's message modules formats.
8039
8040           Added the handing of the KILL notify to the Irssi SILC client
8041           as it was missing.  Added the kill message module formats
8042           as well.
8043
8044           The affected file is irssi/src/silc/core/silc-channels.c.
8045
8046         * The router did not save the channel mode the server announced.
8047           Affected file silcd/packet_receive.c.
8048
8049         * Fixed a possible crash in INFO command in server.  If the
8050           server did not provide the server info it crashed.  Affected
8051           file silcd/command.c.
8052
8053 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8054
8055         * Fixed the GETKEY command in the server to check also the
8056           global list.  Otherwise the GETKEY would not work correctly
8057           in normal SILC server.  Affected file silcd/command.c.
8058
8059 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8060
8061         * Fixed GETKEY crash, it crashed if the command did not succseed.
8062
8063 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8064
8065         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8066           is now real and not just an macro interface to GMP.
8067
8068           Removed the entire GMP from the source tree and imported new
8069           NSS MPI library instead.  Reason for removing GMP is that it is
8070           extremely large and compiles extremely slow.  The NSS MPI
8071           is only a few files and compiles in less than 10 seconds.
8072           The speed is also about the same as GMP.  The MPI is imported
8073           to lib/silcmath/mpi.
8074
8075           If the system has GMP installed we will still use the GMP.
8076           If it is not then the NSS MPI will be compiled.
8077
8078 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8079
8080         * Merged a long nickname (127 characters long) crash bugfix from
8081           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8082
8083         * Merged a freed memory reference bugfix from Irssi CVS tree.
8084           Affected file irssi/src/core/commands.c.
8085
8086 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8087
8088         * Added the server's public key sving and verification to the
8089           server when performing the SKE.  This was missing and the
8090           remote server's (or router's) public key was accepted without
8091           checking whether we have it previously or trust it at all.
8092           Affected file silcd/protocol.c.
8093
8094 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8095
8096         * Check in the silc_server_timeout_remote if protocol is active
8097           and make sure that the protocol's final callback is called so
8098           that all memory if freed.  Affected file silcd/server.c.
8099
8100 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8101
8102         * silc_server_whois_send_reply crashed the server if the nickname
8103           was 127 characters long.  Affected file silcd/command.c.
8104
8105 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8106
8107         * Added sanity check to the silc_server_new_client. If the hostname
8108           is provided inside username then check that the provided hostname
8109           really is the same as the resolved one.  If the hostname was not
8110           resolved then check it from the public key.  Affected file is
8111           silcd/packet_receive.c.
8112
8113         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8114           if the server disconnected us and the connection is not valid
8115           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8116
8117         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8118           the library to the lib/silcutil/silcutil.[ch].
8119
8120 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8121
8122         * Close log file after open.  Affected file
8123           lib/silcutil/silclog.c.
8124
8125         * Check whether sock == NULL in silc_client_send_packet and return
8126           if it is.  Affected file lib/silcclient/silcclient.c.
8127
8128         * Check rec->entry == NULL in the Irssi SILC Client before
8129           sending the channel message.  Affecte file is
8130           irssi/src/silc/core/silc-servers.c.
8131
8132 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8133
8134         * Merged a splitted window bugfix from Irssi CVS tree.  The
8135           affected file is irssi/src/fe-text/textbuffer-view.c.
8136
8137         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8138           It did not print nickname.
8139
8140         * Improved the distributions system a bit.
8141
8142 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8143
8144         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8145           irssi/src/fe-text/gui-window.c.
8146
8147         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8148           to in-active server.  The affected file is
8149           irssi/src/silc/core/client_ops.c.
8150
8151         * Resolve the client in USERS command reply if the entry does
8152           not have username resolved.  The affected file is
8153           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8154           command to WHOIS command to really resolve stuff.  The USERS
8155           is not used any more in any critical section so WHOIS can
8156           be used even though it might be slower than IDENTIFY.
8157
8158         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8159           format.
8160
8161 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8162
8163         * Changed the protocol API a bit more consistent in the
8164           lib/silccore/silcprotocol.[ch].
8165
8166         * Changed the following headers to ROBODoc format:
8167
8168                 lib/silccore/silcpayload.h
8169                 lib/silccore/silcprotocol.h
8170                 lib/silccore/silcsockconn.h
8171
8172           All core library headers are now formatted.
8173
8174 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8175
8176         * Fixed a bug in Irssi SILC client; do not show that you are
8177           server/router operator if you really are not.  Affected file is
8178           irssi/src/silc/core/client_ops.c.
8179
8180         * Renamed silc_command_free_payload to silc_command_payload_free.
8181           Affected file lib/silccore/silccommand.h
8182
8183         * Added silcmath.h to include the prototoypes of various routines
8184           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8185           silcprimegen.h.
8186
8187         * Changed the following headers to ROBODoc format:
8188
8189                 lib/silccore/silcchannel.h
8190                 lib/silccore/silccommand.h
8191                 lib/silccore/silcid.h
8192                 lib/silccore/silcidcache.h
8193                 lib/silccore/silcmode.h
8194                 lib/silccore/silcnotify.h
8195                 lib/silccore/silcpacket.h
8196                 lib/silcmath/silcmath.h
8197
8198 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8199
8200         * Added checking to the server code not to start the server if
8201           ciphers and stuff are not configured properly.  Affected files
8202           silcd/serverconfig.[h] and silcd/server.c.
8203
8204         * Changed the layout of the header files of the public interfaces
8205           in the SILC libraries.  The new layout supports ROBODoc
8206           documentation tool (and some others) so that it is easy to create
8207           a library reference manual.  All the other headers and source
8208           code must still follow the CodingStyle document.  Also source
8209           code must not include these ROBODoc stuffs, only the headers.
8210           Furthermore, all public interface headers must now be named
8211           by using `silc' prefix, example: silcapi.h, silccipher.h.
8212           Some files were renamed due to this.  All the other headers
8213           must not be used as public interfaces.  I will update the
8214           CodingStyle document later.  Changed following headers, so far:
8215
8216                 lib/silcclient/silcapi.h
8217                 lib/silccore/silcauth.h
8218                 lib/silccore/silcprivate.h
8219                 lib/silccrypt/silcdh.h
8220
8221 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8222
8223         * Updated TODO.
8224
8225         * Removed silc_client_packet_send_flush from the client library
8226           as it is not needed.  Affected file lib/silcclient/client.[ch].
8227
8228         * Added printing of message of unresolved authentication method
8229           to the Irssi SILC client.  Added it to the module formats.
8230           Removed the same message from the client library.
8231
8232 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8233
8234         * Added new distribution feature, DISTLABEL.  Every distribution
8235           can define own preprocessor label that can be used in the
8236           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8237           file distributions, acconfig.h.pre and prepare.
8238
8239 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8240
8241         * Added Makefile.defines_int to include the actual definitions
8242           for Makefile.defines.in.  Tested the new distribution system,
8243           created distributions and tested installation.
8244
8245         * Added AWAY message printing to the Irssi SILC client.  Added
8246           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
8247
8248         * Added SCONNECT command to call the SILC's CONNECT command.
8249           Cannot use CONNECT directly since Irssi uses that internally.
8250           Affected file irssi/src/silc/core/silc-servers.c.
8251
8252           Added ACTION local command.  It is same as ME command but takes
8253           the channel as mandatory argument.
8254
8255           Rewrote some of the Irssi's help files to suite for SILC
8256           protocol.
8257
8258 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8259
8260         * Added Makefile.defines[.in] that should for now on be included
8261           in all Makefile.am file in the source tree.  That file includes
8262           all common compilation definitions for SILC source tree.
8263
8264 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8265
8266         * Minor changes to the ./prepare script to change the package
8267           name according the distribution name to the configure.in.
8268
8269 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8270
8271         * Created new distribution system.  Added file `distributions'
8272           that defines all the distributions that can be created out of
8273           the SILC source tree.  The ./prepare script now reads that
8274           file to determine how to prepare the distributions.  The
8275           first argument to the ./prepare is the name of the distribution
8276           and second is the version of the distribution.  If given
8277           without arguments it creates the default (toolkit) distribution
8278           with the default version (defined in ./prepare).
8279
8280           All Makefile.am files that are subject to the distributions
8281           are now named as Makefile.am.pre.  These are ./Makefile.am
8282           and lib/Makefile.am.  Others may be changed later.
8283
8284 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8285
8286         * Added invite list, ban list, some key management and connection
8287           error message printing to module formats in the Irssi SILC client.
8288
8289         * Added new silc_client_set_away_message to set the away message
8290           that is back to the person who sent private message.  The
8291           affected file lib/silcclient/silcapi.h and the
8292           lib/silcclient/client_prvmsg.c.
8293
8294 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8295
8296         * Fixed the private message sending in the Irssi SILC client,
8297           added local command KEY to the Irssi SILC client.
8298
8299           Added key management and key agreement message formats to the
8300           irssi/src/fe-common/silc/module-formats.[ch].
8301
8302           Added USERS (alias WHO) printing, server/router operator
8303           indication and LIST command printing to the module formats.
8304
8305 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8306
8307         * Fixed channel joining notify handling, cumode notify handling
8308           from Irssi SILC client.
8309
8310         * Added SILC specific module-formats to the Irssi SILC client so
8311           that SILC specific message hilighting, colors etc is possible.
8312           Affected file irssi/src/fe-common/silc/module-formats.[ch].
8313
8314           Added channel mode, channel user mode, actions, notices,
8315           whois and whowas printing to the the module-formats.c.
8316
8317         * Fixed a bug in channel deletion in the server.  The channel
8318           is not left to the cache even if the channel founder auth mode
8319           is set when there are no users anymore on the channel.  Affected
8320           file silcd/server.c.
8321
8322         * The silc_net_localhost now resolves the entire hostname including
8323           the domain name.  Affected file lib/silcutil/silcnet.c.
8324
8325 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8326
8327         * Changed the ask_passphrase client operation to be ascynchronous.
8328           It has now a completion callback and a context that the
8329           application must call after it has got the passphrase from
8330           the user.  Affected files lib/silcclient/silcapi.h,
8331           lib/silcclient/protocol.c, lib/silcclient/command.c and
8332           silc/client_ops.c.
8333
8334           Added SilcAskPassphrase callback that the application calls
8335           to deliver the passphrase to the library.
8336
8337         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
8338           The public key verification and especially a certificate
8339           verification is asynchronous procedure.
8340
8341           Added new SILC_SKE_STATUS_PENDING status to indicate the
8342           request is pending and a callback will be called to finalize
8343           the request.
8344
8345           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
8346           indicate that remote end did not send its public key (or
8347           certificate), even though we require it.  Added check for this
8348           condition in the SKE.  This was a security bug, now fixed.
8349
8350           Defined new SilcSKEVerifyCbCompletion callback that is called
8351           when the verification process is completed.
8352
8353           The affected files lib/silcske/silcske_status.h and
8354           lib/silcske/silcske.[ch].
8355
8356         * Changed the verify_public_key client operation to be async
8357           as well.  Defined SilcVerifyPublicKey callback that is used to
8358           indicate the success of the public key verification process.
8359
8360           Changed the server and client to use the new async client
8361           operations.
8362
8363         * Changed the Irssi SILC client's internal scheduler to be called
8364           twice as many times as it used to be.  As a result the client
8365           should be a bit faster now.  Affected file is
8366           irssi/src/silc/core/silc-core.c.
8367
8368         * Added support to Irssi SILC client of asynchronous public key
8369           verification and passphrase inquiry.  Affected file is
8370           irssi/src/silc/core/silc-core.c.
8371
8372 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8373
8374         * Do not say "You have left channel %s" in client library.
8375           Moved it to the application.  Affected files are
8376           lib/silcclient/command.c and silc/client_ops.c.
8377
8378         * Fixed silc_client_get_clients.  Command context was not
8379           duplicated and was freed memory in the callback.  Affected
8380           file lib/silcclient/idlist.c.
8381
8382         * Do not say "you are now talking..." on JOIN command in the
8383           client library.  The appliation must handle it.
8384
8385         * Do not say ".. changed topic to" in command reply in the
8386           client libary.  The application must handle it.
8387
8388         * Fixed TOPIC command sending in the client library.
8389
8390         * Fixed a memory leak in silc_client_command_free in the file
8391           lib/silcclient/command.c.
8392
8393 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8394
8395         * Imported a modified version of Irssi client to the source tree.
8396           The Irssi will be used to create a new client called
8397           Irssi SILC.  Imported to irssi/.
8398
8399           Added silc_core_init_finish function to the Irssi.  Affected
8400           file irssi/configure.in.
8401
8402           A lot changes in the Makefile.ams around the irssi tree.
8403
8404 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8405
8406         * Do not rehash if the new size is same as the old size of the
8407           hash table, in the silc_hash_table_rehash*.  The affected file
8408           lib/silcutil/silchashtable.c.
8409
8410         * Replaced hash_table_del_by_context calls from the server
8411           (when channel->user_list and client->channels) to the
8412           hash_table_del as it is sufficient and faster.
8413
8414 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8415
8416         * Added silc_hash_table_list, silc_hash_table_get and the
8417           SilcHashTableList structure to provide an alternative way to
8418           traverse the hash table.  The affected files are
8419           lib/silcutil/silchashtable.[ch].
8420
8421         * Changed the server's idlist routines to use the hash table
8422           routines to optimize the code.
8423
8424 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8425
8426         * Replaced the client entry's `channel' list and channel entry's
8427           `user_list' list to hash tables for optimized lookup.  Changed
8428           the code to use the hash table interface around the code.
8429           Affected file lib/silcd/idlist.[ch].
8430
8431         * Added `auto_rehash' boolean argument to the function
8432           silc_hash_table_alloc to indicate whether the hash table should
8433           auto-rehash when it thinks is appropriate time.  It will
8434           increase the hash table size if the there is twice as much
8435           entries in the table than the size of the table, and will
8436           decrease the size if there are twice as less entries than
8437           the size of the table.
8438
8439 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8440
8441         * Fixed silc_xxx_get_supported to not crash at some circumstances.
8442
8443 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8444
8445         * silc_idcache_purge_by_context deletes the entry now by context
8446           as it is supposed to do.  Affected file lib/silccore/idcache.c.
8447
8448         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
8449           client is not anymore valid (WHOWAS givens the info) and not
8450           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
8451
8452 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8453
8454         * Removed the `data' and `data_len' arguments from the ID Cache
8455           interfaces and added `name' argument.  ID Cache does not handle
8456           anymore the binary data only a names associated with given ID.
8457
8458         * When hashing a Client ID with silc_hash_id the entire ID is
8459           not hashed anymore, instead only the hash of the Client ID is
8460           hashed.  This way we can access the Client ID from the cache
8461           with Client ID but with the hash of the ID (which is a hash of
8462           the nickname) as well without any difference in performance.
8463
8464           Added also silc_idcache_find_by_id_one_ext to do one on one
8465           searching when we have the actual ID.  Added also function
8466           silc_hash_client_id_compare.  The affected files are
8467           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8468
8469         * When hashing the name associated with a ID it is always done
8470           in lowercase.  This way we can access the cache without worrying
8471           about case-sensitivity, even though, for example nicknames are
8472           case sensitive.
8473
8474         * Fixed a bug in server with channel message sending.  It put
8475           wrong ID type as destination ID.  The affected file
8476           silcd/packet_send.c.
8477
8478         * silc_idcache_del_by_context now deletes from all hash tables
8479           by context.  Affected file lib/silccore/idcache.c.
8480
8481 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8482
8483         * Changed the client library to use the new ID Cache interface.
8484           Changes around the source tree.
8485
8486         * Added silc_hash_table_rehash_ext to rehash with specific
8487           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8488
8489         * Added silc_hash_string_compare to compare two strings in the
8490           hash table.  Affected file lib/silcutil/silcutil.[ch].
8491
8492 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8493
8494         * Added new function silc_idcache_del_by_context into the
8495           lib/silccore/idcache.[ch].
8496
8497         * Changed the server's ID list routines to use the new ID Cache
8498           interface.  Changes around the source tree.
8499
8500 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8501
8502         * Added silc_hash_table_del[_by_context]_ext functions in to the
8503           lib/silcutil/silchashtable.[ch].
8504
8505           Removed silc_hash_table_find_all* routines and added new
8506           silc_hash_table_find_foreach to replace them.
8507
8508           Added silc_hash_table_replace_ext function as extended
8509           replacing function.  Separated the simple hash table interface
8510           from the extended hash table interface in the file
8511           lib/silcutil/silchashtable.h.
8512
8513         * Fixed minor bugs and changed it to use some of the new
8514           hash table functions in lib/silccore/idcache.c
8515
8516 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8517
8518         * Added new function silc_hash_table_find_all to return all keys
8519           in the hash table by the specified key.  As the hash table is
8520           collision resistant it also makes it possible to have several
8521           duplicate keys in the hash table.  This function may be used to
8522           find all of the keys from the hash.
8523
8524           Added user_context arguments to the SilcHashFunction,
8525           SilcHashCompare and SilcHashDestructor to deliver user specified
8526           context.
8527
8528           Added new fuctions silc_hash_table_find[_all]_ext to do
8529           extended lookup with specified hash and compare functions and
8530           specified user contexts.
8531
8532           Added new function silc_hash_table_add_ext to add the key
8533           with specified hash function and user context.
8534
8535           Added new function silc_hash_table_foreach to traverse all
8536           entrys in the hash table.  Added SilcHashForeach callback
8537           function.
8538
8539           Added new function silc_hash_table_del_by_context to delete
8540           the entry only if the context associated with the key matches.
8541
8542           Affected files are lib/silcutil/silchashtable.[ch].
8543
8544         * Removed silc_hash_[server/client/channel]_id and added just
8545           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8546           silc_hash_id_compare to compare two ID's using as the hash table
8547           comparison function.  Added also silc_hash_data to hash
8548           binary data and silc_hash_data_compare to compare it.
8549
8550         * Removed silc_idlist_find_client_by_hash as it is not needed
8551           anymore.  Affected file silcd/idlist.[ch].
8552
8553         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8554           to use internally the SilcHashTable.  The new ID Cache is a lot
8555           faster than the old one.  Some of the ID Cache interface was also
8556           rewritten and obsolete and stupid functions were removed.
8557
8558 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8559
8560         * Added entry_count field to the SilcHashTable to keep the number
8561           of the entries in the table.  Implemented the function
8562           silc_hash_table_rehash.  Added new function
8563           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8564
8565           Fixed a minor bug in silc_hash_table_free.
8566
8567         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8568           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8569           into the lib/silcutil/silcutil.[ch].
8570
8571 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8572
8573         * Implemented a collision resistant hash table into the
8574           lib/silcutil/silchashtable[ch].  See the header and the source
8575           for the SilcHashTable API.
8576
8577 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8578
8579         * Merged dotconf version 1.0.2 into lib/dotconf.
8580
8581 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8582
8583         * Do not compile anything in lib/silcsim/* if the SIM support
8584           is not enabled.  The tree should now compile without problems
8585           under cygwin.
8586
8587 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8588
8589         * Compiled the SILC under cygwin.  Compiled and tested briefly
8590           without problems.  More tests needed.  The SIMs didn't compile
8591           though.
8592
8593         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8594
8595         * Fixed possible crash in silc_get_username in the
8596           lib/silcutil/silcutil.c.
8597
8598 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8599
8600         * Fixed a va_arg in silc/client_ops.c.
8601
8602         * Oops, RC5 routines were named AES and caused some problems
8603           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8604
8605 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8606
8607         * Added new SilcIDIP structure into the lib/silccore/id.h and
8608           replaced the old `ip' fields from all SILC ID's to that type.
8609           This is a step towards IPv6 support.
8610
8611           The silc_id_get_len takes now the ID as an extra argument.
8612           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8613           both IPv4 and IPv6 based ID's.
8614
8615           The affected files are lib/silccore/id.[ch] and other files
8616           around the tree using these routines.
8617
8618         * Removed the ID length arguments in server from various
8619           silc_server_send_notify_* routines -> they are not needed
8620           anymore.
8621
8622 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8623
8624         * Fixed memory leak in silc_encode_pem_file in the file
8625           lib/silcutil/silcutil.c.
8626
8627 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8628
8629         * Check minor version as well in the SKE.  Affected files are
8630           silcd/protocol.c and lib/silcclient/protocol.c.
8631
8632         * Added --identifier option to the server so that an identifier
8633           can be when creating the public key for the server.  Affected
8634           file is silcd/silcd.c.
8635
8636         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8637           lib/silccrypt/silcpkcs.c.
8638
8639 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8640
8641         * Register default ciphers and stuff when using -C option with
8642           the server.  Affected file sildc/silcd.c.
8643
8644         * Put back the servers public key filename format, it is better
8645           than the new one.  For now, the client keys are saved with the
8646           new filename format.  The affected file silc/client_ops.c.
8647
8648         * Implemented the Cipher API for the rest of the ciphers that
8649           did not implement it or implemented it the wrong way.
8650
8651 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8652
8653         * Register default ciphers and stuff when using the -S option
8654           in the client.  Affected file silc/silc.c.  Same also when
8655           creating new key pair with -C option.
8656
8657 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8658
8659         * Fixed the silc_verify_public_key client operation function to
8660           save the public keys differently.  The fingerprint is now
8661           used as filename and not the hostname.  This way also the
8662           client keys are saved uniquely and not with hostnames.  The
8663           affected file is silc/client_ops.c.
8664
8665         * Trimmed the silc_hash_fingerprint function to remove extra
8666           whitespaces from the end of the fingerprint.  The affected
8667           file is lib/silccrypt/silchash.c.
8668
8669         * Updated TODO.
8670
8671         * Added silc_cipher_register_default function to register all
8672           default ciphers.  It can be used when configuration files
8673           does not exist and the application does not want any specific
8674           ciphers in any specific order.
8675
8676           The SilcDList is now used as silc_cipher_list dynamically
8677           allocated cipher list.  Removed the static list all together
8678           and now all ciphers must be allocated to the dynamic list.
8679           The silc_cipher_alloc routine was changed to check only the
8680           dynamic list.
8681
8682           All silc_cipher_* routines that used to return int returns
8683           now bool.
8684
8685           The affected files lib/silccrypt/silccrypt.[ch].
8686
8687         * The same thing was done to silc_hash_* as for silc_cipher_*
8688           routines.  Affected files lib/silccrypt/silchash.[ch].
8689
8690         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8691           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8692           Added also silc_pkcs_[un]register[_default] functions.
8693           Removed the data_context from the PKCS API.
8694
8695         * Added silc_hmac_register_default function to register default
8696           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
8697           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
8698           to unregister all hmacs at once.
8699
8700         * Register the default ciphers, hash functions, PKCSs and HMACs
8701           if client's configuration file does not exist.  The affected
8702           file silc/silc.c.
8703
8704         * The client did not load the hash functions from the SIM
8705           modules at all.  Added support for this.  Affected file is
8706           silc/clientconfig.c.
8707
8708         * When decoding public key with silc_pkcs_public_key_decode, check
8709           the supported algorithm only if PKCS are registered.  Affected
8710           file lib/silccrypt/silcpkcs.c.  The same was done with the
8711           silc_pkcs_private_key_decode.
8712
8713         * Fixed the SILC List routines to keep the list always in order.
8714           It used to change the list's order when traversing the list but
8715           not it preserves the order.  Affected file lib/trq/silclist.h.
8716
8717 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8718
8719         * Added the client library to use the SilcSocketConnection's
8720           reference counter (by silc_socket_dup) to prevent the bug that
8721           the socket object may be freed underneath async operation.
8722
8723         * The name resolv library checking fixes in the configure.in.pre.
8724           The patch by salo.
8725
8726         * Created new version of the protocol drafts for future
8727           development. The -03 drafts are the ones that will be changed
8728           in the trunk now and the -02 will remain as they are.
8729
8730         * Send list of CUMODE notifys to the router when announcing
8731           the channel users to the router.  Affected file silcd/server.c.
8732           If the router receiving channel founder CUMODE for a channel
8733           that already has channel founder it will send CUMODE notify
8734           to the sender to remove the channel founder rights from the
8735           announced client.  Affected file silcd/packet_receive.c.
8736
8737         * The CUMODE notify may now use Server ID as well as the entity
8738           who changes the mode.  Updated protocool specs.
8739
8740         * Updated INSTALL and README files.
8741
8742 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8743
8744         * New web pages in the http://silc.pspt.fi.  The pages was
8745           designed by salo.
8746
8747         * Updated CREDITS.
8748
8749 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8750
8751         * Implemented the [DenyConnectin] config section in the server.
8752           Added silc_server_config_denied_conn to check whether incoming
8753           connection is denied.  Affected file silcd/serverconfig.[ch].
8754
8755         * Do not check the ports when checking the incoming configuration
8756           data if the port is 0, meaning any.  Affected file is
8757           silcd/serverconfig.c.
8758
8759 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8760
8761         * Fixed buffer overflow in silc_string_compare in the file
8762           lib/silcutil/silcutil.c.
8763
8764         * Fixed double free in silc_server_command_leave in the file
8765           silcd/command.c.
8766
8767 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8768
8769         * Fixed the version checking in the server.  Affected file is
8770           silcd/protocol.c.
8771
8772 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8773
8774         * Fixed the configuration data fetching when accepting new
8775           connections in the server.  Affected file silcd/server.c.
8776
8777 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8778
8779         * Added `sender_entry' argument to the function
8780           silc_server_packet_relay_to_channel so that we can check
8781           whether some destination actually belongs to the same route
8782           the sender belongs (ie, we must not resend the packet to the
8783           sender).  Affected file silcd/packet_send.[ch].
8784
8785         * Added `servername' field to the SilcClientEntry in the server
8786           to hold the name of the server where client is from.  Affected
8787           file is silcd/idlist.h.
8788
8789 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8790
8791         * Moved the channel message encrypting in the router betwen
8792           router connections from silc_server_channel_message to the
8793           silc_server_packet_relay_to_channel since we want to check
8794           whether we have anybody channel before encrypting anything.
8795           Affected files silcd/packet_[receive/send].c.
8796
8797 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8798
8799         * Fixed the [AdminConnection] server config section to support
8800           multiple entries.  Affected file silcd/serverconfig.c.
8801
8802         * Added support into the server to check the validity of the
8803           incoming connection before executing any KE or authentication
8804           protocols.
8805
8806         * The connection configuration is now saved to the KE and
8807           connection auth protocol contexts and not fetched anymore in
8808           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
8809
8810         * The local hosts listenning address and port is also resolved
8811           now when starting the server.  We want to have the socket object
8812           to include the real address and port for the listener.  Added
8813           new function silc_net_check_local_by_sock into the files
8814           lib/silcutil/silcnet.[ch].
8815
8816         * Fixed a broadcast bug in server -> do not broadcast if we
8817           are standalone.
8818
8819         * Fixed a routing bug.  Do not route broadcast packets ever.
8820           Broadcast packets must be processed always and not routed since
8821           they may be destined to some other host than yourself and thus
8822           would get routed without no good reason.  Affected file is
8823           silcd/server.c.
8824
8825         * Added function silc_server_config_is_primary_route to check
8826           whether primary router connection has been configured (a router
8827           configuration that we are initiating).  If there is not, we
8828           will assume that there is only two routers in the SILC network
8829           and we will use the incoming router connection as our primary
8830           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
8831
8832         * Changed the order of the broadcasting.  Broadcast _after_ the
8833           packet has been processed not before.  Affected file is
8834           silcd/server.c.
8835
8836         * Fixed a [ClientConnection] parsing bug.  The port was never
8837           parsed correctly thus resulting to port 0.  Affected file
8838           silcd/serverconfig.c.
8839
8840         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
8841           argument and did not set the broadcast packet flag.  Affected
8842           file silcd/packet_send.c.  Fixed same bug in the function
8843           silc_server_send_notify as well.
8844
8845         * If we receive NEW_ID packet for our own ID in the server, ignore
8846           the packet.
8847
8848 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8849
8850         * Updated TODO.
8851
8852         * Removed the nickname from the Private Message Payload.
8853           Updated the code and the protocol specs.
8854
8855         * Updated protocol specs for submitting to the IETF.
8856
8857         * Tweaked the Random Number Generator a bit.  Affected file
8858           lib/silccrypt/silcrng.c.  Exported a new function
8859           silc_rng_[global]_add_noise which can be used to add more
8860           noise to the RNG.
8861
8862 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8863
8864         * Do not parse packets with different timeout when protocol
8865           is active -> may cause problem with rekey.  Affected file
8866           silcd/server.c.
8867
8868         * When server receives signoff notify it must not create
8869           new channel key if the client is on any channels since the
8870           sender of the signoff notify will create it.
8871
8872 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8873
8874         * Added printing of error messages during SKE protocol from the
8875           failure packet sent by server during SKE.  Affected file
8876           silc/client_ops.c.
8877
8878         * Removed the client's failure_callback handling with timeout
8879           and handle it immediately when received.
8880
8881         * The SKE library returned wrong type in SUCCESS and FAILURE
8882           packets.  They must be 32 bit MSB not 16 bit MSB.
8883
8884 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8885
8886         * Ok, rewrote the logic of the re-key and now it seems to work.
8887           I tested it on high traffic with frequent re-keys without
8888           problems.  Added hmac_receive (and renamed hmac to hmac_send)
8889           in SilcClientConnection in lib/silcclient/client.h and
8890           in SilcIDListData in silcd/idlist.h.  Also, removed the
8891           SilcPacketParserContext's cipher and hmac fields as they are
8892           not needed anymore and actually caused some problems when
8893           the ciphers and hmac's changed underneath the packet parser.
8894
8895 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8896
8897         * If re-key protocol is active then process the incoming packets
8898           synchronously since we must assure that icoming packets encrypted
8899           with the old key is processed before the new keys is set to
8900           use.  This is true other packets than for REKEY packets.
8901           Affected file silcd/server.c.  The same was done to client library
8902           as well, affected file lib/silcclient/client.c.
8903
8904 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8905
8906         * Fixed bug in client and server to accept the force send if
8907           the packet is send from silc_[server/client]_packet_process
8908           function.  Otherwise the packets are never delivered, oops.
8909
8910 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8911
8912         * Disable force sending of packets when REKEY protocol is active.
8913           We must assure that no packet is sent directly when rekey is
8914           performed.  All packets must be sent through packet queue.
8915           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
8916           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
8917           function is silc_[server/client]_packet_send_real to check
8918           the situation.
8919
8920         * Replaced the SIM paths from example config files to
8921           /usr/local/modules.  Also, make install creates now
8922           /usr/local/silc/logs directory to hold all the SILC server
8923           logs.
8924
8925 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8926
8927         * Made the configure.in.pre work on Solaris.  Patch by salo.
8928
8929         * Made all ciphers compatible with non-x86 machines.  Defined
8930           CBC mode macros into lib/silccrypt/ciphers_def.h.
8931
8932 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8933
8934         * Fixed the make install.
8935
8936 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8937
8938         * When MAC computation fails the silc_packet_decrypt returned 0
8939           even though it was supposed to return -1.  Fixed this.  The
8940           affected file is lib/silccore/silcpacket.c.
8941
8942         * Do not replace the config files in /etc/silc (in make install)
8943           if they already exist.  Affected file ./Makefile.am.
8944
8945         * Do not send re-key packets immediately but through packet queue.
8946           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
8947
8948         * Changed silc_net_check_host_by_sock to return FALSE if the
8949           IP/DNS could not be resolved.  Though, it returns the IP address
8950           now even if it could not resolve it (but returns also FALSE).
8951           Affected file lib/silcutil/silcnet.[ch].
8952
8953 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8954
8955         * Added silc_pkcs_decode_identifier to decode the public key's
8956           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
8957           Added also silc_pkcs_free_identifier.  Added also new context
8958           SilcPublicKeyIdentifier.
8959
8960         * Added -S option to the silc client.  It is used to dump the
8961           contents of the specified public key file.
8962
8963         * Changed the PKCS api to return the public key length when
8964           setting the public key.
8965
8966         * Fixed a fatal bug in the public and private key file loading.
8967           Affected file lib/silccrypt/silcpkcs.c.
8968
8969         * Execute the packet parsing for client with zero (0) timeout
8970           if the protocol is active.  Affected file silcd/server.c.
8971
8972 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8973
8974         * Made the key generation options to the silcd program.  Added
8975           -C option, equivalent to client's option.
8976
8977         * Added new [ServerKeys] config section to the server.  It
8978           configures the server's public and private key.
8979
8980         * Defined generic Public Key Payload into the protocol
8981           specification to send specific type of public keys and
8982           certificates.
8983
8984         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
8985           public key or certificate.
8986
8987         * Implemented the GETKEY command to the server and to the
8988           client library and on user interface.
8989
8990 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8991
8992         * Made preliminary `make install' work.
8993
8994 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8995
8996         * Added SilcServerRekey context into silcd/idlist.h.
8997
8998         * Added the PFS support as defined in the specification to the
8999           SKE protocol.  Affected files lib/silcske/*.c.
9000
9001         * Added `ske_group' field to the SilcServerRekey context to hold
9002           the number of the SKE group that is used with PFS in re-key.
9003           Affected file silcd/idlist.h.
9004
9005         * Added PFS re-key support to the server.  Affected file is
9006           silcd/protocol.c.
9007
9008         * Added silc_protocol_cancel to cancel execution of the next
9009           state of the protocol.  Affected file is
9010           lib/silccore/silcprotocol.[ch].
9011
9012         * Added the re-key support with and without PFS to the client
9013           library.  Re-key is performed once in an hour, by default.
9014
9015           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9016           Added silc_client_rekey_callback and silc_client_rekey_final.
9017           Affected files are lib/silcclient/protocol.[ch] and
9018           lib/silcclient/client.[ch].
9019
9020         * Removed the `hmac_key' and `hmac_key_len' fields from the
9021           SilcClientConnection structure; not needed.  Affected file is
9022           lib/silcclient/client.h.
9023
9024         * Updated TODO.
9025
9026 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9027
9028         * Do not ask whether user wants to use the negotiated private key
9029           for private messages, just use it.  Affected file is
9030           silc/local_command.c.
9031
9032         * Added `send_enc_key' and `enc_key_len' fields to the
9033           SilcIDListData structure since they are needed in the re-key
9034           phase.  Affected file is silcd/idlist.[ch].
9035
9036         * Implemented the simple re-key protocol into the server.
9037           Affected files silcd/server.c and silcd/protocol.[ch].  The
9038           re-key will be performed once in an hour, by default.
9039
9040           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9041           Added silc_server_rekey, silc_server_rekey_callback and
9042           silc_server_rekey_final.
9043
9044         * Removed Tunneled flag from the protocol.  Updated the code
9045           and the specifications.
9046
9047         * Adde `pfs' field to the SilcIDListData to indicate whether
9048           the PFS is to be performed in the re-key.  Affected file is
9049           silcd/idlist.h.
9050
9051 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9052
9053         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9054           int64 of at least the xintXX size.  If void * is less that 4
9055           bytes uint32 * will be used.  Defined bool as boolean.
9056
9057         * Changed _ALL_ unsigned long and unsigned int to uint32,
9058           unsgined short to uint16 in the source tree.
9059
9060         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9061           not handle clients that has entry->data.registered == FALSE.
9062           They are not in the network anymore.  Affected file is
9063           silcd/server.c.
9064
9065 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9066
9067         * Implemented the sending of the SERVER_SIGNOFF notify in the
9068           server.  Affected file is silcd/server.c.
9069
9070         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9071           Added also silc_notify_payload_encode_args into the
9072           lib/silccore/silcnotify.[ch].
9073
9074         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9075           Affected file silcd/packet_receive.c.
9076
9077         * Implemented the SERVER_SIGNOFF notify handling in the client
9078           library.  Affected file lib/silcclient/client_notify.c.  Also,
9079           implemnted the printing of the SERVER_SIGNOFF info to the
9080           application.  Affected file silc/client_ops.c.
9081
9082         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9083           if the deleting was successful.  Affected file silcd/idlist.[ch].
9084
9085         * Added support for public key authentication in the connection
9086           authentication protocol in the client library.  Affected file
9087           lib/silcclient/protocol.c.
9088
9089         * Changed the server's silc_idlist_get_clients_by_* interface
9090           to support already allocated array so that new entries may be
9091           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9092           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9093           and command replies.
9094
9095         * All command reply functions in the server now calls the
9096           pending command callback even if error occured.  This way the
9097           error will be delivered to the client as well.  Affected files
9098           silcd/command.c and silcd/command_reply.c.
9099
9100         * Fixed INFO command to return local server's info if no server
9101           was provided.  Affected file lib/silcclient/command.c.
9102
9103         * Removed RESTART command for good.  Updated the code and the
9104           protocol specs.
9105
9106         * Rewrote parts of the task system.  It is a bit simpler now.
9107           Removed unsued task priorities. The affected files are
9108           lib/silcutil/silctask.[ch].
9109
9110 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9111
9112         * Moved the USERS printing from the library to the application.
9113           Affected files lib/silcclient/command.c and silc/client_ops.c.
9114
9115 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9116
9117         * Updated TODO.
9118
9119         * Added channel key re-key support.  The re-key is perfomed
9120           only by the router and is done once in an hour.  Added `rekey'
9121           field to the SilcChannelEntry in the server.  Affected files
9122           silcd/server.c and silcd/idlist.h.
9123
9124         * Added silc_task_unregister_by_context into the file
9125           lib/silcutil/silctask.[ch].
9126
9127 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9128
9129         * Added SILC_UMODE_GONE mode to indicate when the client is not
9130           present in the SILC network.  Added also support to the local
9131           command AWAY that will set this mode.  Added support of showing
9132           "xxx is gone" in WHOIS command.  The USERS command shows the
9133           gone status as well.
9134
9135         * Fixed setting server and router operator privileges in the
9136           server's UMODE command.  Affected file silcd/command.c.
9137
9138         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9139           new KE payload is equivalent to the old KE2 payload.
9140
9141           Cleaned up the SKE Start Payload parsing.  It now uses the
9142           simple buffer unformatting to do the parsing.  A lot faster
9143           now.
9144
9145           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9146           to the SKE that is used to indicate whether both of the SKE
9147           parties should perform authentication.  By default only the
9148           responder performs authentication.  By setting this flag also
9149           the initiator must do authentication.  By default it is unset
9150           since in normal SKE case, client to server connection, only
9151           the responder should do authentication.  When doing SKE between
9152           two clients both should perform authentication.  Updated the
9153           code and the protocol specs.
9154
9155         * A little fix to IDENTIFY command in the server.  Search the
9156           client first by hash not nickname.  Affected file is
9157           silcd/command.c.
9158
9159         * Fixed the silc_client_close_connection to support closing
9160           the client to client connections wihtout deleting too much
9161           data.  Affected file lib/silcclient/client.c.
9162
9163         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9164           are received if protocol used to be active but is not anymore
9165           the application would crash due to NULL pointer dereference.
9166           Affected files silcd/server.c and lib/silcclient/client.c.
9167
9168         * Added `hash' field to the SilcClientConnection to include
9169           the hash function negotiated in the SKE protocol.
9170
9171         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9172           to set the channel founder authentication data.  A client can
9173           claim the founder rights later by providing the authentication
9174           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9175           This way the channel founder can regain the channel founder
9176           privileges even it is left the channel.  This works only on
9177           local server and the client must be connected to the same
9178           server to be able to regain the founder rights.  Updated the
9179           protocol specs accordingly.
9180
9181           Added support to the CMODE command in the client to set the
9182           founder auth data.  Read the README to see how to set it.
9183
9184           Added support to the CUMODE command to claim the founder
9185           rights.  Read the README to see how to do it.
9186
9187           Added support for the founder authentication to the Channel
9188           Entry in the server.  Affected file silcd/idlist.h.
9189
9190           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9191           server's CMODE command.  Affected file silcd/command.c.
9192
9193         * Added the following new functions into lib/silccore/silcauth.[ch]:
9194           silc_auth_get_method and silc_auth_get_data.
9195
9196         * The server now saves the remote hosts public key to the
9197           SilcIDListData pointer.  Affected file silcd/protocol.c.
9198
9199         * The normal server now does not remove the channel entry from
9200           the cache if the founder authentication data is set.  It used
9201           to remove it if the founder was the last one on the channel on
9202           the server and left the channel.  The auth data is saved and
9203           if the channel is re-joined later the old entry is used with
9204           the old auth data.  Affected files silcd/command_reply.c and
9205           silcd/server.c.
9206
9207         * Removed the `pkcs' field from the SilcIDListData structure
9208           in the server; it is not used.  Affected file silcd/idlist.h.
9209
9210 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9211
9212         * Fixed packet processing on slow links.  Partial packets were
9213           never re-processed because the incoming data buffer was cleared
9214           by the application.  Application must not directly clear the
9215           sock->inbuf, the packet processing routines handle it.  Fixed
9216           this in client library and in server.
9217
9218 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9219
9220         * Fixed the WHOIS and IDENTIFY send reply function to really
9221           check whether to send list or just one entry.  Affected file
9222           silcd/command.c.
9223
9224         * Cleaned up the LEAVE command's channel key distribution.  The
9225           affected file silcd/command.c.
9226
9227         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9228           can enforce the channel mode as well.  In that case the ID
9229           includes the ID of the server.  The code now enforces the
9230           mode change if the router have different mode than the server.
9231
9232         * The notify client operation with CMODE_CHANGE notify can now
9233           return NULL client_entry pointer if the CMODE was not changed
9234           by client.  Application must check for this.
9235
9236         * Added <Server ID> argument to INFO command to support server
9237           info fetching by Server ID.
9238
9239         * Added silc_server_announce_get_channel_users to get assembled
9240           packets of channel users of the specified channel.  Affected
9241           file silcd/server.[ch].
9242
9243         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9244           was freed underneath the ID Cache.
9245
9246         * Re-announce clients when the server received CHANNEL_CHANGE
9247           notify from the router.  Affected file silcd/packet_send.c.
9248
9249 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9250
9251         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
9252           crashed since it did not handle the fact that there is no cipher
9253           called "3" and didn't check the error condition.  Now fixed.
9254
9255         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
9256           flag.  It can be used to send message requests.
9257
9258 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9259
9260         * Implemented the RESTART command in the client.
9261
9262         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
9263           notice type messages.  Added notice printing to the user
9264           interface.
9265
9266         * The channel keys are not re-generated if the channel's mode
9267           is PRIVKEY, ie private key on the channel exists.  Affected
9268           files silcd/server.c and silcd/command.c.
9269
9270         * Fixed a little bug in channel message delivery when channel
9271           private keys are set in the server.  Affected file is
9272           silcd/packet_send.c.
9273
9274         * Changed the setting on channel->on_channel = TRUE from the
9275           silc_client_save_channel_key to the JOIN command reply.  The
9276           key payload is not received if the private channel key is set.
9277           Affected file lib/silcclient/command_reply.c and the
9278           lib/silcclient/client_channel.c.
9279
9280         * When the CMODE_CHANGE notify is sent and the channel private
9281           key mode is removed the channel key must be re-generated in
9282           other cells as well.  Added this support for the router in the
9283           silcd/packet_receive.c.
9284
9285         * Added new local command NOTICE to send notice message on
9286           channel.  Affected file silc/local_command.[ch].
9287
9288 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9289
9290         * Added new local command ME to the client.  It is used to send
9291           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
9292           some action.  Affected file silc/local_command.[ch].
9293
9294         * Changed channel_message and private_message client operations
9295           to deliver the message flags to the application.  Added also
9296           the `flags' arguments to the silc_client_send_channel_message
9297           and silc_client_send_private_message functions.  Affected file
9298           silcapi.h.
9299
9300 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9301
9302         * Redefined the Private Message Payload to support private message
9303           keys and to support the new private message flags.  Updated
9304           the protocol specs.  Flags makes it possible to have for example
9305           CTCP style messages.
9306
9307         * Added new type SilcPrivateMessagePayload and defined an API
9308           for it in the lib/silcclient/silcprivate.[ch].
9309
9310         * Tested private message private keys successfully.  Tested the
9311           private message key set, unset and list commands with the new
9312           KEY command.
9313
9314         * Redefined the Channel Message Payload to include the channel
9315           message flags (equal with private message flags) to support
9316           for example CTCP style messages.
9317
9318         * Defined some of the message (for channel and private message)
9319           flags.  Updated the protocol specs and added the flags to the
9320           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
9321
9322 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9323
9324         * Added SilcKeyAgreementStatus type to the key agreement routines
9325           to indicate the current status and error if one occured.
9326           The status types are defined in the lib/silcclient/silcapi.h.
9327
9328         * Added new local command KEY that is used to set and unset private
9329           keys for channels, set and unset private keys for private messages
9330           with remote clients and to send key agreement requests and
9331           negotiate the key agreement protocol with remote client.  The
9332           key agreement is supported only to negotiate private message keys,
9333           it currently cannot be used to negotiate private keys for channels,
9334           as it is not convenient for that purpose.
9335
9336         * Fixed a minor pending callback setting bug in the function
9337           silc_client_get_client_by_id_resolve, now the function works.
9338           Affected file lib/silcclient/idlist.c.
9339
9340         * Added function silc_net_get_local_port to get local bound
9341           port by socket.  Added to lib/silcutil/silcnet.[ch].
9342
9343         * Added `sockets' and `sockets_count' fields to the SilcClient
9344           object.  They hold the sockets of the listenning sockets in
9345           the client.  Listenning sockets may be for example the key
9346           agreement server.  Affected file lib/silcclient/client.[ch].
9347           Added functions the silc_client_add_socket and the
9348           silc_client_del_socket.  They are exported to the application
9349           as well.
9350
9351         * Added ~./silc/clientkeys to support other client's public keys.
9352
9353         * Renamed verify_server_key client operation to verify_public_key
9354           and added one argument to indicate the type of the connection
9355           (server, client etc.).
9356
9357 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9358
9359         * Added silc_server_connection_auth_request to handle the
9360           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
9361           silcd/packet_receive.[ch].
9362
9363         * Added silc_server_send_connection_auth_request into the
9364           silcd/packet_send.c to send the connection auth request packet.
9365
9366         * Cleaned up the silcd/protocol.c a bit and fixed some memory
9367           leaks.
9368
9369         * Fixed the public key authentication in responder side in the
9370           server.  The `auth_data' pointer includes the SilcPublicKey
9371           not the path to the public key.  Affected file silcd/protocol.c.
9372
9373         * Implemented the public key authentication in the initiator side
9374           in the server.  Affected file silcd/protocol.c.
9375
9376         * Removed the [RedirectClient] config section from the server
9377           configuration.  Is not needed and I don't want to implement it.
9378
9379 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9380
9381         * Cleaned up the CMODE command in the server.  It now works
9382           correctly and supports all the modes defined in the protocol.
9383           Affected file is silcd/command.c.
9384
9385         * Added `hmac_name' field to the SilcChannelEntry in the server
9386           to hold the default HMAC of the channel.  It can be set when
9387           creating the channel (with JOIN command).  Affected files
9388           silcd/idlist.[ch].
9389
9390         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
9391           type to indicate the change of the current cipher and hmac
9392           on the channel.  Client can safely ignore the <cipher> argument
9393           (if it chooses to do so) since the CHANNEL_KEY packet will
9394           force the channel key change anyway.  The <hmac> argument is
9395           important since the client is responsible of setting the new
9396           HMAC and the hmac key into use.
9397
9398         * Fixed the CMODE command in the client library as well.
9399
9400         * Tested CMODE command in router environment successfully.
9401
9402 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9403
9404         * Show the version of the remote client (or server) when connecting
9405           to the server.  It is logged to the log file.  Affected file
9406           is silcd/protocol.c.
9407
9408         * Fixed the KILLED notify handling in the client library.  The
9409           client must be removed from all channels when receiving the
9410           KILLED notify.
9411
9412           Also, do not remove the client entry when giving the KILL
9413           command but when the KILLED notify is received.
9414
9415         * Removed silc_idlist_find_client_by_nickname from the server.
9416           Not needed anymore.  Affected files silcd/idlist.[ch].
9417
9418         * Implemented the CHANNEL_CHANGE notify type handling to the
9419           server.  Affected file silcd/server.c.
9420
9421         * Updated TODO.
9422
9423 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9424
9425         * Added silc_server_send_notify_invite to send the INVITE
9426           notify between routers.
9427
9428         * Implemented the INVITE command correctly to the server.
9429
9430         * Implemented the INVITE notify type handling in the server.
9431
9432         * Implemented the INVITE command to the client library and on the
9433           user interface.
9434
9435 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9436
9437         * Added function silc_server_get_client_resolve to find the
9438           client entry by ID from all ID lists and then resolve it
9439           (using WHOIS) if it cannot be found.  Affected file is
9440           silcd/server.[ch].
9441
9442 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9443
9444         * Implemented the BAN command to the client library.
9445
9446         * The JOIN command in the server now checks the invite list
9447           and the ban list.
9448
9449         * Changed the silc_command_reply_payload_encode_va and the
9450           silc_command_payload_encode_va to support that if argument is
9451           NULL it ignores and checks the next argument.  Affected file
9452           lib/silccore/silccommand.c.
9453
9454         * Added silc_server_send_notify_ban to send the BAN notify
9455           type between routers.
9456
9457         * Chaned the silc_notify_payload_encode to support that if
9458           argument is NULL it ignores and checks the next argument.
9459           Affected file lib/silccore/silcnotify.c.
9460
9461         * Tested ban lists in router environment successfully.
9462
9463 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9464
9465         * Implemented BAN command to the server, in silcd/command.[ch].
9466
9467         * Removed the BAN and INVITE_LIST modes from the CMODE command
9468           in the server code.
9469
9470         * Added function silc_string_match to regex match two strings.
9471           Affected files lib/silcutil/silcutil.[ch].
9472
9473 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9474
9475         * Redefined parts of the SilcChannelEntry in the server to support
9476           the new ban and invite lists.
9477
9478 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9479
9480         * Redefined the INVITE command.  The same command can be used to
9481           invite individuals to the channel but also to manage the invite
9482           list of the channel (to add to and remove from the invite list).
9483           Updated the protocol specs.
9484
9485         * Added new command SILC_COMMAND_BAN that can be used to manage
9486           the ban list of the channel.  Updated the protocol specs.
9487
9488         * Removed the channel modes: the SILC_CMODE_BAN and the
9489           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9490           in the CMODE command.  The equivalent features are now available
9491           using INVITE and BAN commands.  Updated the protocol specs.
9492
9493         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9494           in the network about change in the current ban list.  The notify
9495           type is not used by the client.
9496
9497         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9498           support the invite lists.
9499
9500 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9501
9502         * Added new function silc_string_regexify that converts string
9503           including wildcard characters into regex string that can
9504           be used by the GNU regex library.  Added into the file
9505           lib/silcutil/silcutil.[ch].
9506
9507           Added silc_string_regex_combine to combine to regex strings
9508           into one so that they can be used as one regex string by
9509           the GNU regex library.  Added into the file
9510           lib/silcutil/silcutil.[ch].
9511
9512           Added silc_string_regex_match to match two strings.  It returns
9513           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9514
9515 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9516
9517         * Imported GNU regex to the soruce tree into lib/contrib.
9518           Fixed some compiler warning from the regex.c.
9519
9520 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9521
9522         * Fixed MOTD command in the server to work in router environment.
9523
9524         * Fixed the MOTD command in the client library to support
9525           the server argument in the command.
9526
9527         * Added `nickname_len' argument to the silc_idlist_add_client
9528           in the server, as the `nickname' argument may be binary data
9529           (it may be hash).
9530
9531         * Added silc_idlist_get_channels to return all channels from
9532           the ID list.
9533
9534         * Implemented LIST command to the server.  Affected file is
9535           silcd/command.c.
9536
9537         * Implemented the LIST command to the client library and on the
9538           user interface.
9539
9540         * Added [<user count>] argument to the LIST command reply.
9541           With private channels the user count is not shown.
9542
9543         * Updated TODO and README.
9544
9545 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9546
9547         * The client entry's data.registered must be TRUE even with
9548           global client entry on global client list.  The data.registered
9549           is used to check whether the client is anymore in the network,
9550           for example with WHOWAS command so it must be valid.
9551
9552         * Fixed the WHOWAS command in the server.  It now actually works
9553           in router environment.  Added function into silcd/command_reply.c
9554           silc_server_command_reply_whowas_save.
9555
9556         * Added silc_idlist_purge function to the silcd/idlist.c
9557           to periodically purge the ID Cache.
9558
9559         * Fixed INFO command in the server.  It works now in router
9560           environment.  Added <server name> argument to the INFO command
9561           reply.  Updated the protocol specs.
9562
9563         * Fixed minor bug in silc_idcache_purge to not purge if the
9564           expire value is zero.
9565
9566         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9567           they were buggy because of the WHOWAS information.
9568
9569         * Fixed local command MSG to handle the async resolving of
9570           the remote client properly.  It used to fail the first MSG.
9571           Affected file silc/local_command.c.
9572
9573         * Added `data_len' field to SilcIDCache context.
9574
9575 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9576
9577         * Update TODO.  Todo in commands in the server.
9578
9579 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9580
9581         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9582           used by routers as broadcast packet to inform other routers
9583           about the changed user mode.
9584
9585           Implemented the notify handling in the server.  Affected file is
9586           silcd/packet_receive.c.  Added the function
9587           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9588
9589         * Added new generic Channel Payload and deprecated the New Channel
9590           Payload.  The New Channel Payload is now the generic Channel
9591           Payload.
9592
9593         * Added new argument `mode' to the silc_server_send_new_channel
9594           as it is required in the Channel Payload now.
9595
9596         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9597           and created a new and real SilChannelPayload to represent the
9598           new generic Channel Payload.  Implemented the encode/decode
9599           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9600
9601         * Added silc_server_get_client_channel_list to return the list
9602           of channels the client has joined for WHOIS command reply.
9603           Affected file silcd/server.[ch].
9604
9605         * Implemented the channel list sending in the WHOIS command reply
9606           in server and in the client.
9607
9608           Implemented the channel list displaying on the user interface
9609           as well.  Affected file silc/client_ops.c.
9610
9611         * Added silc_channel_payload_parse_list to parse list of Channel
9612           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9613           Client for example can use this function to parse the list of
9614           channels it receives in the WHOIS command reply.  The caller
9615           must free the list by calling silc_channel_payload_list_free.
9616           Affected files lib/silccore/silcchannel.[ch].
9617
9618 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9619
9620         * Added one new argument <user mode> to the WHOIS command reply
9621           to return the mode of the user in SILC.  Updated the protocol
9622           specs.
9623
9624           Implemented it to the server and client.
9625
9626 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9627
9628         * Fixed the mode printing on the user interface on joining.
9629           Affected file silc/client_ops.c.
9630
9631         * Implemented the UMODE command and user modes in general to the
9632           client library and to the user interface.
9633
9634         * Implemented the UMODE command to the server.
9635
9636         * The server now sends UNKNOWN_COMMAND error status if client sends
9637           unknown command.  Affected file silcd/command.c.
9638
9639         * All server commands now handle the command identifier the right
9640           way when sending the command reply to the client.  The client can
9641           use to identify the command replies with the identifier.
9642
9643 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9644
9645         * Added silc_server_get_client_route to resolve the route to
9646           the client indicated by the client ID.  Affected file is
9647           silcd/server.[ch].
9648
9649         * Added silc_server_relay_packet as general function to relay
9650           packet to arbitrary destination.  This deprecates functions
9651           like _send_private_message_key, _relay_notify etc.  Affected
9652           file is silcd/packet_send.[ch].
9653
9654           Removed silc_server_send_key_agreement,
9655           silc_server_send_private_message_key and
9656           silc_server_packet_relay_notify functions from the file
9657           silcd/packet_send.[ch].
9658
9659         * Updated TODO.
9660
9661         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9662           server.  Affected file silcd/packet_receive.[ch].
9663
9664         * Implemented the KILL command to the client.  Implemented the
9665           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9666           Affected files lib/silcclient/command[_reply].c and
9667           lib/silcclient/client_notify.c.  Implemented the KILL notify
9668           printing in the user inteface.
9669
9670         * Fixed a lot silc_parse_nick memory leaks from the client
9671           library in the file lib/silcclient/command.c.
9672
9673         * Changed the silc_server_send_notify_on_channels's `sender'
9674           argument from SilcSocketConnection to SilcClientEntry to
9675           check the sender as entry and not as connection object and not
9676           to send to the client provided as argument.  The affected file
9677           is silcd/packet_send.[ch].
9678
9679         * The notify packets that are destined directly to the client used
9680           to not to be processed by the server.  Now changed that and the
9681           server processes all notify packets.  After relaying the packet
9682           to the client the notify packet is processed in the server.
9683
9684         * The silc_server_free_client_data now checks whether there is
9685           pending outgoing traffic for the client and purges the data to
9686           the network before removing the client entry.
9687
9688 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9689
9690         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9691           an client is killed from the SILC Network.  Updated the protocol
9692           specs accordingly.
9693
9694           Added new function silc_server_send_notify_killed to the
9695           silcd/packet_send.[ch].
9696
9697         * Added function silc_server_packet_relay_notify to relay notify
9698           packets that are destined directly to a client.  In this case
9699           the server does not process the notify packets but merely relays
9700           it to the client.  Affected file silcd/packet_send.[ch].
9701
9702           Added also silc_server_packet_process_relay_notify to check
9703           whereto relay the notify.  Affected file is
9704           silcd/packet_receive.[ch].
9705
9706         * Implemented the KILL command to the server.
9707
9708         * Updated TODO.
9709
9710         * Added the backup schema desgined last fall to the protocol
9711           specs for everyone to see.  The specification is in the
9712           *-spec-xx.txt draft and the packet type definitions for the
9713           backup routers is in *-pp-xx.txt draft.  Thusly, added also
9714           new packet type SILC_PACKET_CELL_ROUTERS.
9715
9716         * A big security problem in the implementation discovered.  The
9717           signoff of an client did not cause new channel key generation
9718           which it of course should've done.  The channel keys must be
9719           always re-generated when client leaves (or signoffs) the channel.
9720           The silc_server_remove_from_channels funtion now handles
9721           the channel key re-generation.
9722
9723         * Added `sender' argument to the silc_server_send_notify_on_channels
9724           to not to send the client provided as argument.  Affected file
9725           silcd/packet_send.[ch].
9726
9727 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9728
9729         * Implemented OPER and SILCOPER commands into the server and
9730           the client library.
9731
9732         * Added silc_auth_verify and silc_auth_verify_data to verify
9733           the authentication directly from the authentication payload.
9734           It supports verifying both passphrase and public key based
9735           authentication.  Affected file lib/silccore/silcauth.[ch].
9736
9737         * Added `hash' field to the SilcIDListData structure.  It is the
9738           hash negotiated in the SKE protocol.  Affected file is
9739           silcd/idlist.[ch].
9740
9741         * Slight redesigning of the SilcAuthPayload handling routines.
9742           Do not send SilcPKCS but SilcPublicKey as argument.
9743
9744         * Implemented the public key authentication support to the
9745           serverconfig.  The public key is loaded from the provided path
9746           and saved as authentication data to void * pointer.  Thus,
9747           changed the unsigned char *auth_data to void *auth_data;
9748
9749         * Fixed SHUTDOWN command to send the reply before the server
9750           is shutdown. :)  Affected file silcd/command.c.
9751
9752         * Fixed fatal bug in CONNECT command.  The hostname was invalid
9753           memory and server crashed.  Affected file silcd/command.c.
9754
9755         * Fixed fatal bug in CLOSE command.  The server_entry became
9756           invalid but was referenced later in the command.  Affected file
9757           silcd/command.c.
9758
9759 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9760
9761         * Fixed fatal bug in failure packet handling.  Server ignored
9762           the failure and thus crashed when it came.
9763
9764         * Updated TODO.
9765
9766 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9767
9768         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
9769           that the command may be executed only once in (about) 2 seconds.
9770           The old SILC_CF_LAG flag is same but allows command bursts up
9771           to five before limiting.
9772
9773           Added the support for CF_LAG and CF_LAG_STRICT flags to the
9774           server code.  Various commands now includes the CF_LAG_STRICT
9775           flag to disallow any kind of miss-use of the command.
9776
9777         * Fixed the silc_buffer_unformat to not to allocate any data
9778           if the length of the data is zero.  It used to allocate the
9779           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
9780
9781 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9782
9783         * Changed the format of AdminConnection configuration section
9784           in the server.  Added username of the admin to the format.
9785           Affected files silcd/serverconfig.[ch].
9786
9787           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
9788           to return admin configuration data by host, username and/or
9789           nickname.
9790
9791 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9792
9793         * Implemented WHOWAS command to the server.  Added the functions:
9794
9795           silc_server_command_whowas_parse,
9796           silc_server_command_whowas_send_reply,
9797           silc_server_command_whowas_from_client and
9798           silc_server_command_whowas_from_server
9799
9800         * Added <Client ID> argument to the WHOWAS command reply.  Updated
9801           the protocol specs accordingly.
9802
9803         * Implemented WHOWAS command and command_reply to the client
9804           library.
9805
9806           Implemented the WHOWAS printing on the user interface.
9807
9808 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9809
9810         * Added new argument to the WHOWAS command reply, the real name.
9811           It is an optional argument.  Updated the protocol specs.
9812
9813         * Added SilcIDCacheDestructor callback that is registered when
9814           the SilcIDCache is allocated.  The callback is called when
9815           an cache entry in the ID Cache expires, or is purged from the
9816           cache.  Added into lib/silccore/idcache.[ch].
9817
9818           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
9819           to destruct the client entries when the cache entry expires.
9820           Other ID Cache's in server and in the client library ignores
9821           the destructor.
9822
9823         * If the ID Cache entry's `expire' field is zero then the entry
9824           never expires.  Added boolean `expire' argument to the
9825           silc_idcache_add function in the lib/silccore/idcache.[ch].
9826           If it is TRUE the default expiry value is used.
9827
9828         * Added silc_server_free_client_data_timeout that is registered
9829           when client disconnects.  By default for 5 minutes we preserve
9830           the client entry for history - for WHOWAS command.
9831
9832 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9833
9834         * Added support to the server to enforce that commands are not
9835           executed more than once in 2 seconds.  If server receives
9836           commands from client more frequently, timeout is registered
9837           to process the commands.  Affected file silcd/command.c.
9838           Added new function silc_server_command_process_timeout.
9839
9840         * Changed NICK_NOTIFY handling in client library to check that
9841           if the client's nickname was changed, so there is no need to
9842           resolve anything from the server.
9843
9844         * Removed error printing from the WHOIS and IDENTIFY commands.
9845           If error occurs then it is ignored silently in the client library.
9846           The application, however, may map the received error to
9847           human readable error string.  The application currently maps
9848           the NO_SUCH_NICKNAME error to string.
9849
9850         * Made the command status message public to the application.  Moved
9851           them from lib/silcclient/command_reply.c to
9852           lib/silcclient/command_reply.h.  The application can map the
9853           received command status to the string with the
9854           silc_client_command_status_message function.
9855
9856         * Added check to the server to check that client's ID is same
9857           as the Source ID in the packet the client sent.  They must
9858           match.
9859
9860 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9861
9862         * Added dist-bzip hook to the Makefile.am to make bzip2
9863           compressed distributions.
9864
9865 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9866
9867         * Server now enforces the maximum length for the nickname and
9868           the channel as protocol specification dictates.  128 bytes for
9869           nickname and 256 bytes for channel name.
9870
9871         * Moved the WHOIS printing to the application.  The client libary
9872           does not print out the WHOIS information anymore, the application
9873           must do it.  Renamed silc_client_command_reply_whois_print to
9874           the silc_client_command_reply_whois_save.
9875
9876           The client's idle time is also sent to the application now, and
9877           the idle is shown on screen.
9878
9879         * Added silc_client_command_reply_identify_save to save the
9880           received IDENTIFY entries.
9881
9882         * Do not check for channel private keys in message sending and
9883           reception if the channel does not have the PRIVKEY mode set.
9884           Affected file lib/silclient/client_channel.c.
9885
9886 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9887
9888         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
9889           just surfaced after chaning the JOIN procedure.
9890
9891 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9892
9893         * Added silc_client_get_clients_by_list to get client entries
9894           from Client ID list, that is returned for example by JOIN
9895           and USERS command replies.  The application should use this
9896           function for example when JOIN command reply is received to
9897           resolve the clients already on the channel (library does not
9898           do that anymore as USERS command reply is not used in the JOIN
9899           procedure anymore).  Affected files lib/silcclient/silcapi.h and
9900           lib/silcclient/idlist.c.
9901
9902         * JOIN command reply and USERS command reply returns now SilcBuffer
9903           pointers instead of unsigned char pointers when returning
9904           the client list and mode list.
9905
9906         * Added <Client ID> argument to the JOIN command reply, mainly
9907           for the server to identify for which client the command was
9908           originally sent.  Updated protocol specs accordingly.
9909
9910         * Added SilcDlist private_key pointer to the SilcChannelEntry
9911           in the client to support the channel private keys.  Affected
9912           file is lib/silcclient/idlist.h.
9913
9914         * Added SilcChannelPrivateKey argument to the function
9915           silc_client_send_channel_message so that application can choose
9916           to use specific private ke if it wants to.  If it is not provided,
9917           the normal channel key is used, unless private keys are set.
9918           In this case the first (key that was added first) is used
9919           as the encryption key.
9920
9921         * Implemented the support for channel private key handling.
9922           Implemented the following functions:
9923
9924           silc_client_add_channel_private_key,
9925           silc_client_del_channel_private_keys,
9926           silc_client_del_channel_private_key,
9927           silc_client_list_channel_private_keys and
9928           silc_client_free_channel_private_keys
9929
9930           Affected file lib/silcclient/client_channel.c.
9931
9932         * Added the support for the private keys in the channel message
9933           sending and encryption and in the message reception and
9934           decryption.  Affected funtions are
9935           silc_client_send_channel_message and silc_client_channel_message.
9936
9937 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9938
9939         * Added SKE's key verify callback to the client library's
9940           KE protocol context. Affected files lib/silcclient/protocol.[ch].
9941
9942         * Removed the statement that server (or router) must send USERS
9943           command reply when joining to the channel so that the client
9944           knows who are on the channel.  Instead, the client list and
9945           client's mode list is now sent in the JOIN command reply to the
9946           client who joined channel.  This is better solution.
9947
9948         * Added function silc_server_get_users_on_channel and function
9949           silc_server_save_users_on_channel to the silcd/server.[ch].
9950
9951         * Removed function silc_server_command_send_users from the
9952           silcd/command.c.
9953
9954         * Do not show topic on the client library anymore.  The topic is
9955           sent in the command reply notify to the application and the
9956           application must show the topic now.
9957
9958 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9959
9960         * Added client searching by nickname hash into the IDENTIFY and
9961           WHOIS commands in the server as they were clearly missing from
9962           them.  Affected file is silcd/command.c.
9963
9964         * Fixed a bug in private message receiving in the client library.
9965           The remote ID was freed and it wasn't supposed, now it is
9966           duplicated.
9967
9968 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9969
9970         * Minor fix to the channel payload; allocate the data area, as it
9971           needs to be of specific length.
9972
9973         * If the key agreement port is zero then the operating
9974           system will define the bound port.  Affected files are
9975           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
9976
9977         * Added new function silc_channel_payload_decrypt into the file
9978           lib/silccore/silcchannel.[ch].
9979
9980         * Moved the channel message etc, check from silc_packet_decrypt
9981           to applications.  The library calls now a generic
9982           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
9983           when the packet is either normal or special.  This was done to
9984           allow more wide range of checking that was not allowed when
9985           the code was in library.  Now applications can do virtually any
9986           checks to the packet and return to the library the decision how
9987           the packet should be processed.  Affected files are
9988           lib/silccore/silcpacket.[ch].
9989
9990           Added silc_server_packet_decrypt_check to the server and
9991           silc_client_packet_decrypt_check to the client library.
9992
9993         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
9994           to send with specified source and destination information.
9995
9996         * Channel message delivery between routers was broken after the
9997           channel key distribution was fixed earlier.  The channel key
9998           was used be to distributed to other routers as well which is not
9999           allowed by the protocol.  Now this is fixed and channel keys
10000           really are cell specific and the channel message delivery between
10001           routers comply with the protocol specification.
10002
10003         * Fixed various commands in server to check also the global list
10004           for the channel entry and not just the local list.  The affected
10005           file silcd/command.c.
10006
10007 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10008
10009         * Added assert()s to buffer formatting and unformatting routines
10010           to assert (if --enable-debug) when error occurs.  Affected
10011           file: lib/silcutil/silcbuffmt.c.
10012
10013         * Changed to auto-reconnect to check whether the remote host is
10014           router and register the re-connect timeout if it is.  It used
10015           to check that whether we are normal server, but router must do
10016           auto-reconnect with another router as well.  Affected file
10017           silcd/server.c.
10018
10019         * Removed the [<key len>] option from CMODE command as the cipher
10020           name decides the key length, nowadays.  See the defined ciphers
10021           from the protocol specification.
10022
10023         * Added [<hmac>] option to the CMODE command to define the HMAC
10024           for the channel.  Added SILC_CMODE_HMAC channel mode.
10025
10026         * Added [<hmac>] option for the JOIN command so that user can
10027           select which HMAC is used to compute the MACs of the channel
10028           messages.
10029
10030         * Added Hmac field to the Channel Message Payload.  The integrity
10031           of plaintext channel messages are now protected by computing
10032           MAC of the message and attaching the MAC to the payload.  The
10033           MAC is encrypted.  Now, it is clear that this causes some
10034           overhead to the size of the packet but rationale for this is that
10035           now the receiver can verify whether the channel message decrypted
10036           correctly and also when private keys are set for the channel the
10037           receiver can decrypt the packet with several keys and check from
10038           the MAC which key decrypted the message correctly.
10039
10040         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10041           lib/silccrypt/silccipher.[ch].
10042
10043         * Added silc_hash_len to return the digest length into the
10044           lib/silcrypt/silchash.[ch].
10045
10046         * Rewrote parts of Silc Channel Payload interface in the
10047           lib/silccore/silcchannel.[ch].  The encode function now also
10048           encrypts the packet and parse function decrypts it.
10049
10050 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10051
10052         * Fixed a minor formatting bug in the SKE's key material processing.
10053           It actually might have processed the keys wrong way resulting
10054           into wrong keys.
10055
10056         * Redefined the mandatory HMAC algorithms and added new algorithms.
10057           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10058           and hmac-md5 truncated to 96 bits.  The mandatory is now
10059           hmac-sha1-96.  Rest are optional (including the one that used
10060           to be mandatory).  Rationale for this is that the truncated HMAC
10061           length is sufficient from security point of view and can actually
10062           make the attack against the HMAC harder.  Also, the truncated
10063           HMAC causes less overhead to the packets.  See the RFC2104 for
10064           more information.
10065
10066         * Added new [hmac] configuration section.  The SKE used to use
10067           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10068           is of course wrong.  The official names that must be proposed in
10069           the SKE are the ones defined in the protocol specification
10070           (hmac-sha1-96 for example).  The user can configure any hmac
10071           using any hash function configured in the [hash] section.  At
10072           least, the mandatory must be configured.
10073
10074           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10075
10076         * Added HMAC list to the SKE proposal list.  It has now both
10077           hash algorithm list and HMAC list.  This makes the protocol
10078           incompatible with previous versions.  The SKE now seems to work
10079           the way it is supposed to work, for the first time actually.
10080
10081         * Defined plain Hash algorithms to the protocol specification.
10082           Added sha1 and md5.
10083
10084 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10085
10086         * Implemented support for key agreement packets into the server.
10087           Added functions silc_server_key_agreement and
10088           silc_server_send_key_agreement.  Other than these functions,
10089           server has nothing to do with this packet.
10090
10091         * Added support for private message key packets into the server.
10092           Added functions silc_server_private_message_key and
10093           silc_server_send_private_message_key.
10094
10095         * Updated TODO.
10096
10097         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10098           called in the protocol's final callback instead in the END
10099           protocol state.  This makes a little more sense and in the same
10100           time in client we can use the same protocol routines for normal
10101           key exchange and to key agreement packet handling as well.
10102
10103         * Added to both client's and server's KE protocol context the
10104           SilcSKEKeyMaterial pointer to save the key material.  We will
10105           bring the key material to the protocol's final callback by doing
10106           this.  The final callback must free the key material.
10107
10108         * Added SKE's packet_send callback into client's KE protocol
10109           context so that the caller can choose what packet sending function
10110           is used.  This way we can use different packet sending when
10111           doing normal SKE when doing key agreement packet handling (in
10112           the key agreement packet handling we do not want to encrypt
10113           the packets).
10114
10115         * Implemented the responder side of the key agreement routines
10116           in the client.  The client can now bind to specified port and
10117           accept incoming key negotiation.  The key material is passed
10118           to the application after the protocol is over.
10119
10120         * Implemented the processing of incoming Key Agreement packet
10121           in the client.  Added function silc_client_key_agreement to
10122           process the packet.
10123
10124         * Implemented the intiator side of the key agreement routines
10125           in the client.  The client can now initiate key agreement with
10126           another remote client.  The key material is passed to the
10127           application after the protocol is over.
10128
10129         * Created client_keyagr.c to include all the key agreement
10130           routines.
10131
10132         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10133           SILC_TASK_CALLBACK except that it is not static.
10134
10135         * Created client_notify.c and moved the Notify packet handling
10136           from the client.[ch] into that file.
10137
10138         * Created client_prvmsg.c and moved all private message and
10139           private message key routines from the client.[ch] into that file.
10140
10141         * Create client_channel.c and moved all channel message and
10142           channel private key routines from the client.[ch] into that file.
10143
10144         * Changed silc_client_get_client_by_id_resolve to resolve with
10145           WHOIS command instead of IDENTIFY command, in the file
10146           lib/silclient/idlist.c.
10147
10148 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10149
10150         * Implemented the SKE's responder side to the Client library.
10151
10152         * When FAILURE is received to the protocol do not trust it
10153           blindly.  Register a timeout to wait whether the remote closes
10154           the connection as it should do it, only after that process the
10155           actual failure.  This was changed to both client and server.
10156
10157         * Added client_internal.h to include some of the structures
10158           there instead of client.h in lib/silcclient/.
10159
10160         * Added function silc_task_unregister_by_callback to unregister
10161           timeouts by the callback function.
10162
10163 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10164
10165         * Some "Incomplete WHOIS info" errors has been appearing on the
10166           log files.  Took away the entry->userinfo check from WHOIS
10167           reply sending.  The entry->userinfo is now " " if client did not
10168           provide one.  I thought this was fixed earlier but something
10169           is wrong still.  Let's see if the error still appears.
10170
10171 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10172
10173         * Fixed a minor bug in the login when the channel key is
10174           re-generated in the server.  It used to generate the key in
10175           wrong order and thus caused problems in the channel traffic.
10176
10177         * Fixed a minor bug in channel key distsribution after
10178           KICK command.  The key was not sent to the router even though
10179           it should've been.
10180
10181 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10182
10183         * Added silc_ske_process_key_material_data as generic routine
10184           to process any key material as the SILC protocol dictates.  The
10185           function is used by the actual SKE library but can be used by
10186           applications as well.  This relates to the private message keys
10187           and the channel private keys since they must be processed the
10188           same way the normal SILC session keys.  The protocol dictates
10189           this.  Affected files: lib/silcske/silcske.[ch].
10190
10191           Added also silc_ske_free_key_material to free the
10192           SilcSKEKeyMaterial structure.
10193
10194         * Defined silc_cipher_set_key function to set the key for
10195           cipher without using the object's method function.  The affected
10196           files: lib/silccrypt/silccipher.[ch].
10197
10198         * Implemented silc silc_client_add_private_message_key,
10199           silc_client_add_private_message_key_ske,
10200           silc_client_del_private_message_key,
10201           silc_client_list_private_message_keys and
10202           silc_client_free_private_message_keys functions in the
10203           client library.
10204
10205           Added functions silc_client_send_private_message_key to send
10206           the Private Message Key payload and silc_client_private_message_key
10207           to handle incoming Private Message Key payload.
10208
10209         * Added Cipher field to the Private Message Key payload to set
10210           the cipher to be used.  If ignored, the default cipher defined
10211           in the SILC protocol (aes-256-cbc) is used.
10212
10213 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10214
10215         * Removed lib/silcclient/ops.h file.
10216
10217           Redefined parts of the SILC Client Library API. Created new
10218           file silcapi.h that deprecates the ops.h file and defines the
10219           published Client Library API.  Defined also private message key
10220           API and channel private key API into the file.
10221
10222           This is the file that the application must include from the
10223           SILC Client Library.  Other files need not be included by
10224           the application anymore.
10225
10226         * Added new key_agreement client operation callback and also
10227           defined the Key Agreement library API for the application.
10228
10229 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10230
10231         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10232           is used by clients to request key negotiation  between another
10233           client in the SILC network.  If the negotiation is started it
10234           is performed using the SKE protocol.  The result of the
10235           negotiation, the secret key material, can be used for example
10236           as private message key.
10237
10238           Implemented the Key Agreement payload into the files
10239           lib/silccore/silauth.[ch].
10240
10241 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10242
10243         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10244           and defined the key lengths for the algorithms.  Changed the
10245           code accordingly.  The default key length is now 256 bits.
10246
10247         * Fixed SKE key distribution function silc_ske_process_key_material
10248           when the key length is more than 128 bits.  The default key
10249           length in SILC is now 256 bits.
10250
10251         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
10252           to indicate unsupported algorithm.
10253
10254         * Renamed rijndael.c to aes.c and all functions as well.
10255
10256         * Fixed a long standing channel key setting bug in client library.
10257           Weird that it has never surfaced before.
10258
10259         * Fixed bug in channel deletion.  If the entire channel is removed
10260           then it must also delete the references of the channel entry
10261           from the client's channel list as the client's channel entry and
10262           the channel's client entry share same memory.
10263
10264 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10265
10266         * Implemented CONNECT and SHUTDOWN commands in the client.
10267
10268         * Implemented CLOSE command to the client.
10269
10270         * Added the function silc_idlist_find_server_by_name into the
10271           files silcd/idlist.[ch].
10272
10273           Added the function silc_idlist_find_server_by_conn into the
10274           files silcd/idlist.[ch].
10275
10276 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10277
10278         * DIE command was renamed to SHUTDOWN.  Updated the both code
10279           and protocol specs.
10280
10281         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
10282           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
10283
10284         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
10285           side.
10286
10287         * Added function silc_server_create_connection function to create
10288           connection to remote router.  My server implementation actually
10289           does not allow router to connect to normal server (it expects
10290           that normal server always initiates the connection to the router)
10291           so the CONNECT command is only good for connecting to another
10292           router.
10293
10294 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10295
10296         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
10297           or some other client was kicked from the channel.
10298
10299           Implemented the handling of the notify type to both client
10300           and server.
10301
10302           Implemented silc_server_send_notify_kicked to send the KICKED
10303           notify.  It is used to send it to the server's primary router.
10304
10305         * Implemented the KICK command into server and client.
10306
10307         * Added `query' argument to the silc_idlist_get_client function
10308           to indicate whether to query the client from server or not if
10309           it was not found.
10310
10311         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
10312           to indicate that the client is not channel founder.
10313
10314         * Updated TODO.
10315
10316 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10317
10318         * Removed the rng context from SilcPacketContext structure and
10319           changed that the packet routine uses the Global RNG API.
10320
10321 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10322
10323         * Added support for quit message that client can "leave" on the
10324           channel when it quits the SILC.  It is ditributed inside the
10325           SILC_NOTIFY_TYPE_SIGNOFF notify type.
10326
10327           Added silc_server_free_client_data that will take the
10328           signoff message as argument.
10329
10330         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
10331
10332 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10333
10334         * Updated parts of the protocol specification to keep it up
10335           to date.
10336
10337 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10338
10339         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
10340           payloads in one packet.
10341
10342         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
10343           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
10344           use now the new List flag.
10345
10346         * Also deprecated the following packet types: REPLACE_ID,
10347           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
10348
10349         * Added list support for Notify packet in server.
10350
10351         * Added silc_server_send_notify_channel_change to send the
10352           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
10353           the silc_server_send_replace_id.
10354
10355         * Added silc_server_send_notify_nick_change to send the
10356           NICK_CHANGE notify type.  Deprecates the function
10357           silc_server_send_replace_id.
10358
10359         * Added silc_server_send_notify_join to send the JOIN notify type.
10360           Deprecates the function silc_server_send_new_channel_user.
10361
10362         * Added silc_server_send_notify_leave to send LEAVE notify type.
10363           Deprecates the function silc_server_send_remove_channel_user.
10364
10365         * Added silc_server_send_notify_cmode and
10366           silc_server_send_notify_cumode to send CMODE and CUMODE notify
10367           types.  Deprecates the silc_server_send_set_mode function.
10368
10369         * Added SERVER_SIGNOFF notify type to indicate that server has
10370           quit.  This means that all clients on the channel from that
10371           server will drop.  This can be also used when netsplit happens.
10372
10373           Deprecated REMOVE_ID packet type since it is not needed anymore
10374           even from server.
10375
10376           Added silc_server_send_notify_server_signoff to send the
10377           SERVER_SIGNOFF notify type.  Deprecates the function
10378           silc_server_send_remove_id.
10379
10380           Added also silc_server_send_notify_signoff to send the
10381           SIGNOFF notify type.
10382
10383         * Employed the PKCS #1. It is the mandatory way to do RSA in the
10384           SILC protocol from this day on.  Changed the protocol
10385           specification as well.
10386
10387         * Added silc_server_send_notify_topic_set to send TOPIC_SET
10388           notify type.  It is used between routers to notify about
10389           topic changes on a channel.
10390
10391         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
10392           ID data.
10393
10394         * Partly updated the protocol specification to comply with the
10395           changes now made.  It is still though a bit outdated.
10396
10397         * The JOIN notify type now takes one extra argument <Channel ID>.
10398           The packet used to be destined to the channel but now the
10399           JOIN type may be sent as list thus it is impossible to
10400           destine it to any specific channel.  By adding this argument
10401           it is again possible.
10402
10403 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10404
10405         * Added CREDITS file.  The CHANGES and CREDITS file will appear
10406           in the distribution as well.
10407
10408 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10409
10410         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
10411           types in the server's silcd/packet_receive.c.
10412
10413         * Implemented CMODE and CUMODE to work in router environment.
10414
10415         * Fixed minor encoding and decoding buglet from the
10416           lib/silccore/silcmode.c.
10417
10418         * Fixed buffer overflow from lib/silcclient/command.c in USERS
10419           command parsing.
10420
10421 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
10422
10423         * Changed all SilcConfigServer* and silc_config_server* to
10424           SilcServerConfig* and silc_server_config*, respectively.
10425           Patch by Bostik.
10426
10427 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10428
10429         * Associated the ID (client or server ID) to the Authentication
10430           Payload to avoid any possibility of forging.  Updated the
10431           protocol specification and the code accordingly.
10432
10433 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10434
10435         * The RSA key length is now save to the RsaKey context in the
10436           key generation process in lib/silccrypt/rsa.c.  The key length
10437           is now used to figure out the maximum size of the block allowed
10438           to be encrypted/signed.
10439
10440         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
10441           is equivalent to the silc_mp_mp2bin but does not allocate any
10442           memory.
10443
10444         * Changed silc_mp_mp2bin API to take length argument.  If it is
10445           non-zero then the buffer is allocated that large.  If zero, then
10446           the size is approximated using silc_mp_sizeinbase, which however
10447           is not relieable.
10448
10449         * Created Global RNG API which is global RNG that application can
10450           initialize.  After initializing, any routine anywhere in the
10451           code (including library) can use RNG without allocating a new
10452           RNG object.  This was done to allow this sort of use of the
10453           RNG in code that has no chance to allocate RNG object.  All
10454           applications currently allocate this and many routines in the
10455           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10456
10457         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10458           it to use the Global RNG API.
10459
10460         * Defined Authentication Payload into protocol specification that
10461           is used during SILC session to authenticate entities.  It is
10462           used for example by client to authenticate itself to the server
10463           to obtain server operator privileges.
10464
10465           Implemented this payload into the lib/silccore/silcauth.[ch].
10466           Implemented also routines for public key based authentication
10467           as the new protocol specification dictates.
10468
10469           Moved definitions of different authentication methods from
10470           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10471
10472         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10473           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10474           silc_pkcs_verify_with_hash functions into the file
10475           lib/silccrypt/silcpkcs.[ch].
10476
10477 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10478
10479         * The client entry's userinfo pointer must be always valid.
10480           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10481           will fail since it requires the userinfo.  Now, the userinfo
10482           is allocated as "" if actual userinfo does not exist.  Actually,
10483           it must exist and it is totally Ok to drop client connections
10484           that does not announce the userinfo.  However, we will make
10485           this workaround for now.
10486
10487         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10488           to return the remote port by socket.
10489
10490 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10491
10492         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10493           SILC_SERVER_PENDING_EXEC and added an new macro
10494           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10495           data or when error occurs while processing the pending command.
10496
10497           Added new argument `destructor' into silc_server_command_pending
10498           and to the SilcServerCommandPending object.  This destructor is
10499           now called after calling the pending callback or if error occurs
10500           immediately.  If error occurs the actual pending callback won't
10501           be called at all - only the destructor.  The destructor may be
10502           NULL if destructor is not needed.
10503
10504           All this applies for client library code as well.  Similar
10505           changes were made there as well for the pending commands.
10506
10507           In the client, the application must now allocate the
10508           SilcClientCommandContext with the silc_client_command_alloc
10509           function.
10510
10511         * Added reference counter to the SilcServerCommandContext.  Added
10512           function silc_server_command_alloc and silc_server_command_dup
10513           functions.
10514
10515           Same type of functions added to the client library for the same
10516           purpose as well.
10517
10518         * Removed the cmd_ident from IDListData away since it is now
10519           global for all connections.  It is the command identifier used
10520           in command sending and with pending commands.  The affected file
10521           is silcd/idlist.h.
10522
10523         * Added reference counter to the SilcSocketConnection objecet to
10524           indicate the usage count of the object.  The object won't be
10525           freed untill the reference counter hits zero.  Currently only
10526           server uses this, and client ignores it.  The client must be
10527           set to use this too later.  The affected files are
10528           lib/silccore/silcsockconn.[ch].  Added also the function
10529           silc_socket_dup to increase the reference counter.
10530
10531           This was mainly added because it is possible that the socket
10532           is removed underneath of pending command or other async
10533           operation.  Now it won't be free'd and proper DISCONNECTING
10534           flags, etc. can be set to avoid sending data to connection that
10535           is not valid anymore.
10536
10537         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10538           the connection.  After that it sets SILC_SET_DISCONNECTED.
10539           It is, however, possible that the socket data is not still freed.
10540           The silc_server_packet_process now checks that data is not
10541           read or written to connection that is DISCONNECTED.  The socket
10542           get's freed when the reference counter hits zero.
10543
10544 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10545
10546         * Changed the client operation API: channel_message operation's
10547           `sender' is now the client entry of the sender, not the nickname
10548           and the `channel' is the channel entry, not the channel name.
10549
10550           In the private_message operation the `sender' is now also the
10551           client entry of the sender not the nickname.
10552
10553           Affected file is lib/silcclient/ops.h and all applications
10554           using the client operations.
10555
10556 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10557
10558         * Moved the calling of ops->connect() from connect_to_server_final
10559           into receive_new_id functin since that is the point when the
10560           client is actually allowed to send traffic to network.  The
10561           affected file is lib/silcclient/client.c.
10562
10563 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10564
10565         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10566           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10567           (if needs broadcasting) instead of broadcasting the packets one
10568           by one which would make a burst in the network traffic.
10569
10570         * Added `broadcast' argument to the functions in silcd/server.[ch]
10571           silc_server_create_new_channel[_with_id] to indicate whether
10572           to send New Channel packet to primary router.
10573
10574 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10575
10576         * Added new function into the silcd/server.[ch] files:
10577           silc_server_create_new_channel_with_id to create new channel with
10578           already existing Channel ID.
10579
10580         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10581           lib/silccore/silcpacket.h.  This packet is used t send list of
10582           Set Mode payloads inside one packet.  Server uses this to set
10583           the modes for the channels and clients on those channels, that it
10584           announced to the router when it connected to it.  The protocol
10585           specification has been updated accordingly.
10586
10587         * The silc_server_new_channel did not handle the packet coming
10588           from normal server as it normally does not send that.  However,
10589           when it announces its channels it does send it.  Implemented
10590           the support for that.
10591
10592         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10593           into the file lib/silccore/id.h.
10594
10595 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10596
10597         * Fixed memory leaks in the functions silc_idlist_del_client,
10598           silc_idlist_del_channel and silc_idlist_del_server in the file
10599           silcd/idlist.c.  All of those leaked like a sieve.
10600
10601         * Fixed some small memory leaks in the client's function
10602           silc_client_notify_by_server.
10603
10604         * Added functions into silcd/server.c: silc_server_announce_clients,
10605           silc_server_announce_channels and silc_server_announce_server.
10606           These functions are used by normal and router server to announce
10607           to its primary router about clients, channels and servers (when
10608           router) that we own.  This is done after we've connected to the
10609           router.
10610
10611           These functions effectively implements the following packet types:
10612           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10613           and SILC_PACKET_NEW_ID_LIST.
10614
10615         * Added new functions into the silcd/packet_receive.[ch]:
10616           silc_server_new_id_list, silc_server_new_channel_list and
10617           silc_server_new_channel_user_list to handle the incoming
10618           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10619
10620         * Added support of changing Channel ID in the function
10621           silc_server_replace_id.  If the server that announces a channel
10622           to the router already exists in the router (with same name but
10623           with different Channel ID), router is responsible to send
10624           Replace ID packet to the server and force the server to change
10625           the Channel ID to the one router has.
10626
10627         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10628           client that the Channel ID has been changed by the router.  The
10629           normal server sends this to the client.  Client must start using
10630           the new Channel ID as the channel's ID.
10631
10632           Implemented handling of this new type into lib/silcclient/client.c
10633           into the function silc_client_notify_by_server.
10634
10635         * Added new function silc_idlist_replace_channel_id into the files
10636           silcd/idlist.[ch] to replace the Channel ID.
10637
10638 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10639
10640         * Call silc_server_command_identify_check always when processing
10641           the IDENTIFY command in silcd/command.c
10642
10643 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10644
10645         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10646           send keepalive packets.  The packet can be sent by clients,
10647           servers and routers.
10648
10649           Added function silc_socket_set_heartbeat into the file
10650           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10651           If not set, the heartbeat is not performed.  The actual
10652           heartbeat is implemented in the low level socket connection
10653           library.  However, application is responsible of actually
10654           sending the packet.
10655
10656           Added silc_server_send_heartbeat to send the actual heartbeat
10657           packet into silcd/packet_send.[ch].  Server now performs
10658           keepalive with all connections.
10659
10660         * Added silc_task_get_first function into lib/silcutil/silctask.c
10661           to return the timeout task with shortest timeout.  There was a bug
10662           in task unregistration that caused problems.  TODO has been
10663           updated to include that task system must be rewritten.
10664
10665         * The client library will now resolve the client information when
10666           receiving JOIN notify from server for client that we know but
10667           have incomplete information.
10668
10669         * Rewrote parts of silc_server_remove_from_channels and
10670           silc_server_remove_from_one_channel as they did not remove the
10671           channel in some circumstances even though they should've.
10672
10673         * Encryption problem encountered in server:
10674
10675           The LEAVE command used to send the Channel Key packet to the
10676           router immediately after generating it.  However, the code
10677           had earlier sent Remove Channel user packet but not immediately,
10678           ie. it was put to queue.  The order of packets in the router
10679           was that Channel Key packet was first and Remove Channel User
10680           packet was second, even though they were encrypted in the
10681           reverse order.  For this reason, MAC check failed.  Now, this
10682           is fixed by not sending the Channel Key packet immediately but
10683           putting it to queue.  However, this is more fundamental problem:
10684           packets that are in queue should actually not be encrypted
10685           because packets that are sent immediately gets encrypted
10686           actually with wrong IV (and thus MAC check fails).  So, packets
10687           that are in queue should be encrypted when they are sent to
10688           the wire and not when they put to the queue.
10689
10690           However, the problem is that the current system has not been
10691           designed to work that way.  Instead, the packet is encrypted
10692           as soon as possible and left to the queue.  The queue is then
10693           just purged into wire.  There won't be any fixes for this
10694           any time soon.  So, the current semantic for packet sending
10695           is as follows:
10696
10697           o If you send packet to remote host and do not force the send
10698           (the packet will be in queue) then all subsequent packets to the
10699           same remote host must also be put to the queue.  Only after the
10700           queue has been purged is it safe again to force the packet
10701           send immediately.
10702
10703           o If you send all packets immediately then it safe to send
10704           any of subsequent packets through the queue, however, after
10705           the first packet is put to queue then any subsequent packets
10706           must also be put to the queue.
10707
10708           Follow these rules and everything works fine.
10709
10710 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10711
10712         * Added new function silc_server_remove_clients_by_server to
10713           remove all client entries from ID list when the server connection
10714           is lost.  In this case it is also important to invalidate all
10715           client entires as they hold the invalid server entry.  This
10716           fixes fatal bug when server has lost connection and will reconnect
10717           again.
10718
10719 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10720
10721         * Made some sanity checks to silc_server_daemonise like to check
10722           whether the requested user and group actually exists.
10723
10724         * Added sanity check to SKE's silc_ske_responder_finish to check
10725           that the public and private key actually is valid.
10726
10727         * Invalidate the client's nickname when receiving Replace ID
10728           packet and the Client ID is being replaced.  This means that the
10729           server will query the nickname if someone needs it (client)
10730           a bit later.
10731
10732         * Sort the ID Cache in client library when the ID Cache data
10733           has changed (needs sorting).
10734
10735         * Do not allow for SILC client to create several connections to
10736           several servers.  The client does not support windows right now
10737           and generating multiple connections causes weird behaviour.
10738
10739           Irssi-silc client does support windows and can handle several
10740           connections without problems, see: www.irssi.org and SILC plugin.
10741
10742         * Fixed some places where client was added to the IDList.  The
10743           rule of thumb is following (in order to get everything right):
10744           If the client is directly connected local client then the
10745           `connection' argument must be set and `router' argument must be
10746           NULL to silc_idlist_add_client function.  If the client is not
10747           directly connected client then the `router' argument must
10748           bet set and the `connection' argument must be NULL to the
10749           silc_idlist_add_client function.
10750
10751         * The funtion silc_server_packet_send_local_channel actually did
10752           not check whether the client was locally connected or not.  It
10753           does that now.  Fixed a bug related to LEAVE command.
10754
10755         * Fixed Remove Channel User payload parsing bug in server's
10756           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
10757
10758         * The server's silc_server_save_channel_key now checks also the
10759           global ID list for the channel as it might not be in the local
10760           list.  Fixed a bug related to LEAVE command.
10761
10762         * Is this the end of the [<unknown>] buglet that has been lurking
10763           around for a long time?  A little for loop fix in server's
10764           silc_server_command_whois_parse that is used by both IDENTIFY
10765           and WHOIS command.  At least, this was a clear bug and a cause
10766           of one type of [<unknown>] buglet.
10767
10768         * WHOIS and IDENTIFY commands call the function
10769           silc_server_command_[whois/identify]_check function even if
10770           we are not router server.
10771
10772 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10773
10774         * Added --with-gmp configuration option.  If set the GMP
10775           is always compiled in the SILC source tree.  If not set then
10776           it is checked whether the system has the GMP3 installed.  If
10777           it has then the GMP won't be compiled (the system's headers
10778           and library is used), if it doesn't have it then the GMP is
10779           compiled in the SILC source tree.
10780
10781 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10782
10783         * Changed RSA private exponent generation to what PKCS #1
10784           suggests.  We try to find the smallest possible d by doing
10785           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
10786           not security fix but optimization.
10787
10788 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10789
10790         * Added new config entry [Identity] to fork the server and run
10791           it as specific user and group.  A patch from Bostik.
10792
10793         * Imported Dotconf configuration library into lib/dotconf.
10794           This will be used to create the SILC configuration files later.
10795           It will appear in the distsribution after this commit.
10796
10797 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10798
10799         * A big code auditing weekend happening.  Auditing code for
10800           obvious mistakes, bugs and errors.  Also, removing any code
10801           that is obsolete.
10802
10803           Removed files for being obsolete:
10804
10805           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
10806           inline in the file lib/silcutil/silcbuffer.h)
10807
10808           o lib/silcutil/silcbufutil.c (the header has inline versions)
10809
10810           Changed code to fix possible error conditions:
10811
10812           o The buffer formatting routines now check that the destination
10813           buffer really has enough space to add the data.  This applies for
10814           both buffer formatting and unformatting
10815           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
10816           unformatting was changed to accomodate following rules:
10817           XXX_*STRING_ALLOC will allocate space for the data into the pointer
10818           sent to the function while XXX_*STRING will not allocate or copy
10819           the data into the buffer.  Instead it sets the pointer from the
10820           buffer into the pointer sent as argument (XXX_*STRING used to
10821           require that the pointer must be allocated already).  This change
10822           makes this whole thing a bit more consistent and more optimized
10823           (note that the data returned in the unformatting with XXX_*STRING
10824           must not be freed now).  The routines return now -1 on error.
10825
10826           o Tried to find all code that use buffer_format and buffer_unformat
10827           and added return value checking to prevent formatting and
10828           especially unformatting errors and possible subsequent fatal
10829           errors.
10830
10831           o Changed ske->x and ske->KEY to mallocated pointers in
10832           lib/silcske/silcske.h.  Fixed possible data and memory leak.
10833
10834           o Added return value checking to all *_parse* functions.  Fixed
10835           many memory leaks as well.
10836
10837           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
10838           so that buffer overflows would not happen.  All code now also
10839           checks the return value as it can fail.
10840
10841 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10842
10843         * Added reconnection support to server if the normal server looses
10844           its connection to the router (for example if router is rebooted).
10845           The server performs normal reconnection strategy implemented
10846           to the server.  Affected file silcd/server.c.
10847
10848 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10849
10850         * Added new packet type SILC_PACKET_SET_MODE that is used to
10851           distribute the information about changed modes (for clients,
10852           channels and clients channel modes) to all routers in the
10853           network.  Updated the protocol specification accordingly.
10854
10855           Added functions into silcd/packet_send.c and
10856           silcd/packet_receive.c: silc_server_send_set_mode,
10857           silc_server_set_mode.
10858
10859           Added new files silcmode.[ch] into lib/silccore that implements
10860           the encoding and decoding of Set Mode Payload.  Added new type
10861           SilcSetModePayload.  Moved the definitions of different modes
10862           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
10863
10864 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10865
10866         * Oops, a little mistake in server's connection authentication
10867           protocol.  The protocol is not ended with FAILURE but with
10868           SUCCESS if the authentication is Ok. :)  Affected file is
10869           silcd/protocol.c.
10870
10871         * Implemented NICK_CHANGE notify handling in server in the file
10872           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
10873           the local clients on the channel.  After the changing nickname
10874           in router environment snhould work and the [<unknown>] nickname
10875           should appear no more.
10876
10877           The silc_server_replace_id function that receives the Replace ID
10878           payload now sends the NICK_CHANGE notify type also in the file
10879           silcd/packet_receive.c
10880
10881         * Changed WHOIS and IDENTIFY command to support the maximum amount
10882           of arguments defined in protocol specs (3328 arguments).  This
10883           fixed a bug that caused problems when there were more than three
10884           users on a channel.
10885
10886 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10887
10888         * Added extra parameter, command identifier, to the
10889           silc_client_send_command so that explicit command identifier
10890           can be defined.
10891
10892           Changed that ID list routines uses specific command identifier
10893           when sending WHOIS/IDENTIFY requests to the server so that they
10894           can be identified when the reply comes back.
10895
10896           Affected files lib/silcclient/command.[ch],
10897           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
10898
10899         * Added `sender' argument to silc_server_packet_send_to_channel
10900           to indicaet the sender who originally sent the packet to us
10901           that we are now re-sending.  Ignored if NULL.  Affected file
10902           silcd/packet_send.[ch].
10903
10904         * Added some server statistics support in silcd/server_internal.h
10905           SilcServerStatistics structure and around the server code.  Also
10906           send some nice statistics information when client is connecting
10907           to the client.
10908
10909 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10910
10911         * Fixed channel ID decoding in server's JOIN command reply in
10912           silcd/command_reply.c
10913
10914         * Fixed braodcasting of replace ID payload to not to send it if
10915           we are standalone server in silcd/packet_receive.c.
10916
10917         * Fixed all channel message sending routines to not to send
10918           packets to clients that has router set, since they are routed
10919           separately in the same function earlier.  Affects file
10920           silcd/packet_send.c and all channel packet sending functions.
10921
10922         * In USERS reply, res_argv[i] are not allocated, the table
10923           is allocated.  Thus changed that free the table, not its
10924           internals.
10925
10926         * In server's whois_check and identify_check if the client is
10927           locally connected do not send any WHOIS commands - they are not
10928           needed.
10929
10930 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10931
10932         * Fixed some minor bugs in client when sending WHOIS command.  The
10933           arguments was in wrong order.
10934
10935         * Removed statis function add_to_channel from server in
10936           silcd/command.c that was previously used with the joining but
10937           is obsolete now.
10938
10939         * Tested USERS command in router environment successfully with two
10940           routers, two servers and two clients.
10941
10942 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10943
10944         * Reorganized the USERS command and command reply in client library
10945           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
10946           When the command is given by user we register a pending command
10947           callback that will reprocess the command after the reply has been
10948           received from the server.  When reprocessing the packet we then
10949           display the information.  Thus, the USERS information is displayed
10950           now in the command callback instead of in the command reply
10951           callback.  The processing of the command is same as previously
10952           when server has sent the command reply in the JOINing process.
10953
10954         * Added to USERS command in silcd/command_reply.c to join the client,
10955           we didn't use to know about, to the channel after we've created
10956           a client entry for it.  Also, for clienet we did know already still
10957           check whether it is on the channel or not and add it if not.
10958
10959         * Removed silc_server_command_join_notify as the function and its
10960           use was obsolete.
10961
10962 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10963
10964         * Changed the client's pending command handling to the same as the
10965           server's pending command handling.  It is also now possible to
10966           execute command reply functions from other command reply
10967           function as the function callbacks for commands and command
10968           replies are one and same.  The pending commands are not static
10969           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
10970           in client connection context.  Thus, pending commands are server
10971           connection specific as it is convenient.
10972
10973           Changed the function silc_client_command_pending and
10974           silc_client_command_pending_del and added new function
10975           silc_client_command_pending_check.  Removed the
10976           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
10977           macros.
10978
10979         * Added cmd_ident, current command identifier, to the client
10980           connection context in lib/silcclient/client.h to keep track on
10981           command identifiers used in command sending.  Client's command reply
10982           function handling now supports the mandatory command identifiers.
10983
10984         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
10985           funtions in client to fully support pending command callbacks.
10986
10987         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
10988           as one of the arguments to the application in the command reply
10989           client operation.
10990
10991         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
10992           before first releasing SILC but came back.  Now it is removed again
10993           and should come back nomore.  The FORWARDED flag was used only
10994           by the JOINing procedure by forwarding the command packet to router.
10995           Now, the JOINing procedure has been changed to more generic (due
10996           to various router environment issues) and FORWARDED is not needed
10997           anymore for anything.  The protocol specification is yet to be
10998           updated.
10999
11000           Now, removed silc_server_packet_forward from server and the flag
11001           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11002
11003 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11004
11005         * Renamed NAMES command to USERS command.  The NAMES was named that
11006           due to historical reasons.  Now it is renamed.  Also, rewrote
11007           parts of the USERS command.  The nickname list is not sent anymore
11008           by the server.  Only Client ID and mode lists are sent in the USERS
11009           command.  Changed this also to the protocol specification.
11010
11011           The client now resolves the names and stuff after it receives
11012           the USERS list from the server when joining to the channel.
11013
11014         * WHOIS and IDENTIFY commands has been changed to support multiple
11015           Client ID's per command.  One can now search for multiple users
11016           in the network by sending only one WHOIS or IDENTIFY command.
11017           Changed the code and the protocol specifications.
11018
11019         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11020           uses silc_server_command_whois_parse to parse the request. */
11021
11022         * If normal server, do not parse the WHOIS and IDENTIFY requests
11023           before sending it to the router.  Saves some time.
11024
11025 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11026
11027         * Fixed JOIN command on client library.  Wrong number of arguments
11028           used to crash the client.
11029
11030         * Added silc_server_channel_has_global function to check whether
11031           channel has global users or not.
11032
11033         * Added silc_server_channel_has_local function to check whether channel
11034           has locally connected clients on the channel.
11035
11036         * The silc_server_remove_from_one_channel now checks whether the
11037           channel has global users or not after given client was removed from
11038           the channel.  It also checks whether the channel has local clients
11039           on the channel anymore.  If it does not have then the channel entry
11040           is removed as it is not needed anymore.
11041
11042         * The silc_server_notify now checks on JOIN notify whether the joining
11043           client is one of locally connected or global.  If it is global then
11044           the channel has now global users on the channel and that is marked
11045           to the channel entry.  Also, it now saves the global client to
11046           global list who is joining and JOINs it to the channel.  This is
11047           for normal server, that is.
11048
11049           Changed silc_server_send_notify_on_channel,
11050           silc_server_packet_relay_to_channel and
11051           silc_server_packet_send_to_channel check if we are normal server
11052           and client has router set (ie. global client) do not send the
11053           message to that client, as it is already routed to our router.
11054
11055         * Implemented LEAVE notify type handling in silc_server_notify
11056           function.
11057
11058         * Tested LEAVE command in router environment successfully.  Tested
11059           with two routers, two servers and two clients.
11060
11061         * Updated TODO.
11062
11063         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11064
11065         * Implemented SIGNOFF notify type handling in silc_server_notify
11066           function.
11067
11068         * silc_server_remove_id now removes the client entry from all channels
11069           it has joined and thusly sends SIGNOFF notify type.
11070
11071         * Rewrote the NAMES list generation in server by removing two excess
11072           loops.  The lists are created now inside one loop.
11073
11074 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11075
11076         * silc_server_remove_channel_user checks now also global list
11077           for channel and client.
11078
11079         * silc_server_new_channel_user checks now both local and global
11080           list for channel and client.  Fixed a bug in client id decoding.
11081           Used to decode wrong buffer.
11082
11083         * silc_server_channel_message checks now both local and global
11084           list for channel entry.
11085
11086         * Tested channel joining (hence JOIN) in router environment
11087           successfully.  Tested with two routers, two servers and two
11088           clients.
11089
11090         * Tested channel message sending in router environment successfully.
11091
11092 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11093
11094         * Added silc_server_save_channel_key into server.[ch] to save the
11095           received channel key in Channel Key payload processing. It is
11096           also used in JOIN command reply handling.
11097
11098           Equivalent function silc_client_save_channel_key added into
11099           client.[ch] into client library.
11100
11101         * Changed JOIN command reply to send information whether the channel
11102           was created or not (is existing already) and the channel key
11103           payload.  Changed protocol specs accordingly.
11104
11105         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11106           the request was sent by ID and not by nickname.  Crashed on
11107           NULL dereference.
11108
11109 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11110
11111         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11112           now correctly save the received data.
11113
11114         * silc_server_free_sock_user_data now notifies routers in the
11115           network about entities leaving the network.
11116
11117           At the same time implemented functions silc_server_remove_id
11118           and silc_server_send_remove_id to receive and send REMOVE_ID
11119           packets.  The packet is used to notify routers in the network
11120           about leaving entities.  The ID removed will become invalid in
11121           the network.
11122
11123         * Added function silc_idlist_del_server into server. Removes and
11124           free's server entry from ID list.
11125
11126         * silc_server_private_message function now checks, if we are router,
11127           that the destination ID really is valid ID, naturally.
11128
11129         * In router when NEW_ID packet is received (for new client) the
11130           hash of the Client ID is saved in the ID Cache but the
11131           client->nickname is set to NULL, instead of putting the hash
11132           to it as well.
11133
11134           IDENTIFY command now also checks that client->nickname must be
11135           valid. If it is not if will request the data from the server who
11136           owns the client.  Added new function
11137           silc_server_command_identify_check.
11138
11139         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11140           to set the command to already allocated Command Payload.
11141
11142         * Tested private message sending in router environment with two
11143           routers, two servers and two clients.  Fixed minor bugs and now
11144           it works fine.
11145
11146         * Fixed segfault from client's NAMES command. Used to crash if
11147           not on any channel.
11148
11149         * Forwarded packets must not be routed even if it is not destined
11150           to the receiver.  Changed server code comply with this.
11151
11152 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11153
11154         * Added `require_reverse_mapping' boolean value to ServerParams
11155           structure. If TRUE (not default) the server will require that
11156           the connecting host has fully qualified domain name.
11157
11158           If the reverse mapping is not required and hostname could not be
11159           found the IP address is used as hostname.
11160
11161 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11162
11163         * Implemented version string checking to both client and server.
11164           The check is incomplete currently due to the abnormal version
11165           strings used in development version of SILC.
11166
11167         * Changed all command functions in server to use the new
11168           CHECK_ARGS macro.
11169
11170 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11171
11172         * Changed char *data to unsigned char *data in ID Cache system to
11173           support binary data as ID Cache data. Changed code to support
11174           binary data in lib/silccore/idcache.c.
11175
11176         * Renamed silc_server_packet_relay_command_reply to
11177           silc_server_command_reply as it is normal packet receiving
11178           function. Rewrote the function to accept command replys for
11179           servers and not only for clients.
11180
11181         * Mark remote router always as registered server if we are connecting
11182           to it.  Otherwise, commands sent by the router to us are ignored.
11183
11184         * All ID List find routines now returns the ID Cache Entry pointer
11185           as well if requested.
11186
11187         * WHOIS command works now in router environment, tested with two
11188           routers, two servers and two clients.
11189
11190         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11191           in router environment (as it is almost equivalent to WHOIS) but
11192           hasn't been tested thoroughly.  Added new functions:
11193
11194           silc_server_command_identify_parse
11195           silc_server_command_identify_send_reply
11196           silc_server_command_identify_from_client
11197           silc_server_command_identify_from_server
11198
11199         * Disabled route cache adding because adding two different ID's with
11200           same IP replaces the old cache entry thus giving wrong route.
11201           The entry->router->connection is always the fastest route anyway
11202           so route cache may not be needed.  Of course, new routes maybe
11203           established after receiving the ID when the entry->router->connection
11204           might not be anymore the most optimal.
11205
11206 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11207
11208         * Add route cache for received ID for fast routing.
11209
11210         * Added silc_server_packet_route to route received packet on router
11211           that is not destined to us.
11212
11213         * Renamed silc_server_get_route to silc_server_route_get.
11214
11215         * Added id_string and id_string_len fields into SilcServer to
11216           include encoded ServerID for fast comparing without excess
11217           encoding of the ID's.
11218
11219         * Cleaned up WHOIS command on server side. Added following static
11220           functions:
11221
11222           silc_server_command_whois_parse
11223           silc_server_command_whois_check
11224           silc_server_command_whois_send_reply
11225           silc_server_command_whois_from_client
11226           silc_server_command_whois_from_server
11227
11228         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11229           arguments in command replies. All command functions should be
11230           updated to use this macro.
11231
11232 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11233
11234         * Minor typo fixes on command reply handling on server.
11235
11236 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11237
11238         * Added silc_server_command_add_to_channel internal routine to add
11239           the client to the channel after router has created the channel and
11240           sent command reply to the server.
11241
11242         * Added generic silc_server_send_command to send any command from
11243           server.
11244
11245         * Use static buffer with ID rendering instead of duplicating data.
11246
11247 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11248
11249         * Fixed a channel user mode bug when joining to a channel server gave
11250           everybody channel founder rights, oops.
11251
11252         * We mark ourselves as the router of the incoming server connection
11253           if we are router ourselves.  This way we can check in some packet
11254           sending functions whether it is locally connected server.  For
11255           incoming router connections we put NULL.
11256
11257         * For router sending packets locally means now always sending the
11258           packet cell wide; to local clients and local servers.  For normal
11259           server sending packet locally means sending it to only local
11260           clients.
11261
11262         * Fixed the JOIN command to really work in router environment.  If the
11263           channel is created it is always created by the router.  Router is
11264           also responsible of making the initial joining to the channel,
11265           sending JOIN notify to the sending server and distributing
11266           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
11267           does not exist server doesn't do anything else but forward the
11268           command to the router which performs everything.
11269
11270         * Added silc_server_send_channel_key function to send the Channel Key
11271           payload.
11272
11273         * Added silc_server_create_channel_key to create new channel key.  The
11274           channel key is now re-generated everytime someone joins or leaves
11275           a channel, as protocol dictates.  Note: channel->key_len is the
11276           key length in bits.
11277
11278 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11279
11280         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
11281           packet_receive.[ch] to separate packet sending and receiving
11282           routines.  The server.[ch] now includes everything else including
11283           actual packet processing (writing and reading data) and other
11284           server issues.
11285
11286           Renamed silc_server_private_message_send_internal to
11287           silc_server_send_private_message.  The routine is still though
11288           used only to relay private messages as server does not send
11289           private messages itself.
11290
11291           Renamed silc_server_new_channel to silc_server_create_new_channel
11292           and added new function sicl_server_new_channel that handles the
11293           incoming New Channel packet.  Added also new sending function
11294           silc_server_send_new_channel to send New Channel Payload.
11295
11296         * Added new function silc_server_notify to process incoming notify
11297           packet to the server/router. Server may then relay the notify
11298           to clients if needed.
11299
11300         * Added new function silc_server_new_channel_user to process incoming
11301           New Channel User packet.  Router will redistribute the packet and
11302           send JOIN notify to its local clients and locally connected servers
11303           if needed.  Normal server will send JOIN notify to its local client
11304           on same channel when received this packet.  Added also corresponding
11305           sending function silc_server_send_new_channel_user to sent the
11306           payload.
11307
11308         * Added boolean route argument to send_notif_to_channel and
11309           packet_send_to_channel functions to attempt to route the packet
11310           if it is TRUE and send only locally if it is FALSE.
11311
11312 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11313
11314         * silc_server_replace_id now broadcasts the received replace ID
11315           packet if it is not broadcast packet already. The router must
11316           broadcast to inform other routers about changed ID.
11317
11318         * Added backpointer to server's router into SilcServer context in
11319           silcd/server_internal.h.
11320
11321         * Fixed silc_server_packet_broadcast to send correct broadcast
11322           packets.
11323
11324         * The channel key is now distributed to the local client as soon
11325           as it is received from the router (in router environment) so that
11326           no other packet may be sent for the channel until client has
11327           received the key.
11328
11329         * silc_server_remove_channel_user now broadcasts the received
11330           Remove Channel User packet if it is not broadcast packet already.
11331           The router must broadcast to inform other routers about removed
11332           channel user.
11333
11334         * Added users field into SilcPacketContext that is a reference count
11335           of the context.  One can increase the reference count by calling
11336           silc_packet_context_dup which is now changed to just increase the
11337           reference count instead of duplicating the data.  The reference
11338           count is decresed by calling silc_packet_context_free that will
11339           free the data after the reference count hits zero.
11340
11341           For now on the packet context and everything allocated into it
11342           (including the raw packet from network) must be freed by calling
11343           the new silc_packet_context_free function.  Added also new function
11344           silc_packet_context_alloc that must be used now to allocate the
11345           context.  This also means that if a routine is asynchronous from
11346           silc_[client/server]_packet_parse_type the packet context must
11347           be duplicated by calling silc_packet_context_dup.  Otherwise it
11348           gets free'd after silc_[client/server]_packet_parse_type returns.
11349           Also, one must remember that if packet is duplicated then its
11350           reference count must be decresed by calling the free function as
11351           many times as it was duplicated.
11352
11353         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
11354           from both client and server.
11355
11356 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11357
11358         * Made joining to a channel working in router environment.
11359
11360         * Cleaned up JOIN command on server side and create function
11361           silc_server_command_join_channel internal routine to make the
11362           joining happen.
11363
11364 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11365
11366         * Changed silc_command_pending list to SilcDList.  Also, added
11367           `ident' field to SilcServerCommandPending structure to identify
11368           the reply and to call correct callback.
11369
11370           Added silc_server_command_pending_check function to replace the
11371           corresnponding macro.  The silc_command_pending list is not
11372           extern anymore.
11373
11374         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
11375           to set identifier to previously allocated Command Payload.  It
11376           is used to set identifier for command when resending Command
11377           Payload.
11378
11379         * Added silc_command_payload_encode_payload to encode Command
11380           Payload buffer from SilcCommandPayload structure.
11381
11382         * Added silc_argument_payload_encode_payload to encode Argument
11383           payload buffer from SilcArgumentPayload structure.
11384
11385 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11386
11387         * Changed WHOIS command to support router connection on server side.
11388           The whois request is always sent to router unless the server is
11389           standalone server.  After server has received the reply from the
11390           router will it send the reply to the client.
11391
11392         * Added silc_server_packet_broadcast into silcd/server.[ch] to
11393           broadcast received broadcast packet.  The function is used only
11394           by router.  The broadcast packet is always sent to the router's
11395           primary route.
11396
11397         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
11398           render given ID to printable string, for log files for example.
11399
11400 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11401
11402         * Made basic router to router connections working.  At least they
11403           can now connect to each other but nothing really works the way
11404           they are supposed - yet.
11405
11406         * Added new initiator token to RouterConnection configuration
11407           file in silcd/serverconfig.[ch].  It is used to tell whether we
11408           are the initiator to the remote router or whether we'll expect
11409           the other end to connect.
11410
11411         * Moved registering of listener task to silc_server_init, hence
11412           the server starts listenning as soon as it is run, even if it
11413           does not have connections to other routers.  Let's see how well
11414           this will work.
11415
11416         * Changed default connection retry timeouts for more suitable in
11417           silcd/server.h.
11418
11419         * Removed cipher and such arguments from silc_idlist_add_client
11420           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
11421           Added new function silc_idlist_add_data to add the keys and stuff
11422           to any ID entry.
11423
11424         * Added SilcIDListData structure and added it to SilcClientEntry
11425           and SilcServerEntry as their first field in the structure.  This
11426           way we can explicitly cast the ID entries to the SilcIDListData
11427           structure and get common data for the entries.  In past, we had
11428           to first check what type of connection it is and then cast it to
11429           correct ID entry type.  Now, we can directly cast the opaque
11430           pointer to the SilcIDListData (no matter what ID entry it actually
11431           is) and get the data needed.
11432
11433 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11434
11435         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
11436           in some circumstances even if threre were timeout tasks, though not
11437           IO tasks, but tasks anyway.  Now fixed.
11438
11439         * Defined SilcServerConnection structure to hold connection specific
11440           stuff about directly connected servers and routers.  The definition
11441           is currently in silcd/server_internal.h.  I thought about having
11442           a bit more important role fro this struct but for now it is used
11443           only when connecting to other server (or router actually).
11444
11445         * Added connecting retry support in server when connecting to
11446           router(s).  The retry feature implement exponential backoff
11447           algorithm.  Also, added SilcServerParams structure to hold default
11448           parameters for server.  For now, it include these retry settings
11449           and are hard coded.  After server is moded to be as Silc Server
11450           Library this structure will be more important.
11451
11452 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11453
11454         * Changed client librarys channel->clients table to SilcList and
11455           changed code accordingly.
11456
11457 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11458
11459         * Changed client's channel table to SilcList and changed code
11460           accordingly.  Also changed SilcChannelClientEntry to include back-
11461           pointer to the channel so that client entry can use that structure
11462           as list as well and we have fast cross-reference to the channel.
11463           This change dramatically decreased the complexity of channel
11464           handling with client entry and vice versa (removed one extra
11465           loop when searching for channel entry from many functions).
11466
11467         * Changed server->sim from table to SilcDList and changed code
11468           accordingly.
11469
11470         * NAMES command can now be used from user interface.  It will show
11471           the user list on the channel, neatly.
11472
11473         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11474           Code now saves realname of the user if it becomes available.
11475
11476         * Renamed configure.in to configure.in.pre and made ./prepare
11477           script to automatically add correct version string to
11478           configure.in which it creates from configure.in.pre.
11479
11480 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11481
11482         * NAMES command reply now shows users mode with the nickname when
11483           joining to channel.
11484
11485         * Moved silc_client_ch[u]mode[_char] functions from
11486           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11487           place sucks, they are utility functions and should be in some
11488           other file.
11489
11490         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11491
11492         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11493           cras.
11494
11495 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11496
11497         * Updated README.
11498
11499         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11500           a very good list library that is currently used in the SILC.  Defined
11501           SilcList API over the library because I didn't like the API very
11502           much.  See lib/trq/silclist.h for the API and examples of how to
11503           use the API.  Fixed various places in the code to use the new
11504           SilcList API. The SilcList is meant for lists that has a structure
11505           already defined as a list.  It is not suitable to add just some
11506           context to the list (in TRQ, the context is the list actually).
11507
11508           So, I defined SilcDList that can be used for the purpose where
11509           predefined list structure does not exit.  This can be used as
11510           such list.  Now some context just can be added to the SilcDList.
11511           Currently this list is not used in the SILC just yet, though there
11512           are a lot places where this can replace dynamically allocated
11513           tables and I will fix these places, later, to use SilcDList.
11514           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11515           and use TRQ internally).
11516
11517           Also fixed some annoying warning messages that the original TRQ
11518           code generated.  Also minor changes to TRQ's Makefile.in.
11519
11520         * Added support for querying by Client ID to both WHOIS and
11521           IDENTIFY commands into server, as required by the protocol.
11522
11523         * Removed method function pointers from SilcBuffer structure. They
11524           weren't used to anything and just increased the context size for
11525           no good reason.  This change also made silc_buffer_alloc and
11526           silc_buffer_free functions inline functions.
11527
11528         * Disabled command flooding detection support until it's fixed so
11529           that it accepts commands in but does not execute them more than once
11530           in two seconds.
11531
11532         * Added silc_net_localhost(), to return local hostname, into
11533           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11534           that must be initialized before calling silc_client_init.
11535
11536         * Added new function: silc_server_send_notify_on_channels to send
11537           notify messages to all channels client has joined.  It is assured
11538           that the message is sent only once per client.
11539
11540         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11541           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11542           function is generic and is used by server as well, not only by
11543           the logging routines.
11544
11545         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11546           the provided version string was not acceptable.  Added new function:
11547           silc_ske_check_version into lib/silcske/silcske.h.  The function
11548           must be implemented by the application (client or server) and it
11549           does not reside in the SKE library.  The function checks the version
11550           string remote end sent.
11551
11552         * Added back pointers (to opaque context and to SilcSocketConnection)
11553           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11554
11555         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11556           duplicate packet context structure.
11557
11558         * Changed `notify' client operation to send same arguments as client
11559           receives from server except for ID's.  ID's are mapped to correct
11560           ID entry and that is returned.  Also, if channel entry is not sent
11561           by server but the notify is for channel the channel entry is sent
11562           to application (otherwise application doesn't know that it is for
11563           channel (library gets it from packet's Destination ID)).
11564
11565         * Added silc_client_remove_from_channels into client library to
11566           remove a client from all channels it has joined to.  Used when
11567           received SIGNOFF notify from server.  Added also new function
11568           silc_client_replace_from_channels to replace old ID entry with
11569           new ID entry on all channels.  Used when received NICK_CHANGE
11570           notify from server.
11571
11572         * Fixed ID Cache list handling in silc_idlist_get_client in
11573           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11574           to get (or query) client by ID.
11575
11576         * Updated TODO list.
11577
11578         * Added connection authentication status message defined by the
11579           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11580           support for these into the code in client and server side.
11581
11582         * Added generic function silc_client_send_command to send any command
11583           with variable argument list.  Application should use this function
11584           to send commands if the command functions provided by the library
11585           does not suite for the application's user interface needs.
11586
11587         * Added new `failure' client operation.  Application is notified about
11588           received failure packet if client is executing a protocol.  In this
11589           case the protocol's execution has failed.
11590
11591         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11592           is required by the protocol.
11593
11594         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11595           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11596           error at our end.
11597
11598         * Added status flag to SilcSKE object to indicate realtime status
11599           of the SKE protocol.
11600
11601         * Application receives now exactly same command reply arguments as
11602           the library receives from server.  However, if ID is received the
11603           corresponding ID entry is returned to the application (eg. Client
11604           ID is mapped to correct SilcClientEntry entry and that is returned).
11605           Changed command_reply client operation due to this change.
11606
11607         * Changed all ID's in commands and in command replys as ID Payloads.
11608           Change affected both client and server side codes.
11609
11610           All ID's sent in SILC network (with execption of ID's in SILC
11611           Packet header) are sent in ID Payload to support variable length
11612           ID's.
11613
11614         * Server now notifies nick changes and notifies all clients on
11615           the channels about the new nickname (about the new Client ID,
11616           actually).
11617
11618         * Implemented CMODE command to change channel modes. Supports all
11619           channel modes defined by the protocol specs except ban and invite
11620           lists. (Also, private channel key mode is supported but support for
11621           setting private channel key in client is missing, thus, this mode
11622           has no effect on client side (except that server requires that the
11623           client uses private channel key and normal channel traffic does not
11624           work anymore)).
11625
11626           Also, invite mode works per se, but INVITE command does not work
11627           yet correctly, so you can set channel as invite only channel but
11628           inviting clients to the channel does not work (it is yet to be
11629           thought what's the best way to do it).
11630
11631         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11632           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11633           Implemented CUMODE command to change user's mode on the channel.
11634           Supports all modes defined by the protocol specs.
11635
11636         * Added NAMES command reply to return users modes on the channel.
11637
11638         * Removed unnecessary and slow ciphers from lib/silccrypt.
11639
11640         * Set SO_KEEPALIVE option to connection sockets by default.
11641
11642         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11643
11644         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11645           redefined the Notify Payload into protocol specs.
11646
11647         * Added silc_id_payload_parse_id to get ID directly from raw
11648           ID payload data.
11649
11650 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11651
11652         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11653           accept searching by Client ID as well.
11654
11655         * Added support for LEAVE and SIGNOFF notify types in client library.
11656
11657         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11658           to parse ID Payload from raw data.
11659
11660 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11661
11662         * Added flags parameter into silc_ske_assemble_security_properties
11663           function in lib/silcske/silcske.[ch].
11664
11665         * Changed notify client operation to fit better for notify messages
11666           sent by server.  The notify payload received from server is now
11667           passed to the application (after parsing it to SilcNotifyPayload).
11668           It is application's responsibility to retrieve the arguments
11669           from the payload and show the message the way it wants.  The message
11670           sent by server is implementation specific.
11671
11672         * Changed public keys to comply with the protocol specification.
11673           Old public keys are not supported anymore and are not compatible.
11674
11675         * Removed nickname from Channel Payload as the latest draft removed
11676           it.  The client must resolve the nickname from the NAMES command
11677           reply received when it joined the channel.
11678
11679           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11680
11681 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11682
11683         * Fixed some errors in protocol specification drafts.
11684
11685         * Created lib/silccore/silcnotify.c to implement Notify Payload
11686           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11687           generic payloads described by protocol specifications.  The file
11688           includes implementations for ID Payload and Argument Payload.
11689
11690         * Changed Command Payload implementation to use the new Argument
11691           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11692           to comply with SILC coding conventions.
11693
11694         * Added suppport for Argument Payload handling in Notify Payload
11695           implementation as protocol requires it.  Added the new support
11696           into server and client lib as well.
11697
11698 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11699
11700         * Added support for multiple nicknames on same channel.  [n] is
11701           added locally to the nickname if there are more than one same
11702           nicknames on the channel.
11703
11704         * Server now sends all nicknames that matched WHOIS request.
11705           Client also shows the list received from server.
11706
11707         * Added TOPIC command to client side.  User can now set and show
11708           current topic on channel.
11709
11710         * Added MOTD command to client and server.  Also, server sends the
11711           motd when client connects to the server.
11712
11713         * Changed version strings to comply ISO 8601.
11714
11715 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11716
11717         * Fixed protocol error handling in client library.  It should now
11718           cope even if the SKE fails for some reason.
11719
11720         * Made new protocol specification drafts for submitting to IETF.
11721
11722         * Implemented TOPIC command to server in silcd/command.c.
11723
11724         * Added two new notify types into lib/silccore/silcnotify.h:
11725           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
11726           notify nickname change and topic setting/change on a channel.
11727
11728         * API change of command_reply operation in client library.  The
11729           application gets now the status type received from server as well.
11730
11731 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11732
11733         * Removed the function just added to lib/silcutil/silcschedule.[ch].
11734
11735         * Cras fixed and optimized the packet handling even further and
11736           it should work now.  Minor change to the prototype of function
11737           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
11738
11739 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11740
11741         * Added new function into lib/silcutil/silcschedule.[ch]:
11742           silc_schedule_with_fd to select() a specified fd.  The function
11743           returns after timeout expires or data arrives or goes.  The
11744           function is used by packet routines to wait that all data is
11745           received from network.
11746
11747         * Fixed data reading from network in lib/silccore/silcpacket.c.
11748           The code now assures that all data is read from the fd and then
11749           continues packet processing.  This was a bug fix since the code
11750           used to drop some data in some circumstances.
11751
11752         * Added new function into lib/silcclient/client.[ch]:
11753           silc_client_start_key_exchange to start key exchange after
11754           connection has been established to server.  The code internally
11755           now uses this funtion but its main purpose was to provide it
11756           for applications that perform their own connecting.  After
11757           application has created a connection it merely calls this
11758           function to start the key exchange between client and server.
11759           The library takes care of everything else after that.
11760
11761           Updated also lib/silcclient/README to explain the usage of
11762           this new function.
11763
11764         * Do not send to application information that connection has
11765           been established.  Application gets notified it by connect
11766           operation anyway.
11767
11768 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11769
11770         * Applied cras's patch to add silc_schedule_one function.  The
11771           function runs scheduler once and returns.
11772
11773         * Fixed the scheduler after cras messed it up.  The timeout
11774           handling works now as it's supposed to work.
11775
11776         * Added into lib/silccore/ silcnotify.h to include notify
11777           message types support.  Changed silc_server_send_notify*
11778           functions, in server.[ch], to support those new notify types.
11779           Added the support for the notify types into client library,
11780           as well.  Added new notify client operation into ops.h in
11781           lib/silcclient/.
11782
11783         * Changed silc_server_packet_send_to_channel to send normal
11784           packets instead of just channel message packets.  The function
11785           is now used to send the notify packets to channels.  It is not
11786           used to send channel message packets anymore, as server never
11787           sends them anymore.
11788
11789         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
11790           va_arg()s as it seems to require it nowadays.  I guess, if SILC
11791           is compiled with older va_arg() the new code should work anyway.
11792
11793 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11794
11795         * Splitted core library.  Core library (lib/silccore) includes
11796           now only SILC protocol specific core (and common) components.
11797           Created new utility library (lib/silcutil) that includes more
11798           generic purpose stuff.  The stuff for util library was taken
11799           from the old core library.  This was minor and easy split.
11800
11801         * Created SILC Client Library (lib/silcclient) that includes
11802           implementation of the SILC client without user interface.  This
11803           was major move from silc/ directory.  The code has been changed
11804           so that it is transparent towards the user interface.  The
11805           silc/ directory includes now the same user interface as before
11806           and it uses the new client library.  Read lib/silcclient/README.
11807           Basicly, the client library performs everything else related
11808           to SILC except user interface handling.  Also, configuration
11809           files are considered to be part of user interface and library
11810           does not handle them.
11811
11812           This change also changed a lot of structures, function naming etc.
11813           Most important change was that SilcClientWindow object was
11814           renamed to SilcClientConnection in the client library.  Created
11815           also new file lib/silcclient/ops.h.  Also added new files
11816           silc/local_command.[ch] and silc/client_ops.[ch].
11817
11818           All these changes were made to make it easier for user interface
11819           designers to create what ever user interface for the SILC client
11820           they want.
11821
11822           It is also expected that the server will be moved to lib
11823           directory as well and SILC Server Library will be created;
11824           sometimes in the future.
11825
11826         * Removed Local commands from lib/silccore/silccommand.h as
11827           they are application specific and new client library does not
11828           handle any of those anymore.
11829
11830         * Several functions moved to lib/silcutil/silcutilc.[ch] from
11831           old client implementation in silc/.
11832
11833         * Added support for callback functions in SILC_LOG_* macros.
11834           Application can now set its own callbacks that will be called
11835           instead of using the default functions that will always print
11836           the debug messages to stderr (or stdout).  Also, debugging can
11837           now be disabled by setting silc_debug to FALSE and re-enabled by
11838           setting it to TRUE.  Note, that logging will still work even
11839           if debugging is disabled.
11840
11841           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
11842           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
11843           silc_log_reset_debug_callbacks.
11844
11845         * To enable debugging in silc client one must give now -d
11846           option on command line.
11847
11848         * Changed silc_schedule_init to automatically allocate task queues
11849           if they are not allocated before calling it.
11850
11851 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11852
11853         * Added GMP 3.1 into math library.
11854
11855 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11856
11857         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
11858           a channel in SILC network.  The packet is used by servers and
11859           routers to notify other routers that user has left a channel.
11860           This little feature was missing until now.  Added the feature
11861           to protocol specification as well.
11862
11863           Added functions: silc_server_send_remove_channel_user and
11864           silc_server_remove_channel_user into server.[ch].
11865
11866         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
11867           lib/silccore/silcpacket.h.  However, they are not implemented
11868           yet.
11869
11870 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11871
11872         * Fixed joining to a channel and sending channel messages
11873           between server and router.  The channel message sending should
11874           now work inside a cell.
11875
11876 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11877
11878         * Fixed the private message sending between server and router.
11879           The private message sending should now work inside a cell.
11880
11881         * Added silc_server_replace_id into server.[ch] to replace
11882           existing ID in the SILC network.
11883
11884         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
11885           and silc_idlist_replace_server_id into idlist.[ch] in server.
11886
11887 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11888
11889         * Fixed the server to server connections.  Server can again now
11890           connect to router.  Router to router connections probably does
11891           not work just yet.
11892
11893 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11894
11895         * Added dynamic protocol registering support.  Now protocols can
11896           registered and unregistered on the fly.  Patch by cras.
11897
11898 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11899
11900         * Added lib/contrib directory to hold routines that some platforms
11901           don't have but are needed by SILC.
11902
11903         * Added getopt.c, getopt1.c and getopt.h from GNU C library
11904           into lin/contrib to provide getopt() and getopt_long() for
11905           those who don't have it.
11906
11907 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11908
11909         * Added AWAY command to client.  When away message is set and
11910           client receives a private message packet the client automatically
11911           replies to the sender with the away message.
11912
11913         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
11914           bug seemed to be the cause of recent problems when compiling
11915           with gcc-2.95.
11916
11917         * Added version detection support to SKE protocol specification
11918           and added the new changes to the SKE implementation as well.
11919           There were other minor changes in the SKE protocol as well.
11920
11921           Many changes in lib/silcske/silcske.[ch] and in
11922           lib/silcske/payload.[ch].
11923
11924         * Added ^U functionality, clear input line.  Patch from cras.
11925
11926 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11927
11928         * Mainly small bugfixes on core library.  Fixed some debugging
11929           logging and buffer overflow in silclog.c.
11930
11931         * Updated config.sub and config.guess on the distribution tree.
11932
11933 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11934
11935         * Added command lagging support in server. Client may execute
11936           commands now only once in two seconds.
11937
11938 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11939
11940         * Optimized packet reception. MAC computation and checking is now
11941           also more optimized.  A lot previously duplicated code is now
11942           used as generic by both client and server.
11943
11944         * Fixed key pair generation in clientutil.c
11945
11946 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11947
11948         * Added into lib/silccore/silcbufutil.[ch] new function;
11949           silc_buffer_realloc.
11950
11951         * Moved generic packet sending/encryption functions to
11952           lib/silccore/silcpacket.[ch] from client and server.  Some
11953           rewriting of the functions.
11954
11955         * Moved all generic packet reception/decryption functions to
11956           lib/silccore/silcpacket.[ch] from client and server.  The
11957           packet processing is now much cleaner in both client and server.
11958           These were major changes in both client and server.
11959
11960         * Created many common functions in server to do packet sending.
11961           Previously code were duplicated a lot, this has been removed
11962           with these changes.
11963
11964 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11965
11966         * Rewrote major parts of the ID cache system.  Don't know
11967           whether it is better now or not but at least the API is more
11968           cleaner now.
11969
11970         * Major rewrite on ID cache stuff on client because of the ID
11971           cache API changes.  Added idlist.c to client.
11972
11973         * Also major rewrite on ID cache stuff on server as well.
11974           Major rewrite of idlist.[ch]. SilcXXXList's are now named
11975           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
11976           in hand, instead they are all put into the ID cache system now.
11977           All server_idlist_* routines uses ID cache now instead of
11978           traversing its own lists (those lists does not exist anymore).
11979           SilcIDList though still exists.  Also, SilcXXXEntry's are
11980           now pointers.
11981
11982 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11983
11984         * Finally made the SKE implementation compliant to the protocol
11985           specification.  All mp integers are now binary encoded as
11986           opposed being HEX encoded.
11987
11988         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
11989           from binary data.
11990
11991         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
11992           functions: silc_[encode/decode]_pem.  Also added function
11993           silc_encode_pem_file to PEM encode with newlines ('\n') for
11994           saving into a file.
11995
11996         * SILC public keys are now encoded either PEM or binary.  Same
11997           option is for private keys as well.  By default private keys
11998           are binary encoded and public keys PEM encoded.  Silly HEX
11999           encoding were removed.
12000
12001         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12002           function to create fingerprints.
12003
12004         * Fixed a bug in SHA1; does not change the original data anymore.
12005
12006         * Partly implemented INFO command on client and server side.
12007           Fixed CLEAR command.  Changes to SERVER command; show current
12008           server(s) when giving command without arguments.  Added
12009           VERSION command to client.
12010
12011         * Added check to server that unregistered connections cannot
12012           execute commands (unless it is specificly allowed).
12013
12014 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12015
12016         * Fixed screen refresh.
12017
12018         * Fixed channel joining bug from client.  On some circumstances
12019           client tried to join to a channel it had already joined.
12020
12021         * Added public key verification process into client's protocol.c.
12022           The client now verifies the public key from user and saves
12023           it into ~./silc/serverkeys/ directory.
12024
12025           Added into: clientutil.[ch]: silc_client_verify_server_key.
12026
12027         * Changed SKE protocol's silc_ske_initiator_finish function
12028           to accept callback function that verifies the received public
12029           key.  Removed old silc_ske_verify_public_key function.
12030
12031 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12032
12033         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12034           silc_pkcs_private_key[_data]_set.
12035
12036         * Made the password and public authentication more cleaner in
12037           server's protocol.c.
12038
12039         * Removed historic and obsolete protocol `channel_auth' from
12040           both client and server.
12041
12042         * Removed wrong way of sending command status messages from
12043           server to client in server's command.c.  The old way violated
12044           protocol specification.
12045
12046           Changes to silccore/silccommand.[ch]: removed
12047           silc_command_encode_status_payload -> not needed anymore,
12048           changed silc_command_encode_payload_va to accept extra
12049           argument on variable argument list.  The argument type must
12050           now be provided to the function.  Also, added new function:
12051           silc_command_encode_reply_payload_va which is same as
12052           normal command_encode_payload_va except command status type
12053           is provided as extra argument.
12054
12055 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12056
12057         * Added ~./silc directory handling.  The directory includes the
12058           public and private keys for the client.
12059
12060           Added silc_client_check_silc_dir, silc_client_create_identifier
12061           and silc_client_load_keys.
12062
12063         * Implemented SILC protocol compliant public key.  Added public
12064           and private key saving to and loading from files.
12065
12066           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12067           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12068           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12069           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12070           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12071
12072           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12073           silc_pkcs_load_[public/private]_key.
12074
12075 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12076
12077         * Added silc_server_get_route (route.[ch]) to get connection
12078           data for the fastest route for given ID.
12079
12080         * Implemented INVITE command on client and server.  The command
12081           were re-defined in the SILC Protocol Specification and the
12082           implementation now complies with the specification.
12083
12084         * Implemented PING command on client and server.
12085
12086         * Implemented NAMES command on client and server.  The server side
12087           supports currently only normal server not router server yet.
12088           Some changes to NAMES definition in SILC protocol specification.
12089
12090 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12091
12092         * Implemented LEAVE command on client and server.
12093
12094         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12095           again.  This change was made to the protocol as well.  Server
12096           should not violate the protocol specification anymore.
12097
12098 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12099
12100         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12101           was tested.  SOCKS4 was not but should work anyway.