updates.
[crypto.git] / CHANGES
1 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
4
5         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
6           Changed silc_skr_find to have SilcSchedule argument and removed
7           it from silc_skr_[alloc|init].  Affected files are
8           lib/silcskr/silcskr.[ch].
9
10         * Allow NULL id for silc_idcache_add.  Affected file is
11           lib/silcapputil/silcidcache.c.
12
13         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
14           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
15           Fixed also channel message encryption with router-to-router
16           packets.
17
18         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
19
20         * Added silc_net_get_error_string, silc_net_listener_get_ip and
21           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
22
23 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
24
25         * Add option --enable-silc-plugin.  Affected files are
26           apps/irssi/configure.{ad,in}
27
28         * Only compile the SILC Plugin if required.  Affected files are
29           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
30
31         * Conditionally build the SILC Plugin.  Affected files are
32           apps/irssi/src/silc/core/Makefile.am,
33           apps/irssi/src/fe-common/silc/Makefile.am
34
35         * Backout delayed protocol exit and replace with a lame busy
36           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
37           apps/irssi/src/silc/core/silc-core.c
38
39         * Fix key generation for SILC Plugin.  Affected file
40           apps/irssi/src/silc/core/clientutil.c
41
42 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
43
44         * Only pass -rpath to libtool when building shared libraries.
45           Affected file lib/Makefile.ad
46
47         * Removing the stray "s" in configure.ad
48
49 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
50
51         * Redraw the screen after creating a new key.  Affected file
52           apps/irssi/src/silc/core/clientutil.c
53
54 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
55
56         * Added SILC Client setting /set nickname_format that specifies
57           the nickname format string.  Changed default nickname format
58           string to "%n#%a".  Affected file is
59           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
60
61         * Fixed nickname parsing with WHOIS command to accept formatted
62           nicknames.  Changed the silc_client_get_clients_local to allow
63           the searched nickname to be formatted nickname.  Removed %s and
64           %S nickname formatters.  Affected files are in lib/silcclient/.
65
66         * Added silc_client_nickname_parse to Client library API.  Affected
67           file is lib/silcclient/silcclient.h.
68
69         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
70           commands.  Affected file are
71           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
72
73 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
74
75         * Incorporate SILC Plugin patches.  Affected files are
76           apps/irssi/src/fe-common/silc/module-formats.{c,h},
77           apps/irssi/src/silc/core/clientutil.{c,h},
78           apps/irssi/src/silc/core/silc-core.c,
79           apps/irssi/src/silc/core/silc-chatnets.{c,h},
80           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
81           apps/irssi/src/fe-common/silc/module.h
82
83 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
84
85         * In notify handling resolve user entries many times if the
86           resolving timedout.  Affected file lib/silcclient/client_notify.c.
87
88         * silc_client_get_clients_local do not return any invalid entries.
89           Affected file is lib/silcclient/client_entry.c.
90
91         * Do not print "there are now xx user on this channel" for users
92           that actually aren't anymore on the channel.  Affected file
93           is apps/irssi/src/client_ops.c.
94
95 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
96
97         * When joining channels with a password given in the config file,
98           use it.  Also use it when cycling (it would be better to get
99           the password from the server, but this isn't possible in SILC).
100           Affected files apps/irssi/src/silc/core/silc-servers.c,
101           apps/irssi/src/silc/core/silc-channels.c
102
103 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
104
105         * Import perl script for sign_messages from silc-plugin.  Affected
106           file apps/irssi/scripts/silc.pl
107
108 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
109
110         * Only wait for a nick on connecting, when it differs
111           (not counting case) from the username.  Affected file
112           is apps/irssi/src/silc/core/silc-servers.c
113
114 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
115
116         * Use time settings for lag settings.  Affected file is
117           apps/irssi/src/silc/core/silc-lag.c
118
119 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
120
121         * Added silc_thread_yield.  Affected file is
122           lib/silcutil/silcmutex.h.
123
124 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
125
126         * Fixed WHOIS command and requested attributes handling in
127           client library.  Affected files are lib/silcclient/command.c
128           and lib/silcclient/client_attrs.c.
129
130         * Fixed silc_time_value to actually work.  Added new function
131           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
132
133 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
134
135         * SILC Client 1.1 beta2.
136
137 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
138
139         * Fixed client to properly abort TCP stream creation when
140           giving /QUIT.  Affected file
141           apps/irssi/src/silc/core/silc-servers.c.
142
143         * Fixed several connecting aborting crashes from the client
144           library, packet engine and socket stream.  Affected files
145           are in lib/silclient/, lib/silccore/silcpacket.c and
146           lib/silcutil/unix/silcunixsocketstream.c.
147
148         * Fixed private key export double free crash in key generation.
149           Affected file is lib/silccrypt/silcpk.c.
150
151         * Fixed FSM event waiting when there are multiple signallers
152           and the waiter goes away after the first signal.  Affected
153           file in lib/silcutil/silcfsm.c.
154
155 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
156
157         * Fixed FSM event signalling to check if the waiter has gone
158           away already.  Affected file is lib/silcutil/silcfsm.c.
159
160         * Fixed counter mode encryption/decryption to handle non-padded
161           SILC packets correctly.  The silc_cipher_set_iv now
162           in counter mode resets for a new block.  Affected files are
163           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
164
165 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
166
167         * SILC Client 1.1 beta1.
168
169         * Memory leak fixes around the libraries.
170
171 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
172
173         * Added better check for epoll() in configure.  Affected file
174           is lib/configure.ad.
175
176 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
177
178         * Fixed per scheduler data input buffer in packet engine.  Use
179           list of inbufs instead of just one so that multiple streams
180           can do partial reads to different buffers.  Affected file is
181           lib/silccore/silcpacket.c.
182
183         * Fixed WATCH notify handling in client library.  Affected file
184           is lib/silcclient/client_notify.c.
185
186 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
187
188         * Fixed packet wrapper stream API to support encoder/decoder
189           for packets, and to handle partial reading correctly.  Fixed
190           also inbuf size checking in reading to have enough space before
191           reading.  Affected files are lib/silccore/silcpacket.[ch].
192
193         * Rewrote file transfer in client library.  Affected files are
194           in lib/silcclient/.
195
196         * Added TCP/UDP listener (internal) API to client library to have
197           generic way of dealing with listeners.  Fixed Key Agreement and
198           file transfer to use it.  Affected files are in lib/silcclient/.
199
200         * Fixed SKE to process SUCCESS packets synchronously and to call
201           completion synchronously.  Affected file is lib/silcske/silske.c.
202
203         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
204
205         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
206           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
207
208 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
209
210         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
211           to client library.  Affected file is
212           lib/silcclient/client_register.c.
213
214         * Serialize NICK and JOIN commands to avoid problems locally
215           with changing ID while joining to channel.  Affected file is
216           lib/silcclient/command.c.
217
218         * Fixed entry resolving while handling incoming JOIN notify.
219           Handle properly cases, in re-processing of notify packets, where
220           the IDs may become invalid while resolving the entry (like nick
221           change).  Entry is invalid if it doesn't have nickname, and such
222           entries are not delivered to application anymore.  These fixes
223           problems of not seeing JOINs when remote user changes nickname
224           at the same time.  Affected files are in lib/silcclient/.
225
226 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
227
228         * Added support for computing message payload MAC in new way
229           (SILC Protocol version 1.3).  Bakcwards support for old way
230           remains.  Affected files are lib/silccore/silcmessage.[ch].
231
232 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
233
234         * Added SilcRwLock API, a read/write lock.  Affected files are
235           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
236
237 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
238
239         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
240
241 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
242
243         * The silc_schedule_set_listen_fd now returns boolean value.
244           Fixed FD task adding to check correctly for already added
245           FD tasks.  Added stricter error checking for FD scheduling
246           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
247           and lib/silcutil/unix/silcunixschedule.c.
248
249         * The silc_stream_set_notifier now returns boolean value.  Changed
250           all streams to support and check for the error condition.
251           Affected files are in lib/silcutil/.
252
253         * Fixed SKE library session aborting and deletion.  Affected
254           file are lib/silcske/silcske.c.
255
256 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
257
258         * Implemented PKCS #1 with appendix with hash OID in the
259           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
260           lib/silccrypt/silchash.[ch] and
261           lib/silcasn1/silcasn1[_encode|decode].[ch].
262
263 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
264
265         * Added support for Version (V) SILC public key identifier.
266           Affected files are lib/silccrypt/silcpk.[ch].
267
268 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
269
270         * Rewrote connection auth request in client library.  It is now
271           done automatically by the library and the resolved method given
272           as a hint to get_auth_method client operation.  Affected files
273           are lib/silcclient/.
274
275 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
276
277         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
278           It can be used to wrap SilcPacketStream into SilcStream.
279
280         * Fixed %p formatting from silc_snprintf.  Affected file is
281           lib/silcutil/silcsnprintf.c.
282
283         * Ported SFTP library to new utility library.  Ported also
284           the SFTP testers.  Affected files in lib/silcsftp/.
285
286 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
287
288         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
289           of silc_snprintf, silc_vsnprintf, silc_asprintf and
290           silc_vasprintf.
291
292 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
293
294         * Added preliminary Symbian support.  Changes around the source
295           tree.  The symbian/ directory now includes Carbide.c++ project
296           files to compile the sources.
297
298         * Added silc_snprintf.  Affected files are
299           lib/silcutil/silcstrutil.[ch].
300
301 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
302
303         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
304           macros.  SILC_FSM_CONTINUE macro now immediately calls the
305           next state instead of first returning back to FSM.  Helps
306           in debugging crashes etc.
307
308           Removed FSM Semaphores.  Introduced FSM Event which is
309           asynchronous event.   Affected files are in lib/.
310
311         * Added epoll(7) support to SILC Scheduler.  It is used by default
312           if it is available.  Affected files are
313           lib/silcutil/silcschedule.[ch],
314           lib/silcutil/unix/silcunixschedule.c.
315
316 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
317
318         * Added CTR mode to AES.  Simplified cipher implementation API
319           more.  Affected files are in lib/silccrypt/.
320
321 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
322
323         * Removed `detach' client operation.  The detachment data is
324           now delivered in SILC_COMMAND_DETACH command reply to
325           application.  Affected file in lib/silcclient/.
326
327         * Rewrote resuming/detaching in client library.
328
329         * Added boolean encryption indicator for silc_cipher_set_key.
330           Affected files lib/silccrypt/silccipher.[ch].
331
332 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
333
334         * Added silc_likely and silc_unlikely macros for GCC branch
335           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
336
337         * Added assembler AES optimization.  Cleaned up the SILC Cipher
338           implementation API.  Affected files are in lib/silccrypt/.
339
340 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
341
342         * Changed back the SILC_FSM_THREAD_WAIT operation to not
343           continue to next state if thread is finished already.  That
344           check is not done anymore.  Affected files are
345           lib/silcutil/silcfsm.[ch].
346
347 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
348
349         * Removed silc_packet_[get|set]_ciphers and
350           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
351           handle REKEY_DONE packet sending in rekey.  Affected files
352           are lib/silccore/silcpacket.[ch].
353
354         * Added silc_fsm_is_started.  Affected files are
355           lib/silcutil/silcfsm.[ch].
356
357         * Added settings sign_channel_message, sign_private_message
358           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
359           support for key agreement in /KEY command. Affected files
360           in apps/irssi/src/silc/core/.
361
362         * During SILC Client initialization forward log messages to
363           stderr.   Affected files in apps/irssi/src/silc/core/.
364
365 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
366
367         * Added silc_ske_get_key_material.  Affected files are
368           lib/silcske/silcske.[ch].
369
370         * Added silc_packet_stream_is_udp.  Affected files are
371           lib/silccore/silcpacket.[ch].
372
373         * Added SKE packet retransmission support with UDP transport.
374           Affected file is lib/silcske/silcske.c.
375
376 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
377
378         * Added silc_socket_stream_is_udp.  Affected file is
379           lib/silcutil/silcsocketstream.[ch].
380
381         * Added UDP transport support to packet engine.  Affected file
382           is lib/silccore/silcpacket.c.
383
384         * Added silc_socket_stream_is_udp.  Affected file is
385           lib/silcutil/silcsocketstream.[ch].
386
387 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
388
389         * Added silc_packet_send_va[_ext] to send variable argument
390           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
391
392         * Timeout freelist garbage collection added to scheduler.
393           Affected file lib/silcutil/silcschedule.c.
394
395 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
396
397         * Added silc_show_public_key_file to
398           lib/silcapputil/silcapputil.[ch].
399
400         * Added SILC_STR_ADVANCE support for buffer unformatting.
401           Affected file lib/silcutil/silcbuffmt.c.
402
403 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
404
405         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
406
407         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
408
409         * silc_fsm_continue[_sync] now cancels erlier timeout set with
410           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
411
412 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
413
414         * Added SILC_STR_FUNC to buffer format API.  Affected files
415           are lib/silcutil/silcbuffmt.[ch].
416
417         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
418
419         * No more memory allocation for message payload parsing.
420           Pre-allocated buffer can be used with message payload encoding.
421           Affected files lib/silccore/silcmessage.[ch].
422
423 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
424
425         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
426           to silcutil/silcbuffmt.[ch].
427
428 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
429
430         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
431           Affected file lib/silcutil/silcbuffmt.[ch].
432
433         * Removed silc_schedule_signal_[un]register and
434           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
435           to add signal task.  Only one callback per signal may be
436           added.  The signals are now automatically called back to
437           caller.  Affected files lib/silcutil/silcschedule.[ch] and
438           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
439
440         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
441
442         * Added SilcSKEParams for SKE parameters and simplied even more
443           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
444           Added support for IV included and session port handling with
445           UDP/IP connections.
446
447         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
448           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
449           which is called after every rekey when IV Included flag is used.
450           See SILC specifications for details.
451
452 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
453
454         * Added lib/silcapputil and moved SILC application specific
455           utility routines from the generic util library lib/silcutil
456           to the new library.  Removed lib/silcidcache and moved that
457           to lib/silcapputil as well.
458
459 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
460
461         * Added SILC_STR_ADVANCE.  Affected file is
462           lib/silcutil/silcbuffmt.[ch].
463
464         * The silc_buffer_strformat preserves buffer locations now.
465
466         * Added lib/silcutil/silcatomic.h for atomic operations.
467
468 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
469
470         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
471           server.
472
473         * Fixed MIME deocing when data portion is not present.
474           Affected file lib/silcutil/silcmime.c.
475
476 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
477
478         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
479
480         * Added IV Included support to packet routines, to allow
481           packet sending and receiving on UDP/IP.  Affected files are
482           lib/silccore/silcpacket.[ch].
483
484         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
485
486 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
487
488         * Added UDP support to network and socket stream library.
489
490 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
491
492         * Added conditional variables.  New files are
493           lib/silcutil/silcondvar.h and platform specific implementations.
494
495 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
496
497         * make sure session->hostname and session->port are valid before the
498           application callback is done, since things will go wrong if the
499           application immediately calls silc_client_file_receive. Affected
500           file lib/silcclient/client_ftp.c.
501           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
502
503 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
504
505         * New SILC PKCS API enabling support for other public keys
506           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
507
508         * Separated SILC Public Key Payload routines from the PKCS API
509           to lib/silccore/silcpubkey.[ch].
510
511 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
512
513         * Added SILC Key Repository library, lib/silcskr.
514
515         * Added SILC Server library, lib/silcserver.
516
517 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
518
519         * MIME objects in attributes now use SilcMime.  Affected files
520           are lib/silccore/silcattrs.[ch].
521
522 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
523
524         * Synchronize semaphore posting for real threads in FSM.
525           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
526
527 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
528
529         * Added silc_file_set_nonblock.  Affected file is
530           lib/silcutil/silcfileutil.h.
531
532         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
533
534 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
535
536         * FSM based implementation of SILC SKE.  Simpler interface also.
537           Affected files are in lib/silcske/.
538
539         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
540
541 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
542
543         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
544           silc_mime_parse is available but deprecated.
545
546         * Check that packet is valid when processing key exchange,
547           authentication and rekey protocols.  Fixes a crashbug.
548           Affected files are apps/silcd/protocol.c and
549           lib/silcclient/protocol.c.
550
551         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
552           all hash buffers to use that instead of fixed values.
553
554 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
555
556         * Added SHA-256 to crypto library.  The SHA-256 takes now
557           precedence over SHA-1.
558
559 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
560
561         * Check for valid return value from regcomp.  Affected file
562           lib/silcutil/unix/silcunixutil.c.
563
564 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
565
566         * Fixed silc_hash_uint to work with integers.  Affected
567           file lib/silcutil/silcutil.c.
568
569 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
570
571         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
572
573 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
574
575         * Fixed channel public key list saving on JOIN command reply
576           on backup router.  Affected file apps/silcd/command_reply.c.
577
578 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
579
580         * Added default limit how many channels client can join,
581           default is 50.  Added 'channel_join_limit' configuration
582           option to server too.  Affected files are apps/silcd/command.c
583           and serverconfig.[ch].
584
585 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
586
587         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
588           On Toolkit the server and client are not compiled by default.
589           Affected file configure.ad.
590
591 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
592
593         * Added lib/contrib/getopt.[ch] for platforms that don't
594           have it (it is not GPL implementation).
595
596         * Fixed compilation when pkg-config is used.
597
598 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
599
600         * A comma in invite/ban string is invalid, check for it.
601           Affected file apps/silcd/server_util.c.
602
603         * Added SERVICE command to the server.  It parses the command
604           request but SILC Server does not support services for the
605           time being.  Affected file apps/silcd/command.[ch].
606
607         * Added SERVICE command and command reply to client library.
608           It is however incomplete.  Updated Toolkit documentation.
609           Affected files are lib/silcclient/command[_reply].[ch].
610
611         * Fixed IDENTIFY/WHOWAS command reply to send the username
612           correctly (uninitialized buffer).  Affected file is
613           apps/silcd/server_query.c.
614
615 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
616
617         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
618           finalizes the major restructuring of the CVS tree.
619
620 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
621
622         * Send empty MOTD reply if MOTD file cannot be read.
623           Affected file silcd/command.c.
624
625 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
626
627         * Optimized primer number generator to use simpler conversion
628           routines.  Also assure that the prime number will have the
629           highest bit set after modifying it.  Affected file is
630           lib/silcmath/silcprimegen.c.
631
632         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
633
634         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
635           for now only for testing purposes, it will not be delivered
636           in any distribution for now.
637
638         * Removed NSS MPI from the source tree.  Due to upcoming
639           license change for the SILC Toolkit, we cannot deliver the
640           NSS MPI anymore.  I decided to replace it in all distributions
641           with public domain library.
642
643         * Removed GNU regex from lib/contrib and introduced free
644           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
645           GNU regex compatible API to it (only partial).
646
647         * Removed getopt routines from lib/contrib.
648
649 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
650
651         * Use silc_server_send_command_reply to send replies instead
652           of encoding packet itself.  Affected file silcd/command.c.
653
654         * Added command sending and receiving statistics to server.
655           Affected files in silcd/.
656
657         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
658           with GCC, for it not to warn about pointer signedness.
659
660 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
661
662         * Added context to the SilcIDCache destructor.  Affected
663           files are lib/silccore/silcidcache.[ch],
664           lib/silcclient/client.c and silcd/server.c.
665
666 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
667
668         * Added pkg-config check to configure.
669
670         * The PublicKeyDir must not be used with Admin block in server
671           config.  Affected file silcd/serverconfig.c.
672
673 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
674
675         * Added Autodist.
676
677 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
678
679         * Handle empty LIST command reply correcttly in server.  Affected
680           file silcd/command_reply.c.
681
682         * Handle empty LIST command reply correctly in client library.
683           The application will now receive one LIST command reply with
684           all arguments set to NULL if there are no channels.  Updated
685           Client Library documentation accordingly.  Affected file
686           lib/silcclient/command_reply.c.
687
688 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
689
690         * Added channel name string stringprep profile to the protocol
691           and implementation to allow a little free'er channel name
692           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
693
694         * Added silc_channel_name_[check|verify] to check and verify
695           channel name strings.  Affected files are
696           lib/silcutil/silcstrutil.[ch].
697
698         * Added support for the new channel name preparation in client
699           library and server.  Affected files in lib/silcclient and
700           silcd/.
701
702 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
703
704         * Added the Autodist into the source tree.  It replaces the
705           old ./prepare.  It can be used to create distributions as
706           previously.  See README.CVS and README.DIST.  See
707           distributions in distdir/.
708
709 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
710
711         * Make sure query sends at least an error back if nothing
712           more is sent.  Affected file silcd/server_query.c.
713
714 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
715
716         * During query, check if the original command caller goes
717           away.  If it does, stop the query.  Affected file
718           silcd/server_query.c.
719
720         * Check for valid channel creation in JOIN command reply.
721           Affected file lib/silcclient/command_reply.c.
722
723         * Handle the resolver counter in silc_client_get_users_by_channel
724           callback correctly.  Fixed auto-join bug in Gaim.  Affected
725           file lib/silcclient/idlist.c.
726
727 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
728
729         * Added some better error messages.  Affected file
730           silcd/command_reply.c and packet_receive.c.
731
732         * Handle error in WATCH command propely on backup router.
733           Affected file silcd/command.c.
734
735         * Fixed freeing of unfreeable variable in WHOIS command reply.
736           Affected file silcd/command_reply.c.
737
738 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
739
740         * Added pkg-config .pc file creation for silc core library
741           and silcclient library.  A patch by c0ffee.
742
743         * Removed the need for GNU Libidn.  Added the simple stringprep
744           from libidn into lib/contrib/.  It is now used also on Windows
745           build.
746
747 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
748
749         * Simplified the invite and ban string handling in the
750           server.  Check for valid invite and ban arguments also.
751           Affected file silcd/server_util.c.
752
753 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
754
755         * Added WATCH list announcing in backup router protocol.
756           Affected files are silcd/command.c, server.c, server_backup.c.
757
758         * Do not change users mode to founder on normal server/backup
759           if the founder mode is set, and user is first one to join.
760           Affected file silcd/pcaket_receive.c.
761
762         * Do not send CUMODE_CHANGE notify back to sender.  Affected
763           file silcd/packet_receive.c.
764
765         * Added getrusage() to take noise in SILC RNG.  A patch by
766           Mika Boström.  Affected files are configure.in.pre,
767           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
768
769 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
770
771         * Splitted the SILC libraries configuration into a configure
772           fragment into lib/configure.ad.  It is now possible, once
773           this feature is added, to specify whether to compile or not
774           compile included SILC libraries.  Affected files are
775           configure.in.pre, lib/silcmath/mpi/configure.ad,
776           lib/configure.ad, Makefile.defines.pre and
777           Makefile.defines_int.pre.
778
779         * Added --with-silc-includes and --with-silc-libs to configure.
780           If specified the included libs are not compiled, but the
781           specified libs are used.  Pkg-config is not yet supported.
782           Affected file configure.in.pre.
783
784         * Fixed WATCH command handling on backup router.  Router does not
785           send the watch command any more to backup if it originates from
786           backup.  Affected file silcd/command.c.
787
788 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
789
790         * Changed announcing to not announce unregistered clients.
791           Affected file silcd/server.c.
792
793         * Fixed username handling in command reply.  Affected file
794           silcd/command_reply.c.
795
796         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
797
798 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
799
800         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
801           Affected file: includes/silcincludes.h.in
802
803         * bool is defined as _Bool on Mac OS X now.
804           Affected file: lib/silcutil/silctypes.h
805
806 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
807
808         * Added support for UTF-8 nicknames, channel names and
809           server names in client library.  Affected files in
810           lib/silcclient/.
811
812         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
813           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
814           software to check how Toolkit has been compiled.
815
816 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
817
818         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
819
820         * Use silc_utf8_str[n]casecmp instead of strcmp routines
821           in library and in SILC Client when dealing with nicknames
822           and other identifier strings.  Affected file in client lib
823           and irssi.
824
825         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
826           irssi/src/silc/core/silc-servers.c.
827
828 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
829
830         * Fixed idcache to work with the new identifier strings.
831           Affected file lib/silccore/silcidcache.c.
832
833         * Added UTF-8 hash and compare function for SilcHashTable.
834           Affected file lib/silcutil/silcutil.[ch].
835
836         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
837           Affected file lib/silcutil/silcstringprep.[ch].
838
839         * Changed the identifier string handling to include the original
840           format in client, server, channel entries and normalized
841           format in cache.  Affected files in silcd/.
842
843 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
844
845         * Added support for the new identifier strings and their
846           validity checking.  Nicknames, channel names and usernames
847           can now include practically any kind of letters and various
848           other characters.  Affected files in silcd/ and in libraries.
849
850           NOTE: comparing these strings should now be done with memcmp()
851           to check binary compatibility.  All these strings are normalized
852           and casing is irrelevant.
853
854         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
855           as easy function for applications to check whether identifier
856           strings are valid.
857
858 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
859
860         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
861           file lib/silcutil/silcutf8.c.
862
863         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
864
865 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
866
867         * Make public key in getkey reply mandatory.  Affected file
868           lib/silcclient/command_reply.c
869
870 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
871
872         * Added Parameter dont_register_crypto_library to
873           SilcClientParam. If set to TRUE, silcclient library will
874           not initalize the Crypto Libraries and application
875           will need to do it. Affected file lib/silcclient/silcclient.h,
876           lib/silcclient/client.c.
877
878 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
879
880         * Imported new silc_utf8_[encode|decode] routines from
881           my internal SILC 1.1 source tree.  New encodings added:
882           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
883           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
884           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
885           SILC_STRING_LDAP_DN.
886
887         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
888
889         * Implemented stringprep (RFC 3454) API.  Internally we use
890           GNU Libidn's stringprep, for now, so it is required now to
891           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
892
893         * Added checking for GNU Libidn and --with-libidn to configure.
894
895 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
896
897         * If the passphrases entered do not match while generating a new key,
898           completly start over instead of going into an infinite loop asking
899           the user to re-enter the passphrase correctly.  Affected file
900           lib/silcutil/silcapputil.c
901
902 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
903
904         * Make sure server is removed from backup list when it is
905           deleted.  Affected files silcd/command.c, server.c,
906           server_util.c.
907
908         * Close socket when connecting to router fails.  Affected
909           file silcd/server.c.
910
911 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
912
913         * Adopt configuration toolchain to current auto-tools.
914           Affected files prepare, irssi/configure.in
915         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
916           redo that.  Affected files irssi/src/silc/core/client_ops.c,
917           irssi/src/fe-common/silc/fe-silc-channels.c
918         * Take over command line options into silcclient data structure.
919           Affected file irssi/src/silc/core/silc-core.c
920
921 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
922
923         * Do not try to initiate backup resuming protocol forever.
924           Affected file silcd/server_backup.c.
925
926 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
927
928         * ID change in resuming has to be done before changing
929           detached client's modes, since the ID change may fail and
930           leave ghosts on the network.  Affected file is
931           silcd/packet_receive.c.
932
933 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
934
935         * Fixed Win32 scheduler to not stuck anymore.  A patch from
936           Juha Räsänen.  Affected file is
937           lib/silcutil/win32/silcwin32schedule.c.
938
939         * Fixed QoS parsing for connection blocks in server.  Affected
940           file is silcd/serverconfig.c.
941
942         * Fixed server statistics increasing in server.  Affected file
943           is silcd/server.c.
944
945         * The CLOSE command now marks backup router as self disconnected
946           to avoid resuming problems.  Affected file silcd/command.c.
947
948 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
949
950         * When using silc_net_create_connection[_async], and your system can
951           create IPv6 sockets, it will try to connect to the IPv6 host.
952           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
953           file lib/silcutil/unix/silcunixnet.c
954
955 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
956
957         * Check for valid route when receiving packet from router and
958           when routing it to local server in the cell.  A patch from
959           Matt Miller.  Affected files silcd/router.c and server.c.
960
961 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
962
963         * Couldn't detach and reattach twice, because of the previous
964           commit. Affected file silcd/packet_receive.c
965
966 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
967
968         * Added check to ignore Port value if Initiator is FALSE.
969           Remote router coudln't connect if Port was set. Affected file
970           silcd/serverconfig.c
971
972         * If some client tries to resume more than once at the same time,
973           server crashed. Router didn't crash, but showed odd behaviour
974           (didn't allow clients to join anymore, ..). Affected files
975           silcd/packet_receive.c silcd/idlist.h
976
977 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
978
979         * Destroy the file transfer session in silc_client_file_close
980           with timeout.  Affected file lib/silcclient/client_ftp.c.
981
982         * Call SFTP server monitor in READ and WRITE after the actual
983           operations.  Affected file lib/silcsftp/sftp_server.c.
984
985 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
986
987         * Create one configure script from configure fragments
988           (configure.ad).  This is a first step towards new distribution
989           system.  Affected files prepare, configure.in.pre,
990           lib/silcmath/mpi/configure.ad.
991
992 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
993
994         * Removed expiring of client key pair.  Affected file is
995           irssi/src/silc/core/clientutil.c
996
997 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
998
999         * Check the number of connections from real number of
1000           connections instead of socket number, when deciding if
1001           server is full.  Affected files are silcd/server.c,
1002           server_internal.h and silcd.c.
1003
1004         * Clarified the connections_max meaning in General section
1005           in doc/example_silcd.conf.in.
1006
1007         * The reconnect_keep_trying default value set to TRUE
1008           if it is not defined in the config file.  Affected file
1009           silcd/serverconfig.c.
1010
1011 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1012
1013         * Fixed crashbug in connection closing, after a protocol
1014           completion callback, which might have closed it already.
1015           Affected file silcd/server.c.
1016
1017         * Fixed rekey with PFS in backup router.  It did not allow
1018           rekeys with PFS, and when the rekey protocol timedout
1019           it crashed the backup router without the above fix.  Affected
1020           file silcd/packet_send.c and server.c.
1021
1022 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1023
1024         * The silc_client_add_channel_private_key now returns the
1025           private key context if pointer is given as argument.
1026           Affected files are lib/silcclient/silcclient.h and
1027           client_channel.c.
1028
1029         * Added support for using channel private keys in SILC
1030           Client Library even if the private key mode is not set
1031           on the channel.  Affected file lib/silcclient/client_channel.c.
1032
1033         * The channel private key used to decrypt message is now
1034           delivered to the application in the 'channel_messageÃ' client
1035           operation.  Affected files are lib/silcclient/silcclient.h
1036           and client_channel.c.
1037
1038         * Fixed wrong arg type for user limit in CMODE command reply.
1039           Affected file silcd/command.c.
1040
1041         * The user limit is now taken and saved to SilcClientEntry in
1042           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1043           Affected files lib/silcclient/silcclient.h, command_reply.c
1044           and client_notify.c.
1045
1046         * Added support to the new private message key indicator
1047           packet.  Added a new function to the client library:
1048           silc_client_send_private_message_key_request.  The sender
1049           indicates to be initiator, and receiver is responder.
1050           Added the indicator to the SilcClientEntry as 'prv_resp'
1051           boolean.  Affected files are lib/silcclient/silcclient.h
1052           client.[ch], and client_prvmsg.c.
1053
1054 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1055
1056         * Fixed the JOIN command calling when called with both
1057          -auth and -founder.  Affected file is lib/silcclien/command.c.
1058
1059 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1060
1061         * Check watcher list for resumed clients as well.  Affected
1062           file is silcd/packet_receive.c.
1063
1064 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1065
1066         * Implemented the user limit to the CMODE_CHANGE notify,
1067           CMODE command reply and JOIN command reply in server.
1068           Affected files are silcd/server.c, command.c, command_reply.c,
1069           packet_send.c and packet_receive.c.
1070
1071 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1072
1073         * Defined SILC_STRFMT_END that must be used now with
1074           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1075           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1076           lib/silcclient/silcvcard.c, silcd/server_util.c.
1077
1078         * Fixed the adding of public key to the WATCH list in server.
1079           Fixed the WATCH notify sending to client.  Affected files
1080           are silcd/packet_send.[ch], command.c, server_util.c.
1081
1082         * Implemented the watching by public key in the SILC Client
1083           Library and SILC Client.  Affected files are
1084           lib/silcclient/command.c and client_notify.c.
1085
1086 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1087
1088         * Added support for public key watching in server.  Affected
1089           files are silcd/server.c, server_internal.h, command.c,
1090           server_util.c.
1091
1092 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1093
1094         * Added public key to the SIlcClientEntry.  Affected files
1095           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1096
1097         * Fixed the get_clients_whois reply processing to return
1098           exactly same entries server returned.  Makes it possible
1099           to search using attributes.  Affected file is
1100           lib/silcclient/idlist.c.
1101
1102 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1103
1104         * Save founder key to SilcChannelEntry.  Affected files are
1105           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1106
1107 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1108
1109         * Call the monitor callback with _CLOSED status from the
1110           silc_client_file_close.  Affected files are
1111           lib/silcclient/client_fpt.c, silcclient.h
1112
1113         * Added silc_client_get_clients_whois which resolves using
1114           WHOIS, and supports requested attributes as well.
1115           Affected files are lib/silcclient/silcclient.h, idlist.c.
1116
1117 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1118
1119         * Added support for asking the destination filename where
1120           the downloaded file is saved in the file transfer.  Affected
1121           files are lib/silccilent/silcclient.h, client_ftp.c.
1122
1123 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1124
1125         * Fixed error handling in resuming data processing.  Affected
1126           files are lib/silcclient/client_resume.c and client.c.
1127
1128 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1129
1130         * Fixed silc_client_send_private_message to return TRUE correctly.
1131           Affected file lib/silcclient/client_prvmsg.c.
1132
1133         * Added topic to the SilcChannelEntry.  Affected files are
1134           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1135
1136 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1137
1138         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1139           file lib/silcclient/command.c
1140
1141 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1142
1143         * Convert all commands to UTF-8 before passing them to the
1144           client library.  Still need to convert replies from UTF-8 to
1145           the locale encoding.  Affected file
1146           irssi/src/silc/core/silc-cmdqueue.c
1147
1148 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1149
1150         * redirect all silc_client_command_calls through a queueing framework.
1151           This fixes /CYCLE and the annoying "nick change after auto-joining
1152           a channel".  Furthermore it defines one central point where
1153           command parameters can be UTF-8-ified.  Affected files
1154           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1155           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1156
1157 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1158
1159         * use asynchronous connect() to establish router connections.
1160           Fixes problem when the primary router goes down.  Affected files
1161           silcd/server.c, silcd/server_backup.c
1162
1163 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1164
1165         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1166           Fixed various compilation warnings when type casting ints
1167           to pointers or vice versa, of different size.  Updates around
1168           the source free.
1169
1170 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1171
1172         * Surrogates not allowed in UTF-8 strings, updated decoder.
1173           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1174           testers in lib/silcutil/tests/ directory.
1175
1176 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1177
1178         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1179           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1180           files are lib/silcclient/silcclient.h, client.c.
1181
1182 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1183
1184         * When resuming a session fails, notify the user that the session
1185           file needs to be removed eventually.  Affected files
1186           irssi/src/fe-common/silc/module-formats.[ch],
1187           irssi/src/silc/core/client_ops.c.
1188
1189 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1190
1191         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1192           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1193
1194         * Typofix in Irssi::Silc module.  Affected file
1195           irssi/src/perl/silc/Silc.xs.
1196
1197 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1198
1199         * Changed the way NOTICE flagged messages are treated. Added support
1200           for notices in queries and signing notices.  Affected files
1201           irssi/default.theme; irssi/docs/help/in/notice.in;
1202           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1203           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1204
1205         * Fixed typo in /ACTION help.  Affected file
1206           irssi/docs/help/in/action.in
1207
1208 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1209
1210         * Fixed typo in perl module.  Affected file
1211           irssi/src/perl/silc/Server.xs
1212
1213         * Changed the way ACTION flagged messages are treated. Added support
1214           for actions in queries and signing actions.  Affected files
1215           irssi/default.theme; irssi/docs/help/in/action.in;
1216           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1217           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1218           silc-servers.[ch]
1219
1220 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1221
1222         * Incorrectly reported error when client had to be resolved from
1223           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1224
1225 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1226
1227         * Fixed whois public key hash table deleting and adding in
1228           detached client case.  Affected file silcd/packet_receive.c.
1229
1230 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1231
1232         * Changed filenames of silc/fe module not to collide with filenames
1233           from core/fe.  Also seperated public messages printing from
1234           query messages printing.  Affected files are all in
1235           irssi/src/fe-common/silc.
1236
1237 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1238
1239         * Fixed the invite process handling during joining to use
1240           correct server name for the client that is matched against
1241           the invite string for the channel.  Wrong server name caused
1242           inability to join the channel.  Affected file is
1243           silcd/command.c.
1244
1245 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1246
1247         * Fixed the CUMODE channel founder authentication on normal
1248           server to not remove the founder rights on existing founder
1249           before checking that router accepts the mode change.  Affected
1250           files are silcd/command.c and silcd/packet_receive.c.
1251
1252         * Remove the server entry correctly when rekey timeouts and
1253           remote router connection on normal server is closed.  Fixes
1254           a crash where server uses the freed server entry.  Affected
1255           file silcd/server.c.
1256
1257 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1258
1259         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1260           networks.  This is the first step in solving the bug about
1261           /SERVER ADD -silcnet <silcnet>.  Affected files
1262           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1263           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1264           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1265
1266 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1267
1268         * /SMSG and /MMSG now correctly create new queries. Affected files
1269           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1270
1271         * Add basic support for SILC protocol specific variables in perl.
1272           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1273           irssi/src/perl/Makefile.am
1274
1275 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1276
1277         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1278           issue when the current key expires.  Affect file
1279           irssi/src/silc/core/clientutils.c
1280
1281         * Make the session data filename configurable.  This makes it
1282           possible to have different session files for different
1283           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1284           client_ops.[ch], silc-servers.c,
1285           irssi/src/silc/fe-common/silc/module-formats.[ch]
1286
1287         * Use the same set of libtool files for the MPI lib as for the
1288           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
1289           config.sub, configure.in, install-sh, missing, mkinstalldirs
1290
1291 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1292
1293         * Fixed server statistics decrementing error to not go to
1294           negative.  Affected file silcd/packet_receive.c.
1295
1296 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1297
1298         * Use silc_server_query_add_error to add error in public key
1299           search error.  Added support in send_reply to send errors
1300           without specific argument.  Affected file silcd/server_query.c.
1301
1302         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
1303           Client for NO_SUCH_NICK.  It was against the protocol specs.
1304           Affected file irssi/src/silc/core/client_ops.c.
1305
1306         * Added backwards support for the wrong NO_SUCH_NICK error sending
1307           in server.  To be removed in SILC Server 1.0.  Both old clients
1308           and clients with fixed error handling now works.  Affected file
1309           silcd/server_query.c.
1310
1311 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
1312
1313         * fixed a bug in the whois using attributes function where no
1314           error was sent if no nickname and client id but the attributes were
1315           given to whois. Affected file silcd/server_query.c
1316
1317 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
1318
1319         * remove public key from public key hashtable on detach. Affected
1320           file silcd/packet_receive.c
1321
1322         * free public key hashtable before removing clients on server
1323           shutdown. Affected file silcd/server.c
1324
1325         * remove public key prior deleting client-data on killing a client.
1326           Affected file silcd/server_util.c
1327
1328 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
1329
1330         * Getting the MOTD from other servers works now. Affected
1331           files are silcd/command.c and silcd/command_reply.c
1332
1333 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1334
1335         * Initialize the variable idletag, since it is tested in
1336           silc_core_deinit for its default value.  Affected file
1337           irssi/src/silc/core/silc-core.c
1338
1339 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
1340
1341         * Fixed signed channel messages across cells. Affected file
1342           silcd/packet_send.c
1343
1344 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1345
1346         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
1347           is not defined.  They can now be safely used in if-statements
1348           without braces.  Affected file lib/silcutil/silclog.h.
1349
1350         * Added the checks for backup closing connection due to error
1351           (local or remote) and thus not allow the resuming to occur
1352           in reconnect.  Affected files are silcd/packet_send.c
1353           and server.c.
1354
1355 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1356
1357         * Help file updates.  Affected files in irssi/src/docs/help/in/.
1358
1359 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
1360
1361         * Fixed channel messages across cells. Affected file
1362           silcd/packet_send.c
1363
1364 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1365
1366         * Fixed file transmission accepting in client library to not
1367           start the negotiation if user hasn't accepted the transfer,
1368           instead create new session for resent transfer.  Affected
1369           file lib/silcclient/client_ftp.c.
1370
1371         * Show the session ID in the file transmision list.  Remove
1372           session from list that failed to transfer.  Switch the current
1373           session automatically after transmission, and in errors, to new
1374           session if other sessions exists in the transfer list.  Affected
1375           files are irssi/src/silc/core/silc-servers.c,
1376           irssi/src/fe-common/silc/modfule-formats.c.
1377
1378 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1379
1380         * Fixed MIME header parsing for the hopefully last time.  Affected
1381           file lib/silcutil/silcstrutil.c
1382
1383 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1384
1385         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
1386
1387         * The SILC RNG is now gauranteed to return non-zero random
1388           values.  Affected files are lib/silccrypt/silcrng.[ch].
1389
1390 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1391
1392         * Fixed nickname formatting when changing only case of the
1393           nickname.  Affected file lib/silcclient/idlist.c.
1394
1395 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1396
1397         * Fixed a memory leak and incorrect printing of the "appears as"
1398           message.  Affected file irssi/src/silc/core/client_ops.c
1399
1400 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1401
1402         * Added CRT (Chinese Remainder Theorem) supported RSA
1403           private keys and private key operations.  This significantly
1404           increases private key operation efficiency.  No compatibility
1405           issues with new or old private keys.  Affected files are
1406           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
1407
1408 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1409
1410         * Fixed GCC-3.3.2 related compilation warnings from the
1411           source tree.
1412
1413 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1414
1415         * Removed RC6 from distributions.
1416
1417 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1418
1419         * Added some better comments to lib/silccrypt/silcpkcs.h,
1420           optimized some routines in lib/silccrypt/silcpkcs.c.
1421           Added test_silcpkcs into lib/silccrypt/tests/.
1422
1423         * Fixed silc_rng_global_init to actually init the global RNG
1424           if RNG wasn't provided for it.  Affected file is
1425           lib/silccrypt/silrng.c.
1426
1427 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1428
1429         * Added silc_hash_table_find_by_context_ext.  Affected files
1430           lib/silcutil/silchashtable.[ch].
1431
1432         * Save the public key on normal server in WHOIS command reply
1433           from attributes, if present, and add it to public key hash
1434           table.  Fixes WHOIS resolving by public key on normal server.
1435
1436           Optimized the attributes resolving on normal server to not
1437           resolve if we resolved them already from router.
1438
1439           Affected files are silcd/server_query.c, command_reply.c.
1440
1441 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
1442
1443         * Added support for whois using attributes.
1444           Affected files silcd/command_reply.c, silcd/packet_receive.c,
1445           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
1446           silcd/server_util.c
1447
1448         * Added support for whois using public key attribute to /WHOIS i
1449           client command. Affected files irssi/docs/help/in/whois.in,
1450           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
1451
1452 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1453
1454         * Fixed UMODE setting in server when the client has anonymous
1455           mode set.  The mode setting was not working.  Affected file
1456           silcd/command.c.
1457
1458 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1459
1460         * Fixed some bugs and typos related to sending split messages.
1461           Print notification when sending messages with /MMSG.  Affected
1462           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
1463
1464 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1465
1466         * Optimized the socket referencing in packet routines, client
1467           library and server.  Affected files are lib/silccore/silcpacket.c,
1468           lib/silcclient/client.c and silcd/server.c.
1469
1470         * If silc_socket_set_qos is given with NULL arguments the QoS is
1471           reset from the socket.  Affected files are
1472           lib/silcutil/silcsockconn.[ch].
1473
1474 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1475
1476         * Add a /LISTKEYS command which lists the locally cached
1477           client and server keys.  Affected files
1478           irssi/src/fe-common/module-formats.[ch],
1479           irssi/src/silc/core/silc-{channels,servers}.c
1480           irssi/docs/help/in/listkeys.in
1481
1482 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1483
1484         * Check that packet queue purging was successful.  Affected
1485           files lib/silcclient/client.c and silcd/packet_send.c.  Related
1486           to MAC failed errors.
1487
1488         * Do not clear the inbuf even if it is empty if QoS was applied
1489           to it.  Otherwise the QoS data is cleared and MAC failed error
1490           will occur.  Affected file lib/silccore/silcpacket.c.
1491
1492         * Use the rekey period time as rekey protocol timeout value.
1493           If the rekey does not succeed during the rekey period there's
1494           something very wrong, and we most likely end up with wrong keys,
1495           do graceful reconnect then.   Affected file silcd/server.c.
1496
1497         * Take reference of the socket in the parser context, as it's
1498           possible to have the parsers in queue after the socket is
1499           disconnected and this may cause crash.  Affected files are
1500           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1501           silcd/server.c.
1502
1503 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1504
1505         * Fixed KICK command reply sending, it sent to replies.
1506           Affected file silcd/command.c.
1507
1508 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1509
1510         * Finish the silc-mime.pl script. It now supports MIME type
1511           guessing using magic files, signing data messages, executing
1512           MIME handlers in background. Affected files
1513           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1514
1515         * Changed MIME signal handler to make things easier for the perl
1516           script. Affected files irssi/src/silc/core/client_ops.c,
1517           silc-servers.c, and irssi/docs/signals.txt
1518
1519         * Cleaned up the silc_mime_parse function and fixed detection
1520           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1521
1522 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1523
1524         * Resolve the IP for file transfer listener from the connection
1525           socket.  Affected file lib/silcclient/client_ftp.c.
1526
1527         * Accept NULL hostname parameter in the functions
1528           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1529           if hostname is not wanted.
1530
1531 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1532
1533         * Fixed race condition between silc_client_init and
1534           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1535
1536 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1537
1538         * Fixed file transfer connection closing when SIGNOFF for
1539           the client is received from server.  Affected file is
1540           lib/silcclient/client_ftp.c.
1541
1542 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1543
1544         * Check for disconnected socket in QUIT callback.  Affected
1545           file silcd/command.c.
1546
1547 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1548
1549         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1550           Affected files lib/silcutil/silcstrutil.c
1551
1552         * Cleaned up the escape/unescape functions for correctness and
1553           speed. Affected file irssi/src/silc/core/client_ops.c
1554
1555         * Removed handling for data messages with Content-Type: text/*,
1556           moved parsing of MIME headers to the signal handler, added
1557           support for signing and verifying data messages. Affected
1558           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1559           irssi/src/silc/core/silc-{servers,channels}.c
1560
1561         * Added a perl script for handling data messages based on
1562           information read from Mailcap files. New file
1563           irssi/scripts/silc-mime.pl
1564
1565 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1566
1567         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1568           acknowledge recepetion of a message to the sender.  Updated
1569           protocol specs.
1570
1571 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1572
1573         * Unregister channel key saving callback when deleting channel.
1574           Affected file lib/silcclient/idlist.c.
1575
1576         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1577           before calling notify client operation.  Affected file is
1578           lib/silcclient/client_notify.c.
1579
1580         * Unregister QoS tasks when deleting the socket connection.
1581           Affected files lib/silcutil/silcsockconn.[ch],
1582           unix/silcunixsockconn.c.
1583
1584         * Implemented latest presence-attrs draft changes.  Affected
1585           files lib/silccore/silcattrs.h and
1586           irssi/src/silc/core/silc-queries.c.
1587
1588 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1589
1590         * Save old channel keys in list to allow more rapid change
1591           of channel keys if server for some reason does that.  This
1592           avoids loosing so many channel messages due to not having
1593           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1594           idlist.c and client_channel.c.
1595
1596 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1597
1598         * Continued backup router tests and fixes.  Affected files
1599           silcd/server_backup, server_util.c, server.c.  See TODO.
1600
1601 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1602
1603         * Fixed SERVER_SIGNOFF handling in servers.  The client
1604           was removed from wrong list thus not removing the client
1605           at all.  Affected file silcd/packet_receive.c.
1606
1607         * Do not execute rekey protocol for disabled connections as
1608           it would never go through.  Affected file silcd/server.c.
1609
1610         * Added timeout for rekey protocol to catch if the protocol
1611           never executes successfully.  Affected files silcd/server.c
1612           and protocol.h.
1613
1614 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1615
1616         * Abandon packet processing for disconnected sockets.  Check
1617           this always after calling packet processing callback.
1618           Affected file lib/silccore/silcpacket.c.
1619
1620         * Fixed double registration disconnection code in server.
1621           Closed wrong connection.  Affected file silcd/packet_receive.c.
1622
1623 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1624
1625         * On normal server reconnect to primary during resuming 4
1626           times, then give up.  Affected file silcd/server_backup.c.
1627
1628         * If during reconnecting to routers we notice we have router
1629           connection but no primary router set, the server is in desync.
1630           Reconnect to primary to restore network.  Affected file
1631           silcd/server.c.
1632
1633         * Assure that only one protocol is exeucting at the same time.
1634           Added checks for all protocols.  Affected files are
1635           silcd/server.c and server_backup.c.
1636
1637 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1638
1639         * Check that a string is not already part on invite/ban
1640           string when processing it.  Affected file silcd/server_util.c.
1641
1642 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1643
1644         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1645           with 1.2 version of the protocol.  Affected file is
1646           silcd/packet_receive.c.
1647
1648 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1649
1650         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1651           where the passphrase was given.  Affected file is
1652           silcd/command.c.
1653
1654 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1655
1656         * INVITE and BAN notifys are now delivered from routers to
1657           servers (but not clients) on the channel.  Updated specs and
1658           code.  Affected files silcd/packet_[send|receive].[ch],
1659           command.c, server.c and server_util.c.
1660
1661         * Implemented INVITE and BAN announcing.  Affected files are
1662           silcd/server.[ch], server_util.c.
1663
1664         * Implemented SilcStatus error type argument returning in
1665           command reply error in server.  Affected file silcd/command.c.
1666
1667         * Implemented SilcStatus argument returning in comand reply
1668           in client library.  The command_reply client operation now
1669           returns error specific arguments as well.  Affected files
1670           are lib/silcclient/command_reply.[ch], client_resume.c,
1671           lib/silccore/silcstatus.[ch].
1672
1673 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1674
1675         * Backup router protocol version 1.2 implemented.  Testing still
1676           required.  Affected files in silcd/server_backup.[ch], server.c,
1677           packet_receive.c and server_internal.h.
1678
1679 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1680
1681         * silc_client_send_[channel|private]_message now return TRUE
1682           or FALSE.  Affected file lib/silcclien/client_channel.c and
1683           client_prvmsg.c.
1684
1685 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1686
1687         * Check for explicit nickname in INVITE and BAN processing
1688           during join as well (and don't expect only wildcards in
1689           invite/ban strings).  Affected file silcd/command.c.
1690
1691         * Fixed the INVITE and BAN by public key.  The public key saved
1692           is the PK payload (as specified) not the raw data.  Affected
1693           file silcd/server_util.c.
1694
1695 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1696
1697         * UTF-8 text message support for actions and notices in SILC
1698           Client.  Affected file irssi/src/silc/core/client_ops.c.
1699
1700         * silc_get_username and silc_get_real_name now returns sensible
1701           data on Win32.  Patch by Toni Willberg.  Affected file is
1702           lib/silcutil/win32/silcwin32util.c.
1703
1704 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1705
1706         * Provide a signal handler to send MIME encoded messages and emit
1707           a signal when a MIME encoded message is received. Also document
1708           the signals for usage with the perl interface.
1709
1710           A sample perl script will be supplied at a later point.
1711
1712           Affected files are irssi/docs/signals.txt,
1713           irssi/src/silc/core/client_ops.[ch],
1714           irssi/src/silc/core/silc-{channels,servers}.c
1715
1716 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1717
1718         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1719           server. Use this time to display a lag and disconnect when it
1720           exceeds a specified limit.
1721
1722           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1723
1724 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1725
1726         * Remove the channel auth list in normal server if router
1727           encofrces its list during connecting.  Send notify to channel
1728           to remove the mode to remove the list.  Affected files are
1729           silcd/server_util.c and silcd/packet_receive.c.
1730
1731 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1732
1733         * Added support for channel public keys.  Updated protocol specs
1734           and implemented it.  Affected files are
1735           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1736           lib/silcclient/command_reply.c.
1737
1738 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1739
1740         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
1741           terminate the process on Linux.  Affected file silcd/silcd.c.
1742
1743 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1744
1745         * Check for NULL buffer in silc_buffer_clear.  Affected file
1746           is lib/silcutil/silcbuffer.h.
1747
1748         * Simplified the backup router protocol by removing the _GLOBAL
1749           types.  Updated protocol specs and the code.  Affected files
1750           are silcd/server_backup.[ch].
1751
1752 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1753
1754         * Deny '@' and '!' from nicknames since they are reserved
1755           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
1756           Updated protocol specs and the code.
1757
1758           Affected files are silcd/server_util.[ch].
1759
1760 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1761
1762         * Fixed stack overflow in Irssi SILC client.  Affected
1763           file irssi/src/silc/core/client_ops.c.
1764
1765         * Check that Host is set in ServerConnection and RouterConnection
1766           in silcd.conf.  Affected file silcd/serverconfig.c.
1767
1768         * Fixed crash in server with protocol completion callbacks,
1769           namely rekey and backup resuming protocols.  Affected files
1770           are silcd/server_backup.c and silcd/server.c.
1771
1772         * Fixed rekey protocol to not restart if it is started already.
1773           Affected files are lib/silcclient/client.c and
1774           silcd/server.c.c
1775
1776 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1777
1778         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
1779
1780         * Fixed EOF handling in SILC Config, affected file
1781           lib/silcutil/silcconfig.c.
1782
1783         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
1784
1785         * Fixed RESOLVING flag handling in JOIN notify and other
1786           notifys to handle the resolvings correctly in client library.
1787           Affected file lib/silcclient/client_notify.c.
1788
1789         * Do not send full INVITE and BAN lists in INVITE and BAN
1790           notifys, only the changed information.  Affected file
1791           silcd/command.c.
1792
1793         * Fixed INVITE notify sending in INVITE command, send it
1794           only when needed.  Affected file silcd/command.c.
1795
1796         * Handle the founder key change properly in CMODE_CHANGE
1797           notify.  Bug #122.  Affected file silcd/packet_receive.c.
1798
1799 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1800
1801         * Remove the mark for output (mark it only for input) after
1802           purging outgoing queue.  Prevents the "Error in select()"
1803           floods.  Affected file silcd/packet_send.c.
1804
1805         * Fixed incorrect connection deletion from client library
1806           after calling "connect" client operation.  Could cause
1807           crashes for example during reconnect timeouts.  Affected
1808           files are lib/silcclient/client.c and
1809           irssi/src/silc/core/client_ops.c.
1810
1811         * Check server private key file permissions before starting
1812           the server.  Affected file silcd/serverconfig.c.
1813
1814 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1815
1816         * NULL terminate allocated string in silc_buffer_strformat.
1817           Affected file lib/silcutil/silcbuffmt.c.
1818
1819         * Rewrote the invite/ban list string handling in server to
1820           use SilcBuffer instead.  Affected files are silcd/command.c
1821           and silcd/server_util.c.
1822
1823 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1824
1825         * Fixed double free in CMODE command when setting new HMAC
1826           for channel.  Affected file silcd/command.c.
1827
1828         * Added couple of missing memset's to zero sensitive memory.
1829           Affected files silcd/command.c, lib/silcclient/command.c.
1830
1831 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1832
1833         * Fixed a double free in INVITE command error handling in
1834           server.  Affected file silcd/command.c.
1835
1836         * Added macros SILC_SWAB_[16|32] to swab byte order of
1837           16-bit and 32-bit unsigned integers.  Affected file
1838           lib/silcutil/silctypes.h.
1839
1840         * Use the SILC_SWAB_16 instead of htons() in server when
1841           handling ports since the ports in structures are always
1842           in little-endian order (regardless of platform).  Affected
1843           file silcd/serverid.c and silcd/server_backup.c.
1844
1845 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1846
1847         * Send DISCONNECT in close admin command in server.  Affected
1848           file silcd/command.c.
1849
1850         * Check whether we are already connecting to a remote router
1851           (in addition of checking whether we are already connected)
1852           before creating new connection.  Affected file silcd/server.c.
1853
1854 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1855
1856         * Added better compiler and compiler flags checking in
1857           configure.
1858
1859         * Check that socket is valid after QoS is applied to data.
1860           Affected file lib/silcutil/unix/silcunixsockconn.c.
1861
1862         * Make sure the socket connecetion is not closed to early
1863           when closing connection in server.  Also make sure the
1864           connection is always closed after error in a protocol.
1865           Affected file silcd/server.c.
1866
1867 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1868
1869         * Removed --session and --dummy options from Irssi SILC Client.
1870           -d option is available only if --enable-debug was given.
1871           Affected files are irssi/src/silc/core/silc-core,
1872           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
1873
1874 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1875
1876         * Added silc_buffer_steal to steal the data from the buffer.
1877           Affected file lib/silcutil/silcbuffer.h.
1878
1879 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
1880
1881         * Fixed server crash with double Primary block in config file.
1882
1883           Fixed also various memory leaks around the config file
1884           parser.  Affected files lib/silcutil/silcconfig.c,
1885           silcd/serverconfig.c.
1886
1887         * Changed my nickname (Johnny Mnemonic) to my real name, this
1888           means that bugs introduced by him were actually introduced
1889           by me!
1890
1891 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1892
1893         * Don't display "foo appears as foo\nYou're now known as foo"
1894           messages.  Affected file irssi/src/silc/core/client_ops.c
1895
1896 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1897
1898         * Fixed error handling of invalid client entry when calling
1899           commands in server.  Fixes a crash.  Affected file
1900           silcd/command.c.
1901
1902 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1903
1904         * Added some sanity checks in server for correctness of the
1905           server configuration.  Affected file silcd/serverconfig.c.
1906
1907 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1908
1909         * Prevent endless resolving of user informations in USERS
1910           command by checking the command reply status correctly.
1911           Affected file lib/silcclient/command_reply.c.
1912
1913 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
1914
1915         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
1916           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
1917           Aldous <Matthew@Aldous.com>.
1918
1919         * Added better implementation using CriticalSection of
1920           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
1921           <mikko.lahteenmaki@pikabaana.net>.
1922
1923         * Added some Winsock WIN32 compatiblity defines into
1924           includes/silcwin32.h.
1925
1926 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1927
1928         * Fixed double free in async host lookup code.  Affected file
1929           lib/silcutil/silcsockconn.c.
1930
1931         * On backup router handle now the SERVER_SIGNOFF from router
1932           for local connected servers too, and close the connections.
1933
1934           Do not process them as normally signing off servers when they
1935           really signoff by sending EOF fe, but always assume that
1936           router sends the SERVER_SIGNOFF.
1937
1938           Affected files silcd/server.c and silcd/packet_receive.c.
1939
1940         * Fixed socket unsetting when closing connections.  Affected
1941           files silcd/server.c and silcd/packet_send.c.
1942
1943         * Do not print the nickname in SERVER_SIGNOFF if we do not
1944           have it.  Prevents asserts in Irssi core.  It is possible we
1945           don't have the nick if it was just being resolved when server
1946           signoff.  Affected file irssi/src/silc/core/client_ops.c.
1947
1948 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
1949
1950         * Fixed autonick crashbug in client library.  Affected file
1951           lib/silcclient/client.c.
1952
1953         * Fixed Unix implementation of SilcMutex to really assert if
1954           the mutex is locked/unlcoked already.  Affected file
1955           lib/silcutil/unix/silcunixmutex.c.
1956
1957         * Fixed locking in silc_schedule_uninit.  It didn't lock
1958           when dispatching timeout tasks.  Affected file is
1959           lib/silcutil/silcschedule.c.
1960
1961         * Changed Win32 implementation of SilcThread to use modern
1962           Win32 interface.  Affected file is
1963           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
1964
1965 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1966
1967         * Don't print signed messages when sending failed.  Affected files
1968           irssi/src/silc/core/silc-[servers.c/commands.h]
1969
1970         * Send adquate signal when founding a channel by joing it.  Affect
1971           file irssi/src/silc/core/client_ops.c
1972
1973 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1974
1975         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
1976           irssi/src/fe-common/core/themes.c
1977
1978 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1979
1980         * Fixed close command to use the port correctly when closing
1981           server connections.  Affected file silcd/idlist.c.
1982
1983         * Check for NULL outbuf in silc_socket_write.  It is possible
1984           that it is NULL is some odd case.  Affected files are
1985           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
1986
1987         * Do not call final protocol callback for backup router
1988           resuming protocol when closing connection.  It is closed
1989           by timeout in case of error.  Affected file silcd/server.c.
1990
1991         * Backup reconnect to router if backup resuming protocol
1992           failed.  Affected file silcd/server_backup.c.
1993
1994 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1995
1996         * Fixed double free in SKE library error hadling when signature
1997           error occurred.  Affected file lib/silcske/silcske.c.
1998
1999         * Save the fingerprint to new SilcClientEntry after changing
2000           nickname.  Affected file lib/silcclient/client_notify.c.
2001
2002         * Print SIGNOFF in Irssi SILC client only if the nickname is
2003           known.  Prevents asserts in Irssi core.  It is possible we
2004           don't have the nick if it was just being resolved when it
2005           quit.  Affected file irssi/src/silc/core/client_ops.c.
2006
2007 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2008
2009         * Fixed double free in invite list adding code when adding
2010           invite strings.  Affected file silcd/server_util.c.
2011
2012 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2013
2014         * More log printing during backup router protocol.  Affected
2015           file silcd/server_backup.c.
2016
2017         * Removed backwards support for old private key file format.
2018           Affected file lib/silccrypt/silcpkcs.c.
2019
2020         * Removed backwards support for not-so-strict decryption length
2021           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2022
2023         * GETKEY to update the client entrys fingerprint too.
2024           Affected file lib/silcclient/command_reply.c.
2025
2026         * Added --without-libtoolfix for package builders using weird
2027           wrappers around libtool (BSD at least).
2028
2029 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2030
2031         * Fixed backup router bugs:  When backup resumes router and
2032           receives a CHANNEL_MESSAGE packet the backup must not act
2033           as router since the packet header decryption would be
2034           different.  Also, when relaying packets to channel, do
2035           not re-encrypt packets on backup that came from the primary
2036           since the connection isn't really router-router connection.
2037           Affected files silcd/server.c, silcd/packet_send.c.
2038
2039         * Added checks in encryption/decryption that encryption/decryption
2040           length sent as argument really is multiple by block size.  Helps
2041           catching really weird bugs like the above backup router bugs
2042           when packets are being decrypted in wrong way.  Affected files
2043           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2044
2045         * Fixed padding generation in private key file encryption.
2046           Affected file lib/silccrypt/silcpkcs.c.
2047
2048 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2049
2050         * Added ignore_message_signatures setting which can be used
2051           to ignore signatures in messages.  Affected files are
2052           irssi/src/silc/core/client_ops.c, silc-core.c.
2053
2054         * Fixed the libtoolfix to use command line options instead of
2055           environment variables.  They didn't work as expected.  Now,
2056           the libtool is fully run-time configurable.
2057
2058 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2059
2060         * Verify signature payload for signed messages. Affected files
2061           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2062           irssi/src/silc/core/silc-core.h
2063
2064         * Display signature verification result in public and private
2065           messages using theme abstracts. See irssi/default.theme for
2066           examples on their usage. Affected files
2067           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2068           irssi/src/fe-common/silc/module-formats.[ch],
2069           irssi/src/fe-common/silc/fe-common-silc.c,
2070           irssi/src/fe-common/silc/Makefile.am
2071           irssi/src/fe-common/core/fe-messages.[ch]
2072
2073         * Fixed bugs in Irssi's theme parsing. Affected files
2074           irssi/src/fe-common/core/themes.c
2075
2076 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2077
2078         * Calculate the correct length for signed messages before
2079           encrypting, it must be multiple by block size.  Affected
2080           file lib/silccore/silcmessage.c.
2081
2082         * silc_message_signed_get_public_key returns now both
2083           decoded and encoded public key.  Affected files are
2084           lib/silccore/silcmessage.[ch].
2085
2086         * Added libtoolfix script that makes the libtool more generic
2087           and configurable in run-time.  Now we can specify in run-time
2088           if what kind of libraries we want to create, regardless of
2089           configuration.  SIMs are now creates even if --disable-shared
2090           was explicitly given.
2091
2092 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2093
2094         * Fixed founder key sending in CMODE command in client.
2095           Affected file lib/silcclient/command.c.
2096
2097         * Fixed CUMODE founder authentication in server to not check
2098           for client's public key since it's not supposed to do that.
2099           Affected file silcd/command.c.
2100
2101 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2102
2103         * Set realname and hostname in NICK_REC records. Affected file
2104           irssi/src/silc/core/silc-nicklist.c
2105
2106 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2107
2108         * Remove 1.0 protocol backwards compat code from client
2109           library.
2110
2111         * Added more reliable check for whether nickname did change
2112           or not, or whether only Client ID changed in NICK_CHANGE
2113           notify.  Affected file lib/silcclient/client_notify.c.
2114           Fixes bug in '@' character handling in a nickname.
2115
2116         * Added support for automatically parsing signature from
2117           the message payload.  Added new function
2118           silc_message_get_signature to return the payload to
2119           application.  Affected files lib/silccore/silcmessage.[ch].
2120
2121         * Changed the private_message and channel_message client
2122           operations to deliver the SilcMessagePayload to the
2123           application too.  Application can use it fe. to get the
2124           signature from the message for verification.  Affected
2125           file lib/silcclient/silcclient.h, client_channel.c and
2126           client_prvmsg.c.
2127
2128         * Redefined the signed payload for message payloads.
2129           Updated protocol specs and implemented.
2130
2131 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2132
2133         * Fixed wrong invite and ban list handling in server command
2134           reply.  Affected files are silcd/command_reply.c,
2135           silcd/server_util.[ch].
2136
2137 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2138
2139         * Fixed CMODE setting in server when founder mode was set.
2140           Affected file silcd/command.c.  Bug #95.
2141
2142         * Added support to setting specific public key in CMODE in
2143           Irssi SILC client.  Affected file lib/silcclient/command.c.
2144
2145         * Added support to use specific public key in CUMODE in
2146           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2147
2148         * Added support for inviting and banning by public key in
2149           Irssi SILC client.  Affected file lib/silcclient/command.c.
2150
2151         * Fixed fingerprint/babbleprint showing in invite and ban
2152           list command replys.  Affected file is
2153           irssi/src/silc/core/client_ops.c.
2154
2155 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2156
2157         * Format CMODE +c and +h to display both the mode and the argument
2158
2159 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2160
2161         * Added test vectors and test programs for SHA-1, MD5,
2162           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2163           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2164           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2165
2166         * Changed the channel private key and private message key
2167           generation (with static keys) to use SHA1 instead of MD5,
2168           as SHA1 is the mandatory hash function in SILC.  Affected
2169           file lib/silcclient/client_[channel/prvmsg].c.
2170
2171         * Changed the private key file encryption to use SHA1 instead
2172           of MD5.  Added support for the old generation and added
2173           automatic change of the key (to be removed later).  Affected
2174           files lib/silccrypt/silcpkcs.c.
2175
2176 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2177
2178         * Load only files with .pub suffix in PublicKeyDir.  Affected
2179           file silcd/serverconfig.c.
2180
2181 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2182
2183         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2184           channels.  Affected files silcd/silcd.c, silcd/server.h.
2185
2186         * Added the config directive PublicKeyDir for the client block.
2187           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2188
2189 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2190
2191         * Merged Toni's irssi/silc.conf patch.
2192
2193         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2194
2195         * Max alloc tests in allocation routines.  Affected file
2196           lib/silcutil/silcmemory.c.
2197
2198 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2199
2200         * Fixed a typo in resuming code that fixed detach/resume code
2201           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2202
2203 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2204
2205         * Do reverse lookups for server when /connecting. Affected files
2206           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2207           irssi/src/core/net-nonblock.*
2208
2209 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2210
2211         * Added library versioning for shared libraries.  Affected
2212           files configure.in.pre and lib/Makefile.am.pre.
2213
2214 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2215
2216         * Display INVITE and BAN lists as specified by SILC 1.2
2217
2218 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2219
2220         * Do not send invite list back unless asked (when sending
2221           no arguments) or when list was modified.  Affected file
2222           silcd/command.c.
2223
2224         * Remove client from invite list in KILLED notify and in
2225           KILL command.  Affected file silcd/command.c and
2226           silcd/server.[ch].
2227
2228         * Fixed bugs in invite list handling in INVITE command.
2229           Affected files silcd/command.c and silcd/server_util.c.
2230
2231         * Merged with Irssi 0.8.6.
2232
2233         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2234           Affected file irssi/src/fe-text/silc.c.
2235
2236 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2237
2238         * The silc_argument_get_[first/next] now return the argument
2239           type to caller.  Added silc_argument_payload_encode_one.
2240
2241           Affected files are lib/silccore/silcargument.[ch].
2242
2243         * Added support for the SILC 1.2 INVITE command and new
2244           invite lists to server.  Affected files are silcd/command.c,
2245           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2246
2247         * Added support for the SILC 1.2 BAN command and new
2248           ban lists to server.  Affected files are silcd/command.c,
2249           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2250
2251         * Added support to client sending new INVITE command.  Affected
2252           file is lib/silcclient/command.c.
2253
2254         * Added support to client sending new BAN command.  Affected
2255           file is lib/silcclient/command.c.
2256
2257         * Added support for removing client from invite list when kicked
2258           from channel, as SILC 1.2 dictates.  Affected files are
2259           silcd/packet_receive.c and silcd/command.c.
2260
2261 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2262
2263         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2264           automatically the cipher's internal IV.  Affected files
2265           lib/silccrypt/silccipher.[ch].
2266
2267         * Assure the RESUME_CLIENT packet is not sent to twice to
2268           backup router if the detached client was originated from
2269           the backup.  Affected file silcd/server.c.  Bug #76.
2270
2271         * Changed silc_sim_symname to not allocate memory.  Affected
2272           file lib/silcsim/silcsimutil.c.
2273
2274         * Fixed memory leaks with SIMs in server.  Affected files
2275           silcd/serverconfig.c, silcd/server.c.
2276
2277         * Fixed channel key distribution after resuming detached
2278           client.  Affected files silcd/packet_receive.c.
2279
2280         * Fixed channel's global_user boolean checking after detaching.
2281           Check it after changing the owner of the client not before.
2282           Affected file silcd/packet_receive.c.
2283
2284         * Fixed few double frees from client library.  Fixes at least
2285           Bug #81, possibly others too.
2286
2287         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2288           notifys in Irssi SILC Client.  Affected file is
2289           irssi/src/silc/core/client_ops.c.  Bug #82.
2290
2291         * Applied Ville Räsänen's manual page and --mandir bugfix
2292           patch.  Affected files are configure.in.pre and Makefile.am.pre.
2293           Bug #88.
2294
2295 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2296
2297         * Added support to backup router protocol for backup to tell
2298           normal server that it cannot use the backup router as primary
2299           because the primary isn't really down.  Updated protocol
2300           specs.
2301
2302         * Added support for primary router to tell backup router that
2303           resuming is not possible because the backup really isn't primary
2304           in the cell.  For example if backup disconnected itself the
2305           resuming is not allowed since the primary really did not
2306           go down.  Updated protocol specs.
2307
2308         * Removed MARS from crypto library.
2309
2310         * Defined the CTR mode and Randomized CBC mode in SILC.  The
2311           CTR mode is RECOMMENDED now in specification.  Defined also
2312           Serpent cipher as optional cipher.  Updated the protocol specs.
2313
2314 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2315
2316         * Added support for inviting/banning by IP/MASK, public key,
2317           and explicit Client ID.  Redefined the command and notify
2318           types to allow easier forwards support for other methods
2319           of inviting/banning.  Updated protocol specs.
2320
2321         * Remove the client from channel's invite lists if the client
2322           is kicked or killed.  Updated protocol specs.
2323
2324         * Unified the Channel Message Payload and Private Message
2325           into one Message Payload.  Updated protocol specs and
2326           implemented.
2327
2328 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2329
2330         * Don't wait for EOF after socket error has occurred, but
2331           close the connection.  Affected file is silcd/server.c.
2332
2333 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2334
2335         * Added support for setting FOUNDER mode on channel with
2336           specific public key which can be set with CMODE command.
2337           Updated protocol specs and implemented in client and server.
2338
2339         * Fixed the Irssi SILC client to correctly shutdown the client
2340           library to avoid memory leaks.  Affected files are
2341           irssi/src/silc/core/silc-core.c and silc-servers.c.
2342
2343         * Deprecated the No Reply flag in SKE protocol and introduced
2344           "IV Included" flag which can be used to indicate that the IV
2345           is included in the ciphertext.  This makes it possible to use
2346           SILC on unreliable transport, such as UDP which may cause
2347           packet reordering and losses.  Updated protocol specs, did
2348           not implement yet.
2349
2350 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2351
2352         * Fixed the MPI implementation of silc_mp_sizeinbase to return
2353           < 32 bit values in correct size.  Affected file is
2354           lib/silcmath/mp_mpi.c.
2355
2356 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2357
2358         * Fixed the KE Start Payload parsing to check that mandatory
2359           fields are present.  Affected file lib/silcske/payload.c.
2360
2361         * Fixed compilation warnigs in Irssi SILC Client.  Affected
2362           files are irssi/src/silc/core/silc-query.c. client_ops.c.
2363
2364 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2365
2366         * Print "nick now appears as newnick" and update Irssi's nicklist
2367           when you change your nick to "nick". Closes #62
2368
2369         * Never format your own nick. Closes #63
2370
2371 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2372
2373         * SILC_UMODE_GONE changes are now propagated correctly to the
2374           Irssi client. Closes #54
2375
2376 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2377
2378         * Fixed example in /HELP KEY
2379
2380         * Added expando $j which expands to current SILC Client version
2381
2382 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2383
2384         * Fixed public key decoding in crypto library.
2385
2386         * Added better error printing to SKE library.
2387
2388 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2389
2390         * Fixed NICK command to not crash if nickname was not sent.
2391
2392 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2393
2394         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
2395           Deprecated the old Encrypt-And-MAC order.  Updated protocol
2396           specs and implemented.
2397
2398         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
2399           generation.  Updated specs and implemented.
2400
2401 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2402
2403         * Added support for rekey before 2^32 sequence number wraps.
2404           Affected files in server and client library.
2405
2406         * Padding must be at least 8 bytes now.  Implemented and updated
2407           protocol specs.
2408
2409         * Compute maximum padding for authentication packets to make
2410           passphrase approximation attacks impossible.  Affected files
2411           in client library and in server.
2412
2413         * Fixed PING command sending in client library and handling in
2414           server.  The server ID must be ID Payload, not raw ID data.
2415           Affected files in server and client library.
2416
2417         * Defined that all public keys sent in commands and notify
2418           payloads are actually Public Key Payloads not raw public key
2419           data.  Updated protocol specs and implemented.
2420
2421         * Updated protocol version to 1.2.  Updated specs and code.
2422
2423         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
2424           status types.  Updated specs and the code.
2425
2426         * Added support for normal client to kill its own entries from
2427           the network.  Updated protocol specs and the code.
2428
2429         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
2430           and added initial implementation.
2431
2432         * Added MAC field to the Private Message Payload to protect
2433           against chosen ciphertext attacks.  Updated the protocol specs
2434           and implemented.
2435
2436         * Added idle and signon fields to the ATTRIBUTE_SERVICE
2437           attribute to indicate the user's current idle and signon time
2438           of a service.  Updated protocol specs and implemented.
2439
2440 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2441
2442         * Added "do_not_bind" argument to silc_client_file_send what
2443           can be used to not bind locally but assume the file receiver
2444           provides the point of connect.  Usefull when sender is behind
2445           NAT device.  Affected file lib/silcclient/silcclient.h and
2446           client_ftp.c.
2447
2448         * Added -no-listener option to FILE SEND command in Irssi SILC
2449           client.  Affected file irssi/src/silc/core/silc-servers.c.
2450           Renamed FILE RECEIVE to FILE ACCEPT.
2451
2452         * Confirm passphrase for private key encryption in
2453           silc_create_key_pair and silc_change_private_key_passphrase.
2454           Affected files are lib/silcutil/silcapputil.c.
2455
2456 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2457
2458         * Move silc_client_packet_send back to internal, added
2459           silc_client_send_packet, a bit simpler function for application.
2460           Affected files lib/silcclient/silcclient.h, client.c and
2461           client_internal.h.
2462
2463         * Moved the SilcClientEntry, SilcChannelEntry and
2464           SilcServerEntry to silcclient.h to be public and documented
2465           them for application.  Affected files are
2466           lib/silcclient/silcclient.h and idlist.h.
2467
2468 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2469
2470         * Fixed manual page installation patch by Ville Räsänen.
2471           USERS help page fix patch by Ville Räsänen
2472
2473         * Changed the silc_client_command_call interface to make
2474           the command call simpler for the application.  The library
2475           now handles the command line parsing, command finding and
2476           execution.  Application only needs to call the function
2477           with the command line.  Affected files are
2478           lib/silcclient/silcclient.h, command.[ch].
2479
2480         * Fixed silc_get_input to NULL-terminate the returned input.
2481           Affected file lib/silcutil/silcutil.c.
2482
2483         * Resolve the client's public key in JOIN command if the
2484           founder auth data is being requested but we don't know the
2485           client's public key.  Affected file silcd/command.c.
2486           Bug #53.
2487
2488 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2489
2490         * Print notify for server opers when backup router comes
2491           online.  Affected file silcd/server.c.
2492
2493         * Fixed the INVITE command to send the invite list in
2494           command reply.  Affected file silcd/command_reply.c.
2495
2496         * Fixed MOTD command reply sending.  Affected file
2497           silcd/command.c.
2498
2499         * UTF-8 decode the topic in TOPIC command reply and LIST
2500           command reply in Irssi SILC client.  Affected file is
2501           irssi/src/silc/core/client_ops.c.
2502
2503 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2504
2505         * Fixed the INVITE command to not crash Irssi SILC client
2506           when given without nickname argument.  AFfected file
2507           irssi/src/silc/core/client_ops.c.
2508
2509         * Fixed double free in WHOIS query on normal server when
2510           forwarding query to router.  Affected file is
2511           silcd/server_query.c.
2512
2513         * Fixed WATCH command reply handling on normal server which
2514           was missing altogether.  Affected file silcd/command_reply.c.
2515           Bug #44.
2516
2517 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2518
2519         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2520           Included yodl sources for each of these. Also modified
2521           Makefile.am prototype to install these files to proper
2522           locations. Updated CREDITS. Affected file Makefile.am.pre,
2523           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2524           doc/silcd.8.
2525
2526 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2527
2528         * Added support for encrypted private key files.  Now
2529           passphrase must be provided when new key pair is created
2530           (can be empty though), and prompted when loading the
2531           private key.  Added support for loading the old-style
2532           non-encrypted private keys as well.  Affected files
2533           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2534           SILC Server.
2535
2536         * Fixed silc_get_input to accept input on all terminals.
2537           Affected file lib/silcutil/silcutil.c.
2538
2539         * Moved the Irssi SILC client key loading and other stuff
2540           to be called after the arguments and UI is initialized.
2541           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2542
2543         * Added -P option to Irssi SILC client which can be used
2544           to change the passphrase of the private key.  Affected
2545           file irssi/src/silc/core/silc-core.c.
2546
2547         * Added silc_change_private_key_passphrase apputil routine
2548           to lib/silcutil/silcapputil.[ch].
2549
2550 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2551
2552         * Fixed connection closing in client library to not crash.
2553           Moved the connection freeing totally to function
2554           silc_clinet_del_connection.  Affected file
2555           lib/silcclinet/client.c.
2556
2557 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2558
2559         * Changed includes/silcincludes.h to silcincludes.h.in to
2560           include configuration specific information.  The silcdefs.h
2561           is not included in to installation anymore (it's only
2562           compilation time header).
2563
2564 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2565
2566         * Moved the SilcClient and SilcClientConnection from client.h
2567           to the public lib/silcclient/silcclient.h.  Changed the
2568           structures a bit.
2569
2570 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2571
2572         * If version string in silc_clinet_alloc is NULL the library
2573           puts it automatically.  Affected file lib/silcclient/client.c.
2574
2575         * Changed the version strings from variables to #define's
2576           in includes/silcversion.h.
2577
2578 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2579
2580         * Added shared library complation support.
2581
2582 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2583
2584         * Added lib/silcutil/silcapputil.[ch] for application
2585           utility functions.  It includes routines for applications'
2586           convenience.  Added silc_create_key_pair, silc_show_public_key
2587           and silc_load_key_pair functions.
2588
2589 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2590
2591         * Send RESUME_CLIENT packet from router to backup routers
2592           to in resuming.  Affected file silcd/packet_receive.c.
2593
2594 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2595
2596         * In IDENTIFY command parsing, send all other IDs except
2597           Client IDs explicitly to router for resolving on normal
2598           server.  Also check that ID received in WHOIS command is
2599           always Client ID, others are not allowed.  Affected file
2600           silcd/server_query.c.
2601
2602         * Merged latest changes from irssi.org CVS.
2603
2604 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2605
2606         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2607           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2608
2609         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2610           the silc_client_packet_send to silcclient.h for application
2611           usage.  Affected files lib/silcclient/client_internal.h
2612           lib/silcclient/silcclient.h.
2613
2614         * Fixed a bug in query resolving in server.  Used wrong
2615           variable in a for loop and crashed.  Affected file is
2616           silcd/server_query.c.
2617
2618         * Server constructs requested attributes only to locally
2619           connected clients.  Affected file silcd/server_query.c.
2620           Bug #36.
2621
2622         * Fixed a bug when sending resolving from router to server
2623           with requested attributes.  The constructed WHOIS command
2624           was incorrect.  Affected file silcd/server_query.c.
2625           Bug #38.
2626
2627         * Fixed Requested Attributes saving in WHOIS command reply.
2628           The length of the data buffer must be saved too.  Affected
2629           file silcd/command_reply.c.
2630
2631         * Update the client entry's servername after detaching is
2632           over.  Affected file silcd/packet_receive.c.  Bug #37.
2633
2634         * Resolve incomplete client entrys in CUMODE_CHANGE and
2635           CMODE_CHANGE notifys.  Affected file is
2636           lib/silcclient/client_notify.c.  Bug #42.
2637
2638 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2639
2640         * Fixed channel key packet processing bug on backup router
2641           during backup resuming protocol.  Affected file is
2642           silcd/packet_receive.c.
2643
2644         * Fixed memory leaks in server.  Affected files are
2645           silcd/server.c and silcd/packet_receive.c.
2646
2647         * Fixed packet decryption problem when backup router encrypted
2648           channel message with wrong key during backup resuming
2649           protocol.  Affected file silcd/packet_send.c.
2650
2651         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2652           Toni Willberg (toniw@iki.fi)
2653
2654         * Changed the SilcCipher context to be private.  Changed the
2655           silc_cipher_get_iv to just return pointer to the IV.  Added
2656           silc_cipher_get_name to return the name of the cipher.
2657           Fixed code all around to support these changes.  Affected
2658           files are lib/silccrypt/silccipher.[ch], client library and
2659           server.
2660
2661 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2662
2663         * Fixed unaligned access in lib/silccore/silcattrs.c.
2664
2665         * Fixed libtool linking in lib/silcsim/Makefile.am.
2666
2667         * Fixed services attribute printing.  Affected files is
2668           irssi/src/silc/core/silc-queries.c.
2669
2670 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2671
2672         * Fixed a crashbug in incoming server accepting.  Affected
2673           file silcd/server.c.
2674
2675 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2676
2677         * Added automatically generated index to Toolkit Reference
2678           Manual.
2679
2680         * Added support for Postscript Toolkit Reference Manual.
2681
2682 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2683
2684         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2685           CVS.
2686
2687 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2688
2689         * Added 'send_events' boolean argument to the function
2690           silc_schedule_set_listen_fd which sends the set events to
2691           the application explicitly if set to TRUE.  Default action
2692           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2693           lib/silcclient/client_internal.h and silcd/server_internal.h.
2694
2695         * Added silc_compare_timeval to determine which time values
2696           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2697
2698         * Added sort-of "Quality of Service" (QoS) support to
2699           SilcSocketConnection.  Data reception can be controlled with
2700           rate limit per second and/or read data length limit.
2701           Added silc_socket_set_qos.  Affected files are
2702           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2703
2704         * Added the QoS configuration to SILC Server configuration
2705           file.  Affected files are silcd/serverconfig.[ch] and
2706           server.c.
2707
2708 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2709
2710         * Merged with irssi.org CVS.
2711
2712         * Failed OPER and SILCOPER authentications are now logged.
2713           Affected file silcd/command.c.  Bugs #25.
2714
2715 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2716
2717         * ROBODoc documented lib/silcutil/silcbuffer.h and
2718           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2719           <ville.rasanen@iki.fi>.
2720
2721 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2722
2723         * Added support for auto-passphrase authentication from the
2724           config file during connecting which was not implemented
2725           yet.  Affected file irssi/src/silc/core/client_ops.c.
2726
2727         * Fixed a bug in authentication protocol failure handling which
2728           was processing wrong callback context.  Affected files
2729           are lib/silcclient/client.c and protocol.c.
2730
2731         * Fixed the /ATTR allow off to actually work.  Affected file
2732           is irssi/src/silc/core/silc-queries.c.
2733
2734         * Fixed the /ATTR -del to work.  Affected file is
2735           irssi/src/silc/core/silc-queries.c.
2736
2737 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2738
2739         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
2740
2741         * Fixed mask attribute adding in Irssi SILC client.  Affected
2742           file irssi/src/silc/core/silc-queries.c.
2743
2744 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2745
2746         * Added support for saving the requested attributes in
2747           WHOIS to directory.  Affected file is
2748           irssi/src/silc/core/silc-queries.c.
2749
2750 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2751
2752         * Added support for parsing VCard fields that do not have
2753           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
2754
2755         * Fixed a double free bug in hash table foreach function
2756           if the entry was deleted in the foreach callback.  Affected
2757           file lib/silcutil/silchashtable.c.
2758
2759 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2760
2761         * Added silc_attribute_get_verify_data to return the signature
2762           verification data for either user digital signature or
2763           server digital signature in Requested Attributes.  Affected
2764           files are lib/silccore/silcattrs.[ch].
2765
2766         * Added silc_vcard_alloc which is used to allocated dynamic
2767           SilcVCard context.  The silc_vcard_free now checks whether
2768           the context is dynamically allocated or not.  Affected files
2769           are lib/silcutil/silcvcard.[ch].
2770
2771 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2772
2773         * Periodically remove the NOATTR status from client entry
2774           so that the client may take the attributes in use even after
2775           server has resolved them unsuccessfully earlier.  Affected
2776           file silcd/server_query.c and idlist.h.
2777
2778         * Moved sha1hash and md5hash from client->internal to
2779           SilcClient for application usage.  Affected files are
2780           lib/silcclient/client.h and client_internal.h.
2781
2782         * Fixed attribute encoding and decoding bugs.  Affected
2783           files lib/silccore/silcattrs.[ch].
2784
2785         * Added ATTR command to Irssi SILC Client which is used to
2786           manage user's Requested Attributes sending and values for
2787           WHOIS command.  Affected files around Irssi SILC client.
2788
2789 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2790
2791         * Added silc_buffer_strformat which can be used to format
2792           strings into a buffer which size is automatically increased.
2793           Affected file lib/silcutil/silcbuffmt.[ch].
2794
2795         * Added implementation of VCard (RFC 2426) which can be used
2796           as part of Requested Attributes in WHOIS command.  Affected
2797           file lib/silcutil/silcvcard.[ch].
2798
2799 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2800
2801         * Some strncat -> silc_strncat changes our the core and
2802           client library.
2803
2804         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
2805           errors.  Added better error printing to SKE library.
2806           Affected files lib/silcske/silcske.c, silcske_status.h and
2807           payload.c.
2808
2809         * Save the PKCS key length even if only private key is set to
2810           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
2811
2812         * Fixed the usage of silc_pkcs_get_key_len since it returns the
2813           length in bits not in bytes.  Affected files are
2814           lib/silcske/silcske.c, lib/silccore/silcauth.c and
2815           silcd/server_query.c.
2816
2817 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2818
2819         * Added silc_attribute_payload_encode_data to directly encode
2820           the data into the attributes buffer.  Renamed function
2821           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
2822           Affected files are lib/silccore/silcattrs.[ch].
2823
2824         * silc_hash_table_find_foreach calls the foreach function now
2825           once even if the nothing was found with context set to NULL.
2826           Affected file lib/silcutil/silchashtable.[ch].
2827
2828         * Remove the RESOLVING flag from client entry after received
2829           the Requested Attributes from the client.  Fixed memory leak
2830           in client entry freeing.  Affected files silcd/server_query.c
2831           and idlist.c.
2832
2833         * Added Requested Attributes support into SILC Client Library.
2834           It is not able to send requested attributes in WHOIS command,
2835           and also receive and process requested attributes.  Added
2836           silc_client_attribute_[add|del] and silc_client_attributes_get
2837           functions.  Added also `ignore_requested_attributes' to the
2838           SilcClientParams to not use attributes in client.  Affected
2839           files are lib/silcclient/command.c, client_attrs.[ch],
2840           silcclient.h, client_internal and client.[ch].
2841
2842         * Changed the silc_client_get_client_by_id to support Requested
2843           Attributes, it takes them as argument now.  Affected file
2844           is lib/silcclient/silcclient.h, and idlist.c.
2845
2846         * Added -details option to WHOIS command in Irssi SILC Client
2847           to support the requested attributes.  By default it requests
2848           all attributes.  Affected file lib/silcclient/command.c and
2849           irssi/doc/help/in/whois.in.
2850
2851 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2852
2853         * Add also SERVICE attribute for server-constructed attribute
2854           data.  Also digitally sign the attributes and add
2855           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
2856           silcd/server_query.c.
2857
2858 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2859
2860         * Changed the silc_attribute_payload_encode to support list
2861           of attributes (function may be called several times to add
2862           a new attribute).  Removed the silc_attribute_payload_encode_list
2863           function.  The encoding function now also automatically encodes
2864           the data, so the caller does not need to do that.  Affected
2865           files lib/silccore/silcattrs.[ch].
2866
2867         * Added support for replying on behalf of the user to the
2868           Requested Attributes in WHOIS command in the server.  Affected
2869           file silcd/server_query.c.
2870
2871         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
2872           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
2873
2874 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2875
2876         * Don't swtich to become primary router if we are backup if
2877           decryption error has occurred.  Affected file silcd/server.c.
2878
2879         * Fixed a bug in backup router IP address comparison in
2880           silc_server_backup_get.
2881
2882           Save now also the port of the server/router and use that
2883           in comparison as well.  Affected file silcd/server_backup.c.
2884
2885         * Normal server now reconnects to backup router automatically
2886           if connection is lost to it.  Affected file silcd/server.c.
2887
2888 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2889
2890         * If packet processing fails (like integrity check fails)
2891           the connection is closed now.  Affected files are
2892           lib/silccore/silcpacket.c and silcd/server.c.
2893
2894 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2895
2896         * Fixed double free in RSA public key set function
2897           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
2898           Bug #29.
2899
2900 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2901
2902         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
2903           Added server_query.[ch] which provides one interface for
2904           querying information using all three commands.
2905
2906         * Changed all "typedef unsigned char" in core library to
2907           "typedef SilcUInt8".
2908
2909 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2910
2911         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
2912
2913         * Renamed silc_server_get_client_resolve to
2914           silc_server_query_resolve and moved to server_query.[ch].
2915
2916 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2917
2918         * Resumed client packet handling from server put the resumed
2919           client on wrong list on router and caused the client not
2920           be present on the network anymore.  Now fixed to put the
2921           client to correct list.  Affected file silcd/packet_receive.c.
2922
2923 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
2924
2925         * Various cleanup in error message output in config parsing code
2926           and in server init code.  Fixed error log files containing
2927           too many newlines ('\n') in some situations.  Affected files are
2928           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
2929
2930 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2931
2932         * Use the reverse lookupped hostname in client internals
2933           instead of one user provided us as remote server name.
2934           Affected file lib/silcclient/client.c.
2935
2936 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2937
2938         * Added 'app_context' to silc_schedule_init.  It is an
2939           application specific context that is delivered to application
2940           in task callback functions.  Affected files are
2941           lib/silcutil/silcutil.[ch].
2942
2943         * The hb_context in SilcSocketConnection is not freed
2944           automatically anymore (application must free it).  Freeing
2945           it automatic is inconsistent.  Affected files are
2946           lib/silcutil/silcsockconn.[ch].
2947
2948 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2949
2950         * Added support for removing explicitly added client connections
2951           in rehash and closing the client connections if they were
2952           unconfigured in the rehash.  Affected file silcd/server.c.
2953
2954         * Added support for aborting automatically pending commands
2955           that never receives the reply (to avoid memory leaks).
2956           Added also silc_server_command_pending_timed to set the
2957           specific timeout for pending command.  Affected files are
2958           silcd/command[_reply].[ch].
2959
2960         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
2961           specs and lib/silccore/silcstatus.h.
2962
2963 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2964
2965         * Changed the silc_get_time to accept time value as argument
2966           or if zero is sent return current local time.  Affected
2967           file lib/silcutil/silcutil.[ch].
2968
2969         * Added STATS command to client library and Irssi SILC client.
2970           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
2971
2972 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2973
2974         * Assure that channel key is set before sending it.  May
2975           crash server otherwise.  Affected file silcd/packet_send.c.
2976
2977 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2978
2979         * Assure that endless loop cannot happen with detached client
2980           resolving on normal server.  Added idlist status
2981           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
2982           silcd/idlist.h and silcd/packet_receive.c.
2983
2984 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2985
2986         * Incoming file transfer request cannot use same session as
2987           the sending session.  This can happen when sending file to
2988           yourself.  Crashed the client on quit.  Affected file
2989           lib/silcclient/client_ftp.c.  Bug #24.
2990
2991 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2992
2993         * Implemented the draft-riikonen-precense-attrs draft and
2994           the Attribute Payload into the lib/silccore/silcattrs.[ch].
2995
2996 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2997
2998         * Distribute the SERVER_SIGNOFF notify also to local backup
2999           routers from the primary router.  The backup router may not
3000           have the signing of local server directly connected and need
3001           to know about the signoff.  Affected file silcd/server_util.c.
3002
3003         * Use the primary router as the origin of the locally connected
3004           server when it is disconnecting from the backup router since
3005           that's where it really is coming from.  Now the clients from
3006           the disconnecting server are removed correctly and "shadow"
3007           clients are not left to the backup router.  Affected file
3008           silcd/server.c.
3009
3010 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3011
3012         * If normal server is standalone and found existing but disabled
3013           channel, do not re-create the channel since it creates
3014           duplicate same channels.  Affected file silcd/server.c.
3015
3016         * Added anonymous client connections support to server.  New
3017           "anonymous" configuration option to ConnectionParams section
3018           added.  If set to true, the username and hostname information
3019           of the client will be scrambled and anonymous user mode is
3020           set automatically to the user.  Affected files are
3021           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3022
3023 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3024
3025         * In JOIN notify handling, mark that the cache entry of the
3026           client cannot be expired.  Can cause crashes on normal
3027           server (asserts client->channels).  Affected file is
3028           silcd/packet_receive.c.
3029
3030         * From now on distribution versions are used as protocol versions
3031           instead of by default using the Toolkit base version as protocol
3032           version.  Affected file prepare.
3033
3034         * Do not set the locally resolved hostname for local client
3035           entry but take what server sends.  This way the real hostname
3036           is showed in WHOIS for yourself.  Affected file is
3037           lib/silcclient/idlist.c and lib/silcclient/client.c.
3038
3039         * Resolve local info with IDENTIFY when connecting to server.y
3040
3041 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3042
3043         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3044           for implied search (not needed on platforms which has native
3045           pthreads library).  Use --without-pthreads to disable threads.
3046           Affected file is configure.in.pre
3047
3048         * Fixed --with-iconv on platforms which need to bypass (broken)
3049           native iconv().  Affected file is configure.in.pre
3050
3051 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3052
3053         * Moved -C option parsing in Irssi SILC client at same time
3054           as other options.  The UI was initialized earlier and caused
3055           problems on command line.  Bug #16.  Affected file is
3056           irssi/src/silc/core/silc-core.c.
3057
3058 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3059
3060         * Added global variable silc_log_timestamp that tells silclog
3061           wether to print or not the timestamp in the logging files.
3062           Affected file lib/silcutil/silclog.[ch].
3063
3064         * Added silcd configuration option Timestamp in the Logging
3065           section.  Affected file silcd/serverconfig.[ch],
3066           doc/example_silcd.conf.in.
3067
3068 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3069
3070         * Fixed fingerprint checking to check for entirely empty
3071           fingerprint instead of two first bytes when determining
3072           if it is set.  Bug #18.  Affected file silcd/command.c.
3073
3074         * Fixed duplicate PKCS name registering to not allow it.
3075           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3076
3077 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3078
3079         * Conditionalize non-gcc compiler optimizations for various
3080           platforms, enable those commented out.  Cleanups.
3081           Affected file lib/silcmath/mpi/configure.in
3082
3083 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3084
3085         * silc_rng_exec_command() left zombie processes if command
3086           didn't generate any output.  Affected file
3087           lib/silccrypt/silcrng.c
3088
3089 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3090
3091         * Rewrote iconv checking, introduce --with-iconv for systems
3092           which rely on libiconv.  Check if iconv() provided by libc
3093           is good enough, otherwise demand libiconv.  Affected file
3094           configure.in.pre
3095
3096 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3097
3098         * Search for ldopen() also in libc.  This enables SIM support
3099           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3100           file configure.in.pre
3101
3102 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3103
3104         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3105           This fixes prepare on *BSD systems.  Affected file
3106           configure.in.pre
3107
3108 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3109
3110         * More fixed for not having purge timeout for global clients
3111           that are on channel.  Affected files silcd/command_reply.c
3112           and server_util.c.
3113
3114         * Fixed the rekey protocol to work with backup router connections.
3115           Rekey packets are now allowed on disabled connections as
3116           well.  Affected files silcd/packet_send.c and server.c.
3117
3118         * Do not switch to be as backup router when shutting down and
3119           closing the primary connection.  Affected file silcd/server.c.
3120
3121         * Fixed memory leaks in backup router deleting.  Added
3122           silc_server_backup_free to free all data during shutdown of
3123           server.  Affected files silcd/server_backup.[ch].
3124
3125 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3126
3127         * Do not process commands if the sock->user_data is NULL.
3128           Affected file silcd/command.c.
3129
3130 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3131
3132         * Fixed buffer overflow and security problems (loosing bits
3133           in CFB encryption) in SILC RNG.  Problems reported by
3134           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3135
3136 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3137
3138         * Added yet more checks that client is not expired on global
3139           list if it is on channels.  Affected file is
3140           silcd/command_reply.c.
3141
3142 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3143
3144         * Merged c0ffee's MIME signal patch which adds support for
3145           sending also MIME messages in Irssi SILC Client, and handling
3146           received MIME messages in a signal (and perhaps doing something
3147           to non-textual MIME messages).
3148
3149 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3150
3151         * Fixed pending command deletion in server and client library
3152           to check the whole list instead of breaking after first found.
3153           The affected files are silcd/command.[ch] and
3154           lib/silcclient/command.[ch].
3155
3156 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3157
3158         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3159           secret or private, otherwise it's possible to find out
3160           whether a secret channel exists or not.  Affected file
3161           silcd/command.c.
3162
3163         * If CMODE change fails during the mode setting, assure that
3164           the old mode mask is set for the channel back.  Affected
3165           file silcd/command.c.
3166
3167         * Fixed passphrase saving on +a channel on normal server
3168           after successful JOIN command.  Affected file silcd/command.c.
3169
3170 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3171
3172         * Remove server/router operator privileges in DETACH command,
3173           since it's possible to resume to server where these
3174           privileges would not be allowed for the client.  Affected
3175           file silcd/command.c.
3176
3177         * Do not set to wait for backup in rehash of the server.
3178           Affected file silcd/server.c.
3179
3180         * Do not check listener sockets when counting how many
3181           socket connections we have.  Affected file is
3182           silcd/server_util.c.
3183
3184         * Do not announce disconnected clients that are remaining
3185           in history (for WHOWAS).  This is because SIGNOFF notify
3186           for these has been sent earlier already.  Affected file
3187           silcd/server.c.
3188
3189 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3190
3191         * Buffer overflow with CUMODE command's mode->mode character
3192           conversion.  Reported by Ville Räsänen.  Affected file
3193           lib/silcutil/silcutil.c.
3194
3195 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3196
3197         * Allow heartbeat packets to go disabled connections anyway.
3198           Affected files silcd/server.c and silcd/packet_send.c.
3199
3200         * Do not broadcast New Channel packets with List flag set
3201           in the packet to backup routers.  The router must check
3202           for the correctness of the packets before sending them.
3203           It is possible that router will have enforce Channel ID
3204           change and this would cause desync in the backup router.
3205           Affected file silcd/packet_receive.c.
3206
3207         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3208           are handled in list parsing.  They are not list packets
3209           anymore.  Affected file silcd/packet_receive.c.
3210
3211 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3212
3213         * Stop waiting for backup router through the timeout, not
3214           directly after backup router has arrived.  Affected file
3215           silcd/server.c.
3216
3217         * Do not re-create channel keys and send them when removing
3218           clients in server shutdown.  Affected files are
3219           silcd/server_internal.h and silcd/server_util.c.
3220
3221         * Notify distribution to backup routers was missing from
3222           the silc_server_send_notify_dest function which caused
3223           desyncing problems with backup router.  Affected file is
3224           silcd/packet_send.c.
3225
3226         * The client's channel removing was working wrong on
3227           backup router.  It assumed that it doesn't know global
3228           information but backup router does know.  For this reason
3229           it could remove channel when it wasn't supposed to do that.
3230           Affected file silcd/server.c and silcd/server_util.c.
3231
3232 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3233
3234         * Stop for a couple seconds after badkup router has become
3235           primary router.  Affected file silcd/server.c.
3236
3237         * Added silc_server_remove_servers_by_server, which is used
3238           to remove servers originated from some other server.  Also
3239           clients of those servers can be removed too.  Affected file
3240           silcd/server_util.[ch].
3241
3242         * When removing clients after a server has signed of remove
3243           also all servers behind that server (unless they are known
3244           to be available locally), and send SERVER_SIGNOFF for each
3245           of the server separately.  Also the signed off clients are
3246           sent now separately per signed off server.  The affected files
3247           are silcd/server.c and silcd/server_util.[ch].
3248
3249         * All servers added with silc_idlist_add_server must always
3250           have both "router" and "connection" pointers set.  Otherwise,
3251           bad server entries may be left around in the cache.
3252           Affected file silcd/command_reply.c.
3253
3254         * Do not create the channel key in NEW_CHANNEL packet
3255           processing if the channel is empty.  Affected file
3256           silcd/packet_receive.c.
3257
3258         * Completed backup router support for standalone routers.
3259           Supports also servers in the cell that do not use the backup
3260           at all.
3261
3262 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3263
3264         * Fixed a bug in silc_string_regexify which did not add '^'
3265           at the start of each string, and thus the matching was
3266           not explicit.  For example ban list iikone@*!*@* would
3267           match also "priikone", which is wrong, it would have to be
3268           *iikone@*!*@* to match also "priikone".  Affected
3269           file lib/silcutil/unix/silcunixutil.c.
3270
3271 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3272
3273         * Enable all local server connections before updating client
3274           caches when we've become backup router.  Otherwise, signoff
3275           packets may not reach the clients.  Affected files are
3276           silcd/server.c and silcd/server_util.[ch].
3277
3278         * Fixed a bug in version string parsing which could crash
3279           the program with specially formatted version string.
3280           Bug reported and patch provided by Ville Räsänen.  Affected
3281           file lib/silcutil/silcutil.c.
3282
3283         * Handle the disconnection immediately when DISCONNECT
3284           packet is received in server.  Affected file silcd/server.c.
3285
3286         * Primary router now waits a short time (10 seconds) for
3287           backup router connection before accepting any other
3288           connection (except local).  Affected file silcd/server.c,
3289           serverconfig.[ch].
3290
3291         * Fixed a crash in client libary in NICK_CHANGE notify when
3292           NICK_CHANGE arrived for client entry we are resolving
3293           currently.  Affected file lib/silcclient/client_notify.c.
3294
3295         * Call the sconn->callback completion even if error had
3296           occurred.  Start reconnecting always if connection to
3297           primary router fails during backup router protocol.
3298           Affected files silcd/server.c and server_backup.c.
3299
3300 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3301
3302         * Added functions silc_server_send_opers and
3303           silc_server_send_opers_notify to send packets stricly
3304           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
3305           to send variable argument notify to operators.
3306           Affected files silcd/packet_send.[ch] and silcd/server.h.
3307
3308         * Removed UMODE rights checking with UMODE_CHANGE notify.
3309           Affected file silcd/packet_receive.c.
3310
3311         * Server/router operator now receives notify when network
3312           switches to backup router and when it resumes the use of
3313           primary router.  Affected file silcd/server.c and
3314           silcd/server_backup.c.
3315
3316         * Fixed the updating of client information after backup
3317           resuming protocol is over; update all except local clients
3318           to the new primary router.  The affected file is
3319           silcd/server_util.c.
3320
3321         * Added support for closing active connections in rehash
3322           that were unconfigured by the user.  Supports currently
3323           closing server and router connections.  Affected file
3324           silcd/server.c.
3325
3326         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
3327
3328 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3329
3330         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
3331           is NULL since seems that on some platforms NULL is allowed
3332           and on some it's not.  Fallback encoding is used instead.
3333           Affected file lib/silcutil/silcstrutil.c.
3334
3335         * Fixed statistics updating for incoming server connection
3336           which could cause problems when re-connecting.  Affected
3337           file silcd/server.c.
3338
3339         * Preliminary backup router support for standalone router
3340           added.  Affected files in silcd/.
3341
3342         * Mark server connections in backup router disabled before
3343           and after backup protocol.  Affected file is
3344           silcd/server_backup.c.
3345
3346         * Added support for reconnecting to remote server connection
3347           even if the protocol fails, and if the configuration wants
3348           us to keep trying to connect anyway.
3349
3350           Server connection is not allowed to backup router if
3351           backup router does not have connection to primary router yet.
3352
3353           Affected file is silcd/server.c.
3354
3355 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3356
3357         * Added silc_client_udpate_server function to update changed
3358           server info.  Affected file lib/silcclient/idlist.[ch].
3359
3360         * Added check for server entries that are being resolved when
3361           notify is received.  If being resolved, handle the received
3362           notify only after it's resolved so that all notifys are
3363           handled in same order as received from the server.
3364
3365           Added similar resolver check to channel entries.  Every
3366           notify that cause resolving of any information that affects
3367           channel entry marks the channel entry in waiting state.
3368           After whatever resolving is over the waiters are signalled
3369           and only then the notifys are handled in the same order
3370           as delivered from the server.
3371
3372           Affected files are lib/silcclient/idlist.[ch], and
3373           client_notify.c.
3374
3375         * Fixed KILLED notify handling in normal server.  Affected
3376           file silcd/packet_receive.c.
3377
3378         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
3379           is locally connected, or was locally connected (but may
3380           be detached and connection is not active).  Added also
3381           SILC_IS_LOCAL for checking this status.  Affected files
3382           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
3383           silcd/server.c and silcd/server_internal.h.
3384
3385 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3386
3387         * Don't send or handle TOPIC_SET if topic is already set and
3388           is same as being set.  Affected files silcd/command.c and
3389           silcd/packet_receive.c.
3390
3391         * Fixed CMODE change rights checking to work correctly when
3392           removing modes by operator.  Affected file is
3393           silcd/server_util.c.
3394
3395         * Fixed some handling with New Channel packet in router and
3396           fixed some CMODE_CHANGE notify handling in server and router.
3397           Affected file is silcd/packet_receive.c.
3398
3399         * Changed "disconnect" client operation to include the
3400           reason of the disconnection and optional disconnection
3401           message.  Affected file lib/silcclient/silcclient.h.
3402
3403         * Made the compilation of lib/contrib/ stuff conditional.
3404           Affected files configure.in.pre, lib/contrib/Makefile.am.
3405
3406 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3407
3408         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
3409           to the sender of the notify too, to avoid situation where two
3410           notifys are in the network at the same time going to oppsite
3411           directions.  Affected file silcd/packet_receice.c.
3412
3413 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3414
3415         * Delete the client from channel even if the cilent->id is
3416           NULL.  It was possible that client was deleted without
3417           removing from channels (theoretically at least).  Affected
3418           file silcd/server.c and silcd/server_util.c.
3419
3420         * Free the client data too when resuming is not successful.
3421           Affected file silcd/packet_receive.c.
3422
3423         * Merged some code from c0ffee's silc-plugin.  Affected files
3424           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
3425
3426         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
3427           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
3428           to the primary router connection, the other one returns
3429           TRUE if packet must be broadcasted to network.
3430
3431         * All notifys that are destined to primary router (to network)
3432           are now automatically sent to backup routers even if the
3433           router is standalone (and has backup router).  Affected files
3434           in silcd/.
3435
3436         * Added --without-irssi and --without-silcd configuration
3437           options for disabling the compilation of these applications.
3438           Affected file configure.in.pre and prepare.
3439
3440 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3441
3442         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
3443           UTF-8 encoding and decoding.  Added also new encodings
3444           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
3445
3446           Added also SILC_STRING_LANGUAGE which is language and charset
3447           specific encoder and decoer for those platforms that support
3448           iconv().  It can convert the UTF-8 to and from the locale
3449           specific character set.
3450
3451           Affected file lib/silcutil/silcstrutil.[ch].
3452
3453         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
3454
3455         * Added function silc_get_command_name to the file
3456           lib/silcutil/silcutil.[ch].
3457
3458         * Improved the server debug output a bit.  Affected files are
3459           in silcd/.
3460
3461 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3462
3463         * Save the channel passphrase when received succesful JOIN
3464           command reply from router, on normal server.  Otherwise
3465           joinig +a channels from normal server is not possible.
3466           Affected file silcd/command.c.
3467
3468         * Fixed a bug in TOPIC_SET notify handling.  The notifier
3469           may be other than client too, like server or channel.
3470           It expected it to always be only client and ignored the
3471           notify.  Affected file silcd/packet_recieve.c.
3472
3473         * Removed some (unnecessary) debug printing from
3474           lib/silccore/silcid.c and lib/silccore/silcargument.c.
3475
3476         * Do not force CMODE_CHANGE when server is announcing new
3477           channel.
3478
3479           Router announces stuff only after server reannounces channel
3480           after CHANNEL_CHANGE notify.
3481
3482           These fixes optimizes the announcing procedure, and perhaps
3483           fixes some problems too.  Affected file silcd/packet_receive.c.
3484
3485         * Fixed SERVER_SIGNOFF sending to local clients.  It was
3486           totally broken and sent the notify to all local clients,
3487           instead of only to those that was on same channel as the
3488           signing off clients.  Affected file silcd/server_util.c.
3489
3490         * Added -D option to server.  It can be used to give debug
3491           level.  The levels are from 0 - 99, and are predefined for
3492           smooth server debugging.  (see silcd.c for the predefined
3493           levels).  Affected file silcd/server.c.
3494
3495 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3496
3497         * Fixed a bug in Irssi SILC client to close the connection
3498           properly when disconnecting from server.  Affected file
3499           irssi/src/silc/core/client_ops.c.
3500
3501 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3502
3503         * When authenticating as founder during JOIN command, check
3504           that the one authenticating becomes the only founder on the
3505           channel.  Affected file silcd/command.c.
3506
3507         * Better checking for founder mode setting when CUMODE_CHANGE
3508           notify is received.  Affected file silcd/packet_receive.c.
3509
3510         * Close all connections when shutting down the server by sending
3511           DISCONNECT packet.  Close all listeners too when shutting
3512           down the server.  Affected file silcd/server.c.
3513
3514         * Handle DISCONNECT packet correctly in client library by
3515           calling the "disconnect" client operation.  Affected file
3516           lib/silcclient/client.c.
3517
3518         * Handle local errors correctly during resuming.  Affected
3519           file lib/silcclient/client.c.
3520
3521 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3522
3523         * The log file is not dupped internally anymore in
3524           lib/silcutil/silclog.c.  Fixed memory leaks too.
3525
3526         * The scheduler now dispatches all pending timeout tasks
3527           when it is uninitialized with silc_schedule_uninit.
3528           Affected file lib/silcutil/silcschedule.c.
3529
3530 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3531
3532         * Added --enable-stack-trace option to configure.  Added
3533           memory allocation stack trace support.  Added files
3534           lib/silcutil/stacktrace.[ch].  Affected files are
3535           lib/silcutil/silcmemory.[ch].
3536
3537         * Fixed memory leaks from libraries and server.  Affected
3538           files around the tree.
3539
3540         * Reverted back a fix made to CUMODE which broke it.
3541           Affected file silcd/command.c.
3542
3543 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3544
3545         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3546           core library, and implemented it.  All textual messages SHOULD
3547           use this flag and the message MUST be UTF-8 encoded.
3548           All text messages sent by Irssi SILC client are now UTF-8
3549           encoded (regardless whether the terminal supports UTF-8 or not).
3550           Affected files are lib/silccore/silcchannel.h,
3551           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3552           client_ops.c.
3553
3554 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3555
3556         * Added lots of new statistics updating that was missing from
3557           the server and router code.  Affected files in silcd/.
3558
3559         * Sending SIGUSR1 signal to server now dumps the current
3560           server statistics into /tmp directory.  Affected file is
3561           silcd/silcd.c.
3562
3563         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3564           the SILC Hash Interface also.  Added new functions
3565           silc_hash_get_name, silc_hash_init, silc_hash_update and
3566           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3567
3568 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3569
3570         * Added some better info printing for client during connecting.
3571           Affected file silcd/server_util.c.
3572
3573         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3574           to silence a user on a channel.  Affected files are
3575           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3576           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3577           and silcd/packet_receive.c.
3578
3579         * Fixed a fatal bug in handling of malformed command payload.
3580           Affected file silcd/command.c.
3581
3582         * Fixed a double free when announcing channel users to router.
3583           Affected file silcd/server.c.
3584
3585         * After successful authentication to channel founder mode, check
3586           that there isn't anyone else with founder mode on the channel.
3587           The one that authenticated will become founder and anyone
3588           else is demoted.  Affected file silcd/command.c.
3589
3590         * Added error printing of any error that has occurred during
3591           any command in client library.  Affected file is
3592           irssi/src/silc/core/client_ops.c.
3593
3594         * Removed some error printing from the client library and left
3595           it for the application to worry (from the error status it
3596           receives in 'command' client operation.  Affected file is
3597           lib/silcclient/command.c.
3598
3599 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3600
3601         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3602           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3603           Starting key agreement with itself is denied.  Affected file
3604           is lib/silcclient/client_keyagr.c.
3605
3606         * Fixed some error checkings from the SFTP library which caused
3607           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3608           and lib/silcsftp/sftp_util.c.
3609
3610         * Added new "debug" and "debug_string" settings to Irssi SILC
3611           client which can be used to print runtime debugging on the
3612           Irssi's screen.  Available when compiled with --enable-debug
3613           option.  Affected file irssi/src/silc/core/silc-core.c.
3614
3615 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3616
3617         * Fixed a missing variadic parameter in a function call that
3618           caused server crash when a non-allowed connection arrived.
3619           Reported by Richard Becker.  Affected file silcd/server.c.
3620
3621 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3622
3623         * Added WATCH list sending to backup routers from router.
3624           The WATCH command is sent by the router to the backup
3625           router.  Affected file silcd/command.c.
3626
3627         * Mark the backup_router flag for RouterConnection entry
3628           if the backup router stuff is defined in the config file.
3629           Affected file silcd/serverconfig.c.
3630
3631         * Fixed some backup data sending around the code to work better
3632           if the router is standalone router.  Not all places were fixed.
3633           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3634           silcd/server.c.
3635
3636         * Fixed the router connecting when connecting to multiple
3637           routers.  It ignored every other router except the first
3638           one.  Affected file silcd/server.c.
3639
3640 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3641
3642         * Made the private key generation after expiration optional.
3643           If not created after expiration the old key will re-expire
3644           at a later time (and thus key pair is not necessary to
3645           change).  Affected file irssi/src/silc/core/clientutil.c.
3646
3647 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3648
3649         * The length arguments in bind() and connect() were wrong
3650           and fixed now to used SIZEOF_SOCKADDR in the
3651           lib/silcutil/unix/silcunixutil.c.
3652
3653 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3654
3655         * Fixed detach timeout handling to use Client ID and not
3656           the actual client entry which may be freed in the callback.
3657           Affected file silcd/command.c.
3658
3659 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3660
3661         * Merged c0ffee's multiple interface support patch.
3662           Affected files in silcd/.
3663
3664 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3665
3666         * Cleanup keys properly.  Affected file is
3667           irssi/src/silc/core/clientutil.c.
3668
3669 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3670
3671         * Display the user mode on the status bar.  Affected file
3672           irssi/src/silc/core/silc-expandos.c.
3673
3674 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3675
3676         * If private message key is not set, but the flag is set in
3677           the packet, ignore the packet since it cannot be decrypted.
3678           Affected file lib/silcclient/client_prvmsg.c.
3679
3680 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3681
3682         * When resuming client, remove the old client entry from
3683           the watcher list too.  Affected file silcd/packet_receive.c.
3684
3685         * Do not allow normal server to force founder mode away
3686           from router if the founder mode is already set.  Affected
3687           file silcd/packet_receive.c.
3688
3689         * Remove the client entry with watch notify types with short
3690           timeout, and not directly, so that other notifys can be
3691           retrieved too.  Affected file lib/silcclient/client_notify.c.
3692
3693         * Display notification about data messages that cannot be
3694           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3695           irssi/src/fe-common/silc/module-formats.[ch].
3696
3697 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3698
3699         * Fixed the CHANNEL_CHANGE notify handling in client libary
3700           to not use freed memory.  Affected file is
3701           lib/silcclient/client_notify.c.
3702
3703         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3704           file silcd/packet_receive.c.
3705
3706         * Fixed USERS command to support empty channels.  Affected
3707           file silcd/command.c.
3708
3709 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3710
3711         * Allow multiple identical pending commands to be registered
3712           in client library.  Affected file is lib/silcclient/command.c.
3713
3714         * Call the completion for resolving client information only
3715           after all resolvers has finished.  This fixes a crash in
3716           the client.  Added support for checking when the resolvers
3717           are finished.  Affected file is lib/silcclient/idlist.c.
3718
3719         * Wait by default 3 seconds before reconnecting to the server
3720           after being disconnected.  Makes the /detach command a bit
3721           more usable.
3722
3723 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3724
3725         * Check the watcher list before sending signoff notifys
3726           when closing client connection.  Affected file is
3727           silcd/server.c.
3728
3729         * Added better CMODE command rights checking.  Affected file
3730           silcd/server_util.c.
3731
3732 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3733
3734         * Fixed watcher list checking during server signoff.  It
3735           crashed the server.  Affected file silcd/server_util.c.
3736
3737         * The JOIN command reply returns now the founder's public
3738           key.  Affected file is silcd/command.c.
3739
3740         * Announce the channel mode, and the mode properties with
3741           CMODE_CHANGE notify.  Affected file silcd/server.c.
3742
3743         * Mark new channels by default disabled, untill at least
3744           one user joins the channel.  Affected file is
3745           silcd/packet_receive.c.
3746
3747 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3748
3749         * The nickname argument to watch notify can be optional.
3750           Fixes a crash in server.  Affected file silcd/packet_send.c.
3751
3752         * Remove the client entry from cache if the WATCH notify type
3753           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
3754           lib/silcclient/client_notify.c.
3755
3756         * Check the watcher list before and after changing nickname
3757           when the NICK_CHANGE notify is received.  Affected file is
3758           silcd/idlist.c.
3759
3760         * Fixed a crash in OPER and SILCOPER command sending.  Empty
3761           passphrase caused the crash.  Affected file is
3762           lib/silcclient/command.c.
3763
3764 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3765
3766         * Merged with Irssi CVS for Irssi SILC client.
3767
3768 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3769
3770         * Completed the protocol specifications.
3771
3772 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3773
3774         * Merged with Irssi CVS for Irssi SILC client.
3775
3776 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3777
3778         * Added the founder's public key delivery to the
3779           CUMODE_CHANGE notify type as well.  Updated the protocol
3780           specs and the code.  Affected files are silcd/packet_send.[ch],
3781           silcd/packet_receive.c and silcd/command.c.
3782
3783 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3784
3785         * Added silc_pkcs_public_key_copy function into the
3786           lib/silccrypt/silcpkcs.[ch].
3787
3788         * Remove the `iv' from the SilcChannelEntry since we can
3789           live without it.  Affected files are silcd/idlist.h and
3790           silcd/packet_receive.c.
3791
3792         * Added support for sending the founder's public key in
3793           the CMODE_CHANGE notify packet in the server.  Affected
3794           files are silcd/packet_send.[ch], silcd/packet_receive.c,
3795           silcd/command.c and silcd/server.c.
3796
3797         * Changed the FOUNDER_AUTH authentication to use only
3798           public key authentication as defined by new protocol
3799           specs.  Passphrase authentication with that mode cannot
3800           be used anymore.  It is now possible to reclaim founder
3801           mode from any server in the network.  Affected files are
3802           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
3803
3804         * Added permanent channels support by making the channel
3805           permanent when FOUNDER_AUTH mode is set on the channel.
3806           The channel will not be destroyed even if channel is empty
3807           when that mode is set.  Protocol TODO #17.  Affected
3808           files are silcd/server.[ch], server_util.[ch],
3809           silcd/command.c, silcd/packet_receive.c and
3810           lib/silcclient/command.c.
3811
3812 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3813
3814         * Added reference counter to the command reply context in
3815           the client library.  Affected files are
3816           lib/silcclient/command_reply.[ch].
3817
3818 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3819
3820         * Fixed rekey protocol with PFS in the client library.
3821           Affected file is lib/silcclient/protocol.c.
3822
3823         * Added support for list of errors in client library
3824           command reply handling.  Affected file is
3825           lib/silcclient/command_reply.c.
3826
3827         * Defined that the WHOIS and IDENTIFY commands can send
3828           list of errors.  Updated the protocol specs.  Protocol
3829           TODO #2.
3830
3831         * Added support for sending list of errors to WHOIS and
3832           IDENTIFY commands in server.  Added support for receiving
3833           list of errors in server.  Affected files are
3834           silcd/command.c and silcd/command_reply.c.
3835
3836         * Fixed client info resolving on LEAVE command in client
3837           library to not crash.  Affected file is
3838           lib/silcclient/client_notify.c.
3839
3840 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3841
3842         * Defined that the NICK command replies with thew changed
3843           nickname too, to make the nickname changing simpler at
3844           the client's end.  Updated protocol specs and the code
3845           in client and server.  Affected files are
3846           silcd/command.c, lib/silcclient/command_reply.c and
3847           lib/silcclient/command.c.
3848
3849 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3850
3851         * Added `Compressed' packet flag to indicate that the packet
3852           payload is compressed by the sender.  Updated the protocol
3853           specs and the core library.  The compression still is not
3854           implemented in the sources.  Affected file is
3855           lib/silccore/silcpacket.h.
3856
3857 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3858
3859         * Remove pending command callbacks also if the connection
3860           to the server is destroyed.  Affected file is
3861           lib/silcclient/client.c.
3862
3863 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3864
3865         * Added new QUIET channel user mode that can be used to
3866           quiet a user in a channel.  Updated the protocol specs but
3867           it wasn't implemented yet.  Protocol TODO #27.  Affected
3868           file is lib/silccore/silcmode.h.
3869
3870 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3871
3872         * Added BLOCK_INVITE user mode to be able to block incoming
3873           invite notifications.  Protoocol TODO #26.  Affected files
3874           are lib/silccore/silcmode.h, lib/silcclient/command.c and
3875           silcd/command.c.
3876
3877         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
3878           the protocol specs and the code.  Affected file is
3879           lib/silccrypt/silcpkcs.c.
3880
3881 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3882
3883         * Disconnect Payload includes now the status type.  Updated
3884           the protocol specs and the code.  Protocol TODO #25.
3885           Affected files are silcd/server.c, lib/silcclient/client.c.
3886
3887         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
3888           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
3889           Moved the silc_client_command_status_messages table to the
3890           lib/silcutil/silcutil.c and added new funtion
3891           silc_get_status_message, which deprecates function
3892           silc_client_status_message.  Affected files are
3893           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
3894           lib/silcutil/silcutil.[ch].
3895
3896 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3897
3898         * Defined that the nickname hash in Client ID MUST be from
3899           lowercase nickname.  This effectively changes nicknames in
3900           SILC to case-insensitive.  Updated the protocol specs and
3901           the code.  Affected files are lib/silcutil/silcutil.[ch],
3902           silcd/serverid.c, and silcd/idlist.c.
3903
3904         * Added new channel user modes BLOCK_MESSAGES_USERS and
3905           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
3906           code.  Affected files are lib/silccore/silcmode.h,
3907           lib/silcclient/command.c, and silcd/packet_send.c.
3908
3909         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
3910           specs and code.  Affected file lib/silccore/silcstatus.h.
3911
3912         * Added support for watch list.  It is possible to add nicknames
3913           to be watched, and when they come to network, leave network
3914           or user mode changes the watcher will be notified of this
3915           change.  Added SILC_COMMAND_WATCH command, added new
3916           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
3917           notifications.  Updated the protocol specs and implemented
3918           this to library, client and server.  Protocol TODO #21.
3919           Affected files are lib/silccore/silccomand.h,
3920           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
3921           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
3922           silcd/packet_send.[ch], silcd/packet_receive.c, and
3923           irssi/src/silc/core/client_ops.c.
3924
3925         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
3926           somebody watching you.  Updated the protocol specs and the
3927           code.  Affected files are lib/silccore/silcmode.h, and
3928           lib/silcclient/command.c.
3929
3930 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3931
3932         * Added service support to SILC protocol.  Added new command
3933           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
3934           core library.  Services are not implemented in server or
3935           client for now.  Protocol TODO #20.  Affected files are
3936           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
3937
3938         * Added SilcStatus argument to `command' client operation
3939           to return the error status when command sending fails
3940           locally.  Changed all command in client library to return
3941           correct command status.  Affected files are
3942           lib/silcclient/command.c, lib/silcclient/silcclient.h and
3943           irssi/src/silc/core/client_ops.c.
3944
3945 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3946
3947         * Added silc_mime_parse function to parse MIME headers.
3948           Affected files are lib/silcutil/silcstruti.[ch].
3949
3950         * Added MIME header parsing in Irssi SILC Client.  It displays
3951           all textual MIME objects, others it ignores.  Affected file
3952           is irssi/src/silc/core/clien_ops.c.
3953
3954 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3955
3956         * Fixed a bug in the pid writing function, which couldn't be
3957           written in a root-owned directory.
3958
3959 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3960
3961         * Defined that channel message to unknown Channel ID must
3962           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
3963           Updated the protocol specs and the code in server.  The
3964           affected file is silcd/packet_receive.c.
3965
3966 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3967
3968         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
3969           that it is used to send error notifys if error occurs during
3970           some SILC packet processing, except commands.  The error
3971           types are same as for command reply types.  Defined that
3972           if private message is sent to unknown Client ID the error
3973           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
3974           Updated the protocol specs and code.  Affected files are
3975           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
3976           lib/silcclient/client_notify.c, silcd/packet_receive.c,
3977           and irssi/src/silc/core/client_ops.c.  Renamed the
3978           SilcCommandStatus to SilcStatus.
3979
3980         * Defined the use of extra WHOIS attributes in WHOIS command.
3981           The <Requested Attributes> (defined in a separate document)
3982           can be used to request additional information about user
3983           not returned by standard WHOIS command.  Defined that server
3984           can send WHOIS command directly to client.  Client provides
3985           the requested attributes to the server.  Updated the protocol
3986           specs.  Protocol TODO #4.  Implementation is not done yet
3987           (Protocol TODO #24).
3988
3989         * Renamed function silc_client_command_status_message to
3990           silc_client_status_message.  Affected files are
3991           lib/silcclient/command_reply.[ch].
3992
3993 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3994
3995         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
3996           32 bit integers.  Updated the protcol specs and the code.
3997           Affected files are silcd/command.c and
3998           lib/silcclient/command.c.
3999
4000 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4001
4002         * Fixed a bug in library where sending a bogus authentication
4003           payload would lead to a crash.  Affected file is
4004           lib/silccore/silcauth.c.
4005
4006 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4007
4008         * Added detach_disabled and detach_timeout server config
4009           options to the server.  Affected files silcd/serverconfig.[ch],
4010           silcd/command.c and silcd/packet_receive.c.
4011
4012 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4013
4014         * Added resolve_cmd_ident field to the SilcClientEntry structure
4015           too so that if the entry is for example being resolved so
4016           another command may attach to the same pending command reply
4017           without requiring to resolve the same entry again.  Added
4018           support for adding multiple pending commands for one
4019           command idenfier.  Affected files lib/silcclient/command.[ch],
4020           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4021
4022 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4023
4024         * Defined that server receives WHOIS command reply for private
4025           and secret channels too.  Updated protocol specs and the
4026           code in server.  Affected file silcd/command.c.
4027
4028         * Defined <channel user mode list> argument to WHOIS command
4029           reply for returning user modes on the channels.  The
4030           channel list now doesn't include the user mode anymore but the
4031           actual channel mode.  Updated protocol specs and the code in
4032           client and server.  Affected files are silcd/command_reply.c,
4033           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4034           and lib/silcclient/command_reply.c.
4035
4036         * Save the channels list in WHOIS command reply in normal server
4037           so that WHOIS always shows joined channels also in normal
4038           server and not just on router.  Affected file is
4039           silcd/command_reply.c.
4040
4041 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4042
4043         * Defined that server receives USERS command reply for private
4044           and secret channels too.  Updated protocol specs and the
4045           code in server.  Affected file silcd/command.c.
4046
4047 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4048
4049         * Changed the UMODE's mode mask argument to be optional.  If
4050           not provided then the command merely returns the current mode
4051           mask to the client.  Updated protocol specs and the server.
4052           Affected file is silcd/command.c.
4053
4054         * Added SILC session detachment/resuming support.  It is possible
4055           to detach by closing the network connection and then re-connect
4056           and resume to the old client session.  Added DETACHED user
4057           mode that server will set for detached client.  Added new
4058           packet RESUME_CLIENT which is used to perform the resuming
4059           process.  Added DETACH command.  Updated the protocol specs,
4060           core library, client and server.  Protocol TODO #22.  Very
4061           many affected files around the tree.
4062
4063 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4064
4065         * Changed the CMODE's mode mask argument to be optional.  If
4066           not provided then the command merely returns the current mode
4067           mask to the client.  Updated protocol specs and the server.
4068           Affected file is silcd/command.c.
4069
4070         * Changed the Killer's Client ID in KILLED notify to be just
4071           any ID payload since router server is allowed to kill as well.
4072           Updated protocol specs, client libary and server.  Affected
4073           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4074           and irssi/src/silc/core/client_ops.c.
4075
4076 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4077
4078         * Added new user modes ANONYMOUS for special anonymous servers
4079           that may set the mode for client, and BLOCK_PRIVMSG which
4080           client may set to block incoming private messages unless the
4081           Private Message Key flag is set (using private keys to protect
4082           private messages).  Updated protocol specs and code in client
4083           and server and core library.  Protocol TODO #23.  Affected
4084           files are lib/silccore/silcmode.h, silcd/server.[ch],
4085           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4086           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4087
4088         * Added new channel user mode BLOCK_MESSAGES which the client
4089           may set to itself to tell server not send channel messages.
4090           Other packets such as channel key packets are still sent.
4091           Protocol TODO #23.  Updated the protocol specs, client and
4092           server.  Affected files are lib/silccore/silcmode.h,
4093           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4094           lib/silcutil/silcutil.c, silcd/command.c, and
4095           silcd/packet_send.c.
4096
4097 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4098
4099         * Redefined the Status Payload to include now two 8 bit fields,
4100           instead of one 16 bit field.  This now makes it possible to
4101           send list of errors.  Updated the protocol specs and the code
4102           in core library, client library and server.  Protocol TODO #1.
4103           Affected files are lib/silccore/silccommand.[ch],
4104           lib/silcclient/command_reply.[ch], silcd/command.c,
4105           silcd/command_reply.c and silcd/packet_receive.[ch].
4106
4107 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4108
4109         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4110           must be handled by the application and should tell the application
4111           that an error message was already printed, and it should print the
4112           config coords (line, filename, ...).  Affected files are
4113           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4114
4115         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4116           server config parsing code more readable.
4117
4118           Fixed a bug in the fetch_logging() config callback.
4119
4120           Affected files is silcd/serverconfig.c.
4121
4122         * Drop root privileges when started in foreground.  Don't drop them
4123           if debugging also.  Affected file is silcd/silcd.c.
4124
4125 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4126
4127         * Added more IM-like features by introducing new user modes
4128           for setting various presence information.  Added new modes:
4129           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4130           specs and code.  Protocol TODO #19. Affected files are
4131           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4132           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4133
4134 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4135
4136         * Added STATS command to the protocol after all, to return
4137           various statistical information about the network.  It can
4138           be used by clients to retrieve statistical information, and
4139           servers may use it to to fetch cell and network wide
4140           statistics from router.  Updated the protocol specs and
4141           implemented it to the server.  Protocol TODO #16.
4142           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4143           silcd/command_reply.[ch].
4144
4145 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4146
4147         * The LIST command reply in client libary now adds new channel
4148           entry if the returned channel doesn't exist yet in cache,
4149           and returns the channel entry to the application in the
4150           command_reply client operation.  Affected file is
4151           lib/silcclient/command_reply.c.
4152
4153         * Changed the channel message payload's MAC generation to
4154           include the IV in the MAC as well.  This way all relevant
4155           parts of the channel message payload are authenticated also
4156           with the channel message MAC (and not only by packet MAC).
4157           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4158           Affected file is lib/silccore/silcchannel.c.
4159
4160         * Fixed the SKE to save the remote version, since the
4161           silc_ske_parse_version mistakenly checked wrong version,
4162           after it replaced the start payload.  Affected files are
4163           lib/silcske/silcske.[ch].
4164
4165 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4166
4167         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4168           string utility functions.  Added there also new functions
4169           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4170           Affected files lib/silcutil/silcstrutil.[ch].
4171
4172         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4173           files are lib/silcutil/silcstrutil.[ch].
4174
4175         * Defined that the security property fields in SKE SHOULD be
4176           UTF-8 encoded, defined that version string MUST be US-ASCII
4177           encoded, defined that passphrases sent in connection
4178           authentication protocol MUST be UTF-8 encoded.  Implemented
4179           these to the client and server.  Defined also that other
4180           passphrases sent in the protocol MUST be UTF-8 encoded.
4181           Affected files are lib/silcske/silcske.c,
4182           lib/silcclient/protocol.c, silcd/protocol.c,
4183           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4184
4185         * Changed the silc_client_close_connection interface to not
4186           need the SilcSocketConnection which should not be visible
4187           to application.  Affected files are lib/silcclient/client.c
4188           and lib/silcclient/silcclient.h.
4189
4190         * Rewrote the text for Private Message Key Payload in the
4191           protocol specification.  Protocol TODO #11.
4192
4193 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4194
4195         * Upgraded the protocol version to 1.1, updated protocol specs
4196           and software.
4197
4198         * Added the nickname as new argument to NICK_CHANGE notify and
4199           added it to protocol specs and implemented it to client and
4200           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4201           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4202           lib/silcclient/client_notify.c.
4203
4204         * Added the killer's client ID to the KILLED notify and added
4205           it to protocol specs and implemented it to client and server.
4206           Protocol TODO #13.  Affected files are silcd/command.c,
4207           silcd/packet_receive.c, packet_send.[ch],
4208           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4209           The killer's client entry is now returned to application in
4210           the `notify' client operation.
4211
4212         * Fixed the Max Argument fields that had too large value set
4213           in the protocol specs.  Protocol TODO #14.
4214
4215         * Added the LEAVE command reply to return the ID of parted
4216           channel.  Updated protocol specs and implemented it to the
4217           client and server.  Protocol TODO #15.  Affected files are
4218           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4219           entry is now returned to application in the `command_reply'
4220           client operation.
4221
4222         * Rewrote the version SKE version checking in client libary
4223           and in server to use the silc_parse_version_string.  Affected
4224           files are lib/silcclient/protocol.c, silcd/protocol.c.
4225
4226         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4227           commands that was missing it, and updated protocol specs and
4228           the server implementation.  Protocol TODO #10.  The affected
4229           file is silcd/command.c.
4230
4231         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4232           generic reply to a generic request (REQUEST flag), and
4233           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4234           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4235           to define the payload for DATA flag.  Added the flags to
4236           the implementation.  Protocol TODO #9.  Affected file is
4237           lib/silccore/silcchannel.h.
4238
4239           Changed the client library to return the message length
4240           to application as well in the channel_message and private_message
4241           client operations.  Affected files are
4242           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4243           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4244           and lib/silcclient/client_ops_example.c.
4245
4246         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4247           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4248           the channel.  Updated protocol specs and impelemented this
4249           to client and server.  Protocol TODO #6.  Affected files are
4250           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4251           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4252
4253           Added new options m and M to CMODE command in Irssi SILC
4254           client to set these modes.
4255
4256         * Deprecated all administrative commands from SILC protocol
4257           since they are highly implementation specific commands.
4258           Updated protocol specs.  Moved the old commands in
4259           implementations to private range of command types.  Affected
4260           files are silcd/command.c, lib/silcclient/command.c and
4261           lib/silcclient/command_reply.c.  Protocol TODO #8.
4262
4263         * Fixed a bug in server where sending unknown command crashes
4264           the server.  Affected file silcd/command.c.
4265
4266 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4267
4268         * Added SILC_PROTOCOLVERSION macro to check protocol version
4269           of a socket connection.  The affected file is
4270           lib/silcutil/silcsockconn.h.
4271
4272         * Added better error logging in rekey protocol.  Affected file
4273           silcd/protocol.c.
4274
4275         * Do not check public key types in SKE during rekey.  Affected
4276           file lib/silcske/payload.c.
4277
4278         * Fixed the rekey protocol with PFS, which was totally broken.
4279           Affected file silcd/protocol.c.
4280
4281 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4282
4283         * Some client implementations quit network by doing first LEAVE
4284           and then immediately SIGNOFF (like Bombyx).  We now do check
4285           after a short time after LEAVE notify and check whether the
4286           client is still valid after LEAVE, and if not we remove it from
4287           cache.  Affected file is lib/silcclient/client_notify.c.
4288
4289 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4290
4291         * Merged version 1.1.4 of zlib. Even if it not currently in use,
4292           it's good not to have security holes here.
4293
4294         * Fixed a negative refcount situtuation for the config context.
4295           Affected file is silcd/serverconfig.c.
4296
4297 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4298
4299         * ROBOdoc documented lib/silcutil/silcutil.h.
4300
4301 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4302
4303         * Optimized even more the SilcPacketContext structure.  Now
4304           totally saved 16 bytes of memory per context after optimization.
4305           Affected files are lib/silccore/silcpacket.[ch].
4306
4307         * Made strict checks for valid SILC IDs.  Affected file is
4308           lib/silccore/silcid.c.
4309
4310 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4311
4312         * Changed the object argument for silc_cipher_register,
4313           silc_hash_register, silc_hmac_register and silc_pkcs_register
4314           to const.  Affected files are lib/silccrypt/silccipher.[ch],
4315           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
4316
4317         * Changed the silc_get_username and silc_get_real_name to
4318           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
4319
4320         * Fixed the Irssi SILC Client to use the silc_get_username and
4321           silc_get_real_name insted of glib routines since the glib
4322           routines only corrupt stack.  Fixes the Irssi SILC to work in
4323           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
4324
4325         * Fixed the Irssi to not use g_get_home_dir since it crashes
4326           or returns garbage on cygwin and corrupts stack.  Added function
4327           get_home_dir to Irssi routines.  Affected files are
4328           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
4329
4330 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4331
4332         * Made some structure optimizations.  SFTP memory FS MemFSEntry
4333           entry structure.  Optimized SilcTask structure.  Optimized
4334           SilcPacketContext structure.
4335
4336           Affected files lib/silcsftp/sftp_fs_memory.c,
4337           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
4338
4339 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4340
4341         * And yet again reverted back the config thing since Johnny
4342           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
4343           and silcd.c.
4344
4345         * Fixed memory leaks from config object.  Affected files are
4346           silcd/serverconfig.[ch].
4347
4348         * Added support for adding new connections to the server in rehash.
4349           After rehash they take effect.
4350
4351           Added support for changing the maximum allowed connections in
4352           rehash.  The number can grow but going smaller is not supported.
4353
4354           Added function silc_server_num_sockets_by_remote to the
4355           silcd/server_util.[ch].
4356
4357           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
4358
4359 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
4360
4361         * Added preliminary checking during config parsing for a valid
4362           public/private key and removed further checks in the code.
4363           Affected files are silcd/serverconfig.[ch], server.c.
4364
4365         * Moved functions silc_server_drop() and silc_server_daemonise()
4366           from server.c to silcd.c since they are stricly related to
4367           the application activity.
4368
4369         * Reverted a small part of the automatic ref/unref since
4370           it caused a double unref in some situations.  Affected
4371           files are silcd/silcd.[ch], server.c, serverconfig.c.
4372
4373         * Added some .cvsignore files in the lib directory.
4374
4375 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4376
4377         * Fixed silc_net_gethostbyaddr to correctly resolve by
4378           address.  Affected file lib/silcutil/silcnet.c.
4379
4380         * Fixed the notify relaying to client.  The HMAC to be used
4381           with relayed packets ws wrong and caused decryption failure
4382           at the client end.  Affected file is silcd/packet_receive.c.
4383
4384 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4385
4386         * Created new branch silc_protocol_1_0_branch.
4387
4388         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
4389
4390         * Changed the silc_server_config_* routines to be SilcServer
4391           independent.  They are now officially application specific code
4392           and not part of generic server implementation.  Affected files
4393           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
4394
4395 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4396
4397         * Added automatic referencing of config context in the
4398           silc_server_config_alloc, and automatic unreferencing in the
4399           silc_server_config_destroy.  Affected files are
4400           silcd/serverconfig.[ch], silcd/silcd.c.
4401
4402         * Fixed the silc_log_quick handling in the logging routines.
4403           It didn't log quickly when it was TRUE.  Affected file is
4404           lib/silcutil/silclog.c.  Also the flush delay was set even
4405           if it was 0 in config file.  Affected file is
4406           silcd/serverconfig.c.
4407
4408         * Added support for changing key pair of the server in rehash.
4409           Affected file silcd/server.c.
4410
4411 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4412
4413         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
4414           too early, before getting the channel entry.  Affected file
4415           is silcd/packet_receive.c.
4416
4417 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4418
4419         * Added functions silc_server_config_[ref/unref], these are used
4420           to prevent that the config object is destroyed.
4421
4422           No longer directly affect global variables silc_log_quick and
4423           silc_log_delay, they are first cached inside the config object
4424           and then applied with silc_server_config_setlogfiles().
4425
4426           silc_server_config_set_defaults() is now internal to
4427           serverconfig.c, there are no reasons to show this internal stuff
4428           to the server.
4429
4430           Affected files are silcd/serverconfig.[ch].
4431
4432         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
4433           fprintf's to stderr, since some code may be executed again after
4434           the server went into the background.  Affected files are
4435           silcd/server.[ch].
4436
4437         * Added rehash support. Added function silc_server_rehash() that
4438           will perform all the basic tasks of the rehashing procedure.
4439
4440         * Added command line option `-x, --hexdump'. This will enable the
4441           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
4442           The option `--hexdump' implies `--debug'.
4443
4444         * Fixed a bad bug in the logging APIs (silcutil library) where
4445           the application would crash after calling silc_log_reset_all().
4446
4447 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4448
4449         * Fixed the KICKED notify handling in client library to
4450           correctly remove the channel and all entries from the
4451           channel when I was kicked.  This bug crashed the client.
4452
4453           Fixed yet another but in KICKED notify handling to remove
4454           the kicked client correctly from the channel.
4455
4456           Affected file is lib/silcclient/client_notify.c.
4457
4458         * Fixed a minor bug in looking up correct client entry
4459           in KICKED notify in server.  Affected file is
4460           silcd/packet_receive.c.
4461
4462         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
4463           sources correctly to distribution.  Fixes --with-gmp option.
4464
4465         * Removed the manual rehashing from ID Cache, and changed it
4466           to use the SILC Hash Table's auto rehash feature.  Affected
4467           file is lib/silccore/silcidcache.c.
4468
4469 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4470
4471         * Fixed a bug in the silc_client_nickname_format function that
4472           handles the multiple same nickname formatting.  Two clients
4473           with same nickname caused problems after the first one left
4474           and rejoined.  It didn't format the nickname correctly.
4475           Affected file is lib/silcclient/idlist.c.
4476
4477 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4478
4479         * Don't change the topic if olod topic is same as new one.
4480           Affected file is silcd/packet_receive.c.
4481
4482 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4483
4484         * Added cross-reference support to the SILC Documentation
4485           generator.  All types across all HTML files are now cross-
4486           referenced.  Affected files util/robodoc/generator.c and
4487           scripts/silcdoc/silcdoc.
4488
4489         * Added file lib/silcutil/silctypes.h to include all the
4490           arithmetic type definitions and some macros.  Removed
4491           includes/bitmove.h and moved macros to silctypes.h.
4492
4493 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4494
4495         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
4496
4497 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4498
4499         * Added `type' argument to silc_id_payload_parse_id function which
4500           now returns the type of the ID to the sent pointer.  Affected
4501           file is lib/silccore/silcid.[ch].
4502
4503         * Added check for CMODE_CHANGE notify type that mode change is
4504           allowed by the sender.  Affected file silcd/packet_receive.c.
4505
4506         * Added check for CUMODE_CHANGE notify type that mode change is
4507           allowed by the sender.  Affected file silcd/packet_receive.c.
4508           Added the ID type as CUMODE_CHANGE notify type as argument
4509           to the `notify' client operation.  Affected files are
4510           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4511
4512         * Added function silc_client_add_server to the client library.
4513           Added support for resolving also channel and server info when
4514           received unknown entity in notify packet.  Affected files are
4515           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4516
4517         * Added function silc_command_get_status to return the command
4518           status from the command reply's argument payload.  Affected files
4519           are lib/silccore/silccommand.[ch].
4520
4521         * Added check for KICKED notify type that the kicking is
4522           allowed by the client.  Affected file silcd/packet_receive.c.
4523
4524         * Created function silc_get_input which can be used to get input
4525           (echo on or off) from user on command line.  Affected files are
4526           lib/silcutil/silcutil.[ch].
4527
4528 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4529
4530         * Optimized silc_server_packet_relay_to_channel function.
4531           Added new function silc_channel_message_payload_encrypt which
4532           can be called directly if channel message payload needs to
4533           be encrypted and is already encoded (no need to call _encode
4534           function).  Packet relaying is now done by router without any
4535           extra memory allocations.  Affected files are
4536           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4537           silcd/packet_send.c.
4538
4539         * Fixed the INVITE notify handling.  It took wrong arguments
4540           as invite list and invite delete.  Affected file is
4541           silcd/packet_receive.c.
4542
4543         * Added check for TOPIC_SET notify type that the topic change is
4544           allowed by the client.  Affected file silcd/packet_receive.c.
4545
4546         * Added check for INVITE notify type that inviting is allowed by
4547           the client.  Affected file silcd/packet_receive.c.
4548
4549         * Changed the silc_server_client_on_channel to return the
4550           SilcChannelClientEntry as well.  Moved the function
4551           silc_server_check_cmode_rights to server_util.[ch].
4552           Affected files are silcd/server_util.[ch], silcd/command.c.
4553
4554         * Added function silc_server_check_umode_rights to check whether
4555           changing client's user mode is allowed.  Added check for
4556           UMODE_CHANGE notify type that the umode change is allowed
4557           by the client.  Affected files are silcd/server_util.[ch],
4558           silcd/packet_receive.c and silcd/command.c.
4559
4560 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4561
4562         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4563           ID length.  It ignored that ID can be IPv6 based as well.
4564           Affected file lib/silccore/silcpacket.h.
4565
4566         * Fixed the silc_id_id2str and silc_id_str2id to take the
4567           IPv6 address offset's into consideration.  Affecte file is
4568           lib/silccore/silcid.c.
4569
4570 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4571
4572         * Fixed the internal Unix scheduler functions to check for
4573           NULL context they may receive.  The affected file is
4574           lib/silcutil/unix/silcunixschedule.c.
4575
4576 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4577
4578         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4579           can specify different directory with --home command line
4580           parameter. Affected files irssi/src/silc/core/client_ops.c,
4581           clientutil.c
4582
4583         * SILC-specific commands aren't now executed if the active server
4584           isn't of SILC-type, so there won't be problems with having
4585           IRC and SILC protocol support in same client. Affected files
4586           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4587           silc-commands.h
4588
4589 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4590
4591         * Improved the signal support in SILC Schedule.  Added new
4592           function silc_schedule_signal_call which is used by application
4593           to mark a signal to be called.  It is now safe to perform
4594           any kind of tasks in signal callbacks since it is guaranteed
4595           that the application specified signal callback is called
4596           after the signal is over.  Affected files are
4597           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4598
4599 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4600
4601         * Added `name' field to SilcChannelPrivateKey to represent
4602           application given name for the key.  Moved also the context from
4603           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4604           Added the `name' argument also to the function
4605           silc_client_add_channel_private_key.
4606
4607           Added function silc_client_current_channel_private_key to set the
4608           current channel private key in use.
4609
4610           Added "change" command to KEY command which can be used to change
4611           the current channel private key.  Bound the command also to
4612           alt+K (Alt+Shift+k).
4613
4614           Also affected files lib/silcclient/client_channel.c,
4615           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4616
4617 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4618
4619         * Added silc_rng_get_byte_fast function in to the
4620           lib/silccrypt/silcrng.[ch].
4621
4622         * Changed the interface of silc_packet_assemble and the
4623           silc_packet_send_prepare.  If silc_packet_assmble is now
4624           called the application does not call silc_packet_send_prepare
4625           because the library will call it automatically.  These
4626           interfaces now also return a reference to the outgoing buffer
4627           which includes the assembled packet, which the application can
4628           use to encrypt the packet.
4629
4630           Affected files are lib/silccore/silcpacket.[ch],
4631           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4632           silcd/packet_send.c, server_backup.c and packet_receive.c.
4633
4634         * Fixed a packet sending bug on very high load, where outgoing
4635           packet queue wasn't handled correctly and packets got corrupted.
4636           Affected files are lib/silcutil/*/silc*sockconn.c,
4637           lib/silcclient/client.c and silcd/server.c.
4638
4639 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4640
4641         * Added macro SILC_PACKET_DATALEN which can be used during
4642           packet assembling to check whether the data to be added to
4643           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4644           len is truncated until it fits it.
4645
4646           Added checks for maximum length of channel message payload and
4647           private message payload also.
4648
4649           Added checks for maximum packet length in server and in
4650           client library.
4651
4652           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4653           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4654           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4655           lib/silcclient/client_prvmsg.c.
4656
4657 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4658
4659         * Added silc_server_packet_queue_purge call to the
4660           silc_server_disconnect_remote to assure that all data in the
4661           queue before disconnecting is sent to the network.  Affected
4662           file silcd/server.c.
4663
4664 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4665
4666         * Added the deleting of server's own ID cache entry to the
4667           silc_server_free function.  Free also everything else that
4668           has been allocated in silc_server_init.  The affected file
4669           is silcd/server.c.
4670
4671 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4672
4673         * Added functions silc_parse_version_string, silc_version_to_num,
4674           and silc_ske_parse_version to parse SILC protocol style version
4675           strings.  Affected files lib/silcutil/silcutil.[ch] and
4676           lib/silcske/silcske.[ch].
4677
4678         * Added new configuration params: version_protocol, version_software
4679           and version_software_vendor to specify what version the remote
4680           host must at least be to be able to connect to server.  The vendor
4681           string can be regex matched too.  Added new function
4682           silc_server_connection_allowed to check maximum number of allowed
4683           connections, and allowed versions for incoming connections.
4684           Affected files are silcd/server.c, server_util.[ch] and
4685           serverconfig.[ch].
4686
4687 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4688
4689         * Added preliminary support for signals in scheduler.  The
4690           signals we care about are now blocked always when the scheduler
4691           is locked.  This way we can synchronise the use of signal with
4692           scheduler.  It is guaranteed that when signal occurs the scheduler
4693           is not locked, and thus new tasks can be safely added to the
4694           scheduler.
4695
4696           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4697           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4698           Added new platform specific routines
4699           silc_schedule_internal_signals_[un]block and
4700           silc_schedule_internal_signal_[un]register.
4701
4702           Added new functions to SILC Schedule API:
4703           silc_schedule_signal_[un]register.  Each signal that application
4704           is going to use should be registered to the scheduler.
4705
4706           Affected files are lib/silcutil/silcschedule.[ch],
4707           lib/silcutil/*/silc*schedule.c.
4708
4709 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4710
4711         * Check for unauthenticated client and server in the
4712           silc_server_new_client and silc_server_new_server functions.
4713           Affected file silcd/packet_receive.c.
4714
4715         * Added function silc_string_is_ascii to check whether given
4716           string is 7-bit ASCII string.  Affected files are
4717           lib/silcutil/silcutil.[ch].
4718
4719         * Added function silc_id_is_valid_server_id into the
4720           silcd/serverid.c and added checking for valid Server ID's in
4721           silc_server_new_server.  The Server ID must always be based
4722           on the server's public IP address.
4723
4724         * Added logging of DISCONNECT packet message in the server.
4725           Affected file silcd/server.c.
4726
4727 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4728
4729         * Changed all library interfaces that use Global RNG to also
4730           accept SilcRng as argument.  Affected files are
4731           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4732           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4733           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4734           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4735           lib/silccrypt/rsa.c.
4736
4737         * Added function silc_pkcs_generate_key to the
4738           lib/silccrypt/silcpkcs.[ch] for applications so that they
4739           don't need to do pkcs->pkcs->init calls anymore.
4740
4741         * Remove SilcSocketConnection from the SFTP API since it really
4742           wasn't needed there.  The application has the information
4743           saved in its contexts anyway and the SFTP layer doesn't need
4744           know about it.  Affected files lib/silcsft/silcsftp.h and
4745           lib/silcsftp/sftp_[server/client].c.
4746
4747         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
4748           The SilcSimContext is not SilcSim.
4749
4750         * Fixed possible buffer overflows in silc_id_render in the
4751           lib/silcutil/silcutil.c.
4752
4753         * On EPOC the global crypto module lists are not used at all
4754           in the crypto library.  Added support for using the constant
4755           algorithm list on EPOC.  Affected files are
4756           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
4757           silcpkcs.c.
4758
4759         * Fixed the handling of third parameter of KICKED notify, since
4760           it was mistakenly updated to SILC Protocol 1.0 even though it
4761           is to be included in 1.1.  Since it is not in 1.0 it is not
4762           mandatory, and this fix now handles it only if it is provided,
4763           and it is not error if it is not provided.  Affected file
4764           lib/silcclient/client_notify.c.
4765
4766 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4767
4768         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
4769           client.  Affected file irssi/src/silc/core/client_ops.c.
4770
4771         * Merged with Irssi 0.8.4 from irssi.org CVS.
4772
4773 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4774
4775         * Check for valid socket connection in client entries before
4776           sending any messages.  Fixes a crash, but doesn't fix some
4777           other underlaying bug that is lurking there.  Affected
4778           file silcd/packet_send.c.
4779
4780 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
4781
4782         * $usermode, $cumode and $cumode_space expandos shouldn't do
4783           anything with non-SILC server records. Affected file
4784           irssi/src/silc/core/silc-expandos.c
4785
4786 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4787
4788         * Fixed the silc_net_check_[host/local]_by_sock to support
4789           IPv6 bound sockets as well.  Now they can return IPv6 addresses
4790           as well.  Affected file lib/silcutil/silcnet.c.
4791
4792         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
4793           Affected lib/silcutil/unix/silcunixnet.c.
4794
4795         * Fixed ID rendering (at least on some platforms, not NetBSD)
4796           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
4797
4798 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4799
4800         * Added silc_hash_public_key and silc_hash_public_key_compare
4801           functions to be used with SilcHashTable.  They can be used to
4802           hash public keys and compare public keys in hash table.  Affected
4803           file lib/silcutil/silcutil.[ch].
4804
4805         * Added support for specifying multiple public keys for Client
4806           connection section in server configuration file.  This makes it
4807           possible to accept multiple public keys from same host, or to
4808           make a section that accepts any incoming host, and have the
4809           accepted public keys listed in the section.
4810
4811           Added functions silc_sever_[find/get]_public_key,  added the
4812           support for this actually to all connection sections but only
4813           the Client section is currently allowed to specify multiple
4814           public keys.
4815
4816           Affected files are silcd/server.c, server_internal.h,
4817           command.c, protocol.c, server_util.[ch], packet_receive.c.
4818
4819 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4820
4821         * Merged Irssi 0.8.2 from irssi.org CVS.
4822
4823 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4824
4825         * If silc_debug is TRUE, also output standard logging messages
4826           to stderr with the debug output.
4827
4828           Made silc_log_reset_all() flushing all channels before returning.
4829           Also fixed some documentation typos.
4830
4831           Affected files are lib/silcutil/silclog.[ch].
4832
4833 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4834
4835         * Fixed the server to check correctly the amount of connections
4836           from single host, by checking also the type of the connection.
4837           Fixed also the comparison of number of connections and number
4838           of allowed connections.  Affected files are silcd/server.c,
4839           server_util.[ch].
4840
4841 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4842
4843         * Fixed the USERS command reply to save the user's mode on the
4844           channel as well.  Fixed JOIN command reply to check whether a
4845           client is on channel already and not join it twice.  Affected
4846           file lib/silcclient/command_reply.c.
4847
4848         * Added new file silc-expandos.c into irssi/silc/core/ to return
4849           various stuff for various signal for the statusbar etc. updating.
4850           Now Irssi SILC client prints channel user modes etc. on the
4851           statusbar.
4852
4853         * The user mode (like server/router operator changes) is now shown
4854           on the Irssi SILC client's statusbar.  The affected files are
4855           irssi/src/silc/core/client_ops.c, silc-expandos.c.
4856
4857 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4858
4859         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
4860           to SILC_SCHEDULE_[UN]LOCK macros.
4861
4862         * Added more error printing to logs in server code.  Affected
4863           files silcd/server.c and silcd/protocol.c.
4864
4865         * Fixed -S option parsing in Irssi SILC Client.  Affected file
4866           irssi/src/silc/core/silc-core.c.
4867
4868         * Added silc_buffer_alloc_size function.  Affected file is
4869           lib/silcutil/silcbuffer.h.
4870
4871 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4872
4873         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
4874           constants.  Affected files in
4875           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
4876           silccipher.[ch].
4877
4878         * Changed the internal SFTP Memory FS table to const.  Affected
4879           file lib/silcsftp/sftp_fs_memory.c.
4880
4881 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4882
4883         * Fixed the buffer formatting and unformatting routines to
4884           check the size of 64 bits types with sizeof().  Affected
4885           file is lib/silcutil/silcbuffmt.c.
4886
4887 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4888
4889         * Removed 0.6.x backwards support.
4890
4891 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4892
4893         * Changed all integer type names:
4894           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
4895           to avoid collisions with other libraries using same type names
4896           as we did.
4897
4898 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4899
4900         * Added `prefer_ipv6' argument to the functions
4901           silc_net_gethostbyname[_async].  If it is TRUE it will return
4902           IPv6 address over IPv4.  If FALSE IPv4 address is returned
4903           even if IPv6 address was found.  Affected files
4904           lib/silcutil/silcnet.[ch].
4905
4906         * Added support silc_net_create_connection[_async] to fallback
4907           to IPv4 address if IPv6 address could not be used (like if
4908           it doesn't work on a specific system).  Affected file in
4909           lib/silcutil/unix/silcunixnet.c.
4910
4911 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4912
4913         * Added silc_schedule_reinit function to do the enlarging
4914           of the max tasks handling capabilities of the scheduler.
4915           Affected files lib/silcutil/silcschedule.[ch].
4916
4917 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4918
4919         * Added automatic extern "C" { ... } for C++ compilers so the
4920           application does not need to define them.  Affected file
4921           includes/silcincludes.h.
4922
4923         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
4924           old name went against naming convention.  Applications now
4925           include "silcclient.h" instead of "clientlibincludes.h".
4926           Removed includes/clientlibincludes.h, it is redundant now.
4927
4928         * Renamed includes/version.h to silcversion.h.
4929
4930         * Added really preliminary support for OS/2 into the util
4931           library.  Only thread & mutex API is implemented, others
4932           are still to be implemented.  Created the lib/silcutil/os2/
4933           directory.  Created also file includes/silcos2.h.
4934
4935 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4936
4937         * Added preliminary BeOS support into the util library.
4938           Created lib/silcutil/beos/, and implemented all the needed
4939           functions to support SILC on BeOS.  Created also file
4940           includes/silcbeos.h.
4941
4942 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
4943
4944         * Added proper initializations to silc's irssi code, so it's
4945           now possible to load it as module.  Affected files
4946           irssi/src/silc/core/silc-core.c,
4947           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
4948
4949 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4950
4951         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
4952           the SILC tree.
4953
4954         * Fixed the silcdoc document generator to correct generate
4955           docs from all kinds of filenames.  Affected files are
4956           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
4957
4958         * ROBOdoc documented lib/silcutil/silcmemory.h.
4959           Added also new function silc_memdup.
4960
4961         * Removed lib/silcutil/silcbufutil.h and moved those routines
4962           to the lib/silcutil/silcbuffer.h.
4963
4964 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4965
4966         * Added `user_count' to the SilcChannelEntry which now tells the
4967           number of users on the channel.  The user count is now saved
4968           in normal server of global channels as well.  Affected files
4969           silcd/server.c, idlist.h, packet_receive.c and command.c.
4970
4971         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
4972           include file utility functions.
4973
4974         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
4975           instead of calling directly OS routines.
4976
4977         * Fixed NICK change printing in Irssi SILC Client. Fixed
4978           KICKED notify printing in Irssi SILC Client.  Affected file
4979           irssi/src/silc/core/client_ops.c.
4980
4981         * Fixed a NICK change bug in client library, to not recreate the
4982           client_entry->channels hash table everytime nick is changed.
4983           Affected file lib/silcclient/client.c.
4984
4985 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4986
4987         * ROBOdoc documented the lib/silcske/silcske.h, and improved
4988           the SKE interface a bit.
4989
4990         * Fixed padding problem in PKCS#1. The padding was not actually
4991           random since the random number generator was used incorrectly.
4992           This security bug affects only when encrypting with PKCS#1, and
4993           it is not currently used at all in SILC. SILC only use signing
4994           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
4995
4996 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4997
4998         * Rewrote the notify handling in Irssi SILC client to not call
4999           the events as signals.  Fixes problems with Perl support.
5000           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5001
5002         * Send the auto-nicking NICK command in client library with
5003           little timeout after connecting.  The affected file is
5004           lib/silcclient/client.c.
5005
5006         * Added following new config file settings:
5007           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5008           key_exchange_timeout, conn_auth_timeout, connections_max,
5009           links_max.
5010
5011           Implemented all the new config settings handling in the server.
5012
5013           Optimized the use of SKE Mutual flag usage.  Use it only
5014           if connection authentication protocol is not based in public
5015           key authentication.
5016
5017           Renamed all SilcServerConfigSection* to SilcServerConfig*
5018           to have a bit shorter names.
5019
5020           Affected files silcd/serverconfig.[ch], server.[ch], and
5021           protocol.[ch].
5022
5023 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5024
5025         * Cleaned up the listening sockets code, preparing for the rehash
5026           support.  Affected file is silcd/server.c.
5027
5028         * Fixed some output messages.  Affected files are silcd/silcd.c,
5029           and silcd/server.c.
5030
5031 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5032
5033         * Create lib/doc/silcrng_intro.html document as introduction
5034           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5035
5036 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5037
5038         * Fixes to the silcd config template.  Affected file is
5039           doc/example_silcd.conf.in.
5040
5041         * Removed type casts from silc_calloc(), conforming to the
5042           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5043
5044         * Removed param_name member from client, server, and router
5045           section structs, now identifying the param directly.
5046
5047           Added CONFIG_FREE_AUTH macro in config file parsing.
5048
5049           Affected files are silcd/serverconfig.[ch].
5050
5051 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5052
5053         * Fixed command line parameter handling. All SILC initialization
5054           is now done in silc_core_init() which also fixes autoconnecting
5055           to servers.
5056
5057           Affected files irssi/src/silc/core/silc-core.c,
5058           irssi/src/fe-text/silc.c.
5059
5060 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5061
5062         * Added new configuration options and blocks:
5063           keepalive_secs, reconnect_count, reconnect_interval,
5064           reconnect_interval_max, reconnect_keep_trying and
5065           require_reverser_lookup.  Added ConnectionParam block, and
5066           implemented the connection parameters when connecting as
5067           initiator and when accepting connections as responder.
5068
5069           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5070           whether given configuration value has been given already.
5071
5072           Affected files silcd/serverconfig.[c], server.[c].
5073
5074         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5075           algorithm parts and created new file silcalgs.conf, that
5076           is now included from the example_silcd.conf.in.
5077
5078         * Optimized the silc_server_connect_to_router_second to take
5079           the connection configuration object from the SilcServerConnection
5080           object instead of finding it during the connecting phase.
5081           Added the configuration object to SilcServerConnection struct.
5082           Affected files silcd/server_internal.h, server.c.
5083
5084 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5085
5086         * Add the client on channel after it was resolved at the
5087           channel message receiving, and it was not already on the
5088           channel.  Affected file lib/silcclient/client_channel.c.
5089
5090 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5091
5092         * Fixed the public key authentication to allocate always the
5093           destination signature buffer instead of using static buffer.
5094           Affected file silcd/protocol.c.
5095
5096 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5097
5098         * Unified the serverconfig.[ch]'s helper function interface.
5099           Affected file silcd/serverconfig.[ch].
5100
5101         * Removed doc/example_silc.conf.in since it is redundant.
5102           The make install will now install irssi/silc.conf file.
5103
5104         * Added new Passphrase and Publickey authentication methods to
5105           config file, allowing both public key and passphrase based
5106           authentication to be set at the same time.
5107
5108           Added `prefer_passphrase_auth' setting in config file which
5109           can be used to set to prefer passwd auth if both passwd and
5110           public key is set.  If not set, public key is preferred.
5111           This has effect only when being initiator (responder will try
5112           both anyway).
5113
5114           Added support for authentication with passphrase and public key
5115           at the same time.  The passphrase is tried first always since
5116           it is faster to check.
5117
5118           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5119
5120 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5121
5122         * Merged the new SILC Config library, with the server parsing
5123           support.  Read the header file silcconfig.h or the toolkit
5124           documentation for the news.  Affected files are
5125           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5126           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5127           silcd/protocol.c silcd/server.c silcd/server_backup.c
5128           silcd/serverconfig.[ch] silcd/silcd.c.
5129
5130         * Fixed some silclog documentation.  Affected file is
5131           lib/silcutil/silclog.h.
5132
5133 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5134
5135         * The silc_cipher_register, silc_hash_register and
5136           silc_hmac_register now checks if the object to be registered
5137           is registered already.  Affected files are
5138           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5139
5140 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5141
5142         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5143
5144 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5145
5146         * Allow zero length channel messages inside the Channel Message
5147           Payload.  Affected file lib/silccore/silcchannel.c.
5148
5149         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5150           as header filenames.
5151
5152         * Removed lib/silcclient/README and created HTML file
5153           lib/silcclient/silcclient_using.html, which is now included
5154           as part of Toolkit documentation.
5155
5156 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5157
5158         * Fixed CUMODE_CHANGE notify handling to change the mode of
5159           correct client.  Affected file lib/silcclient/client_notify.c.
5160
5161         * Make silc_rng_alloc fail if it cannot allocate the sha1
5162           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5163
5164 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5165
5166         * Fixed the file transfer's key agreement payload to include
5167           zero port also if the hostname is NULL because it could not
5168           be bound.
5169
5170           Call file transfer monitor callback now also if error occurs
5171           during key agreement protocol.
5172
5173           Changed the silc_client_file_send interface to return the
5174           SilcClientFileError instead of session id.  The session ID
5175           is returned into pointer provided as argument.
5176
5177           Check that the file exists locally before sending the
5178           file transfer request at all.
5179
5180           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5181
5182         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5183           error than can occur while key agreement protocol.  Affected
5184           file lib/silcclient/silcapi.h.
5185
5186         * Fixed the event_mode CMODE handler to not crash when mode
5187           is changed and +k mode is set in the channel.  Affected file
5188           irssi/src/silc/core/silc-channels.c.
5189
5190         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5191           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5192           file lib/silcutil/silclog.c.
5193
5194         * Fixed the channel message payload decryption in the function
5195           silc_channel_message_payload_decrypt to not modify the original
5196           buffer before it is verified that the message decrypted
5197           correctly.  Otherwise, next time it is called with correct
5198           channel key it won't encrypt since the payload is corrupted.
5199           Affected file lib/silccore/silcchannel.c.
5200
5201 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5202
5203         * Do not constantly resize the window.  A fix patch by cras.
5204           Affected file irssi/src/fe-text/screen.c.
5205
5206 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5207
5208         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5209           Affected file lib/silcutil/silcnet.c.
5210
5211 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5212
5213         * Fixed a bug in hash table internal routine for traversing
5214           the table with foreach callback.  The current entry may
5215           become invalid in the callback but it was referenced after
5216           the callback returned.
5217
5218           Do not allow auto rehashing of hash table during the
5219           silc_hash_table_foreach operation, for same reasons as it is
5220           not allowed for SilcHashTableList.  Affected files are
5221           lib/silcutil/silchashtable.[ch].
5222
5223 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5224
5225         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5226           Win32 DLL.  extern's in header files are now declared with
5227           DLLAPI.
5228
5229 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5230
5231         * Fixed private message handling.  It used some old code that
5232           caused the client to crash.  Affecte file is
5233           lib/silcclient/client_prvmsg.c.
5234
5235 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5236
5237         * Added function silc_client_add_channel,
5238           silc_client_replace_channel_id, and removed functions
5239           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5240           from client library.
5241
5242         * Added cross reference of the joined channels to the
5243           SilcClientEntry, and changed the SilcChannelEntry's
5244           users list to SilcHashTable.  The affected files are
5245           lib/silcclient/idlist.[ch].
5246
5247         * Fixed a bug in hash table tarversing.  While the hash table
5248           is traversed with SilcHashTableList the table must not be
5249           rehashed.  It is now guaranteed that auto rehashable tables
5250           are not rehashed while tarversing the list.  Also defined that
5251           silc_hash_table_rehash must not be called while tarversing
5252           the table.  Added function silc_hash_table_list_reset that must
5253           be called after the tarversing is over.  The affected files are
5254           lib/silcutil/silchashtable.[ch].
5255
5256         * Changed all hash table traversing to call the new
5257           silc_hash_table_list_reset in server and in client library.
5258
5259         * Added function silc_client_on_channel to return the
5260           SilcChannelUser entry if the specified client entry is joined
5261           on the specified channel.  This is exported to application as
5262           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5263
5264 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5265
5266         * Fixed founder regaining problem with JOIN command on normal
5267           server.  The notify for mode change must be sent always and
5268           not only if !cmd->pending.  Affected file silcd/command.c.
5269
5270         * Fixed the WHOWAS command's reply sending to support the
5271           lists correctly.  Affected file silcd/command.c.
5272
5273 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5274
5275         * When sending JOIN command to router for processing the
5276           sender's old command identifier was not saved back to the
5277           sender's command context, fixed now.  The affected file is
5278           silcd/command.c.
5279
5280         * Create the key in JOIN command of the router did not return
5281           the channel key, added check for this.  Affected file is
5282           silcd/command.c.
5283
5284         * Fixed a channel ID update bug in JOIN command reply.  Do
5285           not directly upgrade the ID but call the function
5286           silc_idlist_replace_channel_id if the ID was changed.
5287           Affected file silcd/command_reply.c.
5288
5289         * Fixed memory leaks from command calling if it would fail.
5290           Affected file silcd/command.c.
5291
5292 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5293
5294         * Applied patches from cras:
5295
5296           Memory leak fixes around libaries, irssi window resize fix,
5297           new silclist.h and silcdlist.h, all extern inline changed to
5298           static inline.
5299
5300         * Removed dotconf from lib/dotconf, not needed anymore.
5301
5302         * Removed TRQ from lib/trq, not needed anymore.
5303
5304         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
5305           with server connections.  Later this will be configurable
5306           in config file after new config file is done.  Affected file
5307           silcd/server.c.
5308
5309 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5310
5311         * Fixed a crash in server related to channel announcements.
5312           Affected file silcd/server.c.
5313
5314 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5315
5316         * Fixed memory leaks in silc_server_create_new_channel*
5317           functions.  Affected file silcd/server.c.
5318
5319         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
5320           which ID was changed.  This way the router will send the
5321           user list for the channel again, and server won't be in
5322           desync in some rare circumstances.  Affected file is
5323           silcd/packet_receive.c.
5324
5325 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5326
5327         * Check for NULL socket pointer in the function
5328           silc_server_packet_send_to_channel_real.  Affected file
5329           silcd/packet_send.c.
5330
5331         * Fixed the BAN notify handling to correctly remove ban
5332           list.  Affected file silcd/packet_receive.c.
5333
5334 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5335
5336         * Fixed some header addition to Toolkit distribution in
5337           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
5338
5339         * Added lib/silcclient/client_ops_example.h as an template
5340           file for application programmers to quickly start using
5341           the SilcClientOperation functions in their application.
5342           Updated the lib/silcclient/README as well to tell about this
5343           nice file made available.
5344
5345 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5346
5347         * Call silc_server_remove_from_channels when removing client
5348           entry when NO_SUCH_CLIENT_ID was received.  Affected file
5349           is silcd/command_reply.c.
5350
5351 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5352
5353         * Added server & router operator statistics updating.  Affected
5354           file silcd/packet_receive.c and silcd/command.c.
5355
5356         * Fixed the SERVER_SIGNOFF notify handling on normal server
5357           not to save the history information for clients.  Same was
5358           fixed earlier in remove_clients_by_server function, but not
5359           here.  Affected file silcd/packet_receive.c.
5360
5361         * Raised the default connection-retry count from 4 to 7 in
5362           server.  Affected file silcd/server.h.
5363
5364         * Cancel any possible reconnect timeouts when we start the
5365           key exchange.  Affected file silcd/server.c.
5366
5367         * Do not reconnect on connection failure when SCONNECT was
5368           given.  Affected files silcd/server.[ch].
5369
5370 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5371
5372         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
5373
5374         * Fixed the NICK command to always give the unformatted
5375           nickname to the one giving the NICK command.  If unformatted
5376           nickname is cached already it will be formatted and the
5377           local entry will always get the unformatted nickname.
5378           Affected file lib/silcclient/idlist.c.
5379
5380         * Fixed some double frees from client library commands.
5381           Affected file is lib/silcclient/command.c.
5382
5383         * Fixed CUMODE command in server to assure that no one can
5384           change founder's mode than the founder itself, there was a
5385           little bug.  Affected file silcd/command.c.
5386
5387 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5388
5389         * Removed the SilcClientCommandDestructor from the client
5390           libary, it is not needed anymore.  Affected files are
5391           lib/silcclient/silcapi.h, command[_reply].[ch],
5392           client_notify, idlist.c.
5393
5394         * Fixed GETKEY command to first resolve client, and then
5395           resolve the server only if the client was not found, instead
5396           of resolving both at the same time.  Affected file is
5397           lib/silcclient/command.c.
5398
5399         * Added silc_client_start_key_exchange_cb and lookup the
5400           remote hostname and IP address before starting the key
5401           exchange with server.  The affected file is
5402           lib/silcclient/client.c.
5403
5404         * The server's public key is now saved using the IP address
5405           of the server and not the servername for the filename.
5406           The hostname public key filename is checked as an fall back
5407           method if the IP address based filename is not found.
5408
5409           Fixed the GETKEY command to save the fetched server key
5410           in correct filename.
5411
5412           Print the remote server's hostname now when new key is
5413           received during connection process.  Affected file is
5414           irssi/src/silc/core/client_ops.c.
5415
5416         * Return always our own public key to the client if it asks
5417           for it with GETKEY command.  Affected file silcd/command.c.
5418
5419         * Removed the use_auto_addr variable from default config
5420           file since it was in wrong section.  Affected file is
5421           irssi/src/config.
5422
5423         * Fixed TOPIC_CHANGE notification to not route it when it
5424           was sent using silc_server_send_notify_to_channel function.
5425           Affected file silcd/command.c.
5426
5427         * Fixed silc_server_send_notify_kicked to send the kicker's
5428           Client ID also, it was missing.  Affected files are
5429           silcd/command.c, silcd/packet_send.[ch].
5430
5431 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5432
5433         * Do not save client history information in SERVER_SIGNOFF.
5434           Fixes the bug in normal server that it does not detect
5435           the client becoming valid after the server becomes back
5436           online.  Affected file silcd/server_util.c.
5437
5438         * Added `sock_error' field  into the SilcSocketConnection
5439           context.  When error occurs during socket operation (read
5440           or write) the error is saved.  Added also new function
5441           silc_socket_get_error to return human readable socket error
5442           message.  Affected files are lib/silcutil/silcsockconn.[ch],
5443           lib/silcutil/unix/silcunixsockconn.c, and
5444           lib/silcutil/win32/silcwin32sockconn.c.
5445
5446         * The server now prints the socket error message in the
5447           signoff for client.  Affected file silcd/server.c.
5448
5449         * Fixed the `created' channel information sending from router
5450           to server in JOIN command.  Checks now whether the channel
5451           really was created or not and set it according that.
5452
5453           Fixed the JOIN command to use the client entry's current
5454           ID during the joining procedure instead of the one it sent
5455           in the command (it is checked though), since it can change
5456           between the packet processing and command processing, and
5457           would just case unnecessary pain in the client end.  Affected
5458           file silcd/command.c.
5459
5460         * Fixed a channel key payload sending to use correct channel
5461           ID when the server was forced to change the channel's ID by
5462           router.  Router sent the key payload with the old Channel ID.
5463           Affected file silcd/packet_receive.c.
5464
5465 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5466
5467         * Call silc_server_save_channel_key only if the key payload
5468           was provided in the JOIN command's command reply.  Affected
5469           file silcd/command_reply.c.
5470
5471 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5472
5473         * Fixed silc_mp_sizeinbase to return the value correctly with
5474           MPI.  Affected file lib/silcmath/mp_mpi.c.
5475
5476         * Fixed the stop_server signal to correctly stop the scheduler
5477           and gracefully stop the server when SIGTERM or SIGINT signals
5478           are received.  Affected file silcd/silcd.c.
5479
5480 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5481
5482         * Simple handling of TERM and HUP signals. Also added some log
5483           flushing call around.  Affected file is
5484           silcd/silcd.c.
5485
5486         * Fixed small bugs in silclog.c. Now buffering output will take
5487           effect after 10 seconds since startup: This will ensure that
5488           no important startup messages are lost. Also output redirection
5489           will preserve original format ([Date] [Type] message).
5490           Affected file is lib/silcutil/silclog.c.
5491
5492         * Added two options to the config file, in the logging section:
5493           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
5494           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
5495
5496 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5497
5498         * Do not print the warning about log files not being initialized
5499           more than once to avoid excess logging.  Affected file is
5500           lib/silcutil/silclog.c.
5501
5502         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5503           the SIM copying in make install in Makefile.am.pre.
5504
5505 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5506
5507         * Rewritten silclog APIs. Globally interesting changes follows:
5508           silc_log_set_files() changed to silc_log_set_file().
5509           silc_log_set_callbacks() changed to silc_log_set_callback().
5510           ROBOdoc documented silclog header file.
5511           SilcLogCb now returns bool to wether inihibit the default
5512           handler or not (to keep the old behaviour return always TRUE).
5513           The new APIs should also fix the problem of the
5514           silcd_error.log file that was written in the current directory.
5515
5516           New features:
5517           Log files streams will remain opened after silc_log_set_file()
5518           call, means less CPU usage notably on high traffic servers.
5519           File streams are now full buffered, and flushed to the disk
5520           every 5 minutes, lesses HD activity and CPU usage.
5521           Messages can be redirected, allowing admins to configure
5522           one single logfile for all server messages.
5523           the silc_log_quick global variable to activate fast-logging.
5524           Affected files lib/silcutil/silclog.[ch]
5525
5526         * Changed some code to conform new silclog APIs. Affected
5527           files are doc/example_silcd.conf.in, silcd/server.c
5528           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5529           silcd/silcd.c.
5530
5531         * Fixed a memory leak that could occur in some situations.
5532           Affected file silcd/serverconfig.c.
5533
5534 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5535
5536         * Added the silc_client_del_client to remove the client from
5537           all channels as well.  Affected file lib/silcclient/idlist.c.
5538
5539         * Fixed the client library to correctly remove the client
5540           from all channels when the client entry is being destroyed.
5541           Affected file lib/silcclient/client_notify.c, command.c.
5542
5543         * Added auto-nicking support to the client library.  If the
5544           applicatio now sets client->nickname it will be sent to the
5545           server after connecting by the library.  This way for example
5546           SILCNICK (or IRCNICK) environment variables will have effect
5547           and always change the nickname automatically to whatever
5548           it is wanted.  Affected file lib/silcclient/client.[ch].
5549
5550         * Renamed silc_server_command_bad_chars to the
5551           silc_server_name_bad_chars and moved it to the
5552           silcd/server_util.[ch].  Added also new function
5553           silc_server_name_modify_bad to return nickname that
5554           includes bad characters as new nickname without those
5555           bad characters.  This check and modify is now used in
5556           silc_server_new_client when the username is initially set
5557           as nickname, so it must be checked to be valid nickname.
5558           Affected file silcd/packet_receive.c.
5559
5560         * The nickname length is now taken from the packet for real
5561           and not trusted to strlen() since it clearly can return
5562           wrong length for nickname including bad characters.  This
5563           also applies to channel names.  Affected file silcd/command.c.
5564
5565         * Removed the lib/silcsilm/modules directory.  Modules are now
5566           compiled into the lib/silcsim.  Fixed the copying of the
5567           modules to follow symbolic links in Makefile.am.pre.
5568
5569 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5570
5571         * Fixed silc_string_regexify list creation.  Fixes bugs with
5572           BAN and INVITE commands in server.  The affected file is
5573           lib/silcutil/unix/silcunixutil.c.
5574
5575 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5576
5577         * Removed the command destructor entirely from the server's
5578           command and command reply routines.  It is not needed, and
5579           its usage was buggy and caused crashes.  Affected files are
5580           silcd/command[_reply].[ch].
5581
5582 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5583
5584         * Cancel protocol and NULL sock->protocol if timeout
5585           occurred during protocol.  Affected file silcd/server.c.
5586
5587         * Cancel protocol timeouts always before calling the final
5588           callback, to assure that after final callback is called
5589           no other state will be called for the protocol anymore.
5590           Affected file silcd/protocol.c.
5591
5592         * Print error log if incoming connection configuration could
5593           not be found.  Affected file silcd/server.c.
5594
5595         * Fixed JOIN command to correctly save the founder mode
5596           to the client on normal SILC server, when the channel
5597           was created by the router.  Affected file silcd/command.c.
5598
5599         * Fixed LIST command (hopefully) to send correct reply
5600           packets.  Affected file silcd/command.c.
5601
5602 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5603
5604         * The silc_packet_receive_process now returns FALSE if the
5605           read data was invalid packet, and TRUE if it was ok.
5606
5607           The server now checks that if unauthenticated connection
5608           sends data and its processing fails the server will close
5609           the connection since it could be a malicious flooder.
5610
5611           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5612
5613 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5614
5615         * Make sure the warning about error opening a log file is
5616           printed only once and not everytime it fails (produces
5617           too much useless log).  Affected file lib/silcutil/silclog.c.
5618
5619 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5620
5621         * Made the silc_server_daemonise() function more readable.
5622           Affected file silcd/server.c.
5623
5624         * Pid file is now optional, the user may comment it out from
5625           the config file. Removed define SILC_SERVER_PID_FILE, we
5626           don't need a default any longer.  Affected file
5627           configure.in.pre, lib/Makefile.am.pre.
5628
5629         * Make some use of the pid file. The server now dies at startup
5630           if it detects a valid pid file on his path. The server would
5631           die anyway in this circumstance, because of the bind() failure.
5632           Affected file silcd/silcd.c.
5633
5634         * No longer compiling lib/dotconf.
5635
5636 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5637
5638         * Fixed JOIN command parsing not to crash.  Affected file
5639           lib/silcclient/command.c.
5640
5641         * Fied the NICK_CHANGE notify to add the new client entry
5642           even it is resolved.  This removes an <[unknown]> nick
5643           thingy bug in the client.  Affected file is
5644           lib/silcclient/client_notify.c.
5645
5646         * Do not try to allocate 0 bytes (efence does not like it)
5647           in lib/silccore/silccomand.c when encoding payload.
5648
5649         * Do not take IRCNICK as nickname in Irssi SILC client since
5650           it is not possible to set nickname before hand connecting
5651           the server (TODO has an entry about adding auto-nicking
5652           support).
5653
5654         * Changed the silc_server_command_pending to check whether
5655           there already exists an pending entry with the specified
5656           command, command identifier and pending callback.  This is
5657           to fix IDENTIFY and WHOIS related crashes that may register
5658           multiple pending commands with same identifier.  Affected
5659           file silcd/command.c.
5660
5661         * Fixed the server to reconnect to the router even if it
5662           was already reconnecting and EOF was received.  This to
5663           fix a possibility that the server wouldn't ever try to
5664           auto-reconnect to the router.  Affected file silcd/server.c.
5665
5666 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5667
5668         * Fixed the server's password authentication to use the
5669           length of the locally saved password, and not the one
5670           sent in the packet.  Affected file silcd/protocol.c.
5671
5672         * Fixed same password authentication problem in the
5673           Authentication Payload handling routines in
5674           lib/silccore/silcauth.c.
5675
5676         * Yet another password authentication problem fixed with
5677           channel password handling in silcd/command.c.
5678
5679 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5680
5681         * If first character of string in silc_parse_userfqdn is '@'
5682           then do not parse it.  Affected file is
5683           lib/silcutil/silcutil.c.
5684
5685 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5686
5687         * Fixed minor bug in IDENTIFY command reply sending, which
5688           caused various weird problems during JOIN when it was
5689           resolving names for users.  Affected file silcd/command.c.
5690
5691 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5692
5693         * Fixed the IDENTIFY command reply sending to chech better valid
5694           clients.  It was possible to send incomplete list of replies.
5695           Affected file silcd/command.c.
5696
5697 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5698
5699         * Added silc_client_command[s]_[un]register functions now to
5700           dynamically register the commands in client library.  Removed
5701           the static table of commands.  This allows the client library
5702           to call commands without causing the application to know about
5703           what commands library has called.
5704
5705           Removed the INFO command reply kludge to detect when the command
5706           was called by library.  Now library use its own command reply
5707           function for INFO command.
5708
5709           Added function silc_client_command_call to call a command.
5710           Application can use it to call command, not access the structure
5711           directly.
5712
5713           Now all commands that are sent by the client library (not
5714           explicitly sent by application) use own command reply functions.
5715
5716           Affected files around lib/silcclient/ and in
5717           irssi/src/silc/core/.
5718
5719         * Fixed the WHOIS command reply sending to chech better valid
5720           clients.  It was possible to send incomplete list of replies.
5721
5722           Fixed the WHOIS and IDENTIFY to send the request to router
5723           if normal server did not do it and did not find any results.
5724
5725           Affected file silcd/command.c.
5726
5727 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5728
5729         * Moved the internal data from SilcClient context into its
5730           own file, not accesible to application.  Affected files
5731           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5732           and other files in client library.
5733
5734 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5735
5736         * Added doc/examples installation target in Makefile.am.pre.
5737           A patch by salo.
5738
5739 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5740
5741         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
5742           commands the found client entry will be removed from the
5743           cache, after notifying application about the error.  Affected
5744           file lib/silcclient/command_reply.c.
5745
5746         * Changed the /MSG to check for exact nickname user gave, and
5747           not let `nick' match `nick@host' if it is only one found.  Now,
5748           user must type the exact nickname (like nick@host2) even if
5749           there are no more than one same nicks found.  This is to avoid
5750           a possibility of sending nickname to wrong nickname since
5751           `nick' could match `nick@host'.  Affected file is
5752           irssi/src/core/silc-servers.c.
5753
5754 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5755
5756         * Do not print "you are now server operator" or similar when
5757           giving /away command.  Affected files are
5758           irssi/src/silc/core/client_ops.c, silc-servers.h.
5759
5760         * Made the silc_server_command_pending_error_check to send
5761           the same command reply payload it received back to the
5762           original sender of the command.  This way all arguments
5763           that was received by the server will be received by the
5764           client too.  Affected file silcd/command.c.
5765
5766         * Added the silc_idcache_add to return the created cache entry
5767           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
5768
5769         * Add global clients to expire if they are not on any channel.
5770           This is because normal server will never know if they signoff
5771           if they are not on any channel.  The cache expiry will take
5772           case of these entries.  This is done by normal servers only.
5773           The affected files are silcd/command_reply.c,
5774           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
5775
5776         * If server receives invalid ID notification for WHOIS or
5777           IDENTIFY and the ID exists in the lists, it is removed.
5778           Affected file silcd/command_reply.c.
5779
5780         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
5781           in client then client entry that it matches is searched and
5782           the nickname is printed on the screen for user.  Affected
5783           file irssi/src/silc/core/client_ops.c.
5784
5785 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5786
5787         * Use cache entry expire time in the LIST command reply to
5788           purge old entries from the cache after the LIST command
5789           reply has been received.  This way we don't have non-existent
5790           entries in the cache for too long.  Affected file is
5791           silcd/command_reply.c.
5792
5793 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5794
5795         * If we are normal server, and we've not resolved client info
5796           in WHOIS or IDENTIFY from router, and it is global client,
5797           we'll check whether it is on some channel.  If it is not
5798           then we cannot be sure about its validity and will resolve it
5799           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
5800           file silcd/command.c.
5801
5802         * Search channel by name (if possible) rather than by ID
5803           in IDENTIFY command's command reply.  Affected file is
5804           silcd/command_reply.c.
5805
5806 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5807
5808         * Distribute to the channel passphrase in CMODE_CHANGE notify.
5809           Updated specs and implemented it.  Affected file silcd/command.c,
5810           silcd/packet_send.c and silcd/packet_receive.c.
5811
5812         * Implemented the <founder auth> payload handling in the JOIN
5813           command.  If provided all conditions for channel joining
5814           except requirement to provide correct passphrase can be
5815           overrided by the channel founder.  Updated the protocol specs.
5816           Affected file silcd/command.c.
5817
5818           Added support for founder auth in JOIN command in client
5819           library.  Fixed the parsing of the JOIN command now to support
5820           all options as they should be.  The affected file is
5821           lib/silcclient/command.c.
5822
5823         * Optimized the WHOIS and IDENTIFY commands to send the request
5824           to router only if it includes nicknames or other names.  If
5825           they include only IDs then check the local cache first before
5826           routing.  Affected file is silcd/command.c.
5827
5828         * Added channels topic announcements.  Affected file is
5829           silcd/packet_receive.c and silcd/server.c.
5830
5831         * Fixed the silc_server_send_notify_topic_set to really destine
5832           the packet to channel.  Affected file silcd/packet_send.c.
5833
5834         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
5835           library.  Affected file lib/silcclient/client_notify.c.
5836
5837         * Added UMODE announcements.  Affected file silcd/server.c.
5838
5839 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5840
5841         * Memory leak fixes in:
5842
5843           lib/silcutil/silcsockconn.c
5844           lib/silcske/silcske.c
5845           lib/silcske/groups.c
5846           lib/silccrypt/rsa.c
5847           lib/silccrypt/silcpkcs.c
5848           lib/silccore/silccommand.c
5849           lib/silccore/silcidcache.c
5850           silcd/idlist.c
5851           silcd/packet_send.c
5852           silcd/command.c
5853
5854         * ROBOdoc documented the lib/silcske/groups.h file and a
5855           bit changed the interface for better.
5856
5857 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5858
5859         * Update the client entry context in the ID cache after
5860           nick change.  Affected file lib/silcclient/command.c.
5861           Fixes the CUMODE command when regaining founder privileges,
5862           and a little WHOIS problem.
5863
5864         * Fixed silc_net_gethostbyname to correctly call the
5865           inet_ntop.  Affected file lib/silcutil/silcnet.c.
5866
5867 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5868
5869         * Added IPv6 support checking to the configure.in.pre, added
5870           also --enable-ipv6 option to override the check.  Affected
5871           file configure.in.pre.
5872
5873         * The silc_thread_create now calls the start function
5874           directly if threads support is not compiled in.  Removes
5875           ugly #ifdef's from generic code.  Affected files are
5876           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
5877
5878         * Added silc_net_gethostby[name/addr]_async to asynchronously
5879           resolve.  Affected files are lib/silcutil/silcnet.[ch].
5880
5881         * Added support for rendering IPv6 based server, client and
5882           channel IDs.  Affected file lib/silcutil/silcutil.c.
5883
5884         * Added support for creating IPv6 based server IDs.  Affected
5885           file is silcd/serverid.c.
5886
5887 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5888
5889         * Added silc_net_gethostby[addr/name] into the
5890           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
5891           routines.  Added silc_net_is_ip[4/6].  Affected file is
5892           lib/silcutil/unix/silcunixnet.c.  All routines that take
5893           address as argument now supports both IPv4 and IPv6 addresses.
5894
5895 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5896
5897         * Fixed LIST command reply sending in server.  Affected file
5898           silcd/command.c.
5899
5900         * Server now sends the kicker's client ID in the KICK notify
5901           to the kicked client.  Affected file silcd/command.c.
5902
5903         * The client library now parses the kickers client ID and
5904           UI displays it.  Affected files lib/silcclient/client_notify.c
5905           and irssi/src/silc/core/silc-channels.c, module-formats.c.
5906
5907         * Made all payload parsing function prototypes consistent.
5908           They all take now const unsigned char * and uint32 pair as
5909           the payload data instead of SilcBuffer.  Changes all around
5910           the source tree.  Other unsigned char* -> const unsigned char*
5911           changes around the tree as well.
5912
5913         * Optimized SFTP client and server packet sending not to
5914           allocate new buffer for each packet but to recycle the
5915           first allocated buffer.  Affected files are
5916           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
5917
5918         * Optimized the SFTP client to use SilcList instead of
5919           SilcDList for requests, because it is faster.  Affected file
5920           is lib/silcsftp/sftp_client.c.
5921
5922         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
5923           into lib/silccore/silcid.[ch].
5924
5925           Renamed silcpayload.[ch] into silcargument.[ch].
5926
5927 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5928
5929         * If client entry is deleted with active key agreement
5930           session, abort the session.
5931
5932           The silc_client_abort_key_agreement now calls the completion
5933           callback with new SILC_KEY_AGREEMENT_ABORTED status.
5934
5935           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
5936           idlist.c.
5937
5938 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5939
5940         * Don't use __restrict in older GCC's.  Affected file is
5941           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
5942
5943         * silc_net_localhost now attempts to reverse lookup the
5944           IP/hostname.  Affected file lib/silcutil/silcnet.c.
5945
5946         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
5947           command.  It can be used to gain founder privileges at
5948           the same time when joining the channel.
5949
5950           Defined that the SILC_NOTIFY_TYPE_KICKED send the
5951           kicker's client ID as well.  Updated protocol specs.
5952
5953           Defined that the server must send SILC_COMMAND_IDENTIFY
5954           command reply with error status to client who sent
5955           private message with invalid client ID.
5956
5957           Updated the protocol specification.
5958
5959         * Added silc_server_send_command_reply to send any
5960           command reply.  Affected file silcd/packet_send.[ch].
5961
5962         * Added silc_id_payload_encode_data to encode ID payload
5963           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
5964
5965         * The server now send IDENTIFY command reply with error
5966           status if client ID in private message is invalid.  Affected
5967           file silcd/packet_receive.c.
5968
5969         * Save the server key file with server's IP address in
5970           the filename instead of hostname.  The affected file is
5971           irssi/src/silc/core/client_ops.c.
5972
5973 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5974
5975         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
5976           A patch by Sunfall.
5977
5978         * Added libtool support for compiling shared objects in
5979           lib/silcsim.  Affected file configure.in.pre and
5980           lib/silcsim/Makefile.am.  Original patch by cras.
5981
5982 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5983
5984         * Pid file configuration, and server's config file fixes
5985           patch by toma.  Updated CREDITS file.
5986
5987 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5988
5989         * Fixed silc_client_channel_message to not try to decrypt
5990           the message twice if it resolved the destination client
5991           information.  This could cause of dropping one channel
5992           message.  Affected file lib/silcclient/client_channel.c.
5993
5994 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5995
5996         * Added silc_client_run_one into lib/silcclient/silcapi.h and
5997           lib/silcclient/client.c. This function is used when the SILC
5998           Client is run under some other scheduler, or event loop or
5999           main loop.  On GUI applications, for example this may be
6000           desired to used to run the client under the GUI application's
6001           main loop.  Typically the GUI application would register an
6002           idle task that calls this function multiple times in a second
6003           to quickly process the SILC specific data.
6004
6005 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6006
6007         * Fixed silc_server_drop() for dropping the supplementary
6008           groups as well, this could cause a security hole on some
6009           systems.
6010
6011 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6012
6013         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6014           johnny.
6015
6016         * Write PID file after dropping privileges.  Added -F option
6017           to run server on foreground.  A patch by debolaz.
6018           Affected files silcd/server.c, silcd/silcd.c.
6019
6020         * Fixed MOTD to return the MOTD file server name.  Affected
6021           file silcd/command.c.
6022
6023         * Added INFO command reply handling to the Irssi SILC Client.
6024           Affected file irssi/src/silc/core/client_ops.c.
6025
6026 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6027
6028         * Fixed the silc_idcache_list_* routines to really support
6029           the dynamic list.  Fixes a crash.  Affected file is
6030           lib/silccore/silcidcache.c.
6031
6032         * Fixed the LIST command reply to really call LIST command's
6033           pending callbacks.  Affected file silcd/command_reply.c.
6034
6035 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6036
6037         * Update conn->local_entry->nickname after giving NICK
6038           command.  Affected file lib/silcclient/command.c.
6039
6040 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6041
6042         * Added the [pid] option to the silcd configuration file
6043
6044           Affected files: serverconfig.[ch] and silcd.c
6045
6046 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6047
6048         * Save fingerprint in WHOIS command reply in server.
6049           Affected file silcd/command_reply.c.
6050
6051         * Fixed NICK commands pending callback registration.
6052           Affected file lib/silcclient/command.c.
6053
6054 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6055
6056         * Use ++server->cmd_ident when sending commands in server,
6057           instead of random number.  Affected file silcd/command.c.
6058
6059         * Fixed GETKEY command reply to call actually GETKEY pending
6060           command callbacks.  Affected file silcd/command_reply.c.
6061
6062         * A bit stricter check for nicknames.  Check for same nickname
6063           in NICK command also.  Affected file silcd/command.c.
6064
6065         * Do not call INFO command everytime client ID changes, only
6066           during first connecting.  Affected file lib/silcclient/client.c.
6067
6068         * Set the new nickname only after successful command reply for
6069           NICK command is returned by server.  Affected file
6070           lib/silcclient/command.c.
6071
6072         * Remove nicknames from nicklist during server_signoff notify.
6073           Should fix /NAMES bit more.  The affected file is
6074           irssi/src/silc/core/silc-channels.c.
6075
6076         * Added `fingerprint' field to the SilcIDListData in the
6077           silcd/idlist.h to hold the fingerprint of the client's
6078           public key.
6079
6080           Send the fingerprint of the client's public key in WHOIS
6081           command reply.
6082
6083           Affected files silcd/command.c, and silcd/idlist.[ch].
6084
6085         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6086           create fingerprint from given data.
6087
6088         * Show the fingerprint of the client's public key in WHOIS.
6089           Affected files irssi/src/module-formats.[ch] and
6090           irssi/src/silc/core/client_ops.c.
6091
6092         * Format the multiple same nicknames also during JOIN and
6093           NICK_CHANGE notifys.  Affected file is
6094           lib/silcclient/client_notify.c.
6095
6096         * Do not print error on screen for invalid private message
6097           payload since it can come if someone is sending private
6098           messages with wrong key.  Affected file
6099           lib/silccore/silcprivate.c.
6100
6101         * Fixed multiple concurrent /PING crash.  Affected file
6102           lib/silcclient/command.c.
6103
6104         * Changed the wrong ID encoding.  All IP addresses must be
6105           in MSB first order in encoded format.  They were encoded
6106           wrong and was in LSB format.  Affected files are
6107           silcd/serverid.c, lib/silcutil/silcutil.c.
6108
6109         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6110
6111         * Call the `connect' client operation through the scheduler
6112           in case of error.  Affected file lib/silcclient/client.c.
6113
6114         * Call the `failure' client operation even if the error
6115           occurred locally during a protocol.  Affected file is
6116           lib/silcclient/protocol.c.
6117
6118         * Added support of sending LIST command to router from normal
6119           server.  This way normal server can get list of all channels
6120           in the network too.  Fixed the channel list sending in the
6121           server too.  Affected files are silcd/command.c, and
6122           silcd/command_reply.[ch].
6123
6124         * Added silc_server_update_channels_by_server and
6125           silc_server_remove_channels_by_server.  They are used during
6126           disconnection of primary router and in backup router protocol.
6127           Affected file silcd/server_util.[ch], silcd/server.c and
6128           silcd/server_backup.c.
6129
6130         * Fixed channel adding to global list in IDENTIFY command
6131           reply in server.  Affected file silcd/command_reply.c.
6132
6133 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6134
6135         * If the incoming packet type is REKEY or REKEY_DONE process
6136           that packet always synchronously.  Fixes yet another MAC
6137           failed error on slow (dialup) connections.  Affected file
6138           lib/silcclient/client.c and silcd/server.c.
6139
6140 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6141
6142         * Call check_version SKE callback for initiator too.  Affected
6143           file lib/silcske/silcske.c.
6144
6145         * Implemented fix for security hole found in the SKE that was
6146           fixed in the specification few days back; the initiator's
6147           public key is now added to the HASH value computation.
6148           Added backwards support for the old way of doing it too, for
6149           old clients and old servers.  Affected file is
6150           lib/silcske/silcske.c.
6151
6152         * Enabled mutual authentication by default in SKE.  If initiator
6153           is not providing mutual authentication the responder will
6154           force it.  This will provide the proof of posession of the
6155           private key for responder.  The affected files are
6156           lib/silcclient/protocol.c and silcd/protocol.c.
6157
6158         * Do not cache anymore the server's public key during SKE.
6159           We do mutual authentication so the proof of posession of
6160           private key is done, and if the server is authenticated in
6161           conn auth protocol with public key we must have the public
6162           key already.  Affected file silcd/protocol.c.
6163
6164         * Added new global debug variable: silc_debug_hexdump.  If
6165           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6166           file lib/silcutil/silclog.[ch].
6167
6168         * Fixed compilation warning due to char * -> const char *.
6169           Affected files lib/silcutil/silcnet.h, and
6170           lib/silccore/silcauth.[ch].
6171
6172 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6173
6174         * Fixed CMODE command when new channel key was created.  If
6175           the creation failed the old key was removed.  Next time giving
6176           same command would crash the server since the old key was
6177           freed already.  Affected file silcd/command.c.
6178
6179         * Fixed the silc_server_announce_get_channels to not crash
6180           on reconnect.  Affected file silcd/server.c.
6181
6182 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6183
6184         * Added silc_log_set_debug_string function to set a regex
6185           string to match for debug output.  Only the function names,
6186           or filenames matching the given debug string is actually
6187           printed.  This way it is possible to filter out those debug
6188           strings that user is not interested in.
6189
6190           Fixed a bug in silc_string_regexify.
6191
6192           Affected files lib/silcutil/silclog.[ch], and
6193           lib/silcutil/unix/silcunixutil.c.
6194
6195         * Changed the -d options in both server and Irssi SILC client
6196           to take the debug string as argument.  Affected files
6197           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6198
6199 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6200
6201         * Added silc_hash_babbleprint to create a Bubble Babble
6202           Encoded fingerprint.  The encoding is developed by Antti
6203           Huima (draft-huima-babble-01.txt), and it creates human
6204           readable strings out of binary data.  Affected file
6205           lib/silccrypt/silchash.[ch].
6206
6207         * Print the babble print now in addition of fingerprint as well
6208           in Irssi SILC client.  Affected files are
6209           irssi/src/fe-common/silc/module-formats.[ch],
6210           irssi/src/fe-common/silc/core/client_ops.c.
6211
6212 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6213
6214         * Fixed a security problem found in SKE.  The initiator's
6215           public key too is now added to the HASH hash value creation
6216           which is signed by the responder to create the SIGN value.
6217           This will prevent anyone in the middle to lie to the responder
6218           about the initiator's public key.  If this is done now, the
6219           man in the middle will get caught.  Updated the protocol
6220           specification.
6221
6222 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6223
6224         * Better installation directory handling.  Configure module
6225           paths and other paths automatically to example_silc* files
6226           in doc/.  A patch by toma.
6227
6228         * Fixed compiler warning from MPI library, and from SILC RNG.
6229           A patch by johnny.
6230
6231         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6232           It can be configured with ./configure.  A patch by toma.
6233
6234 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6235
6236         * Find correct make to use in prepare-clean.  A patch by
6237           toma.  Affected file prepare-clean.
6238
6239 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6240
6241         * Added irssi variables use_auto_addr, auto_bind_ip,
6242           auto_bind_port and auto_public_ip.
6243
6244         * Changed the interface for silc_client_send_key_agreement
6245           in lib/silcclient/silcapi.h
6246
6247         Affected files:
6248
6249          irssi/src/silc/core/silc-core.c
6250          irssi/config
6251          lib/silcclient/silcapi.h
6252          irssi/src/silc/core/silc-channels.c
6253          lib/silcclient/client_keyagr.c
6254          irssi/docs/help/key
6255
6256 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6257
6258         * Added silc_pkcs_public_key_compare to compare two
6259           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6260
6261         * Check that the client who set the founder mode on the
6262           channel is the same client that is giving the founder
6263           mode to itself.  It is done by comparing the saved public
6264           key (it is saved even in the authentication is passphrase).
6265           Affected file silcd/command.c.
6266
6267 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6268
6269         * Do not process packet for disconnected socket connection.
6270           Affected file lib/silccore/silcpacket.c.
6271
6272         * Process the DISCONNECT packet through scheduler in the
6273           client library.  Affected file lib/silcclient/client.c.
6274
6275         * Fixed the silc_client_packet_parse to not to increase
6276           the packet sequence number if the conn->sock and the
6277           current socket connection is not same.  This can happen
6278           for example during key agreement when the conn includes
6279           multiple socket connections (listeners).  Affected file
6280           lib/silcclient/client.c.
6281
6282         * The sender of the file transfer request now provides also
6283           the pointer (listener) for the key exchange protocol.  If
6284           the listener cannot be created then it sends empty key
6285           agreement and lets the receiver provide the listener.
6286
6287           Added `local_ip' and `local_port' arguments to the
6288           silc_client_file_send.  If they are provided they are used,
6289           if not then it will attempt to find local IP address, if
6290           not found or bind fails then the remote client will provide
6291           the listener.
6292
6293           Affected files are lib/silcclient/client_ftp.c and
6294           lib/silcclient/silcapi.h.
6295
6296         * Extended the FILE SEND command to support defining the
6297           local IP and port for key exchange listener.  They are
6298           optional.  Affected file irssi/src/silc/core/silc-servers.c.
6299
6300 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6301
6302         * Defined to WHOIS command reply the sending of fingerprint
6303           of the client's public key (if the proof of posession of the
6304           corresponding private key is verified by the server).
6305           Updated to the protocol specification.
6306
6307         * Added support of receiving the client's public key's
6308           fingerprint in command reply in client library.  Affected
6309           file is lib/silcclient/command_reply.c, and
6310           lib/silcclient/idlist.[ch].
6311
6312 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6313
6314         * Do not send over 128 chars long nickname to the server
6315           in NICK command.  Affected file lib/silcclient/command.c.
6316
6317         * Do not send over 256 chars long channel names to the server
6318           in JOIN command.  Affected file lib/silcclient/command.c.
6319
6320 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6321
6322         * Assure that silc_server_close_connection cannot be called
6323           twice for same socket context.  Affected file is
6324           silcd/server.c.
6325
6326 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6327
6328         * Send error message to application if opening file for
6329           writing during file transfer fails.  Affected file is
6330           lib/silcclient/client_ftp.c.
6331
6332           Remove all file transfer sessions for a client that we're
6333           removing from ID cache.
6334
6335           Affected file is lib/silcclient/client_ftp.c.
6336
6337         * Fixed silc_net_addr2bin to return correct address.  Affected
6338           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6339
6340         * Fixed file transfer session removing on signoff notify.
6341           Affected file irssi/src/silc/core/silc-servers.c.
6342
6343         * Added the SilcClientFileError to be returned in the monitor
6344           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
6345           Affected file lib/silcclient/silcapi.h.
6346
6347 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6348
6349         * Fixed a crash in silc_client_ftp_free_sessions and
6350           silc_client_ftp_session_free_client.  Affected file
6351           lib/silcclient/client_ftp.c.
6352
6353         * Added `disabled' field in the SilcChannelEntry in the server
6354           to indicate if the server entry is disabled.  Affected file
6355           silcd/idlist.h, silcd/command[_reply].c.
6356
6357         * SILC server adds now /var/run/silcd.pid everytime it is
6358           started.  Affected file silcd/silcd.c.
6359
6360         * Added silc_server_packet_send_clients to send a packet to
6361           the provided table of client entries.  Affected file
6362           silcd/packet_send.[ch].
6363
6364         * Fixed a crash in client resolving in client_prvmsg.c in
6365           client library.  Affected file lib/silcclient/client_prvmsg.c.
6366
6367         * Do not actually remove the client directly from ID cache
6368           during SERVER_SIGNOFF, but invalidate it.  This way we
6369           preserve the WHOWAS info for the client.  Affected file
6370           silcd/server_util.c.
6371
6372         * Fixed SERVER_SIGNOFF notify handling in the server.  The
6373           server is now able to process incoming SERVER_SIGNOFF notify
6374           for a server that it doesn't even know about.  It will remove
6375           the clients provided in the notify.  Affected file
6376           silcd/packet_receive.c.
6377
6378         * Check for partial packet in data queue after every packet that
6379           was found from the queue.  Return and wait for more data if
6380           there is partial data in queue.  Affected file is
6381           lib/silccore/silcpacket.c.
6382
6383 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6384
6385         * Added SilcClietFileError enum to indicate error in
6386           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
6387           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
6388           Affected files lib/silcclient/silcapi.h and
6389           lib/silcclient/client_ftp.c.
6390
6391         * Check that newsize in silc_buffer_realloc is larger than
6392           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
6393
6394         * Added better monitor of file transfers.  It now monitors
6395           key agreement protocol during the file transfer too.  Added
6396           error reporting too.  Affected files
6397           irssi/src/silc/core/silc-servers.c,
6398           irssi/src/fe-common/silc/module-formats.[ch].
6399
6400         * Wrote a help file for FILE command.
6401
6402         * Added silc_rng_global_get_byte_fast to get not-so-secure
6403           random data as fast as possible.  Random data is read from
6404           /dev/urandom if available and from the SILC RNG if not
6405           available.  It is used in padding generation.  Affected file
6406           lib/silccrypt/silcrng.[ch].
6407
6408         * All packets in client library are now processed synchronously.
6409           Optimized packet processing a lot.  Affected file
6410           lib/silcclient/client.c.
6411
6412         * All server connection packets are processing synchronously
6413           now in server, to optimize packet processing.  Affected file
6414           silcd/server.c.
6415
6416         * Include files are installed now only in Toolkit distribution
6417           if make install is given.  Affected files: all Makefile.am's.
6418
6419 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6420
6421         * Assure that silc_client_notify_by_server_resolve does not
6422           resolve the client information multiple times.  If it cannot
6423           be found by the first it cannot be found at all.  Affected
6424           file lib/silcclient/client_notify.c.
6425
6426         * Fixed WHOWAS command reply calling.  Affected file
6427           lib/silcclient/command_reply.c.
6428
6429         * Removed all references to silc_idlist_get_client from the
6430           Irssi SILC client since that call is internal call used by
6431           the library.  The Irssi SILC client will use now client
6432           retrieval functions found in silcapi.h.
6433
6434         * Fixed a bug in resolving nickname info before sending
6435           private message.  It used freed memory.  Affected file
6436           irssi/src/silc/core/silc-servers.c.
6437
6438 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6439
6440         * Assure my_channels statistics cannot go negative in server.
6441           Affected files silcd/server.c, silcd/server_util.c.
6442
6443 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6444
6445         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
6446
6447 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6448
6449         * Win32 Toolkit changes.  Affected files
6450           win32/silc.dsw, win32/libsilc/libsilc.def,
6451           win32/libsilcclient/libsilc.def,
6452           lib/silcutil/silcutil.c, and
6453           lib/sftp/sftp_fs_memory.c.
6454
6455 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6456
6457         * Added silc_net_localip to return local host's IP address.
6458           Affected file lib/silcutil/silcnet.[ch].
6459
6460         * If key exchange or rekey protocol is active for a connection
6461           parse all packets syncronously since there might be packets
6462           in packet queue that we are not able to process without first
6463           processing packets before them.  Affected file silcd/server,
6464           lib/silcclient/client.c.
6465
6466         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
6467           whether library should continue processing the packet.
6468           Affected file lib/silccore/silcpacket.h.
6469
6470         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
6471           SilcSFTPMonitorData to SFTP server to monitor various
6472           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
6473           lib/silcsftp/sftp_server.c.
6474
6475         * Added silc_file_size to return file size.  Affected file
6476           lib/silcutil/silcutil.[ch].
6477
6478         * Implemented the file transfer support for the client library.
6479           Added preliminary support for simple client to client one-file
6480           transmission.  Affected file lib/silcclient/client_ftp.c,
6481           lib/silccilent/client.[ch].
6482
6483         * Added new local command FILE to the Irssi SILC Client.
6484           It is used to perform the file transfer.  It has subcommands
6485           SEND, RECEIVE, SHOW and CLOSE.  Affected files
6486           irssi/src/silc/core/client_ops.c,
6487           irssi/src/silc/core/silc-server.[ch].
6488
6489 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6490
6491         * Relay the SILC_PACKET_FTP in the server.  Affected files
6492           silcd/server.c and silcd/packet_receive.c.
6493
6494 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6495
6496         * Renamed silc_file_read and silc_file_write to functions
6497           silc_file_readfile and silc_file_writefile.  Added function
6498           silc_file_open and silc_file_close.  Affected files
6499           lib/silcutil/silcutil.[ch].
6500
6501 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6502
6503         * Resolve the client info when received private message or
6504           channel message for a client which nickname we don't know.
6505           Affected files lib/silcclient/client_prvmsg.c and
6506           lib/silcclient/client_channel.c.
6507
6508         * Do not crash in /KEY if client is not connected.  Affected
6509           file irssi/src/silc/core/silc-channels.c.
6510
6511         * Added SilcClientStatus field to the SilcClientEntry in the
6512           lib/silcclient/idlist.h.
6513
6514           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6515           is incomplete and is being resolved, it won't be resolved
6516           twice.
6517
6518           Make sure also that USERS command reply does not resolve
6519           twice information.  Affected file is
6520           lib/silcclient/command_reply.c.
6521
6522           Make sure that silc_client_get_clients_by_list does not
6523           resolve twice same information.
6524
6525         * Check for valid client->id in the silc_server_free_client_data.
6526           Affected file silcd/server.c.
6527
6528         * Fixed /GETKEY nick@server not to crash if the server entry
6529           is not found.  Affected file lib/silcclient/command.c.
6530
6531         * Fixed the silc_server_check_cmode_rights to check the
6532           requested modes correctly.  Affected file silcd/command.c.
6533
6534 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6535
6536         * Better checks for non-printable chars in nick added.
6537           Affected file silcd/command.c.
6538
6539 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6540
6541         * Call the silc_server_udpate_servers_by_server in the
6542           primary router that comes back online in the backup resuming
6543           protocol.  Otherwise it routes packets wrong.  Affected file
6544           silcd/server_util.[ch], silcd/server_backup.c.
6545
6546 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6547
6548         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6549           lib/silcutil/silcbuffmt.[ch].
6550
6551         * Redefined the SILC packet header to include the padding
6552           length.  Affected file lib/silccore/silcpacket.[ch].
6553
6554         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6555           length for maximum padding up to 128 bytes).  Affected
6556           file lib/silccore/silcpacket.h.
6557
6558         * Removed all backwards support for old 0.5.x MAC thingies.
6559           The SILC packet header change makes it impossible to be
6560           backwards compatible.
6561
6562         * Send the ENDING packet with timeout in the backup resuming
6563           protocol.  This is to assure that all routers has connected
6564           to the primary router.  Affected file silcd/server_backup.c.
6565
6566         * Changed the RNG to take the first IV from random data.  It
6567           used to take it from zero actually.  Changed the RNG also
6568           to use /dev/urandom during session.  /dev/random is used
6569           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6570
6571 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6572
6573         * Changed the SILC packet header to have the first two bytes
6574           (the packet length) encrypted.  Affected files aroung the
6575           code tree, lib/silccore/silcpacket.[ch].  Removed the
6576           SilcPacketCheckDecrypt callback.  It is not needed anymore
6577           since the silc_packet_receive_process will determine now
6578           whether the packet is normal or special.
6579
6580         * Implemented the unidirectional MAC keys.  Affected files
6581           lib/silcske/silcske.c, silcd/protocol.c and
6582           lib/silcclient/protocol.c.
6583
6584         * Implemented the packet sequence number to the MAC computation.
6585           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6586           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6587           lib/silcclient/protocol.c.
6588
6589 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6590
6591         * Allow backup router to announce servers.  All servers
6592           announced by backup router are added to the global list
6593           automatically.  Update hte server's socket to our primary
6594           router also when backup router announces a server.
6595           Affected file silcd/packet_receive.c.
6596
6597         * Do not update the client->router in the function
6598           silc_server_udpate_clients_by_server if the client is on
6599           global list.  We might fail to find any specific server
6600           for locally connected clients and local cell clients.  They
6601           should still use the `from' and not `to' as client->router.
6602           This fixes backup router resuming protocol.  Affected file
6603           silcd/server_util.c.
6604
6605         * Decrease channel statistics count only if the channel
6606           deletion worked.  Affected files are silcd/server.c and
6607           silcd/server_util.c.
6608
6609         * Added silc_server_update_servers_by_server to update origin
6610           of all server entries.  Used during backup router protocol.
6611           Affected files silcd/server_util.[ch], silcd/server.c. and
6612           silcd/backup_router.c.
6613
6614         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6615           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6616           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6617           lib/silccrypt/silchmac.c.
6618
6619 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6620
6621         * Assure that router cannot reroute the same channel message
6622           to the sender.  Affected file silcd/packet_receive.c.
6623
6624 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6625
6626         * Made better checks that the channel message is not sent
6627           to the router it came from.  Affected file is
6628           silcd/packet_send.c.  Fixed memory leak too.
6629
6630         * Announce informations for incoming router connection, but
6631           only after checking if it is replaced by backup router.
6632           Affected file silcd/packet_receive.c.
6633
6634 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6635
6636         * Fixed the backup resuming protocol to work in multiple
6637           router environment.  Affected file silcd/server_backup.c.
6638
6639         * Route packet only to one router in the function
6640           silc_server_packet_send_to_channel.  Affected file is
6641           silcd/packet_send.c.
6642
6643         * Fixed silc_server_send_notify_dest to set the broadcast
6644           flag.  Fixed the silc_server_send_notify_topic to actually
6645           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6646           Affected file silcd/packet_send.c.
6647
6648         * Changed the SFTP Filesystem interface.  Changed the
6649           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6650           the filesystem operation function.  The SilcSFTPFilesystem
6651           is now a context that is allocated by all filesystem allocation
6652           functions and it already includes the operations structure
6653           and filesystem specific context.  It is given as argument
6654           now to the silc_sftp_server_start.  This made the interface
6655           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6656           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6657
6658 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6659
6660         * Changed the backup router adding and getting interfaces
6661           in the server.  The router that will be replaced by the
6662           specified backup router is now sent as argument.  Affected
6663           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6664           silcd/server.c.
6665
6666         * Added silc_net_addr2bin_ne to return the binary form of
6667           the IP address in network byte order.  Affected files
6668           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6669
6670 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6671
6672         * Check for existing server ID in silc_server_new_server
6673           and in silc_server_connect_to_router_final and remove the
6674           old entry if it exists.  Affected file silcd/packet_receive.c,
6675           silcd/server.c.
6676
6677         * Send the channel message always to only one router, either
6678           in upstream or downstream.  Affected file is
6679           silcd/packet_send.c.
6680
6681 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6682
6683         * Wrote the definition of the backup resuming protocol to the
6684           protocol specification.
6685
6686         * Removed one redundant channel key generation from normal
6687           server during joining procedure.  Removed one redundant
6688           channel key sending from server to router during joining
6689           procedure.  Affected file silcd/command.c.
6690
6691         * Made minor bugfixes to the backup router resuming protocol.
6692           Affected file silcd/server_backup.c, server.c.
6693
6694 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6695
6696         * Added --disable-asm configuration option.  Affected files
6697           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6698           by salo.
6699
6700         * Implemented the backup resuming protocol that is used to
6701           resume the primary router position in the cell after the
6702           primary router comes back online.  Affected files
6703           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6704           and silcd/server_util.[ch].
6705
6706 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6707
6708         * Sleep two (2) seconds after sending QUIT command to server.
6709           Affected file lib/silcclient/command.c.
6710
6711         * Assure that if outgoing data buffer is pending do not force
6712           send any data.  Affected file silcd/packet_send.c.
6713
6714         * Assure that if outgoing data buffer is pending do not force
6715           send any data.  Affected file lib/silcclient/client.c.
6716
6717         * Implemented the backup router support when the primary router
6718           goes down.  The servers and routers can now use the backup
6719           router as new primary router without loosing connectivity.
6720
6721 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6722
6723         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6724           in the server to indicate disabled entry.  All data read
6725           from the connection will be ignored and no data is sent
6726           for entry that is disabled.  Affected files are
6727           silcd/idlist.h, silcd/server.c.
6728
6729 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6730
6731         * Created SFTP client and server test programs in the
6732           lib/silcsftp/tests directory.
6733
6734 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6735
6736         * Implemented memory filesystem (virtual filesystem) for
6737           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
6738           sftp_fs_memory.c.
6739
6740 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6741
6742         * Implemented the SFTP (SSH File Transfer Protocol) to the
6743           lib/silcsftp.  It includes SFTP client and SFTP server
6744           implementations.
6745
6746 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6747
6748         * Moved lib/silccore/silcprotocol.[ch] to the
6749           lib/silcutil library.
6750
6751         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
6752           take variable argument list pointer as argument.  Affected
6753           file lib/silcutil/silcbuffmt.[ch].
6754
6755         * Added silc_buffer_set function that is used to set data
6756           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
6757           Affected file lib/silcutil/silcbuffer.h.
6758
6759         * Changed various routines in the core library to use the new
6760           silc_buffer_set instead of allocating new buffer only for
6761           temporary purposes.
6762
6763         * Added 64-bit value formatting and unformatting support to the
6764           silc_buffer_[un]format routines.  Affected file is
6765           lib/silcutil/silcbuffmt.[ch].
6766
6767           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
6768           to includes/bitmove.h.
6769
6770 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6771
6772         * Fixed channel user mode saving in client library.  Affected
6773           file lib/silcclient/command[_reply].c.
6774
6775 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6776
6777         * Defined the file transfer to the SILC Protocol.  Added
6778           new packet type SILC_PACKET_FTP and defined File Transfer
6779           Payload.  The mandatory file transfer protocol is SFTP
6780           (SSH File Transfer Protocol).  Affected file in addition
6781           of the internet draft is lib/silccore/silcpacket.h.
6782
6783         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
6784           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
6785           is used as part of backup router protocol when the primary
6786           router of the cell is back online and wishes to resume
6787           the position as primary router.
6788
6789         * Redefined the MAC generation keys in the protocol.  The
6790           same key is not used anymore in both direction.  Both
6791           direction will now use different keys for sending and
6792           receiving.  This fixes a potential security flaw.  This
6793           change causes incompatibilities in the protocol.
6794
6795         * Redefined also the MAC computation from the packet.
6796           An packet sequence number is now added to the MAC
6797           computation.  This prevents possible replay attacks against
6798           the protocol.  This change too causes incompatibilities
6799           in the protocol.
6800
6801           Added `sequence' field to the SilcPacketContext to hold
6802           the current sequence number for the packet.
6803
6804 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6805
6806         * Added `created' field to the SilcIDListData in the file
6807           silcd/idlist.h to indicate the time when the entry was
6808           created.
6809
6810         * Added `created' field to the SilcChannelEntry too.  Affected
6811           file silcd/idlist.h.
6812
6813         * Added `creation_time' aguments to all the announcement functions
6814           in the server.  If it is provided then only the entries that
6815           was created after the provided time frame are actually
6816           announced.  Affected file silcd/server.[ch].
6817
6818         * The protocol says that the Channel ID's IP address must be
6819           based on the router's IP address.  Added check for this in
6820           the silc_server_new_channel when processing incoming New Channel
6821           Payload.  Affected file silcd/packet_receive.c.
6822
6823         * Print out the correct version with --version in SILC client.
6824           Affected file irssi/src/silc/core/silc-core.c.
6825
6826 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6827
6828         * Fixed WHOWAS command to check for completnes of the client
6829           entry always, not just when the command is coming from client.
6830           Affected file silcd/command.c.
6831
6832         * Added new function silc_server_packet_queue_purge to purge the
6833           outgoing data queue to the network.  After the function returns
6834           it is guaranteed that the outgoing packet queue is empty.
6835           Affected file silcd/packet_send.[ch].
6836
6837         * Purge the outgoing packet queue in the rekey protocol's final
6838           callback to assure that all rekey packets go to the network
6839           before quitting the protocol.  Affected file silcd/server.c.
6840
6841         * Added silc_client_packet_queue_parse as similar function as
6842           in server to the client library.  The affected file is
6843           lib/silcclient/client.c.
6844
6845 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6846
6847         * Splitted silcd/server.c and created silcd/server_util.[ch]
6848           for utility functions.
6849
6850         * Added new socket flag SILC_SF_DISABLED to indicate that the
6851           connection is open but nothing can be sent to or received from
6852           the connection.  Affected file lib/silcutil/silsockconn.[ch].
6853           The checking for disabled socket is checked in the low level
6854           silc_socket_write and silc_socket_read functions.
6855
6856 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6857
6858         * Allow only nicknames and channel names that fits into the
6859           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
6860
6861 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6862
6863         * When processing JOIN command reply in server check that if
6864           the channel exists in our global list we'll move it the local
6865           list.  Affected file silcd/command_reply.c.
6866
6867         * Fixed the check whether client is joined on the channel already
6868           in JOIN command.  Affected file lib/silcclient/command.c.
6869
6870         * Fixed the JOIN command reply to check whether the channel
6871           already exists.  Affected file lib/silcclient/command_reply.c.
6872
6873 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6874
6875         * Added silc_ske_status_string to map the SKE error numbers
6876           to readable strings.  The affected files are
6877           lib/silcske/silcske[_status].[ch].
6878
6879 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6880
6881         * Do not show the private channels on the WHOIS channel list
6882           as it is not allowed by the protocol.  The affected file is
6883           silcd/server.c.
6884
6885 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6886
6887         * Assure that the packet length digged from the actual packet
6888           is something sensible in the silc_packet_decrypt_rest_special
6889           in lib/silccrypt/silcpacket.c.
6890
6891         * Free and NULL the allocated pointer in silc_hmac_alloc if
6892           the HMAC allocation fails.  The affected file is
6893           lib/silccrypt/silchmac.c.
6894
6895         * Print the selected security properties to the log files in
6896           the server.  Affected file silcd/protocol.c.
6897
6898         * Add SKE's reference counter even if calling the completion
6899           callback manually.  Otherwise it goes negative, although it
6900           does not cause any problems.  The affected file is
6901           lib/silcske/silcske.c.
6902
6903         * Remove the client entry with short timeout after giving the
6904           KILL command.  Affected file lib/silcclient/command.c.
6905
6906         * Fixed to send error reply in WHOIS and IDENTIFY commands in
6907           case all found clients are already disconnected (WHOWAS would
6908           found them) in the server.  Affected file silcd/command.c.
6909
6910         * Update the last_receive (time of last data received) to be
6911           updated only when received private or channel message so that
6912           the idle time showed in WHOIS makes more sense.
6913
6914         * Added boolean field `valid' in to the SilcClientEntry in the
6915           client library to indicate whether the entry is valid or not.
6916           This fixes the nickname change bug on channel when changing
6917           the nickname to be same than the old (like nick to Nick) the
6918           nickname formatter doesn't set the new nick anymore to Nick@host.
6919           Affected file lib/silcclient/idlist.[ch].
6920
6921         * Now actually fixed the nickname changing on disconnection.
6922           Added new function silc_change_nick to the Irssi SILC Client.
6923           Affected file irssi/src/silc/core/client_ops.c,
6924           irssi/src/silc/core/silc-nicklist.[ch].
6925
6926 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6927
6928         * Check that the public key exists in the GETKEY command before
6929           trying to encode it.  Affected file silcd/command.c.
6930
6931         * Print some notifications on received public keys with GETKEY
6932           command in the Irssi SILC Client.  Affected files are
6933           irssi/src/fe-common/silc/module-formats.[ch],
6934           irssi/src/silc/core/client_ops.c.
6935
6936         * Use IDENTIFY command to resolve the server information in the
6937           GETKEY command instead of INFO command.  Affected file
6938           lib/silcclient/command.c.
6939
6940         * All command reply functions in the client library now calls
6941           the pending command reply callbacks even if an error has
6942           occurred.  The server has done this a long time and now it was
6943           time to move the client library to this as well.  Now all
6944           errors can be delivered back to the pending command reply
6945           callbacks if necessary.  Affected files are
6946           lib/silcclient/command[_reply].[ch].
6947
6948         * Change the nickname on disconnection back to the username
6949           because in reconnect the server will enforce it to it anyway.
6950           Affected file irssi/src/silc/core/silc-servers.c.
6951
6952         * Fixed a config file parsing bug in the Irssi SILC client.
6953           Affected file irssi/src/silc/core/clientconfig.c.
6954
6955 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6956
6957         * When printing the channel mode on JOIN, verify that the
6958           channel key and channel's HMAC are valid.  Affected file
6959           irssi/src/silc/core/client_ops.c.
6960
6961 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6962
6963         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
6964           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
6965           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
6966
6967         * Removed channel key rekey task deleting from the function
6968           silc_server_save_channel_key.  Affected file silcd/server.c.
6969           Added explicit timeout task context instead that is used to
6970           delete the task if we are registering a new task before the
6971           new task has elapsed.
6972
6973         * When channel key rekey occurs the client library now saves
6974           the old channel key for a short period of time (10 seconds) and
6975           is able to use it in case some is still sending channel
6976           messages encrypted with the old key after the rekey.  Affected
6977           file lib/silcclient/[idlist.h|client_channel.c].
6978
6979 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6980
6981         * Added check to the silc_server_new_id_real to not accept
6982           new ID if it is the sender's own ID.  Affected file is
6983           silcd/packet_receive.c.
6984
6985         * Assure that we do not announce ourself or the one we've
6986           sending our announcements when we're router and are announcing
6987           servers to our primary router.  Affected file silcd/server.c.
6988
6989         * Fixed silc_server_command_identify_check_client to assemble
6990           correct WHOIS packet.  It send corrupted WHOIS packet and
6991           caused problem with router to router connections.  Affected
6992           file silcd/command.c.
6993
6994           Fixed also silc_server_command_whois_check the same way
6995           as for the IDENTIFY command.
6996
6997         * Added new SilcIDListStatus to the server in the SilcIDListData
6998           structure.   The status now includes the current status of
6999           the entry (like registered, resolved etc.).  Affected file
7000           silcd/idlist.[ch].  Defined a bunch of different status types
7001           as well.  This replaced the old boolean registered field as well.
7002
7003           Added resolve_cmd_ident field to the SilcClientEntry structure
7004           too so that if the entry is for example being resolved so
7005           another command may attach to the same pending command reply
7006           without requiring to resolve the same entry again.  This concept
7007           should optimize the WHOIS and the IDENTIFY resolving under
7008           heavy load by taking away unnecessary resolving for entries
7009           that are being resolved already.
7010
7011           Added support for adding multiple pending commands for one
7012           command idenfier.  Affected file silcd/command[_reply].[ch].
7013
7014         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7015           before deleting the data.  Otherwise the hash table will have
7016           freed data in comparison functions.  Affected file is
7017           silcd/command_reply.c.
7018
7019         * Fixed silc_idlist_replace_client_id to add the new entry to
7020           the cache with NULL nickname.  Otherwise there will be invalid
7021           memory as the nickname after the nickname is freed.  Affected
7022           file silcd/packet_receive.c.
7023
7024         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7025           saved into wrong slots because the previous number of entries
7026           was not taken into account.  Affected file silcd/idlist.c.
7027           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7028
7029         * If we are router and we receive JOIN notify to a channel that
7030           does not have any users then notified client is marked as the
7031           channel founder, as it is it.  The affected file is
7032           silcd/packet_receive.c
7033
7034         * Added to the extended hash table API's table_del_*ext functions
7035           the destructor as argument too, so that the caller can decide
7036           which destructor to use or whether to use destructor at all.
7037           Affected file lib/silcutil/silchashtable.[ch].
7038
7039         * Fixed ID Cache purging.  It actually deleted the entries from
7040           the hash table after the data was freed.  The hash table ended
7041           up comparing freed memory.  The affected file is
7042           lib/silccore/silcidcache.c.
7043
7044 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7045
7046         * Fixed Irssi SILC client's KILL command's HELP syntax.
7047
7048         * The USERS command now resolves the detailed user information
7049           if the userinfo field is missing.  Affected file is
7050           lib/silcclient/command_reply.c.
7051
7052         * Do not print error in silc_file_read if the read file does
7053           not exist.  Just silently return NULL.  Affected file is
7054           lib/silcutil/silcutil.c.
7055
7056         * Fixed the silc_log_output to not wine about NULL filename
7057           and to not create some bogus " " filename.  Affected file is
7058           lib/silcutil/silclog.c.
7059
7060 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7061
7062         * Fixed various printing bugs on the user interface in the
7063           Irssi SILC Client.  Minor changes that were forgotten from
7064           the release.
7065
7066 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7067
7068         * Fixed the configure.in.pre and the compilation and distribution
7069           environment to support the new autoconf 2.52.  That version is
7070           now required to compile the CVS trunk.
7071
7072 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7073
7074         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7075           to generally parse user@fqdn format strings.  Affected file
7076           lib/silcutil/silcutil.c.
7077
7078         * Added nickname_format and nickname_force_format fields to the
7079           SilcClientParams structure.  The first one defines the format
7080           for the nicknames that the library will enforce if the receives
7081           multiple same nicknames.  The second one is boolean value and
7082           can be used to force the library to always enforce the format
7083           to the nicknames regardles whether there are multiple nicknames
7084           or not.  This configurable formatting was employed to flexibly
7085           support accessing multiple nicknames from the user interface.
7086           The userinterface can now set the nicknames to what ever format
7087           they prefer.  Affected file lib/silcclient/silcapi.h.
7088
7089           Added function silc_client_nickname_format to the file
7090           lib/silcclient/idlist.c.  It performs the nickname formatting.
7091
7092           Added new field `hostname´ to the SilcClientEntry context.
7093           It holds the hostname of the client.  Affected file is
7094           lib/silcclient/idlist.h.
7095
7096         * Irssi SILC Client sets the nicknames in nick@hostn format.
7097           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7098           irssi/src/silc/core/silc-core.c.
7099
7100           The WHOIS printing now also shows both the real nickname and
7101           the formatted nickname so that user knows how to access the
7102           user if there are multiple same nicknames cached.  Affected
7103           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7104           printing formatting too to take the hostname now as a separate
7105           argument.  The Affected file is
7106           irssi/src/fe-common/silc/modules-formats.[ch].
7107
7108         * Changed the silc_client_get_clients_local to accept the formatted
7109           nickname as argument.  It accepts the real nickname too but the
7110           formatted nickname can be used to find the true entry from
7111           multiple entries.  Affected file lib/silcclient/silcapi.h and
7112           lib/silcclient/idlist.c.
7113
7114         * Added nickname_format_parse field to the SilcClientParams.
7115           It is a callback function provided by the application to parse
7116           the nickname out of the formatted nickname string. The library
7117           calls it to get the nickname from the formatted string. Since
7118           the application generally knows better the format of the nickname
7119           string it parses it instead of the library, even though library
7120           encodes the formatted string.  If the callback function is not
7121           provided then the library will use the string as is.  The
7122           affected file is lib/silcclient/silcapi.h.
7123
7124         * All the nickname strings passed to the client library in
7125           commands are now expected to be formatted nickname strings.
7126           If the command does not support the formatted nickname string
7127           it will assume that the sent string is the actual nickname.
7128           Affected file lib/silcclient/command.c.
7129
7130 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7131
7132         * Added public key authentication support to OPER and SILCOPER
7133           commands in the client library.  Affected file is
7134           lib/silcclient/command.c.
7135
7136 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7137
7138         * Changed the get_auth_methdod client operation to be asynchronous.
7139           It can be async if the application resolves the authentication
7140           method from the server during the negotiation.  Added new
7141           SilcGetAuthMeth completion callback that the application will
7142           call after resolving the authentication method.
7143
7144           Added function silc_client_request_authentication_method that
7145           the application can use to resolve the authentication method
7146           from the server.  Added also SilcConnectionAuthRequest callback
7147           that the library will call after the server has replied.  The
7148           application can call this function if it does not know the
7149           current authentication method.
7150
7151           Affected files are lib/silcclient/client.c and
7152           lib/silcclient/silcapi.h.
7153
7154         * The Irssi SILC client now automatically resolves the authentication
7155           method incase any configuration information is not present (and
7156           currently there never is).  The affected file is
7157           irssi/src/silc/core/client_ops.c.
7158
7159         * Fixed public key authentication from the client library.
7160           Affected file lib/silcclient/protocol.c.  Changed also the
7161           protocol specification about the public key authentication in
7162           the connection authentication protocol.  The actual data to be
7163           signed is now computed with a hash function before signing.
7164
7165         * Fixed the public key authentication from the server as well.
7166           Affected file silcd/protocol.c.
7167
7168         * Removed the mlock()'s from the memory allocation routines.
7169           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7170           not check anymore for the mlock().  Affected file is
7171           configure.in.pre.
7172
7173         * Fixed USERS command in server to allow the execution of the
7174           command for private and secret channels if the client sending
7175           the command is on the channel.  Affected file silcd/command.c.
7176
7177         * Fixed silc_client_get_clients_local to return the clients
7178           count correctly.  It could return wrong value.  Affected file
7179           lib/silcclient/idlist.c.
7180
7181 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7182
7183         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7184           types.  The assembler optimizations seemed not to like 64-bit
7185           data types.  The assmebler optimizations thus are now enabled
7186           also for BSD systems as opposed to only enable them for Linux.
7187
7188         * Do not check for threads at all on BSD systems.  Affected
7189           file configure.in.pre.
7190
7191         * Removed -n and -h options from the Irssi SILC Client since
7192           they are not used in silc.
7193
7194         * Fixed the prime generation to assure that the first digit
7195           of the generated random number is not zero since our conversion
7196           routines does not like number strings that starts with zero
7197           digit.  If zero digit is seen the random number is regenerated.
7198           This caused some corrupted RSA keys when the zero first digit
7199           was met.  Affected file lib/silcmath/silcprimegen.c.
7200
7201 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7202
7203         * Fixed WIN32 configuration in the ./configure script.
7204           Fixed to include xti.h on environments that has it.
7205           Patches by Carsten Ilchmann and andrew.
7206
7207 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7208
7209         * Changed the silc_id_create_client_id to be collision
7210           resistant.  It is now assured that there cannot be created
7211           two same client ID's.  I suspect that some weird bugs in
7212           the server were actually caused by duplicate Client IDs.
7213           Affected file silcd/serverid.[ch].  A router receiving
7214           new ID now also assures and informs the sending server
7215           if the ID caused collision.
7216
7217         * Changed the silc_id_create_channel_id to also assure that
7218           there are no collisions.
7219
7220 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7221
7222         * Statement about ignoring the Mutual Authentication flag when
7223           performing rekey with PFS was a bit misleading.  It is ignored
7224           if it was set in the initial negotiation, it cannot be even
7225           set in the rekey.  Fixed in the ke-auth draft.  Started the
7226           new versions of the protocol drafts in the doc/.
7227
7228 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7229
7230         * Fixed a bug in silc_client_command_identify_save when saving
7231           new channel information.  The channel name was no duplicated
7232           and caused crash on exit.  Affected file is
7233           lib/silcclient/command_reply.c.
7234
7235 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7236
7237         * Fixed the getkey command handling in the server.  Send just
7238           empty OK reply to the sender if the key could not be fetched
7239           (but everything else was ok, like the key just was not available).
7240           Changed the public key parameter to optional in the protocol
7241           specs so that empty OK reply can be sent.  Affected file
7242           silcd/command.c.
7243
7244           Added a message to Irssi SILC client to tell to user if the
7245           server did not return a public key.
7246
7247 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7248
7249         * Fixed a channel key regeneration bug.  It registered new
7250           timeout tasks exponentially until all system resources were
7251           used.  Affected file silcd/server.c.
7252
7253 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7254
7255         * Added the SILC Document generator to the scripts/silcdoc.
7256           It can be used to generate the Toolkit Reference Manual out
7257           of the source tree.  Internally it will also use the RoboDoc
7258           generator now imported in util/robodoc.
7259
7260 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7261
7262         * Added couple of return's in rekey protocol if error orccurred
7263           during the protocol.  The execution must be terminated.
7264           Affected file silcd/protocol.c.  Also, terminate the protocol
7265           always with timeout.
7266
7267 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7268
7269         * The client's Client ID was created initally from the wrong
7270           nickname (it could have been in format nick@host) in the
7271           silc_server_new_client.  Affected file silcd/packet_receive.c
7272
7273 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7274
7275         * Added some SILC_LOG_ERROR's to various error conditions
7276           if client could not be added to ID cache.  Affected files
7277           silcd/packet_receive.c and silcd/server.c.
7278
7279         * When client's sock->user_data is freed, NULL also the
7280           client->router and client->connection pointers.  Added check
7281           for these pointers being NULL to various places around the
7282           code.  Affected file silcd/server.c.
7283
7284         * Added client->data.registered == TRUE checks to various
7285           places around the code to assure that unregistered client's
7286           are not handled when it is not allowed.  Affected file
7287           silcd/server.c.
7288
7289         * Added `bool registered' fields to all
7290           silc_idlist_[server|client]_get_* routines to indicate whether
7291           the fetched client needs to be registered or not.  Affected
7292           file silcd/idlist.[ch].
7293
7294         * Add your own entry as registered to the ID cache in the
7295           server.  Affected file server.c.
7296
7297         * Fixed a bug in silc_server_new_server.  The SilcServer was
7298           set as the new server's context instead of SilcServerEntry.
7299           This naturally caused some weird bugs.
7300
7301         * Added "updated" field the SilcChannelEntry which indicates
7302           the time since the channel entry was last accessed.  This
7303           can be used to determine whether it is necessary to
7304           announce the channel after backup resuming protocol.
7305           Affected files silcd/idlist.[ch].
7306
7307 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7308
7309         * Do not delete the channel rekey task when adding it
7310           for in silc_server_create_channel_key.
7311
7312         * Changed the silc_server_create_channel_key to return
7313           TRUE or FALSE to indicate the success of the channel key
7314           creation.
7315
7316 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7317
7318         * Fixed MSVC++ project files and added missing files to
7319           Makefiles under win32/.
7320
7321 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7322
7323         * Do not add TCP_NODELAY flag if the operating system
7324           does not have it defined.  Affected files are
7325           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7326
7327         * Fixed buffer overflow from Irssi SILC Client.  Affected
7328           file irssi/src/fe-common/core/themes.c.
7329
7330         * Fixed double free in client library in the file
7331           lib/silcclient/client.c when disconnecting from server.
7332
7333         * Applied double free patch from cras to Irssi SILC client.
7334           Affected files irssi/src/core/[modules/expandos].c
7335
7336         * Fixed the disconnection handling to Irssi SILC Client.
7337           The application must call silc_client_close_connection
7338           in ops->connect client operation in case of failure of
7339           the connection.  Affected file is
7340           irssi/src/silc/core/client_ops.c.
7341
7342         * Do not set sock->protocol to NULL in the function
7343           silc_client_close_connection after executing the protocol's
7344           final callback since the sock might not be valid anymore.
7345           Affected file lib/silcclient/client.c.
7346
7347 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7348
7349         * Do not enable SILC_THREADS if the linking with libpthread
7350           did not happen.  Affected file configure.in.pre.
7351
7352         * Added notion to protocol specification that server must
7353           verify the sent authentication payload with CMODE when
7354           setting the channel founder key.  Implemented it to the
7355           server.  Affected file silcd/command.c.
7356
7357 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7358
7359         * Added _EXTRA_DIST SILC distribution variable to the
7360           distributions file.  It is used to conditionally add extra
7361           files or directories to the specific distribution.  Affected
7362           files ./prepare, Makefile.am.pre and distributions.
7363
7364           Removed the `_' from the start of the distribution names.
7365           It is redundant.
7366
7367         * Added README.WIN32 for instructions to compile the Toolkit
7368           under WIN32.
7369
7370 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7371
7372         * Fixed a double free in disconnection in the server.  Affected
7373           file is silcd/server.c.
7374
7375         * Fixed the lib/silcske/groups.c to work now also with GMP
7376           MP library.  The string conversion did not work when using
7377           specific base and the base is indicated in the string as well.
7378
7379         * Created win32/ directory which now includes MSVC++ specific
7380           stuff so that toolkit (DLLs) may be compiled with MSVC++.
7381           It will appear only in the toolkit distribution
7382
7383 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7384
7385         * Changed the key material distribution function in case when
7386           the hash output is too short.  The data is now concatenated
7387           a bit differently than it used to.  Made the change to the
7388           SKE protocol specification.
7389
7390         * Added better GMP detection to configure.in.pre.  A patch
7391           by salo.
7392
7393 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7394
7395         * Fixed a minor bug in SKE that might cause some problem on
7396           some platforms.  Affected file lib/silcske/silcske.c.
7397
7398         * Added the cookie checking for initiator in the SKE.  It checks
7399           that the responder returns the sent cookie unmodified.  The
7400           affected file is lib/silcske/silcske.c.  Added new SKE
7401           error type INVALID_COOKIE that can be sent during the
7402           negotiation.  Fixed some memory leaks as well.
7403
7404         * Added the "invalid cookie" error message to Irssi SILC client's
7405           message formats.
7406
7407 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7408
7409         * Added `task_max' field to the SilcClientParams to indicate
7410           the maximum tasks the scheduler can handle.  If set to zero,
7411           default values are used.  Affected file lib/silcclient/silcapi.h.
7412
7413         * Fixed memory leaks in silc_client_close_connection.  Affected
7414           file lib/silcclient/client.c.
7415
7416         * Added silc_client_del_client_entry to client library to free
7417           all memory of given client entry.  Affected file is
7418           lib/silcclient/idlist.[ch].
7419
7420         * Added new functions silc_client_del_channel and
7421           silc_client_del_server to delete channel and server entries.
7422           Affected file lib/silcclient/[silcapi.h/idlist.c].
7423
7424         * Removed silc_client_del_client_by_id from silcapi.h.
7425
7426         * Fixed the INFO command to return the server's own info
7427           correctly when querying by Server ID.  Affected file is
7428           silcd/command.c.
7429
7430 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7431
7432         * Removed the non-blocking settings in WIN32 code in the
7433           silc_sock_[read/write] and added SleepEx instead.  Affected
7434           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
7435           of input data is now checked with FIONREAD and ioctlsocket.
7436
7437 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7438
7439         * Call silc_schedule_task_del_by_context in the
7440           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
7441           Affected file lib/silccore/silcprotocol.c.
7442
7443         * Call silc_protocol_cancel for active protocols in the
7444           silc_server_close_connection if the funtion
7445           silc_server_free_sock_user_data has not been called.
7446           Affected file silcd/server.c.
7447
7448         * Generic tasks cannot be deleted using the del_by_fd
7449           task deleting function since generic tasks does not match
7450           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
7451
7452         * Added a notion to SILCOPER help file that the SILCOPER works
7453           only on router server, not on normal server.
7454
7455 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7456
7457         * Added for WIN32 support for the new scheduler as well.
7458           Affected file lib/silcutil/win32/silcwin32schedule.c.
7459
7460         * Fixed the SHA1 implementation to work on various platforms.
7461
7462 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7463
7464         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
7465           API.  It is part of the scheduler now.  Everything else is
7466           as previously but some functions has changed their names.
7467           Checkout the lib/silcutil/silcschedule.h for the interface.
7468           Updated all applications to use the new interface.  Affected
7469           files are lib/silcutil/silcschedule.[ch].
7470
7471 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7472
7473         * Found a bug in the SKE implementation.  The HASH value,
7474           specified by the protocol, was not computed correctly.  The
7475           public key of the responder was not added to the computation
7476           even though it is mandatory.  Affected file lib/silcske/silcske.c.
7477           This unfortunately causes incompatibilities with older
7478           clients and servers.
7479
7480         * Added WIN32 specific network init and uninit functions:
7481           silc_net_win32_init and silc_net_win32_uninit to init and uninit
7482           the Winsock2.  Affected file lib/silcutil/silcnet.h and
7483           lib/silcutil/win32/silcwin32net.c.
7484
7485         * Set the socket always to nonblocking mode on WIN32 after
7486           reading data or writing data.  Affected file is
7487           lib/silcutil/win32/silcwin32sockconn.c.
7488
7489 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7490
7491         * Fixed various compilation problems under WIN32.  Affected
7492           files lib/silcutil/win32/silcwin32thread.c and
7493           lib/silcutil/win32/silcwin32schedule.c.
7494
7495         * Removed all _internal.h #includes from public header
7496           files.  Internal headers must never be included from
7497           public headers.
7498
7499           Removed also the lib/silcske/payload_internal.h file.
7500
7501         * All include files that may be needed (public and some others
7502           included by the public headers) by application developers are
7503           now copied to the ./includes directory.  It does not copy any
7504           internal headers.  Affected file Makefile.defines.pre and all
7505           Makefile.am's under lib/ and subdirs.
7506
7507 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7508
7509         * Do not change the ~/.silc directory's permissions automatically.
7510           Affected file irssi/src/silc/core/clientutil.c.
7511
7512 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7513
7514         * Do not cancel the protocol in silc_server_close_connection
7515           it might cause recursion.  Now cancelled in the function
7516           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7517
7518         * Fixed the silc_server_remove_clients_by_server to regenerate
7519           the channel keys correctly finally.  Added also new function
7520           silc_server_remove_clients_channels to actually do it.
7521           Affected file silcd/server.c.
7522
7523         * Fixed the silc_server_new_channel to not crash by giving
7524           wrong router to the new channel.  Affected file is
7525           silcd/packet_receive.c.
7526
7527 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7528
7529         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7530           which is given as argument to the silc_client_alloc now.
7531           It can be used to configure the client and set various parameters
7532           that affect the function of the client.
7533
7534         * The USERS command in server did not check whether the channel
7535           is private or secret.  Affected file silcd/command.c.
7536
7537         * Added new argument to the USERS command in protocol specification.
7538           The USERS command now can take the channel name as argument
7539           as well.  Added support for this in client and server and
7540           updated the protocol specs.
7541
7542         * Completed the GETKEY command in client. It can be now used
7543           to fetch also servers public key not only some clients.
7544           Affected files lib/silcclient/command[_reply].c.
7545
7546         * Added silc_client_get_server to return server entry by the
7547           server name.  Affected files lib/silcclient/silcapi.h and
7548           idlist.c.
7549
7550         * Redefined the IDENTIFY command in protocol specification to be
7551           more generic.  It now can be used to query information about
7552           any entity in the SILC Network, including clients, servers and
7553           channels.  The query may be based either the entity's name
7554           or the ID.  Added support for this in both client and server.
7555
7556           Affected files silcd/command.c and lib/silcclient/command.c
7557           and command_reply.c.
7558
7559         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7560           the _from_client and _from_server functions.  Affected file
7561           silcd/command.c.
7562
7563         * Added silc_client_get_channel_by_id_resolve to the file
7564           lib/silcclient/silcapi.h to resolve channel information by
7565           its ID.  Added also silc_client_get_channel_by_id that
7566           does not resolve it from the server.
7567
7568 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7569
7570         * Added SilcServerEntry context into the client library
7571           to represent one server.  The INFO command now allocates
7572           these to save the resolved server info.  For now on the
7573           client library will also keep information about servers,
7574           connected and resolved with INFO.
7575
7576           The INFO command now allocates the SilcServerEntry context
7577           and saves the server info there.  The COMMAND_REPLY in
7578           the INFO now returns the parameters to application in
7579           same order as defined in the protocol specification.
7580
7581           The entries are cached in the client->server_cache.
7582
7583         * The INFO command is now issued after received the Client ID
7584           from the server.  Affected file lib/silcclient/client.c.
7585
7586         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7587           to the application as the mode changer might be server.
7588           It is guaranteed that NULL is not returned anymore to the
7589           application.  Affected file lib/silcclient/client_notify.c.
7590
7591           The ID Type is now also passed to the application so that
7592           it can check whether the returned entry is SilcClientEntry
7593           or SilcServerEntry.
7594
7595           Added new function silc_client_get_server_by_id to return
7596           the server entry by ID.  Affected files are the
7597           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7598
7599         * Do not create the channel in the Irssi SILC Client when issuing
7600           the JOIN command but when received the sucessful JOIN command
7601           reply.  Otherwise the channel might get created even though we
7602           could not join it.  The Affected file is
7603           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7604
7605         * Fixed a channel joining bug in router.  The router must also
7606           check the channel modes, invite and ban lists etc. when serving
7607           the JOIN command sent by normal server.  Affected file is
7608           silcd/command.c.  The router now resolves the client's
7609           information from the server who sent the JOIN command if it
7610           does not know it, and processes the JOIN command only after
7611           that.
7612
7613         * Changed the SilcCommandCb to take new argument; void *context2.
7614           Affected file lib/silccore/silccommand.h
7615
7616           The second argument in the command callbacks in the server now
7617           includes the SilcServerCommandReplyContext if the command was
7618           called as pending command callback from the command reply.
7619           Otherwise it is NULL. When called as pending the status of the
7620           command reply will be checked and if it was erronous the
7621           error will be sent to the original sender of the command.
7622           This way the client always receives the error messages even
7623           though the server was actually the one who received the error
7624           when it resent the command to router, for example.  Affected
7625           files silcd/command[_reply].[ch].
7626
7627         * Fixed sending WHOWAS command's error message to client if
7628           the requested client could not be found.  It was missing.
7629           silcd/command.c.
7630
7631         * Changed the CMODE and CUMODE commands reply arguments in the
7632           protocol specification.  The Channel ID is now sent in both
7633           of the commands to identify the channel.  Implemented this
7634           new feature to the client and server.  Affected files
7635           lib/silcclient/command_reply.c and silcd/command.c.
7636
7637         * Made better checks for invite and ban lists in the JOIN
7638           command in server.  Affected file silcd/command.c.
7639
7640 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7641
7642         * The server now performs the incoming host IP/DNS lookup
7643           using the silc_socket_host_lookup and thus does not block
7644           the server anymore.  Affected file silcd/server.c.
7645
7646         * Completed the multi-thread support for SILC Scheduler in
7647           the lib/silcutil/silcschedule.c.
7648
7649         * Fixed the configure.in.pre to detect the pthread correctly
7650           on various systems.
7651
7652         * Fixed a deadlock in silc_task_queue_wakeup in the file
7653           lib/silcutil/silctask.c.
7654
7655 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7656
7657         * Added new function silc_schedule_wakeup that is used in
7658           multi-threaded environment to wakeup the main thread's
7659           schduler. It needs to be used when a thread adds a new task
7660           or removes a task from task queues. After waking up, the
7661           scheduler will detect the task queue changes. If threads
7662           support is not compiled in this function has no effect.
7663           Implemented the wakeup mechanism to both Unix and WIN32
7664           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7665           lib/silcutil/unix/silcunixschedule.c and the
7666           lib/silcutil/win32/silcwin32schedule.c.
7667
7668         * Added new function silc_task_queue_wakeup to wakeup the
7669           scheduler by the specified task queue.  Affected file
7670           lib/silcutil/silctask.[ch].
7671
7672         * The silc_socket_host_lookup_start now wakes up the scheduler
7673           after adding the timeout task.  Affected file is
7674           lib/silcutil/silcsockconn.c.
7675
7676         * The silc_socket_host_lookup is synchronous now if the threads
7677           support is not compiled in.  However, the callback is still
7678           called asyncronously through the scheduler, anyway.  Affected
7679           file lib/silcutil/silcsockconn.c.
7680
7681 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7682
7683         * Added new function silc_socket_host_lookup to perform
7684           asynchronous IP and FQDN lookups for the socket connection.
7685           Affected files lib/silcutil/silcsockconn.[ch].
7686
7687 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7688
7689         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7690           that may or may not compile the mutex support in.
7691
7692           Changed the silc_mutex_alloc interface. It allocates the
7693           mutex now to the sent pointer and returns TRUE or FALSE.
7694
7695           Affected file lib/silcutil/silcmutex.h.
7696
7697         * Wrote the SILC Task Queue interface to support multi-threads.
7698           Affected file lib/silcutil/silctask.[ch].
7699
7700         * Wrote the SILC Scheduler to support multi-threads.  Affected
7701           file lib/silcutil/silcschedule.c.
7702
7703 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7704
7705         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7706           in lib/silcutil/win32/.
7707
7708 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7709
7710         * Defined SILC Mutex API and SILC Thread API and implemented
7711           them for Unix.  Affected files are
7712           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7713           lib/silcutil/unix/silcunixmutex.c and
7714           lib/silcutil/unix/silcunixthread.c.
7715
7716 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7717
7718         * Fixed the silc_server_remove_clients_by_server's channel
7719           key re-generation.  The hash table handling was incorrect
7720           and would not work with many channels.  Affected file is
7721           silcd/server.c.
7722
7723         * Fixed some memory leaks around the server code.
7724
7725         * Rewrote the silc_server_get_users_on_channel to support IPv6
7726           based Client ID's.  Affected file silcd/server.c.
7727
7728         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7729           specification.  However, a separate document must be written
7730           to define the detailed signing procedure and the payload
7731           associated with the flag.  Defined the flag to the
7732           lib/silccore/silcchannel.h as well.
7733
7734 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7735
7736         * Changed the dynamic tables to static size tables in the
7737           lib/silccrypt/silchmac.c.
7738
7739         * Removed GCC dependencies from the code.  A patch by cras.
7740
7741 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7742
7743         * Do not show the error "Error receiving packet bla bla"
7744           in server if it really was not an error (-2 means that reading
7745           is pending).  Affected file silcd/server.c.
7746
7747 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7748
7749         * Fixed a possible crash in silc_server_remove_clients_by_server
7750           in silcd/server.c.  Fixed there also some memory leaks.
7751
7752         * Fixed the silc_idlist_replace_client_id.  It could replace
7753           wrong key in the hash table.  Affected file silcd/idlist.c.
7754
7755         * Do not check whether there are global users on the channel
7756           if the channel->global_users is FALSE.  Affected functions
7757           silc_server_remove_from_one_channel and
7758           silc_server_remove_from_channels in silcd/server.c.  Also,
7759           do not check if the removed client is local as we can be
7760           sure that global client was not removed from the channel
7761           and checking for global users is not needed.
7762
7763         * The silc_server_remove_clients_by_server now re-generates
7764           the channel keys correctly for those channels that had
7765           clients removed from them.  Affected file silcd/server.c.
7766
7767 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7768
7769         * Found the reason of random crashes in the server.  We weren't
7770           ignoring the SIGPIPE signal (which can be sent in write())
7771           and it crashed the server.  Affected file silcd/silcd.c.
7772
7773 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7774
7775         * Assure that sock->user_data is not NULL in the function
7776           silc_server_packet_send in silcd/packet_send.c.
7777
7778         * Disconnect the remote connection if it could not be added
7779           to any ID lists in the server.  The affected file is
7780           silcd/server.c.
7781
7782         * Check in silc_server_packet_send[_real/dest] that the
7783           socket is not disconnecting and ignore the data if it is.
7784           Affected file silcd/packet_send.c.
7785
7786         * Define inline to __inline on native WIN32 compilation.
7787           Affected file includes/silcwin32.h.
7788
7789         * Added some explicit type casts for inline code since MSVC
7790           require them.  Affected files lib/silcutil/silcbuffer.h,
7791           lib/trq/silcdlist.h and lib/trq/silclist.h.
7792
7793         * Print warning in log files from now on if the packet
7794           decryption fails.  Affected file silcd/server.c.
7795
7796 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7797
7798         * Changed the `say' client operation's interface to accept
7799           new `type' argument to indicate the type of the message sent
7800           by the library.  The application may filter the library's
7801           messages according the type.  The affected file is the
7802           lib/silcclient/silcapi.h.
7803
7804         * Added two new functions to lib/silcclient/silcapi.h:
7805           silc_client_del_client and silc_client_del_client_by_id.
7806           Affected file lib/silcclient/idlist.c.
7807
7808         * Moved the clientincludes.h from includes/ to silc/ and
7809           serverincludes.h from includes/ to silcd/.
7810
7811         * The modes for the CMODE and CUMODE are now passed as
7812           uint32 for application with COMMAND_REPLY.  The affected
7813           file is lib/silcclient/command_reply.c.
7814
7815 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7816
7817         * /WHOIS without arguments shows client's own information.
7818           Affected file lib/silcclient/command.c.
7819
7820         * Changed PING to not accept any arguments.  The specs
7821           says that client can ping only the connected server so
7822           requiring an argument is not needed.  Affected file is
7823           lib/silcclient/command.c.
7824
7825 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7826
7827         * Fixed a fatal bug in private message sending and reception
7828           encryption and decryption when using private message keys.
7829           The implementation was incorrect and did not follow the
7830           specification.  It causd that some of the message were
7831           lost since it did not use the sending and receiving keys
7832           as the protocol suggests.  This has been fixed and will cause
7833           incompatibilities with older clients when sending private
7834           message encrypted with private message keys.  Affected files
7835           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
7836           and various other in Irssi SILC Client.
7837
7838           Added `responder' boolean argument to the functions
7839           silc_client_add_private_message_key[_ske] to indicate when
7840           the key is added as responder or initiator of the key
7841           negotiation.
7842
7843 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7844
7845         * Removed the silc_ske_check_version function and created
7846           a SilcSKECheckVersion callback.  Added also a function
7847           silc_ske_set_callbacks that is now used to set all SKE
7848           callbacks.  The callback functions are not given to
7849           the SKE functions anymore, but this function is used to
7850           set the callbacks.
7851
7852         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
7853
7854         * Added `silc_version' argument to the silc_client_alloc
7855           to define the version of the application for the library.
7856           The library will use the version string to compare it
7857           against the remote host's (usually a server) version
7858           string.  Affected file lib/silcclient/silcapi.h
7859
7860         * Added the KE protocol context to Key Agreement context
7861           in client library so that we can abort the SKE if it
7862           is in process when we get timeout.  Affected file is
7863           lib/silcclient/client_keyagr.c.
7864
7865         * Do not resolve the client ID forever if it returns in the
7866           first time that such client does not exist.  This was done
7867           for example with private message.  Affected file is
7868           lib/silcclient/client_prvmsg.c.
7869
7870 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7871
7872         * Do not add regex.h for WIN32.  The affected file
7873           includes/silcincludes.h.
7874
7875         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
7876           not work yet 100%.  It generates the DLL's automatically
7877           when compiling with --with-win32 under cygwin.
7878
7879 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7880
7881         * lib/contrib/regex.c is not compiled on WIN32.
7882
7883         * Added silc_net_get_socket_opt function to the
7884           lib/silcutil/silcnet.h.
7885
7886         * Added includes/silcwin32.h for WIN32 specific includes
7887           and definitions.
7888
7889         * Do not use ptime structure or any of the posix process
7890           functions on WIN32 in lib/silccrypt/silrng.c.
7891
7892         * Added silc_gettimeofday to provide generic function
7893           for struct timeval on all platforms.  Added the function
7894           to lib/silcutil/silcutil.h.
7895
7896 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7897
7898         * Moved the lib/silccore/silcsockconn.[ch] to the utility
7899           library as they clearly belong there.  As a plus side we
7900           can make the actual socket connection routines platform
7901           specific.
7902
7903           Added also new generic function silc_socket_read and
7904           silc_socket_write (that used to be silc_packet_[read/write].
7905           The implementation of these are platform specific.
7906
7907         * Added WIN32 specific routines of silc_socket_[read/write]
7908           to lib/silcutil/win32/silcwin32sockconn.c.
7909
7910 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7911
7912         * Added preliminary support for native WIN32 compilation under
7913           cygwin (using the -mno-cygwin option for GCC) to the
7914           ./configure.in.pre.  The --with-win32 now prepares the
7915           compilation for native WIN32.
7916
7917         * Rewrote the SILC Scheduler interface in the file
7918           lib/silcutil/silcschedule.h.  The scheduler is now context
7919           based and does not have anymore any global static scheduler.
7920           Moved the Unix scheduler to the lib/silcutil/unix/ directory
7921           and created lib/silcutil/win32 directory for WIN32 based
7922           scheduler.
7923
7924         * Added Unix specific network routines to the
7925           lib/silcutil/unix/silcunixnet.c and the old
7926           lib/silcutil/silcnet.c includes now only generic routines.
7927
7928           Added WIN32 specific network routines to the
7929           lib/silcutil/win32/silcwin32net.c.
7930
7931         * Added Unix specific utility functions from the
7932           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
7933
7934         * Added WIN32 SILC Scheduler to the file
7935           lib/silcutil/win32/silcwin32schedule.c. The code is of course
7936           untested.
7937
7938 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7939
7940         * Do not handle JOIN notify in the server if the target client
7941           is not registered (idata->registered == FALSE).  The affected
7942           file is silcd/packet_receive.c.
7943
7944         * Update the nickrec->founder in event_cumode in the Irssi SILC
7945           client.  Affected file irssi/src/silc/core/silc-channels.c.
7946
7947         * Fixed the CUMODE_CHANGE notify handling in the server when
7948           server and router are announcing their clients on channels.
7949           Now the mode changes are saved and notified correctly.  The
7950           affected file is /silcd/packet_receive.c.
7951
7952         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
7953           They really did not replace the cache entry in the ID Cache.
7954           Now they do that.  Affected file silcd/idlist.c.
7955
7956         * Fixed the KICK notify handling in the Irssi SILC client to
7957           update the channel records so that the kicked client does not
7958           appear to be on the channel.  The affected file is
7959           irssi/src/silc/core/silc-channels.c.
7960
7961         * Always update the conn->current_channel when executing command
7962           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
7963
7964         * Fixed the KILL notify handling in Irssi SILC client to remove
7965           the killed client on all channels.
7966
7967 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
7968
7969         * Fixed the silc_parse_command_line to remove extra spaces
7970           from the start and end of the arguments.  Affected file is
7971           lib/silcutil/silcutil.c.
7972
7973         * Cancel and free any active protocol in the function
7974           silc_server_close_connection.  Affected file silcd/server.c.
7975
7976         * Cancel and free any active protocol in the function
7977           silc_client_close_connction.  Affected file is
7978           lib/silcclient/client.c.
7979
7980         * Do not execute the KILL command for clients that are in
7981           history (ie. they are not in the network).  Affected file is
7982           silcd/command.c.
7983
7984         * Fixed KILL notify handling, client does not crash anymore.
7985           Affected file irssi/src/silc/core/silc-channels.c.
7986
7987         * Reduced the default packet buffer size from 2048 to 1024 in
7988           lib/silccore/silcpacket.c.
7989
7990         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
7991           counter to the SKE context that is incresed when the SKE library
7992           performs async operation outside the library.  If the outside
7993           process frees the SKE context and FREED status will be set
7994           and the library will detect after the sync operation that the
7995           libary is freed.  The affected files are
7996           lib/silcske/silcske[_status].[ch].
7997
7998         * Resolve the client entry information in the function
7999           silc_client_channel_message to assure that NULL pointer is not
8000           passed as client entry to the application. */
8001
8002         * Fixed the task timeout calculation to assure that there is
8003           never negative timeouts.  The affected file is
8004           lib/silcutil/silcschedule.c.
8005
8006         * Fixed the channel user mode notification sending in server.
8007           It was sent point-to-point to the router (or to server by router)
8008           but it needs to be destined to a channel.  The routines now
8009           supports sending the channel user mode notifys to the channels
8010           when announcing clients and channels.  Affected files are
8011           silcd/server.c and silcd/packet_receive.c.
8012
8013         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8014           It did not actually replace the old channel entry in the cache.
8015           Affected file lib/silcclient/client_notify.c.
8016
8017 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8018
8019         * Fixed a possible crash in silc_packet_send_prepare.  It now
8020           assures always that there is enough space in the buffer and
8021           at the tail area of the buffer (for MAC).
8022
8023           Fixed the inbound buffer reallocation in silc_packet_read.
8024           It was old code and did not handle the reallocation correctly.
8025           Affected
8026
8027           The affected file is lib/silccore/silcpacket.c.
8028
8029         * Fixed buffer overflow in silc_parse_nickname in the file
8030           lib/silcutil/silcutil.c.
8031
8032 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8033
8034         * make install generates new server keys only if there is not
8035           keys already.
8036
8037 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8038
8039         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8040           Added check that if the NOREPLY is set then we will not send
8041           the away message.  This avoids infinite loop of away messages
8042           if both clients are away.  The affected file is
8043           lib/silcclient/client_prvmsg.c.
8044
8045         * Fixed client crash if /NICK was given without arguments.
8046           Affected file lib/silcclient/command.c.
8047
8048         * Server does not send the invite list in INVITE command back
8049           to the client if the list was not altered.  Added this notion
8050           to the protocol spec as well.  Affected file silcd/command.c.
8051
8052           Fixed possible crash in INVITE command by checking the
8053           value of silc_server_get_client_route command.
8054
8055         * Fixed the INVITE notify type handling.  The arguments are now
8056           taken in correct order and client does not crash.  The affected
8057           file is irssi/src/silc/core/silc-channels.c.
8058
8059           Removed the "Inviting xxx to channel" message from the
8060           client library away and let the application handle it.
8061           Affected file lib/silcclient/command.c.  Added that message
8062           to Irssi SILC client's message formats.
8063
8064         * Fixed CMODE command crash in client.  It now checks the
8065           amount of arguments correctly and does not crash.  The affected
8066           file is lib/silcclient/command.c.
8067
8068         * Do not create new channel automatically in silc_channels_join
8069           but check whether the channel by that name already exists.
8070           Affected file irssi/silc/core/silc-channels.c.
8071
8072         * Do not send the SERVER_SIGNOFF to router if the disconnected
8073           entity was the router.  Affected file silcd/server.c.
8074
8075         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8076           SILC client as it was missing from there.
8077
8078           Added the handling of the KICK notify to the Irssi SILC client
8079           as it was missing.  Added "you have been kicked" message to
8080           Irssi SILC client's message modules formats.
8081
8082           Added the handing of the KILL notify to the Irssi SILC client
8083           as it was missing.  Added the kill message module formats
8084           as well.
8085
8086           The affected file is irssi/src/silc/core/silc-channels.c.
8087
8088         * The router did not save the channel mode the server announced.
8089           Affected file silcd/packet_receive.c.
8090
8091         * Fixed a possible crash in INFO command in server.  If the
8092           server did not provide the server info it crashed.  Affected
8093           file silcd/command.c.
8094
8095 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8096
8097         * Fixed the GETKEY command in the server to check also the
8098           global list.  Otherwise the GETKEY would not work correctly
8099           in normal SILC server.  Affected file silcd/command.c.
8100
8101 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8102
8103         * Fixed GETKEY crash, it crashed if the command did not succseed.
8104
8105 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8106
8107         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8108           is now real and not just an macro interface to GMP.
8109
8110           Removed the entire GMP from the source tree and imported new
8111           NSS MPI library instead.  Reason for removing GMP is that it is
8112           extremely large and compiles extremely slow.  The NSS MPI
8113           is only a few files and compiles in less than 10 seconds.
8114           The speed is also about the same as GMP.  The MPI is imported
8115           to lib/silcmath/mpi.
8116
8117           If the system has GMP installed we will still use the GMP.
8118           If it is not then the NSS MPI will be compiled.
8119
8120 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8121
8122         * Merged a long nickname (127 characters long) crash bugfix from
8123           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8124
8125         * Merged a freed memory reference bugfix from Irssi CVS tree.
8126           Affected file irssi/src/core/commands.c.
8127
8128 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8129
8130         * Added the server's public key sving and verification to the
8131           server when performing the SKE.  This was missing and the
8132           remote server's (or router's) public key was accepted without
8133           checking whether we have it previously or trust it at all.
8134           Affected file silcd/protocol.c.
8135
8136 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8137
8138         * Check in the silc_server_timeout_remote if protocol is active
8139           and make sure that the protocol's final callback is called so
8140           that all memory if freed.  Affected file silcd/server.c.
8141
8142 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8143
8144         * silc_server_whois_send_reply crashed the server if the nickname
8145           was 127 characters long.  Affected file silcd/command.c.
8146
8147 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8148
8149         * Added sanity check to the silc_server_new_client. If the hostname
8150           is provided inside username then check that the provided hostname
8151           really is the same as the resolved one.  If the hostname was not
8152           resolved then check it from the public key.  Affected file is
8153           silcd/packet_receive.c.
8154
8155         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8156           if the server disconnected us and the connection is not valid
8157           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8158
8159         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8160           the library to the lib/silcutil/silcutil.[ch].
8161
8162 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8163
8164         * Close log file after open.  Affected file
8165           lib/silcutil/silclog.c.
8166
8167         * Check whether sock == NULL in silc_client_send_packet and return
8168           if it is.  Affected file lib/silcclient/silcclient.c.
8169
8170         * Check rec->entry == NULL in the Irssi SILC Client before
8171           sending the channel message.  Affecte file is
8172           irssi/src/silc/core/silc-servers.c.
8173
8174 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8175
8176         * Merged a splitted window bugfix from Irssi CVS tree.  The
8177           affected file is irssi/src/fe-text/textbuffer-view.c.
8178
8179         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8180           It did not print nickname.
8181
8182         * Improved the distributions system a bit.
8183
8184 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8185
8186         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8187           irssi/src/fe-text/gui-window.c.
8188
8189         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8190           to in-active server.  The affected file is
8191           irssi/src/silc/core/client_ops.c.
8192
8193         * Resolve the client in USERS command reply if the entry does
8194           not have username resolved.  The affected file is
8195           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8196           command to WHOIS command to really resolve stuff.  The USERS
8197           is not used any more in any critical section so WHOIS can
8198           be used even though it might be slower than IDENTIFY.
8199
8200         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8201           format.
8202
8203 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8204
8205         * Changed the protocol API a bit more consistent in the
8206           lib/silccore/silcprotocol.[ch].
8207
8208         * Changed the following headers to ROBODoc format:
8209
8210                 lib/silccore/silcpayload.h
8211                 lib/silccore/silcprotocol.h
8212                 lib/silccore/silcsockconn.h
8213
8214           All core library headers are now formatted.
8215
8216 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8217
8218         * Fixed a bug in Irssi SILC client; do not show that you are
8219           server/router operator if you really are not.  Affected file is
8220           irssi/src/silc/core/client_ops.c.
8221
8222         * Renamed silc_command_free_payload to silc_command_payload_free.
8223           Affected file lib/silccore/silccommand.h
8224
8225         * Added silcmath.h to include the prototoypes of various routines
8226           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8227           silcprimegen.h.
8228
8229         * Changed the following headers to ROBODoc format:
8230
8231                 lib/silccore/silcchannel.h
8232                 lib/silccore/silccommand.h
8233                 lib/silccore/silcid.h
8234                 lib/silccore/silcidcache.h
8235                 lib/silccore/silcmode.h
8236                 lib/silccore/silcnotify.h
8237                 lib/silccore/silcpacket.h
8238                 lib/silcmath/silcmath.h
8239
8240 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8241
8242         * Added checking to the server code not to start the server if
8243           ciphers and stuff are not configured properly.  Affected files
8244           silcd/serverconfig.[h] and silcd/server.c.
8245
8246         * Changed the layout of the header files of the public interfaces
8247           in the SILC libraries.  The new layout supports ROBODoc
8248           documentation tool (and some others) so that it is easy to create
8249           a library reference manual.  All the other headers and source
8250           code must still follow the CodingStyle document.  Also source
8251           code must not include these ROBODoc stuffs, only the headers.
8252           Furthermore, all public interface headers must now be named
8253           by using `silc' prefix, example: silcapi.h, silccipher.h.
8254           Some files were renamed due to this.  All the other headers
8255           must not be used as public interfaces.  I will update the
8256           CodingStyle document later.  Changed following headers, so far:
8257
8258                 lib/silcclient/silcapi.h
8259                 lib/silccore/silcauth.h
8260                 lib/silccore/silcprivate.h
8261                 lib/silccrypt/silcdh.h
8262
8263 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8264
8265         * Updated TODO.
8266
8267         * Removed silc_client_packet_send_flush from the client library
8268           as it is not needed.  Affected file lib/silcclient/client.[ch].
8269
8270         * Added printing of message of unresolved authentication method
8271           to the Irssi SILC client.  Added it to the module formats.
8272           Removed the same message from the client library.
8273
8274 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8275
8276         * Added new distribution feature, DISTLABEL.  Every distribution
8277           can define own preprocessor label that can be used in the
8278           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8279           file distributions, acconfig.h.pre and prepare.
8280
8281 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8282
8283         * Added Makefile.defines_int to include the actual definitions
8284           for Makefile.defines.in.  Tested the new distribution system,
8285           created distributions and tested installation.
8286
8287         * Added AWAY message printing to the Irssi SILC client.  Added
8288           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
8289
8290         * Added SCONNECT command to call the SILC's CONNECT command.
8291           Cannot use CONNECT directly since Irssi uses that internally.
8292           Affected file irssi/src/silc/core/silc-servers.c.
8293
8294           Added ACTION local command.  It is same as ME command but takes
8295           the channel as mandatory argument.
8296
8297           Rewrote some of the Irssi's help files to suite for SILC
8298           protocol.
8299
8300 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8301
8302         * Added Makefile.defines[.in] that should for now on be included
8303           in all Makefile.am file in the source tree.  That file includes
8304           all common compilation definitions for SILC source tree.
8305
8306 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8307
8308         * Minor changes to the ./prepare script to change the package
8309           name according the distribution name to the configure.in.
8310
8311 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8312
8313         * Created new distribution system.  Added file `distributions'
8314           that defines all the distributions that can be created out of
8315           the SILC source tree.  The ./prepare script now reads that
8316           file to determine how to prepare the distributions.  The
8317           first argument to the ./prepare is the name of the distribution
8318           and second is the version of the distribution.  If given
8319           without arguments it creates the default (toolkit) distribution
8320           with the default version (defined in ./prepare).
8321
8322           All Makefile.am files that are subject to the distributions
8323           are now named as Makefile.am.pre.  These are ./Makefile.am
8324           and lib/Makefile.am.  Others may be changed later.
8325
8326 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8327
8328         * Added invite list, ban list, some key management and connection
8329           error message printing to module formats in the Irssi SILC client.
8330
8331         * Added new silc_client_set_away_message to set the away message
8332           that is back to the person who sent private message.  The
8333           affected file lib/silcclient/silcapi.h and the
8334           lib/silcclient/client_prvmsg.c.
8335
8336 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8337
8338         * Fixed the private message sending in the Irssi SILC client,
8339           added local command KEY to the Irssi SILC client.
8340
8341           Added key management and key agreement message formats to the
8342           irssi/src/fe-common/silc/module-formats.[ch].
8343
8344           Added USERS (alias WHO) printing, server/router operator
8345           indication and LIST command printing to the module formats.
8346
8347 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8348
8349         * Fixed channel joining notify handling, cumode notify handling
8350           from Irssi SILC client.
8351
8352         * Added SILC specific module-formats to the Irssi SILC client so
8353           that SILC specific message hilighting, colors etc is possible.
8354           Affected file irssi/src/fe-common/silc/module-formats.[ch].
8355
8356           Added channel mode, channel user mode, actions, notices,
8357           whois and whowas printing to the the module-formats.c.
8358
8359         * Fixed a bug in channel deletion in the server.  The channel
8360           is not left to the cache even if the channel founder auth mode
8361           is set when there are no users anymore on the channel.  Affected
8362           file silcd/server.c.
8363
8364         * The silc_net_localhost now resolves the entire hostname including
8365           the domain name.  Affected file lib/silcutil/silcnet.c.
8366
8367 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8368
8369         * Changed the ask_passphrase client operation to be ascynchronous.
8370           It has now a completion callback and a context that the
8371           application must call after it has got the passphrase from
8372           the user.  Affected files lib/silcclient/silcapi.h,
8373           lib/silcclient/protocol.c, lib/silcclient/command.c and
8374           silc/client_ops.c.
8375
8376           Added SilcAskPassphrase callback that the application calls
8377           to deliver the passphrase to the library.
8378
8379         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
8380           The public key verification and especially a certificate
8381           verification is asynchronous procedure.
8382
8383           Added new SILC_SKE_STATUS_PENDING status to indicate the
8384           request is pending and a callback will be called to finalize
8385           the request.
8386
8387           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
8388           indicate that remote end did not send its public key (or
8389           certificate), even though we require it.  Added check for this
8390           condition in the SKE.  This was a security bug, now fixed.
8391
8392           Defined new SilcSKEVerifyCbCompletion callback that is called
8393           when the verification process is completed.
8394
8395           The affected files lib/silcske/silcske_status.h and
8396           lib/silcske/silcske.[ch].
8397
8398         * Changed the verify_public_key client operation to be async
8399           as well.  Defined SilcVerifyPublicKey callback that is used to
8400           indicate the success of the public key verification process.
8401
8402           Changed the server and client to use the new async client
8403           operations.
8404
8405         * Changed the Irssi SILC client's internal scheduler to be called
8406           twice as many times as it used to be.  As a result the client
8407           should be a bit faster now.  Affected file is
8408           irssi/src/silc/core/silc-core.c.
8409
8410         * Added support to Irssi SILC client of asynchronous public key
8411           verification and passphrase inquiry.  Affected file is
8412           irssi/src/silc/core/silc-core.c.
8413
8414 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8415
8416         * Do not say "You have left channel %s" in client library.
8417           Moved it to the application.  Affected files are
8418           lib/silcclient/command.c and silc/client_ops.c.
8419
8420         * Fixed silc_client_get_clients.  Command context was not
8421           duplicated and was freed memory in the callback.  Affected
8422           file lib/silcclient/idlist.c.
8423
8424         * Do not say "you are now talking..." on JOIN command in the
8425           client library.  The appliation must handle it.
8426
8427         * Do not say ".. changed topic to" in command reply in the
8428           client libary.  The application must handle it.
8429
8430         * Fixed TOPIC command sending in the client library.
8431
8432         * Fixed a memory leak in silc_client_command_free in the file
8433           lib/silcclient/command.c.
8434
8435 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8436
8437         * Imported a modified version of Irssi client to the source tree.
8438           The Irssi will be used to create a new client called
8439           Irssi SILC.  Imported to irssi/.
8440
8441           Added silc_core_init_finish function to the Irssi.  Affected
8442           file irssi/configure.in.
8443
8444           A lot changes in the Makefile.ams around the irssi tree.
8445
8446 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8447
8448         * Do not rehash if the new size is same as the old size of the
8449           hash table, in the silc_hash_table_rehash*.  The affected file
8450           lib/silcutil/silchashtable.c.
8451
8452         * Replaced hash_table_del_by_context calls from the server
8453           (when channel->user_list and client->channels) to the
8454           hash_table_del as it is sufficient and faster.
8455
8456 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8457
8458         * Added silc_hash_table_list, silc_hash_table_get and the
8459           SilcHashTableList structure to provide an alternative way to
8460           traverse the hash table.  The affected files are
8461           lib/silcutil/silchashtable.[ch].
8462
8463         * Changed the server's idlist routines to use the hash table
8464           routines to optimize the code.
8465
8466 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8467
8468         * Replaced the client entry's `channel' list and channel entry's
8469           `user_list' list to hash tables for optimized lookup.  Changed
8470           the code to use the hash table interface around the code.
8471           Affected file lib/silcd/idlist.[ch].
8472
8473         * Added `auto_rehash' boolean argument to the function
8474           silc_hash_table_alloc to indicate whether the hash table should
8475           auto-rehash when it thinks is appropriate time.  It will
8476           increase the hash table size if the there is twice as much
8477           entries in the table than the size of the table, and will
8478           decrease the size if there are twice as less entries than
8479           the size of the table.
8480
8481 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8482
8483         * Fixed silc_xxx_get_supported to not crash at some circumstances.
8484
8485 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8486
8487         * silc_idcache_purge_by_context deletes the entry now by context
8488           as it is supposed to do.  Affected file lib/silccore/idcache.c.
8489
8490         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
8491           client is not anymore valid (WHOWAS givens the info) and not
8492           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
8493
8494 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8495
8496         * Removed the `data' and `data_len' arguments from the ID Cache
8497           interfaces and added `name' argument.  ID Cache does not handle
8498           anymore the binary data only a names associated with given ID.
8499
8500         * When hashing a Client ID with silc_hash_id the entire ID is
8501           not hashed anymore, instead only the hash of the Client ID is
8502           hashed.  This way we can access the Client ID from the cache
8503           with Client ID but with the hash of the ID (which is a hash of
8504           the nickname) as well without any difference in performance.
8505
8506           Added also silc_idcache_find_by_id_one_ext to do one on one
8507           searching when we have the actual ID.  Added also function
8508           silc_hash_client_id_compare.  The affected files are
8509           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8510
8511         * When hashing the name associated with a ID it is always done
8512           in lowercase.  This way we can access the cache without worrying
8513           about case-sensitivity, even though, for example nicknames are
8514           case sensitive.
8515
8516         * Fixed a bug in server with channel message sending.  It put
8517           wrong ID type as destination ID.  The affected file
8518           silcd/packet_send.c.
8519
8520         * silc_idcache_del_by_context now deletes from all hash tables
8521           by context.  Affected file lib/silccore/idcache.c.
8522
8523 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8524
8525         * Changed the client library to use the new ID Cache interface.
8526           Changes around the source tree.
8527
8528         * Added silc_hash_table_rehash_ext to rehash with specific
8529           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8530
8531         * Added silc_hash_string_compare to compare two strings in the
8532           hash table.  Affected file lib/silcutil/silcutil.[ch].
8533
8534 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8535
8536         * Added new function silc_idcache_del_by_context into the
8537           lib/silccore/idcache.[ch].
8538
8539         * Changed the server's ID list routines to use the new ID Cache
8540           interface.  Changes around the source tree.
8541
8542 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8543
8544         * Added silc_hash_table_del[_by_context]_ext functions in to the
8545           lib/silcutil/silchashtable.[ch].
8546
8547           Removed silc_hash_table_find_all* routines and added new
8548           silc_hash_table_find_foreach to replace them.
8549
8550           Added silc_hash_table_replace_ext function as extended
8551           replacing function.  Separated the simple hash table interface
8552           from the extended hash table interface in the file
8553           lib/silcutil/silchashtable.h.
8554
8555         * Fixed minor bugs and changed it to use some of the new
8556           hash table functions in lib/silccore/idcache.c
8557
8558 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8559
8560         * Added new function silc_hash_table_find_all to return all keys
8561           in the hash table by the specified key.  As the hash table is
8562           collision resistant it also makes it possible to have several
8563           duplicate keys in the hash table.  This function may be used to
8564           find all of the keys from the hash.
8565
8566           Added user_context arguments to the SilcHashFunction,
8567           SilcHashCompare and SilcHashDestructor to deliver user specified
8568           context.
8569
8570           Added new fuctions silc_hash_table_find[_all]_ext to do
8571           extended lookup with specified hash and compare functions and
8572           specified user contexts.
8573
8574           Added new function silc_hash_table_add_ext to add the key
8575           with specified hash function and user context.
8576
8577           Added new function silc_hash_table_foreach to traverse all
8578           entrys in the hash table.  Added SilcHashForeach callback
8579           function.
8580
8581           Added new function silc_hash_table_del_by_context to delete
8582           the entry only if the context associated with the key matches.
8583
8584           Affected files are lib/silcutil/silchashtable.[ch].
8585
8586         * Removed silc_hash_[server/client/channel]_id and added just
8587           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8588           silc_hash_id_compare to compare two ID's using as the hash table
8589           comparison function.  Added also silc_hash_data to hash
8590           binary data and silc_hash_data_compare to compare it.
8591
8592         * Removed silc_idlist_find_client_by_hash as it is not needed
8593           anymore.  Affected file silcd/idlist.[ch].
8594
8595         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8596           to use internally the SilcHashTable.  The new ID Cache is a lot
8597           faster than the old one.  Some of the ID Cache interface was also
8598           rewritten and obsolete and stupid functions were removed.
8599
8600 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8601
8602         * Added entry_count field to the SilcHashTable to keep the number
8603           of the entries in the table.  Implemented the function
8604           silc_hash_table_rehash.  Added new function
8605           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8606
8607           Fixed a minor bug in silc_hash_table_free.
8608
8609         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8610           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8611           into the lib/silcutil/silcutil.[ch].
8612
8613 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8614
8615         * Implemented a collision resistant hash table into the
8616           lib/silcutil/silchashtable[ch].  See the header and the source
8617           for the SilcHashTable API.
8618
8619 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8620
8621         * Merged dotconf version 1.0.2 into lib/dotconf.
8622
8623 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8624
8625         * Do not compile anything in lib/silcsim/* if the SIM support
8626           is not enabled.  The tree should now compile without problems
8627           under cygwin.
8628
8629 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8630
8631         * Compiled the SILC under cygwin.  Compiled and tested briefly
8632           without problems.  More tests needed.  The SIMs didn't compile
8633           though.
8634
8635         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8636
8637         * Fixed possible crash in silc_get_username in the
8638           lib/silcutil/silcutil.c.
8639
8640 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8641
8642         * Fixed a va_arg in silc/client_ops.c.
8643
8644         * Oops, RC5 routines were named AES and caused some problems
8645           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8646
8647 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8648
8649         * Added new SilcIDIP structure into the lib/silccore/id.h and
8650           replaced the old `ip' fields from all SILC ID's to that type.
8651           This is a step towards IPv6 support.
8652
8653           The silc_id_get_len takes now the ID as an extra argument.
8654           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8655           both IPv4 and IPv6 based ID's.
8656
8657           The affected files are lib/silccore/id.[ch] and other files
8658           around the tree using these routines.
8659
8660         * Removed the ID length arguments in server from various
8661           silc_server_send_notify_* routines -> they are not needed
8662           anymore.
8663
8664 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8665
8666         * Fixed memory leak in silc_encode_pem_file in the file
8667           lib/silcutil/silcutil.c.
8668
8669 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8670
8671         * Check minor version as well in the SKE.  Affected files are
8672           silcd/protocol.c and lib/silcclient/protocol.c.
8673
8674         * Added --identifier option to the server so that an identifier
8675           can be when creating the public key for the server.  Affected
8676           file is silcd/silcd.c.
8677
8678         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8679           lib/silccrypt/silcpkcs.c.
8680
8681 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8682
8683         * Register default ciphers and stuff when using -C option with
8684           the server.  Affected file sildc/silcd.c.
8685
8686         * Put back the servers public key filename format, it is better
8687           than the new one.  For now, the client keys are saved with the
8688           new filename format.  The affected file silc/client_ops.c.
8689
8690         * Implemented the Cipher API for the rest of the ciphers that
8691           did not implement it or implemented it the wrong way.
8692
8693 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8694
8695         * Register default ciphers and stuff when using the -S option
8696           in the client.  Affected file silc/silc.c.  Same also when
8697           creating new key pair with -C option.
8698
8699 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8700
8701         * Fixed the silc_verify_public_key client operation function to
8702           save the public keys differently.  The fingerprint is now
8703           used as filename and not the hostname.  This way also the
8704           client keys are saved uniquely and not with hostnames.  The
8705           affected file is silc/client_ops.c.
8706
8707         * Trimmed the silc_hash_fingerprint function to remove extra
8708           whitespaces from the end of the fingerprint.  The affected
8709           file is lib/silccrypt/silchash.c.
8710
8711         * Updated TODO.
8712
8713         * Added silc_cipher_register_default function to register all
8714           default ciphers.  It can be used when configuration files
8715           does not exist and the application does not want any specific
8716           ciphers in any specific order.
8717
8718           The SilcDList is now used as silc_cipher_list dynamically
8719           allocated cipher list.  Removed the static list all together
8720           and now all ciphers must be allocated to the dynamic list.
8721           The silc_cipher_alloc routine was changed to check only the
8722           dynamic list.
8723
8724           All silc_cipher_* routines that used to return int returns
8725           now bool.
8726
8727           The affected files lib/silccrypt/silccrypt.[ch].
8728
8729         * The same thing was done to silc_hash_* as for silc_cipher_*
8730           routines.  Affected files lib/silccrypt/silchash.[ch].
8731
8732         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8733           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8734           Added also silc_pkcs_[un]register[_default] functions.
8735           Removed the data_context from the PKCS API.
8736
8737         * Added silc_hmac_register_default function to register default
8738           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
8739           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
8740           to unregister all hmacs at once.
8741
8742         * Register the default ciphers, hash functions, PKCSs and HMACs
8743           if client's configuration file does not exist.  The affected
8744           file silc/silc.c.
8745
8746         * The client did not load the hash functions from the SIM
8747           modules at all.  Added support for this.  Affected file is
8748           silc/clientconfig.c.
8749
8750         * When decoding public key with silc_pkcs_public_key_decode, check
8751           the supported algorithm only if PKCS are registered.  Affected
8752           file lib/silccrypt/silcpkcs.c.  The same was done with the
8753           silc_pkcs_private_key_decode.
8754
8755         * Fixed the SILC List routines to keep the list always in order.
8756           It used to change the list's order when traversing the list but
8757           not it preserves the order.  Affected file lib/trq/silclist.h.
8758
8759 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8760
8761         * Added the client library to use the SilcSocketConnection's
8762           reference counter (by silc_socket_dup) to prevent the bug that
8763           the socket object may be freed underneath async operation.
8764
8765         * The name resolv library checking fixes in the configure.in.pre.
8766           The patch by salo.
8767
8768         * Created new version of the protocol drafts for future
8769           development. The -03 drafts are the ones that will be changed
8770           in the trunk now and the -02 will remain as they are.
8771
8772         * Send list of CUMODE notifys to the router when announcing
8773           the channel users to the router.  Affected file silcd/server.c.
8774           If the router receiving channel founder CUMODE for a channel
8775           that already has channel founder it will send CUMODE notify
8776           to the sender to remove the channel founder rights from the
8777           announced client.  Affected file silcd/packet_receive.c.
8778
8779         * The CUMODE notify may now use Server ID as well as the entity
8780           who changes the mode.  Updated protocool specs.
8781
8782         * Updated INSTALL and README files.
8783
8784 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8785
8786         * New web pages in the http://silc.pspt.fi.  The pages was
8787           designed by salo.
8788
8789         * Updated CREDITS.
8790
8791 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8792
8793         * Implemented the [DenyConnectin] config section in the server.
8794           Added silc_server_config_denied_conn to check whether incoming
8795           connection is denied.  Affected file silcd/serverconfig.[ch].
8796
8797         * Do not check the ports when checking the incoming configuration
8798           data if the port is 0, meaning any.  Affected file is
8799           silcd/serverconfig.c.
8800
8801 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8802
8803         * Fixed buffer overflow in silc_string_compare in the file
8804           lib/silcutil/silcutil.c.
8805
8806         * Fixed double free in silc_server_command_leave in the file
8807           silcd/command.c.
8808
8809 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8810
8811         * Fixed the version checking in the server.  Affected file is
8812           silcd/protocol.c.
8813
8814 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8815
8816         * Fixed the configuration data fetching when accepting new
8817           connections in the server.  Affected file silcd/server.c.
8818
8819 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8820
8821         * Added `sender_entry' argument to the function
8822           silc_server_packet_relay_to_channel so that we can check
8823           whether some destination actually belongs to the same route
8824           the sender belongs (ie, we must not resend the packet to the
8825           sender).  Affected file silcd/packet_send.[ch].
8826
8827         * Added `servername' field to the SilcClientEntry in the server
8828           to hold the name of the server where client is from.  Affected
8829           file is silcd/idlist.h.
8830
8831 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8832
8833         * Moved the channel message encrypting in the router betwen
8834           router connections from silc_server_channel_message to the
8835           silc_server_packet_relay_to_channel since we want to check
8836           whether we have anybody channel before encrypting anything.
8837           Affected files silcd/packet_[receive/send].c.
8838
8839 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8840
8841         * Fixed the [AdminConnection] server config section to support
8842           multiple entries.  Affected file silcd/serverconfig.c.
8843
8844         * Added support into the server to check the validity of the
8845           incoming connection before executing any KE or authentication
8846           protocols.
8847
8848         * The connection configuration is now saved to the KE and
8849           connection auth protocol contexts and not fetched anymore in
8850           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
8851
8852         * The local hosts listenning address and port is also resolved
8853           now when starting the server.  We want to have the socket object
8854           to include the real address and port for the listener.  Added
8855           new function silc_net_check_local_by_sock into the files
8856           lib/silcutil/silcnet.[ch].
8857
8858         * Fixed a broadcast bug in server -> do not broadcast if we
8859           are standalone.
8860
8861         * Fixed a routing bug.  Do not route broadcast packets ever.
8862           Broadcast packets must be processed always and not routed since
8863           they may be destined to some other host than yourself and thus
8864           would get routed without no good reason.  Affected file is
8865           silcd/server.c.
8866
8867         * Added function silc_server_config_is_primary_route to check
8868           whether primary router connection has been configured (a router
8869           configuration that we are initiating).  If there is not, we
8870           will assume that there is only two routers in the SILC network
8871           and we will use the incoming router connection as our primary
8872           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
8873
8874         * Changed the order of the broadcasting.  Broadcast _after_ the
8875           packet has been processed not before.  Affected file is
8876           silcd/server.c.
8877
8878         * Fixed a [ClientConnection] parsing bug.  The port was never
8879           parsed correctly thus resulting to port 0.  Affected file
8880           silcd/serverconfig.c.
8881
8882         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
8883           argument and did not set the broadcast packet flag.  Affected
8884           file silcd/packet_send.c.  Fixed same bug in the function
8885           silc_server_send_notify as well.
8886
8887         * If we receive NEW_ID packet for our own ID in the server, ignore
8888           the packet.
8889
8890 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8891
8892         * Updated TODO.
8893
8894         * Removed the nickname from the Private Message Payload.
8895           Updated the code and the protocol specs.
8896
8897         * Updated protocol specs for submitting to the IETF.
8898
8899         * Tweaked the Random Number Generator a bit.  Affected file
8900           lib/silccrypt/silcrng.c.  Exported a new function
8901           silc_rng_[global]_add_noise which can be used to add more
8902           noise to the RNG.
8903
8904 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8905
8906         * Do not parse packets with different timeout when protocol
8907           is active -> may cause problem with rekey.  Affected file
8908           silcd/server.c.
8909
8910         * When server receives signoff notify it must not create
8911           new channel key if the client is on any channels since the
8912           sender of the signoff notify will create it.
8913
8914 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8915
8916         * Added printing of error messages during SKE protocol from the
8917           failure packet sent by server during SKE.  Affected file
8918           silc/client_ops.c.
8919
8920         * Removed the client's failure_callback handling with timeout
8921           and handle it immediately when received.
8922
8923         * The SKE library returned wrong type in SUCCESS and FAILURE
8924           packets.  They must be 32 bit MSB not 16 bit MSB.
8925
8926 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8927
8928         * Ok, rewrote the logic of the re-key and now it seems to work.
8929           I tested it on high traffic with frequent re-keys without
8930           problems.  Added hmac_receive (and renamed hmac to hmac_send)
8931           in SilcClientConnection in lib/silcclient/client.h and
8932           in SilcIDListData in silcd/idlist.h.  Also, removed the
8933           SilcPacketParserContext's cipher and hmac fields as they are
8934           not needed anymore and actually caused some problems when
8935           the ciphers and hmac's changed underneath the packet parser.
8936
8937 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8938
8939         * If re-key protocol is active then process the incoming packets
8940           synchronously since we must assure that icoming packets encrypted
8941           with the old key is processed before the new keys is set to
8942           use.  This is true other packets than for REKEY packets.
8943           Affected file silcd/server.c.  The same was done to client library
8944           as well, affected file lib/silcclient/client.c.
8945
8946 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8947
8948         * Fixed bug in client and server to accept the force send if
8949           the packet is send from silc_[server/client]_packet_process
8950           function.  Otherwise the packets are never delivered, oops.
8951
8952 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8953
8954         * Disable force sending of packets when REKEY protocol is active.
8955           We must assure that no packet is sent directly when rekey is
8956           performed.  All packets must be sent through packet queue.
8957           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
8958           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
8959           function is silc_[server/client]_packet_send_real to check
8960           the situation.
8961
8962         * Replaced the SIM paths from example config files to
8963           /usr/local/modules.  Also, make install creates now
8964           /usr/local/silc/logs directory to hold all the SILC server
8965           logs.
8966
8967 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8968
8969         * Made the configure.in.pre work on Solaris.  Patch by salo.
8970
8971         * Made all ciphers compatible with non-x86 machines.  Defined
8972           CBC mode macros into lib/silccrypt/ciphers_def.h.
8973
8974 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8975
8976         * Fixed the make install.
8977
8978 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8979
8980         * When MAC computation fails the silc_packet_decrypt returned 0
8981           even though it was supposed to return -1.  Fixed this.  The
8982           affected file is lib/silccore/silcpacket.c.
8983
8984         * Do not replace the config files in /etc/silc (in make install)
8985           if they already exist.  Affected file ./Makefile.am.
8986
8987         * Do not send re-key packets immediately but through packet queue.
8988           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
8989
8990         * Changed silc_net_check_host_by_sock to return FALSE if the
8991           IP/DNS could not be resolved.  Though, it returns the IP address
8992           now even if it could not resolve it (but returns also FALSE).
8993           Affected file lib/silcutil/silcnet.[ch].
8994
8995 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8996
8997         * Added silc_pkcs_decode_identifier to decode the public key's
8998           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
8999           Added also silc_pkcs_free_identifier.  Added also new context
9000           SilcPublicKeyIdentifier.
9001
9002         * Added -S option to the silc client.  It is used to dump the
9003           contents of the specified public key file.
9004
9005         * Changed the PKCS api to return the public key length when
9006           setting the public key.
9007
9008         * Fixed a fatal bug in the public and private key file loading.
9009           Affected file lib/silccrypt/silcpkcs.c.
9010
9011         * Execute the packet parsing for client with zero (0) timeout
9012           if the protocol is active.  Affected file silcd/server.c.
9013
9014 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9015
9016         * Made the key generation options to the silcd program.  Added
9017           -C option, equivalent to client's option.
9018
9019         * Added new [ServerKeys] config section to the server.  It
9020           configures the server's public and private key.
9021
9022         * Defined generic Public Key Payload into the protocol
9023           specification to send specific type of public keys and
9024           certificates.
9025
9026         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9027           public key or certificate.
9028
9029         * Implemented the GETKEY command to the server and to the
9030           client library and on user interface.
9031
9032 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9033
9034         * Made preliminary `make install' work.
9035
9036 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9037
9038         * Added SilcServerRekey context into silcd/idlist.h.
9039
9040         * Added the PFS support as defined in the specification to the
9041           SKE protocol.  Affected files lib/silcske/*.c.
9042
9043         * Added `ske_group' field to the SilcServerRekey context to hold
9044           the number of the SKE group that is used with PFS in re-key.
9045           Affected file silcd/idlist.h.
9046
9047         * Added PFS re-key support to the server.  Affected file is
9048           silcd/protocol.c.
9049
9050         * Added silc_protocol_cancel to cancel execution of the next
9051           state of the protocol.  Affected file is
9052           lib/silccore/silcprotocol.[ch].
9053
9054         * Added the re-key support with and without PFS to the client
9055           library.  Re-key is performed once in an hour, by default.
9056
9057           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9058           Added silc_client_rekey_callback and silc_client_rekey_final.
9059           Affected files are lib/silcclient/protocol.[ch] and
9060           lib/silcclient/client.[ch].
9061
9062         * Removed the `hmac_key' and `hmac_key_len' fields from the
9063           SilcClientConnection structure; not needed.  Affected file is
9064           lib/silcclient/client.h.
9065
9066         * Updated TODO.
9067
9068 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9069
9070         * Do not ask whether user wants to use the negotiated private key
9071           for private messages, just use it.  Affected file is
9072           silc/local_command.c.
9073
9074         * Added `send_enc_key' and `enc_key_len' fields to the
9075           SilcIDListData structure since they are needed in the re-key
9076           phase.  Affected file is silcd/idlist.[ch].
9077
9078         * Implemented the simple re-key protocol into the server.
9079           Affected files silcd/server.c and silcd/protocol.[ch].  The
9080           re-key will be performed once in an hour, by default.
9081
9082           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9083           Added silc_server_rekey, silc_server_rekey_callback and
9084           silc_server_rekey_final.
9085
9086         * Removed Tunneled flag from the protocol.  Updated the code
9087           and the specifications.
9088
9089         * Adde `pfs' field to the SilcIDListData to indicate whether
9090           the PFS is to be performed in the re-key.  Affected file is
9091           silcd/idlist.h.
9092
9093 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9094
9095         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9096           int64 of at least the xintXX size.  If void * is less that 4
9097           bytes uint32 * will be used.  Defined bool as boolean.
9098
9099         * Changed _ALL_ unsigned long and unsigned int to uint32,
9100           unsgined short to uint16 in the source tree.
9101
9102         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9103           not handle clients that has entry->data.registered == FALSE.
9104           They are not in the network anymore.  Affected file is
9105           silcd/server.c.
9106
9107 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9108
9109         * Implemented the sending of the SERVER_SIGNOFF notify in the
9110           server.  Affected file is silcd/server.c.
9111
9112         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9113           Added also silc_notify_payload_encode_args into the
9114           lib/silccore/silcnotify.[ch].
9115
9116         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9117           Affected file silcd/packet_receive.c.
9118
9119         * Implemented the SERVER_SIGNOFF notify handling in the client
9120           library.  Affected file lib/silcclient/client_notify.c.  Also,
9121           implemnted the printing of the SERVER_SIGNOFF info to the
9122           application.  Affected file silc/client_ops.c.
9123
9124         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9125           if the deleting was successful.  Affected file silcd/idlist.[ch].
9126
9127         * Added support for public key authentication in the connection
9128           authentication protocol in the client library.  Affected file
9129           lib/silcclient/protocol.c.
9130
9131         * Changed the server's silc_idlist_get_clients_by_* interface
9132           to support already allocated array so that new entries may be
9133           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9134           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9135           and command replies.
9136
9137         * All command reply functions in the server now calls the
9138           pending command callback even if error occured.  This way the
9139           error will be delivered to the client as well.  Affected files
9140           silcd/command.c and silcd/command_reply.c.
9141
9142         * Fixed INFO command to return local server's info if no server
9143           was provided.  Affected file lib/silcclient/command.c.
9144
9145         * Removed RESTART command for good.  Updated the code and the
9146           protocol specs.
9147
9148         * Rewrote parts of the task system.  It is a bit simpler now.
9149           Removed unsued task priorities. The affected files are
9150           lib/silcutil/silctask.[ch].
9151
9152 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9153
9154         * Moved the USERS printing from the library to the application.
9155           Affected files lib/silcclient/command.c and silc/client_ops.c.
9156
9157 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9158
9159         * Updated TODO.
9160
9161         * Added channel key re-key support.  The re-key is perfomed
9162           only by the router and is done once in an hour.  Added `rekey'
9163           field to the SilcChannelEntry in the server.  Affected files
9164           silcd/server.c and silcd/idlist.h.
9165
9166         * Added silc_task_unregister_by_context into the file
9167           lib/silcutil/silctask.[ch].
9168
9169 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9170
9171         * Added SILC_UMODE_GONE mode to indicate when the client is not
9172           present in the SILC network.  Added also support to the local
9173           command AWAY that will set this mode.  Added support of showing
9174           "xxx is gone" in WHOIS command.  The USERS command shows the
9175           gone status as well.
9176
9177         * Fixed setting server and router operator privileges in the
9178           server's UMODE command.  Affected file silcd/command.c.
9179
9180         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9181           new KE payload is equivalent to the old KE2 payload.
9182
9183           Cleaned up the SKE Start Payload parsing.  It now uses the
9184           simple buffer unformatting to do the parsing.  A lot faster
9185           now.
9186
9187           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9188           to the SKE that is used to indicate whether both of the SKE
9189           parties should perform authentication.  By default only the
9190           responder performs authentication.  By setting this flag also
9191           the initiator must do authentication.  By default it is unset
9192           since in normal SKE case, client to server connection, only
9193           the responder should do authentication.  When doing SKE between
9194           two clients both should perform authentication.  Updated the
9195           code and the protocol specs.
9196
9197         * A little fix to IDENTIFY command in the server.  Search the
9198           client first by hash not nickname.  Affected file is
9199           silcd/command.c.
9200
9201         * Fixed the silc_client_close_connection to support closing
9202           the client to client connections wihtout deleting too much
9203           data.  Affected file lib/silcclient/client.c.
9204
9205         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9206           are received if protocol used to be active but is not anymore
9207           the application would crash due to NULL pointer dereference.
9208           Affected files silcd/server.c and lib/silcclient/client.c.
9209
9210         * Added `hash' field to the SilcClientConnection to include
9211           the hash function negotiated in the SKE protocol.
9212
9213         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9214           to set the channel founder authentication data.  A client can
9215           claim the founder rights later by providing the authentication
9216           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9217           This way the channel founder can regain the channel founder
9218           privileges even it is left the channel.  This works only on
9219           local server and the client must be connected to the same
9220           server to be able to regain the founder rights.  Updated the
9221           protocol specs accordingly.
9222
9223           Added support to the CMODE command in the client to set the
9224           founder auth data.  Read the README to see how to set it.
9225
9226           Added support to the CUMODE command to claim the founder
9227           rights.  Read the README to see how to do it.
9228
9229           Added support for the founder authentication to the Channel
9230           Entry in the server.  Affected file silcd/idlist.h.
9231
9232           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9233           server's CMODE command.  Affected file silcd/command.c.
9234
9235         * Added the following new functions into lib/silccore/silcauth.[ch]:
9236           silc_auth_get_method and silc_auth_get_data.
9237
9238         * The server now saves the remote hosts public key to the
9239           SilcIDListData pointer.  Affected file silcd/protocol.c.
9240
9241         * The normal server now does not remove the channel entry from
9242           the cache if the founder authentication data is set.  It used
9243           to remove it if the founder was the last one on the channel on
9244           the server and left the channel.  The auth data is saved and
9245           if the channel is re-joined later the old entry is used with
9246           the old auth data.  Affected files silcd/command_reply.c and
9247           silcd/server.c.
9248
9249         * Removed the `pkcs' field from the SilcIDListData structure
9250           in the server; it is not used.  Affected file silcd/idlist.h.
9251
9252 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9253
9254         * Fixed packet processing on slow links.  Partial packets were
9255           never re-processed because the incoming data buffer was cleared
9256           by the application.  Application must not directly clear the
9257           sock->inbuf, the packet processing routines handle it.  Fixed
9258           this in client library and in server.
9259
9260 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9261
9262         * Fixed the WHOIS and IDENTIFY send reply function to really
9263           check whether to send list or just one entry.  Affected file
9264           silcd/command.c.
9265
9266         * Cleaned up the LEAVE command's channel key distribution.  The
9267           affected file silcd/command.c.
9268
9269         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9270           can enforce the channel mode as well.  In that case the ID
9271           includes the ID of the server.  The code now enforces the
9272           mode change if the router have different mode than the server.
9273
9274         * The notify client operation with CMODE_CHANGE notify can now
9275           return NULL client_entry pointer if the CMODE was not changed
9276           by client.  Application must check for this.
9277
9278         * Added <Server ID> argument to INFO command to support server
9279           info fetching by Server ID.
9280
9281         * Added silc_server_announce_get_channel_users to get assembled
9282           packets of channel users of the specified channel.  Affected
9283           file silcd/server.[ch].
9284
9285         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9286           was freed underneath the ID Cache.
9287
9288         * Re-announce clients when the server received CHANNEL_CHANGE
9289           notify from the router.  Affected file silcd/packet_send.c.
9290
9291 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9292
9293         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
9294           crashed since it did not handle the fact that there is no cipher
9295           called "3" and didn't check the error condition.  Now fixed.
9296
9297         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
9298           flag.  It can be used to send message requests.
9299
9300 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9301
9302         * Implemented the RESTART command in the client.
9303
9304         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
9305           notice type messages.  Added notice printing to the user
9306           interface.
9307
9308         * The channel keys are not re-generated if the channel's mode
9309           is PRIVKEY, ie private key on the channel exists.  Affected
9310           files silcd/server.c and silcd/command.c.
9311
9312         * Fixed a little bug in channel message delivery when channel
9313           private keys are set in the server.  Affected file is
9314           silcd/packet_send.c.
9315
9316         * Changed the setting on channel->on_channel = TRUE from the
9317           silc_client_save_channel_key to the JOIN command reply.  The
9318           key payload is not received if the private channel key is set.
9319           Affected file lib/silcclient/command_reply.c and the
9320           lib/silcclient/client_channel.c.
9321
9322         * When the CMODE_CHANGE notify is sent and the channel private
9323           key mode is removed the channel key must be re-generated in
9324           other cells as well.  Added this support for the router in the
9325           silcd/packet_receive.c.
9326
9327         * Added new local command NOTICE to send notice message on
9328           channel.  Affected file silc/local_command.[ch].
9329
9330 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9331
9332         * Added new local command ME to the client.  It is used to send
9333           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
9334           some action.  Affected file silc/local_command.[ch].
9335
9336         * Changed channel_message and private_message client operations
9337           to deliver the message flags to the application.  Added also
9338           the `flags' arguments to the silc_client_send_channel_message
9339           and silc_client_send_private_message functions.  Affected file
9340           silcapi.h.
9341
9342 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9343
9344         * Redefined the Private Message Payload to support private message
9345           keys and to support the new private message flags.  Updated
9346           the protocol specs.  Flags makes it possible to have for example
9347           CTCP style messages.
9348
9349         * Added new type SilcPrivateMessagePayload and defined an API
9350           for it in the lib/silcclient/silcprivate.[ch].
9351
9352         * Tested private message private keys successfully.  Tested the
9353           private message key set, unset and list commands with the new
9354           KEY command.
9355
9356         * Redefined the Channel Message Payload to include the channel
9357           message flags (equal with private message flags) to support
9358           for example CTCP style messages.
9359
9360         * Defined some of the message (for channel and private message)
9361           flags.  Updated the protocol specs and added the flags to the
9362           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
9363
9364 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9365
9366         * Added SilcKeyAgreementStatus type to the key agreement routines
9367           to indicate the current status and error if one occured.
9368           The status types are defined in the lib/silcclient/silcapi.h.
9369
9370         * Added new local command KEY that is used to set and unset private
9371           keys for channels, set and unset private keys for private messages
9372           with remote clients and to send key agreement requests and
9373           negotiate the key agreement protocol with remote client.  The
9374           key agreement is supported only to negotiate private message keys,
9375           it currently cannot be used to negotiate private keys for channels,
9376           as it is not convenient for that purpose.
9377
9378         * Fixed a minor pending callback setting bug in the function
9379           silc_client_get_client_by_id_resolve, now the function works.
9380           Affected file lib/silcclient/idlist.c.
9381
9382         * Added function silc_net_get_local_port to get local bound
9383           port by socket.  Added to lib/silcutil/silcnet.[ch].
9384
9385         * Added `sockets' and `sockets_count' fields to the SilcClient
9386           object.  They hold the sockets of the listenning sockets in
9387           the client.  Listenning sockets may be for example the key
9388           agreement server.  Affected file lib/silcclient/client.[ch].
9389           Added functions the silc_client_add_socket and the
9390           silc_client_del_socket.  They are exported to the application
9391           as well.
9392
9393         * Added ~./silc/clientkeys to support other client's public keys.
9394
9395         * Renamed verify_server_key client operation to verify_public_key
9396           and added one argument to indicate the type of the connection
9397           (server, client etc.).
9398
9399 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9400
9401         * Added silc_server_connection_auth_request to handle the
9402           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
9403           silcd/packet_receive.[ch].
9404
9405         * Added silc_server_send_connection_auth_request into the
9406           silcd/packet_send.c to send the connection auth request packet.
9407
9408         * Cleaned up the silcd/protocol.c a bit and fixed some memory
9409           leaks.
9410
9411         * Fixed the public key authentication in responder side in the
9412           server.  The `auth_data' pointer includes the SilcPublicKey
9413           not the path to the public key.  Affected file silcd/protocol.c.
9414
9415         * Implemented the public key authentication in the initiator side
9416           in the server.  Affected file silcd/protocol.c.
9417
9418         * Removed the [RedirectClient] config section from the server
9419           configuration.  Is not needed and I don't want to implement it.
9420
9421 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9422
9423         * Cleaned up the CMODE command in the server.  It now works
9424           correctly and supports all the modes defined in the protocol.
9425           Affected file is silcd/command.c.
9426
9427         * Added `hmac_name' field to the SilcChannelEntry in the server
9428           to hold the default HMAC of the channel.  It can be set when
9429           creating the channel (with JOIN command).  Affected files
9430           silcd/idlist.[ch].
9431
9432         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
9433           type to indicate the change of the current cipher and hmac
9434           on the channel.  Client can safely ignore the <cipher> argument
9435           (if it chooses to do so) since the CHANNEL_KEY packet will
9436           force the channel key change anyway.  The <hmac> argument is
9437           important since the client is responsible of setting the new
9438           HMAC and the hmac key into use.
9439
9440         * Fixed the CMODE command in the client library as well.
9441
9442         * Tested CMODE command in router environment successfully.
9443
9444 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9445
9446         * Show the version of the remote client (or server) when connecting
9447           to the server.  It is logged to the log file.  Affected file
9448           is silcd/protocol.c.
9449
9450         * Fixed the KILLED notify handling in the client library.  The
9451           client must be removed from all channels when receiving the
9452           KILLED notify.
9453
9454           Also, do not remove the client entry when giving the KILL
9455           command but when the KILLED notify is received.
9456
9457         * Removed silc_idlist_find_client_by_nickname from the server.
9458           Not needed anymore.  Affected files silcd/idlist.[ch].
9459
9460         * Implemented the CHANNEL_CHANGE notify type handling to the
9461           server.  Affected file silcd/server.c.
9462
9463         * Updated TODO.
9464
9465 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9466
9467         * Added silc_server_send_notify_invite to send the INVITE
9468           notify between routers.
9469
9470         * Implemented the INVITE command correctly to the server.
9471
9472         * Implemented the INVITE notify type handling in the server.
9473
9474         * Implemented the INVITE command to the client library and on the
9475           user interface.
9476
9477 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9478
9479         * Added function silc_server_get_client_resolve to find the
9480           client entry by ID from all ID lists and then resolve it
9481           (using WHOIS) if it cannot be found.  Affected file is
9482           silcd/server.[ch].
9483
9484 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9485
9486         * Implemented the BAN command to the client library.
9487
9488         * The JOIN command in the server now checks the invite list
9489           and the ban list.
9490
9491         * Changed the silc_command_reply_payload_encode_va and the
9492           silc_command_payload_encode_va to support that if argument is
9493           NULL it ignores and checks the next argument.  Affected file
9494           lib/silccore/silccommand.c.
9495
9496         * Added silc_server_send_notify_ban to send the BAN notify
9497           type between routers.
9498
9499         * Chaned the silc_notify_payload_encode to support that if
9500           argument is NULL it ignores and checks the next argument.
9501           Affected file lib/silccore/silcnotify.c.
9502
9503         * Tested ban lists in router environment successfully.
9504
9505 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9506
9507         * Implemented BAN command to the server, in silcd/command.[ch].
9508
9509         * Removed the BAN and INVITE_LIST modes from the CMODE command
9510           in the server code.
9511
9512         * Added function silc_string_match to regex match two strings.
9513           Affected files lib/silcutil/silcutil.[ch].
9514
9515 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9516
9517         * Redefined parts of the SilcChannelEntry in the server to support
9518           the new ban and invite lists.
9519
9520 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9521
9522         * Redefined the INVITE command.  The same command can be used to
9523           invite individuals to the channel but also to manage the invite
9524           list of the channel (to add to and remove from the invite list).
9525           Updated the protocol specs.
9526
9527         * Added new command SILC_COMMAND_BAN that can be used to manage
9528           the ban list of the channel.  Updated the protocol specs.
9529
9530         * Removed the channel modes: the SILC_CMODE_BAN and the
9531           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9532           in the CMODE command.  The equivalent features are now available
9533           using INVITE and BAN commands.  Updated the protocol specs.
9534
9535         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9536           in the network about change in the current ban list.  The notify
9537           type is not used by the client.
9538
9539         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9540           support the invite lists.
9541
9542 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9543
9544         * Added new function silc_string_regexify that converts string
9545           including wildcard characters into regex string that can
9546           be used by the GNU regex library.  Added into the file
9547           lib/silcutil/silcutil.[ch].
9548
9549           Added silc_string_regex_combine to combine to regex strings
9550           into one so that they can be used as one regex string by
9551           the GNU regex library.  Added into the file
9552           lib/silcutil/silcutil.[ch].
9553
9554           Added silc_string_regex_match to match two strings.  It returns
9555           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9556
9557 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9558
9559         * Imported GNU regex to the soruce tree into lib/contrib.
9560           Fixed some compiler warning from the regex.c.
9561
9562 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9563
9564         * Fixed MOTD command in the server to work in router environment.
9565
9566         * Fixed the MOTD command in the client library to support
9567           the server argument in the command.
9568
9569         * Added `nickname_len' argument to the silc_idlist_add_client
9570           in the server, as the `nickname' argument may be binary data
9571           (it may be hash).
9572
9573         * Added silc_idlist_get_channels to return all channels from
9574           the ID list.
9575
9576         * Implemented LIST command to the server.  Affected file is
9577           silcd/command.c.
9578
9579         * Implemented the LIST command to the client library and on the
9580           user interface.
9581
9582         * Added [<user count>] argument to the LIST command reply.
9583           With private channels the user count is not shown.
9584
9585         * Updated TODO and README.
9586
9587 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9588
9589         * The client entry's data.registered must be TRUE even with
9590           global client entry on global client list.  The data.registered
9591           is used to check whether the client is anymore in the network,
9592           for example with WHOWAS command so it must be valid.
9593
9594         * Fixed the WHOWAS command in the server.  It now actually works
9595           in router environment.  Added function into silcd/command_reply.c
9596           silc_server_command_reply_whowas_save.
9597
9598         * Added silc_idlist_purge function to the silcd/idlist.c
9599           to periodically purge the ID Cache.
9600
9601         * Fixed INFO command in the server.  It works now in router
9602           environment.  Added <server name> argument to the INFO command
9603           reply.  Updated the protocol specs.
9604
9605         * Fixed minor bug in silc_idcache_purge to not purge if the
9606           expire value is zero.
9607
9608         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9609           they were buggy because of the WHOWAS information.
9610
9611         * Fixed local command MSG to handle the async resolving of
9612           the remote client properly.  It used to fail the first MSG.
9613           Affected file silc/local_command.c.
9614
9615         * Added `data_len' field to SilcIDCache context.
9616
9617 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9618
9619         * Update TODO.  Todo in commands in the server.
9620
9621 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9622
9623         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9624           used by routers as broadcast packet to inform other routers
9625           about the changed user mode.
9626
9627           Implemented the notify handling in the server.  Affected file is
9628           silcd/packet_receive.c.  Added the function
9629           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9630
9631         * Added new generic Channel Payload and deprecated the New Channel
9632           Payload.  The New Channel Payload is now the generic Channel
9633           Payload.
9634
9635         * Added new argument `mode' to the silc_server_send_new_channel
9636           as it is required in the Channel Payload now.
9637
9638         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9639           and created a new and real SilChannelPayload to represent the
9640           new generic Channel Payload.  Implemented the encode/decode
9641           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9642
9643         * Added silc_server_get_client_channel_list to return the list
9644           of channels the client has joined for WHOIS command reply.
9645           Affected file silcd/server.[ch].
9646
9647         * Implemented the channel list sending in the WHOIS command reply
9648           in server and in the client.
9649
9650           Implemented the channel list displaying on the user interface
9651           as well.  Affected file silc/client_ops.c.
9652
9653         * Added silc_channel_payload_parse_list to parse list of Channel
9654           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9655           Client for example can use this function to parse the list of
9656           channels it receives in the WHOIS command reply.  The caller
9657           must free the list by calling silc_channel_payload_list_free.
9658           Affected files lib/silccore/silcchannel.[ch].
9659
9660 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9661
9662         * Added one new argument <user mode> to the WHOIS command reply
9663           to return the mode of the user in SILC.  Updated the protocol
9664           specs.
9665
9666           Implemented it to the server and client.
9667
9668 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9669
9670         * Fixed the mode printing on the user interface on joining.
9671           Affected file silc/client_ops.c.
9672
9673         * Implemented the UMODE command and user modes in general to the
9674           client library and to the user interface.
9675
9676         * Implemented the UMODE command to the server.
9677
9678         * The server now sends UNKNOWN_COMMAND error status if client sends
9679           unknown command.  Affected file silcd/command.c.
9680
9681         * All server commands now handle the command identifier the right
9682           way when sending the command reply to the client.  The client can
9683           use to identify the command replies with the identifier.
9684
9685 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9686
9687         * Added silc_server_get_client_route to resolve the route to
9688           the client indicated by the client ID.  Affected file is
9689           silcd/server.[ch].
9690
9691         * Added silc_server_relay_packet as general function to relay
9692           packet to arbitrary destination.  This deprecates functions
9693           like _send_private_message_key, _relay_notify etc.  Affected
9694           file is silcd/packet_send.[ch].
9695
9696           Removed silc_server_send_key_agreement,
9697           silc_server_send_private_message_key and
9698           silc_server_packet_relay_notify functions from the file
9699           silcd/packet_send.[ch].
9700
9701         * Updated TODO.
9702
9703         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9704           server.  Affected file silcd/packet_receive.[ch].
9705
9706         * Implemented the KILL command to the client.  Implemented the
9707           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9708           Affected files lib/silcclient/command[_reply].c and
9709           lib/silcclient/client_notify.c.  Implemented the KILL notify
9710           printing in the user inteface.
9711
9712         * Fixed a lot silc_parse_nick memory leaks from the client
9713           library in the file lib/silcclient/command.c.
9714
9715         * Changed the silc_server_send_notify_on_channels's `sender'
9716           argument from SilcSocketConnection to SilcClientEntry to
9717           check the sender as entry and not as connection object and not
9718           to send to the client provided as argument.  The affected file
9719           is silcd/packet_send.[ch].
9720
9721         * The notify packets that are destined directly to the client used
9722           to not to be processed by the server.  Now changed that and the
9723           server processes all notify packets.  After relaying the packet
9724           to the client the notify packet is processed in the server.
9725
9726         * The silc_server_free_client_data now checks whether there is
9727           pending outgoing traffic for the client and purges the data to
9728           the network before removing the client entry.
9729
9730 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9731
9732         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9733           an client is killed from the SILC Network.  Updated the protocol
9734           specs accordingly.
9735
9736           Added new function silc_server_send_notify_killed to the
9737           silcd/packet_send.[ch].
9738
9739         * Added function silc_server_packet_relay_notify to relay notify
9740           packets that are destined directly to a client.  In this case
9741           the server does not process the notify packets but merely relays
9742           it to the client.  Affected file silcd/packet_send.[ch].
9743
9744           Added also silc_server_packet_process_relay_notify to check
9745           whereto relay the notify.  Affected file is
9746           silcd/packet_receive.[ch].
9747
9748         * Implemented the KILL command to the server.
9749
9750         * Updated TODO.
9751
9752         * Added the backup schema desgined last fall to the protocol
9753           specs for everyone to see.  The specification is in the
9754           *-spec-xx.txt draft and the packet type definitions for the
9755           backup routers is in *-pp-xx.txt draft.  Thusly, added also
9756           new packet type SILC_PACKET_CELL_ROUTERS.
9757
9758         * A big security problem in the implementation discovered.  The
9759           signoff of an client did not cause new channel key generation
9760           which it of course should've done.  The channel keys must be
9761           always re-generated when client leaves (or signoffs) the channel.
9762           The silc_server_remove_from_channels funtion now handles
9763           the channel key re-generation.
9764
9765         * Added `sender' argument to the silc_server_send_notify_on_channels
9766           to not to send the client provided as argument.  Affected file
9767           silcd/packet_send.[ch].
9768
9769 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9770
9771         * Implemented OPER and SILCOPER commands into the server and
9772           the client library.
9773
9774         * Added silc_auth_verify and silc_auth_verify_data to verify
9775           the authentication directly from the authentication payload.
9776           It supports verifying both passphrase and public key based
9777           authentication.  Affected file lib/silccore/silcauth.[ch].
9778
9779         * Added `hash' field to the SilcIDListData structure.  It is the
9780           hash negotiated in the SKE protocol.  Affected file is
9781           silcd/idlist.[ch].
9782
9783         * Slight redesigning of the SilcAuthPayload handling routines.
9784           Do not send SilcPKCS but SilcPublicKey as argument.
9785
9786         * Implemented the public key authentication support to the
9787           serverconfig.  The public key is loaded from the provided path
9788           and saved as authentication data to void * pointer.  Thus,
9789           changed the unsigned char *auth_data to void *auth_data;
9790
9791         * Fixed SHUTDOWN command to send the reply before the server
9792           is shutdown. :)  Affected file silcd/command.c.
9793
9794         * Fixed fatal bug in CONNECT command.  The hostname was invalid
9795           memory and server crashed.  Affected file silcd/command.c.
9796
9797         * Fixed fatal bug in CLOSE command.  The server_entry became
9798           invalid but was referenced later in the command.  Affected file
9799           silcd/command.c.
9800
9801 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9802
9803         * Fixed fatal bug in failure packet handling.  Server ignored
9804           the failure and thus crashed when it came.
9805
9806         * Updated TODO.
9807
9808 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9809
9810         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
9811           that the command may be executed only once in (about) 2 seconds.
9812           The old SILC_CF_LAG flag is same but allows command bursts up
9813           to five before limiting.
9814
9815           Added the support for CF_LAG and CF_LAG_STRICT flags to the
9816           server code.  Various commands now includes the CF_LAG_STRICT
9817           flag to disallow any kind of miss-use of the command.
9818
9819         * Fixed the silc_buffer_unformat to not to allocate any data
9820           if the length of the data is zero.  It used to allocate the
9821           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
9822
9823 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9824
9825         * Changed the format of AdminConnection configuration section
9826           in the server.  Added username of the admin to the format.
9827           Affected files silcd/serverconfig.[ch].
9828
9829           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
9830           to return admin configuration data by host, username and/or
9831           nickname.
9832
9833 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9834
9835         * Implemented WHOWAS command to the server.  Added the functions:
9836
9837           silc_server_command_whowas_parse,
9838           silc_server_command_whowas_send_reply,
9839           silc_server_command_whowas_from_client and
9840           silc_server_command_whowas_from_server
9841
9842         * Added <Client ID> argument to the WHOWAS command reply.  Updated
9843           the protocol specs accordingly.
9844
9845         * Implemented WHOWAS command and command_reply to the client
9846           library.
9847
9848           Implemented the WHOWAS printing on the user interface.
9849
9850 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9851
9852         * Added new argument to the WHOWAS command reply, the real name.
9853           It is an optional argument.  Updated the protocol specs.
9854
9855         * Added SilcIDCacheDestructor callback that is registered when
9856           the SilcIDCache is allocated.  The callback is called when
9857           an cache entry in the ID Cache expires, or is purged from the
9858           cache.  Added into lib/silccore/idcache.[ch].
9859
9860           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
9861           to destruct the client entries when the cache entry expires.
9862           Other ID Cache's in server and in the client library ignores
9863           the destructor.
9864
9865         * If the ID Cache entry's `expire' field is zero then the entry
9866           never expires.  Added boolean `expire' argument to the
9867           silc_idcache_add function in the lib/silccore/idcache.[ch].
9868           If it is TRUE the default expiry value is used.
9869
9870         * Added silc_server_free_client_data_timeout that is registered
9871           when client disconnects.  By default for 5 minutes we preserve
9872           the client entry for history - for WHOWAS command.
9873
9874 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9875
9876         * Added support to the server to enforce that commands are not
9877           executed more than once in 2 seconds.  If server receives
9878           commands from client more frequently, timeout is registered
9879           to process the commands.  Affected file silcd/command.c.
9880           Added new function silc_server_command_process_timeout.
9881
9882         * Changed NICK_NOTIFY handling in client library to check that
9883           if the client's nickname was changed, so there is no need to
9884           resolve anything from the server.
9885
9886         * Removed error printing from the WHOIS and IDENTIFY commands.
9887           If error occurs then it is ignored silently in the client library.
9888           The application, however, may map the received error to
9889           human readable error string.  The application currently maps
9890           the NO_SUCH_NICKNAME error to string.
9891
9892         * Made the command status message public to the application.  Moved
9893           them from lib/silcclient/command_reply.c to
9894           lib/silcclient/command_reply.h.  The application can map the
9895           received command status to the string with the
9896           silc_client_command_status_message function.
9897
9898         * Added check to the server to check that client's ID is same
9899           as the Source ID in the packet the client sent.  They must
9900           match.
9901
9902 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9903
9904         * Added dist-bzip hook to the Makefile.am to make bzip2
9905           compressed distributions.
9906
9907 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9908
9909         * Server now enforces the maximum length for the nickname and
9910           the channel as protocol specification dictates.  128 bytes for
9911           nickname and 256 bytes for channel name.
9912
9913         * Moved the WHOIS printing to the application.  The client libary
9914           does not print out the WHOIS information anymore, the application
9915           must do it.  Renamed silc_client_command_reply_whois_print to
9916           the silc_client_command_reply_whois_save.
9917
9918           The client's idle time is also sent to the application now, and
9919           the idle is shown on screen.
9920
9921         * Added silc_client_command_reply_identify_save to save the
9922           received IDENTIFY entries.
9923
9924         * Do not check for channel private keys in message sending and
9925           reception if the channel does not have the PRIVKEY mode set.
9926           Affected file lib/silclient/client_channel.c.
9927
9928 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9929
9930         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
9931           just surfaced after chaning the JOIN procedure.
9932
9933 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9934
9935         * Added silc_client_get_clients_by_list to get client entries
9936           from Client ID list, that is returned for example by JOIN
9937           and USERS command replies.  The application should use this
9938           function for example when JOIN command reply is received to
9939           resolve the clients already on the channel (library does not
9940           do that anymore as USERS command reply is not used in the JOIN
9941           procedure anymore).  Affected files lib/silcclient/silcapi.h and
9942           lib/silcclient/idlist.c.
9943
9944         * JOIN command reply and USERS command reply returns now SilcBuffer
9945           pointers instead of unsigned char pointers when returning
9946           the client list and mode list.
9947
9948         * Added <Client ID> argument to the JOIN command reply, mainly
9949           for the server to identify for which client the command was
9950           originally sent.  Updated protocol specs accordingly.
9951
9952         * Added SilcDlist private_key pointer to the SilcChannelEntry
9953           in the client to support the channel private keys.  Affected
9954           file is lib/silcclient/idlist.h.
9955
9956         * Added SilcChannelPrivateKey argument to the function
9957           silc_client_send_channel_message so that application can choose
9958           to use specific private ke if it wants to.  If it is not provided,
9959           the normal channel key is used, unless private keys are set.
9960           In this case the first (key that was added first) is used
9961           as the encryption key.
9962
9963         * Implemented the support for channel private key handling.
9964           Implemented the following functions:
9965
9966           silc_client_add_channel_private_key,
9967           silc_client_del_channel_private_keys,
9968           silc_client_del_channel_private_key,
9969           silc_client_list_channel_private_keys and
9970           silc_client_free_channel_private_keys
9971
9972           Affected file lib/silcclient/client_channel.c.
9973
9974         * Added the support for the private keys in the channel message
9975           sending and encryption and in the message reception and
9976           decryption.  Affected funtions are
9977           silc_client_send_channel_message and silc_client_channel_message.
9978
9979 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9980
9981         * Added SKE's key verify callback to the client library's
9982           KE protocol context. Affected files lib/silcclient/protocol.[ch].
9983
9984         * Removed the statement that server (or router) must send USERS
9985           command reply when joining to the channel so that the client
9986           knows who are on the channel.  Instead, the client list and
9987           client's mode list is now sent in the JOIN command reply to the
9988           client who joined channel.  This is better solution.
9989
9990         * Added function silc_server_get_users_on_channel and function
9991           silc_server_save_users_on_channel to the silcd/server.[ch].
9992
9993         * Removed function silc_server_command_send_users from the
9994           silcd/command.c.
9995
9996         * Do not show topic on the client library anymore.  The topic is
9997           sent in the command reply notify to the application and the
9998           application must show the topic now.
9999
10000 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10001
10002         * Added client searching by nickname hash into the IDENTIFY and
10003           WHOIS commands in the server as they were clearly missing from
10004           them.  Affected file is silcd/command.c.
10005
10006         * Fixed a bug in private message receiving in the client library.
10007           The remote ID was freed and it wasn't supposed, now it is
10008           duplicated.
10009
10010 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10011
10012         * Minor fix to the channel payload; allocate the data area, as it
10013           needs to be of specific length.
10014
10015         * If the key agreement port is zero then the operating
10016           system will define the bound port.  Affected files are
10017           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10018
10019         * Added new function silc_channel_payload_decrypt into the file
10020           lib/silccore/silcchannel.[ch].
10021
10022         * Moved the channel message etc, check from silc_packet_decrypt
10023           to applications.  The library calls now a generic
10024           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10025           when the packet is either normal or special.  This was done to
10026           allow more wide range of checking that was not allowed when
10027           the code was in library.  Now applications can do virtually any
10028           checks to the packet and return to the library the decision how
10029           the packet should be processed.  Affected files are
10030           lib/silccore/silcpacket.[ch].
10031
10032           Added silc_server_packet_decrypt_check to the server and
10033           silc_client_packet_decrypt_check to the client library.
10034
10035         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10036           to send with specified source and destination information.
10037
10038         * Channel message delivery between routers was broken after the
10039           channel key distribution was fixed earlier.  The channel key
10040           was used be to distributed to other routers as well which is not
10041           allowed by the protocol.  Now this is fixed and channel keys
10042           really are cell specific and the channel message delivery between
10043           routers comply with the protocol specification.
10044
10045         * Fixed various commands in server to check also the global list
10046           for the channel entry and not just the local list.  The affected
10047           file silcd/command.c.
10048
10049 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10050
10051         * Added assert()s to buffer formatting and unformatting routines
10052           to assert (if --enable-debug) when error occurs.  Affected
10053           file: lib/silcutil/silcbuffmt.c.
10054
10055         * Changed to auto-reconnect to check whether the remote host is
10056           router and register the re-connect timeout if it is.  It used
10057           to check that whether we are normal server, but router must do
10058           auto-reconnect with another router as well.  Affected file
10059           silcd/server.c.
10060
10061         * Removed the [<key len>] option from CMODE command as the cipher
10062           name decides the key length, nowadays.  See the defined ciphers
10063           from the protocol specification.
10064
10065         * Added [<hmac>] option to the CMODE command to define the HMAC
10066           for the channel.  Added SILC_CMODE_HMAC channel mode.
10067
10068         * Added [<hmac>] option for the JOIN command so that user can
10069           select which HMAC is used to compute the MACs of the channel
10070           messages.
10071
10072         * Added Hmac field to the Channel Message Payload.  The integrity
10073           of plaintext channel messages are now protected by computing
10074           MAC of the message and attaching the MAC to the payload.  The
10075           MAC is encrypted.  Now, it is clear that this causes some
10076           overhead to the size of the packet but rationale for this is that
10077           now the receiver can verify whether the channel message decrypted
10078           correctly and also when private keys are set for the channel the
10079           receiver can decrypt the packet with several keys and check from
10080           the MAC which key decrypted the message correctly.
10081
10082         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10083           lib/silccrypt/silccipher.[ch].
10084
10085         * Added silc_hash_len to return the digest length into the
10086           lib/silcrypt/silchash.[ch].
10087
10088         * Rewrote parts of Silc Channel Payload interface in the
10089           lib/silccore/silcchannel.[ch].  The encode function now also
10090           encrypts the packet and parse function decrypts it.
10091
10092 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10093
10094         * Fixed a minor formatting bug in the SKE's key material processing.
10095           It actually might have processed the keys wrong way resulting
10096           into wrong keys.
10097
10098         * Redefined the mandatory HMAC algorithms and added new algorithms.
10099           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10100           and hmac-md5 truncated to 96 bits.  The mandatory is now
10101           hmac-sha1-96.  Rest are optional (including the one that used
10102           to be mandatory).  Rationale for this is that the truncated HMAC
10103           length is sufficient from security point of view and can actually
10104           make the attack against the HMAC harder.  Also, the truncated
10105           HMAC causes less overhead to the packets.  See the RFC2104 for
10106           more information.
10107
10108         * Added new [hmac] configuration section.  The SKE used to use
10109           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10110           is of course wrong.  The official names that must be proposed in
10111           the SKE are the ones defined in the protocol specification
10112           (hmac-sha1-96 for example).  The user can configure any hmac
10113           using any hash function configured in the [hash] section.  At
10114           least, the mandatory must be configured.
10115
10116           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10117
10118         * Added HMAC list to the SKE proposal list.  It has now both
10119           hash algorithm list and HMAC list.  This makes the protocol
10120           incompatible with previous versions.  The SKE now seems to work
10121           the way it is supposed to work, for the first time actually.
10122
10123         * Defined plain Hash algorithms to the protocol specification.
10124           Added sha1 and md5.
10125
10126 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10127
10128         * Implemented support for key agreement packets into the server.
10129           Added functions silc_server_key_agreement and
10130           silc_server_send_key_agreement.  Other than these functions,
10131           server has nothing to do with this packet.
10132
10133         * Added support for private message key packets into the server.
10134           Added functions silc_server_private_message_key and
10135           silc_server_send_private_message_key.
10136
10137         * Updated TODO.
10138
10139         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10140           called in the protocol's final callback instead in the END
10141           protocol state.  This makes a little more sense and in the same
10142           time in client we can use the same protocol routines for normal
10143           key exchange and to key agreement packet handling as well.
10144
10145         * Added to both client's and server's KE protocol context the
10146           SilcSKEKeyMaterial pointer to save the key material.  We will
10147           bring the key material to the protocol's final callback by doing
10148           this.  The final callback must free the key material.
10149
10150         * Added SKE's packet_send callback into client's KE protocol
10151           context so that the caller can choose what packet sending function
10152           is used.  This way we can use different packet sending when
10153           doing normal SKE when doing key agreement packet handling (in
10154           the key agreement packet handling we do not want to encrypt
10155           the packets).
10156
10157         * Implemented the responder side of the key agreement routines
10158           in the client.  The client can now bind to specified port and
10159           accept incoming key negotiation.  The key material is passed
10160           to the application after the protocol is over.
10161
10162         * Implemented the processing of incoming Key Agreement packet
10163           in the client.  Added function silc_client_key_agreement to
10164           process the packet.
10165
10166         * Implemented the intiator side of the key agreement routines
10167           in the client.  The client can now initiate key agreement with
10168           another remote client.  The key material is passed to the
10169           application after the protocol is over.
10170
10171         * Created client_keyagr.c to include all the key agreement
10172           routines.
10173
10174         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10175           SILC_TASK_CALLBACK except that it is not static.
10176
10177         * Created client_notify.c and moved the Notify packet handling
10178           from the client.[ch] into that file.
10179
10180         * Created client_prvmsg.c and moved all private message and
10181           private message key routines from the client.[ch] into that file.
10182
10183         * Create client_channel.c and moved all channel message and
10184           channel private key routines from the client.[ch] into that file.
10185
10186         * Changed silc_client_get_client_by_id_resolve to resolve with
10187           WHOIS command instead of IDENTIFY command, in the file
10188           lib/silclient/idlist.c.
10189
10190 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10191
10192         * Implemented the SKE's responder side to the Client library.
10193
10194         * When FAILURE is received to the protocol do not trust it
10195           blindly.  Register a timeout to wait whether the remote closes
10196           the connection as it should do it, only after that process the
10197           actual failure.  This was changed to both client and server.
10198
10199         * Added client_internal.h to include some of the structures
10200           there instead of client.h in lib/silcclient/.
10201
10202         * Added function silc_task_unregister_by_callback to unregister
10203           timeouts by the callback function.
10204
10205 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10206
10207         * Some "Incomplete WHOIS info" errors has been appearing on the
10208           log files.  Took away the entry->userinfo check from WHOIS
10209           reply sending.  The entry->userinfo is now " " if client did not
10210           provide one.  I thought this was fixed earlier but something
10211           is wrong still.  Let's see if the error still appears.
10212
10213 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10214
10215         * Fixed a minor bug in the login when the channel key is
10216           re-generated in the server.  It used to generate the key in
10217           wrong order and thus caused problems in the channel traffic.
10218
10219         * Fixed a minor bug in channel key distsribution after
10220           KICK command.  The key was not sent to the router even though
10221           it should've been.
10222
10223 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10224
10225         * Added silc_ske_process_key_material_data as generic routine
10226           to process any key material as the SILC protocol dictates.  The
10227           function is used by the actual SKE library but can be used by
10228           applications as well.  This relates to the private message keys
10229           and the channel private keys since they must be processed the
10230           same way the normal SILC session keys.  The protocol dictates
10231           this.  Affected files: lib/silcske/silcske.[ch].
10232
10233           Added also silc_ske_free_key_material to free the
10234           SilcSKEKeyMaterial structure.
10235
10236         * Defined silc_cipher_set_key function to set the key for
10237           cipher without using the object's method function.  The affected
10238           files: lib/silccrypt/silccipher.[ch].
10239
10240         * Implemented silc silc_client_add_private_message_key,
10241           silc_client_add_private_message_key_ske,
10242           silc_client_del_private_message_key,
10243           silc_client_list_private_message_keys and
10244           silc_client_free_private_message_keys functions in the
10245           client library.
10246
10247           Added functions silc_client_send_private_message_key to send
10248           the Private Message Key payload and silc_client_private_message_key
10249           to handle incoming Private Message Key payload.
10250
10251         * Added Cipher field to the Private Message Key payload to set
10252           the cipher to be used.  If ignored, the default cipher defined
10253           in the SILC protocol (aes-256-cbc) is used.
10254
10255 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10256
10257         * Removed lib/silcclient/ops.h file.
10258
10259           Redefined parts of the SILC Client Library API. Created new
10260           file silcapi.h that deprecates the ops.h file and defines the
10261           published Client Library API.  Defined also private message key
10262           API and channel private key API into the file.
10263
10264           This is the file that the application must include from the
10265           SILC Client Library.  Other files need not be included by
10266           the application anymore.
10267
10268         * Added new key_agreement client operation callback and also
10269           defined the Key Agreement library API for the application.
10270
10271 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10272
10273         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10274           is used by clients to request key negotiation  between another
10275           client in the SILC network.  If the negotiation is started it
10276           is performed using the SKE protocol.  The result of the
10277           negotiation, the secret key material, can be used for example
10278           as private message key.
10279
10280           Implemented the Key Agreement payload into the files
10281           lib/silccore/silauth.[ch].
10282
10283 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10284
10285         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10286           and defined the key lengths for the algorithms.  Changed the
10287           code accordingly.  The default key length is now 256 bits.
10288
10289         * Fixed SKE key distribution function silc_ske_process_key_material
10290           when the key length is more than 128 bits.  The default key
10291           length in SILC is now 256 bits.
10292
10293         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
10294           to indicate unsupported algorithm.
10295
10296         * Renamed rijndael.c to aes.c and all functions as well.
10297
10298         * Fixed a long standing channel key setting bug in client library.
10299           Weird that it has never surfaced before.
10300
10301         * Fixed bug in channel deletion.  If the entire channel is removed
10302           then it must also delete the references of the channel entry
10303           from the client's channel list as the client's channel entry and
10304           the channel's client entry share same memory.
10305
10306 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10307
10308         * Implemented CONNECT and SHUTDOWN commands in the client.
10309
10310         * Implemented CLOSE command to the client.
10311
10312         * Added the function silc_idlist_find_server_by_name into the
10313           files silcd/idlist.[ch].
10314
10315           Added the function silc_idlist_find_server_by_conn into the
10316           files silcd/idlist.[ch].
10317
10318 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10319
10320         * DIE command was renamed to SHUTDOWN.  Updated the both code
10321           and protocol specs.
10322
10323         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
10324           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
10325
10326         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
10327           side.
10328
10329         * Added function silc_server_create_connection function to create
10330           connection to remote router.  My server implementation actually
10331           does not allow router to connect to normal server (it expects
10332           that normal server always initiates the connection to the router)
10333           so the CONNECT command is only good for connecting to another
10334           router.
10335
10336 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10337
10338         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
10339           or some other client was kicked from the channel.
10340
10341           Implemented the handling of the notify type to both client
10342           and server.
10343
10344           Implemented silc_server_send_notify_kicked to send the KICKED
10345           notify.  It is used to send it to the server's primary router.
10346
10347         * Implemented the KICK command into server and client.
10348
10349         * Added `query' argument to the silc_idlist_get_client function
10350           to indicate whether to query the client from server or not if
10351           it was not found.
10352
10353         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
10354           to indicate that the client is not channel founder.
10355
10356         * Updated TODO.
10357
10358 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10359
10360         * Removed the rng context from SilcPacketContext structure and
10361           changed that the packet routine uses the Global RNG API.
10362
10363 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10364
10365         * Added support for quit message that client can "leave" on the
10366           channel when it quits the SILC.  It is ditributed inside the
10367           SILC_NOTIFY_TYPE_SIGNOFF notify type.
10368
10369           Added silc_server_free_client_data that will take the
10370           signoff message as argument.
10371
10372         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
10373
10374 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10375
10376         * Updated parts of the protocol specification to keep it up
10377           to date.
10378
10379 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10380
10381         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
10382           payloads in one packet.
10383
10384         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
10385           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
10386           use now the new List flag.
10387
10388         * Also deprecated the following packet types: REPLACE_ID,
10389           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
10390
10391         * Added list support for Notify packet in server.
10392
10393         * Added silc_server_send_notify_channel_change to send the
10394           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
10395           the silc_server_send_replace_id.
10396
10397         * Added silc_server_send_notify_nick_change to send the
10398           NICK_CHANGE notify type.  Deprecates the function
10399           silc_server_send_replace_id.
10400
10401         * Added silc_server_send_notify_join to send the JOIN notify type.
10402           Deprecates the function silc_server_send_new_channel_user.
10403
10404         * Added silc_server_send_notify_leave to send LEAVE notify type.
10405           Deprecates the function silc_server_send_remove_channel_user.
10406
10407         * Added silc_server_send_notify_cmode and
10408           silc_server_send_notify_cumode to send CMODE and CUMODE notify
10409           types.  Deprecates the silc_server_send_set_mode function.
10410
10411         * Added SERVER_SIGNOFF notify type to indicate that server has
10412           quit.  This means that all clients on the channel from that
10413           server will drop.  This can be also used when netsplit happens.
10414
10415           Deprecated REMOVE_ID packet type since it is not needed anymore
10416           even from server.
10417
10418           Added silc_server_send_notify_server_signoff to send the
10419           SERVER_SIGNOFF notify type.  Deprecates the function
10420           silc_server_send_remove_id.
10421
10422           Added also silc_server_send_notify_signoff to send the
10423           SIGNOFF notify type.
10424
10425         * Employed the PKCS #1. It is the mandatory way to do RSA in the
10426           SILC protocol from this day on.  Changed the protocol
10427           specification as well.
10428
10429         * Added silc_server_send_notify_topic_set to send TOPIC_SET
10430           notify type.  It is used between routers to notify about
10431           topic changes on a channel.
10432
10433         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
10434           ID data.
10435
10436         * Partly updated the protocol specification to comply with the
10437           changes now made.  It is still though a bit outdated.
10438
10439         * The JOIN notify type now takes one extra argument <Channel ID>.
10440           The packet used to be destined to the channel but now the
10441           JOIN type may be sent as list thus it is impossible to
10442           destine it to any specific channel.  By adding this argument
10443           it is again possible.
10444
10445 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10446
10447         * Added CREDITS file.  The CHANGES and CREDITS file will appear
10448           in the distribution as well.
10449
10450 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10451
10452         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
10453           types in the server's silcd/packet_receive.c.
10454
10455         * Implemented CMODE and CUMODE to work in router environment.
10456
10457         * Fixed minor encoding and decoding buglet from the
10458           lib/silccore/silcmode.c.
10459
10460         * Fixed buffer overflow from lib/silcclient/command.c in USERS
10461           command parsing.
10462
10463 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
10464
10465         * Changed all SilcConfigServer* and silc_config_server* to
10466           SilcServerConfig* and silc_server_config*, respectively.
10467           Patch by Bostik.
10468
10469 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10470
10471         * Associated the ID (client or server ID) to the Authentication
10472           Payload to avoid any possibility of forging.  Updated the
10473           protocol specification and the code accordingly.
10474
10475 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10476
10477         * The RSA key length is now save to the RsaKey context in the
10478           key generation process in lib/silccrypt/rsa.c.  The key length
10479           is now used to figure out the maximum size of the block allowed
10480           to be encrypted/signed.
10481
10482         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
10483           is equivalent to the silc_mp_mp2bin but does not allocate any
10484           memory.
10485
10486         * Changed silc_mp_mp2bin API to take length argument.  If it is
10487           non-zero then the buffer is allocated that large.  If zero, then
10488           the size is approximated using silc_mp_sizeinbase, which however
10489           is not relieable.
10490
10491         * Created Global RNG API which is global RNG that application can
10492           initialize.  After initializing, any routine anywhere in the
10493           code (including library) can use RNG without allocating a new
10494           RNG object.  This was done to allow this sort of use of the
10495           RNG in code that has no chance to allocate RNG object.  All
10496           applications currently allocate this and many routines in the
10497           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10498
10499         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10500           it to use the Global RNG API.
10501
10502         * Defined Authentication Payload into protocol specification that
10503           is used during SILC session to authenticate entities.  It is
10504           used for example by client to authenticate itself to the server
10505           to obtain server operator privileges.
10506
10507           Implemented this payload into the lib/silccore/silcauth.[ch].
10508           Implemented also routines for public key based authentication
10509           as the new protocol specification dictates.
10510
10511           Moved definitions of different authentication methods from
10512           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10513
10514         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10515           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10516           silc_pkcs_verify_with_hash functions into the file
10517           lib/silccrypt/silcpkcs.[ch].
10518
10519 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10520
10521         * The client entry's userinfo pointer must be always valid.
10522           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10523           will fail since it requires the userinfo.  Now, the userinfo
10524           is allocated as "" if actual userinfo does not exist.  Actually,
10525           it must exist and it is totally Ok to drop client connections
10526           that does not announce the userinfo.  However, we will make
10527           this workaround for now.
10528
10529         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10530           to return the remote port by socket.
10531
10532 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10533
10534         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10535           SILC_SERVER_PENDING_EXEC and added an new macro
10536           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10537           data or when error occurs while processing the pending command.
10538
10539           Added new argument `destructor' into silc_server_command_pending
10540           and to the SilcServerCommandPending object.  This destructor is
10541           now called after calling the pending callback or if error occurs
10542           immediately.  If error occurs the actual pending callback won't
10543           be called at all - only the destructor.  The destructor may be
10544           NULL if destructor is not needed.
10545
10546           All this applies for client library code as well.  Similar
10547           changes were made there as well for the pending commands.
10548
10549           In the client, the application must now allocate the
10550           SilcClientCommandContext with the silc_client_command_alloc
10551           function.
10552
10553         * Added reference counter to the SilcServerCommandContext.  Added
10554           function silc_server_command_alloc and silc_server_command_dup
10555           functions.
10556
10557           Same type of functions added to the client library for the same
10558           purpose as well.
10559
10560         * Removed the cmd_ident from IDListData away since it is now
10561           global for all connections.  It is the command identifier used
10562           in command sending and with pending commands.  The affected file
10563           is silcd/idlist.h.
10564
10565         * Added reference counter to the SilcSocketConnection objecet to
10566           indicate the usage count of the object.  The object won't be
10567           freed untill the reference counter hits zero.  Currently only
10568           server uses this, and client ignores it.  The client must be
10569           set to use this too later.  The affected files are
10570           lib/silccore/silcsockconn.[ch].  Added also the function
10571           silc_socket_dup to increase the reference counter.
10572
10573           This was mainly added because it is possible that the socket
10574           is removed underneath of pending command or other async
10575           operation.  Now it won't be free'd and proper DISCONNECTING
10576           flags, etc. can be set to avoid sending data to connection that
10577           is not valid anymore.
10578
10579         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10580           the connection.  After that it sets SILC_SET_DISCONNECTED.
10581           It is, however, possible that the socket data is not still freed.
10582           The silc_server_packet_process now checks that data is not
10583           read or written to connection that is DISCONNECTED.  The socket
10584           get's freed when the reference counter hits zero.
10585
10586 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10587
10588         * Changed the client operation API: channel_message operation's
10589           `sender' is now the client entry of the sender, not the nickname
10590           and the `channel' is the channel entry, not the channel name.
10591
10592           In the private_message operation the `sender' is now also the
10593           client entry of the sender not the nickname.
10594
10595           Affected file is lib/silcclient/ops.h and all applications
10596           using the client operations.
10597
10598 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10599
10600         * Moved the calling of ops->connect() from connect_to_server_final
10601           into receive_new_id functin since that is the point when the
10602           client is actually allowed to send traffic to network.  The
10603           affected file is lib/silcclient/client.c.
10604
10605 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10606
10607         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10608           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10609           (if needs broadcasting) instead of broadcasting the packets one
10610           by one which would make a burst in the network traffic.
10611
10612         * Added `broadcast' argument to the functions in silcd/server.[ch]
10613           silc_server_create_new_channel[_with_id] to indicate whether
10614           to send New Channel packet to primary router.
10615
10616 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10617
10618         * Added new function into the silcd/server.[ch] files:
10619           silc_server_create_new_channel_with_id to create new channel with
10620           already existing Channel ID.
10621
10622         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10623           lib/silccore/silcpacket.h.  This packet is used t send list of
10624           Set Mode payloads inside one packet.  Server uses this to set
10625           the modes for the channels and clients on those channels, that it
10626           announced to the router when it connected to it.  The protocol
10627           specification has been updated accordingly.
10628
10629         * The silc_server_new_channel did not handle the packet coming
10630           from normal server as it normally does not send that.  However,
10631           when it announces its channels it does send it.  Implemented
10632           the support for that.
10633
10634         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10635           into the file lib/silccore/id.h.
10636
10637 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10638
10639         * Fixed memory leaks in the functions silc_idlist_del_client,
10640           silc_idlist_del_channel and silc_idlist_del_server in the file
10641           silcd/idlist.c.  All of those leaked like a sieve.
10642
10643         * Fixed some small memory leaks in the client's function
10644           silc_client_notify_by_server.
10645
10646         * Added functions into silcd/server.c: silc_server_announce_clients,
10647           silc_server_announce_channels and silc_server_announce_server.
10648           These functions are used by normal and router server to announce
10649           to its primary router about clients, channels and servers (when
10650           router) that we own.  This is done after we've connected to the
10651           router.
10652
10653           These functions effectively implements the following packet types:
10654           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10655           and SILC_PACKET_NEW_ID_LIST.
10656
10657         * Added new functions into the silcd/packet_receive.[ch]:
10658           silc_server_new_id_list, silc_server_new_channel_list and
10659           silc_server_new_channel_user_list to handle the incoming
10660           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10661
10662         * Added support of changing Channel ID in the function
10663           silc_server_replace_id.  If the server that announces a channel
10664           to the router already exists in the router (with same name but
10665           with different Channel ID), router is responsible to send
10666           Replace ID packet to the server and force the server to change
10667           the Channel ID to the one router has.
10668
10669         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10670           client that the Channel ID has been changed by the router.  The
10671           normal server sends this to the client.  Client must start using
10672           the new Channel ID as the channel's ID.
10673
10674           Implemented handling of this new type into lib/silcclient/client.c
10675           into the function silc_client_notify_by_server.
10676
10677         * Added new function silc_idlist_replace_channel_id into the files
10678           silcd/idlist.[ch] to replace the Channel ID.
10679
10680 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10681
10682         * Call silc_server_command_identify_check always when processing
10683           the IDENTIFY command in silcd/command.c
10684
10685 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10686
10687         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10688           send keepalive packets.  The packet can be sent by clients,
10689           servers and routers.
10690
10691           Added function silc_socket_set_heartbeat into the file
10692           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10693           If not set, the heartbeat is not performed.  The actual
10694           heartbeat is implemented in the low level socket connection
10695           library.  However, application is responsible of actually
10696           sending the packet.
10697
10698           Added silc_server_send_heartbeat to send the actual heartbeat
10699           packet into silcd/packet_send.[ch].  Server now performs
10700           keepalive with all connections.
10701
10702         * Added silc_task_get_first function into lib/silcutil/silctask.c
10703           to return the timeout task with shortest timeout.  There was a bug
10704           in task unregistration that caused problems.  TODO has been
10705           updated to include that task system must be rewritten.
10706
10707         * The client library will now resolve the client information when
10708           receiving JOIN notify from server for client that we know but
10709           have incomplete information.
10710
10711         * Rewrote parts of silc_server_remove_from_channels and
10712           silc_server_remove_from_one_channel as they did not remove the
10713           channel in some circumstances even though they should've.
10714
10715         * Encryption problem encountered in server:
10716
10717           The LEAVE command used to send the Channel Key packet to the
10718           router immediately after generating it.  However, the code
10719           had earlier sent Remove Channel user packet but not immediately,
10720           ie. it was put to queue.  The order of packets in the router
10721           was that Channel Key packet was first and Remove Channel User
10722           packet was second, even though they were encrypted in the
10723           reverse order.  For this reason, MAC check failed.  Now, this
10724           is fixed by not sending the Channel Key packet immediately but
10725           putting it to queue.  However, this is more fundamental problem:
10726           packets that are in queue should actually not be encrypted
10727           because packets that are sent immediately gets encrypted
10728           actually with wrong IV (and thus MAC check fails).  So, packets
10729           that are in queue should be encrypted when they are sent to
10730           the wire and not when they put to the queue.
10731
10732           However, the problem is that the current system has not been
10733           designed to work that way.  Instead, the packet is encrypted
10734           as soon as possible and left to the queue.  The queue is then
10735           just purged into wire.  There won't be any fixes for this
10736           any time soon.  So, the current semantic for packet sending
10737           is as follows:
10738
10739           o If you send packet to remote host and do not force the send
10740           (the packet will be in queue) then all subsequent packets to the
10741           same remote host must also be put to the queue.  Only after the
10742           queue has been purged is it safe again to force the packet
10743           send immediately.
10744
10745           o If you send all packets immediately then it safe to send
10746           any of subsequent packets through the queue, however, after
10747           the first packet is put to queue then any subsequent packets
10748           must also be put to the queue.
10749
10750           Follow these rules and everything works fine.
10751
10752 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10753
10754         * Added new function silc_server_remove_clients_by_server to
10755           remove all client entries from ID list when the server connection
10756           is lost.  In this case it is also important to invalidate all
10757           client entires as they hold the invalid server entry.  This
10758           fixes fatal bug when server has lost connection and will reconnect
10759           again.
10760
10761 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10762
10763         * Made some sanity checks to silc_server_daemonise like to check
10764           whether the requested user and group actually exists.
10765
10766         * Added sanity check to SKE's silc_ske_responder_finish to check
10767           that the public and private key actually is valid.
10768
10769         * Invalidate the client's nickname when receiving Replace ID
10770           packet and the Client ID is being replaced.  This means that the
10771           server will query the nickname if someone needs it (client)
10772           a bit later.
10773
10774         * Sort the ID Cache in client library when the ID Cache data
10775           has changed (needs sorting).
10776
10777         * Do not allow for SILC client to create several connections to
10778           several servers.  The client does not support windows right now
10779           and generating multiple connections causes weird behaviour.
10780
10781           Irssi-silc client does support windows and can handle several
10782           connections without problems, see: www.irssi.org and SILC plugin.
10783
10784         * Fixed some places where client was added to the IDList.  The
10785           rule of thumb is following (in order to get everything right):
10786           If the client is directly connected local client then the
10787           `connection' argument must be set and `router' argument must be
10788           NULL to silc_idlist_add_client function.  If the client is not
10789           directly connected client then the `router' argument must
10790           bet set and the `connection' argument must be NULL to the
10791           silc_idlist_add_client function.
10792
10793         * The funtion silc_server_packet_send_local_channel actually did
10794           not check whether the client was locally connected or not.  It
10795           does that now.  Fixed a bug related to LEAVE command.
10796
10797         * Fixed Remove Channel User payload parsing bug in server's
10798           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
10799
10800         * The server's silc_server_save_channel_key now checks also the
10801           global ID list for the channel as it might not be in the local
10802           list.  Fixed a bug related to LEAVE command.
10803
10804         * Is this the end of the [<unknown>] buglet that has been lurking
10805           around for a long time?  A little for loop fix in server's
10806           silc_server_command_whois_parse that is used by both IDENTIFY
10807           and WHOIS command.  At least, this was a clear bug and a cause
10808           of one type of [<unknown>] buglet.
10809
10810         * WHOIS and IDENTIFY commands call the function
10811           silc_server_command_[whois/identify]_check function even if
10812           we are not router server.
10813
10814 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10815
10816         * Added --with-gmp configuration option.  If set the GMP
10817           is always compiled in the SILC source tree.  If not set then
10818           it is checked whether the system has the GMP3 installed.  If
10819           it has then the GMP won't be compiled (the system's headers
10820           and library is used), if it doesn't have it then the GMP is
10821           compiled in the SILC source tree.
10822
10823 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10824
10825         * Changed RSA private exponent generation to what PKCS #1
10826           suggests.  We try to find the smallest possible d by doing
10827           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
10828           not security fix but optimization.
10829
10830 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10831
10832         * Added new config entry [Identity] to fork the server and run
10833           it as specific user and group.  A patch from Bostik.
10834
10835         * Imported Dotconf configuration library into lib/dotconf.
10836           This will be used to create the SILC configuration files later.
10837           It will appear in the distsribution after this commit.
10838
10839 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10840
10841         * A big code auditing weekend happening.  Auditing code for
10842           obvious mistakes, bugs and errors.  Also, removing any code
10843           that is obsolete.
10844
10845           Removed files for being obsolete:
10846
10847           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
10848           inline in the file lib/silcutil/silcbuffer.h)
10849
10850           o lib/silcutil/silcbufutil.c (the header has inline versions)
10851
10852           Changed code to fix possible error conditions:
10853
10854           o The buffer formatting routines now check that the destination
10855           buffer really has enough space to add the data.  This applies for
10856           both buffer formatting and unformatting
10857           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
10858           unformatting was changed to accomodate following rules:
10859           XXX_*STRING_ALLOC will allocate space for the data into the pointer
10860           sent to the function while XXX_*STRING will not allocate or copy
10861           the data into the buffer.  Instead it sets the pointer from the
10862           buffer into the pointer sent as argument (XXX_*STRING used to
10863           require that the pointer must be allocated already).  This change
10864           makes this whole thing a bit more consistent and more optimized
10865           (note that the data returned in the unformatting with XXX_*STRING
10866           must not be freed now).  The routines return now -1 on error.
10867
10868           o Tried to find all code that use buffer_format and buffer_unformat
10869           and added return value checking to prevent formatting and
10870           especially unformatting errors and possible subsequent fatal
10871           errors.
10872
10873           o Changed ske->x and ske->KEY to mallocated pointers in
10874           lib/silcske/silcske.h.  Fixed possible data and memory leak.
10875
10876           o Added return value checking to all *_parse* functions.  Fixed
10877           many memory leaks as well.
10878
10879           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
10880           so that buffer overflows would not happen.  All code now also
10881           checks the return value as it can fail.
10882
10883 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10884
10885         * Added reconnection support to server if the normal server looses
10886           its connection to the router (for example if router is rebooted).
10887           The server performs normal reconnection strategy implemented
10888           to the server.  Affected file silcd/server.c.
10889
10890 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10891
10892         * Added new packet type SILC_PACKET_SET_MODE that is used to
10893           distribute the information about changed modes (for clients,
10894           channels and clients channel modes) to all routers in the
10895           network.  Updated the protocol specification accordingly.
10896
10897           Added functions into silcd/packet_send.c and
10898           silcd/packet_receive.c: silc_server_send_set_mode,
10899           silc_server_set_mode.
10900
10901           Added new files silcmode.[ch] into lib/silccore that implements
10902           the encoding and decoding of Set Mode Payload.  Added new type
10903           SilcSetModePayload.  Moved the definitions of different modes
10904           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
10905
10906 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10907
10908         * Oops, a little mistake in server's connection authentication
10909           protocol.  The protocol is not ended with FAILURE but with
10910           SUCCESS if the authentication is Ok. :)  Affected file is
10911           silcd/protocol.c.
10912
10913         * Implemented NICK_CHANGE notify handling in server in the file
10914           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
10915           the local clients on the channel.  After the changing nickname
10916           in router environment snhould work and the [<unknown>] nickname
10917           should appear no more.
10918
10919           The silc_server_replace_id function that receives the Replace ID
10920           payload now sends the NICK_CHANGE notify type also in the file
10921           silcd/packet_receive.c
10922
10923         * Changed WHOIS and IDENTIFY command to support the maximum amount
10924           of arguments defined in protocol specs (3328 arguments).  This
10925           fixed a bug that caused problems when there were more than three
10926           users on a channel.
10927
10928 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10929
10930         * Added extra parameter, command identifier, to the
10931           silc_client_send_command so that explicit command identifier
10932           can be defined.
10933
10934           Changed that ID list routines uses specific command identifier
10935           when sending WHOIS/IDENTIFY requests to the server so that they
10936           can be identified when the reply comes back.
10937
10938           Affected files lib/silcclient/command.[ch],
10939           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
10940
10941         * Added `sender' argument to silc_server_packet_send_to_channel
10942           to indicaet the sender who originally sent the packet to us
10943           that we are now re-sending.  Ignored if NULL.  Affected file
10944           silcd/packet_send.[ch].
10945
10946         * Added some server statistics support in silcd/server_internal.h
10947           SilcServerStatistics structure and around the server code.  Also
10948           send some nice statistics information when client is connecting
10949           to the client.
10950
10951 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10952
10953         * Fixed channel ID decoding in server's JOIN command reply in
10954           silcd/command_reply.c
10955
10956         * Fixed braodcasting of replace ID payload to not to send it if
10957           we are standalone server in silcd/packet_receive.c.
10958
10959         * Fixed all channel message sending routines to not to send
10960           packets to clients that has router set, since they are routed
10961           separately in the same function earlier.  Affects file
10962           silcd/packet_send.c and all channel packet sending functions.
10963
10964         * In USERS reply, res_argv[i] are not allocated, the table
10965           is allocated.  Thus changed that free the table, not its
10966           internals.
10967
10968         * In server's whois_check and identify_check if the client is
10969           locally connected do not send any WHOIS commands - they are not
10970           needed.
10971
10972 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10973
10974         * Fixed some minor bugs in client when sending WHOIS command.  The
10975           arguments was in wrong order.
10976
10977         * Removed statis function add_to_channel from server in
10978           silcd/command.c that was previously used with the joining but
10979           is obsolete now.
10980
10981         * Tested USERS command in router environment successfully with two
10982           routers, two servers and two clients.
10983
10984 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10985
10986         * Reorganized the USERS command and command reply in client library
10987           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
10988           When the command is given by user we register a pending command
10989           callback that will reprocess the command after the reply has been
10990           received from the server.  When reprocessing the packet we then
10991           display the information.  Thus, the USERS information is displayed
10992           now in the command callback instead of in the command reply
10993           callback.  The processing of the command is same as previously
10994           when server has sent the command reply in the JOINing process.
10995
10996         * Added to USERS command in silcd/command_reply.c to join the client,
10997           we didn't use to know about, to the channel after we've created
10998           a client entry for it.  Also, for clienet we did know already still
10999           check whether it is on the channel or not and add it if not.
11000
11001         * Removed silc_server_command_join_notify as the function and its
11002           use was obsolete.
11003
11004 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11005
11006         * Changed the client's pending command handling to the same as the
11007           server's pending command handling.  It is also now possible to
11008           execute command reply functions from other command reply
11009           function as the function callbacks for commands and command
11010           replies are one and same.  The pending commands are not static
11011           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11012           in client connection context.  Thus, pending commands are server
11013           connection specific as it is convenient.
11014
11015           Changed the function silc_client_command_pending and
11016           silc_client_command_pending_del and added new function
11017           silc_client_command_pending_check.  Removed the
11018           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11019           macros.
11020
11021         * Added cmd_ident, current command identifier, to the client
11022           connection context in lib/silcclient/client.h to keep track on
11023           command identifiers used in command sending.  Client's command reply
11024           function handling now supports the mandatory command identifiers.
11025
11026         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11027           funtions in client to fully support pending command callbacks.
11028
11029         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11030           as one of the arguments to the application in the command reply
11031           client operation.
11032
11033         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11034           before first releasing SILC but came back.  Now it is removed again
11035           and should come back nomore.  The FORWARDED flag was used only
11036           by the JOINing procedure by forwarding the command packet to router.
11037           Now, the JOINing procedure has been changed to more generic (due
11038           to various router environment issues) and FORWARDED is not needed
11039           anymore for anything.  The protocol specification is yet to be
11040           updated.
11041
11042           Now, removed silc_server_packet_forward from server and the flag
11043           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11044
11045 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11046
11047         * Renamed NAMES command to USERS command.  The NAMES was named that
11048           due to historical reasons.  Now it is renamed.  Also, rewrote
11049           parts of the USERS command.  The nickname list is not sent anymore
11050           by the server.  Only Client ID and mode lists are sent in the USERS
11051           command.  Changed this also to the protocol specification.
11052
11053           The client now resolves the names and stuff after it receives
11054           the USERS list from the server when joining to the channel.
11055
11056         * WHOIS and IDENTIFY commands has been changed to support multiple
11057           Client ID's per command.  One can now search for multiple users
11058           in the network by sending only one WHOIS or IDENTIFY command.
11059           Changed the code and the protocol specifications.
11060
11061         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11062           uses silc_server_command_whois_parse to parse the request. */
11063
11064         * If normal server, do not parse the WHOIS and IDENTIFY requests
11065           before sending it to the router.  Saves some time.
11066
11067 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11068
11069         * Fixed JOIN command on client library.  Wrong number of arguments
11070           used to crash the client.
11071
11072         * Added silc_server_channel_has_global function to check whether
11073           channel has global users or not.
11074
11075         * Added silc_server_channel_has_local function to check whether channel
11076           has locally connected clients on the channel.
11077
11078         * The silc_server_remove_from_one_channel now checks whether the
11079           channel has global users or not after given client was removed from
11080           the channel.  It also checks whether the channel has local clients
11081           on the channel anymore.  If it does not have then the channel entry
11082           is removed as it is not needed anymore.
11083
11084         * The silc_server_notify now checks on JOIN notify whether the joining
11085           client is one of locally connected or global.  If it is global then
11086           the channel has now global users on the channel and that is marked
11087           to the channel entry.  Also, it now saves the global client to
11088           global list who is joining and JOINs it to the channel.  This is
11089           for normal server, that is.
11090
11091           Changed silc_server_send_notify_on_channel,
11092           silc_server_packet_relay_to_channel and
11093           silc_server_packet_send_to_channel check if we are normal server
11094           and client has router set (ie. global client) do not send the
11095           message to that client, as it is already routed to our router.
11096
11097         * Implemented LEAVE notify type handling in silc_server_notify
11098           function.
11099
11100         * Tested LEAVE command in router environment successfully.  Tested
11101           with two routers, two servers and two clients.
11102
11103         * Updated TODO.
11104
11105         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11106
11107         * Implemented SIGNOFF notify type handling in silc_server_notify
11108           function.
11109
11110         * silc_server_remove_id now removes the client entry from all channels
11111           it has joined and thusly sends SIGNOFF notify type.
11112
11113         * Rewrote the NAMES list generation in server by removing two excess
11114           loops.  The lists are created now inside one loop.
11115
11116 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11117
11118         * silc_server_remove_channel_user checks now also global list
11119           for channel and client.
11120
11121         * silc_server_new_channel_user checks now both local and global
11122           list for channel and client.  Fixed a bug in client id decoding.
11123           Used to decode wrong buffer.
11124
11125         * silc_server_channel_message checks now both local and global
11126           list for channel entry.
11127
11128         * Tested channel joining (hence JOIN) in router environment
11129           successfully.  Tested with two routers, two servers and two
11130           clients.
11131
11132         * Tested channel message sending in router environment successfully.
11133
11134 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11135
11136         * Added silc_server_save_channel_key into server.[ch] to save the
11137           received channel key in Channel Key payload processing. It is
11138           also used in JOIN command reply handling.
11139
11140           Equivalent function silc_client_save_channel_key added into
11141           client.[ch] into client library.
11142
11143         * Changed JOIN command reply to send information whether the channel
11144           was created or not (is existing already) and the channel key
11145           payload.  Changed protocol specs accordingly.
11146
11147         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11148           the request was sent by ID and not by nickname.  Crashed on
11149           NULL dereference.
11150
11151 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11152
11153         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11154           now correctly save the received data.
11155
11156         * silc_server_free_sock_user_data now notifies routers in the
11157           network about entities leaving the network.
11158
11159           At the same time implemented functions silc_server_remove_id
11160           and silc_server_send_remove_id to receive and send REMOVE_ID
11161           packets.  The packet is used to notify routers in the network
11162           about leaving entities.  The ID removed will become invalid in
11163           the network.
11164
11165         * Added function silc_idlist_del_server into server. Removes and
11166           free's server entry from ID list.
11167
11168         * silc_server_private_message function now checks, if we are router,
11169           that the destination ID really is valid ID, naturally.
11170
11171         * In router when NEW_ID packet is received (for new client) the
11172           hash of the Client ID is saved in the ID Cache but the
11173           client->nickname is set to NULL, instead of putting the hash
11174           to it as well.
11175
11176           IDENTIFY command now also checks that client->nickname must be
11177           valid. If it is not if will request the data from the server who
11178           owns the client.  Added new function
11179           silc_server_command_identify_check.
11180
11181         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11182           to set the command to already allocated Command Payload.
11183
11184         * Tested private message sending in router environment with two
11185           routers, two servers and two clients.  Fixed minor bugs and now
11186           it works fine.
11187
11188         * Fixed segfault from client's NAMES command. Used to crash if
11189           not on any channel.
11190
11191         * Forwarded packets must not be routed even if it is not destined
11192           to the receiver.  Changed server code comply with this.
11193
11194 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11195
11196         * Added `require_reverse_mapping' boolean value to ServerParams
11197           structure. If TRUE (not default) the server will require that
11198           the connecting host has fully qualified domain name.
11199
11200           If the reverse mapping is not required and hostname could not be
11201           found the IP address is used as hostname.
11202
11203 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11204
11205         * Implemented version string checking to both client and server.
11206           The check is incomplete currently due to the abnormal version
11207           strings used in development version of SILC.
11208
11209         * Changed all command functions in server to use the new
11210           CHECK_ARGS macro.
11211
11212 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11213
11214         * Changed char *data to unsigned char *data in ID Cache system to
11215           support binary data as ID Cache data. Changed code to support
11216           binary data in lib/silccore/idcache.c.
11217
11218         * Renamed silc_server_packet_relay_command_reply to
11219           silc_server_command_reply as it is normal packet receiving
11220           function. Rewrote the function to accept command replys for
11221           servers and not only for clients.
11222
11223         * Mark remote router always as registered server if we are connecting
11224           to it.  Otherwise, commands sent by the router to us are ignored.
11225
11226         * All ID List find routines now returns the ID Cache Entry pointer
11227           as well if requested.
11228
11229         * WHOIS command works now in router environment, tested with two
11230           routers, two servers and two clients.
11231
11232         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11233           in router environment (as it is almost equivalent to WHOIS) but
11234           hasn't been tested thoroughly.  Added new functions:
11235
11236           silc_server_command_identify_parse
11237           silc_server_command_identify_send_reply
11238           silc_server_command_identify_from_client
11239           silc_server_command_identify_from_server
11240
11241         * Disabled route cache adding because adding two different ID's with
11242           same IP replaces the old cache entry thus giving wrong route.
11243           The entry->router->connection is always the fastest route anyway
11244           so route cache may not be needed.  Of course, new routes maybe
11245           established after receiving the ID when the entry->router->connection
11246           might not be anymore the most optimal.
11247
11248 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11249
11250         * Add route cache for received ID for fast routing.
11251
11252         * Added silc_server_packet_route to route received packet on router
11253           that is not destined to us.
11254
11255         * Renamed silc_server_get_route to silc_server_route_get.
11256
11257         * Added id_string and id_string_len fields into SilcServer to
11258           include encoded ServerID for fast comparing without excess
11259           encoding of the ID's.
11260
11261         * Cleaned up WHOIS command on server side. Added following static
11262           functions:
11263
11264           silc_server_command_whois_parse
11265           silc_server_command_whois_check
11266           silc_server_command_whois_send_reply
11267           silc_server_command_whois_from_client
11268           silc_server_command_whois_from_server
11269
11270         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11271           arguments in command replies. All command functions should be
11272           updated to use this macro.
11273
11274 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11275
11276         * Minor typo fixes on command reply handling on server.
11277
11278 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11279
11280         * Added silc_server_command_add_to_channel internal routine to add
11281           the client to the channel after router has created the channel and
11282           sent command reply to the server.
11283
11284         * Added generic silc_server_send_command to send any command from
11285           server.
11286
11287         * Use static buffer with ID rendering instead of duplicating data.
11288
11289 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11290
11291         * Fixed a channel user mode bug when joining to a channel server gave
11292           everybody channel founder rights, oops.
11293
11294         * We mark ourselves as the router of the incoming server connection
11295           if we are router ourselves.  This way we can check in some packet
11296           sending functions whether it is locally connected server.  For
11297           incoming router connections we put NULL.
11298
11299         * For router sending packets locally means now always sending the
11300           packet cell wide; to local clients and local servers.  For normal
11301           server sending packet locally means sending it to only local
11302           clients.
11303
11304         * Fixed the JOIN command to really work in router environment.  If the
11305           channel is created it is always created by the router.  Router is
11306           also responsible of making the initial joining to the channel,
11307           sending JOIN notify to the sending server and distributing
11308           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
11309           does not exist server doesn't do anything else but forward the
11310           command to the router which performs everything.
11311
11312         * Added silc_server_send_channel_key function to send the Channel Key
11313           payload.
11314
11315         * Added silc_server_create_channel_key to create new channel key.  The
11316           channel key is now re-generated everytime someone joins or leaves
11317           a channel, as protocol dictates.  Note: channel->key_len is the
11318           key length in bits.
11319
11320 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11321
11322         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
11323           packet_receive.[ch] to separate packet sending and receiving
11324           routines.  The server.[ch] now includes everything else including
11325           actual packet processing (writing and reading data) and other
11326           server issues.
11327
11328           Renamed silc_server_private_message_send_internal to
11329           silc_server_send_private_message.  The routine is still though
11330           used only to relay private messages as server does not send
11331           private messages itself.
11332
11333           Renamed silc_server_new_channel to silc_server_create_new_channel
11334           and added new function sicl_server_new_channel that handles the
11335           incoming New Channel packet.  Added also new sending function
11336           silc_server_send_new_channel to send New Channel Payload.
11337
11338         * Added new function silc_server_notify to process incoming notify
11339           packet to the server/router. Server may then relay the notify
11340           to clients if needed.
11341
11342         * Added new function silc_server_new_channel_user to process incoming
11343           New Channel User packet.  Router will redistribute the packet and
11344           send JOIN notify to its local clients and locally connected servers
11345           if needed.  Normal server will send JOIN notify to its local client
11346           on same channel when received this packet.  Added also corresponding
11347           sending function silc_server_send_new_channel_user to sent the
11348           payload.
11349
11350         * Added boolean route argument to send_notif_to_channel and
11351           packet_send_to_channel functions to attempt to route the packet
11352           if it is TRUE and send only locally if it is FALSE.
11353
11354 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11355
11356         * silc_server_replace_id now broadcasts the received replace ID
11357           packet if it is not broadcast packet already. The router must
11358           broadcast to inform other routers about changed ID.
11359
11360         * Added backpointer to server's router into SilcServer context in
11361           silcd/server_internal.h.
11362
11363         * Fixed silc_server_packet_broadcast to send correct broadcast
11364           packets.
11365
11366         * The channel key is now distributed to the local client as soon
11367           as it is received from the router (in router environment) so that
11368           no other packet may be sent for the channel until client has
11369           received the key.
11370
11371         * silc_server_remove_channel_user now broadcasts the received
11372           Remove Channel User packet if it is not broadcast packet already.
11373           The router must broadcast to inform other routers about removed
11374           channel user.
11375
11376         * Added users field into SilcPacketContext that is a reference count
11377           of the context.  One can increase the reference count by calling
11378           silc_packet_context_dup which is now changed to just increase the
11379           reference count instead of duplicating the data.  The reference
11380           count is decresed by calling silc_packet_context_free that will
11381           free the data after the reference count hits zero.
11382
11383           For now on the packet context and everything allocated into it
11384           (including the raw packet from network) must be freed by calling
11385           the new silc_packet_context_free function.  Added also new function
11386           silc_packet_context_alloc that must be used now to allocate the
11387           context.  This also means that if a routine is asynchronous from
11388           silc_[client/server]_packet_parse_type the packet context must
11389           be duplicated by calling silc_packet_context_dup.  Otherwise it
11390           gets free'd after silc_[client/server]_packet_parse_type returns.
11391           Also, one must remember that if packet is duplicated then its
11392           reference count must be decresed by calling the free function as
11393           many times as it was duplicated.
11394
11395         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
11396           from both client and server.
11397
11398 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11399
11400         * Made joining to a channel working in router environment.
11401
11402         * Cleaned up JOIN command on server side and create function
11403           silc_server_command_join_channel internal routine to make the
11404           joining happen.
11405
11406 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11407
11408         * Changed silc_command_pending list to SilcDList.  Also, added
11409           `ident' field to SilcServerCommandPending structure to identify
11410           the reply and to call correct callback.
11411
11412           Added silc_server_command_pending_check function to replace the
11413           corresnponding macro.  The silc_command_pending list is not
11414           extern anymore.
11415
11416         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
11417           to set identifier to previously allocated Command Payload.  It
11418           is used to set identifier for command when resending Command
11419           Payload.
11420
11421         * Added silc_command_payload_encode_payload to encode Command
11422           Payload buffer from SilcCommandPayload structure.
11423
11424         * Added silc_argument_payload_encode_payload to encode Argument
11425           payload buffer from SilcArgumentPayload structure.
11426
11427 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11428
11429         * Changed WHOIS command to support router connection on server side.
11430           The whois request is always sent to router unless the server is
11431           standalone server.  After server has received the reply from the
11432           router will it send the reply to the client.
11433
11434         * Added silc_server_packet_broadcast into silcd/server.[ch] to
11435           broadcast received broadcast packet.  The function is used only
11436           by router.  The broadcast packet is always sent to the router's
11437           primary route.
11438
11439         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
11440           render given ID to printable string, for log files for example.
11441
11442 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11443
11444         * Made basic router to router connections working.  At least they
11445           can now connect to each other but nothing really works the way
11446           they are supposed - yet.
11447
11448         * Added new initiator token to RouterConnection configuration
11449           file in silcd/serverconfig.[ch].  It is used to tell whether we
11450           are the initiator to the remote router or whether we'll expect
11451           the other end to connect.
11452
11453         * Moved registering of listener task to silc_server_init, hence
11454           the server starts listenning as soon as it is run, even if it
11455           does not have connections to other routers.  Let's see how well
11456           this will work.
11457
11458         * Changed default connection retry timeouts for more suitable in
11459           silcd/server.h.
11460
11461         * Removed cipher and such arguments from silc_idlist_add_client
11462           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
11463           Added new function silc_idlist_add_data to add the keys and stuff
11464           to any ID entry.
11465
11466         * Added SilcIDListData structure and added it to SilcClientEntry
11467           and SilcServerEntry as their first field in the structure.  This
11468           way we can explicitly cast the ID entries to the SilcIDListData
11469           structure and get common data for the entries.  In past, we had
11470           to first check what type of connection it is and then cast it to
11471           correct ID entry type.  Now, we can directly cast the opaque
11472           pointer to the SilcIDListData (no matter what ID entry it actually
11473           is) and get the data needed.
11474
11475 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11476
11477         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
11478           in some circumstances even if threre were timeout tasks, though not
11479           IO tasks, but tasks anyway.  Now fixed.
11480
11481         * Defined SilcServerConnection structure to hold connection specific
11482           stuff about directly connected servers and routers.  The definition
11483           is currently in silcd/server_internal.h.  I thought about having
11484           a bit more important role fro this struct but for now it is used
11485           only when connecting to other server (or router actually).
11486
11487         * Added connecting retry support in server when connecting to
11488           router(s).  The retry feature implement exponential backoff
11489           algorithm.  Also, added SilcServerParams structure to hold default
11490           parameters for server.  For now, it include these retry settings
11491           and are hard coded.  After server is moded to be as Silc Server
11492           Library this structure will be more important.
11493
11494 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11495
11496         * Changed client librarys channel->clients table to SilcList and
11497           changed code accordingly.
11498
11499 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11500
11501         * Changed client's channel table to SilcList and changed code
11502           accordingly.  Also changed SilcChannelClientEntry to include back-
11503           pointer to the channel so that client entry can use that structure
11504           as list as well and we have fast cross-reference to the channel.
11505           This change dramatically decreased the complexity of channel
11506           handling with client entry and vice versa (removed one extra
11507           loop when searching for channel entry from many functions).
11508
11509         * Changed server->sim from table to SilcDList and changed code
11510           accordingly.
11511
11512         * NAMES command can now be used from user interface.  It will show
11513           the user list on the channel, neatly.
11514
11515         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11516           Code now saves realname of the user if it becomes available.
11517
11518         * Renamed configure.in to configure.in.pre and made ./prepare
11519           script to automatically add correct version string to
11520           configure.in which it creates from configure.in.pre.
11521
11522 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11523
11524         * NAMES command reply now shows users mode with the nickname when
11525           joining to channel.
11526
11527         * Moved silc_client_ch[u]mode[_char] functions from
11528           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11529           place sucks, they are utility functions and should be in some
11530           other file.
11531
11532         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11533
11534         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11535           cras.
11536
11537 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11538
11539         * Updated README.
11540
11541         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11542           a very good list library that is currently used in the SILC.  Defined
11543           SilcList API over the library because I didn't like the API very
11544           much.  See lib/trq/silclist.h for the API and examples of how to
11545           use the API.  Fixed various places in the code to use the new
11546           SilcList API. The SilcList is meant for lists that has a structure
11547           already defined as a list.  It is not suitable to add just some
11548           context to the list (in TRQ, the context is the list actually).
11549
11550           So, I defined SilcDList that can be used for the purpose where
11551           predefined list structure does not exit.  This can be used as
11552           such list.  Now some context just can be added to the SilcDList.
11553           Currently this list is not used in the SILC just yet, though there
11554           are a lot places where this can replace dynamically allocated
11555           tables and I will fix these places, later, to use SilcDList.
11556           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11557           and use TRQ internally).
11558
11559           Also fixed some annoying warning messages that the original TRQ
11560           code generated.  Also minor changes to TRQ's Makefile.in.
11561
11562         * Added support for querying by Client ID to both WHOIS and
11563           IDENTIFY commands into server, as required by the protocol.
11564
11565         * Removed method function pointers from SilcBuffer structure. They
11566           weren't used to anything and just increased the context size for
11567           no good reason.  This change also made silc_buffer_alloc and
11568           silc_buffer_free functions inline functions.
11569
11570         * Disabled command flooding detection support until it's fixed so
11571           that it accepts commands in but does not execute them more than once
11572           in two seconds.
11573
11574         * Added silc_net_localhost(), to return local hostname, into
11575           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11576           that must be initialized before calling silc_client_init.
11577
11578         * Added new function: silc_server_send_notify_on_channels to send
11579           notify messages to all channels client has joined.  It is assured
11580           that the message is sent only once per client.
11581
11582         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11583           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11584           function is generic and is used by server as well, not only by
11585           the logging routines.
11586
11587         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11588           the provided version string was not acceptable.  Added new function:
11589           silc_ske_check_version into lib/silcske/silcske.h.  The function
11590           must be implemented by the application (client or server) and it
11591           does not reside in the SKE library.  The function checks the version
11592           string remote end sent.
11593
11594         * Added back pointers (to opaque context and to SilcSocketConnection)
11595           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11596
11597         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11598           duplicate packet context structure.
11599
11600         * Changed `notify' client operation to send same arguments as client
11601           receives from server except for ID's.  ID's are mapped to correct
11602           ID entry and that is returned.  Also, if channel entry is not sent
11603           by server but the notify is for channel the channel entry is sent
11604           to application (otherwise application doesn't know that it is for
11605           channel (library gets it from packet's Destination ID)).
11606
11607         * Added silc_client_remove_from_channels into client library to
11608           remove a client from all channels it has joined to.  Used when
11609           received SIGNOFF notify from server.  Added also new function
11610           silc_client_replace_from_channels to replace old ID entry with
11611           new ID entry on all channels.  Used when received NICK_CHANGE
11612           notify from server.
11613
11614         * Fixed ID Cache list handling in silc_idlist_get_client in
11615           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11616           to get (or query) client by ID.
11617
11618         * Updated TODO list.
11619
11620         * Added connection authentication status message defined by the
11621           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11622           support for these into the code in client and server side.
11623
11624         * Added generic function silc_client_send_command to send any command
11625           with variable argument list.  Application should use this function
11626           to send commands if the command functions provided by the library
11627           does not suite for the application's user interface needs.
11628
11629         * Added new `failure' client operation.  Application is notified about
11630           received failure packet if client is executing a protocol.  In this
11631           case the protocol's execution has failed.
11632
11633         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11634           is required by the protocol.
11635
11636         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11637           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11638           error at our end.
11639
11640         * Added status flag to SilcSKE object to indicate realtime status
11641           of the SKE protocol.
11642
11643         * Application receives now exactly same command reply arguments as
11644           the library receives from server.  However, if ID is received the
11645           corresponding ID entry is returned to the application (eg. Client
11646           ID is mapped to correct SilcClientEntry entry and that is returned).
11647           Changed command_reply client operation due to this change.
11648
11649         * Changed all ID's in commands and in command replys as ID Payloads.
11650           Change affected both client and server side codes.
11651
11652           All ID's sent in SILC network (with execption of ID's in SILC
11653           Packet header) are sent in ID Payload to support variable length
11654           ID's.
11655
11656         * Server now notifies nick changes and notifies all clients on
11657           the channels about the new nickname (about the new Client ID,
11658           actually).
11659
11660         * Implemented CMODE command to change channel modes. Supports all
11661           channel modes defined by the protocol specs except ban and invite
11662           lists. (Also, private channel key mode is supported but support for
11663           setting private channel key in client is missing, thus, this mode
11664           has no effect on client side (except that server requires that the
11665           client uses private channel key and normal channel traffic does not
11666           work anymore)).
11667
11668           Also, invite mode works per se, but INVITE command does not work
11669           yet correctly, so you can set channel as invite only channel but
11670           inviting clients to the channel does not work (it is yet to be
11671           thought what's the best way to do it).
11672
11673         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11674           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11675           Implemented CUMODE command to change user's mode on the channel.
11676           Supports all modes defined by the protocol specs.
11677
11678         * Added NAMES command reply to return users modes on the channel.
11679
11680         * Removed unnecessary and slow ciphers from lib/silccrypt.
11681
11682         * Set SO_KEEPALIVE option to connection sockets by default.
11683
11684         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11685
11686         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11687           redefined the Notify Payload into protocol specs.
11688
11689         * Added silc_id_payload_parse_id to get ID directly from raw
11690           ID payload data.
11691
11692 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11693
11694         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11695           accept searching by Client ID as well.
11696
11697         * Added support for LEAVE and SIGNOFF notify types in client library.
11698
11699         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11700           to parse ID Payload from raw data.
11701
11702 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11703
11704         * Added flags parameter into silc_ske_assemble_security_properties
11705           function in lib/silcske/silcske.[ch].
11706
11707         * Changed notify client operation to fit better for notify messages
11708           sent by server.  The notify payload received from server is now
11709           passed to the application (after parsing it to SilcNotifyPayload).
11710           It is application's responsibility to retrieve the arguments
11711           from the payload and show the message the way it wants.  The message
11712           sent by server is implementation specific.
11713
11714         * Changed public keys to comply with the protocol specification.
11715           Old public keys are not supported anymore and are not compatible.
11716
11717         * Removed nickname from Channel Payload as the latest draft removed
11718           it.  The client must resolve the nickname from the NAMES command
11719           reply received when it joined the channel.
11720
11721           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11722
11723 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11724
11725         * Fixed some errors in protocol specification drafts.
11726
11727         * Created lib/silccore/silcnotify.c to implement Notify Payload
11728           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11729           generic payloads described by protocol specifications.  The file
11730           includes implementations for ID Payload and Argument Payload.
11731
11732         * Changed Command Payload implementation to use the new Argument
11733           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11734           to comply with SILC coding conventions.
11735
11736         * Added suppport for Argument Payload handling in Notify Payload
11737           implementation as protocol requires it.  Added the new support
11738           into server and client lib as well.
11739
11740 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11741
11742         * Added support for multiple nicknames on same channel.  [n] is
11743           added locally to the nickname if there are more than one same
11744           nicknames on the channel.
11745
11746         * Server now sends all nicknames that matched WHOIS request.
11747           Client also shows the list received from server.
11748
11749         * Added TOPIC command to client side.  User can now set and show
11750           current topic on channel.
11751
11752         * Added MOTD command to client and server.  Also, server sends the
11753           motd when client connects to the server.
11754
11755         * Changed version strings to comply ISO 8601.
11756
11757 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11758
11759         * Fixed protocol error handling in client library.  It should now
11760           cope even if the SKE fails for some reason.
11761
11762         * Made new protocol specification drafts for submitting to IETF.
11763
11764         * Implemented TOPIC command to server in silcd/command.c.
11765
11766         * Added two new notify types into lib/silccore/silcnotify.h:
11767           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
11768           notify nickname change and topic setting/change on a channel.
11769
11770         * API change of command_reply operation in client library.  The
11771           application gets now the status type received from server as well.
11772
11773 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11774
11775         * Removed the function just added to lib/silcutil/silcschedule.[ch].
11776
11777         * Cras fixed and optimized the packet handling even further and
11778           it should work now.  Minor change to the prototype of function
11779           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
11780
11781 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11782
11783         * Added new function into lib/silcutil/silcschedule.[ch]:
11784           silc_schedule_with_fd to select() a specified fd.  The function
11785           returns after timeout expires or data arrives or goes.  The
11786           function is used by packet routines to wait that all data is
11787           received from network.
11788
11789         * Fixed data reading from network in lib/silccore/silcpacket.c.
11790           The code now assures that all data is read from the fd and then
11791           continues packet processing.  This was a bug fix since the code
11792           used to drop some data in some circumstances.
11793
11794         * Added new function into lib/silcclient/client.[ch]:
11795           silc_client_start_key_exchange to start key exchange after
11796           connection has been established to server.  The code internally
11797           now uses this funtion but its main purpose was to provide it
11798           for applications that perform their own connecting.  After
11799           application has created a connection it merely calls this
11800           function to start the key exchange between client and server.
11801           The library takes care of everything else after that.
11802
11803           Updated also lib/silcclient/README to explain the usage of
11804           this new function.
11805
11806         * Do not send to application information that connection has
11807           been established.  Application gets notified it by connect
11808           operation anyway.
11809
11810 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11811
11812         * Applied cras's patch to add silc_schedule_one function.  The
11813           function runs scheduler once and returns.
11814
11815         * Fixed the scheduler after cras messed it up.  The timeout
11816           handling works now as it's supposed to work.
11817
11818         * Added into lib/silccore/ silcnotify.h to include notify
11819           message types support.  Changed silc_server_send_notify*
11820           functions, in server.[ch], to support those new notify types.
11821           Added the support for the notify types into client library,
11822           as well.  Added new notify client operation into ops.h in
11823           lib/silcclient/.
11824
11825         * Changed silc_server_packet_send_to_channel to send normal
11826           packets instead of just channel message packets.  The function
11827           is now used to send the notify packets to channels.  It is not
11828           used to send channel message packets anymore, as server never
11829           sends them anymore.
11830
11831         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
11832           va_arg()s as it seems to require it nowadays.  I guess, if SILC
11833           is compiled with older va_arg() the new code should work anyway.
11834
11835 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11836
11837         * Splitted core library.  Core library (lib/silccore) includes
11838           now only SILC protocol specific core (and common) components.
11839           Created new utility library (lib/silcutil) that includes more
11840           generic purpose stuff.  The stuff for util library was taken
11841           from the old core library.  This was minor and easy split.
11842
11843         * Created SILC Client Library (lib/silcclient) that includes
11844           implementation of the SILC client without user interface.  This
11845           was major move from silc/ directory.  The code has been changed
11846           so that it is transparent towards the user interface.  The
11847           silc/ directory includes now the same user interface as before
11848           and it uses the new client library.  Read lib/silcclient/README.
11849           Basicly, the client library performs everything else related
11850           to SILC except user interface handling.  Also, configuration
11851           files are considered to be part of user interface and library
11852           does not handle them.
11853
11854           This change also changed a lot of structures, function naming etc.
11855           Most important change was that SilcClientWindow object was
11856           renamed to SilcClientConnection in the client library.  Created
11857           also new file lib/silcclient/ops.h.  Also added new files
11858           silc/local_command.[ch] and silc/client_ops.[ch].
11859
11860           All these changes were made to make it easier for user interface
11861           designers to create what ever user interface for the SILC client
11862           they want.
11863
11864           It is also expected that the server will be moved to lib
11865           directory as well and SILC Server Library will be created;
11866           sometimes in the future.
11867
11868         * Removed Local commands from lib/silccore/silccommand.h as
11869           they are application specific and new client library does not
11870           handle any of those anymore.
11871
11872         * Several functions moved to lib/silcutil/silcutilc.[ch] from
11873           old client implementation in silc/.
11874
11875         * Added support for callback functions in SILC_LOG_* macros.
11876           Application can now set its own callbacks that will be called
11877           instead of using the default functions that will always print
11878           the debug messages to stderr (or stdout).  Also, debugging can
11879           now be disabled by setting silc_debug to FALSE and re-enabled by
11880           setting it to TRUE.  Note, that logging will still work even
11881           if debugging is disabled.
11882
11883           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
11884           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
11885           silc_log_reset_debug_callbacks.
11886
11887         * To enable debugging in silc client one must give now -d
11888           option on command line.
11889
11890         * Changed silc_schedule_init to automatically allocate task queues
11891           if they are not allocated before calling it.
11892
11893 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11894
11895         * Added GMP 3.1 into math library.
11896
11897 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11898
11899         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
11900           a channel in SILC network.  The packet is used by servers and
11901           routers to notify other routers that user has left a channel.
11902           This little feature was missing until now.  Added the feature
11903           to protocol specification as well.
11904
11905           Added functions: silc_server_send_remove_channel_user and
11906           silc_server_remove_channel_user into server.[ch].
11907
11908         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
11909           lib/silccore/silcpacket.h.  However, they are not implemented
11910           yet.
11911
11912 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11913
11914         * Fixed joining to a channel and sending channel messages
11915           between server and router.  The channel message sending should
11916           now work inside a cell.
11917
11918 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11919
11920         * Fixed the private message sending between server and router.
11921           The private message sending should now work inside a cell.
11922
11923         * Added silc_server_replace_id into server.[ch] to replace
11924           existing ID in the SILC network.
11925
11926         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
11927           and silc_idlist_replace_server_id into idlist.[ch] in server.
11928
11929 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11930
11931         * Fixed the server to server connections.  Server can again now
11932           connect to router.  Router to router connections probably does
11933           not work just yet.
11934
11935 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11936
11937         * Added dynamic protocol registering support.  Now protocols can
11938           registered and unregistered on the fly.  Patch by cras.
11939
11940 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11941
11942         * Added lib/contrib directory to hold routines that some platforms
11943           don't have but are needed by SILC.
11944
11945         * Added getopt.c, getopt1.c and getopt.h from GNU C library
11946           into lin/contrib to provide getopt() and getopt_long() for
11947           those who don't have it.
11948
11949 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11950
11951         * Added AWAY command to client.  When away message is set and
11952           client receives a private message packet the client automatically
11953           replies to the sender with the away message.
11954
11955         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
11956           bug seemed to be the cause of recent problems when compiling
11957           with gcc-2.95.
11958
11959         * Added version detection support to SKE protocol specification
11960           and added the new changes to the SKE implementation as well.
11961           There were other minor changes in the SKE protocol as well.
11962
11963           Many changes in lib/silcske/silcske.[ch] and in
11964           lib/silcske/payload.[ch].
11965
11966         * Added ^U functionality, clear input line.  Patch from cras.
11967
11968 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11969
11970         * Mainly small bugfixes on core library.  Fixed some debugging
11971           logging and buffer overflow in silclog.c.
11972
11973         * Updated config.sub and config.guess on the distribution tree.
11974
11975 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11976
11977         * Added command lagging support in server. Client may execute
11978           commands now only once in two seconds.
11979
11980 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11981
11982         * Optimized packet reception. MAC computation and checking is now
11983           also more optimized.  A lot previously duplicated code is now
11984           used as generic by both client and server.
11985
11986         * Fixed key pair generation in clientutil.c
11987
11988 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11989
11990         * Added into lib/silccore/silcbufutil.[ch] new function;
11991           silc_buffer_realloc.
11992
11993         * Moved generic packet sending/encryption functions to
11994           lib/silccore/silcpacket.[ch] from client and server.  Some
11995           rewriting of the functions.
11996
11997         * Moved all generic packet reception/decryption functions to
11998           lib/silccore/silcpacket.[ch] from client and server.  The
11999           packet processing is now much cleaner in both client and server.
12000           These were major changes in both client and server.
12001
12002         * Created many common functions in server to do packet sending.
12003           Previously code were duplicated a lot, this has been removed
12004           with these changes.
12005
12006 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12007
12008         * Rewrote major parts of the ID cache system.  Don't know
12009           whether it is better now or not but at least the API is more
12010           cleaner now.
12011
12012         * Major rewrite on ID cache stuff on client because of the ID
12013           cache API changes.  Added idlist.c to client.
12014
12015         * Also major rewrite on ID cache stuff on server as well.
12016           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12017           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12018           in hand, instead they are all put into the ID cache system now.
12019           All server_idlist_* routines uses ID cache now instead of
12020           traversing its own lists (those lists does not exist anymore).
12021           SilcIDList though still exists.  Also, SilcXXXEntry's are
12022           now pointers.
12023
12024 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12025
12026         * Finally made the SKE implementation compliant to the protocol
12027           specification.  All mp integers are now binary encoded as
12028           opposed being HEX encoded.
12029
12030         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12031           from binary data.
12032
12033         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12034           functions: silc_[encode/decode]_pem.  Also added function
12035           silc_encode_pem_file to PEM encode with newlines ('\n') for
12036           saving into a file.
12037
12038         * SILC public keys are now encoded either PEM or binary.  Same
12039           option is for private keys as well.  By default private keys
12040           are binary encoded and public keys PEM encoded.  Silly HEX
12041           encoding were removed.
12042
12043         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12044           function to create fingerprints.
12045
12046         * Fixed a bug in SHA1; does not change the original data anymore.
12047
12048         * Partly implemented INFO command on client and server side.
12049           Fixed CLEAR command.  Changes to SERVER command; show current
12050           server(s) when giving command without arguments.  Added
12051           VERSION command to client.
12052
12053         * Added check to server that unregistered connections cannot
12054           execute commands (unless it is specificly allowed).
12055
12056 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12057
12058         * Fixed screen refresh.
12059
12060         * Fixed channel joining bug from client.  On some circumstances
12061           client tried to join to a channel it had already joined.
12062
12063         * Added public key verification process into client's protocol.c.
12064           The client now verifies the public key from user and saves
12065           it into ~./silc/serverkeys/ directory.
12066
12067           Added into: clientutil.[ch]: silc_client_verify_server_key.
12068
12069         * Changed SKE protocol's silc_ske_initiator_finish function
12070           to accept callback function that verifies the received public
12071           key.  Removed old silc_ske_verify_public_key function.
12072
12073 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12074
12075         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12076           silc_pkcs_private_key[_data]_set.
12077
12078         * Made the password and public authentication more cleaner in
12079           server's protocol.c.
12080
12081         * Removed historic and obsolete protocol `channel_auth' from
12082           both client and server.
12083
12084         * Removed wrong way of sending command status messages from
12085           server to client in server's command.c.  The old way violated
12086           protocol specification.
12087
12088           Changes to silccore/silccommand.[ch]: removed
12089           silc_command_encode_status_payload -> not needed anymore,
12090           changed silc_command_encode_payload_va to accept extra
12091           argument on variable argument list.  The argument type must
12092           now be provided to the function.  Also, added new function:
12093           silc_command_encode_reply_payload_va which is same as
12094           normal command_encode_payload_va except command status type
12095           is provided as extra argument.
12096
12097 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12098
12099         * Added ~./silc directory handling.  The directory includes the
12100           public and private keys for the client.
12101
12102           Added silc_client_check_silc_dir, silc_client_create_identifier
12103           and silc_client_load_keys.
12104
12105         * Implemented SILC protocol compliant public key.  Added public
12106           and private key saving to and loading from files.
12107
12108           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12109           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12110           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12111           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12112           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12113
12114           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12115           silc_pkcs_load_[public/private]_key.
12116
12117 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12118
12119         * Added silc_server_get_route (route.[ch]) to get connection
12120           data for the fastest route for given ID.
12121
12122         * Implemented INVITE command on client and server.  The command
12123           were re-defined in the SILC Protocol Specification and the
12124           implementation now complies with the specification.
12125
12126         * Implemented PING command on client and server.
12127
12128         * Implemented NAMES command on client and server.  The server side
12129           supports currently only normal server not router server yet.
12130           Some changes to NAMES definition in SILC protocol specification.
12131
12132 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12133
12134         * Implemented LEAVE command on client and server.
12135
12136         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12137           again.  This change was made to the protocol as well.  Server
12138           should not violate the protocol specification anymore.
12139
12140 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12141
12142         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12143           was tested.  SOCKS4 was not but should work anyway.