Sun Mar 11 15:19:10 CET 2007 Jochen Eisinger <coffee@silcnet.org>
[silc.git] / CHANGES
1 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
2
3         * Only wait for a nick on connecting, when it differs
4           (not counting case) from the username.  Affected file
5           is apps/irssi/src/silc/core/silc-servers.c
6
7 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
8
9         * Use time settings for lag settings.  Affected file is
10           apps/irssi/src/silc/core/silc-lag.c
11
12 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
13
14         * Fixed WHOIS command and requested attributes handling in
15           client library.  Affected files are lib/silcclient/command.c
16           and lib/silcclient/client_attrs.c.
17
18         * Fixed silc_time_value to actually work.  Added new function
19           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
20
21 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
22
23         * SILC Client 1.1 beta2.
24
25 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
26
27         * Fixed client to properly abort TCP stream creation when
28           giving /QUIT.  Affected file 
29           apps/irssi/src/silc/core/silc-servers.c.
30
31         * Fixed several connecting aborting crashes from the client
32           library, packet engine and socket stream.  Affected files
33           are in lib/silclient/, lib/silccore/silcpacket.c and
34           lib/silcutil/unix/silcunixsocketstream.c.
35
36         * Fixed private key export double free crash in key generation.
37           Affected file is lib/silccrypt/silcpk.c.
38
39         * Fixed FSM event waiting when there are multiple signallers
40           and the waiter goes away after the first signal.  Affected
41           file in lib/silcutil/silcfsm.c.
42
43 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
44
45         * Fixed FSM event signalling to check if the waiter has gone
46           away already.  Affected file is lib/silcutil/silcfsm.c.
47
48         * Fixed counter mode encryption/decryption to handle non-padded
49           SILC packets correctly.  The silc_cipher_set_iv now
50           in counter mode resets for a new block.  Affected files are
51           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
52
53 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
54
55         * SILC Client 1.1 beta1.
56
57         * Memory leak fixes around the libraries.
58
59 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
60
61         * Added better check for epoll() in configure.  Affected file
62           is lib/configure.ad.
63
64 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
65
66         * Fixed per scheduler data input buffer in packet engine.  Use
67           list of inbufs instead of just one so that multiple streams
68           can do partial reads to different buffers.  Affected file is
69           lib/silccore/silcpacket.c.
70
71         * Fixed WATCH notify handling in client library.  Affected file
72           is lib/silcclient/client_notify.c.
73
74 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
75
76         * Fixed packet wrapper stream API to support encoder/decoder
77           for packets, and to handle partial reading correctly.  Fixed
78           also inbuf size checking in reading to have enough space before
79           reading.  Affected files are lib/silccore/silcpacket.[ch].
80
81         * Rewrote file transfer in client library.  Affected files are
82           in lib/silcclient/.
83
84         * Added TCP/UDP listener (internal) API to client library to have
85           generic way of dealing with listeners.  Fixed Key Agreement and
86           file transfer to use it.  Affected files are in lib/silcclient/.
87
88         * Fixed SKE to process SUCCESS packets synchronously and to call
89           completion synchronously.  Affected file is lib/silcske/silske.c.
90
91         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
92
93         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
94           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
95
96 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
97
98         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
99           to client library.  Affected file is
100           lib/silcclient/client_register.c.
101
102         * Serialize NICK and JOIN commands to avoid problems locally
103           with changing ID while joining to channel.  Affected file is
104           lib/silcclient/command.c.
105
106         * Fixed entry resolving while handling incoming JOIN notify.
107           Handle properly cases, in re-processing of notify packets, where
108           the IDs may become invalid while resolving the entry (like nick
109           change).  Entry is invalid if it doesn't have nickname, and such
110           entries are not delivered to application anymore.  These fixes
111           problems of not seeing JOINs when remote user changes nickname
112           at the same time.  Affected files are in lib/silcclient/.
113
114 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
115
116         * Added support for computing message payload MAC in new way
117           (SILC Protocol version 1.3).  Bakcwards support for old way
118           remains.  Affected files are lib/silccore/silcmessage.[ch].
119
120 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
121
122         * Added SilcRwLock API, a read/write lock.  Affected files are
123           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
124
125 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
126
127         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
128
129 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
130
131         * The silc_schedule_set_listen_fd now returns boolean value.
132           Fixed FD task adding to check correctly for already added
133           FD tasks.  Added stricter error checking for FD scheduling
134           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
135           and lib/silcutil/unix/silcunixschedule.c.
136
137         * The silc_stream_set_notifier now returns boolean value.  Changed
138           all streams to support and check for the error condition.
139           Affected files are in lib/silcutil/.
140
141         * Fixed SKE library session aborting and deletion.  Affected
142           file are lib/silcske/silcske.c.
143
144 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
145
146         * Implemented PKCS #1 with appendix with hash OID in the
147           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
148           lib/silccrypt/silchash.[ch] and
149           lib/silcasn1/silcasn1[_encode|decode].[ch].
150
151 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
152
153         * Added support for Version (V) SILC public key identifier.
154           Affected files are lib/silccrypt/silcpk.[ch].
155
156 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
157
158         * Rewrote connection auth request in client library.  It is now
159           done automatically by the library and the resolved method given
160           as a hint to get_auth_method client operation.  Affected files
161           are lib/silcclient/.
162
163 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
164
165         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
166           It can be used to wrap SilcPacketStream into SilcStream.
167
168         * Fixed %p formatting from silc_snprintf.  Affected file is
169           lib/silcutil/silcsnprintf.c.
170
171         * Ported SFTP library to new utility library.  Ported also
172           the SFTP testers.  Affected files in lib/silcsftp/.
173
174 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
175
176         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
177           of silc_snprintf, silc_vsnprintf, silc_asprintf and
178           silc_vasprintf.
179
180 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
181
182         * Added preliminary Symbian support.  Changes around the source
183           tree.  The symbian/ directory now includes Carbide.c++ project
184           files to compile the sources.
185
186         * Added silc_snprintf.  Affected files are
187           lib/silcutil/silcstrutil.[ch].
188
189 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
190
191         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
192           macros.  SILC_FSM_CONTINUE macro now immediately calls the
193           next state instead of first returning back to FSM.  Helps
194           in debugging crashes etc.
195
196           Removed FSM Semaphores.  Introduced FSM Event which is
197           asynchronous event.   Affected files are in lib/.
198
199         * Added epoll(7) support to SILC Scheduler.  It is used by default
200           if it is available.  Affected files are
201           lib/silcutil/silcschedule.[ch],
202           lib/silcutil/unix/silcunixschedule.c.
203
204 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
205
206         * Added CTR mode to AES.  Simplified cipher implementation API
207           more.  Affected files are in lib/silccrypt/.
208
209 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
210
211         * Removed `detach' client operation.  The detachment data is
212           now delivered in SILC_COMMAND_DETACH command reply to
213           application.  Affected file in lib/silcclient/.
214
215         * Rewrote resuming/detaching in client library.
216
217         * Added boolean encryption indicator for silc_cipher_set_key.
218           Affected files lib/silccrypt/silccipher.[ch].
219
220 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
221
222         * Added silc_likely and silc_unlikely macros for GCC branch
223           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
224
225         * Added assembler AES optimization.  Cleaned up the SILC Cipher
226           implementation API.  Affected files are in lib/silccrypt/.
227
228 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
229
230         * Changed back the SILC_FSM_THREAD_WAIT operation to not
231           continue to next state if thread is finished already.  That
232           check is not done anymore.  Affected files are
233           lib/silcutil/silcfsm.[ch].
234
235 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
236
237         * Removed silc_packet_[get|set]_ciphers and
238           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
239           handle REKEY_DONE packet sending in rekey.  Affected files
240           are lib/silccore/silcpacket.[ch].
241
242         * Added silc_fsm_is_started.  Affected files are
243           lib/silcutil/silcfsm.[ch].
244
245         * Added settings sign_channel_message, sign_private_message
246           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
247           support for key agreement in /KEY command. Affected files
248           in apps/irssi/src/silc/core/.
249
250         * During SILC Client initialization forward log messages to
251           stderr.   Affected files in apps/irssi/src/silc/core/.
252
253 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
254
255         * Added silc_ske_get_key_material.  Affected files are
256           lib/silcske/silcske.[ch].
257
258         * Added silc_packet_stream_is_udp.  Affected files are
259           lib/silccore/silcpacket.[ch].
260
261         * Added SKE packet retransmission support with UDP transport.
262           Affected file is lib/silcske/silcske.c.
263
264 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
265
266         * Added silc_socket_stream_is_udp.  Affected file is
267           lib/silcutil/silcsocketstream.[ch].
268
269         * Added UDP transport support to packet engine.  Affected file
270           is lib/silccore/silcpacket.c.
271
272         * Added silc_socket_stream_is_udp.  Affected file is
273           lib/silcutil/silcsocketstream.[ch].
274
275 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
276
277         * Added silc_packet_send_va[_ext] to send variable argument
278           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
279
280         * Timeout freelist garbage collection added to scheduler.
281           Affected file lib/silcutil/silcschedule.c.
282
283 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
284
285         * Added silc_show_public_key_file to
286           lib/silcapputil/silcapputil.[ch].
287
288         * Added SILC_STR_ADVANCE support for buffer unformatting.
289           Affected file lib/silcutil/silcbuffmt.c.
290
291 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
292
293         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
294
295         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
296
297         * silc_fsm_continue[_sync] now cancels erlier timeout set with
298           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
299
300 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
301
302         * Added SILC_STR_FUNC to buffer format API.  Affected files
303           are lib/silcutil/silcbuffmt.[ch].
304
305         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
306
307         * No more memory allocation for message payload parsing.
308           Pre-allocated buffer can be used with message payload encoding.
309           Affected files lib/silccore/silcmessage.[ch].
310
311 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
312
313         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
314           to silcutil/silcbuffmt.[ch].
315
316 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
317
318         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
319           Affected file lib/silcutil/silcbuffmt.[ch].
320
321         * Removed silc_schedule_signal_[un]register and
322           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
323           to add signal task.  Only one callback per signal may be
324           added.  The signals are now automatically called back to
325           caller.  Affected files lib/silcutil/silcschedule.[ch] and
326           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
327
328         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
329
330         * Added SilcSKEParams for SKE parameters and simplied even more
331           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
332           Added support for IV included and session port handling with
333           UDP/IP connections.
334
335         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
336           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
337           which is called after every rekey when IV Included flag is used.
338           See SILC specifications for details.
339
340 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
341
342         * Added lib/silcapputil and moved SILC application specific
343           utility routines from the generic util library lib/silcutil
344           to the new library.  Removed lib/silcidcache and moved that
345           to lib/silcapputil as well.
346
347 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
348
349         * Added SILC_STR_ADVANCE.  Affected file is
350           lib/silcutil/silcbuffmt.[ch].
351
352         * The silc_buffer_strformat preserves buffer locations now.
353
354         * Added lib/silcutil/silcatomic.h for atomic operations.
355
356 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
357
358         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
359           server.
360
361         * Fixed MIME deocing when data portion is not present.
362           Affected file lib/silcutil/silcmime.c.
363
364 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
365
366         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
367
368         * Added IV Included support to packet routines, to allow
369           packet sending and receiving on UDP/IP.  Affected files are
370           lib/silccore/silcpacket.[ch].
371
372         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
373
374 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
375
376         * Added UDP support to network and socket stream library.
377
378 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
379
380         * Added conditional variables.  New files are
381           lib/silcutil/silcondvar.h and platform specific implementations.
382
383 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
384
385         * make sure session->hostname and session->port are valid before the
386           application callback is done, since things will go wrong if the
387           application immediately calls silc_client_file_receive. Affected
388           file lib/silcclient/client_ftp.c.
389           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
390
391 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
392
393         * New SILC PKCS API enabling support for other public keys
394           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
395
396         * Separated SILC Public Key Payload routines from the PKCS API
397           to lib/silccore/silcpubkey.[ch].
398
399 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
400
401         * Added SILC Key Repository library, lib/silcskr.
402
403         * Added SILC Server library, lib/silcserver.
404
405 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
406
407         * MIME objects in attributes now use SilcMime.  Affected files
408           are lib/silccore/silcattrs.[ch].
409
410 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
411
412         * Synchronize semaphore posting for real threads in FSM.
413           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
414
415 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
416
417         * Added silc_file_set_nonblock.  Affected file is
418           lib/silcutil/silcfileutil.h.
419
420         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
421
422 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
423
424         * FSM based implementation of SILC SKE.  Simpler interface also.
425           Affected files are in lib/silcske/.
426
427         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
428
429 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
430
431         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
432           silc_mime_parse is available but deprecated.
433
434         * Check that packet is valid when processing key exchange,
435           authentication and rekey protocols.  Fixes a crashbug.
436           Affected files are apps/silcd/protocol.c and
437           lib/silcclient/protocol.c.
438
439         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
440           all hash buffers to use that instead of fixed values.
441
442 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
443
444         * Added SHA-256 to crypto library.  The SHA-256 takes now
445           precedence over SHA-1.
446
447 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
448
449         * Check for valid return value from regcomp.  Affected file
450           lib/silcutil/unix/silcunixutil.c.
451
452 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
453
454         * Fixed silc_hash_uint to work with integers.  Affected
455           file lib/silcutil/silcutil.c.
456
457 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
458
459         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
460
461 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
462
463         * Fixed channel public key list saving on JOIN command reply
464           on backup router.  Affected file apps/silcd/command_reply.c.
465
466 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
467
468         * Added default limit how many channels client can join,
469           default is 50.  Added 'channel_join_limit' configuration
470           option to server too.  Affected files are apps/silcd/command.c
471           and serverconfig.[ch].
472
473 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
474
475         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
476           On Toolkit the server and client are not compiled by default.
477           Affected file configure.ad.
478
479 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
480
481         * Added lib/contrib/getopt.[ch] for platforms that don't
482           have it (it is not GPL implementation).
483
484         * Fixed compilation when pkg-config is used.
485
486 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
487
488         * A comma in invite/ban string is invalid, check for it.
489           Affected file apps/silcd/server_util.c.
490
491         * Added SERVICE command to the server.  It parses the command
492           request but SILC Server does not support services for the
493           time being.  Affected file apps/silcd/command.[ch].
494
495         * Added SERVICE command and command reply to client library.
496           It is however incomplete.  Updated Toolkit documentation.
497           Affected files are lib/silcclient/command[_reply].[ch].
498
499         * Fixed IDENTIFY/WHOWAS command reply to send the username
500           correctly (uninitialized buffer).  Affected file is
501           apps/silcd/server_query.c.
502
503 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
504
505         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
506           finalizes the major restructuring of the CVS tree.
507
508 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
509
510         * Send empty MOTD reply if MOTD file cannot be read.
511           Affected file silcd/command.c.
512
513 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
514
515         * Optimized primer number generator to use simpler conversion
516           routines.  Also assure that the prime number will have the
517           highest bit set after modifying it.  Affected file is
518           lib/silcmath/silcprimegen.c.
519
520         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
521
522         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
523           for now only for testing purposes, it will not be delivered
524           in any distribution for now.
525
526         * Removed NSS MPI from the source tree.  Due to upcoming
527           license change for the SILC Toolkit, we cannot deliver the
528           NSS MPI anymore.  I decided to replace it in all distributions
529           with public domain library.
530
531         * Removed GNU regex from lib/contrib and introduced free
532           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
533           GNU regex compatible API to it (only partial).
534
535         * Removed getopt routines from lib/contrib.
536
537 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
538
539         * Use silc_server_send_command_reply to send replies instead
540           of encoding packet itself.  Affected file silcd/command.c.
541
542         * Added command sending and receiving statistics to server.
543           Affected files in silcd/.
544
545         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
546           with GCC, for it not to warn about pointer signedness.
547
548 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
549
550         * Added context to the SilcIDCache destructor.  Affected
551           files are lib/silccore/silcidcache.[ch],
552           lib/silcclient/client.c and silcd/server.c.
553
554 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
555
556         * Added pkg-config check to configure.
557
558         * The PublicKeyDir must not be used with Admin block in server
559           config.  Affected file silcd/serverconfig.c.
560
561 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
562
563         * Added Autodist.
564
565 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
566
567         * Handle empty LIST command reply correcttly in server.  Affected
568           file silcd/command_reply.c.
569
570         * Handle empty LIST command reply correctly in client library.
571           The application will now receive one LIST command reply with
572           all arguments set to NULL if there are no channels.  Updated
573           Client Library documentation accordingly.  Affected file
574           lib/silcclient/command_reply.c.
575
576 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
577
578         * Added channel name string stringprep profile to the protocol
579           and implementation to allow a little free'er channel name
580           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
581
582         * Added silc_channel_name_[check|verify] to check and verify
583           channel name strings.  Affected files are
584           lib/silcutil/silcstrutil.[ch].
585
586         * Added support for the new channel name preparation in client
587           library and server.  Affected files in lib/silcclient and
588           silcd/.
589
590 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
591
592         * Added the Autodist into the source tree.  It replaces the
593           old ./prepare.  It can be used to create distributions as
594           previously.  See README.CVS and README.DIST.  See
595           distributions in distdir/.
596
597 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
598
599         * Make sure query sends at least an error back if nothing
600           more is sent.  Affected file silcd/server_query.c.
601
602 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
603
604         * During query, check if the original command caller goes
605           away.  If it does, stop the query.  Affected file
606           silcd/server_query.c.
607
608         * Check for valid channel creation in JOIN command reply.
609           Affected file lib/silcclient/command_reply.c.
610
611         * Handle the resolver counter in silc_client_get_users_by_channel
612           callback correctly.  Fixed auto-join bug in Gaim.  Affected
613           file lib/silcclient/idlist.c.
614
615 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
616
617         * Added some better error messages.  Affected file
618           silcd/command_reply.c and packet_receive.c.
619
620         * Handle error in WATCH command propely on backup router.
621           Affected file silcd/command.c.
622
623         * Fixed freeing of unfreeable variable in WHOIS command reply.
624           Affected file silcd/command_reply.c.
625
626 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
627
628         * Added pkg-config .pc file creation for silc core library
629           and silcclient library.  A patch by c0ffee.
630
631         * Removed the need for GNU Libidn.  Added the simple stringprep
632           from libidn into lib/contrib/.  It is now used also on Windows
633           build.
634
635 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
636
637         * Simplified the invite and ban string handling in the
638           server.  Check for valid invite and ban arguments also.
639           Affected file silcd/server_util.c.
640
641 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
642
643         * Added WATCH list announcing in backup router protocol.
644           Affected files are silcd/command.c, server.c, server_backup.c.
645
646         * Do not change users mode to founder on normal server/backup
647           if the founder mode is set, and user is first one to join.
648           Affected file silcd/pcaket_receive.c.
649
650         * Do not send CUMODE_CHANGE notify back to sender.  Affected
651           file silcd/packet_receive.c.
652
653         * Added getrusage() to take noise in SILC RNG.  A patch by
654           Mika Boström.  Affected files are configure.in.pre,
655           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
656
657 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
658
659         * Splitted the SILC libraries configuration into a configure
660           fragment into lib/configure.ad.  It is now possible, once
661           this feature is added, to specify whether to compile or not
662           compile included SILC libraries.  Affected files are
663           configure.in.pre, lib/silcmath/mpi/configure.ad,
664           lib/configure.ad, Makefile.defines.pre and
665           Makefile.defines_int.pre.
666
667         * Added --with-silc-includes and --with-silc-libs to configure.
668           If specified the included libs are not compiled, but the
669           specified libs are used.  Pkg-config is not yet supported.
670           Affected file configure.in.pre.
671
672         * Fixed WATCH command handling on backup router.  Router does not
673           send the watch command any more to backup if it originates from
674           backup.  Affected file silcd/command.c.
675
676 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
677
678         * Changed announcing to not announce unregistered clients.
679           Affected file silcd/server.c.
680
681         * Fixed username handling in command reply.  Affected file
682           silcd/command_reply.c.
683
684         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
685
686 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
687
688         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
689           Affected file: includes/silcincludes.h.in
690
691         * bool is defined as _Bool on Mac OS X now.
692           Affected file: lib/silcutil/silctypes.h
693
694 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
695
696         * Added support for UTF-8 nicknames, channel names and
697           server names in client library.  Affected files in
698           lib/silcclient/.
699
700         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
701           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
702           software to check how Toolkit has been compiled.
703
704 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
705
706         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
707
708         * Use silc_utf8_str[n]casecmp instead of strcmp routines
709           in library and in SILC Client when dealing with nicknames
710           and other identifier strings.  Affected file in client lib
711           and irssi.
712
713         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
714           irssi/src/silc/core/silc-servers.c.
715
716 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
717
718         * Fixed idcache to work with the new identifier strings.
719           Affected file lib/silccore/silcidcache.c.
720
721         * Added UTF-8 hash and compare function for SilcHashTable.
722           Affected file lib/silcutil/silcutil.[ch].
723
724         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
725           Affected file lib/silcutil/silcstringprep.[ch].
726
727         * Changed the identifier string handling to include the original
728           format in client, server, channel entries and normalized
729           format in cache.  Affected files in silcd/.
730
731 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
732
733         * Added support for the new identifier strings and their
734           validity checking.  Nicknames, channel names and usernames
735           can now include practically any kind of letters and various
736           other characters.  Affected files in silcd/ and in libraries.
737
738           NOTE: comparing these strings should now be done with memcmp()
739           to check binary compatibility.  All these strings are normalized
740           and casing is irrelevant.
741
742         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
743           as easy function for applications to check whether identifier
744           strings are valid.
745
746 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
747
748         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
749           file lib/silcutil/silcutf8.c.
750
751         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
752
753 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
754
755         * Make public key in getkey reply mandatory.  Affected file
756           lib/silcclient/command_reply.c
757
758 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
759
760         * Added Parameter dont_register_crypto_library to
761           SilcClientParam. If set to TRUE, silcclient library will
762           not initalize the Crypto Libraries and application
763           will need to do it. Affected file lib/silcclient/silcclient.h,
764           lib/silcclient/client.c.
765
766 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
767
768         * Imported new silc_utf8_[encode|decode] routines from
769           my internal SILC 1.1 source tree.  New encodings added:
770           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
771           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
772           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
773           SILC_STRING_LDAP_DN.
774
775         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
776
777         * Implemented stringprep (RFC 3454) API.  Internally we use
778           GNU Libidn's stringprep, for now, so it is required now to
779           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
780
781         * Added checking for GNU Libidn and --with-libidn to configure.
782
783 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
784
785         * If the passphrases entered do not match while generating a new key,
786           completly start over instead of going into an infinite loop asking
787           the user to re-enter the passphrase correctly.  Affected file
788           lib/silcutil/silcapputil.c
789
790 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
791
792         * Make sure server is removed from backup list when it is
793           deleted.  Affected files silcd/command.c, server.c,
794           server_util.c.
795
796         * Close socket when connecting to router fails.  Affected
797           file silcd/server.c.
798
799 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
800
801         * Adopt configuration toolchain to current auto-tools.
802           Affected files prepare, irssi/configure.in
803         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
804           redo that.  Affected files irssi/src/silc/core/client_ops.c,
805           irssi/src/fe-common/silc/fe-silc-channels.c
806         * Take over command line options into silcclient data structure.
807           Affected file irssi/src/silc/core/silc-core.c
808
809 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
810
811         * Do not try to initiate backup resuming protocol forever.
812           Affected file silcd/server_backup.c.
813
814 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
815
816         * ID change in resuming has to be done before changing
817           detached client's modes, since the ID change may fail and
818           leave ghosts on the network.  Affected file is
819           silcd/packet_receive.c.
820
821 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
822
823         * Fixed Win32 scheduler to not stuck anymore.  A patch from
824           Juha Räsänen.  Affected file is
825           lib/silcutil/win32/silcwin32schedule.c.
826
827         * Fixed QoS parsing for connection blocks in server.  Affected
828           file is silcd/serverconfig.c.
829
830         * Fixed server statistics increasing in server.  Affected file
831           is silcd/server.c.
832
833         * The CLOSE command now marks backup router as self disconnected
834           to avoid resuming problems.  Affected file silcd/command.c.
835
836 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
837
838         * When using silc_net_create_connection[_async], and your system can
839           create IPv6 sockets, it will try to connect to the IPv6 host.
840           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
841           file lib/silcutil/unix/silcunixnet.c
842
843 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
844
845         * Check for valid route when receiving packet from router and
846           when routing it to local server in the cell.  A patch from
847           Matt Miller.  Affected files silcd/router.c and server.c.
848
849 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
850
851         * Couldn't detach and reattach twice, because of the previous
852           commit. Affected file silcd/packet_receive.c
853
854 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
855
856         * Added check to ignore Port value if Initiator is FALSE.
857           Remote router coudln't connect if Port was set. Affected file
858           silcd/serverconfig.c
859
860         * If some client tries to resume more than once at the same time,
861           server crashed. Router didn't crash, but showed odd behaviour
862           (didn't allow clients to join anymore, ..). Affected files
863           silcd/packet_receive.c silcd/idlist.h
864
865 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
866
867         * Destroy the file transfer session in silc_client_file_close
868           with timeout.  Affected file lib/silcclient/client_ftp.c.
869
870         * Call SFTP server monitor in READ and WRITE after the actual
871           operations.  Affected file lib/silcsftp/sftp_server.c.
872
873 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
874
875         * Create one configure script from configure fragments
876           (configure.ad).  This is a first step towards new distribution
877           system.  Affected files prepare, configure.in.pre,
878           lib/silcmath/mpi/configure.ad.
879
880 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
881
882         * Removed expiring of client key pair.  Affected file is
883           irssi/src/silc/core/clientutil.c
884
885 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
886
887         * Check the number of connections from real number of
888           connections instead of socket number, when deciding if
889           server is full.  Affected files are silcd/server.c,
890           server_internal.h and silcd.c.
891
892         * Clarified the connections_max meaning in General section
893           in doc/example_silcd.conf.in.
894
895         * The reconnect_keep_trying default value set to TRUE
896           if it is not defined in the config file.  Affected file
897           silcd/serverconfig.c.
898
899 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
900
901         * Fixed crashbug in connection closing, after a protocol
902           completion callback, which might have closed it already.
903           Affected file silcd/server.c.
904
905         * Fixed rekey with PFS in backup router.  It did not allow
906           rekeys with PFS, and when the rekey protocol timedout
907           it crashed the backup router without the above fix.  Affected
908           file silcd/packet_send.c and server.c.
909
910 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
911
912         * The silc_client_add_channel_private_key now returns the
913           private key context if pointer is given as argument.
914           Affected files are lib/silcclient/silcclient.h and
915           client_channel.c.
916
917         * Added support for using channel private keys in SILC
918           Client Library even if the private key mode is not set
919           on the channel.  Affected file lib/silcclient/client_channel.c.
920
921         * The channel private key used to decrypt message is now
922           delivered to the application in the 'channel_messageÃ' client
923           operation.  Affected files are lib/silcclient/silcclient.h
924           and client_channel.c.
925
926         * Fixed wrong arg type for user limit in CMODE command reply.
927           Affected file silcd/command.c.
928
929         * The user limit is now taken and saved to SilcClientEntry in
930           JOIN and CMODE command replies and in CMODE_CHANGE notify.
931           Affected files lib/silcclient/silcclient.h, command_reply.c
932           and client_notify.c.
933
934         * Added support to the new private message key indicator
935           packet.  Added a new function to the client library:
936           silc_client_send_private_message_key_request.  The sender
937           indicates to be initiator, and receiver is responder.
938           Added the indicator to the SilcClientEntry as 'prv_resp'
939           boolean.  Affected files are lib/silcclient/silcclient.h
940           client.[ch], and client_prvmsg.c.
941
942 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
943
944         * Fixed the JOIN command calling when called with both
945          -auth and -founder.  Affected file is lib/silcclien/command.c.
946
947 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
948
949         * Check watcher list for resumed clients as well.  Affected
950           file is silcd/packet_receive.c.
951
952 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
953
954         * Implemented the user limit to the CMODE_CHANGE notify,
955           CMODE command reply and JOIN command reply in server.
956           Affected files are silcd/server.c, command.c, command_reply.c,
957           packet_send.c and packet_receive.c.
958
959 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
960
961         * Defined SILC_STRFMT_END that must be used now with
962           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
963           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
964           lib/silcclient/silcvcard.c, silcd/server_util.c.
965
966         * Fixed the adding of public key to the WATCH list in server.
967           Fixed the WATCH notify sending to client.  Affected files
968           are silcd/packet_send.[ch], command.c, server_util.c.
969
970         * Implemented the watching by public key in the SILC Client
971           Library and SILC Client.  Affected files are
972           lib/silcclient/command.c and client_notify.c.
973
974 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
975
976         * Added support for public key watching in server.  Affected
977           files are silcd/server.c, server_internal.h, command.c,
978           server_util.c.
979
980 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
981
982         * Added public key to the SIlcClientEntry.  Affected files
983           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
984
985         * Fixed the get_clients_whois reply processing to return
986           exactly same entries server returned.  Makes it possible
987           to search using attributes.  Affected file is
988           lib/silcclient/idlist.c.
989
990 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
991
992         * Save founder key to SilcChannelEntry.  Affected files are
993           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
994
995 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
996
997         * Call the monitor callback with _CLOSED status from the
998           silc_client_file_close.  Affected files are
999           lib/silcclient/client_fpt.c, silcclient.h
1000
1001         * Added silc_client_get_clients_whois which resolves using
1002           WHOIS, and supports requested attributes as well.
1003           Affected files are lib/silcclient/silcclient.h, idlist.c.
1004
1005 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1006
1007         * Added support for asking the destination filename where
1008           the downloaded file is saved in the file transfer.  Affected
1009           files are lib/silccilent/silcclient.h, client_ftp.c.
1010
1011 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1012
1013         * Fixed error handling in resuming data processing.  Affected
1014           files are lib/silcclient/client_resume.c and client.c.
1015
1016 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1017
1018         * Fixed silc_client_send_private_message to return TRUE correctly.
1019           Affected file lib/silcclient/client_prvmsg.c.
1020
1021         * Added topic to the SilcChannelEntry.  Affected files are
1022           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1023
1024 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1025
1026         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1027           file lib/silcclient/command.c
1028
1029 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1030
1031         * Convert all commands to UTF-8 before passing them to the
1032           client library.  Still need to convert replies from UTF-8 to
1033           the locale encoding.  Affected file
1034           irssi/src/silc/core/silc-cmdqueue.c
1035
1036 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1037
1038         * redirect all silc_client_command_calls through a queueing framework.
1039           This fixes /CYCLE and the annoying "nick change after auto-joining
1040           a channel".  Furthermore it defines one central point where
1041           command parameters can be UTF-8-ified.  Affected files
1042           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1043           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1044
1045 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1046
1047         * use asynchronous connect() to establish router connections.
1048           Fixes problem when the primary router goes down.  Affected files
1049           silcd/server.c, silcd/server_backup.c
1050
1051 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1052
1053         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1054           Fixed various compilation warnings when type casting ints
1055           to pointers or vice versa, of different size.  Updates around
1056           the source free.
1057
1058 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1059
1060         * Surrogates not allowed in UTF-8 strings, updated decoder.
1061           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1062           testers in lib/silcutil/tests/ directory.
1063
1064 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1065
1066         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1067           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1068           files are lib/silcclient/silcclient.h, client.c.
1069
1070 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1071
1072         * When resuming a session fails, notify the user that the session
1073           file needs to be removed eventually.  Affected files
1074           irssi/src/fe-common/silc/module-formats.[ch],
1075           irssi/src/silc/core/client_ops.c.
1076
1077 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1078
1079         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1080           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1081
1082         * Typofix in Irssi::Silc module.  Affected file
1083           irssi/src/perl/silc/Silc.xs.
1084
1085 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1086
1087         * Changed the way NOTICE flagged messages are treated. Added support
1088           for notices in queries and signing notices.  Affected files
1089           irssi/default.theme; irssi/docs/help/in/notice.in;
1090           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1091           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1092
1093         * Fixed typo in /ACTION help.  Affected file
1094           irssi/docs/help/in/action.in
1095
1096 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1097
1098         * Fixed typo in perl module.  Affected file
1099           irssi/src/perl/silc/Server.xs
1100
1101         * Changed the way ACTION flagged messages are treated. Added support
1102           for actions in queries and signing actions.  Affected files
1103           irssi/default.theme; irssi/docs/help/in/action.in;
1104           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1105           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1106           silc-servers.[ch]
1107
1108 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1109
1110         * Incorrectly reported error when client had to be resolved from
1111           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1112
1113 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1114
1115         * Fixed whois public key hash table deleting and adding in
1116           detached client case.  Affected file silcd/packet_receive.c.
1117
1118 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1119
1120         * Changed filenames of silc/fe module not to collide with filenames
1121           from core/fe.  Also seperated public messages printing from
1122           query messages printing.  Affected files are all in
1123           irssi/src/fe-common/silc.
1124
1125 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1126
1127         * Fixed the invite process handling during joining to use
1128           correct server name for the client that is matched against
1129           the invite string for the channel.  Wrong server name caused
1130           inability to join the channel.  Affected file is
1131           silcd/command.c.
1132
1133 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1134
1135         * Fixed the CUMODE channel founder authentication on normal
1136           server to not remove the founder rights on existing founder
1137           before checking that router accepts the mode change.  Affected
1138           files are silcd/command.c and silcd/packet_receive.c.
1139
1140         * Remove the server entry correctly when rekey timeouts and
1141           remote router connection on normal server is closed.  Fixes
1142           a crash where server uses the freed server entry.  Affected
1143           file silcd/server.c.
1144
1145 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1146
1147         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1148           networks.  This is the first step in solving the bug about
1149           /SERVER ADD -silcnet <silcnet>.  Affected files
1150           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1151           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1152           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1153
1154 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1155
1156         * /SMSG and /MMSG now correctly create new queries. Affected files
1157           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1158
1159         * Add basic support for SILC protocol specific variables in perl.
1160           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1161           irssi/src/perl/Makefile.am
1162
1163 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1164
1165         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1166           issue when the current key expires.  Affect file
1167           irssi/src/silc/core/clientutils.c
1168
1169         * Make the session data filename configurable.  This makes it
1170           possible to have different session files for different
1171           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1172           client_ops.[ch], silc-servers.c,
1173           irssi/src/silc/fe-common/silc/module-formats.[ch]
1174
1175         * Use the same set of libtool files for the MPI lib as for the
1176           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
1177           config.sub, configure.in, install-sh, missing, mkinstalldirs
1178
1179 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1180
1181         * Fixed server statistics decrementing error to not go to
1182           negative.  Affected file silcd/packet_receive.c.
1183
1184 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1185
1186         * Use silc_server_query_add_error to add error in public key
1187           search error.  Added support in send_reply to send errors
1188           without specific argument.  Affected file silcd/server_query.c.
1189
1190         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
1191           Client for NO_SUCH_NICK.  It was against the protocol specs.
1192           Affected file irssi/src/silc/core/client_ops.c.
1193
1194         * Added backwards support for the wrong NO_SUCH_NICK error sending
1195           in server.  To be removed in SILC Server 1.0.  Both old clients
1196           and clients with fixed error handling now works.  Affected file
1197           silcd/server_query.c.
1198
1199 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
1200
1201         * fixed a bug in the whois using attributes function where no
1202           error was sent if no nickname and client id but the attributes were
1203           given to whois. Affected file silcd/server_query.c
1204
1205 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
1206
1207         * remove public key from public key hashtable on detach. Affected
1208           file silcd/packet_receive.c
1209
1210         * free public key hashtable before removing clients on server
1211           shutdown. Affected file silcd/server.c
1212
1213         * remove public key prior deleting client-data on killing a client.
1214           Affected file silcd/server_util.c
1215
1216 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
1217
1218         * Getting the MOTD from other servers works now. Affected
1219           files are silcd/command.c and silcd/command_reply.c
1220
1221 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1222
1223         * Initialize the variable idletag, since it is tested in
1224           silc_core_deinit for its default value.  Affected file
1225           irssi/src/silc/core/silc-core.c
1226
1227 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
1228
1229         * Fixed signed channel messages across cells. Affected file
1230           silcd/packet_send.c
1231
1232 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1233
1234         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
1235           is not defined.  They can now be safely used in if-statements
1236           without braces.  Affected file lib/silcutil/silclog.h.
1237
1238         * Added the checks for backup closing connection due to error
1239           (local or remote) and thus not allow the resuming to occur
1240           in reconnect.  Affected files are silcd/packet_send.c
1241           and server.c.
1242
1243 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1244
1245         * Help file updates.  Affected files in irssi/src/docs/help/in/.
1246
1247 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
1248
1249         * Fixed channel messages across cells. Affected file
1250           silcd/packet_send.c
1251
1252 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1253
1254         * Fixed file transmission accepting in client library to not
1255           start the negotiation if user hasn't accepted the transfer,
1256           instead create new session for resent transfer.  Affected
1257           file lib/silcclient/client_ftp.c.
1258
1259         * Show the session ID in the file transmision list.  Remove
1260           session from list that failed to transfer.  Switch the current
1261           session automatically after transmission, and in errors, to new
1262           session if other sessions exists in the transfer list.  Affected
1263           files are irssi/src/silc/core/silc-servers.c,
1264           irssi/src/fe-common/silc/modfule-formats.c.
1265
1266 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1267
1268         * Fixed MIME header parsing for the hopefully last time.  Affected
1269           file lib/silcutil/silcstrutil.c
1270
1271 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1272
1273         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
1274
1275         * The SILC RNG is now gauranteed to return non-zero random
1276           values.  Affected files are lib/silccrypt/silcrng.[ch].
1277
1278 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1279
1280         * Fixed nickname formatting when changing only case of the
1281           nickname.  Affected file lib/silcclient/idlist.c.
1282
1283 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1284
1285         * Fixed a memory leak and incorrect printing of the "appears as"
1286           message.  Affected file irssi/src/silc/core/client_ops.c
1287
1288 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1289
1290         * Added CRT (Chinese Remainder Theorem) supported RSA
1291           private keys and private key operations.  This significantly
1292           increases private key operation efficiency.  No compatibility
1293           issues with new or old private keys.  Affected files are
1294           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
1295
1296 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1297
1298         * Fixed GCC-3.3.2 related compilation warnings from the
1299           source tree.
1300
1301 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1302
1303         * Removed RC6 from distributions.
1304
1305 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1306
1307         * Added some better comments to lib/silccrypt/silcpkcs.h,
1308           optimized some routines in lib/silccrypt/silcpkcs.c.
1309           Added test_silcpkcs into lib/silccrypt/tests/.
1310
1311         * Fixed silc_rng_global_init to actually init the global RNG
1312           if RNG wasn't provided for it.  Affected file is
1313           lib/silccrypt/silrng.c.
1314
1315 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1316
1317         * Added silc_hash_table_find_by_context_ext.  Affected files
1318           lib/silcutil/silchashtable.[ch].
1319
1320         * Save the public key on normal server in WHOIS command reply
1321           from attributes, if present, and add it to public key hash
1322           table.  Fixes WHOIS resolving by public key on normal server.
1323
1324           Optimized the attributes resolving on normal server to not
1325           resolve if we resolved them already from router.
1326
1327           Affected files are silcd/server_query.c, command_reply.c.
1328
1329 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
1330
1331         * Added support for whois using attributes.
1332           Affected files silcd/command_reply.c, silcd/packet_receive.c,
1333           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
1334           silcd/server_util.c
1335
1336         * Added support for whois using public key attribute to /WHOIS i
1337           client command. Affected files irssi/docs/help/in/whois.in,
1338           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
1339
1340 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1341
1342         * Fixed UMODE setting in server when the client has anonymous
1343           mode set.  The mode setting was not working.  Affected file
1344           silcd/command.c.
1345
1346 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1347
1348         * Fixed some bugs and typos related to sending split messages.
1349           Print notification when sending messages with /MMSG.  Affected
1350           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
1351
1352 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1353
1354         * Optimized the socket referencing in packet routines, client
1355           library and server.  Affected files are lib/silccore/silcpacket.c,
1356           lib/silcclient/client.c and silcd/server.c.
1357
1358         * If silc_socket_set_qos is given with NULL arguments the QoS is
1359           reset from the socket.  Affected files are
1360           lib/silcutil/silcsockconn.[ch].
1361
1362 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1363
1364         * Add a /LISTKEYS command which lists the locally cached
1365           client and server keys.  Affected files
1366           irssi/src/fe-common/module-formats.[ch],
1367           irssi/src/silc/core/silc-{channels,servers}.c
1368           irssi/docs/help/in/listkeys.in
1369
1370 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1371
1372         * Check that packet queue purging was successful.  Affected
1373           files lib/silcclient/client.c and silcd/packet_send.c.  Related
1374           to MAC failed errors.
1375
1376         * Do not clear the inbuf even if it is empty if QoS was applied
1377           to it.  Otherwise the QoS data is cleared and MAC failed error
1378           will occur.  Affected file lib/silccore/silcpacket.c.
1379
1380         * Use the rekey period time as rekey protocol timeout value.
1381           If the rekey does not succeed during the rekey period there's
1382           something very wrong, and we most likely end up with wrong keys,
1383           do graceful reconnect then.   Affected file silcd/server.c.
1384
1385         * Take reference of the socket in the parser context, as it's
1386           possible to have the parsers in queue after the socket is
1387           disconnected and this may cause crash.  Affected files are
1388           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1389           silcd/server.c.
1390
1391 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1392
1393         * Fixed KICK command reply sending, it sent to replies.
1394           Affected file silcd/command.c.
1395
1396 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1397
1398         * Finish the silc-mime.pl script. It now supports MIME type
1399           guessing using magic files, signing data messages, executing
1400           MIME handlers in background. Affected files
1401           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1402
1403         * Changed MIME signal handler to make things easier for the perl
1404           script. Affected files irssi/src/silc/core/client_ops.c,
1405           silc-servers.c, and irssi/docs/signals.txt
1406
1407         * Cleaned up the silc_mime_parse function and fixed detection
1408           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1409
1410 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1411
1412         * Resolve the IP for file transfer listener from the connection
1413           socket.  Affected file lib/silcclient/client_ftp.c.
1414
1415         * Accept NULL hostname parameter in the functions
1416           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1417           if hostname is not wanted.
1418
1419 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1420
1421         * Fixed race condition between silc_client_init and
1422           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1423
1424 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1425
1426         * Fixed file transfer connection closing when SIGNOFF for
1427           the client is received from server.  Affected file is
1428           lib/silcclient/client_ftp.c.
1429
1430 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1431
1432         * Check for disconnected socket in QUIT callback.  Affected
1433           file silcd/command.c.
1434
1435 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1436
1437         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1438           Affected files lib/silcutil/silcstrutil.c
1439
1440         * Cleaned up the escape/unescape functions for correctness and
1441           speed. Affected file irssi/src/silc/core/client_ops.c
1442
1443         * Removed handling for data messages with Content-Type: text/*,
1444           moved parsing of MIME headers to the signal handler, added
1445           support for signing and verifying data messages. Affected
1446           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1447           irssi/src/silc/core/silc-{servers,channels}.c
1448
1449         * Added a perl script for handling data messages based on
1450           information read from Mailcap files. New file
1451           irssi/scripts/silc-mime.pl
1452
1453 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1454
1455         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1456           acknowledge recepetion of a message to the sender.  Updated
1457           protocol specs.
1458
1459 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1460
1461         * Unregister channel key saving callback when deleting channel.
1462           Affected file lib/silcclient/idlist.c.
1463
1464         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1465           before calling notify client operation.  Affected file is
1466           lib/silcclient/client_notify.c.
1467
1468         * Unregister QoS tasks when deleting the socket connection.
1469           Affected files lib/silcutil/silcsockconn.[ch],
1470           unix/silcunixsockconn.c.
1471
1472         * Implemented latest presence-attrs draft changes.  Affected
1473           files lib/silccore/silcattrs.h and
1474           irssi/src/silc/core/silc-queries.c.
1475
1476 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1477
1478         * Save old channel keys in list to allow more rapid change
1479           of channel keys if server for some reason does that.  This
1480           avoids loosing so many channel messages due to not having
1481           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1482           idlist.c and client_channel.c.
1483
1484 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1485
1486         * Continued backup router tests and fixes.  Affected files
1487           silcd/server_backup, server_util.c, server.c.  See TODO.
1488
1489 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1490
1491         * Fixed SERVER_SIGNOFF handling in servers.  The client
1492           was removed from wrong list thus not removing the client
1493           at all.  Affected file silcd/packet_receive.c.
1494
1495         * Do not execute rekey protocol for disabled connections as
1496           it would never go through.  Affected file silcd/server.c.
1497
1498         * Added timeout for rekey protocol to catch if the protocol
1499           never executes successfully.  Affected files silcd/server.c
1500           and protocol.h.
1501
1502 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1503
1504         * Abandon packet processing for disconnected sockets.  Check
1505           this always after calling packet processing callback.
1506           Affected file lib/silccore/silcpacket.c.
1507
1508         * Fixed double registration disconnection code in server.
1509           Closed wrong connection.  Affected file silcd/packet_receive.c.
1510
1511 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1512
1513         * On normal server reconnect to primary during resuming 4
1514           times, then give up.  Affected file silcd/server_backup.c.
1515
1516         * If during reconnecting to routers we notice we have router
1517           connection but no primary router set, the server is in desync.
1518           Reconnect to primary to restore network.  Affected file
1519           silcd/server.c.
1520
1521         * Assure that only one protocol is exeucting at the same time.
1522           Added checks for all protocols.  Affected files are
1523           silcd/server.c and server_backup.c.
1524
1525 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1526
1527         * Check that a string is not already part on invite/ban
1528           string when processing it.  Affected file silcd/server_util.c.
1529
1530 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1531
1532         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1533           with 1.2 version of the protocol.  Affected file is
1534           silcd/packet_receive.c.
1535
1536 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1537
1538         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1539           where the passphrase was given.  Affected file is
1540           silcd/command.c.
1541
1542 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1543
1544         * INVITE and BAN notifys are now delivered from routers to
1545           servers (but not clients) on the channel.  Updated specs and
1546           code.  Affected files silcd/packet_[send|receive].[ch],
1547           command.c, server.c and server_util.c.
1548
1549         * Implemented INVITE and BAN announcing.  Affected files are
1550           silcd/server.[ch], server_util.c.
1551
1552         * Implemented SilcStatus error type argument returning in
1553           command reply error in server.  Affected file silcd/command.c.
1554
1555         * Implemented SilcStatus argument returning in comand reply
1556           in client library.  The command_reply client operation now
1557           returns error specific arguments as well.  Affected files
1558           are lib/silcclient/command_reply.[ch], client_resume.c,
1559           lib/silccore/silcstatus.[ch].
1560
1561 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1562
1563         * Backup router protocol version 1.2 implemented.  Testing still
1564           required.  Affected files in silcd/server_backup.[ch], server.c,
1565           packet_receive.c and server_internal.h.
1566
1567 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1568
1569         * silc_client_send_[channel|private]_message now return TRUE
1570           or FALSE.  Affected file lib/silcclien/client_channel.c and
1571           client_prvmsg.c.
1572
1573 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1574
1575         * Check for explicit nickname in INVITE and BAN processing
1576           during join as well (and don't expect only wildcards in
1577           invite/ban strings).  Affected file silcd/command.c.
1578
1579         * Fixed the INVITE and BAN by public key.  The public key saved
1580           is the PK payload (as specified) not the raw data.  Affected
1581           file silcd/server_util.c.
1582
1583 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1584
1585         * UTF-8 text message support for actions and notices in SILC
1586           Client.  Affected file irssi/src/silc/core/client_ops.c.
1587
1588         * silc_get_username and silc_get_real_name now returns sensible
1589           data on Win32.  Patch by Toni Willberg.  Affected file is
1590           lib/silcutil/win32/silcwin32util.c.
1591
1592 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1593
1594         * Provide a signal handler to send MIME encoded messages and emit
1595           a signal when a MIME encoded message is received. Also document
1596           the signals for usage with the perl interface.
1597
1598           A sample perl script will be supplied at a later point.
1599
1600           Affected files are irssi/docs/signals.txt,
1601           irssi/src/silc/core/client_ops.[ch],
1602           irssi/src/silc/core/silc-{channels,servers}.c
1603
1604 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1605
1606         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1607           server. Use this time to display a lag and disconnect when it
1608           exceeds a specified limit.
1609
1610           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1611
1612 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1613
1614         * Remove the channel auth list in normal server if router
1615           encofrces its list during connecting.  Send notify to channel
1616           to remove the mode to remove the list.  Affected files are
1617           silcd/server_util.c and silcd/packet_receive.c.
1618
1619 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1620
1621         * Added support for channel public keys.  Updated protocol specs
1622           and implemented it.  Affected files are
1623           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1624           lib/silcclient/command_reply.c.
1625
1626 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1627
1628         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
1629           terminate the process on Linux.  Affected file silcd/silcd.c.
1630
1631 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1632
1633         * Check for NULL buffer in silc_buffer_clear.  Affected file
1634           is lib/silcutil/silcbuffer.h.
1635
1636         * Simplified the backup router protocol by removing the _GLOBAL
1637           types.  Updated protocol specs and the code.  Affected files
1638           are silcd/server_backup.[ch].
1639
1640 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1641
1642         * Deny '@' and '!' from nicknames since they are reserved
1643           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
1644           Updated protocol specs and the code.
1645
1646           Affected files are silcd/server_util.[ch].
1647
1648 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1649
1650         * Fixed stack overflow in Irssi SILC client.  Affected
1651           file irssi/src/silc/core/client_ops.c.
1652
1653         * Check that Host is set in ServerConnection and RouterConnection
1654           in silcd.conf.  Affected file silcd/serverconfig.c.
1655
1656         * Fixed crash in server with protocol completion callbacks,
1657           namely rekey and backup resuming protocols.  Affected files
1658           are silcd/server_backup.c and silcd/server.c.
1659
1660         * Fixed rekey protocol to not restart if it is started already.
1661           Affected files are lib/silcclient/client.c and
1662           silcd/server.c.c
1663
1664 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1665
1666         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
1667
1668         * Fixed EOF handling in SILC Config, affected file
1669           lib/silcutil/silcconfig.c.
1670
1671         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
1672
1673         * Fixed RESOLVING flag handling in JOIN notify and other
1674           notifys to handle the resolvings correctly in client library.
1675           Affected file lib/silcclient/client_notify.c.
1676
1677         * Do not send full INVITE and BAN lists in INVITE and BAN
1678           notifys, only the changed information.  Affected file
1679           silcd/command.c.
1680
1681         * Fixed INVITE notify sending in INVITE command, send it
1682           only when needed.  Affected file silcd/command.c.
1683
1684         * Handle the founder key change properly in CMODE_CHANGE
1685           notify.  Bug #122.  Affected file silcd/packet_receive.c.
1686
1687 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1688
1689         * Remove the mark for output (mark it only for input) after
1690           purging outgoing queue.  Prevents the "Error in select()"
1691           floods.  Affected file silcd/packet_send.c.
1692
1693         * Fixed incorrect connection deletion from client library
1694           after calling "connect" client operation.  Could cause
1695           crashes for example during reconnect timeouts.  Affected
1696           files are lib/silcclient/client.c and
1697           irssi/src/silc/core/client_ops.c.
1698
1699         * Check server private key file permissions before starting
1700           the server.  Affected file silcd/serverconfig.c.
1701
1702 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1703
1704         * NULL terminate allocated string in silc_buffer_strformat.
1705           Affected file lib/silcutil/silcbuffmt.c.
1706
1707         * Rewrote the invite/ban list string handling in server to
1708           use SilcBuffer instead.  Affected files are silcd/command.c
1709           and silcd/server_util.c.
1710
1711 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1712
1713         * Fixed double free in CMODE command when setting new HMAC
1714           for channel.  Affected file silcd/command.c.
1715
1716         * Added couple of missing memset's to zero sensitive memory.
1717           Affected files silcd/command.c, lib/silcclient/command.c.
1718
1719 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1720
1721         * Fixed a double free in INVITE command error handling in
1722           server.  Affected file silcd/command.c.
1723
1724         * Added macros SILC_SWAB_[16|32] to swab byte order of
1725           16-bit and 32-bit unsigned integers.  Affected file
1726           lib/silcutil/silctypes.h.
1727
1728         * Use the SILC_SWAB_16 instead of htons() in server when
1729           handling ports since the ports in structures are always
1730           in little-endian order (regardless of platform).  Affected
1731           file silcd/serverid.c and silcd/server_backup.c.
1732
1733 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1734
1735         * Send DISCONNECT in close admin command in server.  Affected
1736           file silcd/command.c.
1737
1738         * Check whether we are already connecting to a remote router
1739           (in addition of checking whether we are already connected)
1740           before creating new connection.  Affected file silcd/server.c.
1741
1742 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1743
1744         * Added better compiler and compiler flags checking in
1745           configure.
1746
1747         * Check that socket is valid after QoS is applied to data.
1748           Affected file lib/silcutil/unix/silcunixsockconn.c.
1749
1750         * Make sure the socket connecetion is not closed to early
1751           when closing connection in server.  Also make sure the
1752           connection is always closed after error in a protocol.
1753           Affected file silcd/server.c.
1754
1755 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1756
1757         * Removed --session and --dummy options from Irssi SILC Client.
1758           -d option is available only if --enable-debug was given.
1759           Affected files are irssi/src/silc/core/silc-core,
1760           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
1761
1762 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1763
1764         * Added silc_buffer_steal to steal the data from the buffer.
1765           Affected file lib/silcutil/silcbuffer.h.
1766
1767 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
1768
1769         * Fixed server crash with double Primary block in config file.
1770
1771           Fixed also various memory leaks around the config file
1772           parser.  Affected files lib/silcutil/silcconfig.c,
1773           silcd/serverconfig.c.
1774
1775         * Changed my nickname (Johnny Mnemonic) to my real name, this
1776           means that bugs introduced by him were actually introduced
1777           by me!
1778
1779 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1780
1781         * Don't display "foo appears as foo\nYou're now known as foo"
1782           messages.  Affected file irssi/src/silc/core/client_ops.c
1783
1784 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1785
1786         * Fixed error handling of invalid client entry when calling
1787           commands in server.  Fixes a crash.  Affected file
1788           silcd/command.c.
1789
1790 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1791
1792         * Added some sanity checks in server for correctness of the
1793           server configuration.  Affected file silcd/serverconfig.c.
1794
1795 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1796
1797         * Prevent endless resolving of user informations in USERS
1798           command by checking the command reply status correctly.
1799           Affected file lib/silcclient/command_reply.c.
1800
1801 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1802
1803         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
1804           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
1805           Aldous <Matthew@Aldous.com>.
1806
1807         * Added better implementation using CriticalSection of
1808           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
1809           <mikko.lahteenmaki@pikabaana.net>.
1810
1811         * Added some Winsock WIN32 compatiblity defines into
1812           includes/silcwin32.h.
1813
1814 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1815
1816         * Fixed double free in async host lookup code.  Affected file
1817           lib/silcutil/silcsockconn.c.
1818
1819         * On backup router handle now the SERVER_SIGNOFF from router
1820           for local connected servers too, and close the connections.
1821
1822           Do not process them as normally signing off servers when they
1823           really signoff by sending EOF fe, but always assume that
1824           router sends the SERVER_SIGNOFF.
1825
1826           Affected files silcd/server.c and silcd/packet_receive.c.
1827
1828         * Fixed socket unsetting when closing connections.  Affected
1829           files silcd/server.c and silcd/packet_send.c.
1830
1831         * Do not print the nickname in SERVER_SIGNOFF if we do not
1832           have it.  Prevents asserts in Irssi core.  It is possible we
1833           don't have the nick if it was just being resolved when server
1834           signoff.  Affected file irssi/src/silc/core/client_ops.c.
1835
1836 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1837
1838         * Fixed autonick crashbug in client library.  Affected file
1839           lib/silcclient/client.c.
1840
1841         * Fixed Unix implementation of SilcMutex to really assert if
1842           the mutex is locked/unlcoked already.  Affected file
1843           lib/silcutil/unix/silcunixmutex.c.
1844
1845         * Fixed locking in silc_schedule_uninit.  It didn't lock
1846           when dispatching timeout tasks.  Affected file is
1847           lib/silcutil/silcschedule.c.
1848
1849         * Changed Win32 implementation of SilcThread to use modern
1850           Win32 interface.  Affected file is
1851           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
1852
1853 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1854
1855         * Don't print signed messages when sending failed.  Affected files
1856           irssi/src/silc/core/silc-[servers.c/commands.h]
1857
1858         * Send adquate signal when founding a channel by joing it.  Affect
1859           file irssi/src/silc/core/client_ops.c
1860
1861 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1862
1863         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
1864           irssi/src/fe-common/core/themes.c
1865
1866 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1867
1868         * Fixed close command to use the port correctly when closing
1869           server connections.  Affected file silcd/idlist.c.
1870
1871         * Check for NULL outbuf in silc_socket_write.  It is possible
1872           that it is NULL is some odd case.  Affected files are
1873           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
1874
1875         * Do not call final protocol callback for backup router
1876           resuming protocol when closing connection.  It is closed
1877           by timeout in case of error.  Affected file silcd/server.c.
1878
1879         * Backup reconnect to router if backup resuming protocol
1880           failed.  Affected file silcd/server_backup.c.
1881
1882 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1883
1884         * Fixed double free in SKE library error hadling when signature
1885           error occurred.  Affected file lib/silcske/silcske.c.
1886
1887         * Save the fingerprint to new SilcClientEntry after changing
1888           nickname.  Affected file lib/silcclient/client_notify.c.
1889
1890         * Print SIGNOFF in Irssi SILC client only if the nickname is
1891           known.  Prevents asserts in Irssi core.  It is possible we
1892           don't have the nick if it was just being resolved when it
1893           quit.  Affected file irssi/src/silc/core/client_ops.c.
1894
1895 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1896
1897         * Fixed double free in invite list adding code when adding
1898           invite strings.  Affected file silcd/server_util.c.
1899
1900 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1901
1902         * More log printing during backup router protocol.  Affected
1903           file silcd/server_backup.c.
1904
1905         * Removed backwards support for old private key file format.
1906           Affected file lib/silccrypt/silcpkcs.c.
1907
1908         * Removed backwards support for not-so-strict decryption length
1909           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
1910
1911         * GETKEY to update the client entrys fingerprint too.
1912           Affected file lib/silcclient/command_reply.c.
1913
1914         * Added --without-libtoolfix for package builders using weird
1915           wrappers around libtool (BSD at least).
1916
1917 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1918
1919         * Fixed backup router bugs:  When backup resumes router and
1920           receives a CHANNEL_MESSAGE packet the backup must not act
1921           as router since the packet header decryption would be
1922           different.  Also, when relaying packets to channel, do
1923           not re-encrypt packets on backup that came from the primary
1924           since the connection isn't really router-router connection.
1925           Affected files silcd/server.c, silcd/packet_send.c.
1926
1927         * Added checks in encryption/decryption that encryption/decryption
1928           length sent as argument really is multiple by block size.  Helps
1929           catching really weird bugs like the above backup router bugs
1930           when packets are being decrypted in wrong way.  Affected files
1931           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
1932
1933         * Fixed padding generation in private key file encryption.
1934           Affected file lib/silccrypt/silcpkcs.c.
1935
1936 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1937
1938         * Added ignore_message_signatures setting which can be used
1939           to ignore signatures in messages.  Affected files are
1940           irssi/src/silc/core/client_ops.c, silc-core.c.
1941
1942         * Fixed the libtoolfix to use command line options instead of
1943           environment variables.  They didn't work as expected.  Now,
1944           the libtool is fully run-time configurable.
1945
1946 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1947
1948         * Verify signature payload for signed messages. Affected files
1949           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
1950           irssi/src/silc/core/silc-core.h
1951
1952         * Display signature verification result in public and private
1953           messages using theme abstracts. See irssi/default.theme for
1954           examples on their usage. Affected files
1955           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
1956           irssi/src/fe-common/silc/module-formats.[ch],
1957           irssi/src/fe-common/silc/fe-common-silc.c,
1958           irssi/src/fe-common/silc/Makefile.am
1959           irssi/src/fe-common/core/fe-messages.[ch]
1960
1961         * Fixed bugs in Irssi's theme parsing. Affected files
1962           irssi/src/fe-common/core/themes.c
1963
1964 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1965
1966         * Calculate the correct length for signed messages before
1967           encrypting, it must be multiple by block size.  Affected
1968           file lib/silccore/silcmessage.c.
1969
1970         * silc_message_signed_get_public_key returns now both
1971           decoded and encoded public key.  Affected files are
1972           lib/silccore/silcmessage.[ch].
1973
1974         * Added libtoolfix script that makes the libtool more generic
1975           and configurable in run-time.  Now we can specify in run-time
1976           if what kind of libraries we want to create, regardless of
1977           configuration.  SIMs are now creates even if --disable-shared
1978           was explicitly given.
1979
1980 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1981
1982         * Fixed founder key sending in CMODE command in client.
1983           Affected file lib/silcclient/command.c.
1984
1985         * Fixed CUMODE founder authentication in server to not check
1986           for client's public key since it's not supposed to do that.
1987           Affected file silcd/command.c.
1988
1989 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
1990
1991         * Set realname and hostname in NICK_REC records. Affected file
1992           irssi/src/silc/core/silc-nicklist.c
1993
1994 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1995
1996         * Remove 1.0 protocol backwards compat code from client
1997           library.
1998
1999         * Added more reliable check for whether nickname did change
2000           or not, or whether only Client ID changed in NICK_CHANGE
2001           notify.  Affected file lib/silcclient/client_notify.c.
2002           Fixes bug in '@' character handling in a nickname.
2003
2004         * Added support for automatically parsing signature from
2005           the message payload.  Added new function
2006           silc_message_get_signature to return the payload to
2007           application.  Affected files lib/silccore/silcmessage.[ch].
2008
2009         * Changed the private_message and channel_message client
2010           operations to deliver the SilcMessagePayload to the
2011           application too.  Application can use it fe. to get the
2012           signature from the message for verification.  Affected
2013           file lib/silcclient/silcclient.h, client_channel.c and
2014           client_prvmsg.c.
2015
2016         * Redefined the signed payload for message payloads.
2017           Updated protocol specs and implemented.
2018
2019 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2020
2021         * Fixed wrong invite and ban list handling in server command
2022           reply.  Affected files are silcd/command_reply.c,
2023           silcd/server_util.[ch].
2024
2025 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2026
2027         * Fixed CMODE setting in server when founder mode was set.
2028           Affected file silcd/command.c.  Bug #95.
2029
2030         * Added support to setting specific public key in CMODE in
2031           Irssi SILC client.  Affected file lib/silcclient/command.c.
2032
2033         * Added support to use specific public key in CUMODE in
2034           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2035
2036         * Added support for inviting and banning by public key in
2037           Irssi SILC client.  Affected file lib/silcclient/command.c.
2038
2039         * Fixed fingerprint/babbleprint showing in invite and ban
2040           list command replys.  Affected file is
2041           irssi/src/silc/core/client_ops.c.
2042
2043 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2044
2045         * Format CMODE +c and +h to display both the mode and the argument
2046
2047 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2048
2049         * Added test vectors and test programs for SHA-1, MD5,
2050           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2051           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2052           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2053
2054         * Changed the channel private key and private message key
2055           generation (with static keys) to use SHA1 instead of MD5,
2056           as SHA1 is the mandatory hash function in SILC.  Affected
2057           file lib/silcclient/client_[channel/prvmsg].c.
2058
2059         * Changed the private key file encryption to use SHA1 instead
2060           of MD5.  Added support for the old generation and added
2061           automatic change of the key (to be removed later).  Affected
2062           files lib/silccrypt/silcpkcs.c.
2063
2064 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2065
2066         * Load only files with .pub suffix in PublicKeyDir.  Affected
2067           file silcd/serverconfig.c.
2068
2069 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2070
2071         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2072           channels.  Affected files silcd/silcd.c, silcd/server.h.
2073
2074         * Added the config directive PublicKeyDir for the client block.
2075           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2076
2077 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2078
2079         * Merged Toni's irssi/silc.conf patch.
2080
2081         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2082
2083         * Max alloc tests in allocation routines.  Affected file
2084           lib/silcutil/silcmemory.c.
2085
2086 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2087
2088         * Fixed a typo in resuming code that fixed detach/resume code
2089           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2090
2091 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2092
2093         * Do reverse lookups for server when /connecting. Affected files
2094           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2095           irssi/src/core/net-nonblock.*
2096
2097 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2098
2099         * Added library versioning for shared libraries.  Affected
2100           files configure.in.pre and lib/Makefile.am.pre.
2101
2102 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2103
2104         * Display INVITE and BAN lists as specified by SILC 1.2
2105
2106 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2107
2108         * Do not send invite list back unless asked (when sending
2109           no arguments) or when list was modified.  Affected file
2110           silcd/command.c.
2111
2112         * Remove client from invite list in KILLED notify and in
2113           KILL command.  Affected file silcd/command.c and
2114           silcd/server.[ch].
2115
2116         * Fixed bugs in invite list handling in INVITE command.
2117           Affected files silcd/command.c and silcd/server_util.c.
2118
2119         * Merged with Irssi 0.8.6.
2120
2121         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2122           Affected file irssi/src/fe-text/silc.c.
2123
2124 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2125
2126         * The silc_argument_get_[first/next] now return the argument
2127           type to caller.  Added silc_argument_payload_encode_one.
2128
2129           Affected files are lib/silccore/silcargument.[ch].
2130
2131         * Added support for the SILC 1.2 INVITE command and new
2132           invite lists to server.  Affected files are silcd/command.c,
2133           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2134
2135         * Added support for the SILC 1.2 BAN command and new
2136           ban lists to server.  Affected files are silcd/command.c,
2137           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2138
2139         * Added support to client sending new INVITE command.  Affected
2140           file is lib/silcclient/command.c.
2141
2142         * Added support to client sending new BAN command.  Affected
2143           file is lib/silcclient/command.c.
2144
2145         * Added support for removing client from invite list when kicked
2146           from channel, as SILC 1.2 dictates.  Affected files are
2147           silcd/packet_receive.c and silcd/command.c.
2148
2149 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2150
2151         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2152           automatically the cipher's internal IV.  Affected files
2153           lib/silccrypt/silccipher.[ch].
2154
2155         * Assure the RESUME_CLIENT packet is not sent to twice to
2156           backup router if the detached client was originated from
2157           the backup.  Affected file silcd/server.c.  Bug #76.
2158
2159         * Changed silc_sim_symname to not allocate memory.  Affected
2160           file lib/silcsim/silcsimutil.c.
2161
2162         * Fixed memory leaks with SIMs in server.  Affected files
2163           silcd/serverconfig.c, silcd/server.c.
2164
2165         * Fixed channel key distribution after resuming detached
2166           client.  Affected files silcd/packet_receive.c.
2167
2168         * Fixed channel's global_user boolean checking after detaching.
2169           Check it after changing the owner of the client not before.
2170           Affected file silcd/packet_receive.c.
2171
2172         * Fixed few double frees from client library.  Fixes at least
2173           Bug #81, possibly others too.
2174
2175         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2176           notifys in Irssi SILC Client.  Affected file is
2177           irssi/src/silc/core/client_ops.c.  Bug #82.
2178
2179         * Applied Ville Räsänen's manual page and --mandir bugfix
2180           patch.  Affected files are configure.in.pre and Makefile.am.pre.
2181           Bug #88.
2182
2183 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2184
2185         * Added support to backup router protocol for backup to tell
2186           normal server that it cannot use the backup router as primary
2187           because the primary isn't really down.  Updated protocol
2188           specs.
2189
2190         * Added support for primary router to tell backup router that
2191           resuming is not possible because the backup really isn't primary
2192           in the cell.  For example if backup disconnected itself the
2193           resuming is not allowed since the primary really did not
2194           go down.  Updated protocol specs.
2195
2196         * Removed MARS from crypto library.
2197
2198         * Defined the CTR mode and Randomized CBC mode in SILC.  The
2199           CTR mode is RECOMMENDED now in specification.  Defined also
2200           Serpent cipher as optional cipher.  Updated the protocol specs.
2201
2202 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2203
2204         * Added support for inviting/banning by IP/MASK, public key,
2205           and explicit Client ID.  Redefined the command and notify
2206           types to allow easier forwards support for other methods
2207           of inviting/banning.  Updated protocol specs.
2208
2209         * Remove the client from channel's invite lists if the client
2210           is kicked or killed.  Updated protocol specs.
2211
2212         * Unified the Channel Message Payload and Private Message
2213           into one Message Payload.  Updated protocol specs and
2214           implemented.
2215
2216 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2217
2218         * Don't wait for EOF after socket error has occurred, but
2219           close the connection.  Affected file is silcd/server.c.
2220
2221 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2222
2223         * Added support for setting FOUNDER mode on channel with
2224           specific public key which can be set with CMODE command.
2225           Updated protocol specs and implemented in client and server.
2226
2227         * Fixed the Irssi SILC client to correctly shutdown the client
2228           library to avoid memory leaks.  Affected files are
2229           irssi/src/silc/core/silc-core.c and silc-servers.c.
2230
2231         * Deprecated the No Reply flag in SKE protocol and introduced
2232           "IV Included" flag which can be used to indicate that the IV
2233           is included in the ciphertext.  This makes it possible to use
2234           SILC on unreliable transport, such as UDP which may cause
2235           packet reordering and losses.  Updated protocol specs, did
2236           not implement yet.
2237
2238 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2239
2240         * Fixed the MPI implementation of silc_mp_sizeinbase to return
2241           < 32 bit values in correct size.  Affected file is
2242           lib/silcmath/mp_mpi.c.
2243
2244 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2245
2246         * Fixed the KE Start Payload parsing to check that mandatory
2247           fields are present.  Affected file lib/silcske/payload.c.
2248
2249         * Fixed compilation warnigs in Irssi SILC Client.  Affected
2250           files are irssi/src/silc/core/silc-query.c. client_ops.c.
2251
2252 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2253
2254         * Print "nick now appears as newnick" and update Irssi's nicklist
2255           when you change your nick to "nick". Closes #62
2256
2257         * Never format your own nick. Closes #63
2258
2259 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2260
2261         * SILC_UMODE_GONE changes are now propagated correctly to the
2262           Irssi client. Closes #54
2263
2264 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2265
2266         * Fixed example in /HELP KEY
2267
2268         * Added expando $j which expands to current SILC Client version
2269
2270 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2271
2272         * Fixed public key decoding in crypto library.
2273
2274         * Added better error printing to SKE library.
2275
2276 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2277
2278         * Fixed NICK command to not crash if nickname was not sent.
2279
2280 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2281
2282         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
2283           Deprecated the old Encrypt-And-MAC order.  Updated protocol
2284           specs and implemented.
2285
2286         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
2287           generation.  Updated specs and implemented.
2288
2289 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2290
2291         * Added support for rekey before 2^32 sequence number wraps.
2292           Affected files in server and client library.
2293
2294         * Padding must be at least 8 bytes now.  Implemented and updated
2295           protocol specs.
2296
2297         * Compute maximum padding for authentication packets to make
2298           passphrase approximation attacks impossible.  Affected files
2299           in client library and in server.
2300
2301         * Fixed PING command sending in client library and handling in
2302           server.  The server ID must be ID Payload, not raw ID data.
2303           Affected files in server and client library.
2304
2305         * Defined that all public keys sent in commands and notify
2306           payloads are actually Public Key Payloads not raw public key
2307           data.  Updated protocol specs and implemented.
2308
2309         * Updated protocol version to 1.2.  Updated specs and code.
2310
2311         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
2312           status types.  Updated specs and the code.
2313
2314         * Added support for normal client to kill its own entries from
2315           the network.  Updated protocol specs and the code.
2316
2317         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
2318           and added initial implementation.
2319
2320         * Added MAC field to the Private Message Payload to protect
2321           against chosen ciphertext attacks.  Updated the protocol specs
2322           and implemented.
2323
2324         * Added idle and signon fields to the ATTRIBUTE_SERVICE
2325           attribute to indicate the user's current idle and signon time
2326           of a service.  Updated protocol specs and implemented.
2327
2328 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2329
2330         * Added "do_not_bind" argument to silc_client_file_send what
2331           can be used to not bind locally but assume the file receiver
2332           provides the point of connect.  Usefull when sender is behind
2333           NAT device.  Affected file lib/silcclient/silcclient.h and
2334           client_ftp.c.
2335
2336         * Added -no-listener option to FILE SEND command in Irssi SILC
2337           client.  Affected file irssi/src/silc/core/silc-servers.c.
2338           Renamed FILE RECEIVE to FILE ACCEPT.
2339
2340         * Confirm passphrase for private key encryption in
2341           silc_create_key_pair and silc_change_private_key_passphrase.
2342           Affected files are lib/silcutil/silcapputil.c.
2343
2344 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2345
2346         * Move silc_client_packet_send back to internal, added
2347           silc_client_send_packet, a bit simpler function for application.
2348           Affected files lib/silcclient/silcclient.h, client.c and
2349           client_internal.h.
2350
2351         * Moved the SilcClientEntry, SilcChannelEntry and
2352           SilcServerEntry to silcclient.h to be public and documented
2353           them for application.  Affected files are
2354           lib/silcclient/silcclient.h and idlist.h.
2355
2356 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2357
2358         * Fixed manual page installation patch by Ville Räsänen.
2359           USERS help page fix patch by Ville Räsänen
2360
2361         * Changed the silc_client_command_call interface to make
2362           the command call simpler for the application.  The library
2363           now handles the command line parsing, command finding and
2364           execution.  Application only needs to call the function
2365           with the command line.  Affected files are
2366           lib/silcclient/silcclient.h, command.[ch].
2367
2368         * Fixed silc_get_input to NULL-terminate the returned input.
2369           Affected file lib/silcutil/silcutil.c.
2370
2371         * Resolve the client's public key in JOIN command if the
2372           founder auth data is being requested but we don't know the
2373           client's public key.  Affected file silcd/command.c.
2374           Bug #53.
2375
2376 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2377
2378         * Print notify for server opers when backup router comes
2379           online.  Affected file silcd/server.c.
2380
2381         * Fixed the INVITE command to send the invite list in
2382           command reply.  Affected file silcd/command_reply.c.
2383
2384         * Fixed MOTD command reply sending.  Affected file
2385           silcd/command.c.
2386
2387         * UTF-8 decode the topic in TOPIC command reply and LIST
2388           command reply in Irssi SILC client.  Affected file is
2389           irssi/src/silc/core/client_ops.c.
2390
2391 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2392
2393         * Fixed the INVITE command to not crash Irssi SILC client
2394           when given without nickname argument.  AFfected file
2395           irssi/src/silc/core/client_ops.c.
2396
2397         * Fixed double free in WHOIS query on normal server when
2398           forwarding query to router.  Affected file is
2399           silcd/server_query.c.
2400
2401         * Fixed WATCH command reply handling on normal server which
2402           was missing altogether.  Affected file silcd/command_reply.c.
2403           Bug #44.
2404
2405 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2406
2407         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2408           Included yodl sources for each of these. Also modified
2409           Makefile.am prototype to install these files to proper
2410           locations. Updated CREDITS. Affected file Makefile.am.pre,
2411           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2412           doc/silcd.8.
2413
2414 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2415
2416         * Added support for encrypted private key files.  Now
2417           passphrase must be provided when new key pair is created
2418           (can be empty though), and prompted when loading the
2419           private key.  Added support for loading the old-style
2420           non-encrypted private keys as well.  Affected files
2421           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2422           SILC Server.
2423
2424         * Fixed silc_get_input to accept input on all terminals.
2425           Affected file lib/silcutil/silcutil.c.
2426
2427         * Moved the Irssi SILC client key loading and other stuff
2428           to be called after the arguments and UI is initialized.
2429           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2430
2431         * Added -P option to Irssi SILC client which can be used
2432           to change the passphrase of the private key.  Affected
2433           file irssi/src/silc/core/silc-core.c.
2434
2435         * Added silc_change_private_key_passphrase apputil routine
2436           to lib/silcutil/silcapputil.[ch].
2437
2438 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2439
2440         * Fixed connection closing in client library to not crash.
2441           Moved the connection freeing totally to function
2442           silc_clinet_del_connection.  Affected file
2443           lib/silcclinet/client.c.
2444
2445 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2446
2447         * Changed includes/silcincludes.h to silcincludes.h.in to
2448           include configuration specific information.  The silcdefs.h
2449           is not included in to installation anymore (it's only
2450           compilation time header).
2451
2452 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2453
2454         * Moved the SilcClient and SilcClientConnection from client.h
2455           to the public lib/silcclient/silcclient.h.  Changed the
2456           structures a bit.
2457
2458 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2459
2460         * If version string in silc_clinet_alloc is NULL the library
2461           puts it automatically.  Affected file lib/silcclient/client.c.
2462
2463         * Changed the version strings from variables to #define's
2464           in includes/silcversion.h.
2465
2466 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2467
2468         * Added shared library complation support.
2469
2470 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2471
2472         * Added lib/silcutil/silcapputil.[ch] for application
2473           utility functions.  It includes routines for applications'
2474           convenience.  Added silc_create_key_pair, silc_show_public_key
2475           and silc_load_key_pair functions.
2476
2477 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2478
2479         * Send RESUME_CLIENT packet from router to backup routers
2480           to in resuming.  Affected file silcd/packet_receive.c.
2481
2482 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2483
2484         * In IDENTIFY command parsing, send all other IDs except
2485           Client IDs explicitly to router for resolving on normal
2486           server.  Also check that ID received in WHOIS command is
2487           always Client ID, others are not allowed.  Affected file
2488           silcd/server_query.c.
2489
2490         * Merged latest changes from irssi.org CVS.
2491
2492 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2493
2494         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2495           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2496
2497         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2498           the silc_client_packet_send to silcclient.h for application
2499           usage.  Affected files lib/silcclient/client_internal.h
2500           lib/silcclient/silcclient.h.
2501
2502         * Fixed a bug in query resolving in server.  Used wrong
2503           variable in a for loop and crashed.  Affected file is
2504           silcd/server_query.c.
2505
2506         * Server constructs requested attributes only to locally
2507           connected clients.  Affected file silcd/server_query.c.
2508           Bug #36.
2509
2510         * Fixed a bug when sending resolving from router to server
2511           with requested attributes.  The constructed WHOIS command
2512           was incorrect.  Affected file silcd/server_query.c.
2513           Bug #38.
2514
2515         * Fixed Requested Attributes saving in WHOIS command reply.
2516           The length of the data buffer must be saved too.  Affected
2517           file silcd/command_reply.c.
2518
2519         * Update the client entry's servername after detaching is
2520           over.  Affected file silcd/packet_receive.c.  Bug #37.
2521
2522         * Resolve incomplete client entrys in CUMODE_CHANGE and
2523           CMODE_CHANGE notifys.  Affected file is
2524           lib/silcclient/client_notify.c.  Bug #42.
2525
2526 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2527
2528         * Fixed channel key packet processing bug on backup router
2529           during backup resuming protocol.  Affected file is
2530           silcd/packet_receive.c.
2531
2532         * Fixed memory leaks in server.  Affected files are
2533           silcd/server.c and silcd/packet_receive.c.
2534
2535         * Fixed packet decryption problem when backup router encrypted
2536           channel message with wrong key during backup resuming
2537           protocol.  Affected file silcd/packet_send.c.
2538
2539         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2540           Toni Willberg (toniw@iki.fi)
2541
2542         * Changed the SilcCipher context to be private.  Changed the
2543           silc_cipher_get_iv to just return pointer to the IV.  Added
2544           silc_cipher_get_name to return the name of the cipher.
2545           Fixed code all around to support these changes.  Affected
2546           files are lib/silccrypt/silccipher.[ch], client library and
2547           server.
2548
2549 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2550
2551         * Fixed unaligned access in lib/silccore/silcattrs.c.
2552
2553         * Fixed libtool linking in lib/silcsim/Makefile.am.
2554
2555         * Fixed services attribute printing.  Affected files is
2556           irssi/src/silc/core/silc-queries.c.
2557
2558 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2559
2560         * Fixed a crashbug in incoming server accepting.  Affected
2561           file silcd/server.c.
2562
2563 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2564
2565         * Added automatically generated index to Toolkit Reference
2566           Manual.
2567
2568         * Added support for Postscript Toolkit Reference Manual.
2569
2570 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2571
2572         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2573           CVS.
2574
2575 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2576
2577         * Added 'send_events' boolean argument to the function
2578           silc_schedule_set_listen_fd which sends the set events to
2579           the application explicitly if set to TRUE.  Default action
2580           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2581           lib/silcclient/client_internal.h and silcd/server_internal.h.
2582
2583         * Added silc_compare_timeval to determine which time values
2584           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2585
2586         * Added sort-of "Quality of Service" (QoS) support to
2587           SilcSocketConnection.  Data reception can be controlled with
2588           rate limit per second and/or read data length limit.
2589           Added silc_socket_set_qos.  Affected files are
2590           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2591
2592         * Added the QoS configuration to SILC Server configuration
2593           file.  Affected files are silcd/serverconfig.[ch] and
2594           server.c.
2595
2596 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2597
2598         * Merged with irssi.org CVS.
2599
2600         * Failed OPER and SILCOPER authentications are now logged.
2601           Affected file silcd/command.c.  Bugs #25.
2602
2603 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2604
2605         * ROBODoc documented lib/silcutil/silcbuffer.h and
2606           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2607           <ville.rasanen@iki.fi>.
2608
2609 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2610
2611         * Added support for auto-passphrase authentication from the
2612           config file during connecting which was not implemented
2613           yet.  Affected file irssi/src/silc/core/client_ops.c.
2614
2615         * Fixed a bug in authentication protocol failure handling which
2616           was processing wrong callback context.  Affected files
2617           are lib/silcclient/client.c and protocol.c.
2618
2619         * Fixed the /ATTR allow off to actually work.  Affected file
2620           is irssi/src/silc/core/silc-queries.c.
2621
2622         * Fixed the /ATTR -del to work.  Affected file is
2623           irssi/src/silc/core/silc-queries.c.
2624
2625 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2626
2627         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
2628
2629         * Fixed mask attribute adding in Irssi SILC client.  Affected
2630           file irssi/src/silc/core/silc-queries.c.
2631
2632 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2633
2634         * Added support for saving the requested attributes in
2635           WHOIS to directory.  Affected file is
2636           irssi/src/silc/core/silc-queries.c.
2637
2638 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2639
2640         * Added support for parsing VCard fields that do not have
2641           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
2642
2643         * Fixed a double free bug in hash table foreach function
2644           if the entry was deleted in the foreach callback.  Affected
2645           file lib/silcutil/silchashtable.c.
2646
2647 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2648
2649         * Added silc_attribute_get_verify_data to return the signature
2650           verification data for either user digital signature or
2651           server digital signature in Requested Attributes.  Affected
2652           files are lib/silccore/silcattrs.[ch].
2653
2654         * Added silc_vcard_alloc which is used to allocated dynamic
2655           SilcVCard context.  The silc_vcard_free now checks whether
2656           the context is dynamically allocated or not.  Affected files
2657           are lib/silcutil/silcvcard.[ch].
2658
2659 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2660
2661         * Periodically remove the NOATTR status from client entry
2662           so that the client may take the attributes in use even after
2663           server has resolved them unsuccessfully earlier.  Affected
2664           file silcd/server_query.c and idlist.h.
2665
2666         * Moved sha1hash and md5hash from client->internal to
2667           SilcClient for application usage.  Affected files are
2668           lib/silcclient/client.h and client_internal.h.
2669
2670         * Fixed attribute encoding and decoding bugs.  Affected
2671           files lib/silccore/silcattrs.[ch].
2672
2673         * Added ATTR command to Irssi SILC Client which is used to
2674           manage user's Requested Attributes sending and values for
2675           WHOIS command.  Affected files around Irssi SILC client.
2676
2677 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2678
2679         * Added silc_buffer_strformat which can be used to format
2680           strings into a buffer which size is automatically increased.
2681           Affected file lib/silcutil/silcbuffmt.[ch].
2682
2683         * Added implementation of VCard (RFC 2426) which can be used
2684           as part of Requested Attributes in WHOIS command.  Affected
2685           file lib/silcutil/silcvcard.[ch].
2686
2687 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2688
2689         * Some strncat -> silc_strncat changes our the core and
2690           client library.
2691
2692         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
2693           errors.  Added better error printing to SKE library.
2694           Affected files lib/silcske/silcske.c, silcske_status.h and
2695           payload.c.
2696
2697         * Save the PKCS key length even if only private key is set to
2698           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
2699
2700         * Fixed the usage of silc_pkcs_get_key_len since it returns the
2701           length in bits not in bytes.  Affected files are
2702           lib/silcske/silcske.c, lib/silccore/silcauth.c and
2703           silcd/server_query.c.
2704
2705 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2706
2707         * Added silc_attribute_payload_encode_data to directly encode
2708           the data into the attributes buffer.  Renamed function
2709           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
2710           Affected files are lib/silccore/silcattrs.[ch].
2711
2712         * silc_hash_table_find_foreach calls the foreach function now
2713           once even if the nothing was found with context set to NULL.
2714           Affected file lib/silcutil/silchashtable.[ch].
2715
2716         * Remove the RESOLVING flag from client entry after received
2717           the Requested Attributes from the client.  Fixed memory leak
2718           in client entry freeing.  Affected files silcd/server_query.c
2719           and idlist.c.
2720
2721         * Added Requested Attributes support into SILC Client Library.
2722           It is not able to send requested attributes in WHOIS command,
2723           and also receive and process requested attributes.  Added
2724           silc_client_attribute_[add|del] and silc_client_attributes_get
2725           functions.  Added also `ignore_requested_attributes' to the
2726           SilcClientParams to not use attributes in client.  Affected
2727           files are lib/silcclient/command.c, client_attrs.[ch],
2728           silcclient.h, client_internal and client.[ch].
2729
2730         * Changed the silc_client_get_client_by_id to support Requested
2731           Attributes, it takes them as argument now.  Affected file
2732           is lib/silcclient/silcclient.h, and idlist.c.
2733
2734         * Added -details option to WHOIS command in Irssi SILC Client
2735           to support the requested attributes.  By default it requests
2736           all attributes.  Affected file lib/silcclient/command.c and
2737           irssi/doc/help/in/whois.in.
2738
2739 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2740
2741         * Add also SERVICE attribute for server-constructed attribute
2742           data.  Also digitally sign the attributes and add
2743           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
2744           silcd/server_query.c.
2745
2746 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2747
2748         * Changed the silc_attribute_payload_encode to support list
2749           of attributes (function may be called several times to add
2750           a new attribute).  Removed the silc_attribute_payload_encode_list
2751           function.  The encoding function now also automatically encodes
2752           the data, so the caller does not need to do that.  Affected
2753           files lib/silccore/silcattrs.[ch].
2754
2755         * Added support for replying on behalf of the user to the
2756           Requested Attributes in WHOIS command in the server.  Affected
2757           file silcd/server_query.c.
2758
2759         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
2760           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
2761
2762 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2763
2764         * Don't swtich to become primary router if we are backup if
2765           decryption error has occurred.  Affected file silcd/server.c.
2766
2767         * Fixed a bug in backup router IP address comparison in
2768           silc_server_backup_get.
2769
2770           Save now also the port of the server/router and use that
2771           in comparison as well.  Affected file silcd/server_backup.c.
2772
2773         * Normal server now reconnects to backup router automatically
2774           if connection is lost to it.  Affected file silcd/server.c.
2775
2776 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2777
2778         * If packet processing fails (like integrity check fails)
2779           the connection is closed now.  Affected files are
2780           lib/silccore/silcpacket.c and silcd/server.c.
2781
2782 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2783
2784         * Fixed double free in RSA public key set function
2785           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
2786           Bug #29.
2787
2788 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2789
2790         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
2791           Added server_query.[ch] which provides one interface for
2792           querying information using all three commands.
2793
2794         * Changed all "typedef unsigned char" in core library to
2795           "typedef SilcUInt8".
2796
2797 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2798
2799         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
2800
2801         * Renamed silc_server_get_client_resolve to
2802           silc_server_query_resolve and moved to server_query.[ch].
2803
2804 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2805
2806         * Resumed client packet handling from server put the resumed
2807           client on wrong list on router and caused the client not
2808           be present on the network anymore.  Now fixed to put the
2809           client to correct list.  Affected file silcd/packet_receive.c.
2810
2811 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2812
2813         * Various cleanup in error message output in config parsing code
2814           and in server init code.  Fixed error log files containing
2815           too many newlines ('\n') in some situations.  Affected files are
2816           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
2817
2818 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2819
2820         * Use the reverse lookupped hostname in client internals
2821           instead of one user provided us as remote server name.
2822           Affected file lib/silcclient/client.c.
2823
2824 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2825
2826         * Added 'app_context' to silc_schedule_init.  It is an
2827           application specific context that is delivered to application
2828           in task callback functions.  Affected files are
2829           lib/silcutil/silcutil.[ch].
2830
2831         * The hb_context in SilcSocketConnection is not freed
2832           automatically anymore (application must free it).  Freeing
2833           it automatic is inconsistent.  Affected files are
2834           lib/silcutil/silcsockconn.[ch].
2835
2836 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2837
2838         * Added support for removing explicitly added client connections
2839           in rehash and closing the client connections if they were
2840           unconfigured in the rehash.  Affected file silcd/server.c.
2841
2842         * Added support for aborting automatically pending commands
2843           that never receives the reply (to avoid memory leaks).
2844           Added also silc_server_command_pending_timed to set the
2845           specific timeout for pending command.  Affected files are
2846           silcd/command[_reply].[ch].
2847
2848         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
2849           specs and lib/silccore/silcstatus.h.
2850
2851 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2852
2853         * Changed the silc_get_time to accept time value as argument
2854           or if zero is sent return current local time.  Affected
2855           file lib/silcutil/silcutil.[ch].
2856
2857         * Added STATS command to client library and Irssi SILC client.
2858           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
2859
2860 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2861
2862         * Assure that channel key is set before sending it.  May
2863           crash server otherwise.  Affected file silcd/packet_send.c.
2864
2865 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2866
2867         * Assure that endless loop cannot happen with detached client
2868           resolving on normal server.  Added idlist status
2869           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
2870           silcd/idlist.h and silcd/packet_receive.c.
2871
2872 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2873
2874         * Incoming file transfer request cannot use same session as
2875           the sending session.  This can happen when sending file to
2876           yourself.  Crashed the client on quit.  Affected file
2877           lib/silcclient/client_ftp.c.  Bug #24.
2878
2879 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2880
2881         * Implemented the draft-riikonen-precense-attrs draft and
2882           the Attribute Payload into the lib/silccore/silcattrs.[ch].
2883
2884 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2885
2886         * Distribute the SERVER_SIGNOFF notify also to local backup
2887           routers from the primary router.  The backup router may not
2888           have the signing of local server directly connected and need
2889           to know about the signoff.  Affected file silcd/server_util.c.
2890
2891         * Use the primary router as the origin of the locally connected
2892           server when it is disconnecting from the backup router since
2893           that's where it really is coming from.  Now the clients from
2894           the disconnecting server are removed correctly and "shadow"
2895           clients are not left to the backup router.  Affected file
2896           silcd/server.c.
2897
2898 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2899
2900         * If normal server is standalone and found existing but disabled
2901           channel, do not re-create the channel since it creates
2902           duplicate same channels.  Affected file silcd/server.c.
2903
2904         * Added anonymous client connections support to server.  New
2905           "anonymous" configuration option to ConnectionParams section
2906           added.  If set to true, the username and hostname information
2907           of the client will be scrambled and anonymous user mode is
2908           set automatically to the user.  Affected files are
2909           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
2910
2911 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2912
2913         * In JOIN notify handling, mark that the cache entry of the
2914           client cannot be expired.  Can cause crashes on normal
2915           server (asserts client->channels).  Affected file is
2916           silcd/packet_receive.c.
2917
2918         * From now on distribution versions are used as protocol versions
2919           instead of by default using the Toolkit base version as protocol
2920           version.  Affected file prepare.
2921
2922         * Do not set the locally resolved hostname for local client
2923           entry but take what server sends.  This way the real hostname
2924           is showed in WHOIS for yourself.  Affected file is
2925           lib/silcclient/idlist.c and lib/silcclient/client.c.
2926
2927         * Resolve local info with IDENTIFY when connecting to server.y
2928
2929 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2930
2931         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
2932           for implied search (not needed on platforms which has native
2933           pthreads library).  Use --without-pthreads to disable threads.
2934           Affected file is configure.in.pre
2935
2936         * Fixed --with-iconv on platforms which need to bypass (broken)
2937           native iconv().  Affected file is configure.in.pre
2938
2939 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2940
2941         * Moved -C option parsing in Irssi SILC client at same time
2942           as other options.  The UI was initialized earlier and caused
2943           problems on command line.  Bug #16.  Affected file is
2944           irssi/src/silc/core/silc-core.c.
2945
2946 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2947
2948         * Added global variable silc_log_timestamp that tells silclog
2949           wether to print or not the timestamp in the logging files.
2950           Affected file lib/silcutil/silclog.[ch].
2951
2952         * Added silcd configuration option Timestamp in the Logging
2953           section.  Affected file silcd/serverconfig.[ch],
2954           doc/example_silcd.conf.in.
2955
2956 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2957
2958         * Fixed fingerprint checking to check for entirely empty
2959           fingerprint instead of two first bytes when determining
2960           if it is set.  Bug #18.  Affected file silcd/command.c.
2961
2962         * Fixed duplicate PKCS name registering to not allow it.
2963           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
2964
2965 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2966
2967         * Conditionalize non-gcc compiler optimizations for various
2968           platforms, enable those commented out.  Cleanups.
2969           Affected file lib/silcmath/mpi/configure.in
2970
2971 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
2972
2973         * silc_rng_exec_command() left zombie processes if command
2974           didn't generate any output.  Affected file
2975           lib/silccrypt/silcrng.c
2976
2977 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2978
2979         * Rewrote iconv checking, introduce --with-iconv for systems
2980           which rely on libiconv.  Check if iconv() provided by libc
2981           is good enough, otherwise demand libiconv.  Affected file
2982           configure.in.pre
2983
2984 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2985
2986         * Search for ldopen() also in libc.  This enables SIM support
2987           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
2988           file configure.in.pre
2989
2990 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
2991
2992         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
2993           This fixes prepare on *BSD systems.  Affected file
2994           configure.in.pre
2995
2996 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2997
2998         * More fixed for not having purge timeout for global clients
2999           that are on channel.  Affected files silcd/command_reply.c
3000           and server_util.c.
3001
3002         * Fixed the rekey protocol to work with backup router connections.
3003           Rekey packets are now allowed on disabled connections as
3004           well.  Affected files silcd/packet_send.c and server.c.
3005
3006         * Do not switch to be as backup router when shutting down and
3007           closing the primary connection.  Affected file silcd/server.c.
3008
3009         * Fixed memory leaks in backup router deleting.  Added
3010           silc_server_backup_free to free all data during shutdown of
3011           server.  Affected files silcd/server_backup.[ch].
3012
3013 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3014
3015         * Do not process commands if the sock->user_data is NULL.
3016           Affected file silcd/command.c.
3017
3018 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3019
3020         * Fixed buffer overflow and security problems (loosing bits
3021           in CFB encryption) in SILC RNG.  Problems reported by
3022           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3023
3024 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3025
3026         * Added yet more checks that client is not expired on global
3027           list if it is on channels.  Affected file is
3028           silcd/command_reply.c.
3029
3030 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3031
3032         * Merged c0ffee's MIME signal patch which adds support for
3033           sending also MIME messages in Irssi SILC Client, and handling
3034           received MIME messages in a signal (and perhaps doing something
3035           to non-textual MIME messages).
3036
3037 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3038
3039         * Fixed pending command deletion in server and client library
3040           to check the whole list instead of breaking after first found.
3041           The affected files are silcd/command.[ch] and
3042           lib/silcclient/command.[ch].
3043
3044 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3045
3046         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3047           secret or private, otherwise it's possible to find out
3048           whether a secret channel exists or not.  Affected file
3049           silcd/command.c.
3050
3051         * If CMODE change fails during the mode setting, assure that
3052           the old mode mask is set for the channel back.  Affected
3053           file silcd/command.c.
3054
3055         * Fixed passphrase saving on +a channel on normal server
3056           after successful JOIN command.  Affected file silcd/command.c.
3057
3058 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3059
3060         * Remove server/router operator privileges in DETACH command,
3061           since it's possible to resume to server where these
3062           privileges would not be allowed for the client.  Affected
3063           file silcd/command.c.
3064
3065         * Do not set to wait for backup in rehash of the server.
3066           Affected file silcd/server.c.
3067
3068         * Do not check listener sockets when counting how many
3069           socket connections we have.  Affected file is
3070           silcd/server_util.c.
3071
3072         * Do not announce disconnected clients that are remaining
3073           in history (for WHOWAS).  This is because SIGNOFF notify
3074           for these has been sent earlier already.  Affected file
3075           silcd/server.c.
3076
3077 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3078
3079         * Buffer overflow with CUMODE command's mode->mode character
3080           conversion.  Reported by Ville Räsänen.  Affected file
3081           lib/silcutil/silcutil.c.
3082
3083 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3084
3085         * Allow heartbeat packets to go disabled connections anyway.
3086           Affected files silcd/server.c and silcd/packet_send.c.
3087
3088         * Do not broadcast New Channel packets with List flag set
3089           in the packet to backup routers.  The router must check
3090           for the correctness of the packets before sending them.
3091           It is possible that router will have enforce Channel ID
3092           change and this would cause desync in the backup router.
3093           Affected file silcd/packet_receive.c.
3094
3095         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3096           are handled in list parsing.  They are not list packets
3097           anymore.  Affected file silcd/packet_receive.c.
3098
3099 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3100
3101         * Stop waiting for backup router through the timeout, not
3102           directly after backup router has arrived.  Affected file
3103           silcd/server.c.
3104
3105         * Do not re-create channel keys and send them when removing
3106           clients in server shutdown.  Affected files are
3107           silcd/server_internal.h and silcd/server_util.c.
3108
3109         * Notify distribution to backup routers was missing from
3110           the silc_server_send_notify_dest function which caused
3111           desyncing problems with backup router.  Affected file is
3112           silcd/packet_send.c.
3113
3114         * The client's channel removing was working wrong on
3115           backup router.  It assumed that it doesn't know global
3116           information but backup router does know.  For this reason
3117           it could remove channel when it wasn't supposed to do that.
3118           Affected file silcd/server.c and silcd/server_util.c.
3119
3120 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3121
3122         * Stop for a couple seconds after badkup router has become
3123           primary router.  Affected file silcd/server.c.
3124
3125         * Added silc_server_remove_servers_by_server, which is used
3126           to remove servers originated from some other server.  Also
3127           clients of those servers can be removed too.  Affected file
3128           silcd/server_util.[ch].
3129
3130         * When removing clients after a server has signed of remove
3131           also all servers behind that server (unless they are known
3132           to be available locally), and send SERVER_SIGNOFF for each
3133           of the server separately.  Also the signed off clients are
3134           sent now separately per signed off server.  The affected files
3135           are silcd/server.c and silcd/server_util.[ch].
3136
3137         * All servers added with silc_idlist_add_server must always
3138           have both "router" and "connection" pointers set.  Otherwise,
3139           bad server entries may be left around in the cache.
3140           Affected file silcd/command_reply.c.
3141
3142         * Do not create the channel key in NEW_CHANNEL packet
3143           processing if the channel is empty.  Affected file
3144           silcd/packet_receive.c.
3145
3146         * Completed backup router support for standalone routers.
3147           Supports also servers in the cell that do not use the backup
3148           at all.
3149
3150 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3151
3152         * Fixed a bug in silc_string_regexify which did not add '^'
3153           at the start of each string, and thus the matching was
3154           not explicit.  For example ban list iikone@*!*@* would
3155           match also "priikone", which is wrong, it would have to be
3156           *iikone@*!*@* to match also "priikone".  Affected
3157           file lib/silcutil/unix/silcunixutil.c.
3158
3159 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3160
3161         * Enable all local server connections before updating client
3162           caches when we've become backup router.  Otherwise, signoff
3163           packets may not reach the clients.  Affected files are
3164           silcd/server.c and silcd/server_util.[ch].
3165
3166         * Fixed a bug in version string parsing which could crash
3167           the program with specially formatted version string.
3168           Bug reported and patch provided by Ville Räsänen.  Affected
3169           file lib/silcutil/silcutil.c.
3170
3171         * Handle the disconnection immediately when DISCONNECT
3172           packet is received in server.  Affected file silcd/server.c.
3173
3174         * Primary router now waits a short time (10 seconds) for
3175           backup router connection before accepting any other
3176           connection (except local).  Affected file silcd/server.c,
3177           serverconfig.[ch].
3178
3179         * Fixed a crash in client libary in NICK_CHANGE notify when
3180           NICK_CHANGE arrived for client entry we are resolving
3181           currently.  Affected file lib/silcclient/client_notify.c.
3182
3183         * Call the sconn->callback completion even if error had
3184           occurred.  Start reconnecting always if connection to
3185           primary router fails during backup router protocol.
3186           Affected files silcd/server.c and server_backup.c.
3187
3188 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3189
3190         * Added functions silc_server_send_opers and
3191           silc_server_send_opers_notify to send packets stricly
3192           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
3193           to send variable argument notify to operators.
3194           Affected files silcd/packet_send.[ch] and silcd/server.h.
3195
3196         * Removed UMODE rights checking with UMODE_CHANGE notify.
3197           Affected file silcd/packet_receive.c.
3198
3199         * Server/router operator now receives notify when network
3200           switches to backup router and when it resumes the use of
3201           primary router.  Affected file silcd/server.c and
3202           silcd/server_backup.c.
3203
3204         * Fixed the updating of client information after backup
3205           resuming protocol is over; update all except local clients
3206           to the new primary router.  The affected file is
3207           silcd/server_util.c.
3208
3209         * Added support for closing active connections in rehash
3210           that were unconfigured by the user.  Supports currently
3211           closing server and router connections.  Affected file
3212           silcd/server.c.
3213
3214         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
3215
3216 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3217
3218         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
3219           is NULL since seems that on some platforms NULL is allowed
3220           and on some it's not.  Fallback encoding is used instead.
3221           Affected file lib/silcutil/silcstrutil.c.
3222
3223         * Fixed statistics updating for incoming server connection
3224           which could cause problems when re-connecting.  Affected
3225           file silcd/server.c.
3226
3227         * Preliminary backup router support for standalone router
3228           added.  Affected files in silcd/.
3229
3230         * Mark server connections in backup router disabled before
3231           and after backup protocol.  Affected file is
3232           silcd/server_backup.c.
3233
3234         * Added support for reconnecting to remote server connection
3235           even if the protocol fails, and if the configuration wants
3236           us to keep trying to connect anyway.
3237
3238           Server connection is not allowed to backup router if
3239           backup router does not have connection to primary router yet.
3240
3241           Affected file is silcd/server.c.
3242
3243 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3244
3245         * Added silc_client_udpate_server function to update changed
3246           server info.  Affected file lib/silcclient/idlist.[ch].
3247
3248         * Added check for server entries that are being resolved when
3249           notify is received.  If being resolved, handle the received
3250           notify only after it's resolved so that all notifys are
3251           handled in same order as received from the server.
3252
3253           Added similar resolver check to channel entries.  Every
3254           notify that cause resolving of any information that affects
3255           channel entry marks the channel entry in waiting state.
3256           After whatever resolving is over the waiters are signalled
3257           and only then the notifys are handled in the same order
3258           as delivered from the server.
3259
3260           Affected files are lib/silcclient/idlist.[ch], and
3261           client_notify.c.
3262
3263         * Fixed KILLED notify handling in normal server.  Affected
3264           file silcd/packet_receive.c.
3265
3266         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
3267           is locally connected, or was locally connected (but may
3268           be detached and connection is not active).  Added also
3269           SILC_IS_LOCAL for checking this status.  Affected files
3270           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
3271           silcd/server.c and silcd/server_internal.h.
3272
3273 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3274
3275         * Don't send or handle TOPIC_SET if topic is already set and
3276           is same as being set.  Affected files silcd/command.c and
3277           silcd/packet_receive.c.
3278
3279         * Fixed CMODE change rights checking to work correctly when
3280           removing modes by operator.  Affected file is
3281           silcd/server_util.c.
3282
3283         * Fixed some handling with New Channel packet in router and
3284           fixed some CMODE_CHANGE notify handling in server and router.
3285           Affected file is silcd/packet_receive.c.
3286
3287         * Changed "disconnect" client operation to include the
3288           reason of the disconnection and optional disconnection
3289           message.  Affected file lib/silcclient/silcclient.h.
3290
3291         * Made the compilation of lib/contrib/ stuff conditional.
3292           Affected files configure.in.pre, lib/contrib/Makefile.am.
3293
3294 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3295
3296         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
3297           to the sender of the notify too, to avoid situation where two
3298           notifys are in the network at the same time going to oppsite
3299           directions.  Affected file silcd/packet_receice.c.
3300
3301 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3302
3303         * Delete the client from channel even if the cilent->id is
3304           NULL.  It was possible that client was deleted without
3305           removing from channels (theoretically at least).  Affected
3306           file silcd/server.c and silcd/server_util.c.
3307
3308         * Free the client data too when resuming is not successful.
3309           Affected file silcd/packet_receive.c.
3310
3311         * Merged some code from c0ffee's silc-plugin.  Affected files
3312           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
3313
3314         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
3315           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
3316           to the primary router connection, the other one returns
3317           TRUE if packet must be broadcasted to network.
3318
3319         * All notifys that are destined to primary router (to network)
3320           are now automatically sent to backup routers even if the
3321           router is standalone (and has backup router).  Affected files
3322           in silcd/.
3323
3324         * Added --without-irssi and --without-silcd configuration
3325           options for disabling the compilation of these applications.
3326           Affected file configure.in.pre and prepare.
3327
3328 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3329
3330         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
3331           UTF-8 encoding and decoding.  Added also new encodings
3332           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
3333
3334           Added also SILC_STRING_LANGUAGE which is language and charset
3335           specific encoder and decoer for those platforms that support
3336           iconv().  It can convert the UTF-8 to and from the locale
3337           specific character set.
3338
3339           Affected file lib/silcutil/silcstrutil.[ch].
3340
3341         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
3342
3343         * Added function silc_get_command_name to the file
3344           lib/silcutil/silcutil.[ch].
3345
3346         * Improved the server debug output a bit.  Affected files are
3347           in silcd/.
3348
3349 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3350
3351         * Save the channel passphrase when received succesful JOIN
3352           command reply from router, on normal server.  Otherwise
3353           joinig +a channels from normal server is not possible.
3354           Affected file silcd/command.c.
3355
3356         * Fixed a bug in TOPIC_SET notify handling.  The notifier
3357           may be other than client too, like server or channel.
3358           It expected it to always be only client and ignored the
3359           notify.  Affected file silcd/packet_recieve.c.
3360
3361         * Removed some (unnecessary) debug printing from
3362           lib/silccore/silcid.c and lib/silccore/silcargument.c.
3363
3364         * Do not force CMODE_CHANGE when server is announcing new
3365           channel.
3366
3367           Router announces stuff only after server reannounces channel
3368           after CHANNEL_CHANGE notify.
3369
3370           These fixes optimizes the announcing procedure, and perhaps
3371           fixes some problems too.  Affected file silcd/packet_receive.c.
3372
3373         * Fixed SERVER_SIGNOFF sending to local clients.  It was
3374           totally broken and sent the notify to all local clients,
3375           instead of only to those that was on same channel as the
3376           signing off clients.  Affected file silcd/server_util.c.
3377
3378         * Added -D option to server.  It can be used to give debug
3379           level.  The levels are from 0 - 99, and are predefined for
3380           smooth server debugging.  (see silcd.c for the predefined
3381           levels).  Affected file silcd/server.c.
3382
3383 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3384
3385         * Fixed a bug in Irssi SILC client to close the connection
3386           properly when disconnecting from server.  Affected file
3387           irssi/src/silc/core/client_ops.c.
3388
3389 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3390
3391         * When authenticating as founder during JOIN command, check
3392           that the one authenticating becomes the only founder on the
3393           channel.  Affected file silcd/command.c.
3394
3395         * Better checking for founder mode setting when CUMODE_CHANGE
3396           notify is received.  Affected file silcd/packet_receive.c.
3397
3398         * Close all connections when shutting down the server by sending
3399           DISCONNECT packet.  Close all listeners too when shutting
3400           down the server.  Affected file silcd/server.c.
3401
3402         * Handle DISCONNECT packet correctly in client library by
3403           calling the "disconnect" client operation.  Affected file
3404           lib/silcclient/client.c.
3405
3406         * Handle local errors correctly during resuming.  Affected
3407           file lib/silcclient/client.c.
3408
3409 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3410
3411         * The log file is not dupped internally anymore in
3412           lib/silcutil/silclog.c.  Fixed memory leaks too.
3413
3414         * The scheduler now dispatches all pending timeout tasks
3415           when it is uninitialized with silc_schedule_uninit.
3416           Affected file lib/silcutil/silcschedule.c.
3417
3418 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3419
3420         * Added --enable-stack-trace option to configure.  Added
3421           memory allocation stack trace support.  Added files
3422           lib/silcutil/stacktrace.[ch].  Affected files are
3423           lib/silcutil/silcmemory.[ch].
3424
3425         * Fixed memory leaks from libraries and server.  Affected
3426           files around the tree.
3427
3428         * Reverted back a fix made to CUMODE which broke it.
3429           Affected file silcd/command.c.
3430
3431 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3432
3433         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3434           core library, and implemented it.  All textual messages SHOULD
3435           use this flag and the message MUST be UTF-8 encoded.
3436           All text messages sent by Irssi SILC client are now UTF-8
3437           encoded (regardless whether the terminal supports UTF-8 or not).
3438           Affected files are lib/silccore/silcchannel.h,
3439           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3440           client_ops.c.
3441
3442 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3443
3444         * Added lots of new statistics updating that was missing from
3445           the server and router code.  Affected files in silcd/.
3446
3447         * Sending SIGUSR1 signal to server now dumps the current
3448           server statistics into /tmp directory.  Affected file is
3449           silcd/silcd.c.
3450
3451         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3452           the SILC Hash Interface also.  Added new functions
3453           silc_hash_get_name, silc_hash_init, silc_hash_update and
3454           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3455
3456 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3457
3458         * Added some better info printing for client during connecting.
3459           Affected file silcd/server_util.c.
3460
3461         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3462           to silence a user on a channel.  Affected files are
3463           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3464           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3465           and silcd/packet_receive.c.
3466
3467         * Fixed a fatal bug in handling of malformed command payload.
3468           Affected file silcd/command.c.
3469
3470         * Fixed a double free when announcing channel users to router.
3471           Affected file silcd/server.c.
3472
3473         * After successful authentication to channel founder mode, check
3474           that there isn't anyone else with founder mode on the channel.
3475           The one that authenticated will become founder and anyone
3476           else is demoted.  Affected file silcd/command.c.
3477
3478         * Added error printing of any error that has occurred during
3479           any command in client library.  Affected file is
3480           irssi/src/silc/core/client_ops.c.
3481
3482         * Removed some error printing from the client library and left
3483           it for the application to worry (from the error status it
3484           receives in 'command' client operation.  Affected file is
3485           lib/silcclient/command.c.
3486
3487 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3488
3489         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3490           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3491           Starting key agreement with itself is denied.  Affected file
3492           is lib/silcclient/client_keyagr.c.
3493
3494         * Fixed some error checkings from the SFTP library which caused
3495           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3496           and lib/silcsftp/sftp_util.c.
3497
3498         * Added new "debug" and "debug_string" settings to Irssi SILC
3499           client which can be used to print runtime debugging on the
3500           Irssi's screen.  Available when compiled with --enable-debug
3501           option.  Affected file irssi/src/silc/core/silc-core.c.
3502
3503 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3504
3505         * Fixed a missing variadic parameter in a function call that
3506           caused server crash when a non-allowed connection arrived.
3507           Reported by Richard Becker.  Affected file silcd/server.c.
3508
3509 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3510
3511         * Added WATCH list sending to backup routers from router.
3512           The WATCH command is sent by the router to the backup
3513           router.  Affected file silcd/command.c.
3514
3515         * Mark the backup_router flag for RouterConnection entry
3516           if the backup router stuff is defined in the config file.
3517           Affected file silcd/serverconfig.c.
3518
3519         * Fixed some backup data sending around the code to work better
3520           if the router is standalone router.  Not all places were fixed.
3521           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3522           silcd/server.c.
3523
3524         * Fixed the router connecting when connecting to multiple
3525           routers.  It ignored every other router except the first
3526           one.  Affected file silcd/server.c.
3527
3528 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3529
3530         * Made the private key generation after expiration optional.
3531           If not created after expiration the old key will re-expire
3532           at a later time (and thus key pair is not necessary to
3533           change).  Affected file irssi/src/silc/core/clientutil.c.
3534
3535 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3536
3537         * The length arguments in bind() and connect() were wrong
3538           and fixed now to used SIZEOF_SOCKADDR in the
3539           lib/silcutil/unix/silcunixutil.c.
3540
3541 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3542
3543         * Fixed detach timeout handling to use Client ID and not
3544           the actual client entry which may be freed in the callback.
3545           Affected file silcd/command.c.
3546
3547 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3548
3549         * Merged c0ffee's multiple interface support patch.
3550           Affected files in silcd/.
3551
3552 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3553
3554         * Cleanup keys properly.  Affected file is
3555           irssi/src/silc/core/clientutil.c.
3556
3557 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3558
3559         * Display the user mode on the status bar.  Affected file
3560           irssi/src/silc/core/silc-expandos.c.
3561
3562 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3563
3564         * If private message key is not set, but the flag is set in
3565           the packet, ignore the packet since it cannot be decrypted.
3566           Affected file lib/silcclient/client_prvmsg.c.
3567
3568 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3569
3570         * When resuming client, remove the old client entry from
3571           the watcher list too.  Affected file silcd/packet_receive.c.
3572
3573         * Do not allow normal server to force founder mode away
3574           from router if the founder mode is already set.  Affected
3575           file silcd/packet_receive.c.
3576
3577         * Remove the client entry with watch notify types with short
3578           timeout, and not directly, so that other notifys can be
3579           retrieved too.  Affected file lib/silcclient/client_notify.c.
3580
3581         * Display notification about data messages that cannot be
3582           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3583           irssi/src/fe-common/silc/module-formats.[ch].
3584
3585 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3586
3587         * Fixed the CHANNEL_CHANGE notify handling in client libary
3588           to not use freed memory.  Affected file is
3589           lib/silcclient/client_notify.c.
3590
3591         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3592           file silcd/packet_receive.c.
3593
3594         * Fixed USERS command to support empty channels.  Affected
3595           file silcd/command.c.
3596
3597 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3598
3599         * Allow multiple identical pending commands to be registered
3600           in client library.  Affected file is lib/silcclient/command.c.
3601
3602         * Call the completion for resolving client information only
3603           after all resolvers has finished.  This fixes a crash in
3604           the client.  Added support for checking when the resolvers
3605           are finished.  Affected file is lib/silcclient/idlist.c.
3606
3607         * Wait by default 3 seconds before reconnecting to the server
3608           after being disconnected.  Makes the /detach command a bit
3609           more usable.
3610
3611 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3612
3613         * Check the watcher list before sending signoff notifys
3614           when closing client connection.  Affected file is
3615           silcd/server.c.
3616
3617         * Added better CMODE command rights checking.  Affected file
3618           silcd/server_util.c.
3619
3620 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3621
3622         * Fixed watcher list checking during server signoff.  It
3623           crashed the server.  Affected file silcd/server_util.c.
3624
3625         * The JOIN command reply returns now the founder's public
3626           key.  Affected file is silcd/command.c.
3627
3628         * Announce the channel mode, and the mode properties with
3629           CMODE_CHANGE notify.  Affected file silcd/server.c.
3630
3631         * Mark new channels by default disabled, untill at least
3632           one user joins the channel.  Affected file is
3633           silcd/packet_receive.c.
3634
3635 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3636
3637         * The nickname argument to watch notify can be optional.
3638           Fixes a crash in server.  Affected file silcd/packet_send.c.
3639
3640         * Remove the client entry from cache if the WATCH notify type
3641           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
3642           lib/silcclient/client_notify.c.
3643
3644         * Check the watcher list before and after changing nickname
3645           when the NICK_CHANGE notify is received.  Affected file is
3646           silcd/idlist.c.
3647
3648         * Fixed a crash in OPER and SILCOPER command sending.  Empty
3649           passphrase caused the crash.  Affected file is
3650           lib/silcclient/command.c.
3651
3652 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3653
3654         * Merged with Irssi CVS for Irssi SILC client.
3655
3656 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3657
3658         * Completed the protocol specifications.
3659
3660 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3661
3662         * Merged with Irssi CVS for Irssi SILC client.
3663
3664 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3665
3666         * Added the founder's public key delivery to the
3667           CUMODE_CHANGE notify type as well.  Updated the protocol
3668           specs and the code.  Affected files are silcd/packet_send.[ch],
3669           silcd/packet_receive.c and silcd/command.c.
3670
3671 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3672
3673         * Added silc_pkcs_public_key_copy function into the
3674           lib/silccrypt/silcpkcs.[ch].
3675
3676         * Remove the `iv' from the SilcChannelEntry since we can
3677           live without it.  Affected files are silcd/idlist.h and
3678           silcd/packet_receive.c.
3679
3680         * Added support for sending the founder's public key in
3681           the CMODE_CHANGE notify packet in the server.  Affected
3682           files are silcd/packet_send.[ch], silcd/packet_receive.c,
3683           silcd/command.c and silcd/server.c.
3684
3685         * Changed the FOUNDER_AUTH authentication to use only
3686           public key authentication as defined by new protocol
3687           specs.  Passphrase authentication with that mode cannot
3688           be used anymore.  It is now possible to reclaim founder
3689           mode from any server in the network.  Affected files are
3690           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
3691
3692         * Added permanent channels support by making the channel
3693           permanent when FOUNDER_AUTH mode is set on the channel.
3694           The channel will not be destroyed even if channel is empty
3695           when that mode is set.  Protocol TODO #17.  Affected
3696           files are silcd/server.[ch], server_util.[ch],
3697           silcd/command.c, silcd/packet_receive.c and
3698           lib/silcclient/command.c.
3699
3700 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3701
3702         * Added reference counter to the command reply context in
3703           the client library.  Affected files are
3704           lib/silcclient/command_reply.[ch].
3705
3706 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3707
3708         * Fixed rekey protocol with PFS in the client library.
3709           Affected file is lib/silcclient/protocol.c.
3710
3711         * Added support for list of errors in client library
3712           command reply handling.  Affected file is
3713           lib/silcclient/command_reply.c.
3714
3715         * Defined that the WHOIS and IDENTIFY commands can send
3716           list of errors.  Updated the protocol specs.  Protocol
3717           TODO #2.
3718
3719         * Added support for sending list of errors to WHOIS and
3720           IDENTIFY commands in server.  Added support for receiving
3721           list of errors in server.  Affected files are
3722           silcd/command.c and silcd/command_reply.c.
3723
3724         * Fixed client info resolving on LEAVE command in client
3725           library to not crash.  Affected file is
3726           lib/silcclient/client_notify.c.
3727
3728 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3729
3730         * Defined that the NICK command replies with thew changed
3731           nickname too, to make the nickname changing simpler at
3732           the client's end.  Updated protocol specs and the code
3733           in client and server.  Affected files are
3734           silcd/command.c, lib/silcclient/command_reply.c and
3735           lib/silcclient/command.c.
3736
3737 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3738
3739         * Added `Compressed' packet flag to indicate that the packet
3740           payload is compressed by the sender.  Updated the protocol
3741           specs and the core library.  The compression still is not
3742           implemented in the sources.  Affected file is
3743           lib/silccore/silcpacket.h.
3744
3745 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3746
3747         * Remove pending command callbacks also if the connection
3748           to the server is destroyed.  Affected file is
3749           lib/silcclient/client.c.
3750
3751 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3752
3753         * Added new QUIET channel user mode that can be used to
3754           quiet a user in a channel.  Updated the protocol specs but
3755           it wasn't implemented yet.  Protocol TODO #27.  Affected
3756           file is lib/silccore/silcmode.h.
3757
3758 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3759
3760         * Added BLOCK_INVITE user mode to be able to block incoming
3761           invite notifications.  Protoocol TODO #26.  Affected files
3762           are lib/silccore/silcmode.h, lib/silcclient/command.c and
3763           silcd/command.c.
3764
3765         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
3766           the protocol specs and the code.  Affected file is
3767           lib/silccrypt/silcpkcs.c.
3768
3769 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3770
3771         * Disconnect Payload includes now the status type.  Updated
3772           the protocol specs and the code.  Protocol TODO #25.
3773           Affected files are silcd/server.c, lib/silcclient/client.c.
3774
3775         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
3776           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
3777           Moved the silc_client_command_status_messages table to the
3778           lib/silcutil/silcutil.c and added new funtion
3779           silc_get_status_message, which deprecates function
3780           silc_client_status_message.  Affected files are
3781           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
3782           lib/silcutil/silcutil.[ch].
3783
3784 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3785
3786         * Defined that the nickname hash in Client ID MUST be from
3787           lowercase nickname.  This effectively changes nicknames in
3788           SILC to case-insensitive.  Updated the protocol specs and
3789           the code.  Affected files are lib/silcutil/silcutil.[ch],
3790           silcd/serverid.c, and silcd/idlist.c.
3791
3792         * Added new channel user modes BLOCK_MESSAGES_USERS and
3793           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
3794           code.  Affected files are lib/silccore/silcmode.h,
3795           lib/silcclient/command.c, and silcd/packet_send.c.
3796
3797         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
3798           specs and code.  Affected file lib/silccore/silcstatus.h.
3799
3800         * Added support for watch list.  It is possible to add nicknames
3801           to be watched, and when they come to network, leave network
3802           or user mode changes the watcher will be notified of this
3803           change.  Added SILC_COMMAND_WATCH command, added new
3804           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
3805           notifications.  Updated the protocol specs and implemented
3806           this to library, client and server.  Protocol TODO #21.
3807           Affected files are lib/silccore/silccomand.h,
3808           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
3809           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
3810           silcd/packet_send.[ch], silcd/packet_receive.c, and
3811           irssi/src/silc/core/client_ops.c.
3812
3813         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
3814           somebody watching you.  Updated the protocol specs and the
3815           code.  Affected files are lib/silccore/silcmode.h, and
3816           lib/silcclient/command.c.
3817
3818 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3819
3820         * Added service support to SILC protocol.  Added new command
3821           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
3822           core library.  Services are not implemented in server or
3823           client for now.  Protocol TODO #20.  Affected files are
3824           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
3825
3826         * Added SilcStatus argument to `command' client operation
3827           to return the error status when command sending fails
3828           locally.  Changed all command in client library to return
3829           correct command status.  Affected files are
3830           lib/silcclient/command.c, lib/silcclient/silcclient.h and
3831           irssi/src/silc/core/client_ops.c.
3832
3833 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3834
3835         * Added silc_mime_parse function to parse MIME headers.
3836           Affected files are lib/silcutil/silcstruti.[ch].
3837
3838         * Added MIME header parsing in Irssi SILC Client.  It displays
3839           all textual MIME objects, others it ignores.  Affected file
3840           is irssi/src/silc/core/clien_ops.c.
3841
3842 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3843
3844         * Fixed a bug in the pid writing function, which couldn't be
3845           written in a root-owned directory.
3846
3847 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3848
3849         * Defined that channel message to unknown Channel ID must
3850           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
3851           Updated the protocol specs and the code in server.  The
3852           affected file is silcd/packet_receive.c.
3853
3854 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3855
3856         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
3857           that it is used to send error notifys if error occurs during
3858           some SILC packet processing, except commands.  The error
3859           types are same as for command reply types.  Defined that
3860           if private message is sent to unknown Client ID the error
3861           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
3862           Updated the protocol specs and code.  Affected files are
3863           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
3864           lib/silcclient/client_notify.c, silcd/packet_receive.c,
3865           and irssi/src/silc/core/client_ops.c.  Renamed the
3866           SilcCommandStatus to SilcStatus.
3867
3868         * Defined the use of extra WHOIS attributes in WHOIS command.
3869           The <Requested Attributes> (defined in a separate document)
3870           can be used to request additional information about user
3871           not returned by standard WHOIS command.  Defined that server
3872           can send WHOIS command directly to client.  Client provides
3873           the requested attributes to the server.  Updated the protocol
3874           specs.  Protocol TODO #4.  Implementation is not done yet
3875           (Protocol TODO #24).
3876
3877         * Renamed function silc_client_command_status_message to
3878           silc_client_status_message.  Affected files are
3879           lib/silcclient/command_reply.[ch].
3880
3881 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3882
3883         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
3884           32 bit integers.  Updated the protcol specs and the code.
3885           Affected files are silcd/command.c and
3886           lib/silcclient/command.c.
3887
3888 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3889
3890         * Fixed a bug in library where sending a bogus authentication
3891           payload would lead to a crash.  Affected file is
3892           lib/silccore/silcauth.c.
3893
3894 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3895
3896         * Added detach_disabled and detach_timeout server config
3897           options to the server.  Affected files silcd/serverconfig.[ch],
3898           silcd/command.c and silcd/packet_receive.c.
3899
3900 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3901
3902         * Added resolve_cmd_ident field to the SilcClientEntry structure
3903           too so that if the entry is for example being resolved so
3904           another command may attach to the same pending command reply
3905           without requiring to resolve the same entry again.  Added
3906           support for adding multiple pending commands for one
3907           command idenfier.  Affected files lib/silcclient/command.[ch],
3908           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
3909
3910 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3911
3912         * Defined that server receives WHOIS command reply for private
3913           and secret channels too.  Updated protocol specs and the
3914           code in server.  Affected file silcd/command.c.
3915
3916         * Defined <channel user mode list> argument to WHOIS command
3917           reply for returning user modes on the channels.  The
3918           channel list now doesn't include the user mode anymore but the
3919           actual channel mode.  Updated protocol specs and the code in
3920           client and server.  Affected files are silcd/command_reply.c,
3921           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
3922           and lib/silcclient/command_reply.c.
3923
3924         * Save the channels list in WHOIS command reply in normal server
3925           so that WHOIS always shows joined channels also in normal
3926           server and not just on router.  Affected file is
3927           silcd/command_reply.c.
3928
3929 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3930
3931         * Defined that server receives USERS command reply for private
3932           and secret channels too.  Updated protocol specs and the
3933           code in server.  Affected file silcd/command.c.
3934
3935 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3936
3937         * Changed the UMODE's mode mask argument to be optional.  If
3938           not provided then the command merely returns the current mode
3939           mask to the client.  Updated protocol specs and the server.
3940           Affected file is silcd/command.c.
3941
3942         * Added SILC session detachment/resuming support.  It is possible
3943           to detach by closing the network connection and then re-connect
3944           and resume to the old client session.  Added DETACHED user
3945           mode that server will set for detached client.  Added new
3946           packet RESUME_CLIENT which is used to perform the resuming
3947           process.  Added DETACH command.  Updated the protocol specs,
3948           core library, client and server.  Protocol TODO #22.  Very
3949           many affected files around the tree.
3950
3951 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3952
3953         * Changed the CMODE's mode mask argument to be optional.  If
3954           not provided then the command merely returns the current mode
3955           mask to the client.  Updated protocol specs and the server.
3956           Affected file is silcd/command.c.
3957
3958         * Changed the Killer's Client ID in KILLED notify to be just
3959           any ID payload since router server is allowed to kill as well.
3960           Updated protocol specs, client libary and server.  Affected
3961           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
3962           and irssi/src/silc/core/client_ops.c.
3963
3964 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3965
3966         * Added new user modes ANONYMOUS for special anonymous servers
3967           that may set the mode for client, and BLOCK_PRIVMSG which
3968           client may set to block incoming private messages unless the
3969           Private Message Key flag is set (using private keys to protect
3970           private messages).  Updated protocol specs and code in client
3971           and server and core library.  Protocol TODO #23.  Affected
3972           files are lib/silccore/silcmode.h, silcd/server.[ch],
3973           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
3974           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
3975
3976         * Added new channel user mode BLOCK_MESSAGES which the client
3977           may set to itself to tell server not send channel messages.
3978           Other packets such as channel key packets are still sent.
3979           Protocol TODO #23.  Updated the protocol specs, client and
3980           server.  Affected files are lib/silccore/silcmode.h,
3981           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
3982           lib/silcutil/silcutil.c, silcd/command.c, and
3983           silcd/packet_send.c.
3984
3985 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3986
3987         * Redefined the Status Payload to include now two 8 bit fields,
3988           instead of one 16 bit field.  This now makes it possible to
3989           send list of errors.  Updated the protocol specs and the code
3990           in core library, client library and server.  Protocol TODO #1.
3991           Affected files are lib/silccore/silccommand.[ch],
3992           lib/silcclient/command_reply.[ch], silcd/command.c,
3993           silcd/command_reply.c and silcd/packet_receive.[ch].
3994
3995 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3996
3997         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
3998           must be handled by the application and should tell the application
3999           that an error message was already printed, and it should print the
4000           config coords (line, filename, ...).  Affected files are
4001           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4002
4003         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4004           server config parsing code more readable.
4005
4006           Fixed a bug in the fetch_logging() config callback.
4007
4008           Affected files is silcd/serverconfig.c.
4009
4010         * Drop root privileges when started in foreground.  Don't drop them
4011           if debugging also.  Affected file is silcd/silcd.c.
4012
4013 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4014
4015         * Added more IM-like features by introducing new user modes
4016           for setting various presence information.  Added new modes:
4017           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4018           specs and code.  Protocol TODO #19. Affected files are
4019           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4020           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4021
4022 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4023
4024         * Added STATS command to the protocol after all, to return
4025           various statistical information about the network.  It can
4026           be used by clients to retrieve statistical information, and
4027           servers may use it to to fetch cell and network wide
4028           statistics from router.  Updated the protocol specs and
4029           implemented it to the server.  Protocol TODO #16.
4030           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4031           silcd/command_reply.[ch].
4032
4033 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4034
4035         * The LIST command reply in client libary now adds new channel
4036           entry if the returned channel doesn't exist yet in cache,
4037           and returns the channel entry to the application in the
4038           command_reply client operation.  Affected file is
4039           lib/silcclient/command_reply.c.
4040
4041         * Changed the channel message payload's MAC generation to
4042           include the IV in the MAC as well.  This way all relevant
4043           parts of the channel message payload are authenticated also
4044           with the channel message MAC (and not only by packet MAC).
4045           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4046           Affected file is lib/silccore/silcchannel.c.
4047
4048         * Fixed the SKE to save the remote version, since the
4049           silc_ske_parse_version mistakenly checked wrong version,
4050           after it replaced the start payload.  Affected files are
4051           lib/silcske/silcske.[ch].
4052
4053 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4054
4055         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4056           string utility functions.  Added there also new functions
4057           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4058           Affected files lib/silcutil/silcstrutil.[ch].
4059
4060         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4061           files are lib/silcutil/silcstrutil.[ch].
4062
4063         * Defined that the security property fields in SKE SHOULD be
4064           UTF-8 encoded, defined that version string MUST be US-ASCII
4065           encoded, defined that passphrases sent in connection
4066           authentication protocol MUST be UTF-8 encoded.  Implemented
4067           these to the client and server.  Defined also that other
4068           passphrases sent in the protocol MUST be UTF-8 encoded.
4069           Affected files are lib/silcske/silcske.c,
4070           lib/silcclient/protocol.c, silcd/protocol.c,
4071           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4072
4073         * Changed the silc_client_close_connection interface to not
4074           need the SilcSocketConnection which should not be visible
4075           to application.  Affected files are lib/silcclient/client.c
4076           and lib/silcclient/silcclient.h.
4077
4078         * Rewrote the text for Private Message Key Payload in the
4079           protocol specification.  Protocol TODO #11.
4080
4081 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4082
4083         * Upgraded the protocol version to 1.1, updated protocol specs
4084           and software.
4085
4086         * Added the nickname as new argument to NICK_CHANGE notify and
4087           added it to protocol specs and implemented it to client and
4088           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4089           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4090           lib/silcclient/client_notify.c.
4091
4092         * Added the killer's client ID to the KILLED notify and added
4093           it to protocol specs and implemented it to client and server.
4094           Protocol TODO #13.  Affected files are silcd/command.c,
4095           silcd/packet_receive.c, packet_send.[ch],
4096           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4097           The killer's client entry is now returned to application in
4098           the `notify' client operation.
4099
4100         * Fixed the Max Argument fields that had too large value set
4101           in the protocol specs.  Protocol TODO #14.
4102
4103         * Added the LEAVE command reply to return the ID of parted
4104           channel.  Updated protocol specs and implemented it to the
4105           client and server.  Protocol TODO #15.  Affected files are
4106           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4107           entry is now returned to application in the `command_reply'
4108           client operation.
4109
4110         * Rewrote the version SKE version checking in client libary
4111           and in server to use the silc_parse_version_string.  Affected
4112           files are lib/silcclient/protocol.c, silcd/protocol.c.
4113
4114         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4115           commands that was missing it, and updated protocol specs and
4116           the server implementation.  Protocol TODO #10.  The affected
4117           file is silcd/command.c.
4118
4119         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4120           generic reply to a generic request (REQUEST flag), and
4121           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4122           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4123           to define the payload for DATA flag.  Added the flags to
4124           the implementation.  Protocol TODO #9.  Affected file is
4125           lib/silccore/silcchannel.h.
4126
4127           Changed the client library to return the message length
4128           to application as well in the channel_message and private_message
4129           client operations.  Affected files are
4130           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4131           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4132           and lib/silcclient/client_ops_example.c.
4133
4134         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4135           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4136           the channel.  Updated protocol specs and impelemented this
4137           to client and server.  Protocol TODO #6.  Affected files are
4138           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4139           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4140
4141           Added new options m and M to CMODE command in Irssi SILC
4142           client to set these modes.
4143
4144         * Deprecated all administrative commands from SILC protocol
4145           since they are highly implementation specific commands.
4146           Updated protocol specs.  Moved the old commands in
4147           implementations to private range of command types.  Affected
4148           files are silcd/command.c, lib/silcclient/command.c and
4149           lib/silcclient/command_reply.c.  Protocol TODO #8.
4150
4151         * Fixed a bug in server where sending unknown command crashes
4152           the server.  Affected file silcd/command.c.
4153
4154 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4155
4156         * Added SILC_PROTOCOLVERSION macro to check protocol version
4157           of a socket connection.  The affected file is
4158           lib/silcutil/silcsockconn.h.
4159
4160         * Added better error logging in rekey protocol.  Affected file
4161           silcd/protocol.c.
4162
4163         * Do not check public key types in SKE during rekey.  Affected
4164           file lib/silcske/payload.c.
4165
4166         * Fixed the rekey protocol with PFS, which was totally broken.
4167           Affected file silcd/protocol.c.
4168
4169 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4170
4171         * Some client implementations quit network by doing first LEAVE
4172           and then immediately SIGNOFF (like Bombyx).  We now do check
4173           after a short time after LEAVE notify and check whether the
4174           client is still valid after LEAVE, and if not we remove it from
4175           cache.  Affected file is lib/silcclient/client_notify.c.
4176
4177 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4178
4179         * Merged version 1.1.4 of zlib. Even if it not currently in use,
4180           it's good not to have security holes here.
4181
4182         * Fixed a negative refcount situtuation for the config context.
4183           Affected file is silcd/serverconfig.c.
4184
4185 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4186
4187         * ROBOdoc documented lib/silcutil/silcutil.h.
4188
4189 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4190
4191         * Optimized even more the SilcPacketContext structure.  Now
4192           totally saved 16 bytes of memory per context after optimization.
4193           Affected files are lib/silccore/silcpacket.[ch].
4194
4195         * Made strict checks for valid SILC IDs.  Affected file is
4196           lib/silccore/silcid.c.
4197
4198 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4199
4200         * Changed the object argument for silc_cipher_register,
4201           silc_hash_register, silc_hmac_register and silc_pkcs_register
4202           to const.  Affected files are lib/silccrypt/silccipher.[ch],
4203           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
4204
4205         * Changed the silc_get_username and silc_get_real_name to
4206           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
4207
4208         * Fixed the Irssi SILC Client to use the silc_get_username and
4209           silc_get_real_name insted of glib routines since the glib
4210           routines only corrupt stack.  Fixes the Irssi SILC to work in
4211           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
4212
4213         * Fixed the Irssi to not use g_get_home_dir since it crashes
4214           or returns garbage on cygwin and corrupts stack.  Added function
4215           get_home_dir to Irssi routines.  Affected files are
4216           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
4217
4218 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4219
4220         * Made some structure optimizations.  SFTP memory FS MemFSEntry
4221           entry structure.  Optimized SilcTask structure.  Optimized
4222           SilcPacketContext structure.
4223
4224           Affected files lib/silcsftp/sftp_fs_memory.c,
4225           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
4226
4227 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4228
4229         * And yet again reverted back the config thing since Johnny
4230           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
4231           and silcd.c.
4232
4233         * Fixed memory leaks from config object.  Affected files are
4234           silcd/serverconfig.[ch].
4235
4236         * Added support for adding new connections to the server in rehash.
4237           After rehash they take effect.
4238
4239           Added support for changing the maximum allowed connections in
4240           rehash.  The number can grow but going smaller is not supported.
4241
4242           Added function silc_server_num_sockets_by_remote to the
4243           silcd/server_util.[ch].
4244
4245           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
4246
4247 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
4248
4249         * Added preliminary checking during config parsing for a valid
4250           public/private key and removed further checks in the code.
4251           Affected files are silcd/serverconfig.[ch], server.c.
4252
4253         * Moved functions silc_server_drop() and silc_server_daemonise()
4254           from server.c to silcd.c since they are stricly related to
4255           the application activity.
4256
4257         * Reverted a small part of the automatic ref/unref since
4258           it caused a double unref in some situations.  Affected
4259           files are silcd/silcd.[ch], server.c, serverconfig.c.
4260
4261         * Added some .cvsignore files in the lib directory.
4262
4263 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4264
4265         * Fixed silc_net_gethostbyaddr to correctly resolve by
4266           address.  Affected file lib/silcutil/silcnet.c.
4267
4268         * Fixed the notify relaying to client.  The HMAC to be used
4269           with relayed packets ws wrong and caused decryption failure
4270           at the client end.  Affected file is silcd/packet_receive.c.
4271
4272 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4273
4274         * Created new branch silc_protocol_1_0_branch.
4275
4276         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
4277
4278         * Changed the silc_server_config_* routines to be SilcServer
4279           independent.  They are now officially application specific code
4280           and not part of generic server implementation.  Affected files
4281           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
4282
4283 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4284
4285         * Added automatic referencing of config context in the
4286           silc_server_config_alloc, and automatic unreferencing in the
4287           silc_server_config_destroy.  Affected files are
4288           silcd/serverconfig.[ch], silcd/silcd.c.
4289
4290         * Fixed the silc_log_quick handling in the logging routines.
4291           It didn't log quickly when it was TRUE.  Affected file is
4292           lib/silcutil/silclog.c.  Also the flush delay was set even
4293           if it was 0 in config file.  Affected file is
4294           silcd/serverconfig.c.
4295
4296         * Added support for changing key pair of the server in rehash.
4297           Affected file silcd/server.c.
4298
4299 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4300
4301         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
4302           too early, before getting the channel entry.  Affected file
4303           is silcd/packet_receive.c.
4304
4305 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4306
4307         * Added functions silc_server_config_[ref/unref], these are used
4308           to prevent that the config object is destroyed.
4309
4310           No longer directly affect global variables silc_log_quick and
4311           silc_log_delay, they are first cached inside the config object
4312           and then applied with silc_server_config_setlogfiles().
4313
4314           silc_server_config_set_defaults() is now internal to
4315           serverconfig.c, there are no reasons to show this internal stuff
4316           to the server.
4317
4318           Affected files are silcd/serverconfig.[ch].
4319
4320         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
4321           fprintf's to stderr, since some code may be executed again after
4322           the server went into the background.  Affected files are
4323           silcd/server.[ch].
4324
4325         * Added rehash support. Added function silc_server_rehash() that
4326           will perform all the basic tasks of the rehashing procedure.
4327
4328         * Added command line option `-x, --hexdump'. This will enable the
4329           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
4330           The option `--hexdump' implies `--debug'.
4331
4332         * Fixed a bad bug in the logging APIs (silcutil library) where
4333           the application would crash after calling silc_log_reset_all().
4334
4335 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4336
4337         * Fixed the KICKED notify handling in client library to
4338           correctly remove the channel and all entries from the
4339           channel when I was kicked.  This bug crashed the client.
4340
4341           Fixed yet another but in KICKED notify handling to remove
4342           the kicked client correctly from the channel.
4343
4344           Affected file is lib/silcclient/client_notify.c.
4345
4346         * Fixed a minor bug in looking up correct client entry
4347           in KICKED notify in server.  Affected file is
4348           silcd/packet_receive.c.
4349
4350         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
4351           sources correctly to distribution.  Fixes --with-gmp option.
4352
4353         * Removed the manual rehashing from ID Cache, and changed it
4354           to use the SILC Hash Table's auto rehash feature.  Affected
4355           file is lib/silccore/silcidcache.c.
4356
4357 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4358
4359         * Fixed a bug in the silc_client_nickname_format function that
4360           handles the multiple same nickname formatting.  Two clients
4361           with same nickname caused problems after the first one left
4362           and rejoined.  It didn't format the nickname correctly.
4363           Affected file is lib/silcclient/idlist.c.
4364
4365 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4366
4367         * Don't change the topic if olod topic is same as new one.
4368           Affected file is silcd/packet_receive.c.
4369
4370 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4371
4372         * Added cross-reference support to the SILC Documentation
4373           generator.  All types across all HTML files are now cross-
4374           referenced.  Affected files util/robodoc/generator.c and
4375           scripts/silcdoc/silcdoc.
4376
4377         * Added file lib/silcutil/silctypes.h to include all the
4378           arithmetic type definitions and some macros.  Removed
4379           includes/bitmove.h and moved macros to silctypes.h.
4380
4381 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4382
4383         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
4384
4385 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4386
4387         * Added `type' argument to silc_id_payload_parse_id function which
4388           now returns the type of the ID to the sent pointer.  Affected
4389           file is lib/silccore/silcid.[ch].
4390
4391         * Added check for CMODE_CHANGE notify type that mode change is
4392           allowed by the sender.  Affected file silcd/packet_receive.c.
4393
4394         * Added check for CUMODE_CHANGE notify type that mode change is
4395           allowed by the sender.  Affected file silcd/packet_receive.c.
4396           Added the ID type as CUMODE_CHANGE notify type as argument
4397           to the `notify' client operation.  Affected files are
4398           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4399
4400         * Added function silc_client_add_server to the client library.
4401           Added support for resolving also channel and server info when
4402           received unknown entity in notify packet.  Affected files are
4403           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4404
4405         * Added function silc_command_get_status to return the command
4406           status from the command reply's argument payload.  Affected files
4407           are lib/silccore/silccommand.[ch].
4408
4409         * Added check for KICKED notify type that the kicking is
4410           allowed by the client.  Affected file silcd/packet_receive.c.
4411
4412         * Created function silc_get_input which can be used to get input
4413           (echo on or off) from user on command line.  Affected files are
4414           lib/silcutil/silcutil.[ch].
4415
4416 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4417
4418         * Optimized silc_server_packet_relay_to_channel function.
4419           Added new function silc_channel_message_payload_encrypt which
4420           can be called directly if channel message payload needs to
4421           be encrypted and is already encoded (no need to call _encode
4422           function).  Packet relaying is now done by router without any
4423           extra memory allocations.  Affected files are
4424           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4425           silcd/packet_send.c.
4426
4427         * Fixed the INVITE notify handling.  It took wrong arguments
4428           as invite list and invite delete.  Affected file is
4429           silcd/packet_receive.c.
4430
4431         * Added check for TOPIC_SET notify type that the topic change is
4432           allowed by the client.  Affected file silcd/packet_receive.c.
4433
4434         * Added check for INVITE notify type that inviting is allowed by
4435           the client.  Affected file silcd/packet_receive.c.
4436
4437         * Changed the silc_server_client_on_channel to return the
4438           SilcChannelClientEntry as well.  Moved the function
4439           silc_server_check_cmode_rights to server_util.[ch].
4440           Affected files are silcd/server_util.[ch], silcd/command.c.
4441
4442         * Added function silc_server_check_umode_rights to check whether
4443           changing client's user mode is allowed.  Added check for
4444           UMODE_CHANGE notify type that the umode change is allowed
4445           by the client.  Affected files are silcd/server_util.[ch],
4446           silcd/packet_receive.c and silcd/command.c.
4447
4448 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4449
4450         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4451           ID length.  It ignored that ID can be IPv6 based as well.
4452           Affected file lib/silccore/silcpacket.h.
4453
4454         * Fixed the silc_id_id2str and silc_id_str2id to take the
4455           IPv6 address offset's into consideration.  Affecte file is
4456           lib/silccore/silcid.c.
4457
4458 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4459
4460         * Fixed the internal Unix scheduler functions to check for
4461           NULL context they may receive.  The affected file is
4462           lib/silcutil/unix/silcunixschedule.c.
4463
4464 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4465
4466         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4467           can specify different directory with --home command line
4468           parameter. Affected files irssi/src/silc/core/client_ops.c,
4469           clientutil.c
4470
4471         * SILC-specific commands aren't now executed if the active server
4472           isn't of SILC-type, so there won't be problems with having
4473           IRC and SILC protocol support in same client. Affected files
4474           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4475           silc-commands.h
4476
4477 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4478
4479         * Improved the signal support in SILC Schedule.  Added new
4480           function silc_schedule_signal_call which is used by application
4481           to mark a signal to be called.  It is now safe to perform
4482           any kind of tasks in signal callbacks since it is guaranteed
4483           that the application specified signal callback is called
4484           after the signal is over.  Affected files are
4485           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4486
4487 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4488
4489         * Added `name' field to SilcChannelPrivateKey to represent
4490           application given name for the key.  Moved also the context from
4491           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4492           Added the `name' argument also to the function
4493           silc_client_add_channel_private_key.
4494
4495           Added function silc_client_current_channel_private_key to set the
4496           current channel private key in use.
4497
4498           Added "change" command to KEY command which can be used to change
4499           the current channel private key.  Bound the command also to
4500           alt+K (Alt+Shift+k).
4501
4502           Also affected files lib/silcclient/client_channel.c,
4503           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4504
4505 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4506
4507         * Added silc_rng_get_byte_fast function in to the
4508           lib/silccrypt/silcrng.[ch].
4509
4510         * Changed the interface of silc_packet_assemble and the
4511           silc_packet_send_prepare.  If silc_packet_assmble is now
4512           called the application does not call silc_packet_send_prepare
4513           because the library will call it automatically.  These
4514           interfaces now also return a reference to the outgoing buffer
4515           which includes the assembled packet, which the application can
4516           use to encrypt the packet.
4517
4518           Affected files are lib/silccore/silcpacket.[ch],
4519           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4520           silcd/packet_send.c, server_backup.c and packet_receive.c.
4521
4522         * Fixed a packet sending bug on very high load, where outgoing
4523           packet queue wasn't handled correctly and packets got corrupted.
4524           Affected files are lib/silcutil/*/silc*sockconn.c,
4525           lib/silcclient/client.c and silcd/server.c.
4526
4527 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4528
4529         * Added macro SILC_PACKET_DATALEN which can be used during
4530           packet assembling to check whether the data to be added to
4531           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4532           len is truncated until it fits it.
4533
4534           Added checks for maximum length of channel message payload and
4535           private message payload also.
4536
4537           Added checks for maximum packet length in server and in
4538           client library.
4539
4540           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4541           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4542           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4543           lib/silcclient/client_prvmsg.c.
4544
4545 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4546
4547         * Added silc_server_packet_queue_purge call to the
4548           silc_server_disconnect_remote to assure that all data in the
4549           queue before disconnecting is sent to the network.  Affected
4550           file silcd/server.c.
4551
4552 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4553
4554         * Added the deleting of server's own ID cache entry to the
4555           silc_server_free function.  Free also everything else that
4556           has been allocated in silc_server_init.  The affected file
4557           is silcd/server.c.
4558
4559 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4560
4561         * Added functions silc_parse_version_string, silc_version_to_num,
4562           and silc_ske_parse_version to parse SILC protocol style version
4563           strings.  Affected files lib/silcutil/silcutil.[ch] and
4564           lib/silcske/silcske.[ch].
4565
4566         * Added new configuration params: version_protocol, version_software
4567           and version_software_vendor to specify what version the remote
4568           host must at least be to be able to connect to server.  The vendor
4569           string can be regex matched too.  Added new function
4570           silc_server_connection_allowed to check maximum number of allowed
4571           connections, and allowed versions for incoming connections.
4572           Affected files are silcd/server.c, server_util.[ch] and
4573           serverconfig.[ch].
4574
4575 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4576
4577         * Added preliminary support for signals in scheduler.  The
4578           signals we care about are now blocked always when the scheduler
4579           is locked.  This way we can synchronise the use of signal with
4580           scheduler.  It is guaranteed that when signal occurs the scheduler
4581           is not locked, and thus new tasks can be safely added to the
4582           scheduler.
4583
4584           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4585           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4586           Added new platform specific routines
4587           silc_schedule_internal_signals_[un]block and
4588           silc_schedule_internal_signal_[un]register.
4589
4590           Added new functions to SILC Schedule API:
4591           silc_schedule_signal_[un]register.  Each signal that application
4592           is going to use should be registered to the scheduler.
4593
4594           Affected files are lib/silcutil/silcschedule.[ch],
4595           lib/silcutil/*/silc*schedule.c.
4596
4597 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4598
4599         * Check for unauthenticated client and server in the
4600           silc_server_new_client and silc_server_new_server functions.
4601           Affected file silcd/packet_receive.c.
4602
4603         * Added function silc_string_is_ascii to check whether given
4604           string is 7-bit ASCII string.  Affected files are
4605           lib/silcutil/silcutil.[ch].
4606
4607         * Added function silc_id_is_valid_server_id into the
4608           silcd/serverid.c and added checking for valid Server ID's in
4609           silc_server_new_server.  The Server ID must always be based
4610           on the server's public IP address.
4611
4612         * Added logging of DISCONNECT packet message in the server.
4613           Affected file silcd/server.c.
4614
4615 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4616
4617         * Changed all library interfaces that use Global RNG to also
4618           accept SilcRng as argument.  Affected files are
4619           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4620           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4621           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4622           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4623           lib/silccrypt/rsa.c.
4624
4625         * Added function silc_pkcs_generate_key to the
4626           lib/silccrypt/silcpkcs.[ch] for applications so that they
4627           don't need to do pkcs->pkcs->init calls anymore.
4628
4629         * Remove SilcSocketConnection from the SFTP API since it really
4630           wasn't needed there.  The application has the information
4631           saved in its contexts anyway and the SFTP layer doesn't need
4632           know about it.  Affected files lib/silcsft/silcsftp.h and
4633           lib/silcsftp/sftp_[server/client].c.
4634
4635         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
4636           The SilcSimContext is not SilcSim.
4637
4638         * Fixed possible buffer overflows in silc_id_render in the
4639           lib/silcutil/silcutil.c.
4640
4641         * On EPOC the global crypto module lists are not used at all
4642           in the crypto library.  Added support for using the constant
4643           algorithm list on EPOC.  Affected files are
4644           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
4645           silcpkcs.c.
4646
4647         * Fixed the handling of third parameter of KICKED notify, since
4648           it was mistakenly updated to SILC Protocol 1.0 even though it
4649           is to be included in 1.1.  Since it is not in 1.0 it is not
4650           mandatory, and this fix now handles it only if it is provided,
4651           and it is not error if it is not provided.  Affected file
4652           lib/silcclient/client_notify.c.
4653
4654 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4655
4656         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
4657           client.  Affected file irssi/src/silc/core/client_ops.c.
4658
4659         * Merged with Irssi 0.8.4 from irssi.org CVS.
4660
4661 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4662
4663         * Check for valid socket connection in client entries before
4664           sending any messages.  Fixes a crash, but doesn't fix some
4665           other underlaying bug that is lurking there.  Affected
4666           file silcd/packet_send.c.
4667
4668 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
4669
4670         * $usermode, $cumode and $cumode_space expandos shouldn't do
4671           anything with non-SILC server records. Affected file
4672           irssi/src/silc/core/silc-expandos.c
4673
4674 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4675
4676         * Fixed the silc_net_check_[host/local]_by_sock to support
4677           IPv6 bound sockets as well.  Now they can return IPv6 addresses
4678           as well.  Affected file lib/silcutil/silcnet.c.
4679
4680         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
4681           Affected lib/silcutil/unix/silcunixnet.c.
4682
4683         * Fixed ID rendering (at least on some platforms, not NetBSD)
4684           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
4685
4686 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4687
4688         * Added silc_hash_public_key and silc_hash_public_key_compare
4689           functions to be used with SilcHashTable.  They can be used to
4690           hash public keys and compare public keys in hash table.  Affected
4691           file lib/silcutil/silcutil.[ch].
4692
4693         * Added support for specifying multiple public keys for Client
4694           connection section in server configuration file.  This makes it
4695           possible to accept multiple public keys from same host, or to
4696           make a section that accepts any incoming host, and have the
4697           accepted public keys listed in the section.
4698
4699           Added functions silc_sever_[find/get]_public_key,  added the
4700           support for this actually to all connection sections but only
4701           the Client section is currently allowed to specify multiple
4702           public keys.
4703
4704           Affected files are silcd/server.c, server_internal.h,
4705           command.c, protocol.c, server_util.[ch], packet_receive.c.
4706
4707 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4708
4709         * Merged Irssi 0.8.2 from irssi.org CVS.
4710
4711 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4712
4713         * If silc_debug is TRUE, also output standard logging messages
4714           to stderr with the debug output.
4715
4716           Made silc_log_reset_all() flushing all channels before returning.
4717           Also fixed some documentation typos.
4718
4719           Affected files are lib/silcutil/silclog.[ch].
4720
4721 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4722
4723         * Fixed the server to check correctly the amount of connections
4724           from single host, by checking also the type of the connection.
4725           Fixed also the comparison of number of connections and number
4726           of allowed connections.  Affected files are silcd/server.c,
4727           server_util.[ch].
4728
4729 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4730
4731         * Fixed the USERS command reply to save the user's mode on the
4732           channel as well.  Fixed JOIN command reply to check whether a
4733           client is on channel already and not join it twice.  Affected
4734           file lib/silcclient/command_reply.c.
4735
4736         * Added new file silc-expandos.c into irssi/silc/core/ to return
4737           various stuff for various signal for the statusbar etc. updating.
4738           Now Irssi SILC client prints channel user modes etc. on the
4739           statusbar.
4740
4741         * The user mode (like server/router operator changes) is now shown
4742           on the Irssi SILC client's statusbar.  The affected files are
4743           irssi/src/silc/core/client_ops.c, silc-expandos.c.
4744
4745 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4746
4747         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
4748           to SILC_SCHEDULE_[UN]LOCK macros.
4749
4750         * Added more error printing to logs in server code.  Affected
4751           files silcd/server.c and silcd/protocol.c.
4752
4753         * Fixed -S option parsing in Irssi SILC Client.  Affected file
4754           irssi/src/silc/core/silc-core.c.
4755
4756         * Added silc_buffer_alloc_size function.  Affected file is
4757           lib/silcutil/silcbuffer.h.
4758
4759 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4760
4761         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
4762           constants.  Affected files in
4763           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
4764           silccipher.[ch].
4765
4766         * Changed the internal SFTP Memory FS table to const.  Affected
4767           file lib/silcsftp/sftp_fs_memory.c.
4768
4769 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4770
4771         * Fixed the buffer formatting and unformatting routines to
4772           check the size of 64 bits types with sizeof().  Affected
4773           file is lib/silcutil/silcbuffmt.c.
4774
4775 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4776
4777         * Removed 0.6.x backwards support.
4778
4779 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4780
4781         * Changed all integer type names:
4782           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
4783           to avoid collisions with other libraries using same type names
4784           as we did.
4785
4786 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4787
4788         * Added `prefer_ipv6' argument to the functions
4789           silc_net_gethostbyname[_async].  If it is TRUE it will return
4790           IPv6 address over IPv4.  If FALSE IPv4 address is returned
4791           even if IPv6 address was found.  Affected files
4792           lib/silcutil/silcnet.[ch].
4793
4794         * Added support silc_net_create_connection[_async] to fallback
4795           to IPv4 address if IPv6 address could not be used (like if
4796           it doesn't work on a specific system).  Affected file in
4797           lib/silcutil/unix/silcunixnet.c.
4798
4799 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4800
4801         * Added silc_schedule_reinit function to do the enlarging
4802           of the max tasks handling capabilities of the scheduler.
4803           Affected files lib/silcutil/silcschedule.[ch].
4804
4805 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4806
4807         * Added automatic extern "C" { ... } for C++ compilers so the
4808           application does not need to define them.  Affected file
4809           includes/silcincludes.h.
4810
4811         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
4812           old name went against naming convention.  Applications now
4813           include "silcclient.h" instead of "clientlibincludes.h".
4814           Removed includes/clientlibincludes.h, it is redundant now.
4815
4816         * Renamed includes/version.h to silcversion.h.
4817
4818         * Added really preliminary support for OS/2 into the util
4819           library.  Only thread & mutex API is implemented, others
4820           are still to be implemented.  Created the lib/silcutil/os2/
4821           directory.  Created also file includes/silcos2.h.
4822
4823 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4824
4825         * Added preliminary BeOS support into the util library.
4826           Created lib/silcutil/beos/, and implemented all the needed
4827           functions to support SILC on BeOS.  Created also file
4828           includes/silcbeos.h.
4829
4830 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
4831
4832         * Added proper initializations to silc's irssi code, so it's
4833           now possible to load it as module.  Affected files
4834           irssi/src/silc/core/silc-core.c,
4835           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
4836
4837 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4838
4839         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
4840           the SILC tree.
4841
4842         * Fixed the silcdoc document generator to correct generate
4843           docs from all kinds of filenames.  Affected files are
4844           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
4845
4846         * ROBOdoc documented lib/silcutil/silcmemory.h.
4847           Added also new function silc_memdup.
4848
4849         * Removed lib/silcutil/silcbufutil.h and moved those routines
4850           to the lib/silcutil/silcbuffer.h.
4851
4852 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4853
4854         * Added `user_count' to the SilcChannelEntry which now tells the
4855           number of users on the channel.  The user count is now saved
4856           in normal server of global channels as well.  Affected files
4857           silcd/server.c, idlist.h, packet_receive.c and command.c.
4858
4859         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
4860           include file utility functions.
4861
4862         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
4863           instead of calling directly OS routines.
4864
4865         * Fixed NICK change printing in Irssi SILC Client. Fixed
4866           KICKED notify printing in Irssi SILC Client.  Affected file
4867           irssi/src/silc/core/client_ops.c.
4868
4869         * Fixed a NICK change bug in client library, to not recreate the
4870           client_entry->channels hash table everytime nick is changed.
4871           Affected file lib/silcclient/client.c.
4872
4873 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4874
4875         * ROBOdoc documented the lib/silcske/silcske.h, and improved
4876           the SKE interface a bit.
4877
4878         * Fixed padding problem in PKCS#1. The padding was not actually
4879           random since the random number generator was used incorrectly.
4880           This security bug affects only when encrypting with PKCS#1, and
4881           it is not currently used at all in SILC. SILC only use signing
4882           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
4883
4884 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4885
4886         * Rewrote the notify handling in Irssi SILC client to not call
4887           the events as signals.  Fixes problems with Perl support.
4888           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
4889
4890         * Send the auto-nicking NICK command in client library with
4891           little timeout after connecting.  The affected file is
4892           lib/silcclient/client.c.
4893
4894         * Added following new config file settings:
4895           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
4896           key_exchange_timeout, conn_auth_timeout, connections_max,
4897           links_max.
4898
4899           Implemented all the new config settings handling in the server.
4900
4901           Optimized the use of SKE Mutual flag usage.  Use it only
4902           if connection authentication protocol is not based in public
4903           key authentication.
4904
4905           Renamed all SilcServerConfigSection* to SilcServerConfig*
4906           to have a bit shorter names.
4907
4908           Affected files silcd/serverconfig.[ch], server.[ch], and
4909           protocol.[ch].
4910
4911 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4912
4913         * Cleaned up the listening sockets code, preparing for the rehash
4914           support.  Affected file is silcd/server.c.
4915
4916         * Fixed some output messages.  Affected files are silcd/silcd.c,
4917           and silcd/server.c.
4918
4919 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4920
4921         * Create lib/doc/silcrng_intro.html document as introduction
4922           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
4923
4924 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4925
4926         * Fixes to the silcd config template.  Affected file is
4927           doc/example_silcd.conf.in.
4928
4929         * Removed type casts from silc_calloc(), conforming to the
4930           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
4931
4932         * Removed param_name member from client, server, and router
4933           section structs, now identifying the param directly.
4934
4935           Added CONFIG_FREE_AUTH macro in config file parsing.
4936
4937           Affected files are silcd/serverconfig.[ch].
4938
4939 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
4940
4941         * Fixed command line parameter handling. All SILC initialization
4942           is now done in silc_core_init() which also fixes autoconnecting
4943           to servers.
4944
4945           Affected files irssi/src/silc/core/silc-core.c,
4946           irssi/src/fe-text/silc.c.
4947
4948 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4949
4950         * Added new configuration options and blocks:
4951           keepalive_secs, reconnect_count, reconnect_interval,
4952           reconnect_interval_max, reconnect_keep_trying and
4953           require_reverser_lookup.  Added ConnectionParam block, and
4954           implemented the connection parameters when connecting as
4955           initiator and when accepting connections as responder.
4956
4957           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
4958           whether given configuration value has been given already.
4959
4960           Affected files silcd/serverconfig.[c], server.[c].
4961
4962         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
4963           algorithm parts and created new file silcalgs.conf, that
4964           is now included from the example_silcd.conf.in.
4965
4966         * Optimized the silc_server_connect_to_router_second to take
4967           the connection configuration object from the SilcServerConnection
4968           object instead of finding it during the connecting phase.
4969           Added the configuration object to SilcServerConnection struct.
4970           Affected files silcd/server_internal.h, server.c.
4971
4972 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4973
4974         * Add the client on channel after it was resolved at the
4975           channel message receiving, and it was not already on the
4976           channel.  Affected file lib/silcclient/client_channel.c.
4977
4978 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4979
4980         * Fixed the public key authentication to allocate always the
4981           destination signature buffer instead of using static buffer.
4982           Affected file silcd/protocol.c.
4983
4984 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4985
4986         * Unified the serverconfig.[ch]'s helper function interface.
4987           Affected file silcd/serverconfig.[ch].
4988
4989         * Removed doc/example_silc.conf.in since it is redundant.
4990           The make install will now install irssi/silc.conf file.
4991
4992         * Added new Passphrase and Publickey authentication methods to
4993           config file, allowing both public key and passphrase based
4994           authentication to be set at the same time.
4995
4996           Added `prefer_passphrase_auth' setting in config file which
4997           can be used to set to prefer passwd auth if both passwd and
4998           public key is set.  If not set, public key is preferred.
4999           This has effect only when being initiator (responder will try
5000           both anyway).
5001
5002           Added support for authentication with passphrase and public key
5003           at the same time.  The passphrase is tried first always since
5004           it is faster to check.
5005
5006           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5007
5008 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5009
5010         * Merged the new SILC Config library, with the server parsing
5011           support.  Read the header file silcconfig.h or the toolkit
5012           documentation for the news.  Affected files are
5013           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5014           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5015           silcd/protocol.c silcd/server.c silcd/server_backup.c
5016           silcd/serverconfig.[ch] silcd/silcd.c.
5017
5018         * Fixed some silclog documentation.  Affected file is
5019           lib/silcutil/silclog.h.
5020
5021 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5022
5023         * The silc_cipher_register, silc_hash_register and
5024           silc_hmac_register now checks if the object to be registered
5025           is registered already.  Affected files are
5026           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5027
5028 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5029
5030         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5031
5032 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5033
5034         * Allow zero length channel messages inside the Channel Message
5035           Payload.  Affected file lib/silccore/silcchannel.c.
5036
5037         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5038           as header filenames.
5039
5040         * Removed lib/silcclient/README and created HTML file
5041           lib/silcclient/silcclient_using.html, which is now included
5042           as part of Toolkit documentation.
5043
5044 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5045
5046         * Fixed CUMODE_CHANGE notify handling to change the mode of
5047           correct client.  Affected file lib/silcclient/client_notify.c.
5048
5049         * Make silc_rng_alloc fail if it cannot allocate the sha1
5050           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5051
5052 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5053
5054         * Fixed the file transfer's key agreement payload to include
5055           zero port also if the hostname is NULL because it could not
5056           be bound.
5057
5058           Call file transfer monitor callback now also if error occurs
5059           during key agreement protocol.
5060
5061           Changed the silc_client_file_send interface to return the
5062           SilcClientFileError instead of session id.  The session ID
5063           is returned into pointer provided as argument.
5064
5065           Check that the file exists locally before sending the
5066           file transfer request at all.
5067
5068           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5069
5070         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5071           error than can occur while key agreement protocol.  Affected
5072           file lib/silcclient/silcapi.h.
5073
5074         * Fixed the event_mode CMODE handler to not crash when mode
5075           is changed and +k mode is set in the channel.  Affected file
5076           irssi/src/silc/core/silc-channels.c.
5077
5078         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5079           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5080           file lib/silcutil/silclog.c.
5081
5082         * Fixed the channel message payload decryption in the function
5083           silc_channel_message_payload_decrypt to not modify the original
5084           buffer before it is verified that the message decrypted
5085           correctly.  Otherwise, next time it is called with correct
5086           channel key it won't encrypt since the payload is corrupted.
5087           Affected file lib/silccore/silcchannel.c.
5088
5089 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5090
5091         * Do not constantly resize the window.  A fix patch by cras.
5092           Affected file irssi/src/fe-text/screen.c.
5093
5094 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5095
5096         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5097           Affected file lib/silcutil/silcnet.c.
5098
5099 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5100
5101         * Fixed a bug in hash table internal routine for traversing
5102           the table with foreach callback.  The current entry may
5103           become invalid in the callback but it was referenced after
5104           the callback returned.
5105
5106           Do not allow auto rehashing of hash table during the
5107           silc_hash_table_foreach operation, for same reasons as it is
5108           not allowed for SilcHashTableList.  Affected files are
5109           lib/silcutil/silchashtable.[ch].
5110
5111 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5112
5113         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5114           Win32 DLL.  extern's in header files are now declared with
5115           DLLAPI.
5116
5117 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5118
5119         * Fixed private message handling.  It used some old code that
5120           caused the client to crash.  Affecte file is
5121           lib/silcclient/client_prvmsg.c.
5122
5123 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5124
5125         * Added function silc_client_add_channel,
5126           silc_client_replace_channel_id, and removed functions
5127           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5128           from client library.
5129
5130         * Added cross reference of the joined channels to the
5131           SilcClientEntry, and changed the SilcChannelEntry's
5132           users list to SilcHashTable.  The affected files are
5133           lib/silcclient/idlist.[ch].
5134
5135         * Fixed a bug in hash table tarversing.  While the hash table
5136           is traversed with SilcHashTableList the table must not be
5137           rehashed.  It is now guaranteed that auto rehashable tables
5138           are not rehashed while tarversing the list.  Also defined that
5139           silc_hash_table_rehash must not be called while tarversing
5140           the table.  Added function silc_hash_table_list_reset that must
5141           be called after the tarversing is over.  The affected files are
5142           lib/silcutil/silchashtable.[ch].
5143
5144         * Changed all hash table traversing to call the new
5145           silc_hash_table_list_reset in server and in client library.
5146
5147         * Added function silc_client_on_channel to return the
5148           SilcChannelUser entry if the specified client entry is joined
5149           on the specified channel.  This is exported to application as
5150           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5151
5152 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5153
5154         * Fixed founder regaining problem with JOIN command on normal
5155           server.  The notify for mode change must be sent always and
5156           not only if !cmd->pending.  Affected file silcd/command.c.
5157
5158         * Fixed the WHOWAS command's reply sending to support the
5159           lists correctly.  Affected file silcd/command.c.
5160
5161 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5162
5163         * When sending JOIN command to router for processing the
5164           sender's old command identifier was not saved back to the
5165           sender's command context, fixed now.  The affected file is
5166           silcd/command.c.
5167
5168         * Create the key in JOIN command of the router did not return
5169           the channel key, added check for this.  Affected file is
5170           silcd/command.c.
5171
5172         * Fixed a channel ID update bug in JOIN command reply.  Do
5173           not directly upgrade the ID but call the function
5174           silc_idlist_replace_channel_id if the ID was changed.
5175           Affected file silcd/command_reply.c.
5176
5177         * Fixed memory leaks from command calling if it would fail.
5178           Affected file silcd/command.c.
5179
5180 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5181
5182         * Applied patches from cras:
5183
5184           Memory leak fixes around libaries, irssi window resize fix,
5185           new silclist.h and silcdlist.h, all extern inline changed to
5186           static inline.
5187
5188         * Removed dotconf from lib/dotconf, not needed anymore.
5189
5190         * Removed TRQ from lib/trq, not needed anymore.
5191
5192         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
5193           with server connections.  Later this will be configurable
5194           in config file after new config file is done.  Affected file
5195           silcd/server.c.
5196
5197 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5198
5199         * Fixed a crash in server related to channel announcements.
5200           Affected file silcd/server.c.
5201
5202 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5203
5204         * Fixed memory leaks in silc_server_create_new_channel*
5205           functions.  Affected file silcd/server.c.
5206
5207         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
5208           which ID was changed.  This way the router will send the
5209           user list for the channel again, and server won't be in
5210           desync in some rare circumstances.  Affected file is
5211           silcd/packet_receive.c.
5212
5213 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5214
5215         * Check for NULL socket pointer in the function
5216           silc_server_packet_send_to_channel_real.  Affected file
5217           silcd/packet_send.c.
5218
5219         * Fixed the BAN notify handling to correctly remove ban
5220           list.  Affected file silcd/packet_receive.c.
5221
5222 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5223
5224         * Fixed some header addition to Toolkit distribution in
5225           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
5226
5227         * Added lib/silcclient/client_ops_example.h as an template
5228           file for application programmers to quickly start using
5229           the SilcClientOperation functions in their application.
5230           Updated the lib/silcclient/README as well to tell about this
5231           nice file made available.
5232
5233 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5234
5235         * Call silc_server_remove_from_channels when removing client
5236           entry when NO_SUCH_CLIENT_ID was received.  Affected file
5237           is silcd/command_reply.c.
5238
5239 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5240
5241         * Added server & router operator statistics updating.  Affected
5242           file silcd/packet_receive.c and silcd/command.c.
5243
5244         * Fixed the SERVER_SIGNOFF notify handling on normal server
5245           not to save the history information for clients.  Same was
5246           fixed earlier in remove_clients_by_server function, but not
5247           here.  Affected file silcd/packet_receive.c.
5248
5249         * Raised the default connection-retry count from 4 to 7 in
5250           server.  Affected file silcd/server.h.
5251
5252         * Cancel any possible reconnect timeouts when we start the
5253           key exchange.  Affected file silcd/server.c.
5254
5255         * Do not reconnect on connection failure when SCONNECT was
5256           given.  Affected files silcd/server.[ch].
5257
5258 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5259
5260         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
5261
5262         * Fixed the NICK command to always give the unformatted
5263           nickname to the one giving the NICK command.  If unformatted
5264           nickname is cached already it will be formatted and the
5265           local entry will always get the unformatted nickname.
5266           Affected file lib/silcclient/idlist.c.
5267
5268         * Fixed some double frees from client library commands.
5269           Affected file is lib/silcclient/command.c.
5270
5271         * Fixed CUMODE command in server to assure that no one can
5272           change founder's mode than the founder itself, there was a
5273           little bug.  Affected file silcd/command.c.
5274
5275 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5276
5277         * Removed the SilcClientCommandDestructor from the client
5278           libary, it is not needed anymore.  Affected files are
5279           lib/silcclient/silcapi.h, command[_reply].[ch],
5280           client_notify, idlist.c.
5281
5282         * Fixed GETKEY command to first resolve client, and then
5283           resolve the server only if the client was not found, instead
5284           of resolving both at the same time.  Affected file is
5285           lib/silcclient/command.c.
5286
5287         * Added silc_client_start_key_exchange_cb and lookup the
5288           remote hostname and IP address before starting the key
5289           exchange with server.  The affected file is
5290           lib/silcclient/client.c.
5291
5292         * The server's public key is now saved using the IP address
5293           of the server and not the servername for the filename.
5294           The hostname public key filename is checked as an fall back
5295           method if the IP address based filename is not found.
5296
5297           Fixed the GETKEY command to save the fetched server key
5298           in correct filename.
5299
5300           Print the remote server's hostname now when new key is
5301           received during connection process.  Affected file is
5302           irssi/src/silc/core/client_ops.c.
5303
5304         * Return always our own public key to the client if it asks
5305           for it with GETKEY command.  Affected file silcd/command.c.
5306
5307         * Removed the use_auto_addr variable from default config
5308           file since it was in wrong section.  Affected file is
5309           irssi/src/config.
5310
5311         * Fixed TOPIC_CHANGE notification to not route it when it
5312           was sent using silc_server_send_notify_to_channel function.
5313           Affected file silcd/command.c.
5314
5315         * Fixed silc_server_send_notify_kicked to send the kicker's
5316           Client ID also, it was missing.  Affected files are
5317           silcd/command.c, silcd/packet_send.[ch].
5318
5319 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5320
5321         * Do not save client history information in SERVER_SIGNOFF.
5322           Fixes the bug in normal server that it does not detect
5323           the client becoming valid after the server becomes back
5324           online.  Affected file silcd/server_util.c.
5325
5326         * Added `sock_error' field  into the SilcSocketConnection
5327           context.  When error occurs during socket operation (read
5328           or write) the error is saved.  Added also new function
5329           silc_socket_get_error to return human readable socket error
5330           message.  Affected files are lib/silcutil/silcsockconn.[ch],
5331           lib/silcutil/unix/silcunixsockconn.c, and
5332           lib/silcutil/win32/silcwin32sockconn.c.
5333
5334         * The server now prints the socket error message in the
5335           signoff for client.  Affected file silcd/server.c.
5336
5337         * Fixed the `created' channel information sending from router
5338           to server in JOIN command.  Checks now whether the channel
5339           really was created or not and set it according that.
5340
5341           Fixed the JOIN command to use the client entry's current
5342           ID during the joining procedure instead of the one it sent
5343           in the command (it is checked though), since it can change
5344           between the packet processing and command processing, and
5345           would just case unnecessary pain in the client end.  Affected
5346           file silcd/command.c.
5347
5348         * Fixed a channel key payload sending to use correct channel
5349           ID when the server was forced to change the channel's ID by
5350           router.  Router sent the key payload with the old Channel ID.
5351           Affected file silcd/packet_receive.c.
5352
5353 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5354
5355         * Call silc_server_save_channel_key only if the key payload
5356           was provided in the JOIN command's command reply.  Affected
5357           file silcd/command_reply.c.
5358
5359 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5360
5361         * Fixed silc_mp_sizeinbase to return the value correctly with
5362           MPI.  Affected file lib/silcmath/mp_mpi.c.
5363
5364         * Fixed the stop_server signal to correctly stop the scheduler
5365           and gracefully stop the server when SIGTERM or SIGINT signals
5366           are received.  Affected file silcd/silcd.c.
5367
5368 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5369
5370         * Simple handling of TERM and HUP signals. Also added some log
5371           flushing call around.  Affected file is
5372           silcd/silcd.c.
5373
5374         * Fixed small bugs in silclog.c. Now buffering output will take
5375           effect after 10 seconds since startup: This will ensure that
5376           no important startup messages are lost. Also output redirection
5377           will preserve original format ([Date] [Type] message).
5378           Affected file is lib/silcutil/silclog.c.
5379
5380         * Added two options to the config file, in the logging section:
5381           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
5382           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
5383
5384 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5385
5386         * Do not print the warning about log files not being initialized
5387           more than once to avoid excess logging.  Affected file is
5388           lib/silcutil/silclog.c.
5389
5390         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5391           the SIM copying in make install in Makefile.am.pre.
5392
5393 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5394
5395         * Rewritten silclog APIs. Globally interesting changes follows:
5396           silc_log_set_files() changed to silc_log_set_file().
5397           silc_log_set_callbacks() changed to silc_log_set_callback().
5398           ROBOdoc documented silclog header file.
5399           SilcLogCb now returns bool to wether inihibit the default
5400           handler or not (to keep the old behaviour return always TRUE).
5401           The new APIs should also fix the problem of the
5402           silcd_error.log file that was written in the current directory.
5403
5404           New features:
5405           Log files streams will remain opened after silc_log_set_file()
5406           call, means less CPU usage notably on high traffic servers.
5407           File streams are now full buffered, and flushed to the disk
5408           every 5 minutes, lesses HD activity and CPU usage.
5409           Messages can be redirected, allowing admins to configure
5410           one single logfile for all server messages.
5411           the silc_log_quick global variable to activate fast-logging.
5412           Affected files lib/silcutil/silclog.[ch]
5413
5414         * Changed some code to conform new silclog APIs. Affected
5415           files are doc/example_silcd.conf.in, silcd/server.c
5416           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5417           silcd/silcd.c.
5418
5419         * Fixed a memory leak that could occur in some situations.
5420           Affected file silcd/serverconfig.c.
5421
5422 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5423
5424         * Added the silc_client_del_client to remove the client from
5425           all channels as well.  Affected file lib/silcclient/idlist.c.
5426
5427         * Fixed the client library to correctly remove the client
5428           from all channels when the client entry is being destroyed.
5429           Affected file lib/silcclient/client_notify.c, command.c.
5430
5431         * Added auto-nicking support to the client library.  If the
5432           applicatio now sets client->nickname it will be sent to the
5433           server after connecting by the library.  This way for example
5434           SILCNICK (or IRCNICK) environment variables will have effect
5435           and always change the nickname automatically to whatever
5436           it is wanted.  Affected file lib/silcclient/client.[ch].
5437
5438         * Renamed silc_server_command_bad_chars to the
5439           silc_server_name_bad_chars and moved it to the
5440           silcd/server_util.[ch].  Added also new function
5441           silc_server_name_modify_bad to return nickname that
5442           includes bad characters as new nickname without those
5443           bad characters.  This check and modify is now used in
5444           silc_server_new_client when the username is initially set
5445           as nickname, so it must be checked to be valid nickname.
5446           Affected file silcd/packet_receive.c.
5447
5448         * The nickname length is now taken from the packet for real
5449           and not trusted to strlen() since it clearly can return
5450           wrong length for nickname including bad characters.  This
5451           also applies to channel names.  Affected file silcd/command.c.
5452
5453         * Removed the lib/silcsilm/modules directory.  Modules are now
5454           compiled into the lib/silcsim.  Fixed the copying of the
5455           modules to follow symbolic links in Makefile.am.pre.
5456
5457 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5458
5459         * Fixed silc_string_regexify list creation.  Fixes bugs with
5460           BAN and INVITE commands in server.  The affected file is
5461           lib/silcutil/unix/silcunixutil.c.
5462
5463 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5464
5465         * Removed the command destructor entirely from the server's
5466           command and command reply routines.  It is not needed, and
5467           its usage was buggy and caused crashes.  Affected files are
5468           silcd/command[_reply].[ch].
5469
5470 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5471
5472         * Cancel protocol and NULL sock->protocol if timeout
5473           occurred during protocol.  Affected file silcd/server.c.
5474
5475         * Cancel protocol timeouts always before calling the final
5476           callback, to assure that after final callback is called
5477           no other state will be called for the protocol anymore.
5478           Affected file silcd/protocol.c.
5479
5480         * Print error log if incoming connection configuration could
5481           not be found.  Affected file silcd/server.c.
5482
5483         * Fixed JOIN command to correctly save the founder mode
5484           to the client on normal SILC server, when the channel
5485           was created by the router.  Affected file silcd/command.c.
5486
5487         * Fixed LIST command (hopefully) to send correct reply
5488           packets.  Affected file silcd/command.c.
5489
5490 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5491
5492         * The silc_packet_receive_process now returns FALSE if the
5493           read data was invalid packet, and TRUE if it was ok.
5494
5495           The server now checks that if unauthenticated connection
5496           sends data and its processing fails the server will close
5497           the connection since it could be a malicious flooder.
5498
5499           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5500
5501 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5502
5503         * Make sure the warning about error opening a log file is
5504           printed only once and not everytime it fails (produces
5505           too much useless log).  Affected file lib/silcutil/silclog.c.
5506
5507 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5508
5509         * Made the silc_server_daemonise() function more readable.
5510           Affected file silcd/server.c.
5511
5512         * Pid file is now optional, the user may comment it out from
5513           the config file. Removed define SILC_SERVER_PID_FILE, we
5514           don't need a default any longer.  Affected file
5515           configure.in.pre, lib/Makefile.am.pre.
5516
5517         * Make some use of the pid file. The server now dies at startup
5518           if it detects a valid pid file on his path. The server would
5519           die anyway in this circumstance, because of the bind() failure.
5520           Affected file silcd/silcd.c.
5521
5522         * No longer compiling lib/dotconf.
5523
5524 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5525
5526         * Fixed JOIN command parsing not to crash.  Affected file
5527           lib/silcclient/command.c.
5528
5529         * Fied the NICK_CHANGE notify to add the new client entry
5530           even it is resolved.  This removes an <[unknown]> nick
5531           thingy bug in the client.  Affected file is
5532           lib/silcclient/client_notify.c.
5533
5534         * Do not try to allocate 0 bytes (efence does not like it)
5535           in lib/silccore/silccomand.c when encoding payload.
5536
5537         * Do not take IRCNICK as nickname in Irssi SILC client since
5538           it is not possible to set nickname before hand connecting
5539           the server (TODO has an entry about adding auto-nicking
5540           support).
5541
5542         * Changed the silc_server_command_pending to check whether
5543           there already exists an pending entry with the specified
5544           command, command identifier and pending callback.  This is
5545           to fix IDENTIFY and WHOIS related crashes that may register
5546           multiple pending commands with same identifier.  Affected
5547           file silcd/command.c.
5548
5549         * Fixed the server to reconnect to the router even if it
5550           was already reconnecting and EOF was received.  This to
5551           fix a possibility that the server wouldn't ever try to
5552           auto-reconnect to the router.  Affected file silcd/server.c.
5553
5554 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5555
5556         * Fixed the server's password authentication to use the
5557           length of the locally saved password, and not the one
5558           sent in the packet.  Affected file silcd/protocol.c.
5559
5560         * Fixed same password authentication problem in the
5561           Authentication Payload handling routines in
5562           lib/silccore/silcauth.c.
5563
5564         * Yet another password authentication problem fixed with
5565           channel password handling in silcd/command.c.
5566
5567 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5568
5569         * If first character of string in silc_parse_userfqdn is '@'
5570           then do not parse it.  Affected file is
5571           lib/silcutil/silcutil.c.
5572
5573 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5574
5575         * Fixed minor bug in IDENTIFY command reply sending, which
5576           caused various weird problems during JOIN when it was
5577           resolving names for users.  Affected file silcd/command.c.
5578
5579 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5580
5581         * Fixed the IDENTIFY command reply sending to chech better valid
5582           clients.  It was possible to send incomplete list of replies.
5583           Affected file silcd/command.c.
5584
5585 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5586
5587         * Added silc_client_command[s]_[un]register functions now to
5588           dynamically register the commands in client library.  Removed
5589           the static table of commands.  This allows the client library
5590           to call commands without causing the application to know about
5591           what commands library has called.
5592
5593           Removed the INFO command reply kludge to detect when the command
5594           was called by library.  Now library use its own command reply
5595           function for INFO command.
5596
5597           Added function silc_client_command_call to call a command.
5598           Application can use it to call command, not access the structure
5599           directly.
5600
5601           Now all commands that are sent by the client library (not
5602           explicitly sent by application) use own command reply functions.
5603
5604           Affected files around lib/silcclient/ and in
5605           irssi/src/silc/core/.
5606
5607         * Fixed the WHOIS command reply sending to chech better valid
5608           clients.  It was possible to send incomplete list of replies.
5609
5610           Fixed the WHOIS and IDENTIFY to send the request to router
5611           if normal server did not do it and did not find any results.
5612
5613           Affected file silcd/command.c.
5614
5615 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5616
5617         * Moved the internal data from SilcClient context into its
5618           own file, not accesible to application.  Affected files
5619           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5620           and other files in client library.
5621
5622 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5623
5624         * Added doc/examples installation target in Makefile.am.pre.
5625           A patch by salo.
5626
5627 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5628
5629         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
5630           commands the found client entry will be removed from the
5631           cache, after notifying application about the error.  Affected
5632           file lib/silcclient/command_reply.c.
5633
5634         * Changed the /MSG to check for exact nickname user gave, and
5635           not let `nick' match `nick@host' if it is only one found.  Now,
5636           user must type the exact nickname (like nick@host2) even if
5637           there are no more than one same nicks found.  This is to avoid
5638           a possibility of sending nickname to wrong nickname since
5639           `nick' could match `nick@host'.  Affected file is
5640           irssi/src/core/silc-servers.c.
5641
5642 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5643
5644         * Do not print "you are now server operator" or similar when
5645           giving /away command.  Affected files are
5646           irssi/src/silc/core/client_ops.c, silc-servers.h.
5647
5648         * Made the silc_server_command_pending_error_check to send
5649           the same command reply payload it received back to the
5650           original sender of the command.  This way all arguments
5651           that was received by the server will be received by the
5652           client too.  Affected file silcd/command.c.
5653
5654         * Added the silc_idcache_add to return the created cache entry
5655           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
5656
5657         * Add global clients to expire if they are not on any channel.
5658           This is because normal server will never know if they signoff
5659           if they are not on any channel.  The cache expiry will take
5660           case of these entries.  This is done by normal servers only.
5661           The affected files are silcd/command_reply.c,
5662           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
5663
5664         * If server receives invalid ID notification for WHOIS or
5665           IDENTIFY and the ID exists in the lists, it is removed.
5666           Affected file silcd/command_reply.c.
5667
5668         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
5669           in client then client entry that it matches is searched and
5670           the nickname is printed on the screen for user.  Affected
5671           file irssi/src/silc/core/client_ops.c.
5672
5673 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5674
5675         * Use cache entry expire time in the LIST command reply to
5676           purge old entries from the cache after the LIST command
5677           reply has been received.  This way we don't have non-existent
5678           entries in the cache for too long.  Affected file is
5679           silcd/command_reply.c.
5680
5681 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5682
5683         * If we are normal server, and we've not resolved client info
5684           in WHOIS or IDENTIFY from router, and it is global client,
5685           we'll check whether it is on some channel.  If it is not
5686           then we cannot be sure about its validity and will resolve it
5687           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
5688           file silcd/command.c.
5689
5690         * Search channel by name (if possible) rather than by ID
5691           in IDENTIFY command's command reply.  Affected file is
5692           silcd/command_reply.c.
5693
5694 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5695
5696         * Distribute to the channel passphrase in CMODE_CHANGE notify.
5697           Updated specs and implemented it.  Affected file silcd/command.c,
5698           silcd/packet_send.c and silcd/packet_receive.c.
5699
5700         * Implemented the <founder auth> payload handling in the JOIN
5701           command.  If provided all conditions for channel joining
5702           except requirement to provide correct passphrase can be
5703           overrided by the channel founder.  Updated the protocol specs.
5704           Affected file silcd/command.c.
5705
5706           Added support for founder auth in JOIN command in client
5707           library.  Fixed the parsing of the JOIN command now to support
5708           all options as they should be.  The affected file is
5709           lib/silcclient/command.c.
5710
5711         * Optimized the WHOIS and IDENTIFY commands to send the request
5712           to router only if it includes nicknames or other names.  If
5713           they include only IDs then check the local cache first before
5714           routing.  Affected file is silcd/command.c.
5715
5716         * Added channels topic announcements.  Affected file is
5717           silcd/packet_receive.c and silcd/server.c.
5718
5719         * Fixed the silc_server_send_notify_topic_set to really destine
5720           the packet to channel.  Affected file silcd/packet_send.c.
5721
5722         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
5723           library.  Affected file lib/silcclient/client_notify.c.
5724
5725         * Added UMODE announcements.  Affected file silcd/server.c.
5726
5727 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5728
5729         * Memory leak fixes in:
5730
5731           lib/silcutil/silcsockconn.c
5732           lib/silcske/silcske.c
5733           lib/silcske/groups.c
5734           lib/silccrypt/rsa.c
5735           lib/silccrypt/silcpkcs.c
5736           lib/silccore/silccommand.c
5737           lib/silccore/silcidcache.c
5738           silcd/idlist.c
5739           silcd/packet_send.c
5740           silcd/command.c
5741
5742         * ROBOdoc documented the lib/silcske/groups.h file and a
5743           bit changed the interface for better.
5744
5745 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5746
5747         * Update the client entry context in the ID cache after
5748           nick change.  Affected file lib/silcclient/command.c.
5749           Fixes the CUMODE command when regaining founder privileges,
5750           and a little WHOIS problem.
5751
5752         * Fixed silc_net_gethostbyname to correctly call the
5753           inet_ntop.  Affected file lib/silcutil/silcnet.c.
5754
5755 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5756
5757         * Added IPv6 support checking to the configure.in.pre, added
5758           also --enable-ipv6 option to override the check.  Affected
5759           file configure.in.pre.
5760
5761         * The silc_thread_create now calls the start function
5762           directly if threads support is not compiled in.  Removes
5763           ugly #ifdef's from generic code.  Affected files are
5764           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
5765
5766         * Added silc_net_gethostby[name/addr]_async to asynchronously
5767           resolve.  Affected files are lib/silcutil/silcnet.[ch].
5768
5769         * Added support for rendering IPv6 based server, client and
5770           channel IDs.  Affected file lib/silcutil/silcutil.c.
5771
5772         * Added support for creating IPv6 based server IDs.  Affected
5773           file is silcd/serverid.c.
5774
5775 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5776
5777         * Added silc_net_gethostby[addr/name] into the
5778           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
5779           routines.  Added silc_net_is_ip[4/6].  Affected file is
5780           lib/silcutil/unix/silcunixnet.c.  All routines that take
5781           address as argument now supports both IPv4 and IPv6 addresses.
5782
5783 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5784
5785         * Fixed LIST command reply sending in server.  Affected file
5786           silcd/command.c.
5787
5788         * Server now sends the kicker's client ID in the KICK notify
5789           to the kicked client.  Affected file silcd/command.c.
5790
5791         * The client library now parses the kickers client ID and
5792           UI displays it.  Affected files lib/silcclient/client_notify.c
5793           and irssi/src/silc/core/silc-channels.c, module-formats.c.
5794
5795         * Made all payload parsing function prototypes consistent.
5796           They all take now const unsigned char * and uint32 pair as
5797           the payload data instead of SilcBuffer.  Changes all around
5798           the source tree.  Other unsigned char* -> const unsigned char*
5799           changes around the tree as well.
5800
5801         * Optimized SFTP client and server packet sending not to
5802           allocate new buffer for each packet but to recycle the
5803           first allocated buffer.  Affected files are
5804           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
5805
5806         * Optimized the SFTP client to use SilcList instead of
5807           SilcDList for requests, because it is faster.  Affected file
5808           is lib/silcsftp/sftp_client.c.
5809
5810         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
5811           into lib/silccore/silcid.[ch].
5812
5813           Renamed silcpayload.[ch] into silcargument.[ch].
5814
5815 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5816
5817         * If client entry is deleted with active key agreement
5818           session, abort the session.
5819
5820           The silc_client_abort_key_agreement now calls the completion
5821           callback with new SILC_KEY_AGREEMENT_ABORTED status.
5822
5823           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
5824           idlist.c.
5825
5826 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5827
5828         * Don't use __restrict in older GCC's.  Affected file is
5829           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
5830
5831         * silc_net_localhost now attempts to reverse lookup the
5832           IP/hostname.  Affected file lib/silcutil/silcnet.c.
5833
5834         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
5835           command.  It can be used to gain founder privileges at
5836           the same time when joining the channel.
5837
5838           Defined that the SILC_NOTIFY_TYPE_KICKED send the
5839           kicker's client ID as well.  Updated protocol specs.
5840
5841           Defined that the server must send SILC_COMMAND_IDENTIFY
5842           command reply with error status to client who sent
5843           private message with invalid client ID.
5844
5845           Updated the protocol specification.
5846
5847         * Added silc_server_send_command_reply to send any
5848           command reply.  Affected file silcd/packet_send.[ch].
5849
5850         * Added silc_id_payload_encode_data to encode ID payload
5851           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
5852
5853         * The server now send IDENTIFY command reply with error
5854           status if client ID in private message is invalid.  Affected
5855           file silcd/packet_receive.c.
5856
5857         * Save the server key file with server's IP address in
5858           the filename instead of hostname.  The affected file is
5859           irssi/src/silc/core/client_ops.c.
5860
5861 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5862
5863         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
5864           A patch by Sunfall.
5865
5866         * Added libtool support for compiling shared objects in
5867           lib/silcsim.  Affected file configure.in.pre and
5868           lib/silcsim/Makefile.am.  Original patch by cras.
5869
5870 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5871
5872         * Pid file configuration, and server's config file fixes
5873           patch by toma.  Updated CREDITS file.
5874
5875 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5876
5877         * Fixed silc_client_channel_message to not try to decrypt
5878           the message twice if it resolved the destination client
5879           information.  This could cause of dropping one channel
5880           message.  Affected file lib/silcclient/client_channel.c.
5881
5882 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5883
5884         * Added silc_client_run_one into lib/silcclient/silcapi.h and
5885           lib/silcclient/client.c. This function is used when the SILC
5886           Client is run under some other scheduler, or event loop or
5887           main loop.  On GUI applications, for example this may be
5888           desired to used to run the client under the GUI application's
5889           main loop.  Typically the GUI application would register an
5890           idle task that calls this function multiple times in a second
5891           to quickly process the SILC specific data.
5892
5893 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5894
5895         * Fixed silc_server_drop() for dropping the supplementary
5896           groups as well, this could cause a security hole on some
5897           systems.
5898
5899 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5900
5901         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
5902           johnny.
5903
5904         * Write PID file after dropping privileges.  Added -F option
5905           to run server on foreground.  A patch by debolaz.
5906           Affected files silcd/server.c, silcd/silcd.c.
5907
5908         * Fixed MOTD to return the MOTD file server name.  Affected
5909           file silcd/command.c.
5910
5911         * Added INFO command reply handling to the Irssi SILC Client.
5912           Affected file irssi/src/silc/core/client_ops.c.
5913
5914 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5915
5916         * Fixed the silc_idcache_list_* routines to really support
5917           the dynamic list.  Fixes a crash.  Affected file is
5918           lib/silccore/silcidcache.c.
5919
5920         * Fixed the LIST command reply to really call LIST command's
5921           pending callbacks.  Affected file silcd/command_reply.c.
5922
5923 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5924
5925         * Update conn->local_entry->nickname after giving NICK
5926           command.  Affected file lib/silcclient/command.c.
5927
5928 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
5929
5930         * Added the [pid] option to the silcd configuration file
5931
5932           Affected files: serverconfig.[ch] and silcd.c
5933
5934 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5935
5936         * Save fingerprint in WHOIS command reply in server.
5937           Affected file silcd/command_reply.c.
5938
5939         * Fixed NICK commands pending callback registration.
5940           Affected file lib/silcclient/command.c.
5941
5942 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5943
5944         * Use ++server->cmd_ident when sending commands in server,
5945           instead of random number.  Affected file silcd/command.c.
5946
5947         * Fixed GETKEY command reply to call actually GETKEY pending
5948           command callbacks.  Affected file silcd/command_reply.c.
5949
5950         * A bit stricter check for nicknames.  Check for same nickname
5951           in NICK command also.  Affected file silcd/command.c.
5952
5953         * Do not call INFO command everytime client ID changes, only
5954           during first connecting.  Affected file lib/silcclient/client.c.
5955
5956         * Set the new nickname only after successful command reply for
5957           NICK command is returned by server.  Affected file
5958           lib/silcclient/command.c.
5959
5960         * Remove nicknames from nicklist during server_signoff notify.
5961           Should fix /NAMES bit more.  The affected file is
5962           irssi/src/silc/core/silc-channels.c.
5963
5964         * Added `fingerprint' field to the SilcIDListData in the
5965           silcd/idlist.h to hold the fingerprint of the client's
5966           public key.
5967
5968           Send the fingerprint of the client's public key in WHOIS
5969           command reply.
5970
5971           Affected files silcd/command.c, and silcd/idlist.[ch].
5972
5973         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
5974           create fingerprint from given data.
5975
5976         * Show the fingerprint of the client's public key in WHOIS.
5977           Affected files irssi/src/module-formats.[ch] and
5978           irssi/src/silc/core/client_ops.c.
5979
5980         * Format the multiple same nicknames also during JOIN and
5981           NICK_CHANGE notifys.  Affected file is
5982           lib/silcclient/client_notify.c.
5983
5984         * Do not print error on screen for invalid private message
5985           payload since it can come if someone is sending private
5986           messages with wrong key.  Affected file
5987           lib/silccore/silcprivate.c.
5988
5989         * Fixed multiple concurrent /PING crash.  Affected file
5990           lib/silcclient/command.c.
5991
5992         * Changed the wrong ID encoding.  All IP addresses must be
5993           in MSB first order in encoded format.  They were encoded
5994           wrong and was in LSB format.  Affected files are
5995           silcd/serverid.c, lib/silcutil/silcutil.c.
5996
5997         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
5998
5999         * Call the `connect' client operation through the scheduler
6000           in case of error.  Affected file lib/silcclient/client.c.
6001
6002         * Call the `failure' client operation even if the error
6003           occurred locally during a protocol.  Affected file is
6004           lib/silcclient/protocol.c.
6005
6006         * Added support of sending LIST command to router from normal
6007           server.  This way normal server can get list of all channels
6008           in the network too.  Fixed the channel list sending in the
6009           server too.  Affected files are silcd/command.c, and
6010           silcd/command_reply.[ch].
6011
6012         * Added silc_server_update_channels_by_server and
6013           silc_server_remove_channels_by_server.  They are used during
6014           disconnection of primary router and in backup router protocol.
6015           Affected file silcd/server_util.[ch], silcd/server.c and
6016           silcd/server_backup.c.
6017
6018         * Fixed channel adding to global list in IDENTIFY command
6019           reply in server.  Affected file silcd/command_reply.c.
6020
6021 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6022
6023         * If the incoming packet type is REKEY or REKEY_DONE process
6024           that packet always synchronously.  Fixes yet another MAC
6025           failed error on slow (dialup) connections.  Affected file
6026           lib/silcclient/client.c and silcd/server.c.
6027
6028 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6029
6030         * Call check_version SKE callback for initiator too.  Affected
6031           file lib/silcske/silcske.c.
6032
6033         * Implemented fix for security hole found in the SKE that was
6034           fixed in the specification few days back; the initiator's
6035           public key is now added to the HASH value computation.
6036           Added backwards support for the old way of doing it too, for
6037           old clients and old servers.  Affected file is
6038           lib/silcske/silcske.c.
6039
6040         * Enabled mutual authentication by default in SKE.  If initiator
6041           is not providing mutual authentication the responder will
6042           force it.  This will provide the proof of posession of the
6043           private key for responder.  The affected files are
6044           lib/silcclient/protocol.c and silcd/protocol.c.
6045
6046         * Do not cache anymore the server's public key during SKE.
6047           We do mutual authentication so the proof of posession of
6048           private key is done, and if the server is authenticated in
6049           conn auth protocol with public key we must have the public
6050           key already.  Affected file silcd/protocol.c.
6051
6052         * Added new global debug variable: silc_debug_hexdump.  If
6053           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6054           file lib/silcutil/silclog.[ch].
6055
6056         * Fixed compilation warning due to char * -> const char *.
6057           Affected files lib/silcutil/silcnet.h, and
6058           lib/silccore/silcauth.[ch].
6059
6060 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6061
6062         * Fixed CMODE command when new channel key was created.  If
6063           the creation failed the old key was removed.  Next time giving
6064           same command would crash the server since the old key was
6065           freed already.  Affected file silcd/command.c.
6066
6067         * Fixed the silc_server_announce_get_channels to not crash
6068           on reconnect.  Affected file silcd/server.c.
6069
6070 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6071
6072         * Added silc_log_set_debug_string function to set a regex
6073           string to match for debug output.  Only the function names,
6074           or filenames matching the given debug string is actually
6075           printed.  This way it is possible to filter out those debug
6076           strings that user is not interested in.
6077
6078           Fixed a bug in silc_string_regexify.
6079
6080           Affected files lib/silcutil/silclog.[ch], and
6081           lib/silcutil/unix/silcunixutil.c.
6082
6083         * Changed the -d options in both server and Irssi SILC client
6084           to take the debug string as argument.  Affected files
6085           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6086
6087 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6088
6089         * Added silc_hash_babbleprint to create a Bubble Babble
6090           Encoded fingerprint.  The encoding is developed by Antti
6091           Huima (draft-huima-babble-01.txt), and it creates human
6092           readable strings out of binary data.  Affected file
6093           lib/silccrypt/silchash.[ch].
6094
6095         * Print the babble print now in addition of fingerprint as well
6096           in Irssi SILC client.  Affected files are
6097           irssi/src/fe-common/silc/module-formats.[ch],
6098           irssi/src/fe-common/silc/core/client_ops.c.
6099
6100 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6101
6102         * Fixed a security problem found in SKE.  The initiator's
6103           public key too is now added to the HASH hash value creation
6104           which is signed by the responder to create the SIGN value.
6105           This will prevent anyone in the middle to lie to the responder
6106           about the initiator's public key.  If this is done now, the
6107           man in the middle will get caught.  Updated the protocol
6108           specification.
6109
6110 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6111
6112         * Better installation directory handling.  Configure module
6113           paths and other paths automatically to example_silc* files
6114           in doc/.  A patch by toma.
6115
6116         * Fixed compiler warning from MPI library, and from SILC RNG.
6117           A patch by johnny.
6118
6119         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6120           It can be configured with ./configure.  A patch by toma.
6121
6122 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6123
6124         * Find correct make to use in prepare-clean.  A patch by
6125           toma.  Affected file prepare-clean.
6126
6127 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6128
6129         * Added irssi variables use_auto_addr, auto_bind_ip,
6130           auto_bind_port and auto_public_ip.
6131
6132         * Changed the interface for silc_client_send_key_agreement
6133           in lib/silcclient/silcapi.h
6134
6135         Affected files:
6136
6137          irssi/src/silc/core/silc-core.c
6138          irssi/config
6139          lib/silcclient/silcapi.h
6140          irssi/src/silc/core/silc-channels.c
6141          lib/silcclient/client_keyagr.c
6142          irssi/docs/help/key
6143
6144 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6145
6146         * Added silc_pkcs_public_key_compare to compare two
6147           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6148
6149         * Check that the client who set the founder mode on the
6150           channel is the same client that is giving the founder
6151           mode to itself.  It is done by comparing the saved public
6152           key (it is saved even in the authentication is passphrase).
6153           Affected file silcd/command.c.
6154
6155 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6156
6157         * Do not process packet for disconnected socket connection.
6158           Affected file lib/silccore/silcpacket.c.
6159
6160         * Process the DISCONNECT packet through scheduler in the
6161           client library.  Affected file lib/silcclient/client.c.
6162
6163         * Fixed the silc_client_packet_parse to not to increase
6164           the packet sequence number if the conn->sock and the
6165           current socket connection is not same.  This can happen
6166           for example during key agreement when the conn includes
6167           multiple socket connections (listeners).  Affected file
6168           lib/silcclient/client.c.
6169
6170         * The sender of the file transfer request now provides also
6171           the pointer (listener) for the key exchange protocol.  If
6172           the listener cannot be created then it sends empty key
6173           agreement and lets the receiver provide the listener.
6174
6175           Added `local_ip' and `local_port' arguments to the
6176           silc_client_file_send.  If they are provided they are used,
6177           if not then it will attempt to find local IP address, if
6178           not found or bind fails then the remote client will provide
6179           the listener.
6180
6181           Affected files are lib/silcclient/client_ftp.c and
6182           lib/silcclient/silcapi.h.
6183
6184         * Extended the FILE SEND command to support defining the
6185           local IP and port for key exchange listener.  They are
6186           optional.  Affected file irssi/src/silc/core/silc-servers.c.
6187
6188 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6189
6190         * Defined to WHOIS command reply the sending of fingerprint
6191           of the client's public key (if the proof of posession of the
6192           corresponding private key is verified by the server).
6193           Updated to the protocol specification.
6194
6195         * Added support of receiving the client's public key's
6196           fingerprint in command reply in client library.  Affected
6197           file is lib/silcclient/command_reply.c, and
6198           lib/silcclient/idlist.[ch].
6199
6200 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6201
6202         * Do not send over 128 chars long nickname to the server
6203           in NICK command.  Affected file lib/silcclient/command.c.
6204
6205         * Do not send over 256 chars long channel names to the server
6206           in JOIN command.  Affected file lib/silcclient/command.c.
6207
6208 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6209
6210         * Assure that silc_server_close_connection cannot be called
6211           twice for same socket context.  Affected file is
6212           silcd/server.c.
6213
6214 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6215
6216         * Send error message to application if opening file for
6217           writing during file transfer fails.  Affected file is
6218           lib/silcclient/client_ftp.c.
6219
6220           Remove all file transfer sessions for a client that we're
6221           removing from ID cache.
6222
6223           Affected file is lib/silcclient/client_ftp.c.
6224
6225         * Fixed silc_net_addr2bin to return correct address.  Affected
6226           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6227
6228         * Fixed file transfer session removing on signoff notify.
6229           Affected file irssi/src/silc/core/silc-servers.c.
6230
6231         * Added the SilcClientFileError to be returned in the monitor
6232           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
6233           Affected file lib/silcclient/silcapi.h.
6234
6235 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6236
6237         * Fixed a crash in silc_client_ftp_free_sessions and
6238           silc_client_ftp_session_free_client.  Affected file
6239           lib/silcclient/client_ftp.c.
6240
6241         * Added `disabled' field in the SilcChannelEntry in the server
6242           to indicate if the server entry is disabled.  Affected file
6243           silcd/idlist.h, silcd/command[_reply].c.
6244
6245         * SILC server adds now /var/run/silcd.pid everytime it is
6246           started.  Affected file silcd/silcd.c.
6247
6248         * Added silc_server_packet_send_clients to send a packet to
6249           the provided table of client entries.  Affected file
6250           silcd/packet_send.[ch].
6251
6252         * Fixed a crash in client resolving in client_prvmsg.c in
6253           client library.  Affected file lib/silcclient/client_prvmsg.c.
6254
6255         * Do not actually remove the client directly from ID cache
6256           during SERVER_SIGNOFF, but invalidate it.  This way we
6257           preserve the WHOWAS info for the client.  Affected file
6258           silcd/server_util.c.
6259
6260         * Fixed SERVER_SIGNOFF notify handling in the server.  The
6261           server is now able to process incoming SERVER_SIGNOFF notify
6262           for a server that it doesn't even know about.  It will remove
6263           the clients provided in the notify.  Affected file
6264           silcd/packet_receive.c.
6265
6266         * Check for partial packet in data queue after every packet that
6267           was found from the queue.  Return and wait for more data if
6268           there is partial data in queue.  Affected file is
6269           lib/silccore/silcpacket.c.
6270
6271 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6272
6273         * Added SilcClietFileError enum to indicate error in
6274           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
6275           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
6276           Affected files lib/silcclient/silcapi.h and
6277           lib/silcclient/client_ftp.c.
6278
6279         * Check that newsize in silc_buffer_realloc is larger than
6280           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
6281
6282         * Added better monitor of file transfers.  It now monitors
6283           key agreement protocol during the file transfer too.  Added
6284           error reporting too.  Affected files
6285           irssi/src/silc/core/silc-servers.c,
6286           irssi/src/fe-common/silc/module-formats.[ch].
6287
6288         * Wrote a help file for FILE command.
6289
6290         * Added silc_rng_global_get_byte_fast to get not-so-secure
6291           random data as fast as possible.  Random data is read from
6292           /dev/urandom if available and from the SILC RNG if not
6293           available.  It is used in padding generation.  Affected file
6294           lib/silccrypt/silcrng.[ch].
6295
6296         * All packets in client library are now processed synchronously.
6297           Optimized packet processing a lot.  Affected file
6298           lib/silcclient/client.c.
6299
6300         * All server connection packets are processing synchronously
6301           now in server, to optimize packet processing.  Affected file
6302           silcd/server.c.
6303
6304         * Include files are installed now only in Toolkit distribution
6305           if make install is given.  Affected files: all Makefile.am's.
6306
6307 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6308
6309         * Assure that silc_client_notify_by_server_resolve does not
6310           resolve the client information multiple times.  If it cannot
6311           be found by the first it cannot be found at all.  Affected
6312           file lib/silcclient/client_notify.c.
6313
6314         * Fixed WHOWAS command reply calling.  Affected file
6315           lib/silcclient/command_reply.c.
6316
6317         * Removed all references to silc_idlist_get_client from the
6318           Irssi SILC client since that call is internal call used by
6319           the library.  The Irssi SILC client will use now client
6320           retrieval functions found in silcapi.h.
6321
6322         * Fixed a bug in resolving nickname info before sending
6323           private message.  It used freed memory.  Affected file
6324           irssi/src/silc/core/silc-servers.c.
6325
6326 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6327
6328         * Assure my_channels statistics cannot go negative in server.
6329           Affected files silcd/server.c, silcd/server_util.c.
6330
6331 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6332
6333         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
6334
6335 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6336
6337         * Win32 Toolkit changes.  Affected files
6338           win32/silc.dsw, win32/libsilc/libsilc.def,
6339           win32/libsilcclient/libsilc.def,
6340           lib/silcutil/silcutil.c, and
6341           lib/sftp/sftp_fs_memory.c.
6342
6343 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6344
6345         * Added silc_net_localip to return local host's IP address.
6346           Affected file lib/silcutil/silcnet.[ch].
6347
6348         * If key exchange or rekey protocol is active for a connection
6349           parse all packets syncronously since there might be packets
6350           in packet queue that we are not able to process without first
6351           processing packets before them.  Affected file silcd/server,
6352           lib/silcclient/client.c.
6353
6354         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
6355           whether library should continue processing the packet.
6356           Affected file lib/silccore/silcpacket.h.
6357
6358         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
6359           SilcSFTPMonitorData to SFTP server to monitor various
6360           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
6361           lib/silcsftp/sftp_server.c.
6362
6363         * Added silc_file_size to return file size.  Affected file
6364           lib/silcutil/silcutil.[ch].
6365
6366         * Implemented the file transfer support for the client library.
6367           Added preliminary support for simple client to client one-file
6368           transmission.  Affected file lib/silcclient/client_ftp.c,
6369           lib/silccilent/client.[ch].
6370
6371         * Added new local command FILE to the Irssi SILC Client.
6372           It is used to perform the file transfer.  It has subcommands
6373           SEND, RECEIVE, SHOW and CLOSE.  Affected files
6374           irssi/src/silc/core/client_ops.c,
6375           irssi/src/silc/core/silc-server.[ch].
6376
6377 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6378
6379         * Relay the SILC_PACKET_FTP in the server.  Affected files
6380           silcd/server.c and silcd/packet_receive.c.
6381
6382 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6383
6384         * Renamed silc_file_read and silc_file_write to functions
6385           silc_file_readfile and silc_file_writefile.  Added function
6386           silc_file_open and silc_file_close.  Affected files
6387           lib/silcutil/silcutil.[ch].
6388
6389 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6390
6391         * Resolve the client info when received private message or
6392           channel message for a client which nickname we don't know.
6393           Affected files lib/silcclient/client_prvmsg.c and
6394           lib/silcclient/client_channel.c.
6395
6396         * Do not crash in /KEY if client is not connected.  Affected
6397           file irssi/src/silc/core/silc-channels.c.
6398
6399         * Added SilcClientStatus field to the SilcClientEntry in the
6400           lib/silcclient/idlist.h.
6401
6402           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6403           is incomplete and is being resolved, it won't be resolved
6404           twice.
6405
6406           Make sure also that USERS command reply does not resolve
6407           twice information.  Affected file is
6408           lib/silcclient/command_reply.c.
6409
6410           Make sure that silc_client_get_clients_by_list does not
6411           resolve twice same information.
6412
6413         * Check for valid client->id in the silc_server_free_client_data.
6414           Affected file silcd/server.c.
6415
6416         * Fixed /GETKEY nick@server not to crash if the server entry
6417           is not found.  Affected file lib/silcclient/command.c.
6418
6419         * Fixed the silc_server_check_cmode_rights to check the
6420           requested modes correctly.  Affected file silcd/command.c.
6421
6422 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6423
6424         * Better checks for non-printable chars in nick added.
6425           Affected file silcd/command.c.
6426
6427 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6428
6429         * Call the silc_server_udpate_servers_by_server in the
6430           primary router that comes back online in the backup resuming
6431           protocol.  Otherwise it routes packets wrong.  Affected file
6432           silcd/server_util.[ch], silcd/server_backup.c.
6433
6434 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6435
6436         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6437           lib/silcutil/silcbuffmt.[ch].
6438
6439         * Redefined the SILC packet header to include the padding
6440           length.  Affected file lib/silccore/silcpacket.[ch].
6441
6442         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6443           length for maximum padding up to 128 bytes).  Affected
6444           file lib/silccore/silcpacket.h.
6445
6446         * Removed all backwards support for old 0.5.x MAC thingies.
6447           The SILC packet header change makes it impossible to be
6448           backwards compatible.
6449
6450         * Send the ENDING packet with timeout in the backup resuming
6451           protocol.  This is to assure that all routers has connected
6452           to the primary router.  Affected file silcd/server_backup.c.
6453
6454         * Changed the RNG to take the first IV from random data.  It
6455           used to take it from zero actually.  Changed the RNG also
6456           to use /dev/urandom during session.  /dev/random is used
6457           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6458
6459 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6460
6461         * Changed the SILC packet header to have the first two bytes
6462           (the packet length) encrypted.  Affected files aroung the
6463           code tree, lib/silccore/silcpacket.[ch].  Removed the
6464           SilcPacketCheckDecrypt callback.  It is not needed anymore
6465           since the silc_packet_receive_process will determine now
6466           whether the packet is normal or special.
6467
6468         * Implemented the unidirectional MAC keys.  Affected files
6469           lib/silcske/silcske.c, silcd/protocol.c and
6470           lib/silcclient/protocol.c.
6471
6472         * Implemented the packet sequence number to the MAC computation.
6473           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6474           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6475           lib/silcclient/protocol.c.
6476
6477 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6478
6479         * Allow backup router to announce servers.  All servers
6480           announced by backup router are added to the global list
6481           automatically.  Update hte server's socket to our primary
6482           router also when backup router announces a server.
6483           Affected file silcd/packet_receive.c.
6484
6485         * Do not update the client->router in the function
6486           silc_server_udpate_clients_by_server if the client is on
6487           global list.  We might fail to find any specific server
6488           for locally connected clients and local cell clients.  They
6489           should still use the `from' and not `to' as client->router.
6490           This fixes backup router resuming protocol.  Affected file
6491           silcd/server_util.c.
6492
6493         * Decrease channel statistics count only if the channel
6494           deletion worked.  Affected files are silcd/server.c and
6495           silcd/server_util.c.
6496
6497         * Added silc_server_update_servers_by_server to update origin
6498           of all server entries.  Used during backup router protocol.
6499           Affected files silcd/server_util.[ch], silcd/server.c. and
6500           silcd/backup_router.c.
6501
6502         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6503           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6504           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6505           lib/silccrypt/silchmac.c.
6506
6507 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6508
6509         * Assure that router cannot reroute the same channel message
6510           to the sender.  Affected file silcd/packet_receive.c.
6511
6512 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6513
6514         * Made better checks that the channel message is not sent
6515           to the router it came from.  Affected file is
6516           silcd/packet_send.c.  Fixed memory leak too.
6517
6518         * Announce informations for incoming router connection, but
6519           only after checking if it is replaced by backup router.
6520           Affected file silcd/packet_receive.c.
6521
6522 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6523
6524         * Fixed the backup resuming protocol to work in multiple
6525           router environment.  Affected file silcd/server_backup.c.
6526
6527         * Route packet only to one router in the function
6528           silc_server_packet_send_to_channel.  Affected file is
6529           silcd/packet_send.c.
6530
6531         * Fixed silc_server_send_notify_dest to set the broadcast
6532           flag.  Fixed the silc_server_send_notify_topic to actually
6533           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6534           Affected file silcd/packet_send.c.
6535
6536         * Changed the SFTP Filesystem interface.  Changed the
6537           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6538           the filesystem operation function.  The SilcSFTPFilesystem
6539           is now a context that is allocated by all filesystem allocation
6540           functions and it already includes the operations structure
6541           and filesystem specific context.  It is given as argument
6542           now to the silc_sftp_server_start.  This made the interface
6543           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6544           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6545
6546 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6547
6548         * Changed the backup router adding and getting interfaces
6549           in the server.  The router that will be replaced by the
6550           specified backup router is now sent as argument.  Affected
6551           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6552           silcd/server.c.
6553
6554         * Added silc_net_addr2bin_ne to return the binary form of
6555           the IP address in network byte order.  Affected files
6556           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6557
6558 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6559
6560         * Check for existing server ID in silc_server_new_server
6561           and in silc_server_connect_to_router_final and remove the
6562           old entry if it exists.  Affected file silcd/packet_receive.c,
6563           silcd/server.c.
6564
6565         * Send the channel message always to only one router, either
6566           in upstream or downstream.  Affected file is
6567           silcd/packet_send.c.
6568
6569 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6570
6571         * Wrote the definition of the backup resuming protocol to the
6572           protocol specification.
6573
6574         * Removed one redundant channel key generation from normal
6575           server during joining procedure.  Removed one redundant
6576           channel key sending from server to router during joining
6577           procedure.  Affected file silcd/command.c.
6578
6579         * Made minor bugfixes to the backup router resuming protocol.
6580           Affected file silcd/server_backup.c, server.c.
6581
6582 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6583
6584         * Added --disable-asm configuration option.  Affected files
6585           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6586           by salo.
6587
6588         * Implemented the backup resuming protocol that is used to
6589           resume the primary router position in the cell after the
6590           primary router comes back online.  Affected files
6591           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6592           and silcd/server_util.[ch].
6593
6594 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6595
6596         * Sleep two (2) seconds after sending QUIT command to server.
6597           Affected file lib/silcclient/command.c.
6598
6599         * Assure that if outgoing data buffer is pending do not force
6600           send any data.  Affected file silcd/packet_send.c.
6601
6602         * Assure that if outgoing data buffer is pending do not force
6603           send any data.  Affected file lib/silcclient/client.c.
6604
6605         * Implemented the backup router support when the primary router
6606           goes down.  The servers and routers can now use the backup
6607           router as new primary router without loosing connectivity.
6608
6609 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6610
6611         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6612           in the server to indicate disabled entry.  All data read
6613           from the connection will be ignored and no data is sent
6614           for entry that is disabled.  Affected files are
6615           silcd/idlist.h, silcd/server.c.
6616
6617 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6618
6619         * Created SFTP client and server test programs in the
6620           lib/silcsftp/tests directory.
6621
6622 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6623
6624         * Implemented memory filesystem (virtual filesystem) for
6625           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
6626           sftp_fs_memory.c.
6627
6628 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6629
6630         * Implemented the SFTP (SSH File Transfer Protocol) to the
6631           lib/silcsftp.  It includes SFTP client and SFTP server
6632           implementations.
6633
6634 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6635
6636         * Moved lib/silccore/silcprotocol.[ch] to the
6637           lib/silcutil library.
6638
6639         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
6640           take variable argument list pointer as argument.  Affected
6641           file lib/silcutil/silcbuffmt.[ch].
6642
6643         * Added silc_buffer_set function that is used to set data
6644           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
6645           Affected file lib/silcutil/silcbuffer.h.
6646
6647         * Changed various routines in the core library to use the new
6648           silc_buffer_set instead of allocating new buffer only for
6649           temporary purposes.
6650
6651         * Added 64-bit value formatting and unformatting support to the
6652           silc_buffer_[un]format routines.  Affected file is
6653           lib/silcutil/silcbuffmt.[ch].
6654
6655           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
6656           to includes/bitmove.h.
6657
6658 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6659
6660         * Fixed channel user mode saving in client library.  Affected
6661           file lib/silcclient/command[_reply].c.
6662
6663 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6664
6665         * Defined the file transfer to the SILC Protocol.  Added
6666           new packet type SILC_PACKET_FTP and defined File Transfer
6667           Payload.  The mandatory file transfer protocol is SFTP
6668           (SSH File Transfer Protocol).  Affected file in addition
6669           of the internet draft is lib/silccore/silcpacket.h.
6670
6671         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
6672           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
6673           is used as part of backup router protocol when the primary
6674           router of the cell is back online and wishes to resume
6675           the position as primary router.
6676
6677         * Redefined the MAC generation keys in the protocol.  The
6678           same key is not used anymore in both direction.  Both
6679           direction will now use different keys for sending and
6680           receiving.  This fixes a potential security flaw.  This
6681           change causes incompatibilities in the protocol.
6682
6683         * Redefined also the MAC computation from the packet.
6684           An packet sequence number is now added to the MAC
6685           computation.  This prevents possible replay attacks against
6686           the protocol.  This change too causes incompatibilities
6687           in the protocol.
6688
6689           Added `sequence' field to the SilcPacketContext to hold
6690           the current sequence number for the packet.
6691
6692 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6693
6694         * Added `created' field to the SilcIDListData in the file
6695           silcd/idlist.h to indicate the time when the entry was
6696           created.
6697
6698         * Added `created' field to the SilcChannelEntry too.  Affected
6699           file silcd/idlist.h.
6700
6701         * Added `creation_time' aguments to all the announcement functions
6702           in the server.  If it is provided then only the entries that
6703           was created after the provided time frame are actually
6704           announced.  Affected file silcd/server.[ch].
6705
6706         * The protocol says that the Channel ID's IP address must be
6707           based on the router's IP address.  Added check for this in
6708           the silc_server_new_channel when processing incoming New Channel
6709           Payload.  Affected file silcd/packet_receive.c.
6710
6711         * Print out the correct version with --version in SILC client.
6712           Affected file irssi/src/silc/core/silc-core.c.
6713
6714 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6715
6716         * Fixed WHOWAS command to check for completnes of the client
6717           entry always, not just when the command is coming from client.
6718           Affected file silcd/command.c.
6719
6720         * Added new function silc_server_packet_queue_purge to purge the
6721           outgoing data queue to the network.  After the function returns
6722           it is guaranteed that the outgoing packet queue is empty.
6723           Affected file silcd/packet_send.[ch].
6724
6725         * Purge the outgoing packet queue in the rekey protocol's final
6726           callback to assure that all rekey packets go to the network
6727           before quitting the protocol.  Affected file silcd/server.c.
6728
6729         * Added silc_client_packet_queue_parse as similar function as
6730           in server to the client library.  The affected file is
6731           lib/silcclient/client.c.
6732
6733 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6734
6735         * Splitted silcd/server.c and created silcd/server_util.[ch]
6736           for utility functions.
6737
6738         * Added new socket flag SILC_SF_DISABLED to indicate that the
6739           connection is open but nothing can be sent to or received from
6740           the connection.  Affected file lib/silcutil/silsockconn.[ch].
6741           The checking for disabled socket is checked in the low level
6742           silc_socket_write and silc_socket_read functions.
6743
6744 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6745
6746         * Allow only nicknames and channel names that fits into the
6747           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
6748
6749 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6750
6751         * When processing JOIN command reply in server check that if
6752           the channel exists in our global list we'll move it the local
6753           list.  Affected file silcd/command_reply.c.
6754
6755         * Fixed the check whether client is joined on the channel already
6756           in JOIN command.  Affected file lib/silcclient/command.c.
6757
6758         * Fixed the JOIN command reply to check whether the channel
6759           already exists.  Affected file lib/silcclient/command_reply.c.
6760
6761 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6762
6763         * Added silc_ske_status_string to map the SKE error numbers
6764           to readable strings.  The affected files are
6765           lib/silcske/silcske[_status].[ch].
6766
6767 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6768
6769         * Do not show the private channels on the WHOIS channel list
6770           as it is not allowed by the protocol.  The affected file is
6771           silcd/server.c.
6772
6773 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6774
6775         * Assure that the packet length digged from the actual packet
6776           is something sensible in the silc_packet_decrypt_rest_special
6777           in lib/silccrypt/silcpacket.c.
6778
6779         * Free and NULL the allocated pointer in silc_hmac_alloc if
6780           the HMAC allocation fails.  The affected file is
6781           lib/silccrypt/silchmac.c.
6782
6783         * Print the selected security properties to the log files in
6784           the server.  Affected file silcd/protocol.c.
6785
6786         * Add SKE's reference counter even if calling the completion
6787           callback manually.  Otherwise it goes negative, although it
6788           does not cause any problems.  The affected file is
6789           lib/silcske/silcske.c.
6790
6791         * Remove the client entry with short timeout after giving the
6792           KILL command.  Affected file lib/silcclient/command.c.
6793
6794         * Fixed to send error reply in WHOIS and IDENTIFY commands in
6795           case all found clients are already disconnected (WHOWAS would
6796           found them) in the server.  Affected file silcd/command.c.
6797
6798         * Update the last_receive (time of last data received) to be
6799           updated only when received private or channel message so that
6800           the idle time showed in WHOIS makes more sense.
6801
6802         * Added boolean field `valid' in to the SilcClientEntry in the
6803           client library to indicate whether the entry is valid or not.
6804           This fixes the nickname change bug on channel when changing
6805           the nickname to be same than the old (like nick to Nick) the
6806           nickname formatter doesn't set the new nick anymore to Nick@host.
6807           Affected file lib/silcclient/idlist.[ch].
6808
6809         * Now actually fixed the nickname changing on disconnection.
6810           Added new function silc_change_nick to the Irssi SILC Client.
6811           Affected file irssi/src/silc/core/client_ops.c,
6812           irssi/src/silc/core/silc-nicklist.[ch].
6813
6814 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6815
6816         * Check that the public key exists in the GETKEY command before
6817           trying to encode it.  Affected file silcd/command.c.
6818
6819         * Print some notifications on received public keys with GETKEY
6820           command in the Irssi SILC Client.  Affected files are
6821           irssi/src/fe-common/silc/module-formats.[ch],
6822           irssi/src/silc/core/client_ops.c.
6823
6824         * Use IDENTIFY command to resolve the server information in the
6825           GETKEY command instead of INFO command.  Affected file
6826           lib/silcclient/command.c.
6827
6828         * All command reply functions in the client library now calls
6829           the pending command reply callbacks even if an error has
6830           occurred.  The server has done this a long time and now it was
6831           time to move the client library to this as well.  Now all
6832           errors can be delivered back to the pending command reply
6833           callbacks if necessary.  Affected files are
6834           lib/silcclient/command[_reply].[ch].
6835
6836         * Change the nickname on disconnection back to the username
6837           because in reconnect the server will enforce it to it anyway.
6838           Affected file irssi/src/silc/core/silc-servers.c.
6839
6840         * Fixed a config file parsing bug in the Irssi SILC client.
6841           Affected file irssi/src/silc/core/clientconfig.c.
6842
6843 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6844
6845         * When printing the channel mode on JOIN, verify that the
6846           channel key and channel's HMAC are valid.  Affected file
6847           irssi/src/silc/core/client_ops.c.
6848
6849 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6850
6851         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
6852           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
6853           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
6854
6855         * Removed channel key rekey task deleting from the function
6856           silc_server_save_channel_key.  Affected file silcd/server.c.
6857           Added explicit timeout task context instead that is used to
6858           delete the task if we are registering a new task before the
6859           new task has elapsed.
6860
6861         * When channel key rekey occurs the client library now saves
6862           the old channel key for a short period of time (10 seconds) and
6863           is able to use it in case some is still sending channel
6864           messages encrypted with the old key after the rekey.  Affected
6865           file lib/silcclient/[idlist.h|client_channel.c].
6866
6867 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6868
6869         * Added check to the silc_server_new_id_real to not accept
6870           new ID if it is the sender's own ID.  Affected file is
6871           silcd/packet_receive.c.
6872
6873         * Assure that we do not announce ourself or the one we've
6874           sending our announcements when we're router and are announcing
6875           servers to our primary router.  Affected file silcd/server.c.
6876
6877         * Fixed silc_server_command_identify_check_client to assemble
6878           correct WHOIS packet.  It send corrupted WHOIS packet and
6879           caused problem with router to router connections.  Affected
6880           file silcd/command.c.
6881
6882           Fixed also silc_server_command_whois_check the same way
6883           as for the IDENTIFY command.
6884
6885         * Added new SilcIDListStatus to the server in the SilcIDListData
6886           structure.   The status now includes the current status of
6887           the entry (like registered, resolved etc.).  Affected file
6888           silcd/idlist.[ch].  Defined a bunch of different status types
6889           as well.  This replaced the old boolean registered field as well.
6890
6891           Added resolve_cmd_ident field to the SilcClientEntry structure
6892           too so that if the entry is for example being resolved so
6893           another command may attach to the same pending command reply
6894           without requiring to resolve the same entry again.  This concept
6895           should optimize the WHOIS and the IDENTIFY resolving under
6896           heavy load by taking away unnecessary resolving for entries
6897           that are being resolved already.
6898
6899           Added support for adding multiple pending commands for one
6900           command idenfier.  Affected file silcd/command[_reply].[ch].
6901
6902         * Fixed WHOIS and IDENTIFY save to remove the cache entry
6903           before deleting the data.  Otherwise the hash table will have
6904           freed data in comparison functions.  Affected file is
6905           silcd/command_reply.c.
6906
6907         * Fixed silc_idlist_replace_client_id to add the new entry to
6908           the cache with NULL nickname.  Otherwise there will be invalid
6909           memory as the nickname after the nickname is freed.  Affected
6910           file silcd/packet_receive.c.
6911
6912         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
6913           saved into wrong slots because the previous number of entries
6914           was not taken into account.  Affected file silcd/idlist.c.
6915           Fixed same thing in silc_idlist_get_clients_by_nickname too.
6916
6917         * If we are router and we receive JOIN notify to a channel that
6918           does not have any users then notified client is marked as the
6919           channel founder, as it is it.  The affected file is
6920           silcd/packet_receive.c
6921
6922         * Added to the extended hash table API's table_del_*ext functions
6923           the destructor as argument too, so that the caller can decide
6924           which destructor to use or whether to use destructor at all.
6925           Affected file lib/silcutil/silchashtable.[ch].
6926
6927         * Fixed ID Cache purging.  It actually deleted the entries from
6928           the hash table after the data was freed.  The hash table ended
6929           up comparing freed memory.  The affected file is
6930           lib/silccore/silcidcache.c.
6931
6932 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6933
6934         * Fixed Irssi SILC client's KILL command's HELP syntax.
6935
6936         * The USERS command now resolves the detailed user information
6937           if the userinfo field is missing.  Affected file is
6938           lib/silcclient/command_reply.c.
6939
6940         * Do not print error in silc_file_read if the read file does
6941           not exist.  Just silently return NULL.  Affected file is
6942           lib/silcutil/silcutil.c.
6943
6944         * Fixed the silc_log_output to not wine about NULL filename
6945           and to not create some bogus " " filename.  Affected file is
6946           lib/silcutil/silclog.c.
6947
6948 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6949
6950         * Fixed various printing bugs on the user interface in the
6951           Irssi SILC Client.  Minor changes that were forgotten from
6952           the release.
6953
6954 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6955
6956         * Fixed the configure.in.pre and the compilation and distribution
6957           environment to support the new autoconf 2.52.  That version is
6958           now required to compile the CVS trunk.
6959
6960 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6961
6962         * Renamed function silc_parse_nickname to silc_parse_userfqdn
6963           to generally parse user@fqdn format strings.  Affected file
6964           lib/silcutil/silcutil.c.
6965
6966         * Added nickname_format and nickname_force_format fields to the
6967           SilcClientParams structure.  The first one defines the format
6968           for the nicknames that the library will enforce if the receives
6969           multiple same nicknames.  The second one is boolean value and
6970           can be used to force the library to always enforce the format
6971           to the nicknames regardles whether there are multiple nicknames
6972           or not.  This configurable formatting was employed to flexibly
6973           support accessing multiple nicknames from the user interface.
6974           The userinterface can now set the nicknames to what ever format
6975           they prefer.  Affected file lib/silcclient/silcapi.h.
6976
6977           Added function silc_client_nickname_format to the file
6978           lib/silcclient/idlist.c.  It performs the nickname formatting.
6979
6980           Added new field `hostname´ to the SilcClientEntry context.
6981           It holds the hostname of the client.  Affected file is
6982           lib/silcclient/idlist.h.
6983
6984         * Irssi SILC Client sets the nicknames in nick@hostn format.
6985           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
6986           irssi/src/silc/core/silc-core.c.
6987
6988           The WHOIS printing now also shows both the real nickname and
6989           the formatted nickname so that user knows how to access the
6990           user if there are multiple same nicknames cached.  Affected
6991           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
6992           printing formatting too to take the hostname now as a separate
6993           argument.  The Affected file is
6994           irssi/src/fe-common/silc/modules-formats.[ch].
6995
6996         * Changed the silc_client_get_clients_local to accept the formatted
6997           nickname as argument.  It accepts the real nickname too but the
6998           formatted nickname can be used to find the true entry from
6999           multiple entries.  Affected file lib/silcclient/silcapi.h and
7000           lib/silcclient/idlist.c.
7001
7002         * Added nickname_format_parse field to the SilcClientParams.
7003           It is a callback function provided by the application to parse
7004           the nickname out of the formatted nickname string. The library
7005           calls it to get the nickname from the formatted string. Since
7006           the application generally knows better the format of the nickname
7007           string it parses it instead of the library, even though library
7008           encodes the formatted string.  If the callback function is not
7009           provided then the library will use the string as is.  The
7010           affected file is lib/silcclient/silcapi.h.
7011
7012         * All the nickname strings passed to the client library in
7013           commands are now expected to be formatted nickname strings.
7014           If the command does not support the formatted nickname string
7015           it will assume that the sent string is the actual nickname.
7016           Affected file lib/silcclient/command.c.
7017
7018 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7019
7020         * Added public key authentication support to OPER and SILCOPER
7021           commands in the client library.  Affected file is
7022           lib/silcclient/command.c.
7023
7024 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7025
7026         * Changed the get_auth_methdod client operation to be asynchronous.
7027           It can be async if the application resolves the authentication
7028           method from the server during the negotiation.  Added new
7029           SilcGetAuthMeth completion callback that the application will
7030           call after resolving the authentication method.
7031
7032           Added function silc_client_request_authentication_method that
7033           the application can use to resolve the authentication method
7034           from the server.  Added also SilcConnectionAuthRequest callback
7035           that the library will call after the server has replied.  The
7036           application can call this function if it does not know the
7037           current authentication method.
7038
7039           Affected files are lib/silcclient/client.c and
7040           lib/silcclient/silcapi.h.
7041
7042         * The Irssi SILC client now automatically resolves the authentication
7043           method incase any configuration information is not present (and
7044           currently there never is).  The affected file is
7045           irssi/src/silc/core/client_ops.c.
7046
7047         * Fixed public key authentication from the client library.
7048           Affected file lib/silcclient/protocol.c.  Changed also the
7049           protocol specification about the public key authentication in
7050           the connection authentication protocol.  The actual data to be
7051           signed is now computed with a hash function before signing.
7052
7053         * Fixed the public key authentication from the server as well.
7054           Affected file silcd/protocol.c.
7055
7056         * Removed the mlock()'s from the memory allocation routines.
7057           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7058           not check anymore for the mlock().  Affected file is
7059           configure.in.pre.
7060
7061         * Fixed USERS command in server to allow the execution of the
7062           command for private and secret channels if the client sending
7063           the command is on the channel.  Affected file silcd/command.c.
7064
7065         * Fixed silc_client_get_clients_local to return the clients
7066           count correctly.  It could return wrong value.  Affected file
7067           lib/silcclient/idlist.c.
7068
7069 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7070
7071         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7072           types.  The assembler optimizations seemed not to like 64-bit
7073           data types.  The assmebler optimizations thus are now enabled
7074           also for BSD systems as opposed to only enable them for Linux.
7075
7076         * Do not check for threads at all on BSD systems.  Affected
7077           file configure.in.pre.
7078
7079         * Removed -n and -h options from the Irssi SILC Client since
7080           they are not used in silc.
7081
7082         * Fixed the prime generation to assure that the first digit
7083           of the generated random number is not zero since our conversion
7084           routines does not like number strings that starts with zero
7085           digit.  If zero digit is seen the random number is regenerated.
7086           This caused some corrupted RSA keys when the zero first digit
7087           was met.  Affected file lib/silcmath/silcprimegen.c.
7088
7089 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7090
7091         * Fixed WIN32 configuration in the ./configure script.
7092           Fixed to include xti.h on environments that has it.
7093           Patches by Carsten Ilchmann and andrew.
7094
7095 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7096
7097         * Changed the silc_id_create_client_id to be collision
7098           resistant.  It is now assured that there cannot be created
7099           two same client ID's.  I suspect that some weird bugs in
7100           the server were actually caused by duplicate Client IDs.
7101           Affected file silcd/serverid.[ch].  A router receiving
7102           new ID now also assures and informs the sending server
7103           if the ID caused collision.
7104
7105         * Changed the silc_id_create_channel_id to also assure that
7106           there are no collisions.
7107
7108 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7109
7110         * Statement about ignoring the Mutual Authentication flag when
7111           performing rekey with PFS was a bit misleading.  It is ignored
7112           if it was set in the initial negotiation, it cannot be even
7113           set in the rekey.  Fixed in the ke-auth draft.  Started the
7114           new versions of the protocol drafts in the doc/.
7115
7116 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7117
7118         * Fixed a bug in silc_client_command_identify_save when saving
7119           new channel information.  The channel name was no duplicated
7120           and caused crash on exit.  Affected file is
7121           lib/silcclient/command_reply.c.
7122
7123 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7124
7125         * Fixed the getkey command handling in the server.  Send just
7126           empty OK reply to the sender if the key could not be fetched
7127           (but everything else was ok, like the key just was not available).
7128           Changed the public key parameter to optional in the protocol
7129           specs so that empty OK reply can be sent.  Affected file
7130           silcd/command.c.
7131
7132           Added a message to Irssi SILC client to tell to user if the
7133           server did not return a public key.
7134
7135 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7136
7137         * Fixed a channel key regeneration bug.  It registered new
7138           timeout tasks exponentially until all system resources were
7139           used.  Affected file silcd/server.c.
7140
7141 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7142
7143         * Added the SILC Document generator to the scripts/silcdoc.
7144           It can be used to generate the Toolkit Reference Manual out
7145           of the source tree.  Internally it will also use the RoboDoc
7146           generator now imported in util/robodoc.
7147
7148 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7149
7150         * Added couple of return's in rekey protocol if error orccurred
7151           during the protocol.  The execution must be terminated.
7152           Affected file silcd/protocol.c.  Also, terminate the protocol
7153           always with timeout.
7154
7155 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7156
7157         * The client's Client ID was created initally from the wrong
7158           nickname (it could have been in format nick@host) in the
7159           silc_server_new_client.  Affected file silcd/packet_receive.c
7160
7161 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7162
7163         * Added some SILC_LOG_ERROR's to various error conditions
7164           if client could not be added to ID cache.  Affected files
7165           silcd/packet_receive.c and silcd/server.c.
7166
7167         * When client's sock->user_data is freed, NULL also the
7168           client->router and client->connection pointers.  Added check
7169           for these pointers being NULL to various places around the
7170           code.  Affected file silcd/server.c.
7171
7172         * Added client->data.registered == TRUE checks to various
7173           places around the code to assure that unregistered client's
7174           are not handled when it is not allowed.  Affected file
7175           silcd/server.c.
7176
7177         * Added `bool registered' fields to all
7178           silc_idlist_[server|client]_get_* routines to indicate whether
7179           the fetched client needs to be registered or not.  Affected
7180           file silcd/idlist.[ch].
7181
7182         * Add your own entry as registered to the ID cache in the
7183           server.  Affected file server.c.
7184
7185         * Fixed a bug in silc_server_new_server.  The SilcServer was
7186           set as the new server's context instead of SilcServerEntry.
7187           This naturally caused some weird bugs.
7188
7189         * Added "updated" field the SilcChannelEntry which indicates
7190           the time since the channel entry was last accessed.  This
7191           can be used to determine whether it is necessary to
7192           announce the channel after backup resuming protocol.
7193           Affected files silcd/idlist.[ch].
7194
7195 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7196
7197         * Do not delete the channel rekey task when adding it
7198           for in silc_server_create_channel_key.
7199
7200         * Changed the silc_server_create_channel_key to return
7201           TRUE or FALSE to indicate the success of the channel key
7202           creation.
7203
7204 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7205
7206         * Fixed MSVC++ project files and added missing files to
7207           Makefiles under win32/.
7208
7209 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7210
7211         * Do not add TCP_NODELAY flag if the operating system
7212           does not have it defined.  Affected files are
7213           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7214
7215         * Fixed buffer overflow from Irssi SILC Client.  Affected
7216           file irssi/src/fe-common/core/themes.c.
7217
7218         * Fixed double free in client library in the file
7219           lib/silcclient/client.c when disconnecting from server.
7220
7221         * Applied double free patch from cras to Irssi SILC client.
7222           Affected files irssi/src/core/[modules/expandos].c
7223
7224         * Fixed the disconnection handling to Irssi SILC Client.
7225           The application must call silc_client_close_connection
7226           in ops->connect client operation in case of failure of
7227           the connection.  Affected file is
7228           irssi/src/silc/core/client_ops.c.
7229
7230         * Do not set sock->protocol to NULL in the function
7231           silc_client_close_connection after executing the protocol's
7232           final callback since the sock might not be valid anymore.
7233           Affected file lib/silcclient/client.c.
7234
7235 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7236
7237         * Do not enable SILC_THREADS if the linking with libpthread
7238           did not happen.  Affected file configure.in.pre.
7239
7240         * Added notion to protocol specification that server must
7241           verify the sent authentication payload with CMODE when
7242           setting the channel founder key.  Implemented it to the
7243           server.  Affected file silcd/command.c.
7244
7245 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7246
7247         * Added _EXTRA_DIST SILC distribution variable to the
7248           distributions file.  It is used to conditionally add extra
7249           files or directories to the specific distribution.  Affected
7250           files ./prepare, Makefile.am.pre and distributions.
7251
7252           Removed the `_' from the start of the distribution names.
7253           It is redundant.
7254
7255         * Added README.WIN32 for instructions to compile the Toolkit
7256           under WIN32.
7257
7258 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7259
7260         * Fixed a double free in disconnection in the server.  Affected
7261           file is silcd/server.c.
7262
7263         * Fixed the lib/silcske/groups.c to work now also with GMP
7264           MP library.  The string conversion did not work when using
7265           specific base and the base is indicated in the string as well.
7266
7267         * Created win32/ directory which now includes MSVC++ specific
7268           stuff so that toolkit (DLLs) may be compiled with MSVC++.
7269           It will appear only in the toolkit distribution
7270
7271 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7272
7273         * Changed the key material distribution function in case when
7274           the hash output is too short.  The data is now concatenated
7275           a bit differently than it used to.  Made the change to the
7276           SKE protocol specification.
7277
7278         * Added better GMP detection to configure.in.pre.  A patch
7279           by salo.
7280
7281 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7282
7283         * Fixed a minor bug in SKE that might cause some problem on
7284           some platforms.  Affected file lib/silcske/silcske.c.
7285
7286         * Added the cookie checking for initiator in the SKE.  It checks
7287           that the responder returns the sent cookie unmodified.  The
7288           affected file is lib/silcske/silcske.c.  Added new SKE
7289           error type INVALID_COOKIE that can be sent during the
7290           negotiation.  Fixed some memory leaks as well.
7291
7292         * Added the "invalid cookie" error message to Irssi SILC client's
7293           message formats.
7294
7295 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7296
7297         * Added `task_max' field to the SilcClientParams to indicate
7298           the maximum tasks the scheduler can handle.  If set to zero,
7299           default values are used.  Affected file lib/silcclient/silcapi.h.
7300
7301         * Fixed memory leaks in silc_client_close_connection.  Affected
7302           file lib/silcclient/client.c.
7303
7304         * Added silc_client_del_client_entry to client library to free
7305           all memory of given client entry.  Affected file is
7306           lib/silcclient/idlist.[ch].
7307
7308         * Added new functions silc_client_del_channel and
7309           silc_client_del_server to delete channel and server entries.
7310           Affected file lib/silcclient/[silcapi.h/idlist.c].
7311
7312         * Removed silc_client_del_client_by_id from silcapi.h.
7313
7314         * Fixed the INFO command to return the server's own info
7315           correctly when querying by Server ID.  Affected file is
7316           silcd/command.c.
7317
7318 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7319
7320         * Removed the non-blocking settings in WIN32 code in the
7321           silc_sock_[read/write] and added SleepEx instead.  Affected
7322           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
7323           of input data is now checked with FIONREAD and ioctlsocket.
7324
7325 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7326
7327         * Call silc_schedule_task_del_by_context in the
7328           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
7329           Affected file lib/silccore/silcprotocol.c.
7330
7331         * Call silc_protocol_cancel for active protocols in the
7332           silc_server_close_connection if the funtion
7333           silc_server_free_sock_user_data has not been called.
7334           Affected file silcd/server.c.
7335
7336         * Generic tasks cannot be deleted using the del_by_fd
7337           task deleting function since generic tasks does not match
7338           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
7339
7340         * Added a notion to SILCOPER help file that the SILCOPER works
7341           only on router server, not on normal server.
7342
7343 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7344
7345         * Added for WIN32 support for the new scheduler as well.
7346           Affected file lib/silcutil/win32/silcwin32schedule.c.
7347
7348         * Fixed the SHA1 implementation to work on various platforms.
7349
7350 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7351
7352         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
7353           API.  It is part of the scheduler now.  Everything else is
7354           as previously but some functions has changed their names.
7355           Checkout the lib/silcutil/silcschedule.h for the interface.
7356           Updated all applications to use the new interface.  Affected
7357           files are lib/silcutil/silcschedule.[ch].
7358
7359 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7360
7361         * Found a bug in the SKE implementation.  The HASH value,
7362           specified by the protocol, was not computed correctly.  The
7363           public key of the responder was not added to the computation
7364           even though it is mandatory.  Affected file lib/silcske/silcske.c.
7365           This unfortunately causes incompatibilities with older
7366           clients and servers.
7367
7368         * Added WIN32 specific network init and uninit functions:
7369           silc_net_win32_init and silc_net_win32_uninit to init and uninit
7370           the Winsock2.  Affected file lib/silcutil/silcnet.h and
7371           lib/silcutil/win32/silcwin32net.c.
7372
7373         * Set the socket always to nonblocking mode on WIN32 after
7374           reading data or writing data.  Affected file is
7375           lib/silcutil/win32/silcwin32sockconn.c.
7376
7377 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7378
7379         * Fixed various compilation problems under WIN32.  Affected
7380           files lib/silcutil/win32/silcwin32thread.c and
7381           lib/silcutil/win32/silcwin32schedule.c.
7382
7383         * Removed all _internal.h #includes from public header
7384           files.  Internal headers must never be included from
7385           public headers.
7386
7387           Removed also the lib/silcske/payload_internal.h file.
7388
7389         * All include files that may be needed (public and some others
7390           included by the public headers) by application developers are
7391           now copied to the ./includes directory.  It does not copy any
7392           internal headers.  Affected file Makefile.defines.pre and all
7393           Makefile.am's under lib/ and subdirs.
7394
7395 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7396
7397         * Do not change the ~/.silc directory's permissions automatically.
7398           Affected file irssi/src/silc/core/clientutil.c.
7399
7400 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7401
7402         * Do not cancel the protocol in silc_server_close_connection
7403           it might cause recursion.  Now cancelled in the function
7404           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7405
7406         * Fixed the silc_server_remove_clients_by_server to regenerate
7407           the channel keys correctly finally.  Added also new function
7408           silc_server_remove_clients_channels to actually do it.
7409           Affected file silcd/server.c.
7410
7411         * Fixed the silc_server_new_channel to not crash by giving
7412           wrong router to the new channel.  Affected file is
7413           silcd/packet_receive.c.
7414
7415 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7416
7417         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7418           which is given as argument to the silc_client_alloc now.
7419           It can be used to configure the client and set various parameters
7420           that affect the function of the client.
7421
7422         * The USERS command in server did not check whether the channel
7423           is private or secret.  Affected file silcd/command.c.
7424
7425         * Added new argument to the USERS command in protocol specification.
7426           The USERS command now can take the channel name as argument
7427           as well.  Added support for this in client and server and
7428           updated the protocol specs.
7429
7430         * Completed the GETKEY command in client. It can be now used
7431           to fetch also servers public key not only some clients.
7432           Affected files lib/silcclient/command[_reply].c.
7433
7434         * Added silc_client_get_server to return server entry by the
7435           server name.  Affected files lib/silcclient/silcapi.h and
7436           idlist.c.
7437
7438         * Redefined the IDENTIFY command in protocol specification to be
7439           more generic.  It now can be used to query information about
7440           any entity in the SILC Network, including clients, servers and
7441           channels.  The query may be based either the entity's name
7442           or the ID.  Added support for this in both client and server.
7443
7444           Affected files silcd/command.c and lib/silcclient/command.c
7445           and command_reply.c.
7446
7447         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7448           the _from_client and _from_server functions.  Affected file
7449           silcd/command.c.
7450
7451         * Added silc_client_get_channel_by_id_resolve to the file
7452           lib/silcclient/silcapi.h to resolve channel information by
7453           its ID.  Added also silc_client_get_channel_by_id that
7454           does not resolve it from the server.
7455
7456 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7457
7458         * Added SilcServerEntry context into the client library
7459           to represent one server.  The INFO command now allocates
7460           these to save the resolved server info.  For now on the
7461           client library will also keep information about servers,
7462           connected and resolved with INFO.
7463
7464           The INFO command now allocates the SilcServerEntry context
7465           and saves the server info there.  The COMMAND_REPLY in
7466           the INFO now returns the parameters to application in
7467           same order as defined in the protocol specification.
7468
7469           The entries are cached in the client->server_cache.
7470
7471         * The INFO command is now issued after received the Client ID
7472           from the server.  Affected file lib/silcclient/client.c.
7473
7474         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7475           to the application as the mode changer might be server.
7476           It is guaranteed that NULL is not returned anymore to the
7477           application.  Affected file lib/silcclient/client_notify.c.
7478
7479           The ID Type is now also passed to the application so that
7480           it can check whether the returned entry is SilcClientEntry
7481           or SilcServerEntry.
7482
7483           Added new function silc_client_get_server_by_id to return
7484           the server entry by ID.  Affected files are the
7485           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7486
7487         * Do not create the channel in the Irssi SILC Client when issuing
7488           the JOIN command but when received the sucessful JOIN command
7489           reply.  Otherwise the channel might get created even though we
7490           could not join it.  The Affected file is
7491           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7492
7493         * Fixed a channel joining bug in router.  The router must also
7494           check the channel modes, invite and ban lists etc. when serving
7495           the JOIN command sent by normal server.  Affected file is
7496           silcd/command.c.  The router now resolves the client's
7497           information from the server who sent the JOIN command if it
7498           does not know it, and processes the JOIN command only after
7499           that.
7500
7501         * Changed the SilcCommandCb to take new argument; void *context2.
7502           Affected file lib/silccore/silccommand.h
7503
7504           The second argument in the command callbacks in the server now
7505           includes the SilcServerCommandReplyContext if the command was
7506           called as pending command callback from the command reply.
7507           Otherwise it is NULL. When called as pending the status of the
7508           command reply will be checked and if it was erronous the
7509           error will be sent to the original sender of the command.
7510           This way the client always receives the error messages even
7511           though the server was actually the one who received the error
7512           when it resent the command to router, for example.  Affected
7513           files silcd/command[_reply].[ch].
7514
7515         * Fixed sending WHOWAS command's error message to client if
7516           the requested client could not be found.  It was missing.
7517           silcd/command.c.
7518
7519         * Changed the CMODE and CUMODE commands reply arguments in the
7520           protocol specification.  The Channel ID is now sent in both
7521           of the commands to identify the channel.  Implemented this
7522           new feature to the client and server.  Affected files
7523           lib/silcclient/command_reply.c and silcd/command.c.
7524
7525         * Made better checks for invite and ban lists in the JOIN
7526           command in server.  Affected file silcd/command.c.
7527
7528 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7529
7530         * The server now performs the incoming host IP/DNS lookup
7531           using the silc_socket_host_lookup and thus does not block
7532           the server anymore.  Affected file silcd/server.c.
7533
7534         * Completed the multi-thread support for SILC Scheduler in
7535           the lib/silcutil/silcschedule.c.
7536
7537         * Fixed the configure.in.pre to detect the pthread correctly
7538           on various systems.
7539
7540         * Fixed a deadlock in silc_task_queue_wakeup in the file
7541           lib/silcutil/silctask.c.
7542
7543 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7544
7545         * Added new function silc_schedule_wakeup that is used in
7546           multi-threaded environment to wakeup the main thread's
7547           schduler. It needs to be used when a thread adds a new task
7548           or removes a task from task queues. After waking up, the
7549           scheduler will detect the task queue changes. If threads
7550           support is not compiled in this function has no effect.
7551           Implemented the wakeup mechanism to both Unix and WIN32
7552           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7553           lib/silcutil/unix/silcunixschedule.c and the
7554           lib/silcutil/win32/silcwin32schedule.c.
7555
7556         * Added new function silc_task_queue_wakeup to wakeup the
7557           scheduler by the specified task queue.  Affected file
7558           lib/silcutil/silctask.[ch].
7559
7560         * The silc_socket_host_lookup_start now wakes up the scheduler
7561           after adding the timeout task.  Affected file is
7562           lib/silcutil/silcsockconn.c.
7563
7564         * The silc_socket_host_lookup is synchronous now if the threads
7565           support is not compiled in.  However, the callback is still
7566           called asyncronously through the scheduler, anyway.  Affected
7567           file lib/silcutil/silcsockconn.c.
7568
7569 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7570
7571         * Added new function silc_socket_host_lookup to perform
7572           asynchronous IP and FQDN lookups for the socket connection.
7573           Affected files lib/silcutil/silcsockconn.[ch].
7574
7575 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7576
7577         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7578           that may or may not compile the mutex support in.
7579
7580           Changed the silc_mutex_alloc interface. It allocates the
7581           mutex now to the sent pointer and returns TRUE or FALSE.
7582
7583           Affected file lib/silcutil/silcmutex.h.
7584
7585         * Wrote the SILC Task Queue interface to support multi-threads.
7586           Affected file lib/silcutil/silctask.[ch].
7587
7588         * Wrote the SILC Scheduler to support multi-threads.  Affected
7589           file lib/silcutil/silcschedule.c.
7590
7591 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7592
7593         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7594           in lib/silcutil/win32/.
7595
7596 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7597
7598         * Defined SILC Mutex API and SILC Thread API and implemented
7599           them for Unix.  Affected files are
7600           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7601           lib/silcutil/unix/silcunixmutex.c and
7602           lib/silcutil/unix/silcunixthread.c.
7603
7604 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7605
7606         * Fixed the silc_server_remove_clients_by_server's channel
7607           key re-generation.  The hash table handling was incorrect
7608           and would not work with many channels.  Affected file is
7609           silcd/server.c.
7610
7611         * Fixed some memory leaks around the server code.
7612
7613         * Rewrote the silc_server_get_users_on_channel to support IPv6
7614           based Client ID's.  Affected file silcd/server.c.
7615
7616         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7617           specification.  However, a separate document must be written
7618           to define the detailed signing procedure and the payload
7619           associated with the flag.  Defined the flag to the
7620           lib/silccore/silcchannel.h as well.
7621
7622 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7623
7624         * Changed the dynamic tables to static size tables in the
7625           lib/silccrypt/silchmac.c.
7626
7627         * Removed GCC dependencies from the code.  A patch by cras.
7628
7629 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7630
7631         * Do not show the error "Error receiving packet bla bla"
7632           in server if it really was not an error (-2 means that reading
7633           is pending).  Affected file silcd/server.c.
7634
7635 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7636
7637         * Fixed a possible crash in silc_server_remove_clients_by_server
7638           in silcd/server.c.  Fixed there also some memory leaks.
7639
7640         * Fixed the silc_idlist_replace_client_id.  It could replace
7641           wrong key in the hash table.  Affected file silcd/idlist.c.
7642
7643         * Do not check whether there are global users on the channel
7644           if the channel->global_users is FALSE.  Affected functions
7645           silc_server_remove_from_one_channel and
7646           silc_server_remove_from_channels in silcd/server.c.  Also,
7647           do not check if the removed client is local as we can be
7648           sure that global client was not removed from the channel
7649           and checking for global users is not needed.
7650
7651         * The silc_server_remove_clients_by_server now re-generates
7652           the channel keys correctly for those channels that had
7653           clients removed from them.  Affected file silcd/server.c.
7654
7655 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7656
7657         * Found the reason of random crashes in the server.  We weren't
7658           ignoring the SIGPIPE signal (which can be sent in write())
7659           and it crashed the server.  Affected file silcd/silcd.c.
7660
7661 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7662
7663         * Assure that sock->user_data is not NULL in the function
7664           silc_server_packet_send in silcd/packet_send.c.
7665
7666         * Disconnect the remote connection if it could not be added
7667           to any ID lists in the server.  The affected file is
7668           silcd/server.c.
7669
7670         * Check in silc_server_packet_send[_real/dest] that the
7671           socket is not disconnecting and ignore the data if it is.
7672           Affected file silcd/packet_send.c.
7673
7674         * Define inline to __inline on native WIN32 compilation.
7675           Affected file includes/silcwin32.h.
7676
7677         * Added some explicit type casts for inline code since MSVC
7678           require them.  Affected files lib/silcutil/silcbuffer.h,
7679           lib/trq/silcdlist.h and lib/trq/silclist.h.
7680
7681         * Print warning in log files from now on if the packet
7682           decryption fails.  Affected file silcd/server.c.
7683
7684 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7685
7686         * Changed the `say' client operation's interface to accept
7687           new `type' argument to indicate the type of the message sent
7688           by the library.  The application may filter the library's
7689           messages according the type.  The affected file is the
7690           lib/silcclient/silcapi.h.
7691
7692         * Added two new functions to lib/silcclient/silcapi.h:
7693           silc_client_del_client and silc_client_del_client_by_id.
7694           Affected file lib/silcclient/idlist.c.
7695
7696         * Moved the clientincludes.h from includes/ to silc/ and
7697           serverincludes.h from includes/ to silcd/.
7698
7699         * The modes for the CMODE and CUMODE are now passed as
7700           uint32 for application with COMMAND_REPLY.  The affected
7701           file is lib/silcclient/command_reply.c.
7702
7703 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7704
7705         * /WHOIS without arguments shows client's own information.
7706           Affected file lib/silcclient/command.c.
7707
7708         * Changed PING to not accept any arguments.  The specs
7709           says that client can ping only the connected server so
7710           requiring an argument is not needed.  Affected file is
7711           lib/silcclient/command.c.
7712
7713 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7714
7715         * Fixed a fatal bug in private message sending and reception
7716           encryption and decryption when using private message keys.
7717           The implementation was incorrect and did not follow the
7718           specification.  It causd that some of the message were
7719           lost since it did not use the sending and receiving keys
7720           as the protocol suggests.  This has been fixed and will cause
7721           incompatibilities with older clients when sending private
7722           message encrypted with private message keys.  Affected files
7723           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
7724           and various other in Irssi SILC Client.
7725
7726           Added `responder' boolean argument to the functions
7727           silc_client_add_private_message_key[_ske] to indicate when
7728           the key is added as responder or initiator of the key
7729           negotiation.
7730
7731 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7732
7733         * Removed the silc_ske_check_version function and created
7734           a SilcSKECheckVersion callback.  Added also a function
7735           silc_ske_set_callbacks that is now used to set all SKE
7736           callbacks.  The callback functions are not given to
7737           the SKE functions anymore, but this function is used to
7738           set the callbacks.
7739
7740         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
7741
7742         * Added `silc_version' argument to the silc_client_alloc
7743           to define the version of the application for the library.
7744           The library will use the version string to compare it
7745           against the remote host's (usually a server) version
7746           string.  Affected file lib/silcclient/silcapi.h
7747
7748         * Added the KE protocol context to Key Agreement context
7749           in client library so that we can abort the SKE if it
7750           is in process when we get timeout.  Affected file is
7751           lib/silcclient/client_keyagr.c.
7752
7753         * Do not resolve the client ID forever if it returns in the
7754           first time that such client does not exist.  This was done
7755           for example with private message.  Affected file is
7756           lib/silcclient/client_prvmsg.c.
7757
7758 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7759
7760         * Do not add regex.h for WIN32.  The affected file
7761           includes/silcincludes.h.
7762
7763         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
7764           not work yet 100%.  It generates the DLL's automatically
7765           when compiling with --with-win32 under cygwin.
7766
7767 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7768
7769         * lib/contrib/regex.c is not compiled on WIN32.
7770
7771         * Added silc_net_get_socket_opt function to the
7772           lib/silcutil/silcnet.h.
7773
7774         * Added includes/silcwin32.h for WIN32 specific includes
7775           and definitions.
7776
7777         * Do not use ptime structure or any of the posix process
7778           functions on WIN32 in lib/silccrypt/silrng.c.
7779
7780         * Added silc_gettimeofday to provide generic function
7781           for struct timeval on all platforms.  Added the function
7782           to lib/silcutil/silcutil.h.
7783
7784 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7785
7786         * Moved the lib/silccore/silcsockconn.[ch] to the utility
7787           library as they clearly belong there.  As a plus side we
7788           can make the actual socket connection routines platform
7789           specific.
7790
7791           Added also new generic function silc_socket_read and
7792           silc_socket_write (that used to be silc_packet_[read/write].
7793           The implementation of these are platform specific.
7794
7795         * Added WIN32 specific routines of silc_socket_[read/write]
7796           to lib/silcutil/win32/silcwin32sockconn.c.
7797
7798 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7799
7800         * Added preliminary support for native WIN32 compilation under
7801           cygwin (using the -mno-cygwin option for GCC) to the
7802           ./configure.in.pre.  The --with-win32 now prepares the
7803           compilation for native WIN32.
7804
7805         * Rewrote the SILC Scheduler interface in the file
7806           lib/silcutil/silcschedule.h.  The scheduler is now context
7807           based and does not have anymore any global static scheduler.
7808           Moved the Unix scheduler to the lib/silcutil/unix/ directory
7809           and created lib/silcutil/win32 directory for WIN32 based
7810           scheduler.
7811
7812         * Added Unix specific network routines to the
7813           lib/silcutil/unix/silcunixnet.c and the old
7814           lib/silcutil/silcnet.c includes now only generic routines.
7815
7816           Added WIN32 specific network routines to the
7817           lib/silcutil/win32/silcwin32net.c.
7818
7819         * Added Unix specific utility functions from the
7820           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
7821
7822         * Added WIN32 SILC Scheduler to the file
7823           lib/silcutil/win32/silcwin32schedule.c. The code is of course
7824           untested.
7825
7826 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7827
7828         * Do not handle JOIN notify in the server if the target client
7829           is not registered (idata->registered == FALSE).  The affected
7830           file is silcd/packet_receive.c.
7831
7832         * Update the nickrec->founder in event_cumode in the Irssi SILC
7833           client.  Affected file irssi/src/silc/core/silc-channels.c.
7834
7835         * Fixed the CUMODE_CHANGE notify handling in the server when
7836           server and router are announcing their clients on channels.
7837           Now the mode changes are saved and notified correctly.  The
7838           affected file is /silcd/packet_receive.c.
7839
7840         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
7841           They really did not replace the cache entry in the ID Cache.
7842           Now they do that.  Affected file silcd/idlist.c.
7843
7844         * Fixed the KICK notify handling in the Irssi SILC client to
7845           update the channel records so that the kicked client does not
7846           appear to be on the channel.  The affected file is
7847           irssi/src/silc/core/silc-channels.c.
7848
7849         * Always update the conn->current_channel when executing command
7850           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
7851
7852         * Fixed the KILL notify handling in Irssi SILC client to remove
7853           the killed client on all channels.
7854
7855 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7856
7857         * Fixed the silc_parse_command_line to remove extra spaces
7858           from the start and end of the arguments.  Affected file is
7859           lib/silcutil/silcutil.c.
7860
7861         * Cancel and free any active protocol in the function
7862           silc_server_close_connection.  Affected file silcd/server.c.
7863
7864         * Cancel and free any active protocol in the function
7865           silc_client_close_connction.  Affected file is
7866           lib/silcclient/client.c.
7867
7868         * Do not execute the KILL command for clients that are in
7869           history (ie. they are not in the network).  Affected file is
7870           silcd/command.c.
7871
7872         * Fixed KILL notify handling, client does not crash anymore.
7873           Affected file irssi/src/silc/core/silc-channels.c.
7874
7875         * Reduced the default packet buffer size from 2048 to 1024 in
7876           lib/silccore/silcpacket.c.
7877
7878         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
7879           counter to the SKE context that is incresed when the SKE library
7880           performs async operation outside the library.  If the outside
7881           process frees the SKE context and FREED status will be set
7882           and the library will detect after the sync operation that the
7883           libary is freed.  The affected files are
7884           lib/silcske/silcske[_status].[ch].
7885
7886         * Resolve the client entry information in the function
7887           silc_client_channel_message to assure that NULL pointer is not
7888           passed as client entry to the application. */
7889
7890         * Fixed the task timeout calculation to assure that there is
7891           never negative timeouts.  The affected file is
7892           lib/silcutil/silcschedule.c.
7893
7894         * Fixed the channel user mode notification sending in server.
7895           It was sent point-to-point to the router (or to server by router)
7896           but it needs to be destined to a channel.  The routines now
7897           supports sending the channel user mode notifys to the channels
7898           when announcing clients and channels.  Affected files are
7899           silcd/server.c and silcd/packet_receive.c.
7900
7901         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
7902           It did not actually replace the old channel entry in the cache.
7903           Affected file lib/silcclient/client_notify.c.
7904
7905 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7906
7907         * Fixed a possible crash in silc_packet_send_prepare.  It now
7908           assures always that there is enough space in the buffer and
7909           at the tail area of the buffer (for MAC).
7910
7911           Fixed the inbound buffer reallocation in silc_packet_read.
7912           It was old code and did not handle the reallocation correctly.
7913           Affected
7914
7915           The affected file is lib/silccore/silcpacket.c.
7916
7917         * Fixed buffer overflow in silc_parse_nickname in the file
7918           lib/silcutil/silcutil.c.
7919
7920 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7921
7922         * make install generates new server keys only if there is not
7923           keys already.
7924
7925 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7926
7927         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
7928           Added check that if the NOREPLY is set then we will not send
7929           the away message.  This avoids infinite loop of away messages
7930           if both clients are away.  The affected file is
7931           lib/silcclient/client_prvmsg.c.
7932
7933         * Fixed client crash if /NICK was given without arguments.
7934           Affected file lib/silcclient/command.c.
7935
7936         * Server does not send the invite list in INVITE command back
7937           to the client if the list was not altered.  Added this notion
7938           to the protocol spec as well.  Affected file silcd/command.c.
7939
7940           Fixed possible crash in INVITE command by checking the
7941           value of silc_server_get_client_route command.
7942
7943         * Fixed the INVITE notify type handling.  The arguments are now
7944           taken in correct order and client does not crash.  The affected
7945           file is irssi/src/silc/core/silc-channels.c.
7946
7947           Removed the "Inviting xxx to channel" message from the
7948           client library away and let the application handle it.
7949           Affected file lib/silcclient/command.c.  Added that message
7950           to Irssi SILC client's message formats.
7951
7952         * Fixed CMODE command crash in client.  It now checks the
7953           amount of arguments correctly and does not crash.  The affected
7954           file is lib/silcclient/command.c.
7955
7956         * Do not create new channel automatically in silc_channels_join
7957           but check whether the channel by that name already exists.
7958           Affected file irssi/silc/core/silc-channels.c.
7959
7960         * Do not send the SERVER_SIGNOFF to router if the disconnected
7961           entity was the router.  Affected file silcd/server.c.
7962
7963         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
7964           SILC client as it was missing from there.
7965
7966           Added the handling of the KICK notify to the Irssi SILC client
7967           as it was missing.  Added "you have been kicked" message to
7968           Irssi SILC client's message modules formats.
7969
7970           Added the handing of the KILL notify to the Irssi SILC client
7971           as it was missing.  Added the kill message module formats
7972           as well.
7973
7974           The affected file is irssi/src/silc/core/silc-channels.c.
7975
7976         * The router did not save the channel mode the server announced.
7977           Affected file silcd/packet_receive.c.
7978
7979         * Fixed a possible crash in INFO command in server.  If the
7980           server did not provide the server info it crashed.  Affected
7981           file silcd/command.c.
7982
7983 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7984
7985         * Fixed the GETKEY command in the server to check also the
7986           global list.  Otherwise the GETKEY would not work correctly
7987           in normal SILC server.  Affected file silcd/command.c.
7988
7989 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7990
7991         * Fixed GETKEY crash, it crashed if the command did not succseed.
7992
7993 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7994
7995         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
7996           is now real and not just an macro interface to GMP.
7997
7998           Removed the entire GMP from the source tree and imported new
7999           NSS MPI library instead.  Reason for removing GMP is that it is
8000           extremely large and compiles extremely slow.  The NSS MPI
8001           is only a few files and compiles in less than 10 seconds.
8002           The speed is also about the same as GMP.  The MPI is imported
8003           to lib/silcmath/mpi.
8004
8005           If the system has GMP installed we will still use the GMP.
8006           If it is not then the NSS MPI will be compiled.
8007
8008 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8009
8010         * Merged a long nickname (127 characters long) crash bugfix from
8011           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8012
8013         * Merged a freed memory reference bugfix from Irssi CVS tree.
8014           Affected file irssi/src/core/commands.c.
8015
8016 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8017
8018         * Added the server's public key sving and verification to the
8019           server when performing the SKE.  This was missing and the
8020           remote server's (or router's) public key was accepted without
8021           checking whether we have it previously or trust it at all.
8022           Affected file silcd/protocol.c.
8023
8024 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8025
8026         * Check in the silc_server_timeout_remote if protocol is active
8027           and make sure that the protocol's final callback is called so
8028           that all memory if freed.  Affected file silcd/server.c.
8029
8030 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8031
8032         * silc_server_whois_send_reply crashed the server if the nickname
8033           was 127 characters long.  Affected file silcd/command.c.
8034
8035 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8036
8037         * Added sanity check to the silc_server_new_client. If the hostname
8038           is provided inside username then check that the provided hostname
8039           really is the same as the resolved one.  If the hostname was not
8040           resolved then check it from the public key.  Affected file is
8041           silcd/packet_receive.c.
8042
8043         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8044           if the server disconnected us and the connection is not valid
8045           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8046
8047         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8048           the library to the lib/silcutil/silcutil.[ch].
8049
8050 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8051
8052         * Close log file after open.  Affected file
8053           lib/silcutil/silclog.c.
8054
8055         * Check whether sock == NULL in silc_client_send_packet and return
8056           if it is.  Affected file lib/silcclient/silcclient.c.
8057
8058         * Check rec->entry == NULL in the Irssi SILC Client before
8059           sending the channel message.  Affecte file is
8060           irssi/src/silc/core/silc-servers.c.
8061
8062 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8063
8064         * Merged a splitted window bugfix from Irssi CVS tree.  The
8065           affected file is irssi/src/fe-text/textbuffer-view.c.
8066
8067         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8068           It did not print nickname.
8069
8070         * Improved the distributions system a bit.
8071
8072 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8073
8074         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8075           irssi/src/fe-text/gui-window.c.
8076
8077         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8078           to in-active server.  The affected file is
8079           irssi/src/silc/core/client_ops.c.
8080
8081         * Resolve the client in USERS command reply if the entry does
8082           not have username resolved.  The affected file is
8083           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8084           command to WHOIS command to really resolve stuff.  The USERS
8085           is not used any more in any critical section so WHOIS can
8086           be used even though it might be slower than IDENTIFY.
8087
8088         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8089           format.
8090
8091 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8092
8093         * Changed the protocol API a bit more consistent in the
8094           lib/silccore/silcprotocol.[ch].
8095
8096         * Changed the following headers to ROBODoc format:
8097
8098                 lib/silccore/silcpayload.h
8099                 lib/silccore/silcprotocol.h
8100                 lib/silccore/silcsockconn.h
8101
8102           All core library headers are now formatted.
8103
8104 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8105
8106         * Fixed a bug in Irssi SILC client; do not show that you are
8107           server/router operator if you really are not.  Affected file is
8108           irssi/src/silc/core/client_ops.c.
8109
8110         * Renamed silc_command_free_payload to silc_command_payload_free.
8111           Affected file lib/silccore/silccommand.h
8112
8113         * Added silcmath.h to include the prototoypes of various routines
8114           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8115           silcprimegen.h.
8116
8117         * Changed the following headers to ROBODoc format:
8118
8119                 lib/silccore/silcchannel.h
8120                 lib/silccore/silccommand.h
8121                 lib/silccore/silcid.h
8122                 lib/silccore/silcidcache.h
8123                 lib/silccore/silcmode.h
8124                 lib/silccore/silcnotify.h
8125                 lib/silccore/silcpacket.h
8126                 lib/silcmath/silcmath.h
8127
8128 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8129
8130         * Added checking to the server code not to start the server if
8131           ciphers and stuff are not configured properly.  Affected files
8132           silcd/serverconfig.[h] and silcd/server.c.
8133
8134         * Changed the layout of the header files of the public interfaces
8135           in the SILC libraries.  The new layout supports ROBODoc
8136           documentation tool (and some others) so that it is easy to create
8137           a library reference manual.  All the other headers and source
8138           code must still follow the CodingStyle document.  Also source
8139           code must not include these ROBODoc stuffs, only the headers.
8140           Furthermore, all public interface headers must now be named
8141           by using `silc' prefix, example: silcapi.h, silccipher.h.
8142           Some files were renamed due to this.  All the other headers
8143           must not be used as public interfaces.  I will update the
8144           CodingStyle document later.  Changed following headers, so far:
8145
8146                 lib/silcclient/silcapi.h
8147                 lib/silccore/silcauth.h
8148                 lib/silccore/silcprivate.h
8149                 lib/silccrypt/silcdh.h
8150
8151 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8152
8153         * Updated TODO.
8154
8155         * Removed silc_client_packet_send_flush from the client library
8156           as it is not needed.  Affected file lib/silcclient/client.[ch].
8157
8158         * Added printing of message of unresolved authentication method
8159           to the Irssi SILC client.  Added it to the module formats.
8160           Removed the same message from the client library.
8161
8162 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8163
8164         * Added new distribution feature, DISTLABEL.  Every distribution
8165           can define own preprocessor label that can be used in the
8166           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8167           file distributions, acconfig.h.pre and prepare.
8168
8169 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8170
8171         * Added Makefile.defines_int to include the actual definitions
8172           for Makefile.defines.in.  Tested the new distribution system,
8173           created distributions and tested installation.
8174
8175         * Added AWAY message printing to the Irssi SILC client.  Added
8176           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
8177
8178         * Added SCONNECT command to call the SILC's CONNECT command.
8179           Cannot use CONNECT directly since Irssi uses that internally.
8180           Affected file irssi/src/silc/core/silc-servers.c.
8181
8182           Added ACTION local command.  It is same as ME command but takes
8183           the channel as mandatory argument.
8184
8185           Rewrote some of the Irssi's help files to suite for SILC
8186           protocol.
8187
8188 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8189
8190         * Added Makefile.defines[.in] that should for now on be included
8191           in all Makefile.am file in the source tree.  That file includes
8192           all common compilation definitions for SILC source tree.
8193
8194 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8195
8196         * Minor changes to the ./prepare script to change the package
8197           name according the distribution name to the configure.in.
8198
8199 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8200
8201         * Created new distribution system.  Added file `distributions'
8202           that defines all the distributions that can be created out of
8203           the SILC source tree.  The ./prepare script now reads that
8204           file to determine how to prepare the distributions.  The
8205           first argument to the ./prepare is the name of the distribution
8206           and second is the version of the distribution.  If given
8207           without arguments it creates the default (toolkit) distribution
8208           with the default version (defined in ./prepare).
8209
8210           All Makefile.am files that are subject to the distributions
8211           are now named as Makefile.am.pre.  These are ./Makefile.am
8212           and lib/Makefile.am.  Others may be changed later.
8213
8214 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8215
8216         * Added invite list, ban list, some key management and connection
8217           error message printing to module formats in the Irssi SILC client.
8218
8219         * Added new silc_client_set_away_message to set the away message
8220           that is back to the person who sent private message.  The
8221           affected file lib/silcclient/silcapi.h and the
8222           lib/silcclient/client_prvmsg.c.
8223
8224 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8225
8226         * Fixed the private message sending in the Irssi SILC client,
8227           added local command KEY to the Irssi SILC client.
8228
8229           Added key management and key agreement message formats to the
8230           irssi/src/fe-common/silc/module-formats.[ch].
8231
8232           Added USERS (alias WHO) printing, server/router operator
8233           indication and LIST command printing to the module formats.
8234
8235 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8236
8237         * Fixed channel joining notify handling, cumode notify handling
8238           from Irssi SILC client.
8239
8240         * Added SILC specific module-formats to the Irssi SILC client so
8241           that SILC specific message hilighting, colors etc is possible.
8242           Affected file irssi/src/fe-common/silc/module-formats.[ch].
8243
8244           Added channel mode, channel user mode, actions, notices,
8245           whois and whowas printing to the the module-formats.c.
8246
8247         * Fixed a bug in channel deletion in the server.  The channel
8248           is not left to the cache even if the channel founder auth mode
8249           is set when there are no users anymore on the channel.  Affected
8250           file silcd/server.c.
8251
8252         * The silc_net_localhost now resolves the entire hostname including
8253           the domain name.  Affected file lib/silcutil/silcnet.c.
8254
8255 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8256
8257         * Changed the ask_passphrase client operation to be ascynchronous.
8258           It has now a completion callback and a context that the
8259           application must call after it has got the passphrase from
8260           the user.  Affected files lib/silcclient/silcapi.h,
8261           lib/silcclient/protocol.c, lib/silcclient/command.c and
8262           silc/client_ops.c.
8263
8264           Added SilcAskPassphrase callback that the application calls
8265           to deliver the passphrase to the library.
8266
8267         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
8268           The public key verification and especially a certificate
8269           verification is asynchronous procedure.
8270
8271           Added new SILC_SKE_STATUS_PENDING status to indicate the
8272           request is pending and a callback will be called to finalize
8273           the request.
8274
8275           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
8276           indicate that remote end did not send its public key (or
8277           certificate), even though we require it.  Added check for this
8278           condition in the SKE.  This was a security bug, now fixed.
8279
8280           Defined new SilcSKEVerifyCbCompletion callback that is called
8281           when the verification process is completed.
8282
8283           The affected files lib/silcske/silcske_status.h and
8284           lib/silcske/silcske.[ch].
8285
8286         * Changed the verify_public_key client operation to be async
8287           as well.  Defined SilcVerifyPublicKey callback that is used to
8288           indicate the success of the public key verification process.
8289
8290           Changed the server and client to use the new async client
8291           operations.
8292
8293         * Changed the Irssi SILC client's internal scheduler to be called
8294           twice as many times as it used to be.  As a result the client
8295           should be a bit faster now.  Affected file is
8296           irssi/src/silc/core/silc-core.c.
8297
8298         * Added support to Irssi SILC client of asynchronous public key
8299           verification and passphrase inquiry.  Affected file is
8300           irssi/src/silc/core/silc-core.c.
8301
8302 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8303
8304         * Do not say "You have left channel %s" in client library.
8305           Moved it to the application.  Affected files are
8306           lib/silcclient/command.c and silc/client_ops.c.
8307
8308         * Fixed silc_client_get_clients.  Command context was not
8309           duplicated and was freed memory in the callback.  Affected
8310           file lib/silcclient/idlist.c.
8311
8312         * Do not say "you are now talking..." on JOIN command in the
8313           client library.  The appliation must handle it.
8314
8315         * Do not say ".. changed topic to" in command reply in the
8316           client libary.  The application must handle it.
8317
8318         * Fixed TOPIC command sending in the client library.
8319
8320         * Fixed a memory leak in silc_client_command_free in the file
8321           lib/silcclient/command.c.
8322
8323 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8324
8325         * Imported a modified version of Irssi client to the source tree.
8326           The Irssi will be used to create a new client called
8327           Irssi SILC.  Imported to irssi/.
8328
8329           Added silc_core_init_finish function to the Irssi.  Affected
8330           file irssi/configure.in.
8331
8332           A lot changes in the Makefile.ams around the irssi tree.
8333
8334 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8335
8336         * Do not rehash if the new size is same as the old size of the
8337           hash table, in the silc_hash_table_rehash*.  The affected file
8338           lib/silcutil/silchashtable.c.
8339
8340         * Replaced hash_table_del_by_context calls from the server
8341           (when channel->user_list and client->channels) to the
8342           hash_table_del as it is sufficient and faster.
8343
8344 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8345
8346         * Added silc_hash_table_list, silc_hash_table_get and the
8347           SilcHashTableList structure to provide an alternative way to
8348           traverse the hash table.  The affected files are
8349           lib/silcutil/silchashtable.[ch].
8350
8351         * Changed the server's idlist routines to use the hash table
8352           routines to optimize the code.
8353
8354 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8355
8356         * Replaced the client entry's `channel' list and channel entry's
8357           `user_list' list to hash tables for optimized lookup.  Changed
8358           the code to use the hash table interface around the code.
8359           Affected file lib/silcd/idlist.[ch].
8360
8361         * Added `auto_rehash' boolean argument to the function
8362           silc_hash_table_alloc to indicate whether the hash table should
8363           auto-rehash when it thinks is appropriate time.  It will
8364           increase the hash table size if the there is twice as much
8365           entries in the table than the size of the table, and will
8366           decrease the size if there are twice as less entries than
8367           the size of the table.
8368
8369 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8370
8371         * Fixed silc_xxx_get_supported to not crash at some circumstances.
8372
8373 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8374
8375         * silc_idcache_purge_by_context deletes the entry now by context
8376           as it is supposed to do.  Affected file lib/silccore/idcache.c.
8377
8378         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
8379           client is not anymore valid (WHOWAS givens the info) and not
8380           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
8381
8382 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8383
8384         * Removed the `data' and `data_len' arguments from the ID Cache
8385           interfaces and added `name' argument.  ID Cache does not handle
8386           anymore the binary data only a names associated with given ID.
8387
8388         * When hashing a Client ID with silc_hash_id the entire ID is
8389           not hashed anymore, instead only the hash of the Client ID is
8390           hashed.  This way we can access the Client ID from the cache
8391           with Client ID but with the hash of the ID (which is a hash of
8392           the nickname) as well without any difference in performance.
8393
8394           Added also silc_idcache_find_by_id_one_ext to do one on one
8395           searching when we have the actual ID.  Added also function
8396           silc_hash_client_id_compare.  The affected files are
8397           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8398
8399         * When hashing the name associated with a ID it is always done
8400           in lowercase.  This way we can access the cache without worrying
8401           about case-sensitivity, even though, for example nicknames are
8402           case sensitive.
8403
8404         * Fixed a bug in server with channel message sending.  It put
8405           wrong ID type as destination ID.  The affected file
8406           silcd/packet_send.c.
8407
8408         * silc_idcache_del_by_context now deletes from all hash tables
8409           by context.  Affected file lib/silccore/idcache.c.
8410
8411 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8412
8413         * Changed the client library to use the new ID Cache interface.
8414           Changes around the source tree.
8415
8416         * Added silc_hash_table_rehash_ext to rehash with specific
8417           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8418
8419         * Added silc_hash_string_compare to compare two strings in the
8420           hash table.  Affected file lib/silcutil/silcutil.[ch].
8421
8422 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8423
8424         * Added new function silc_idcache_del_by_context into the
8425           lib/silccore/idcache.[ch].
8426
8427         * Changed the server's ID list routines to use the new ID Cache
8428           interface.  Changes around the source tree.
8429
8430 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8431
8432         * Added silc_hash_table_del[_by_context]_ext functions in to the
8433           lib/silcutil/silchashtable.[ch].
8434
8435           Removed silc_hash_table_find_all* routines and added new
8436           silc_hash_table_find_foreach to replace them.
8437
8438           Added silc_hash_table_replace_ext function as extended
8439           replacing function.  Separated the simple hash table interface
8440           from the extended hash table interface in the file
8441           lib/silcutil/silchashtable.h.
8442
8443         * Fixed minor bugs and changed it to use some of the new
8444           hash table functions in lib/silccore/idcache.c
8445
8446 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8447
8448         * Added new function silc_hash_table_find_all to return all keys
8449           in the hash table by the specified key.  As the hash table is
8450           collision resistant it also makes it possible to have several
8451           duplicate keys in the hash table.  This function may be used to
8452           find all of the keys from the hash.
8453
8454           Added user_context arguments to the SilcHashFunction,
8455           SilcHashCompare and SilcHashDestructor to deliver user specified
8456           context.
8457
8458           Added new fuctions silc_hash_table_find[_all]_ext to do
8459           extended lookup with specified hash and compare functions and
8460           specified user contexts.
8461
8462           Added new function silc_hash_table_add_ext to add the key
8463           with specified hash function and user context.
8464
8465           Added new function silc_hash_table_foreach to traverse all
8466           entrys in the hash table.  Added SilcHashForeach callback
8467           function.
8468
8469           Added new function silc_hash_table_del_by_context to delete
8470           the entry only if the context associated with the key matches.
8471
8472           Affected files are lib/silcutil/silchashtable.[ch].
8473
8474         * Removed silc_hash_[server/client/channel]_id and added just
8475           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8476           silc_hash_id_compare to compare two ID's using as the hash table
8477           comparison function.  Added also silc_hash_data to hash
8478           binary data and silc_hash_data_compare to compare it.
8479
8480         * Removed silc_idlist_find_client_by_hash as it is not needed
8481           anymore.  Affected file silcd/idlist.[ch].
8482
8483         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8484           to use internally the SilcHashTable.  The new ID Cache is a lot
8485           faster than the old one.  Some of the ID Cache interface was also
8486           rewritten and obsolete and stupid functions were removed.
8487
8488 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8489
8490         * Added entry_count field to the SilcHashTable to keep the number
8491           of the entries in the table.  Implemented the function
8492           silc_hash_table_rehash.  Added new function
8493           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8494
8495           Fixed a minor bug in silc_hash_table_free.
8496
8497         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8498           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8499           into the lib/silcutil/silcutil.[ch].
8500
8501 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8502
8503         * Implemented a collision resistant hash table into the
8504           lib/silcutil/silchashtable[ch].  See the header and the source
8505           for the SilcHashTable API.
8506
8507 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8508
8509         * Merged dotconf version 1.0.2 into lib/dotconf.
8510
8511 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8512
8513         * Do not compile anything in lib/silcsim/* if the SIM support
8514           is not enabled.  The tree should now compile without problems
8515           under cygwin.
8516
8517 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8518
8519         * Compiled the SILC under cygwin.  Compiled and tested briefly
8520           without problems.  More tests needed.  The SIMs didn't compile
8521           though.
8522
8523         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8524
8525         * Fixed possible crash in silc_get_username in the
8526           lib/silcutil/silcutil.c.
8527
8528 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8529
8530         * Fixed a va_arg in silc/client_ops.c.
8531
8532         * Oops, RC5 routines were named AES and caused some problems
8533           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8534
8535 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8536
8537         * Added new SilcIDIP structure into the lib/silccore/id.h and
8538           replaced the old `ip' fields from all SILC ID's to that type.
8539           This is a step towards IPv6 support.
8540
8541           The silc_id_get_len takes now the ID as an extra argument.
8542           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8543           both IPv4 and IPv6 based ID's.
8544
8545           The affected files are lib/silccore/id.[ch] and other files
8546           around the tree using these routines.
8547
8548         * Removed the ID length arguments in server from various
8549           silc_server_send_notify_* routines -> they are not needed
8550           anymore.
8551
8552 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8553
8554         * Fixed memory leak in silc_encode_pem_file in the file
8555           lib/silcutil/silcutil.c.
8556
8557 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8558
8559         * Check minor version as well in the SKE.  Affected files are
8560           silcd/protocol.c and lib/silcclient/protocol.c.
8561
8562         * Added --identifier option to the server so that an identifier
8563           can be when creating the public key for the server.  Affected
8564           file is silcd/silcd.c.
8565
8566         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8567           lib/silccrypt/silcpkcs.c.
8568
8569 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8570
8571         * Register default ciphers and stuff when using -C option with
8572           the server.  Affected file sildc/silcd.c.
8573
8574         * Put back the servers public key filename format, it is better
8575           than the new one.  For now, the client keys are saved with the
8576           new filename format.  The affected file silc/client_ops.c.
8577
8578         * Implemented the Cipher API for the rest of the ciphers that
8579           did not implement it or implemented it the wrong way.
8580
8581 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8582
8583         * Register default ciphers and stuff when using the -S option
8584           in the client.  Affected file silc/silc.c.  Same also when
8585           creating new key pair with -C option.
8586
8587 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8588
8589         * Fixed the silc_verify_public_key client operation function to
8590           save the public keys differently.  The fingerprint is now
8591           used as filename and not the hostname.  This way also the
8592           client keys are saved uniquely and not with hostnames.  The
8593           affected file is silc/client_ops.c.
8594
8595         * Trimmed the silc_hash_fingerprint function to remove extra
8596           whitespaces from the end of the fingerprint.  The affected
8597           file is lib/silccrypt/silchash.c.
8598
8599         * Updated TODO.
8600
8601         * Added silc_cipher_register_default function to register all
8602           default ciphers.  It can be used when configuration files
8603           does not exist and the application does not want any specific
8604           ciphers in any specific order.
8605
8606           The SilcDList is now used as silc_cipher_list dynamically
8607           allocated cipher list.  Removed the static list all together
8608           and now all ciphers must be allocated to the dynamic list.
8609           The silc_cipher_alloc routine was changed to check only the
8610           dynamic list.
8611
8612           All silc_cipher_* routines that used to return int returns
8613           now bool.
8614
8615           The affected files lib/silccrypt/silccrypt.[ch].
8616
8617         * The same thing was done to silc_hash_* as for silc_cipher_*
8618           routines.  Affected files lib/silccrypt/silchash.[ch].
8619
8620         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8621           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8622           Added also silc_pkcs_[un]register[_default] functions.
8623           Removed the data_context from the PKCS API.
8624
8625         * Added silc_hmac_register_default function to register default
8626           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
8627           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
8628           to unregister all hmacs at once.
8629
8630         * Register the default ciphers, hash functions, PKCSs and HMACs
8631           if client's configuration file does not exist.  The affected
8632           file silc/silc.c.
8633
8634         * The client did not load the hash functions from the SIM
8635           modules at all.  Added support for this.  Affected file is
8636           silc/clientconfig.c.
8637
8638         * When decoding public key with silc_pkcs_public_key_decode, check
8639           the supported algorithm only if PKCS are registered.  Affected
8640           file lib/silccrypt/silcpkcs.c.  The same was done with the
8641           silc_pkcs_private_key_decode.
8642
8643         * Fixed the SILC List routines to keep the list always in order.
8644           It used to change the list's order when traversing the list but
8645           not it preserves the order.  Affected file lib/trq/silclist.h.
8646
8647 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8648
8649         * Added the client library to use the SilcSocketConnection's
8650           reference counter (by silc_socket_dup) to prevent the bug that
8651           the socket object may be freed underneath async operation.
8652
8653         * The name resolv library checking fixes in the configure.in.pre.
8654           The patch by salo.
8655
8656         * Created new version of the protocol drafts for future
8657           development. The -03 drafts are the ones that will be changed
8658           in the trunk now and the -02 will remain as they are.
8659
8660         * Send list of CUMODE notifys to the router when announcing
8661           the channel users to the router.  Affected file silcd/server.c.
8662           If the router receiving channel founder CUMODE for a channel
8663           that already has channel founder it will send CUMODE notify
8664           to the sender to remove the channel founder rights from the
8665           announced client.  Affected file silcd/packet_receive.c.
8666
8667         * The CUMODE notify may now use Server ID as well as the entity
8668           who changes the mode.  Updated protocool specs.
8669
8670         * Updated INSTALL and README files.
8671
8672 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8673
8674         * New web pages in the http://silc.pspt.fi.  The pages was
8675           designed by salo.
8676
8677         * Updated CREDITS.
8678
8679 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8680
8681         * Implemented the [DenyConnectin] config section in the server.
8682           Added silc_server_config_denied_conn to check whether incoming
8683           connection is denied.  Affected file silcd/serverconfig.[ch].
8684
8685         * Do not check the ports when checking the incoming configuration
8686           data if the port is 0, meaning any.  Affected file is
8687           silcd/serverconfig.c.
8688
8689 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8690
8691         * Fixed buffer overflow in silc_string_compare in the file
8692           lib/silcutil/silcutil.c.
8693
8694         * Fixed double free in silc_server_command_leave in the file
8695           silcd/command.c.
8696
8697 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8698
8699         * Fixed the version checking in the server.  Affected file is
8700           silcd/protocol.c.
8701
8702 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8703
8704         * Fixed the configuration data fetching when accepting new
8705           connections in the server.  Affected file silcd/server.c.
8706
8707 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8708
8709         * Added `sender_entry' argument to the function
8710           silc_server_packet_relay_to_channel so that we can check
8711           whether some destination actually belongs to the same route
8712           the sender belongs (ie, we must not resend the packet to the
8713           sender).  Affected file silcd/packet_send.[ch].
8714
8715         * Added `servername' field to the SilcClientEntry in the server
8716           to hold the name of the server where client is from.  Affected
8717           file is silcd/idlist.h.
8718
8719 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8720
8721         * Moved the channel message encrypting in the router betwen
8722           router connections from silc_server_channel_message to the
8723           silc_server_packet_relay_to_channel since we want to check
8724           whether we have anybody channel before encrypting anything.
8725           Affected files silcd/packet_[receive/send].c.
8726
8727 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8728
8729         * Fixed the [AdminConnection] server config section to support
8730           multiple entries.  Affected file silcd/serverconfig.c.
8731
8732         * Added support into the server to check the validity of the
8733           incoming connection before executing any KE or authentication
8734           protocols.
8735
8736         * The connection configuration is now saved to the KE and
8737           connection auth protocol contexts and not fetched anymore in
8738           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
8739
8740         * The local hosts listenning address and port is also resolved
8741           now when starting the server.  We want to have the socket object
8742           to include the real address and port for the listener.  Added
8743           new function silc_net_check_local_by_sock into the files
8744           lib/silcutil/silcnet.[ch].
8745
8746         * Fixed a broadcast bug in server -> do not broadcast if we
8747           are standalone.
8748
8749         * Fixed a routing bug.  Do not route broadcast packets ever.
8750           Broadcast packets must be processed always and not routed since
8751           they may be destined to some other host than yourself and thus
8752           would get routed without no good reason.  Affected file is
8753           silcd/server.c.
8754
8755         * Added function silc_server_config_is_primary_route to check
8756           whether primary router connection has been configured (a router
8757           configuration that we are initiating).  If there is not, we
8758           will assume that there is only two routers in the SILC network
8759           and we will use the incoming router connection as our primary
8760           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
8761
8762         * Changed the order of the broadcasting.  Broadcast _after_ the
8763           packet has been processed not before.  Affected file is
8764           silcd/server.c.
8765
8766         * Fixed a [ClientConnection] parsing bug.  The port was never
8767           parsed correctly thus resulting to port 0.  Affected file
8768           silcd/serverconfig.c.
8769
8770         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
8771           argument and did not set the broadcast packet flag.  Affected
8772           file silcd/packet_send.c.  Fixed same bug in the function
8773           silc_server_send_notify as well.
8774
8775         * If we receive NEW_ID packet for our own ID in the server, ignore
8776           the packet.
8777
8778 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8779
8780         * Updated TODO.
8781
8782         * Removed the nickname from the Private Message Payload.
8783           Updated the code and the protocol specs.
8784
8785         * Updated protocol specs for submitting to the IETF.
8786
8787         * Tweaked the Random Number Generator a bit.  Affected file
8788           lib/silccrypt/silcrng.c.  Exported a new function
8789           silc_rng_[global]_add_noise which can be used to add more
8790           noise to the RNG.
8791
8792 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8793
8794         * Do not parse packets with different timeout when protocol
8795           is active -> may cause problem with rekey.  Affected file
8796           silcd/server.c.
8797
8798         * When server receives signoff notify it must not create
8799           new channel key if the client is on any channels since the
8800           sender of the signoff notify will create it.
8801
8802 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8803
8804         * Added printing of error messages during SKE protocol from the
8805           failure packet sent by server during SKE.  Affected file
8806           silc/client_ops.c.
8807
8808         * Removed the client's failure_callback handling with timeout
8809           and handle it immediately when received.
8810
8811         * The SKE library returned wrong type in SUCCESS and FAILURE
8812           packets.  They must be 32 bit MSB not 16 bit MSB.
8813
8814 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8815
8816         * Ok, rewrote the logic of the re-key and now it seems to work.
8817           I tested it on high traffic with frequent re-keys without
8818           problems.  Added hmac_receive (and renamed hmac to hmac_send)
8819           in SilcClientConnection in lib/silcclient/client.h and
8820           in SilcIDListData in silcd/idlist.h.  Also, removed the
8821           SilcPacketParserContext's cipher and hmac fields as they are
8822           not needed anymore and actually caused some problems when
8823           the ciphers and hmac's changed underneath the packet parser.
8824
8825 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8826
8827         * If re-key protocol is active then process the incoming packets
8828           synchronously since we must assure that icoming packets encrypted
8829           with the old key is processed before the new keys is set to
8830           use.  This is true other packets than for REKEY packets.
8831           Affected file silcd/server.c.  The same was done to client library
8832           as well, affected file lib/silcclient/client.c.
8833
8834 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8835
8836         * Fixed bug in client and server to accept the force send if
8837           the packet is send from silc_[server/client]_packet_process
8838           function.  Otherwise the packets are never delivered, oops.
8839
8840 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8841
8842         * Disable force sending of packets when REKEY protocol is active.
8843           We must assure that no packet is sent directly when rekey is
8844           performed.  All packets must be sent through packet queue.
8845           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
8846           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
8847           function is silc_[server/client]_packet_send_real to check
8848           the situation.
8849
8850         * Replaced the SIM paths from example config files to
8851           /usr/local/modules.  Also, make install creates now
8852           /usr/local/silc/logs directory to hold all the SILC server
8853           logs.
8854
8855 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8856
8857         * Made the configure.in.pre work on Solaris.  Patch by salo.
8858
8859         * Made all ciphers compatible with non-x86 machines.  Defined
8860           CBC mode macros into lib/silccrypt/ciphers_def.h.
8861
8862 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8863
8864         * Fixed the make install.
8865
8866 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8867
8868         * When MAC computation fails the silc_packet_decrypt returned 0
8869           even though it was supposed to return -1.  Fixed this.  The
8870           affected file is lib/silccore/silcpacket.c.
8871
8872         * Do not replace the config files in /etc/silc (in make install)
8873           if they already exist.  Affected file ./Makefile.am.
8874
8875         * Do not send re-key packets immediately but through packet queue.
8876           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
8877
8878         * Changed silc_net_check_host_by_sock to return FALSE if the
8879           IP/DNS could not be resolved.  Though, it returns the IP address
8880           now even if it could not resolve it (but returns also FALSE).
8881           Affected file lib/silcutil/silcnet.[ch].
8882
8883 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8884
8885         * Added silc_pkcs_decode_identifier to decode the public key's
8886           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
8887           Added also silc_pkcs_free_identifier.  Added also new context
8888           SilcPublicKeyIdentifier.
8889
8890         * Added -S option to the silc client.  It is used to dump the
8891           contents of the specified public key file.
8892
8893         * Changed the PKCS api to return the public key length when
8894           setting the public key.
8895
8896         * Fixed a fatal bug in the public and private key file loading.
8897           Affected file lib/silccrypt/silcpkcs.c.
8898
8899         * Execute the packet parsing for client with zero (0) timeout
8900           if the protocol is active.  Affected file silcd/server.c.
8901
8902 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8903
8904         * Made the key generation options to the silcd program.  Added
8905           -C option, equivalent to client's option.
8906
8907         * Added new [ServerKeys] config section to the server.  It
8908           configures the server's public and private key.
8909
8910         * Defined generic Public Key Payload into the protocol
8911           specification to send specific type of public keys and
8912           certificates.
8913
8914         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
8915           public key or certificate.
8916
8917         * Implemented the GETKEY command to the server and to the
8918           client library and on user interface.
8919
8920 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8921
8922         * Made preliminary `make install' work.
8923
8924 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8925
8926         * Added SilcServerRekey context into silcd/idlist.h.
8927
8928         * Added the PFS support as defined in the specification to the
8929           SKE protocol.  Affected files lib/silcske/*.c.
8930
8931         * Added `ske_group' field to the SilcServerRekey context to hold
8932           the number of the SKE group that is used with PFS in re-key.
8933           Affected file silcd/idlist.h.
8934
8935         * Added PFS re-key support to the server.  Affected file is
8936           silcd/protocol.c.
8937
8938         * Added silc_protocol_cancel to cancel execution of the next
8939           state of the protocol.  Affected file is
8940           lib/silccore/silcprotocol.[ch].
8941
8942         * Added the re-key support with and without PFS to the client
8943           library.  Re-key is performed once in an hour, by default.
8944
8945           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
8946           Added silc_client_rekey_callback and silc_client_rekey_final.
8947           Affected files are lib/silcclient/protocol.[ch] and
8948           lib/silcclient/client.[ch].
8949
8950         * Removed the `hmac_key' and `hmac_key_len' fields from the
8951           SilcClientConnection structure; not needed.  Affected file is
8952           lib/silcclient/client.h.
8953
8954         * Updated TODO.
8955
8956 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8957
8958         * Do not ask whether user wants to use the negotiated private key
8959           for private messages, just use it.  Affected file is
8960           silc/local_command.c.
8961
8962         * Added `send_enc_key' and `enc_key_len' fields to the
8963           SilcIDListData structure since they are needed in the re-key
8964           phase.  Affected file is silcd/idlist.[ch].
8965
8966         * Implemented the simple re-key protocol into the server.
8967           Affected files silcd/server.c and silcd/protocol.[ch].  The
8968           re-key will be performed once in an hour, by default.
8969
8970           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
8971           Added silc_server_rekey, silc_server_rekey_callback and
8972           silc_server_rekey_final.
8973
8974         * Removed Tunneled flag from the protocol.  Updated the code
8975           and the specifications.
8976
8977         * Adde `pfs' field to the SilcIDListData to indicate whether
8978           the PFS is to be performed in the re-key.  Affected file is
8979           silcd/idlist.h.
8980
8981 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8982
8983         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
8984           int64 of at least the xintXX size.  If void * is less that 4
8985           bytes uint32 * will be used.  Defined bool as boolean.
8986
8987         * Changed _ALL_ unsigned long and unsigned int to uint32,
8988           unsgined short to uint16 in the source tree.
8989
8990         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
8991           not handle clients that has entry->data.registered == FALSE.
8992           They are not in the network anymore.  Affected file is
8993           silcd/server.c.
8994
8995 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8996
8997         * Implemented the sending of the SERVER_SIGNOFF notify in the
8998           server.  Affected file is silcd/server.c.
8999
9000         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9001           Added also silc_notify_payload_encode_args into the
9002           lib/silccore/silcnotify.[ch].
9003
9004         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9005           Affected file silcd/packet_receive.c.
9006
9007         * Implemented the SERVER_SIGNOFF notify handling in the client
9008           library.  Affected file lib/silcclient/client_notify.c.  Also,
9009           implemnted the printing of the SERVER_SIGNOFF info to the
9010           application.  Affected file silc/client_ops.c.
9011
9012         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9013           if the deleting was successful.  Affected file silcd/idlist.[ch].
9014
9015         * Added support for public key authentication in the connection
9016           authentication protocol in the client library.  Affected file
9017           lib/silcclient/protocol.c.
9018
9019         * Changed the server's silc_idlist_get_clients_by_* interface
9020           to support already allocated array so that new entries may be
9021           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9022           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9023           and command replies.
9024
9025         * All command reply functions in the server now calls the
9026           pending command callback even if error occured.  This way the
9027           error will be delivered to the client as well.  Affected files
9028           silcd/command.c and silcd/command_reply.c.
9029
9030         * Fixed INFO command to return local server's info if no server
9031           was provided.  Affected file lib/silcclient/command.c.
9032
9033         * Removed RESTART command for good.  Updated the code and the
9034           protocol specs.
9035
9036         * Rewrote parts of the task system.  It is a bit simpler now.
9037           Removed unsued task priorities. The affected files are
9038           lib/silcutil/silctask.[ch].
9039
9040 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9041
9042         * Moved the USERS printing from the library to the application.
9043           Affected files lib/silcclient/command.c and silc/client_ops.c.
9044
9045 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9046
9047         * Updated TODO.
9048
9049         * Added channel key re-key support.  The re-key is perfomed
9050           only by the router and is done once in an hour.  Added `rekey'
9051           field to the SilcChannelEntry in the server.  Affected files
9052           silcd/server.c and silcd/idlist.h.
9053
9054         * Added silc_task_unregister_by_context into the file
9055           lib/silcutil/silctask.[ch].
9056
9057 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9058
9059         * Added SILC_UMODE_GONE mode to indicate when the client is not
9060           present in the SILC network.  Added also support to the local
9061           command AWAY that will set this mode.  Added support of showing
9062           "xxx is gone" in WHOIS command.  The USERS command shows the
9063           gone status as well.
9064
9065         * Fixed setting server and router operator privileges in the
9066           server's UMODE command.  Affected file silcd/command.c.
9067
9068         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9069           new KE payload is equivalent to the old KE2 payload.
9070
9071           Cleaned up the SKE Start Payload parsing.  It now uses the
9072           simple buffer unformatting to do the parsing.  A lot faster
9073           now.
9074
9075           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9076           to the SKE that is used to indicate whether both of the SKE
9077           parties should perform authentication.  By default only the
9078           responder performs authentication.  By setting this flag also
9079           the initiator must do authentication.  By default it is unset
9080           since in normal SKE case, client to server connection, only
9081           the responder should do authentication.  When doing SKE between
9082           two clients both should perform authentication.  Updated the
9083           code and the protocol specs.
9084
9085         * A little fix to IDENTIFY command in the server.  Search the
9086           client first by hash not nickname.  Affected file is
9087           silcd/command.c.
9088
9089         * Fixed the silc_client_close_connection to support closing
9090           the client to client connections wihtout deleting too much
9091           data.  Affected file lib/silcclient/client.c.
9092
9093         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9094           are received if protocol used to be active but is not anymore
9095           the application would crash due to NULL pointer dereference.
9096           Affected files silcd/server.c and lib/silcclient/client.c.
9097
9098         * Added `hash' field to the SilcClientConnection to include
9099           the hash function negotiated in the SKE protocol.
9100
9101         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9102           to set the channel founder authentication data.  A client can
9103           claim the founder rights later by providing the authentication
9104           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9105           This way the channel founder can regain the channel founder
9106           privileges even it is left the channel.  This works only on
9107           local server and the client must be connected to the same
9108           server to be able to regain the founder rights.  Updated the
9109           protocol specs accordingly.
9110
9111           Added support to the CMODE command in the client to set the
9112           founder auth data.  Read the README to see how to set it.
9113
9114           Added support to the CUMODE command to claim the founder
9115           rights.  Read the README to see how to do it.
9116
9117           Added support for the founder authentication to the Channel
9118           Entry in the server.  Affected file silcd/idlist.h.
9119
9120           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9121           server's CMODE command.  Affected file silcd/command.c.
9122
9123         * Added the following new functions into lib/silccore/silcauth.[ch]:
9124           silc_auth_get_method and silc_auth_get_data.
9125
9126         * The server now saves the remote hosts public key to the
9127           SilcIDListData pointer.  Affected file silcd/protocol.c.
9128
9129         * The normal server now does not remove the channel entry from
9130           the cache if the founder authentication data is set.  It used
9131           to remove it if the founder was the last one on the channel on
9132           the server and left the channel.  The auth data is saved and
9133           if the channel is re-joined later the old entry is used with
9134           the old auth data.  Affected files silcd/command_reply.c and
9135           silcd/server.c.
9136
9137         * Removed the `pkcs' field from the SilcIDListData structure
9138           in the server; it is not used.  Affected file silcd/idlist.h.
9139
9140 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9141
9142         * Fixed packet processing on slow links.  Partial packets were
9143           never re-processed because the incoming data buffer was cleared
9144           by the application.  Application must not directly clear the
9145           sock->inbuf, the packet processing routines handle it.  Fixed
9146           this in client library and in server.
9147
9148 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9149
9150         * Fixed the WHOIS and IDENTIFY send reply function to really
9151           check whether to send list or just one entry.  Affected file
9152           silcd/command.c.
9153
9154         * Cleaned up the LEAVE command's channel key distribution.  The
9155           affected file silcd/command.c.
9156
9157         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9158           can enforce the channel mode as well.  In that case the ID
9159           includes the ID of the server.  The code now enforces the
9160           mode change if the router have different mode than the server.
9161
9162         * The notify client operation with CMODE_CHANGE notify can now
9163           return NULL client_entry pointer if the CMODE was not changed
9164           by client.  Application must check for this.
9165
9166         * Added <Server ID> argument to INFO command to support server
9167           info fetching by Server ID.
9168
9169         * Added silc_server_announce_get_channel_users to get assembled
9170           packets of channel users of the specified channel.  Affected
9171           file silcd/server.[ch].
9172
9173         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9174           was freed underneath the ID Cache.
9175
9176         * Re-announce clients when the server received CHANNEL_CHANGE
9177           notify from the router.  Affected file silcd/packet_send.c.
9178
9179 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9180
9181         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
9182           crashed since it did not handle the fact that there is no cipher
9183           called "3" and didn't check the error condition.  Now fixed.
9184
9185         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
9186           flag.  It can be used to send message requests.
9187
9188 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9189
9190         * Implemented the RESTART command in the client.
9191
9192         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
9193           notice type messages.  Added notice printing to the user
9194           interface.
9195
9196         * The channel keys are not re-generated if the channel's mode
9197           is PRIVKEY, ie private key on the channel exists.  Affected
9198           files silcd/server.c and silcd/command.c.
9199
9200         * Fixed a little bug in channel message delivery when channel
9201           private keys are set in the server.  Affected file is
9202           silcd/packet_send.c.
9203
9204         * Changed the setting on channel->on_channel = TRUE from the
9205           silc_client_save_channel_key to the JOIN command reply.  The
9206           key payload is not received if the private channel key is set.
9207           Affected file lib/silcclient/command_reply.c and the
9208           lib/silcclient/client_channel.c.
9209
9210         * When the CMODE_CHANGE notify is sent and the channel private
9211           key mode is removed the channel key must be re-generated in
9212           other cells as well.  Added this support for the router in the
9213           silcd/packet_receive.c.
9214
9215         * Added new local command NOTICE to send notice message on
9216           channel.  Affected file silc/local_command.[ch].
9217
9218 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9219
9220         * Added new local command ME to the client.  It is used to send
9221           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
9222           some action.  Affected file silc/local_command.[ch].
9223
9224         * Changed channel_message and private_message client operations
9225           to deliver the message flags to the application.  Added also
9226           the `flags' arguments to the silc_client_send_channel_message
9227           and silc_client_send_private_message functions.  Affected file
9228           silcapi.h.
9229
9230 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9231
9232         * Redefined the Private Message Payload to support private message
9233           keys and to support the new private message flags.  Updated
9234           the protocol specs.  Flags makes it possible to have for example
9235           CTCP style messages.
9236
9237         * Added new type SilcPrivateMessagePayload and defined an API
9238           for it in the lib/silcclient/silcprivate.[ch].
9239
9240         * Tested private message private keys successfully.  Tested the
9241           private message key set, unset and list commands with the new
9242           KEY command.
9243
9244         * Redefined the Channel Message Payload to include the channel
9245           message flags (equal with private message flags) to support
9246           for example CTCP style messages.
9247
9248         * Defined some of the message (for channel and private message)
9249           flags.  Updated the protocol specs and added the flags to the
9250           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
9251
9252 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9253
9254         * Added SilcKeyAgreementStatus type to the key agreement routines
9255           to indicate the current status and error if one occured.
9256           The status types are defined in the lib/silcclient/silcapi.h.
9257
9258         * Added new local command KEY that is used to set and unset private
9259           keys for channels, set and unset private keys for private messages
9260           with remote clients and to send key agreement requests and
9261           negotiate the key agreement protocol with remote client.  The
9262           key agreement is supported only to negotiate private message keys,
9263           it currently cannot be used to negotiate private keys for channels,
9264           as it is not convenient for that purpose.
9265
9266         * Fixed a minor pending callback setting bug in the function
9267           silc_client_get_client_by_id_resolve, now the function works.
9268           Affected file lib/silcclient/idlist.c.
9269
9270         * Added function silc_net_get_local_port to get local bound
9271           port by socket.  Added to lib/silcutil/silcnet.[ch].
9272
9273         * Added `sockets' and `sockets_count' fields to the SilcClient
9274           object.  They hold the sockets of the listenning sockets in
9275           the client.  Listenning sockets may be for example the key
9276           agreement server.  Affected file lib/silcclient/client.[ch].
9277           Added functions the silc_client_add_socket and the
9278           silc_client_del_socket.  They are exported to the application
9279           as well.
9280
9281         * Added ~./silc/clientkeys to support other client's public keys.
9282
9283         * Renamed verify_server_key client operation to verify_public_key
9284           and added one argument to indicate the type of the connection
9285           (server, client etc.).
9286
9287 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9288
9289         * Added silc_server_connection_auth_request to handle the
9290           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
9291           silcd/packet_receive.[ch].
9292
9293         * Added silc_server_send_connection_auth_request into the
9294           silcd/packet_send.c to send the connection auth request packet.
9295
9296         * Cleaned up the silcd/protocol.c a bit and fixed some memory
9297           leaks.
9298
9299         * Fixed the public key authentication in responder side in the
9300           server.  The `auth_data' pointer includes the SilcPublicKey
9301           not the path to the public key.  Affected file silcd/protocol.c.
9302
9303         * Implemented the public key authentication in the initiator side
9304           in the server.  Affected file silcd/protocol.c.
9305
9306         * Removed the [RedirectClient] config section from the server
9307           configuration.  Is not needed and I don't want to implement it.
9308
9309 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9310
9311         * Cleaned up the CMODE command in the server.  It now works
9312           correctly and supports all the modes defined in the protocol.
9313           Affected file is silcd/command.c.
9314
9315         * Added `hmac_name' field to the SilcChannelEntry in the server
9316           to hold the default HMAC of the channel.  It can be set when
9317           creating the channel (with JOIN command).  Affected files
9318           silcd/idlist.[ch].
9319
9320         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
9321           type to indicate the change of the current cipher and hmac
9322           on the channel.  Client can safely ignore the <cipher> argument
9323           (if it chooses to do so) since the CHANNEL_KEY packet will
9324           force the channel key change anyway.  The <hmac> argument is
9325           important since the client is responsible of setting the new
9326           HMAC and the hmac key into use.
9327
9328         * Fixed the CMODE command in the client library as well.
9329
9330         * Tested CMODE command in router environment successfully.
9331
9332 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9333
9334         * Show the version of the remote client (or server) when connecting
9335           to the server.  It is logged to the log file.  Affected file
9336           is silcd/protocol.c.
9337
9338         * Fixed the KILLED notify handling in the client library.  The
9339           client must be removed from all channels when receiving the
9340           KILLED notify.
9341
9342           Also, do not remove the client entry when giving the KILL
9343           command but when the KILLED notify is received.
9344
9345         * Removed silc_idlist_find_client_by_nickname from the server.
9346           Not needed anymore.  Affected files silcd/idlist.[ch].
9347
9348         * Implemented the CHANNEL_CHANGE notify type handling to the
9349           server.  Affected file silcd/server.c.
9350
9351         * Updated TODO.
9352
9353 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9354
9355         * Added silc_server_send_notify_invite to send the INVITE
9356           notify between routers.
9357
9358         * Implemented the INVITE command correctly to the server.
9359
9360         * Implemented the INVITE notify type handling in the server.
9361
9362         * Implemented the INVITE command to the client library and on the
9363           user interface.
9364
9365 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9366
9367         * Added function silc_server_get_client_resolve to find the
9368           client entry by ID from all ID lists and then resolve it
9369           (using WHOIS) if it cannot be found.  Affected file is
9370           silcd/server.[ch].
9371
9372 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9373
9374         * Implemented the BAN command to the client library.
9375
9376         * The JOIN command in the server now checks the invite list
9377           and the ban list.
9378
9379         * Changed the silc_command_reply_payload_encode_va and the
9380           silc_command_payload_encode_va to support that if argument is
9381           NULL it ignores and checks the next argument.  Affected file
9382           lib/silccore/silccommand.c.
9383
9384         * Added silc_server_send_notify_ban to send the BAN notify
9385           type between routers.
9386
9387         * Chaned the silc_notify_payload_encode to support that if
9388           argument is NULL it ignores and checks the next argument.
9389           Affected file lib/silccore/silcnotify.c.
9390
9391         * Tested ban lists in router environment successfully.
9392
9393 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9394
9395         * Implemented BAN command to the server, in silcd/command.[ch].
9396
9397         * Removed the BAN and INVITE_LIST modes from the CMODE command
9398           in the server code.
9399
9400         * Added function silc_string_match to regex match two strings.
9401           Affected files lib/silcutil/silcutil.[ch].
9402
9403 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9404
9405         * Redefined parts of the SilcChannelEntry in the server to support
9406           the new ban and invite lists.
9407
9408 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9409
9410         * Redefined the INVITE command.  The same command can be used to
9411           invite individuals to the channel but also to manage the invite
9412           list of the channel (to add to and remove from the invite list).
9413           Updated the protocol specs.
9414
9415         * Added new command SILC_COMMAND_BAN that can be used to manage
9416           the ban list of the channel.  Updated the protocol specs.
9417
9418         * Removed the channel modes: the SILC_CMODE_BAN and the
9419           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9420           in the CMODE command.  The equivalent features are now available
9421           using INVITE and BAN commands.  Updated the protocol specs.
9422
9423         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9424           in the network about change in the current ban list.  The notify
9425           type is not used by the client.
9426
9427         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9428           support the invite lists.
9429
9430 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9431
9432         * Added new function silc_string_regexify that converts string
9433           including wildcard characters into regex string that can
9434           be used by the GNU regex library.  Added into the file
9435           lib/silcutil/silcutil.[ch].
9436
9437           Added silc_string_regex_combine to combine to regex strings
9438           into one so that they can be used as one regex string by
9439           the GNU regex library.  Added into the file
9440           lib/silcutil/silcutil.[ch].
9441
9442           Added silc_string_regex_match to match two strings.  It returns
9443           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9444
9445 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9446
9447         * Imported GNU regex to the soruce tree into lib/contrib.
9448           Fixed some compiler warning from the regex.c.
9449
9450 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9451
9452         * Fixed MOTD command in the server to work in router environment.
9453
9454         * Fixed the MOTD command in the client library to support
9455           the server argument in the command.
9456
9457         * Added `nickname_len' argument to the silc_idlist_add_client
9458           in the server, as the `nickname' argument may be binary data
9459           (it may be hash).
9460
9461         * Added silc_idlist_get_channels to return all channels from
9462           the ID list.
9463
9464         * Implemented LIST command to the server.  Affected file is
9465           silcd/command.c.
9466
9467         * Implemented the LIST command to the client library and on the
9468           user interface.
9469
9470         * Added [<user count>] argument to the LIST command reply.
9471           With private channels the user count is not shown.
9472
9473         * Updated TODO and README.
9474
9475 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9476
9477         * The client entry's data.registered must be TRUE even with
9478           global client entry on global client list.  The data.registered
9479           is used to check whether the client is anymore in the network,
9480           for example with WHOWAS command so it must be valid.
9481
9482         * Fixed the WHOWAS command in the server.  It now actually works
9483           in router environment.  Added function into silcd/command_reply.c
9484           silc_server_command_reply_whowas_save.
9485
9486         * Added silc_idlist_purge function to the silcd/idlist.c
9487           to periodically purge the ID Cache.
9488
9489         * Fixed INFO command in the server.  It works now in router
9490           environment.  Added <server name> argument to the INFO command
9491           reply.  Updated the protocol specs.
9492
9493         * Fixed minor bug in silc_idcache_purge to not purge if the
9494           expire value is zero.
9495
9496         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9497           they were buggy because of the WHOWAS information.
9498
9499         * Fixed local command MSG to handle the async resolving of
9500           the remote client properly.  It used to fail the first MSG.
9501           Affected file silc/local_command.c.
9502
9503         * Added `data_len' field to SilcIDCache context.
9504
9505 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9506
9507         * Update TODO.  Todo in commands in the server.
9508
9509 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9510
9511         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9512           used by routers as broadcast packet to inform other routers
9513           about the changed user mode.
9514
9515           Implemented the notify handling in the server.  Affected file is
9516           silcd/packet_receive.c.  Added the function
9517           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9518
9519         * Added new generic Channel Payload and deprecated the New Channel
9520           Payload.  The New Channel Payload is now the generic Channel
9521           Payload.
9522
9523         * Added new argument `mode' to the silc_server_send_new_channel
9524           as it is required in the Channel Payload now.
9525
9526         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9527           and created a new and real SilChannelPayload to represent the
9528           new generic Channel Payload.  Implemented the encode/decode
9529           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9530
9531         * Added silc_server_get_client_channel_list to return the list
9532           of channels the client has joined for WHOIS command reply.
9533           Affected file silcd/server.[ch].
9534
9535         * Implemented the channel list sending in the WHOIS command reply
9536           in server and in the client.
9537
9538           Implemented the channel list displaying on the user interface
9539           as well.  Affected file silc/client_ops.c.
9540
9541         * Added silc_channel_payload_parse_list to parse list of Channel
9542           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9543           Client for example can use this function to parse the list of
9544           channels it receives in the WHOIS command reply.  The caller
9545           must free the list by calling silc_channel_payload_list_free.
9546           Affected files lib/silccore/silcchannel.[ch].
9547
9548 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9549
9550         * Added one new argument <user mode> to the WHOIS command reply
9551           to return the mode of the user in SILC.  Updated the protocol
9552           specs.
9553
9554           Implemented it to the server and client.
9555
9556 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9557
9558         * Fixed the mode printing on the user interface on joining.
9559           Affected file silc/client_ops.c.
9560
9561         * Implemented the UMODE command and user modes in general to the
9562           client library and to the user interface.
9563
9564         * Implemented the UMODE command to the server.
9565
9566         * The server now sends UNKNOWN_COMMAND error status if client sends
9567           unknown command.  Affected file silcd/command.c.
9568
9569         * All server commands now handle the command identifier the right
9570           way when sending the command reply to the client.  The client can
9571           use to identify the command replies with the identifier.
9572
9573 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9574
9575         * Added silc_server_get_client_route to resolve the route to
9576           the client indicated by the client ID.  Affected file is
9577           silcd/server.[ch].
9578
9579         * Added silc_server_relay_packet as general function to relay
9580           packet to arbitrary destination.  This deprecates functions
9581           like _send_private_message_key, _relay_notify etc.  Affected
9582           file is silcd/packet_send.[ch].
9583
9584           Removed silc_server_send_key_agreement,
9585           silc_server_send_private_message_key and
9586           silc_server_packet_relay_notify functions from the file
9587           silcd/packet_send.[ch].
9588
9589         * Updated TODO.
9590
9591         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9592           server.  Affected file silcd/packet_receive.[ch].
9593
9594         * Implemented the KILL command to the client.  Implemented the
9595           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9596           Affected files lib/silcclient/command[_reply].c and
9597           lib/silcclient/client_notify.c.  Implemented the KILL notify
9598           printing in the user inteface.
9599
9600         * Fixed a lot silc_parse_nick memory leaks from the client
9601           library in the file lib/silcclient/command.c.
9602
9603         * Changed the silc_server_send_notify_on_channels's `sender'
9604           argument from SilcSocketConnection to SilcClientEntry to
9605           check the sender as entry and not as connection object and not
9606           to send to the client provided as argument.  The affected file
9607           is silcd/packet_send.[ch].
9608
9609         * The notify packets that are destined directly to the client used
9610           to not to be processed by the server.  Now changed that and the
9611           server processes all notify packets.  After relaying the packet
9612           to the client the notify packet is processed in the server.
9613
9614         * The silc_server_free_client_data now checks whether there is
9615           pending outgoing traffic for the client and purges the data to
9616           the network before removing the client entry.
9617
9618 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9619
9620         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9621           an client is killed from the SILC Network.  Updated the protocol
9622           specs accordingly.
9623
9624           Added new function silc_server_send_notify_killed to the
9625           silcd/packet_send.[ch].
9626
9627         * Added function silc_server_packet_relay_notify to relay notify
9628           packets that are destined directly to a client.  In this case
9629           the server does not process the notify packets but merely relays
9630           it to the client.  Affected file silcd/packet_send.[ch].
9631
9632           Added also silc_server_packet_process_relay_notify to check
9633           whereto relay the notify.  Affected file is
9634           silcd/packet_receive.[ch].
9635
9636         * Implemented the KILL command to the server.
9637
9638         * Updated TODO.
9639
9640         * Added the backup schema desgined last fall to the protocol
9641           specs for everyone to see.  The specification is in the
9642           *-spec-xx.txt draft and the packet type definitions for the
9643           backup routers is in *-pp-xx.txt draft.  Thusly, added also
9644           new packet type SILC_PACKET_CELL_ROUTERS.
9645
9646         * A big security problem in the implementation discovered.  The
9647           signoff of an client did not cause new channel key generation
9648           which it of course should've done.  The channel keys must be
9649           always re-generated when client leaves (or signoffs) the channel.
9650           The silc_server_remove_from_channels funtion now handles
9651           the channel key re-generation.
9652
9653         * Added `sender' argument to the silc_server_send_notify_on_channels
9654           to not to send the client provided as argument.  Affected file
9655           silcd/packet_send.[ch].
9656
9657 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9658
9659         * Implemented OPER and SILCOPER commands into the server and
9660           the client library.
9661
9662         * Added silc_auth_verify and silc_auth_verify_data to verify
9663           the authentication directly from the authentication payload.
9664           It supports verifying both passphrase and public key based
9665           authentication.  Affected file lib/silccore/silcauth.[ch].
9666
9667         * Added `hash' field to the SilcIDListData structure.  It is the
9668           hash negotiated in the SKE protocol.  Affected file is
9669           silcd/idlist.[ch].
9670
9671         * Slight redesigning of the SilcAuthPayload handling routines.
9672           Do not send SilcPKCS but SilcPublicKey as argument.
9673
9674         * Implemented the public key authentication support to the
9675           serverconfig.  The public key is loaded from the provided path
9676           and saved as authentication data to void * pointer.  Thus,
9677           changed the unsigned char *auth_data to void *auth_data;
9678
9679         * Fixed SHUTDOWN command to send the reply before the server
9680           is shutdown. :)  Affected file silcd/command.c.
9681
9682         * Fixed fatal bug in CONNECT command.  The hostname was invalid
9683           memory and server crashed.  Affected file silcd/command.c.
9684
9685         * Fixed fatal bug in CLOSE command.  The server_entry became
9686           invalid but was referenced later in the command.  Affected file
9687           silcd/command.c.
9688
9689 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9690
9691         * Fixed fatal bug in failure packet handling.  Server ignored
9692           the failure and thus crashed when it came.
9693
9694         * Updated TODO.
9695
9696 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9697
9698         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
9699           that the command may be executed only once in (about) 2 seconds.
9700           The old SILC_CF_LAG flag is same but allows command bursts up
9701           to five before limiting.
9702
9703           Added the support for CF_LAG and CF_LAG_STRICT flags to the
9704           server code.  Various commands now includes the CF_LAG_STRICT
9705           flag to disallow any kind of miss-use of the command.
9706
9707         * Fixed the silc_buffer_unformat to not to allocate any data
9708           if the length of the data is zero.  It used to allocate the
9709           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
9710
9711 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9712
9713         * Changed the format of AdminConnection configuration section
9714           in the server.  Added username of the admin to the format.
9715           Affected files silcd/serverconfig.[ch].
9716
9717           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
9718           to return admin configuration data by host, username and/or
9719           nickname.
9720
9721 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9722
9723         * Implemented WHOWAS command to the server.  Added the functions:
9724
9725           silc_server_command_whowas_parse,
9726           silc_server_command_whowas_send_reply,
9727           silc_server_command_whowas_from_client and
9728           silc_server_command_whowas_from_server
9729
9730         * Added <Client ID> argument to the WHOWAS command reply.  Updated
9731           the protocol specs accordingly.
9732
9733         * Implemented WHOWAS command and command_reply to the client
9734           library.
9735
9736           Implemented the WHOWAS printing on the user interface.
9737
9738 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9739
9740         * Added new argument to the WHOWAS command reply, the real name.
9741           It is an optional argument.  Updated the protocol specs.
9742
9743         * Added SilcIDCacheDestructor callback that is registered when
9744           the SilcIDCache is allocated.  The callback is called when
9745           an cache entry in the ID Cache expires, or is purged from the
9746           cache.  Added into lib/silccore/idcache.[ch].
9747
9748           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
9749           to destruct the client entries when the cache entry expires.
9750           Other ID Cache's in server and in the client library ignores
9751           the destructor.
9752
9753         * If the ID Cache entry's `expire' field is zero then the entry
9754           never expires.  Added boolean `expire' argument to the
9755           silc_idcache_add function in the lib/silccore/idcache.[ch].
9756           If it is TRUE the default expiry value is used.
9757
9758         * Added silc_server_free_client_data_timeout that is registered
9759           when client disconnects.  By default for 5 minutes we preserve
9760           the client entry for history - for WHOWAS command.
9761
9762 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9763
9764         * Added support to the server to enforce that commands are not
9765           executed more than once in 2 seconds.  If server receives
9766           commands from client more frequently, timeout is registered
9767           to process the commands.  Affected file silcd/command.c.
9768           Added new function silc_server_command_process_timeout.
9769
9770         * Changed NICK_NOTIFY handling in client library to check that
9771           if the client's nickname was changed, so there is no need to
9772           resolve anything from the server.
9773
9774         * Removed error printing from the WHOIS and IDENTIFY commands.
9775           If error occurs then it is ignored silently in the client library.
9776           The application, however, may map the received error to
9777           human readable error string.  The application currently maps
9778           the NO_SUCH_NICKNAME error to string.
9779
9780         * Made the command status message public to the application.  Moved
9781           them from lib/silcclient/command_reply.c to
9782           lib/silcclient/command_reply.h.  The application can map the
9783           received command status to the string with the
9784           silc_client_command_status_message function.
9785
9786         * Added check to the server to check that client's ID is same
9787           as the Source ID in the packet the client sent.  They must
9788           match.
9789
9790 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9791
9792         * Added dist-bzip hook to the Makefile.am to make bzip2
9793           compressed distributions.
9794
9795 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9796
9797         * Server now enforces the maximum length for the nickname and
9798           the channel as protocol specification dictates.  128 bytes for
9799           nickname and 256 bytes for channel name.
9800
9801         * Moved the WHOIS printing to the application.  The client libary
9802           does not print out the WHOIS information anymore, the application
9803           must do it.  Renamed silc_client_command_reply_whois_print to
9804           the silc_client_command_reply_whois_save.
9805
9806           The client's idle time is also sent to the application now, and
9807           the idle is shown on screen.
9808
9809         * Added silc_client_command_reply_identify_save to save the
9810           received IDENTIFY entries.
9811
9812         * Do not check for channel private keys in message sending and
9813           reception if the channel does not have the PRIVKEY mode set.
9814           Affected file lib/silclient/client_channel.c.
9815
9816 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9817
9818         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
9819           just surfaced after chaning the JOIN procedure.
9820
9821 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9822
9823         * Added silc_client_get_clients_by_list to get client entries
9824           from Client ID list, that is returned for example by JOIN
9825           and USERS command replies.  The application should use this
9826           function for example when JOIN command reply is received to
9827           resolve the clients already on the channel (library does not
9828           do that anymore as USERS command reply is not used in the JOIN
9829           procedure anymore).  Affected files lib/silcclient/silcapi.h and
9830           lib/silcclient/idlist.c.
9831
9832         * JOIN command reply and USERS command reply returns now SilcBuffer
9833           pointers instead of unsigned char pointers when returning
9834           the client list and mode list.
9835
9836         * Added <Client ID> argument to the JOIN command reply, mainly
9837           for the server to identify for which client the command was
9838           originally sent.  Updated protocol specs accordingly.
9839
9840         * Added SilcDlist private_key pointer to the SilcChannelEntry
9841           in the client to support the channel private keys.  Affected
9842           file is lib/silcclient/idlist.h.
9843
9844         * Added SilcChannelPrivateKey argument to the function
9845           silc_client_send_channel_message so that application can choose
9846           to use specific private ke if it wants to.  If it is not provided,
9847           the normal channel key is used, unless private keys are set.
9848           In this case the first (key that was added first) is used
9849           as the encryption key.
9850
9851         * Implemented the support for channel private key handling.
9852           Implemented the following functions:
9853
9854           silc_client_add_channel_private_key,
9855           silc_client_del_channel_private_keys,
9856           silc_client_del_channel_private_key,
9857           silc_client_list_channel_private_keys and
9858           silc_client_free_channel_private_keys
9859
9860           Affected file lib/silcclient/client_channel.c.
9861
9862         * Added the support for the private keys in the channel message
9863           sending and encryption and in the message reception and
9864           decryption.  Affected funtions are
9865           silc_client_send_channel_message and silc_client_channel_message.
9866
9867 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9868
9869         * Added SKE's key verify callback to the client library's
9870           KE protocol context. Affected files lib/silcclient/protocol.[ch].
9871
9872         * Removed the statement that server (or router) must send USERS
9873           command reply when joining to the channel so that the client
9874           knows who are on the channel.  Instead, the client list and
9875           client's mode list is now sent in the JOIN command reply to the
9876           client who joined channel.  This is better solution.
9877
9878         * Added function silc_server_get_users_on_channel and function
9879           silc_server_save_users_on_channel to the silcd/server.[ch].
9880
9881         * Removed function silc_server_command_send_users from the
9882           silcd/command.c.
9883
9884         * Do not show topic on the client library anymore.  The topic is
9885           sent in the command reply notify to the application and the
9886           application must show the topic now.
9887
9888 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9889
9890         * Added client searching by nickname hash into the IDENTIFY and
9891           WHOIS commands in the server as they were clearly missing from
9892           them.  Affected file is silcd/command.c.
9893
9894         * Fixed a bug in private message receiving in the client library.
9895           The remote ID was freed and it wasn't supposed, now it is
9896           duplicated.
9897
9898 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9899
9900         * Minor fix to the channel payload; allocate the data area, as it
9901           needs to be of specific length.
9902
9903         * If the key agreement port is zero then the operating
9904           system will define the bound port.  Affected files are
9905           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
9906
9907         * Added new function silc_channel_payload_decrypt into the file
9908           lib/silccore/silcchannel.[ch].
9909
9910         * Moved the channel message etc, check from silc_packet_decrypt
9911           to applications.  The library calls now a generic
9912           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
9913           when the packet is either normal or special.  This was done to
9914           allow more wide range of checking that was not allowed when
9915           the code was in library.  Now applications can do virtually any
9916           checks to the packet and return to the library the decision how
9917           the packet should be processed.  Affected files are
9918           lib/silccore/silcpacket.[ch].
9919
9920           Added silc_server_packet_decrypt_check to the server and
9921           silc_client_packet_decrypt_check to the client library.
9922
9923         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
9924           to send with specified source and destination information.
9925
9926         * Channel message delivery between routers was broken after the
9927           channel key distribution was fixed earlier.  The channel key
9928           was used be to distributed to other routers as well which is not
9929           allowed by the protocol.  Now this is fixed and channel keys
9930           really are cell specific and the channel message delivery between
9931           routers comply with the protocol specification.
9932
9933         * Fixed various commands in server to check also the global list
9934           for the channel entry and not just the local list.  The affected
9935           file silcd/command.c.
9936
9937 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9938
9939         * Added assert()s to buffer formatting and unformatting routines
9940           to assert (if --enable-debug) when error occurs.  Affected
9941           file: lib/silcutil/silcbuffmt.c.
9942
9943         * Changed to auto-reconnect to check whether the remote host is
9944           router and register the re-connect timeout if it is.  It used
9945           to check that whether we are normal server, but router must do
9946           auto-reconnect with another router as well.  Affected file
9947           silcd/server.c.
9948
9949         * Removed the [<key len>] option from CMODE command as the cipher
9950           name decides the key length, nowadays.  See the defined ciphers
9951           from the protocol specification.
9952
9953         * Added [<hmac>] option to the CMODE command to define the HMAC
9954           for the channel.  Added SILC_CMODE_HMAC channel mode.
9955
9956         * Added [<hmac>] option for the JOIN command so that user can
9957           select which HMAC is used to compute the MACs of the channel
9958           messages.
9959
9960         * Added Hmac field to the Channel Message Payload.  The integrity
9961           of plaintext channel messages are now protected by computing
9962           MAC of the message and attaching the MAC to the payload.  The
9963           MAC is encrypted.  Now, it is clear that this causes some
9964           overhead to the size of the packet but rationale for this is that
9965           now the receiver can verify whether the channel message decrypted
9966           correctly and also when private keys are set for the channel the
9967           receiver can decrypt the packet with several keys and check from
9968           the MAC which key decrypted the message correctly.
9969
9970         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
9971           lib/silccrypt/silccipher.[ch].
9972
9973         * Added silc_hash_len to return the digest length into the
9974           lib/silcrypt/silchash.[ch].
9975
9976         * Rewrote parts of Silc Channel Payload interface in the
9977           lib/silccore/silcchannel.[ch].  The encode function now also
9978           encrypts the packet and parse function decrypts it.
9979
9980 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9981
9982         * Fixed a minor formatting bug in the SKE's key material processing.
9983           It actually might have processed the keys wrong way resulting
9984           into wrong keys.
9985
9986         * Redefined the mandatory HMAC algorithms and added new algorithms.
9987           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
9988           and hmac-md5 truncated to 96 bits.  The mandatory is now
9989           hmac-sha1-96.  Rest are optional (including the one that used
9990           to be mandatory).  Rationale for this is that the truncated HMAC
9991           length is sufficient from security point of view and can actually
9992           make the attack against the HMAC harder.  Also, the truncated
9993           HMAC causes less overhead to the packets.  See the RFC2104 for
9994           more information.
9995
9996         * Added new [hmac] configuration section.  The SKE used to use
9997           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
9998           is of course wrong.  The official names that must be proposed in
9999           the SKE are the ones defined in the protocol specification
10000           (hmac-sha1-96 for example).  The user can configure any hmac
10001           using any hash function configured in the [hash] section.  At
10002           least, the mandatory must be configured.
10003
10004           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10005
10006         * Added HMAC list to the SKE proposal list.  It has now both
10007           hash algorithm list and HMAC list.  This makes the protocol
10008           incompatible with previous versions.  The SKE now seems to work
10009           the way it is supposed to work, for the first time actually.
10010
10011         * Defined plain Hash algorithms to the protocol specification.
10012           Added sha1 and md5.
10013
10014 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10015
10016         * Implemented support for key agreement packets into the server.
10017           Added functions silc_server_key_agreement and
10018           silc_server_send_key_agreement.  Other than these functions,
10019           server has nothing to do with this packet.
10020
10021         * Added support for private message key packets into the server.
10022           Added functions silc_server_private_message_key and
10023           silc_server_send_private_message_key.
10024
10025         * Updated TODO.
10026
10027         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10028           called in the protocol's final callback instead in the END
10029           protocol state.  This makes a little more sense and in the same
10030           time in client we can use the same protocol routines for normal
10031           key exchange and to key agreement packet handling as well.
10032
10033         * Added to both client's and server's KE protocol context the
10034           SilcSKEKeyMaterial pointer to save the key material.  We will
10035           bring the key material to the protocol's final callback by doing
10036           this.  The final callback must free the key material.
10037
10038         * Added SKE's packet_send callback into client's KE protocol
10039           context so that the caller can choose what packet sending function
10040           is used.  This way we can use different packet sending when
10041           doing normal SKE when doing key agreement packet handling (in
10042           the key agreement packet handling we do not want to encrypt
10043           the packets).
10044
10045         * Implemented the responder side of the key agreement routines
10046           in the client.  The client can now bind to specified port and
10047           accept incoming key negotiation.  The key material is passed
10048           to the application after the protocol is over.
10049
10050         * Implemented the processing of incoming Key Agreement packet
10051           in the client.  Added function silc_client_key_agreement to
10052           process the packet.
10053
10054         * Implemented the intiator side of the key agreement routines
10055           in the client.  The client can now initiate key agreement with
10056           another remote client.  The key material is passed to the
10057           application after the protocol is over.
10058
10059         * Created client_keyagr.c to include all the key agreement
10060           routines.
10061
10062         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10063           SILC_TASK_CALLBACK except that it is not static.
10064
10065         * Created client_notify.c and moved the Notify packet handling
10066           from the client.[ch] into that file.
10067
10068         * Created client_prvmsg.c and moved all private message and
10069           private message key routines from the client.[ch] into that file.
10070
10071         * Create client_channel.c and moved all channel message and
10072           channel private key routines from the client.[ch] into that file.
10073
10074         * Changed silc_client_get_client_by_id_resolve to resolve with
10075           WHOIS command instead of IDENTIFY command, in the file
10076           lib/silclient/idlist.c.
10077
10078 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10079
10080         * Implemented the SKE's responder side to the Client library.
10081
10082         * When FAILURE is received to the protocol do not trust it
10083           blindly.  Register a timeout to wait whether the remote closes
10084           the connection as it should do it, only after that process the
10085           actual failure.  This was changed to both client and server.
10086
10087         * Added client_internal.h to include some of the structures
10088           there instead of client.h in lib/silcclient/.
10089
10090         * Added function silc_task_unregister_by_callback to unregister
10091           timeouts by the callback function.
10092
10093 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10094
10095         * Some "Incomplete WHOIS info" errors has been appearing on the
10096           log files.  Took away the entry->userinfo check from WHOIS
10097           reply sending.  The entry->userinfo is now " " if client did not
10098           provide one.  I thought this was fixed earlier but something
10099           is wrong still.  Let's see if the error still appears.
10100
10101 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10102
10103         * Fixed a minor bug in the login when the channel key is
10104           re-generated in the server.  It used to generate the key in
10105           wrong order and thus caused problems in the channel traffic.
10106
10107         * Fixed a minor bug in channel key distsribution after
10108           KICK command.  The key was not sent to the router even though
10109           it should've been.
10110
10111 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10112
10113         * Added silc_ske_process_key_material_data as generic routine
10114           to process any key material as the SILC protocol dictates.  The
10115           function is used by the actual SKE library but can be used by
10116           applications as well.  This relates to the private message keys
10117           and the channel private keys since they must be processed the
10118           same way the normal SILC session keys.  The protocol dictates
10119           this.  Affected files: lib/silcske/silcske.[ch].
10120
10121           Added also silc_ske_free_key_material to free the
10122           SilcSKEKeyMaterial structure.
10123
10124         * Defined silc_cipher_set_key function to set the key for
10125           cipher without using the object's method function.  The affected
10126           files: lib/silccrypt/silccipher.[ch].
10127
10128         * Implemented silc silc_client_add_private_message_key,
10129           silc_client_add_private_message_key_ske,
10130           silc_client_del_private_message_key,
10131           silc_client_list_private_message_keys and
10132           silc_client_free_private_message_keys functions in the
10133           client library.
10134
10135           Added functions silc_client_send_private_message_key to send
10136           the Private Message Key payload and silc_client_private_message_key
10137           to handle incoming Private Message Key payload.
10138
10139         * Added Cipher field to the Private Message Key payload to set
10140           the cipher to be used.  If ignored, the default cipher defined
10141           in the SILC protocol (aes-256-cbc) is used.
10142
10143 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10144
10145         * Removed lib/silcclient/ops.h file.
10146
10147           Redefined parts of the SILC Client Library API. Created new
10148           file silcapi.h that deprecates the ops.h file and defines the
10149           published Client Library API.  Defined also private message key
10150           API and channel private key API into the file.
10151
10152           This is the file that the application must include from the
10153           SILC Client Library.  Other files need not be included by
10154           the application anymore.
10155
10156         * Added new key_agreement client operation callback and also
10157           defined the Key Agreement library API for the application.
10158
10159 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10160
10161         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10162           is used by clients to request key negotiation  between another
10163           client in the SILC network.  If the negotiation is started it
10164           is performed using the SKE protocol.  The result of the
10165           negotiation, the secret key material, can be used for example
10166           as private message key.
10167
10168           Implemented the Key Agreement payload into the files
10169           lib/silccore/silauth.[ch].
10170
10171 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10172
10173         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10174           and defined the key lengths for the algorithms.  Changed the
10175           code accordingly.  The default key length is now 256 bits.
10176
10177         * Fixed SKE key distribution function silc_ske_process_key_material
10178           when the key length is more than 128 bits.  The default key
10179           length in SILC is now 256 bits.
10180
10181         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
10182           to indicate unsupported algorithm.
10183
10184         * Renamed rijndael.c to aes.c and all functions as well.
10185
10186         * Fixed a long standing channel key setting bug in client library.
10187           Weird that it has never surfaced before.
10188
10189         * Fixed bug in channel deletion.  If the entire channel is removed
10190           then it must also delete the references of the channel entry
10191           from the client's channel list as the client's channel entry and
10192           the channel's client entry share same memory.
10193
10194 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10195
10196         * Implemented CONNECT and SHUTDOWN commands in the client.
10197
10198         * Implemented CLOSE command to the client.
10199
10200         * Added the function silc_idlist_find_server_by_name into the
10201           files silcd/idlist.[ch].
10202
10203           Added the function silc_idlist_find_server_by_conn into the
10204           files silcd/idlist.[ch].
10205
10206 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10207
10208         * DIE command was renamed to SHUTDOWN.  Updated the both code
10209           and protocol specs.
10210
10211         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
10212           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
10213
10214         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
10215           side.
10216
10217         * Added function silc_server_create_connection function to create
10218           connection to remote router.  My server implementation actually
10219           does not allow router to connect to normal server (it expects
10220           that normal server always initiates the connection to the router)
10221           so the CONNECT command is only good for connecting to another
10222           router.
10223
10224 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10225
10226         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
10227           or some other client was kicked from the channel.
10228
10229           Implemented the handling of the notify type to both client
10230           and server.
10231
10232           Implemented silc_server_send_notify_kicked to send the KICKED
10233           notify.  It is used to send it to the server's primary router.
10234
10235         * Implemented the KICK command into server and client.
10236
10237         * Added `query' argument to the silc_idlist_get_client function
10238           to indicate whether to query the client from server or not if
10239           it was not found.
10240
10241         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
10242           to indicate that the client is not channel founder.
10243
10244         * Updated TODO.
10245
10246 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10247
10248         * Removed the rng context from SilcPacketContext structure and
10249           changed that the packet routine uses the Global RNG API.
10250
10251 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10252
10253         * Added support for quit message that client can "leave" on the
10254           channel when it quits the SILC.  It is ditributed inside the
10255           SILC_NOTIFY_TYPE_SIGNOFF notify type.
10256
10257           Added silc_server_free_client_data that will take the
10258           signoff message as argument.
10259
10260         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
10261
10262 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10263
10264         * Updated parts of the protocol specification to keep it up
10265           to date.
10266
10267 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10268
10269         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
10270           payloads in one packet.
10271
10272         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
10273           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
10274           use now the new List flag.
10275
10276         * Also deprecated the following packet types: REPLACE_ID,
10277           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
10278
10279         * Added list support for Notify packet in server.
10280
10281         * Added silc_server_send_notify_channel_change to send the
10282           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
10283           the silc_server_send_replace_id.
10284
10285         * Added silc_server_send_notify_nick_change to send the
10286           NICK_CHANGE notify type.  Deprecates the function
10287           silc_server_send_replace_id.
10288
10289         * Added silc_server_send_notify_join to send the JOIN notify type.
10290           Deprecates the function silc_server_send_new_channel_user.
10291
10292         * Added silc_server_send_notify_leave to send LEAVE notify type.
10293           Deprecates the function silc_server_send_remove_channel_user.
10294
10295         * Added silc_server_send_notify_cmode and
10296           silc_server_send_notify_cumode to send CMODE and CUMODE notify
10297           types.  Deprecates the silc_server_send_set_mode function.
10298
10299         * Added SERVER_SIGNOFF notify type to indicate that server has
10300           quit.  This means that all clients on the channel from that
10301           server will drop.  This can be also used when netsplit happens.
10302
10303           Deprecated REMOVE_ID packet type since it is not needed anymore
10304           even from server.
10305
10306           Added silc_server_send_notify_server_signoff to send the
10307           SERVER_SIGNOFF notify type.  Deprecates the function
10308           silc_server_send_remove_id.
10309
10310           Added also silc_server_send_notify_signoff to send the
10311           SIGNOFF notify type.
10312
10313         * Employed the PKCS #1. It is the mandatory way to do RSA in the
10314           SILC protocol from this day on.  Changed the protocol
10315           specification as well.
10316
10317         * Added silc_server_send_notify_topic_set to send TOPIC_SET
10318           notify type.  It is used between routers to notify about
10319           topic changes on a channel.
10320
10321         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
10322           ID data.
10323
10324         * Partly updated the protocol specification to comply with the
10325           changes now made.  It is still though a bit outdated.
10326
10327         * The JOIN notify type now takes one extra argument <Channel ID>.
10328           The packet used to be destined to the channel but now the
10329           JOIN type may be sent as list thus it is impossible to
10330           destine it to any specific channel.  By adding this argument
10331           it is again possible.
10332
10333 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10334
10335         * Added CREDITS file.  The CHANGES and CREDITS file will appear
10336           in the distribution as well.
10337
10338 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10339
10340         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
10341           types in the server's silcd/packet_receive.c.
10342
10343         * Implemented CMODE and CUMODE to work in router environment.
10344
10345         * Fixed minor encoding and decoding buglet from the
10346           lib/silccore/silcmode.c.
10347
10348         * Fixed buffer overflow from lib/silcclient/command.c in USERS
10349           command parsing.
10350
10351 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
10352
10353         * Changed all SilcConfigServer* and silc_config_server* to
10354           SilcServerConfig* and silc_server_config*, respectively.
10355           Patch by Bostik.
10356
10357 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10358
10359         * Associated the ID (client or server ID) to the Authentication
10360           Payload to avoid any possibility of forging.  Updated the
10361           protocol specification and the code accordingly.
10362
10363 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10364
10365         * The RSA key length is now save to the RsaKey context in the
10366           key generation process in lib/silccrypt/rsa.c.  The key length
10367           is now used to figure out the maximum size of the block allowed
10368           to be encrypted/signed.
10369
10370         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
10371           is equivalent to the silc_mp_mp2bin but does not allocate any
10372           memory.
10373
10374         * Changed silc_mp_mp2bin API to take length argument.  If it is
10375           non-zero then the buffer is allocated that large.  If zero, then
10376           the size is approximated using silc_mp_sizeinbase, which however
10377           is not relieable.
10378
10379         * Created Global RNG API which is global RNG that application can
10380           initialize.  After initializing, any routine anywhere in the
10381           code (including library) can use RNG without allocating a new
10382           RNG object.  This was done to allow this sort of use of the
10383           RNG in code that has no chance to allocate RNG object.  All
10384           applications currently allocate this and many routines in the
10385           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10386
10387         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10388           it to use the Global RNG API.
10389
10390         * Defined Authentication Payload into protocol specification that
10391           is used during SILC session to authenticate entities.  It is
10392           used for example by client to authenticate itself to the server
10393           to obtain server operator privileges.
10394
10395           Implemented this payload into the lib/silccore/silcauth.[ch].
10396           Implemented also routines for public key based authentication
10397           as the new protocol specification dictates.
10398
10399           Moved definitions of different authentication methods from
10400           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10401
10402         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10403           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10404           silc_pkcs_verify_with_hash functions into the file
10405           lib/silccrypt/silcpkcs.[ch].
10406
10407 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10408
10409         * The client entry's userinfo pointer must be always valid.
10410           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10411           will fail since it requires the userinfo.  Now, the userinfo
10412           is allocated as "" if actual userinfo does not exist.  Actually,
10413           it must exist and it is totally Ok to drop client connections
10414           that does not announce the userinfo.  However, we will make
10415           this workaround for now.
10416
10417         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10418           to return the remote port by socket.
10419
10420 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10421
10422         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10423           SILC_SERVER_PENDING_EXEC and added an new macro
10424           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10425           data or when error occurs while processing the pending command.
10426
10427           Added new argument `destructor' into silc_server_command_pending
10428           and to the SilcServerCommandPending object.  This destructor is
10429           now called after calling the pending callback or if error occurs
10430           immediately.  If error occurs the actual pending callback won't
10431           be called at all - only the destructor.  The destructor may be
10432           NULL if destructor is not needed.
10433
10434           All this applies for client library code as well.  Similar
10435           changes were made there as well for the pending commands.
10436
10437           In the client, the application must now allocate the
10438           SilcClientCommandContext with the silc_client_command_alloc
10439           function.
10440
10441         * Added reference counter to the SilcServerCommandContext.  Added
10442           function silc_server_command_alloc and silc_server_command_dup
10443           functions.
10444
10445           Same type of functions added to the client library for the same
10446           purpose as well.
10447
10448         * Removed the cmd_ident from IDListData away since it is now
10449           global for all connections.  It is the command identifier used
10450           in command sending and with pending commands.  The affected file
10451           is silcd/idlist.h.
10452
10453         * Added reference counter to the SilcSocketConnection objecet to
10454           indicate the usage count of the object.  The object won't be
10455           freed untill the reference counter hits zero.  Currently only
10456           server uses this, and client ignores it.  The client must be
10457           set to use this too later.  The affected files are
10458           lib/silccore/silcsockconn.[ch].  Added also the function
10459           silc_socket_dup to increase the reference counter.
10460
10461           This was mainly added because it is possible that the socket
10462           is removed underneath of pending command or other async
10463           operation.  Now it won't be free'd and proper DISCONNECTING
10464           flags, etc. can be set to avoid sending data to connection that
10465           is not valid anymore.
10466
10467         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10468           the connection.  After that it sets SILC_SET_DISCONNECTED.
10469           It is, however, possible that the socket data is not still freed.
10470           The silc_server_packet_process now checks that data is not
10471           read or written to connection that is DISCONNECTED.  The socket
10472           get's freed when the reference counter hits zero.
10473
10474 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10475
10476         * Changed the client operation API: channel_message operation's
10477           `sender' is now the client entry of the sender, not the nickname
10478           and the `channel' is the channel entry, not the channel name.
10479
10480           In the private_message operation the `sender' is now also the
10481           client entry of the sender not the nickname.
10482
10483           Affected file is lib/silcclient/ops.h and all applications
10484           using the client operations.
10485
10486 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10487
10488         * Moved the calling of ops->connect() from connect_to_server_final
10489           into receive_new_id functin since that is the point when the
10490           client is actually allowed to send traffic to network.  The
10491           affected file is lib/silcclient/client.c.
10492
10493 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10494
10495         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10496           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10497           (if needs broadcasting) instead of broadcasting the packets one
10498           by one which would make a burst in the network traffic.
10499
10500         * Added `broadcast' argument to the functions in silcd/server.[ch]
10501           silc_server_create_new_channel[_with_id] to indicate whether
10502           to send New Channel packet to primary router.
10503
10504 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10505
10506         * Added new function into the silcd/server.[ch] files:
10507           silc_server_create_new_channel_with_id to create new channel with
10508           already existing Channel ID.
10509
10510         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10511           lib/silccore/silcpacket.h.  This packet is used t send list of
10512           Set Mode payloads inside one packet.  Server uses this to set
10513           the modes for the channels and clients on those channels, that it
10514           announced to the router when it connected to it.  The protocol
10515           specification has been updated accordingly.
10516
10517         * The silc_server_new_channel did not handle the packet coming
10518           from normal server as it normally does not send that.  However,
10519           when it announces its channels it does send it.  Implemented
10520           the support for that.
10521
10522         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10523           into the file lib/silccore/id.h.
10524
10525 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10526
10527         * Fixed memory leaks in the functions silc_idlist_del_client,
10528           silc_idlist_del_channel and silc_idlist_del_server in the file
10529           silcd/idlist.c.  All of those leaked like a sieve.
10530
10531         * Fixed some small memory leaks in the client's function
10532           silc_client_notify_by_server.
10533
10534         * Added functions into silcd/server.c: silc_server_announce_clients,
10535           silc_server_announce_channels and silc_server_announce_server.
10536           These functions are used by normal and router server to announce
10537           to its primary router about clients, channels and servers (when
10538           router) that we own.  This is done after we've connected to the
10539           router.
10540
10541           These functions effectively implements the following packet types:
10542           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10543           and SILC_PACKET_NEW_ID_LIST.
10544
10545         * Added new functions into the silcd/packet_receive.[ch]:
10546           silc_server_new_id_list, silc_server_new_channel_list and
10547           silc_server_new_channel_user_list to handle the incoming
10548           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10549
10550         * Added support of changing Channel ID in the function
10551           silc_server_replace_id.  If the server that announces a channel
10552           to the router already exists in the router (with same name but
10553           with different Channel ID), router is responsible to send
10554           Replace ID packet to the server and force the server to change
10555           the Channel ID to the one router has.
10556
10557         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10558           client that the Channel ID has been changed by the router.  The
10559           normal server sends this to the client.  Client must start using
10560           the new Channel ID as the channel's ID.
10561
10562           Implemented handling of this new type into lib/silcclient/client.c
10563           into the function silc_client_notify_by_server.
10564
10565         * Added new function silc_idlist_replace_channel_id into the files
10566           silcd/idlist.[ch] to replace the Channel ID.
10567
10568 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10569
10570         * Call silc_server_command_identify_check always when processing
10571           the IDENTIFY command in silcd/command.c
10572
10573 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10574
10575         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10576           send keepalive packets.  The packet can be sent by clients,
10577           servers and routers.
10578
10579           Added function silc_socket_set_heartbeat into the file
10580           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10581           If not set, the heartbeat is not performed.  The actual
10582           heartbeat is implemented in the low level socket connection
10583           library.  However, application is responsible of actually
10584           sending the packet.
10585
10586           Added silc_server_send_heartbeat to send the actual heartbeat
10587           packet into silcd/packet_send.[ch].  Server now performs
10588           keepalive with all connections.
10589
10590         * Added silc_task_get_first function into lib/silcutil/silctask.c
10591           to return the timeout task with shortest timeout.  There was a bug
10592           in task unregistration that caused problems.  TODO has been
10593           updated to include that task system must be rewritten.
10594
10595         * The client library will now resolve the client information when
10596           receiving JOIN notify from server for client that we know but
10597           have incomplete information.
10598
10599         * Rewrote parts of silc_server_remove_from_channels and
10600           silc_server_remove_from_one_channel as they did not remove the
10601           channel in some circumstances even though they should've.
10602
10603         * Encryption problem encountered in server:
10604
10605           The LEAVE command used to send the Channel Key packet to the
10606           router immediately after generating it.  However, the code
10607           had earlier sent Remove Channel user packet but not immediately,
10608           ie. it was put to queue.  The order of packets in the router
10609           was that Channel Key packet was first and Remove Channel User
10610           packet was second, even though they were encrypted in the
10611           reverse order.  For this reason, MAC check failed.  Now, this
10612           is fixed by not sending the Channel Key packet immediately but
10613           putting it to queue.  However, this is more fundamental problem:
10614           packets that are in queue should actually not be encrypted
10615           because packets that are sent immediately gets encrypted
10616           actually with wrong IV (and thus MAC check fails).  So, packets
10617           that are in queue should be encrypted when they are sent to
10618           the wire and not when they put to the queue.
10619
10620           However, the problem is that the current system has not been
10621           designed to work that way.  Instead, the packet is encrypted
10622           as soon as possible and left to the queue.  The queue is then
10623           just purged into wire.  There won't be any fixes for this
10624           any time soon.  So, the current semantic for packet sending
10625           is as follows:
10626
10627           o If you send packet to remote host and do not force the send
10628           (the packet will be in queue) then all subsequent packets to the
10629           same remote host must also be put to the queue.  Only after the
10630           queue has been purged is it safe again to force the packet
10631           send immediately.
10632
10633           o If you send all packets immediately then it safe to send
10634           any of subsequent packets through the queue, however, after
10635           the first packet is put to queue then any subsequent packets
10636           must also be put to the queue.
10637
10638           Follow these rules and everything works fine.
10639
10640 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10641
10642         * Added new function silc_server_remove_clients_by_server to
10643           remove all client entries from ID list when the server connection
10644           is lost.  In this case it is also important to invalidate all
10645           client entires as they hold the invalid server entry.  This
10646           fixes fatal bug when server has lost connection and will reconnect
10647           again.
10648
10649 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10650
10651         * Made some sanity checks to silc_server_daemonise like to check
10652           whether the requested user and group actually exists.
10653
10654         * Added sanity check to SKE's silc_ske_responder_finish to check
10655           that the public and private key actually is valid.
10656
10657         * Invalidate the client's nickname when receiving Replace ID
10658           packet and the Client ID is being replaced.  This means that the
10659           server will query the nickname if someone needs it (client)
10660           a bit later.
10661
10662         * Sort the ID Cache in client library when the ID Cache data
10663           has changed (needs sorting).
10664
10665         * Do not allow for SILC client to create several connections to
10666           several servers.  The client does not support windows right now
10667           and generating multiple connections causes weird behaviour.
10668
10669           Irssi-silc client does support windows and can handle several
10670           connections without problems, see: www.irssi.org and SILC plugin.
10671
10672         * Fixed some places where client was added to the IDList.  The
10673           rule of thumb is following (in order to get everything right):
10674           If the client is directly connected local client then the
10675           `connection' argument must be set and `router' argument must be
10676           NULL to silc_idlist_add_client function.  If the client is not
10677           directly connected client then the `router' argument must
10678           bet set and the `connection' argument must be NULL to the
10679           silc_idlist_add_client function.
10680
10681         * The funtion silc_server_packet_send_local_channel actually did
10682           not check whether the client was locally connected or not.  It
10683           does that now.  Fixed a bug related to LEAVE command.
10684
10685         * Fixed Remove Channel User payload parsing bug in server's
10686           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
10687
10688         * The server's silc_server_save_channel_key now checks also the
10689           global ID list for the channel as it might not be in the local
10690           list.  Fixed a bug related to LEAVE command.
10691
10692         * Is this the end of the [<unknown>] buglet that has been lurking
10693           around for a long time?  A little for loop fix in server's
10694           silc_server_command_whois_parse that is used by both IDENTIFY
10695           and WHOIS command.  At least, this was a clear bug and a cause
10696           of one type of [<unknown>] buglet.
10697
10698         * WHOIS and IDENTIFY commands call the function
10699           silc_server_command_[whois/identify]_check function even if
10700           we are not router server.
10701
10702 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10703
10704         * Added --with-gmp configuration option.  If set the GMP
10705           is always compiled in the SILC source tree.  If not set then
10706           it is checked whether the system has the GMP3 installed.  If
10707           it has then the GMP won't be compiled (the system's headers
10708           and library is used), if it doesn't have it then the GMP is
10709           compiled in the SILC source tree.
10710
10711 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10712
10713         * Changed RSA private exponent generation to what PKCS #1
10714           suggests.  We try to find the smallest possible d by doing
10715           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
10716           not security fix but optimization.
10717
10718 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10719
10720         * Added new config entry [Identity] to fork the server and run
10721           it as specific user and group.  A patch from Bostik.
10722
10723         * Imported Dotconf configuration library into lib/dotconf.
10724           This will be used to create the SILC configuration files later.
10725           It will appear in the distsribution after this commit.
10726
10727 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10728
10729         * A big code auditing weekend happening.  Auditing code for
10730           obvious mistakes, bugs and errors.  Also, removing any code
10731           that is obsolete.
10732
10733           Removed files for being obsolete:
10734
10735           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
10736           inline in the file lib/silcutil/silcbuffer.h)
10737
10738           o lib/silcutil/silcbufutil.c (the header has inline versions)
10739
10740           Changed code to fix possible error conditions:
10741
10742           o The buffer formatting routines now check that the destination
10743           buffer really has enough space to add the data.  This applies for
10744           both buffer formatting and unformatting
10745           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
10746           unformatting was changed to accomodate following rules:
10747           XXX_*STRING_ALLOC will allocate space for the data into the pointer
10748           sent to the function while XXX_*STRING will not allocate or copy
10749           the data into the buffer.  Instead it sets the pointer from the
10750           buffer into the pointer sent as argument (XXX_*STRING used to
10751           require that the pointer must be allocated already).  This change
10752           makes this whole thing a bit more consistent and more optimized
10753           (note that the data returned in the unformatting with XXX_*STRING
10754           must not be freed now).  The routines return now -1 on error.
10755
10756           o Tried to find all code that use buffer_format and buffer_unformat
10757           and added return value checking to prevent formatting and
10758           especially unformatting errors and possible subsequent fatal
10759           errors.
10760
10761           o Changed ske->x and ske->KEY to mallocated pointers in
10762           lib/silcske/silcske.h.  Fixed possible data and memory leak.
10763
10764           o Added return value checking to all *_parse* functions.  Fixed
10765           many memory leaks as well.
10766
10767           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
10768           so that buffer overflows would not happen.  All code now also
10769           checks the return value as it can fail.
10770
10771 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10772
10773         * Added reconnection support to server if the normal server looses
10774           its connection to the router (for example if router is rebooted).
10775           The server performs normal reconnection strategy implemented
10776           to the server.  Affected file silcd/server.c.
10777
10778 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10779
10780         * Added new packet type SILC_PACKET_SET_MODE that is used to
10781           distribute the information about changed modes (for clients,
10782           channels and clients channel modes) to all routers in the
10783           network.  Updated the protocol specification accordingly.
10784
10785           Added functions into silcd/packet_send.c and
10786           silcd/packet_receive.c: silc_server_send_set_mode,
10787           silc_server_set_mode.
10788
10789           Added new files silcmode.[ch] into lib/silccore that implements
10790           the encoding and decoding of Set Mode Payload.  Added new type
10791           SilcSetModePayload.  Moved the definitions of different modes
10792           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
10793
10794 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10795
10796         * Oops, a little mistake in server's connection authentication
10797           protocol.  The protocol is not ended with FAILURE but with
10798           SUCCESS if the authentication is Ok. :)  Affected file is
10799           silcd/protocol.c.
10800
10801         * Implemented NICK_CHANGE notify handling in server in the file
10802           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
10803           the local clients on the channel.  After the changing nickname
10804           in router environment snhould work and the [<unknown>] nickname
10805           should appear no more.
10806
10807           The silc_server_replace_id function that receives the Replace ID
10808           payload now sends the NICK_CHANGE notify type also in the file
10809           silcd/packet_receive.c
10810
10811         * Changed WHOIS and IDENTIFY command to support the maximum amount
10812           of arguments defined in protocol specs (3328 arguments).  This
10813           fixed a bug that caused problems when there were more than three
10814           users on a channel.
10815
10816 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10817
10818         * Added extra parameter, command identifier, to the
10819           silc_client_send_command so that explicit command identifier
10820           can be defined.
10821
10822           Changed that ID list routines uses specific command identifier
10823           when sending WHOIS/IDENTIFY requests to the server so that they
10824           can be identified when the reply comes back.
10825
10826           Affected files lib/silcclient/command.[ch],
10827           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
10828
10829         * Added `sender' argument to silc_server_packet_send_to_channel
10830           to indicaet the sender who originally sent the packet to us
10831           that we are now re-sending.  Ignored if NULL.  Affected file
10832           silcd/packet_send.[ch].
10833
10834         * Added some server statistics support in silcd/server_internal.h
10835           SilcServerStatistics structure and around the server code.  Also
10836           send some nice statistics information when client is connecting
10837           to the client.
10838
10839 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10840
10841         * Fixed channel ID decoding in server's JOIN command reply in
10842           silcd/command_reply.c
10843
10844         * Fixed braodcasting of replace ID payload to not to send it if
10845           we are standalone server in silcd/packet_receive.c.
10846
10847         * Fixed all channel message sending routines to not to send
10848           packets to clients that has router set, since they are routed
10849           separately in the same function earlier.  Affects file
10850           silcd/packet_send.c and all channel packet sending functions.
10851
10852         * In USERS reply, res_argv[i] are not allocated, the table
10853           is allocated.  Thus changed that free the table, not its
10854           internals.
10855
10856         * In server's whois_check and identify_check if the client is
10857           locally connected do not send any WHOIS commands - they are not
10858           needed.
10859
10860 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10861
10862         * Fixed some minor bugs in client when sending WHOIS command.  The
10863           arguments was in wrong order.
10864
10865         * Removed statis function add_to_channel from server in
10866           silcd/command.c that was previously used with the joining but
10867           is obsolete now.
10868
10869         * Tested USERS command in router environment successfully with two
10870           routers, two servers and two clients.
10871
10872 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10873
10874         * Reorganized the USERS command and command reply in client library
10875           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
10876           When the command is given by user we register a pending command
10877           callback that will reprocess the command after the reply has been
10878           received from the server.  When reprocessing the packet we then
10879           display the information.  Thus, the USERS information is displayed
10880           now in the command callback instead of in the command reply
10881           callback.  The processing of the command is same as previously
10882           when server has sent the command reply in the JOINing process.
10883
10884         * Added to USERS command in silcd/command_reply.c to join the client,
10885           we didn't use to know about, to the channel after we've created
10886           a client entry for it.  Also, for clienet we did know already still
10887           check whether it is on the channel or not and add it if not.
10888
10889         * Removed silc_server_command_join_notify as the function and its
10890           use was obsolete.
10891
10892 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10893
10894         * Changed the client's pending command handling to the same as the
10895           server's pending command handling.  It is also now possible to
10896           execute command reply functions from other command reply
10897           function as the function callbacks for commands and command
10898           replies are one and same.  The pending commands are not static
10899           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
10900           in client connection context.  Thus, pending commands are server
10901           connection specific as it is convenient.
10902
10903           Changed the function silc_client_command_pending and
10904           silc_client_command_pending_del and added new function
10905           silc_client_command_pending_check.  Removed the
10906           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
10907           macros.
10908
10909         * Added cmd_ident, current command identifier, to the client
10910           connection context in lib/silcclient/client.h to keep track on
10911           command identifiers used in command sending.  Client's command reply
10912           function handling now supports the mandatory command identifiers.
10913
10914         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
10915           funtions in client to fully support pending command callbacks.
10916
10917         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
10918           as one of the arguments to the application in the command reply
10919           client operation.
10920
10921         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
10922           before first releasing SILC but came back.  Now it is removed again
10923           and should come back nomore.  The FORWARDED flag was used only
10924           by the JOINing procedure by forwarding the command packet to router.
10925           Now, the JOINing procedure has been changed to more generic (due
10926           to various router environment issues) and FORWARDED is not needed
10927           anymore for anything.  The protocol specification is yet to be
10928           updated.
10929
10930           Now, removed silc_server_packet_forward from server and the flag
10931           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
10932
10933 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10934
10935         * Renamed NAMES command to USERS command.  The NAMES was named that
10936           due to historical reasons.  Now it is renamed.  Also, rewrote
10937           parts of the USERS command.  The nickname list is not sent anymore
10938           by the server.  Only Client ID and mode lists are sent in the USERS
10939           command.  Changed this also to the protocol specification.
10940
10941           The client now resolves the names and stuff after it receives
10942           the USERS list from the server when joining to the channel.
10943
10944         * WHOIS and IDENTIFY commands has been changed to support multiple
10945           Client ID's per command.  One can now search for multiple users
10946           in the network by sending only one WHOIS or IDENTIFY command.
10947           Changed the code and the protocol specifications.
10948
10949         * Removed silc_server_command_identify_parse and changed that IDENTIFY
10950           uses silc_server_command_whois_parse to parse the request. */
10951
10952         * If normal server, do not parse the WHOIS and IDENTIFY requests
10953           before sending it to the router.  Saves some time.
10954
10955 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10956
10957         * Fixed JOIN command on client library.  Wrong number of arguments
10958           used to crash the client.
10959
10960         * Added silc_server_channel_has_global function to check whether
10961           channel has global users or not.
10962
10963         * Added silc_server_channel_has_local function to check whether channel
10964           has locally connected clients on the channel.
10965
10966         * The silc_server_remove_from_one_channel now checks whether the
10967           channel has global users or not after given client was removed from
10968           the channel.  It also checks whether the channel has local clients
10969           on the channel anymore.  If it does not have then the channel entry
10970           is removed as it is not needed anymore.
10971
10972         * The silc_server_notify now checks on JOIN notify whether the joining
10973           client is one of locally connected or global.  If it is global then
10974           the channel has now global users on the channel and that is marked
10975           to the channel entry.  Also, it now saves the global client to
10976           global list who is joining and JOINs it to the channel.  This is
10977           for normal server, that is.
10978
10979           Changed silc_server_send_notify_on_channel,
10980           silc_server_packet_relay_to_channel and
10981           silc_server_packet_send_to_channel check if we are normal server
10982           and client has router set (ie. global client) do not send the
10983           message to that client, as it is already routed to our router.
10984
10985         * Implemented LEAVE notify type handling in silc_server_notify
10986           function.
10987
10988         * Tested LEAVE command in router environment successfully.  Tested
10989           with two routers, two servers and two clients.
10990
10991         * Updated TODO.
10992
10993         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
10994
10995         * Implemented SIGNOFF notify type handling in silc_server_notify
10996           function.
10997
10998         * silc_server_remove_id now removes the client entry from all channels
10999           it has joined and thusly sends SIGNOFF notify type.
11000
11001         * Rewrote the NAMES list generation in server by removing two excess
11002           loops.  The lists are created now inside one loop.
11003
11004 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11005
11006         * silc_server_remove_channel_user checks now also global list
11007           for channel and client.
11008
11009         * silc_server_new_channel_user checks now both local and global
11010           list for channel and client.  Fixed a bug in client id decoding.
11011           Used to decode wrong buffer.
11012
11013         * silc_server_channel_message checks now both local and global
11014           list for channel entry.
11015
11016         * Tested channel joining (hence JOIN) in router environment
11017           successfully.  Tested with two routers, two servers and two
11018           clients.
11019
11020         * Tested channel message sending in router environment successfully.
11021
11022 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11023
11024         * Added silc_server_save_channel_key into server.[ch] to save the
11025           received channel key in Channel Key payload processing. It is
11026           also used in JOIN command reply handling.
11027
11028           Equivalent function silc_client_save_channel_key added into
11029           client.[ch] into client library.
11030
11031         * Changed JOIN command reply to send information whether the channel
11032           was created or not (is existing already) and the channel key
11033           payload.  Changed protocol specs accordingly.
11034
11035         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11036           the request was sent by ID and not by nickname.  Crashed on
11037           NULL dereference.
11038
11039 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11040
11041         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11042           now correctly save the received data.
11043
11044         * silc_server_free_sock_user_data now notifies routers in the
11045           network about entities leaving the network.
11046
11047           At the same time implemented functions silc_server_remove_id
11048           and silc_server_send_remove_id to receive and send REMOVE_ID
11049           packets.  The packet is used to notify routers in the network
11050           about leaving entities.  The ID removed will become invalid in
11051           the network.
11052
11053         * Added function silc_idlist_del_server into server. Removes and
11054           free's server entry from ID list.
11055
11056         * silc_server_private_message function now checks, if we are router,
11057           that the destination ID really is valid ID, naturally.
11058
11059         * In router when NEW_ID packet is received (for new client) the
11060           hash of the Client ID is saved in the ID Cache but the
11061           client->nickname is set to NULL, instead of putting the hash
11062           to it as well.
11063
11064           IDENTIFY command now also checks that client->nickname must be
11065           valid. If it is not if will request the data from the server who
11066           owns the client.  Added new function
11067           silc_server_command_identify_check.
11068
11069         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11070           to set the command to already allocated Command Payload.
11071
11072         * Tested private message sending in router environment with two
11073           routers, two servers and two clients.  Fixed minor bugs and now
11074           it works fine.
11075
11076         * Fixed segfault from client's NAMES command. Used to crash if
11077           not on any channel.
11078
11079         * Forwarded packets must not be routed even if it is not destined
11080           to the receiver.  Changed server code comply with this.
11081
11082 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11083
11084         * Added `require_reverse_mapping' boolean value to ServerParams
11085           structure. If TRUE (not default) the server will require that
11086           the connecting host has fully qualified domain name.
11087
11088           If the reverse mapping is not required and hostname could not be
11089           found the IP address is used as hostname.
11090
11091 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11092
11093         * Implemented version string checking to both client and server.
11094           The check is incomplete currently due to the abnormal version
11095           strings used in development version of SILC.
11096
11097         * Changed all command functions in server to use the new
11098           CHECK_ARGS macro.
11099
11100 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11101
11102         * Changed char *data to unsigned char *data in ID Cache system to
11103           support binary data as ID Cache data. Changed code to support
11104           binary data in lib/silccore/idcache.c.
11105
11106         * Renamed silc_server_packet_relay_command_reply to
11107           silc_server_command_reply as it is normal packet receiving
11108           function. Rewrote the function to accept command replys for
11109           servers and not only for clients.
11110
11111         * Mark remote router always as registered server if we are connecting
11112           to it.  Otherwise, commands sent by the router to us are ignored.
11113
11114         * All ID List find routines now returns the ID Cache Entry pointer
11115           as well if requested.
11116
11117         * WHOIS command works now in router environment, tested with two
11118           routers, two servers and two clients.
11119
11120         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11121           in router environment (as it is almost equivalent to WHOIS) but
11122           hasn't been tested thoroughly.  Added new functions:
11123
11124           silc_server_command_identify_parse
11125           silc_server_command_identify_send_reply
11126           silc_server_command_identify_from_client
11127           silc_server_command_identify_from_server
11128
11129         * Disabled route cache adding because adding two different ID's with
11130           same IP replaces the old cache entry thus giving wrong route.
11131           The entry->router->connection is always the fastest route anyway
11132           so route cache may not be needed.  Of course, new routes maybe
11133           established after receiving the ID when the entry->router->connection
11134           might not be anymore the most optimal.
11135
11136 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11137
11138         * Add route cache for received ID for fast routing.
11139
11140         * Added silc_server_packet_route to route received packet on router
11141           that is not destined to us.
11142
11143         * Renamed silc_server_get_route to silc_server_route_get.
11144
11145         * Added id_string and id_string_len fields into SilcServer to
11146           include encoded ServerID for fast comparing without excess
11147           encoding of the ID's.
11148
11149         * Cleaned up WHOIS command on server side. Added following static
11150           functions:
11151
11152           silc_server_command_whois_parse
11153           silc_server_command_whois_check
11154           silc_server_command_whois_send_reply
11155           silc_server_command_whois_from_client
11156           silc_server_command_whois_from_server
11157
11158         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11159           arguments in command replies. All command functions should be
11160           updated to use this macro.
11161
11162 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11163
11164         * Minor typo fixes on command reply handling on server.
11165
11166 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11167
11168         * Added silc_server_command_add_to_channel internal routine to add
11169           the client to the channel after router has created the channel and
11170           sent command reply to the server.
11171
11172         * Added generic silc_server_send_command to send any command from
11173           server.
11174
11175         * Use static buffer with ID rendering instead of duplicating data.
11176
11177 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11178
11179         * Fixed a channel user mode bug when joining to a channel server gave
11180           everybody channel founder rights, oops.
11181
11182         * We mark ourselves as the router of the incoming server connection
11183           if we are router ourselves.  This way we can check in some packet
11184           sending functions whether it is locally connected server.  For
11185           incoming router connections we put NULL.
11186
11187         * For router sending packets locally means now always sending the
11188           packet cell wide; to local clients and local servers.  For normal
11189           server sending packet locally means sending it to only local
11190           clients.
11191
11192         * Fixed the JOIN command to really work in router environment.  If the
11193           channel is created it is always created by the router.  Router is
11194           also responsible of making the initial joining to the channel,
11195           sending JOIN notify to the sending server and distributing
11196           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
11197           does not exist server doesn't do anything else but forward the
11198           command to the router which performs everything.
11199
11200         * Added silc_server_send_channel_key function to send the Channel Key
11201           payload.
11202
11203         * Added silc_server_create_channel_key to create new channel key.  The
11204           channel key is now re-generated everytime someone joins or leaves
11205           a channel, as protocol dictates.  Note: channel->key_len is the
11206           key length in bits.
11207
11208 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11209
11210         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
11211           packet_receive.[ch] to separate packet sending and receiving
11212           routines.  The server.[ch] now includes everything else including
11213           actual packet processing (writing and reading data) and other
11214           server issues.
11215
11216           Renamed silc_server_private_message_send_internal to
11217           silc_server_send_private_message.  The routine is still though
11218           used only to relay private messages as server does not send
11219           private messages itself.
11220
11221           Renamed silc_server_new_channel to silc_server_create_new_channel
11222           and added new function sicl_server_new_channel that handles the
11223           incoming New Channel packet.  Added also new sending function
11224           silc_server_send_new_channel to send New Channel Payload.
11225
11226         * Added new function silc_server_notify to process incoming notify
11227           packet to the server/router. Server may then relay the notify
11228           to clients if needed.
11229
11230         * Added new function silc_server_new_channel_user to process incoming
11231           New Channel User packet.  Router will redistribute the packet and
11232           send JOIN notify to its local clients and locally connected servers
11233           if needed.  Normal server will send JOIN notify to its local client
11234           on same channel when received this packet.  Added also corresponding
11235           sending function silc_server_send_new_channel_user to sent the
11236           payload.
11237
11238         * Added boolean route argument to send_notif_to_channel and
11239           packet_send_to_channel functions to attempt to route the packet
11240           if it is TRUE and send only locally if it is FALSE.
11241
11242 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11243
11244         * silc_server_replace_id now broadcasts the received replace ID
11245           packet if it is not broadcast packet already. The router must
11246           broadcast to inform other routers about changed ID.
11247
11248         * Added backpointer to server's router into SilcServer context in
11249           silcd/server_internal.h.
11250
11251         * Fixed silc_server_packet_broadcast to send correct broadcast
11252           packets.
11253
11254         * The channel key is now distributed to the local client as soon
11255           as it is received from the router (in router environment) so that
11256           no other packet may be sent for the channel until client has
11257           received the key.
11258
11259         * silc_server_remove_channel_user now broadcasts the received
11260           Remove Channel User packet if it is not broadcast packet already.
11261           The router must broadcast to inform other routers about removed
11262           channel user.
11263
11264         * Added users field into SilcPacketContext that is a reference count
11265           of the context.  One can increase the reference count by calling
11266           silc_packet_context_dup which is now changed to just increase the
11267           reference count instead of duplicating the data.  The reference
11268           count is decresed by calling silc_packet_context_free that will
11269           free the data after the reference count hits zero.
11270
11271           For now on the packet context and everything allocated into it
11272           (including the raw packet from network) must be freed by calling
11273           the new silc_packet_context_free function.  Added also new function
11274           silc_packet_context_alloc that must be used now to allocate the
11275           context.  This also means that if a routine is asynchronous from
11276           silc_[client/server]_packet_parse_type the packet context must
11277           be duplicated by calling silc_packet_context_dup.  Otherwise it
11278           gets free'd after silc_[client/server]_packet_parse_type returns.
11279           Also, one must remember that if packet is duplicated then its
11280           reference count must be decresed by calling the free function as
11281           many times as it was duplicated.
11282
11283         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
11284           from both client and server.
11285
11286 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11287
11288         * Made joining to a channel working in router environment.
11289
11290         * Cleaned up JOIN command on server side and create function
11291           silc_server_command_join_channel internal routine to make the
11292           joining happen.
11293
11294 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11295
11296         * Changed silc_command_pending list to SilcDList.  Also, added
11297           `ident' field to SilcServerCommandPending structure to identify
11298           the reply and to call correct callback.
11299
11300           Added silc_server_command_pending_check function to replace the
11301           corresnponding macro.  The silc_command_pending list is not
11302           extern anymore.
11303
11304         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
11305           to set identifier to previously allocated Command Payload.  It
11306           is used to set identifier for command when resending Command
11307           Payload.
11308
11309         * Added silc_command_payload_encode_payload to encode Command
11310           Payload buffer from SilcCommandPayload structure.
11311
11312         * Added silc_argument_payload_encode_payload to encode Argument
11313           payload buffer from SilcArgumentPayload structure.
11314
11315 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11316
11317         * Changed WHOIS command to support router connection on server side.
11318           The whois request is always sent to router unless the server is
11319           standalone server.  After server has received the reply from the
11320           router will it send the reply to the client.
11321
11322         * Added silc_server_packet_broadcast into silcd/server.[ch] to
11323           broadcast received broadcast packet.  The function is used only
11324           by router.  The broadcast packet is always sent to the router's
11325           primary route.
11326
11327         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
11328           render given ID to printable string, for log files for example.
11329
11330 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11331
11332         * Made basic router to router connections working.  At least they
11333           can now connect to each other but nothing really works the way
11334           they are supposed - yet.
11335
11336         * Added new initiator token to RouterConnection configuration
11337           file in silcd/serverconfig.[ch].  It is used to tell whether we
11338           are the initiator to the remote router or whether we'll expect
11339           the other end to connect.
11340
11341         * Moved registering of listener task to silc_server_init, hence
11342           the server starts listenning as soon as it is run, even if it
11343           does not have connections to other routers.  Let's see how well
11344           this will work.
11345
11346         * Changed default connection retry timeouts for more suitable in
11347           silcd/server.h.
11348
11349         * Removed cipher and such arguments from silc_idlist_add_client
11350           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
11351           Added new function silc_idlist_add_data to add the keys and stuff
11352           to any ID entry.
11353
11354         * Added SilcIDListData structure and added it to SilcClientEntry
11355           and SilcServerEntry as their first field in the structure.  This
11356           way we can explicitly cast the ID entries to the SilcIDListData
11357           structure and get common data for the entries.  In past, we had
11358           to first check what type of connection it is and then cast it to
11359           correct ID entry type.  Now, we can directly cast the opaque
11360           pointer to the SilcIDListData (no matter what ID entry it actually
11361           is) and get the data needed.
11362
11363 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11364
11365         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
11366           in some circumstances even if threre were timeout tasks, though not
11367           IO tasks, but tasks anyway.  Now fixed.
11368
11369         * Defined SilcServerConnection structure to hold connection specific
11370           stuff about directly connected servers and routers.  The definition
11371           is currently in silcd/server_internal.h.  I thought about having
11372           a bit more important role fro this struct but for now it is used
11373           only when connecting to other server (or router actually).
11374
11375         * Added connecting retry support in server when connecting to
11376           router(s).  The retry feature implement exponential backoff
11377           algorithm.  Also, added SilcServerParams structure to hold default
11378           parameters for server.  For now, it include these retry settings
11379           and are hard coded.  After server is moded to be as Silc Server
11380           Library this structure will be more important.
11381
11382 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11383
11384         * Changed client librarys channel->clients table to SilcList and
11385           changed code accordingly.
11386
11387 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11388
11389         * Changed client's channel table to SilcList and changed code
11390           accordingly.  Also changed SilcChannelClientEntry to include back-
11391           pointer to the channel so that client entry can use that structure
11392           as list as well and we have fast cross-reference to the channel.
11393           This change dramatically decreased the complexity of channel
11394           handling with client entry and vice versa (removed one extra
11395           loop when searching for channel entry from many functions).
11396
11397         * Changed server->sim from table to SilcDList and changed code
11398           accordingly.
11399
11400         * NAMES command can now be used from user interface.  It will show
11401           the user list on the channel, neatly.
11402
11403         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11404           Code now saves realname of the user if it becomes available.
11405
11406         * Renamed configure.in to configure.in.pre and made ./prepare
11407           script to automatically add correct version string to
11408           configure.in which it creates from configure.in.pre.
11409
11410 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11411
11412         * NAMES command reply now shows users mode with the nickname when
11413           joining to channel.
11414
11415         * Moved silc_client_ch[u]mode[_char] functions from
11416           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11417           place sucks, they are utility functions and should be in some
11418           other file.
11419
11420         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11421
11422         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11423           cras.
11424
11425 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11426
11427         * Updated README.
11428
11429         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11430           a very good list library that is currently used in the SILC.  Defined
11431           SilcList API over the library because I didn't like the API very
11432           much.  See lib/trq/silclist.h for the API and examples of how to
11433           use the API.  Fixed various places in the code to use the new
11434           SilcList API. The SilcList is meant for lists that has a structure
11435           already defined as a list.  It is not suitable to add just some
11436           context to the list (in TRQ, the context is the list actually).
11437
11438           So, I defined SilcDList that can be used for the purpose where
11439           predefined list structure does not exit.  This can be used as
11440           such list.  Now some context just can be added to the SilcDList.
11441           Currently this list is not used in the SILC just yet, though there
11442           are a lot places where this can replace dynamically allocated
11443           tables and I will fix these places, later, to use SilcDList.
11444           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11445           and use TRQ internally).
11446
11447           Also fixed some annoying warning messages that the original TRQ
11448           code generated.  Also minor changes to TRQ's Makefile.in.
11449
11450         * Added support for querying by Client ID to both WHOIS and
11451           IDENTIFY commands into server, as required by the protocol.
11452
11453         * Removed method function pointers from SilcBuffer structure. They
11454           weren't used to anything and just increased the context size for
11455           no good reason.  This change also made silc_buffer_alloc and
11456           silc_buffer_free functions inline functions.
11457
11458         * Disabled command flooding detection support until it's fixed so
11459           that it accepts commands in but does not execute them more than once
11460           in two seconds.
11461
11462         * Added silc_net_localhost(), to return local hostname, into
11463           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11464           that must be initialized before calling silc_client_init.
11465
11466         * Added new function: silc_server_send_notify_on_channels to send
11467           notify messages to all channels client has joined.  It is assured
11468           that the message is sent only once per client.
11469
11470         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11471           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11472           function is generic and is used by server as well, not only by
11473           the logging routines.
11474
11475         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11476           the provided version string was not acceptable.  Added new function:
11477           silc_ske_check_version into lib/silcske/silcske.h.  The function
11478           must be implemented by the application (client or server) and it
11479           does not reside in the SKE library.  The function checks the version
11480           string remote end sent.
11481
11482         * Added back pointers (to opaque context and to SilcSocketConnection)
11483           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11484
11485         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11486           duplicate packet context structure.
11487
11488         * Changed `notify' client operation to send same arguments as client
11489           receives from server except for ID's.  ID's are mapped to correct
11490           ID entry and that is returned.  Also, if channel entry is not sent
11491           by server but the notify is for channel the channel entry is sent
11492           to application (otherwise application doesn't know that it is for
11493           channel (library gets it from packet's Destination ID)).
11494
11495         * Added silc_client_remove_from_channels into client library to
11496           remove a client from all channels it has joined to.  Used when
11497           received SIGNOFF notify from server.  Added also new function
11498           silc_client_replace_from_channels to replace old ID entry with
11499           new ID entry on all channels.  Used when received NICK_CHANGE
11500           notify from server.
11501
11502         * Fixed ID Cache list handling in silc_idlist_get_client in
11503           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11504           to get (or query) client by ID.
11505
11506         * Updated TODO list.
11507
11508         * Added connection authentication status message defined by the
11509           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11510           support for these into the code in client and server side.
11511
11512         * Added generic function silc_client_send_command to send any command
11513           with variable argument list.  Application should use this function
11514           to send commands if the command functions provided by the library
11515           does not suite for the application's user interface needs.
11516
11517         * Added new `failure' client operation.  Application is notified about
11518           received failure packet if client is executing a protocol.  In this
11519           case the protocol's execution has failed.
11520
11521         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11522           is required by the protocol.
11523
11524         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11525           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11526           error at our end.
11527
11528         * Added status flag to SilcSKE object to indicate realtime status
11529           of the SKE protocol.
11530
11531         * Application receives now exactly same command reply arguments as
11532           the library receives from server.  However, if ID is received the
11533           corresponding ID entry is returned to the application (eg. Client
11534           ID is mapped to correct SilcClientEntry entry and that is returned).
11535           Changed command_reply client operation due to this change.
11536
11537         * Changed all ID's in commands and in command replys as ID Payloads.
11538           Change affected both client and server side codes.
11539
11540           All ID's sent in SILC network (with execption of ID's in SILC
11541           Packet header) are sent in ID Payload to support variable length
11542           ID's.
11543
11544         * Server now notifies nick changes and notifies all clients on
11545           the channels about the new nickname (about the new Client ID,
11546           actually).
11547
11548         * Implemented CMODE command to change channel modes. Supports all
11549           channel modes defined by the protocol specs except ban and invite
11550           lists. (Also, private channel key mode is supported but support for
11551           setting private channel key in client is missing, thus, this mode
11552           has no effect on client side (except that server requires that the
11553           client uses private channel key and normal channel traffic does not
11554           work anymore)).
11555
11556           Also, invite mode works per se, but INVITE command does not work
11557           yet correctly, so you can set channel as invite only channel but
11558           inviting clients to the channel does not work (it is yet to be
11559           thought what's the best way to do it).
11560
11561         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11562           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11563           Implemented CUMODE command to change user's mode on the channel.
11564           Supports all modes defined by the protocol specs.
11565
11566         * Added NAMES command reply to return users modes on the channel.
11567
11568         * Removed unnecessary and slow ciphers from lib/silccrypt.
11569
11570         * Set SO_KEEPALIVE option to connection sockets by default.
11571
11572         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11573
11574         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11575           redefined the Notify Payload into protocol specs.
11576
11577         * Added silc_id_payload_parse_id to get ID directly from raw
11578           ID payload data.
11579
11580 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11581
11582         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11583           accept searching by Client ID as well.
11584
11585         * Added support for LEAVE and SIGNOFF notify types in client library.
11586
11587         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11588           to parse ID Payload from raw data.
11589
11590 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11591
11592         * Added flags parameter into silc_ske_assemble_security_properties
11593           function in lib/silcske/silcske.[ch].
11594
11595         * Changed notify client operation to fit better for notify messages
11596           sent by server.  The notify payload received from server is now
11597           passed to the application (after parsing it to SilcNotifyPayload).
11598           It is application's responsibility to retrieve the arguments
11599           from the payload and show the message the way it wants.  The message
11600           sent by server is implementation specific.
11601
11602         * Changed public keys to comply with the protocol specification.
11603           Old public keys are not supported anymore and are not compatible.
11604
11605         * Removed nickname from Channel Payload as the latest draft removed
11606           it.  The client must resolve the nickname from the NAMES command
11607           reply received when it joined the channel.
11608
11609           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11610
11611 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11612
11613         * Fixed some errors in protocol specification drafts.
11614
11615         * Created lib/silccore/silcnotify.c to implement Notify Payload
11616           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11617           generic payloads described by protocol specifications.  The file
11618           includes implementations for ID Payload and Argument Payload.
11619
11620         * Changed Command Payload implementation to use the new Argument
11621           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11622           to comply with SILC coding conventions.
11623
11624         * Added suppport for Argument Payload handling in Notify Payload
11625           implementation as protocol requires it.  Added the new support
11626           into server and client lib as well.
11627
11628 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11629
11630         * Added support for multiple nicknames on same channel.  [n] is
11631           added locally to the nickname if there are more than one same
11632           nicknames on the channel.
11633
11634         * Server now sends all nicknames that matched WHOIS request.
11635           Client also shows the list received from server.
11636
11637         * Added TOPIC command to client side.  User can now set and show
11638           current topic on channel.
11639
11640         * Added MOTD command to client and server.  Also, server sends the
11641           motd when client connects to the server.
11642
11643         * Changed version strings to comply ISO 8601.
11644
11645 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11646
11647         * Fixed protocol error handling in client library.  It should now
11648           cope even if the SKE fails for some reason.
11649
11650         * Made new protocol specification drafts for submitting to IETF.
11651
11652         * Implemented TOPIC command to server in silcd/command.c.
11653
11654         * Added two new notify types into lib/silccore/silcnotify.h:
11655           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
11656           notify nickname change and topic setting/change on a channel.
11657
11658         * API change of command_reply operation in client library.  The
11659           application gets now the status type received from server as well.
11660
11661 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11662
11663         * Removed the function just added to lib/silcutil/silcschedule.[ch].
11664
11665         * Cras fixed and optimized the packet handling even further and
11666           it should work now.  Minor change to the prototype of function
11667           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
11668
11669 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11670
11671         * Added new function into lib/silcutil/silcschedule.[ch]:
11672           silc_schedule_with_fd to select() a specified fd.  The function
11673           returns after timeout expires or data arrives or goes.  The
11674           function is used by packet routines to wait that all data is
11675           received from network.
11676
11677         * Fixed data reading from network in lib/silccore/silcpacket.c.
11678           The code now assures that all data is read from the fd and then
11679           continues packet processing.  This was a bug fix since the code
11680           used to drop some data in some circumstances.
11681
11682         * Added new function into lib/silcclient/client.[ch]:
11683           silc_client_start_key_exchange to start key exchange after
11684           connection has been established to server.  The code internally
11685           now uses this funtion but its main purpose was to provide it
11686           for applications that perform their own connecting.  After
11687           application has created a connection it merely calls this
11688           function to start the key exchange between client and server.
11689           The library takes care of everything else after that.
11690
11691           Updated also lib/silcclient/README to explain the usage of
11692           this new function.
11693
11694         * Do not send to application information that connection has
11695           been established.  Application gets notified it by connect
11696           operation anyway.
11697
11698 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11699
11700         * Applied cras's patch to add silc_schedule_one function.  The
11701           function runs scheduler once and returns.
11702
11703         * Fixed the scheduler after cras messed it up.  The timeout
11704           handling works now as it's supposed to work.
11705
11706         * Added into lib/silccore/ silcnotify.h to include notify
11707           message types support.  Changed silc_server_send_notify*
11708           functions, in server.[ch], to support those new notify types.
11709           Added the support for the notify types into client library,
11710           as well.  Added new notify client operation into ops.h in
11711           lib/silcclient/.
11712
11713         * Changed silc_server_packet_send_to_channel to send normal
11714           packets instead of just channel message packets.  The function
11715           is now used to send the notify packets to channels.  It is not
11716           used to send channel message packets anymore, as server never
11717           sends them anymore.
11718
11719         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
11720           va_arg()s as it seems to require it nowadays.  I guess, if SILC
11721           is compiled with older va_arg() the new code should work anyway.
11722
11723 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11724
11725         * Splitted core library.  Core library (lib/silccore) includes
11726           now only SILC protocol specific core (and common) components.
11727           Created new utility library (lib/silcutil) that includes more
11728           generic purpose stuff.  The stuff for util library was taken
11729           from the old core library.  This was minor and easy split.
11730
11731         * Created SILC Client Library (lib/silcclient) that includes
11732           implementation of the SILC client without user interface.  This
11733           was major move from silc/ directory.  The code has been changed
11734           so that it is transparent towards the user interface.  The
11735           silc/ directory includes now the same user interface as before
11736           and it uses the new client library.  Read lib/silcclient/README.
11737           Basicly, the client library performs everything else related
11738           to SILC except user interface handling.  Also, configuration
11739           files are considered to be part of user interface and library
11740           does not handle them.
11741
11742           This change also changed a lot of structures, function naming etc.
11743           Most important change was that SilcClientWindow object was
11744           renamed to SilcClientConnection in the client library.  Created
11745           also new file lib/silcclient/ops.h.  Also added new files
11746           silc/local_command.[ch] and silc/client_ops.[ch].
11747
11748           All these changes were made to make it easier for user interface
11749           designers to create what ever user interface for the SILC client
11750           they want.
11751
11752           It is also expected that the server will be moved to lib
11753           directory as well and SILC Server Library will be created;
11754           sometimes in the future.
11755
11756         * Removed Local commands from lib/silccore/silccommand.h as
11757           they are application specific and new client library does not
11758           handle any of those anymore.
11759
11760         * Several functions moved to lib/silcutil/silcutilc.[ch] from
11761           old client implementation in silc/.
11762
11763         * Added support for callback functions in SILC_LOG_* macros.
11764           Application can now set its own callbacks that will be called
11765           instead of using the default functions that will always print
11766           the debug messages to stderr (or stdout).  Also, debugging can
11767           now be disabled by setting silc_debug to FALSE and re-enabled by
11768           setting it to TRUE.  Note, that logging will still work even
11769           if debugging is disabled.
11770
11771           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
11772           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
11773           silc_log_reset_debug_callbacks.
11774
11775         * To enable debugging in silc client one must give now -d
11776           option on command line.
11777
11778         * Changed silc_schedule_init to automatically allocate task queues
11779           if they are not allocated before calling it.
11780
11781 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11782
11783         * Added GMP 3.1 into math library.
11784
11785 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11786
11787         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
11788           a channel in SILC network.  The packet is used by servers and
11789           routers to notify other routers that user has left a channel.
11790           This little feature was missing until now.  Added the feature
11791           to protocol specification as well.
11792
11793           Added functions: silc_server_send_remove_channel_user and
11794           silc_server_remove_channel_user into server.[ch].
11795
11796         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
11797           lib/silccore/silcpacket.h.  However, they are not implemented
11798           yet.
11799
11800 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11801
11802         * Fixed joining to a channel and sending channel messages
11803           between server and router.  The channel message sending should
11804           now work inside a cell.
11805
11806 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11807
11808         * Fixed the private message sending between server and router.
11809           The private message sending should now work inside a cell.
11810
11811         * Added silc_server_replace_id into server.[ch] to replace
11812           existing ID in the SILC network.
11813
11814         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
11815           and silc_idlist_replace_server_id into idlist.[ch] in server.
11816
11817 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11818
11819         * Fixed the server to server connections.  Server can again now
11820           connect to router.  Router to router connections probably does
11821           not work just yet.
11822
11823 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11824
11825         * Added dynamic protocol registering support.  Now protocols can
11826           registered and unregistered on the fly.  Patch by cras.
11827
11828 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11829
11830         * Added lib/contrib directory to hold routines that some platforms
11831           don't have but are needed by SILC.
11832
11833         * Added getopt.c, getopt1.c and getopt.h from GNU C library
11834           into lin/contrib to provide getopt() and getopt_long() for
11835           those who don't have it.
11836
11837 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11838
11839         * Added AWAY command to client.  When away message is set and
11840           client receives a private message packet the client automatically
11841           replies to the sender with the away message.
11842
11843         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
11844           bug seemed to be the cause of recent problems when compiling
11845           with gcc-2.95.
11846
11847         * Added version detection support to SKE protocol specification
11848           and added the new changes to the SKE implementation as well.
11849           There were other minor changes in the SKE protocol as well.
11850
11851           Many changes in lib/silcske/silcske.[ch] and in
11852           lib/silcske/payload.[ch].
11853
11854         * Added ^U functionality, clear input line.  Patch from cras.
11855
11856 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11857
11858         * Mainly small bugfixes on core library.  Fixed some debugging
11859           logging and buffer overflow in silclog.c.
11860
11861         * Updated config.sub and config.guess on the distribution tree.
11862
11863 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11864
11865         * Added command lagging support in server. Client may execute
11866           commands now only once in two seconds.
11867
11868 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11869
11870         * Optimized packet reception. MAC computation and checking is now
11871           also more optimized.  A lot previously duplicated code is now
11872           used as generic by both client and server.
11873
11874         * Fixed key pair generation in clientutil.c
11875
11876 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11877
11878         * Added into lib/silccore/silcbufutil.[ch] new function;
11879           silc_buffer_realloc.
11880
11881         * Moved generic packet sending/encryption functions to
11882           lib/silccore/silcpacket.[ch] from client and server.  Some
11883           rewriting of the functions.
11884
11885         * Moved all generic packet reception/decryption functions to
11886           lib/silccore/silcpacket.[ch] from client and server.  The
11887           packet processing is now much cleaner in both client and server.
11888           These were major changes in both client and server.
11889
11890         * Created many common functions in server to do packet sending.
11891           Previously code were duplicated a lot, this has been removed
11892           with these changes.
11893
11894 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11895
11896         * Rewrote major parts of the ID cache system.  Don't know
11897           whether it is better now or not but at least the API is more
11898           cleaner now.
11899
11900         * Major rewrite on ID cache stuff on client because of the ID
11901           cache API changes.  Added idlist.c to client.
11902
11903         * Also major rewrite on ID cache stuff on server as well.
11904           Major rewrite of idlist.[ch]. SilcXXXList's are now named
11905           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
11906           in hand, instead they are all put into the ID cache system now.
11907           All server_idlist_* routines uses ID cache now instead of
11908           traversing its own lists (those lists does not exist anymore).
11909           SilcIDList though still exists.  Also, SilcXXXEntry's are
11910           now pointers.
11911
11912 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11913
11914         * Finally made the SKE implementation compliant to the protocol
11915           specification.  All mp integers are now binary encoded as
11916           opposed being HEX encoded.
11917
11918         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
11919           from binary data.
11920
11921         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
11922           functions: silc_[encode/decode]_pem.  Also added function
11923           silc_encode_pem_file to PEM encode with newlines ('\n') for
11924           saving into a file.
11925
11926         * SILC public keys are now encoded either PEM or binary.  Same
11927           option is for private keys as well.  By default private keys
11928           are binary encoded and public keys PEM encoded.  Silly HEX
11929           encoding were removed.
11930
11931         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
11932           function to create fingerprints.
11933
11934         * Fixed a bug in SHA1; does not change the original data anymore.
11935
11936         * Partly implemented INFO command on client and server side.
11937           Fixed CLEAR command.  Changes to SERVER command; show current
11938           server(s) when giving command without arguments.  Added
11939           VERSION command to client.
11940
11941         * Added check to server that unregistered connections cannot
11942           execute commands (unless it is specificly allowed).
11943
11944 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11945
11946         * Fixed screen refresh.
11947
11948         * Fixed channel joining bug from client.  On some circumstances
11949           client tried to join to a channel it had already joined.
11950
11951         * Added public key verification process into client's protocol.c.
11952           The client now verifies the public key from user and saves
11953           it into ~./silc/serverkeys/ directory.
11954
11955           Added into: clientutil.[ch]: silc_client_verify_server_key.
11956
11957         * Changed SKE protocol's silc_ske_initiator_finish function
11958           to accept callback function that verifies the received public
11959           key.  Removed old silc_ske_verify_public_key function.
11960
11961 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11962
11963         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
11964           silc_pkcs_private_key[_data]_set.
11965
11966         * Made the password and public authentication more cleaner in
11967           server's protocol.c.
11968
11969         * Removed historic and obsolete protocol `channel_auth' from
11970           both client and server.
11971
11972         * Removed wrong way of sending command status messages from
11973           server to client in server's command.c.  The old way violated
11974           protocol specification.
11975
11976           Changes to silccore/silccommand.[ch]: removed
11977           silc_command_encode_status_payload -> not needed anymore,
11978           changed silc_command_encode_payload_va to accept extra
11979           argument on variable argument list.  The argument type must
11980           now be provided to the function.  Also, added new function:
11981           silc_command_encode_reply_payload_va which is same as
11982           normal command_encode_payload_va except command status type
11983           is provided as extra argument.
11984
11985 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11986
11987         * Added ~./silc directory handling.  The directory includes the
11988           public and private keys for the client.
11989
11990           Added silc_client_check_silc_dir, silc_client_create_identifier
11991           and silc_client_load_keys.
11992
11993         * Implemented SILC protocol compliant public key.  Added public
11994           and private key saving to and loading from files.
11995
11996           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
11997           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
11998           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
11999           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12000           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12001
12002           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12003           silc_pkcs_load_[public/private]_key.
12004
12005 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12006
12007         * Added silc_server_get_route (route.[ch]) to get connection
12008           data for the fastest route for given ID.
12009
12010         * Implemented INVITE command on client and server.  The command
12011           were re-defined in the SILC Protocol Specification and the
12012           implementation now complies with the specification.
12013
12014         * Implemented PING command on client and server.
12015
12016         * Implemented NAMES command on client and server.  The server side
12017           supports currently only normal server not router server yet.
12018           Some changes to NAMES definition in SILC protocol specification.
12019
12020 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12021
12022         * Implemented LEAVE command on client and server.
12023
12024         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12025           again.  This change was made to the protocol as well.  Server
12026           should not violate the protocol specification anymore.
12027
12028 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12029
12030         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12031           was tested.  SOCKS4 was not but should work anyway.