updates.
[silc.git] / CHANGES
1 Tue May  8 18:13:38 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
2
3         * Changed private message waiting API in client library to make
4           it work better with multiple waiting threads.  The waiting is
5           not always per client entry instead of per connection.  Affected
6           files are lib/silcclient/client_prvmsg.c, client.h and
7           silcclient.h.
8
9         * Changed silc_packet_wait_init function to accept the the expected
10           Source ID of the packet as argument.  If specified only packets
11           with the specified types and Source ID are delivered.  Affected
12           files are lib/silccore/silcpacket.[ch].
13
14         * Fixed file transfer disconnection crash when closing the session
15           directly in the monitor callback after disconnection.  Affected
16           file is lib/silcclient/client_ftp.c.
17
18         * Make Toolkit compile on WIN32.  Affected files in win32/
19           and in lib/silcutil/win32/.
20
21 Mon May  7 18:18:48 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
22
23         * Fixed CMODE channel auth public key retrieval.  Affected
24           file is lib/silcclient/command.c.
25
26         * Fixed CMODE command reply to return channel public keys
27           correctly.  Affected files are lib/silcclient/command_reply.c
28           and client_channel.c.
29
30 Sun May  6 12:43:19 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
31
32         * Added current channel key cipher name and HMAC name to
33           SilcChannelEntry.  Fixed channel private key creation.
34           Affected files are lib/silcclient/client_channel.c,
35           client_entry and silcclient_entry.h.
36
37         * Allow formatted nicknames as input to silc_client_get_clients
38           and silc_client_get_clients_whois.  Affected file is
39           lib/silcclient/client_entry.c.
40
41         * Fixed silc_message_payload_free crash.  Affected file is
42           lib/silccore/silcmessage.c.
43
44         * Added SILC_STATUS_ERR_NO_SUCH_PUBLIC_KEY to
45           lib/silccore/silcstatus.h.
46
47 Thu May  3 18:07:50 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
48
49         * Imported libtommath 0.41.  Renamed all mp_* functions to
50           tma_mp_* functions to avoid rare linking problems on systems
51           with mp_* functions.  Affected files are in lib/silcmath/.
52
53 Wed May  2 17:46:25 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
54
55         * SILC Toolkit 1.1 Beta1.
56
57 Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
58
59         * Set the server and router operator modes to local entry after
60           successful OPER or SILCOPER commands.  Affected file is
61           lib/silcclient/command_reply.c.
62
63 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
64
65         * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
66           and other smaller APIs to WIN32.  Affected files are in
67           lib/silcutil/win32/.
68
69         * Changed the various regex APIs as generic code in util library.
70           Affected files are lib/silcutil/silcstrutil.[ch].
71
72 Sat Apr 28 13:47:47 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
73
74         * Ported SILC Server to the new Toolkit API, working towards
75           SILC Server 1.1.  Affected files are in apps/silcd/.
76
77         * Added silc_skr_del_public_key, silc_skr_[ref|unref]_public_key
78           to lib/silcskr/silcskr.[ch].
79
80         * Fixed SILC public key copying to copy the identifier also.
81           Affected file is lib/silccrypt/silcpk.c.
82
83         * Added silc_packet_error_string to lib/silccore/silcpacket.[ch].
84
85         * Fixed OPER and SILCOPER passphrase asking in Client library.
86           Affected file is lib/silcclient/command.c.
87
88 Tue Apr 24 17:55:24 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
89
90         * Fixed command queue enabling after connecting to server.
91           The comparisons was from after changing to silc_utf8_strcasecmp.
92           Affected file is apps/irssi/src/silc/core/silc-servers.c.
93
94         * Fixed nickname setting with own client entry with 1.3 protocol
95           version server.  Affected file lib/silcclient/client_register.c.
96
97         * Ignore error notify for local client entry.  Affected file is
98           lib/silcclient/client_notify.c.
99
100         * Implemented responder rekey to SKE library.  Affected files are
101           lib/silcske/silcske.[ch].
102
103         * Fixed connection auth protocol completion sending.  Affected
104           file lib/silcske/silcconnauth.c.
105
106 Mon Apr 23 17:20:01 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
107
108         * Do not call TCP network listener callback with any error
109           status, as documented.  Affected file is
110           lib/silcutil/unix/silcunixnet.c.
111
112 Sun Apr 22 21:13:28 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
113
114         * Preliminary SILC Server 1.1 changes committed to apps/silcd/.
115
116         * Added SILC_SKR_USAGE_SERVICE_AUTHORIZATION SKR key usage type.
117           Changed silc_skr_find to have SilcSchedule argument and removed
118           it from silc_skr_[alloc|init].  Affected files are
119           lib/silcskr/silcskr.[ch].
120
121         * Allow NULL id for silc_idcache_add.  Affected file is
122           lib/silcapputil/silcidcache.c.
123
124         * Added silc_packet_stream_is_valid, silc_packet_get_ids and
125           silc_packet_engine_get_streams to lib/silccore/silcpacket.[ch].
126           Fixed also channel message encryption with router-to-router
127           packets.
128
129         * Added silc_id_str2id2 to lib/silccore/silcid.[ch].
130
131         * Added silc_net_get_error_string, silc_net_listener_get_ip and
132           silc_net_listener_get_hostname to lib/silcutil/silcnet.[ch].
133
134 Tue Apr 10 15:55:42 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
135
136         * Add option --enable-silc-plugin.  Affected files are
137           apps/irssi/configure.{ad,in}
138
139         * Only compile the SILC Plugin if required.  Affected files are
140           apps/irssi/src/Makefile.am, apps/irssi/src/fe-common/Makefile.am
141
142         * Conditionally build the SILC Plugin.  Affected files are
143           apps/irssi/src/silc/core/Makefile.am,
144           apps/irssi/src/fe-common/silc/Makefile.am
145
146         * Backout delayed protocol exit and replace with a lame busy
147           wait.  Affected files are apps/irssi/src/fe-text/silc.c,
148           apps/irssi/src/silc/core/silc-core.c
149
150         * Fix key generation for SILC Plugin.  Affected file
151           apps/irssi/src/silc/core/clientutil.c
152
153 Tue Apr 10 12:40:19 CEST 2007  Jochen Eisinger <coffee@silcnet.org>
154
155         * Only pass -rpath to libtool when building shared libraries.
156           Affected file lib/Makefile.ad
157
158         * Removing the stray "s" in configure.ad
159
160 Sat Mar 24 19:13:58 CET 2007  Jochen Eisinger <coffee@silcnet.org>
161
162         * Redraw the screen after creating a new key.  Affected file
163           apps/irssi/src/silc/core/clientutil.c
164
165 Sun Mar 18 15:54:10 EET 2007  Pekka Riikonen <priikone@silcnet.org>
166
167         * Added SILC Client setting /set nickname_format that specifies
168           the nickname format string.  Changed default nickname format
169           string to "%n#%a".  Affected file is
170           apps/irssi/src/silc/core/silc-core.c, apps/irssi/silc.conf.
171
172         * Fixed nickname parsing with WHOIS command to accept formatted
173           nicknames.  Changed the silc_client_get_clients_local to allow
174           the searched nickname to be formatted nickname.  Removed %s and
175           %S nickname formatters.  Affected files are in lib/silcclient/.
176
177         * Added silc_client_nickname_parse to Client library API.  Affected
178           file is lib/silcclient/silcclient.h.
179
180         * Fixed nickname parsing and resolving with /MSG, /FILE and /KEY
181           commands.  Affected file are
182           apps/irssi/src/silc/core/silc-servers.c and silc-channels.c.
183
184 Sat Mar 17 19:07:15 CET 2007  Jochen Eisinger <coffee@silcnet.org>
185
186         * Incorporate SILC Plugin patches.  Affected files are
187           apps/irssi/src/fe-common/silc/module-formats.{c,h},
188           apps/irssi/src/silc/core/clientutil.{c,h},
189           apps/irssi/src/silc/core/silc-core.c,
190           apps/irssi/src/silc/core/silc-chatnets.{c,h},
191           apps/irssi/src/fe-common/silc/fe-silcnet.c, and
192           apps/irssi/src/fe-common/silc/module.h
193
194 Wed Mar 14 17:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
195
196         * In notify handling resolve user entries many times if the
197           resolving timedout.  Affected file lib/silcclient/client_notify.c.
198
199         * silc_client_get_clients_local do not return any invalid entries.
200           Affected file is lib/silcclient/client_entry.c.
201
202         * Do not print "there are now xx user on this channel" for users
203           that actually aren't anymore on the channel.  Affected file
204           is apps/irssi/src/client_ops.c.
205
206 Sun Mar 11 17:43:18 CET 2007  Jochen Eisinger <coffee@silcnet.org>
207
208         * When joining channels with a password given in the config file,
209           use it.  Also use it when cycling (it would be better to get
210           the password from the server, but this isn't possible in SILC).
211           Affected files apps/irssi/src/silc/core/silc-servers.c,
212           apps/irssi/src/silc/core/silc-channels.c
213
214 Sun Mar 11 15:22:42 CET 2007  Jochen Eisinger <coffee@silcnet.org>
215
216         * Import perl script for sign_messages from silc-plugin.  Affected
217           file apps/irssi/scripts/silc.pl
218
219 Sun Mar 11 15:19:10 CET 2007  Jochen Eisinger <coffee@silcnet.org>
220
221         * Only wait for a nick on connecting, when it differs
222           (not counting case) from the username.  Affected file
223           is apps/irssi/src/silc/core/silc-servers.c
224
225 Sun Mar 11 13:50:53 CET 2007  Jochen Eisinger <coffee@silcnet.org>
226
227         * Use time settings for lag settings.  Affected file is
228           apps/irssi/src/silc/core/silc-lag.c
229
230 Tue Feb 27 17:07:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
231
232         * Added silc_thread_yield.  Affected file is
233           lib/silcutil/silcmutex.h.
234
235 Wed Feb 21 17:01:01 EET 2007  Pekka Riikonen <priikone@silcnet.org>
236
237         * Fixed WHOIS command and requested attributes handling in
238           client library.  Affected files are lib/silcclient/command.c
239           and lib/silcclient/client_attrs.c.
240
241         * Fixed silc_time_value to actually work.  Added new function
242           silc_timezone.  Affected files are lib/silcutil/silctime.[ch].
243
244 Tue Feb 20 08:31:28 EET 2007  Pekka Riikonen <priikone@silcnet.org>
245
246         * SILC Client 1.1 beta2.
247
248 Mon Feb 19 16:06:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
249
250         * Fixed client to properly abort TCP stream creation when
251           giving /QUIT.  Affected file
252           apps/irssi/src/silc/core/silc-servers.c.
253
254         * Fixed several connecting aborting crashes from the client
255           library, packet engine and socket stream.  Affected files
256           are in lib/silclient/, lib/silccore/silcpacket.c and
257           lib/silcutil/unix/silcunixsocketstream.c.
258
259         * Fixed private key export double free crash in key generation.
260           Affected file is lib/silccrypt/silcpk.c.
261
262         * Fixed FSM event waiting when there are multiple signallers
263           and the waiter goes away after the first signal.  Affected
264           file in lib/silcutil/silcfsm.c.
265
266 Sun Feb 18 22:02:22 EET 2007  Pekka Riikonen <priikone@silcnet.org>
267
268         * Fixed FSM event signalling to check if the waiter has gone
269           away already.  Affected file is lib/silcutil/silcfsm.c.
270
271         * Fixed counter mode encryption/decryption to handle non-padded
272           SILC packets correctly.  The silc_cipher_set_iv now
273           in counter mode resets for a new block.  Affected files are
274           in lib/silcske/, lib/silccrypt/, lib/silcpacket/.
275
276 Sun Feb 18 12:15:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
277
278         * SILC Client 1.1 beta1.
279
280         * Memory leak fixes around the libraries.
281
282 Fri Feb 16 16:53:16 EET 2007  Pekka Riikonen <priikone@silcnet.org>
283
284         * Added better check for epoll() in configure.  Affected file
285           is lib/configure.ad.
286
287 Thu Feb 15 16:50:34 EET 2007  Pekka Riikonen <priikone@silcnet.org>
288
289         * Fixed per scheduler data input buffer in packet engine.  Use
290           list of inbufs instead of just one so that multiple streams
291           can do partial reads to different buffers.  Affected file is
292           lib/silccore/silcpacket.c.
293
294         * Fixed WATCH notify handling in client library.  Affected file
295           is lib/silcclient/client_notify.c.
296
297 Wed Feb 14 17:05:38 EET 2007  Pekka Riikonen <priikone@silcnet.org>
298
299         * Fixed packet wrapper stream API to support encoder/decoder
300           for packets, and to handle partial reading correctly.  Fixed
301           also inbuf size checking in reading to have enough space before
302           reading.  Affected files are lib/silccore/silcpacket.[ch].
303
304         * Rewrote file transfer in client library.  Affected files are
305           in lib/silcclient/.
306
307         * Added TCP/UDP listener (internal) API to client library to have
308           generic way of dealing with listeners.  Fixed Key Agreement and
309           file transfer to use it.  Affected files are in lib/silcclient/.
310
311         * Fixed SKE to process SUCCESS packets synchronously and to call
312           completion synchronously.  Affected file is lib/silcske/silske.c.
313
314         * Fixed pthread rwlock detection.  Affected file includes/silc.h.in.
315
316         * Implemented SILC_ATTRIBYUTE_PHONE_NUMBER.  Affected files are
317           lib/silccore/silcattrs.[ch].  SILC Protocol version 1.3 change.
318
319 Fri Feb  2 22:24:11 EET 2007  Pekka Riikonen <priikone@silcnet.org>
320
321         * Added support for SILC protocol version 1.3 NEW_CLIENT packet
322           to client library.  Affected file is
323           lib/silcclient/client_register.c.
324
325         * Serialize NICK and JOIN commands to avoid problems locally
326           with changing ID while joining to channel.  Affected file is
327           lib/silcclient/command.c.
328
329         * Fixed entry resolving while handling incoming JOIN notify.
330           Handle properly cases, in re-processing of notify packets, where
331           the IDs may become invalid while resolving the entry (like nick
332           change).  Entry is invalid if it doesn't have nickname, and such
333           entries are not delivered to application anymore.  These fixes
334           problems of not seeing JOINs when remote user changes nickname
335           at the same time.  Affected files are in lib/silcclient/.
336
337 Thu Feb  1 18:35:58 EET 2007  Pekka Riikonen <priikone@silcnet.org>
338
339         * Added support for computing message payload MAC in new way
340           (SILC Protocol version 1.3).  Bakcwards support for old way
341           remains.  Affected files are lib/silccore/silcmessage.[ch].
342
343 Sat Jan 27 22:37:30 EET 2007  Pekka Riikonen <priikone@silcnet.org>
344
345         * Added SilcRwLock API, a read/write lock.  Affected files are
346           lib/silcutil/silcmutex.h and in lib/silcutil/[unix|win32|symbian]/.
347
348 Wed Jan 24 18:55:21 EET 2007  Pekka Riikonen <priikone@silcnet.org>
349
350         * Merged Irssi SVN (irssi 0.8.11).  Affected files in apps/irssi/.
351
352 Tue Jan 23 16:05:27 EET 2007  Pekka Riikonen <priikone@silcnet.org>
353
354         * The silc_schedule_set_listen_fd now returns boolean value.
355           Fixed FD task adding to check correctly for already added
356           FD tasks.  Added stricter error checking for FD scheduling
357           with epoll().  Affected files are lib/silcutil/silcschedule.[ch]
358           and lib/silcutil/unix/silcunixschedule.c.
359
360         * The silc_stream_set_notifier now returns boolean value.  Changed
361           all streams to support and check for the error condition.
362           Affected files are in lib/silcutil/.
363
364         * Fixed SKE library session aborting and deletion.  Affected
365           file are lib/silcske/silcske.c.
366
367 Tue Jan 16 18:22:08 EET 2007  Pekka Riikonen <priikone@silcnet.org>
368
369         * Implemented PKCS #1 with appendix with hash OID in the
370           signature.  Affected files are lib/silccrypt/silcpkcs1.[ch],
371           lib/silccrypt/silchash.[ch] and
372           lib/silcasn1/silcasn1[_encode|decode].[ch].
373
374 Sun Jan 14 23:12:41 EET 2007  Pekka Riikonen <priikone@silcnet.org>
375
376         * Added support for Version (V) SILC public key identifier.
377           Affected files are lib/silccrypt/silcpk.[ch].
378
379 Tue Jan  9 19:37:51 EET 2007  Pekka Riikonen <priikone@silcnet.org>
380
381         * Rewrote connection auth request in client library.  It is now
382           done automatically by the library and the resolved method given
383           as a hint to get_auth_method client operation.  Affected files
384           are lib/silcclient/.
385
386 Wed Jan  3 18:06:33 EET 2007  Pekka Riikonen <priikone@silcnet.org>
387
388         * Added silc_packet_stream_wrap into lib/silccore/silcpacket.[ch].
389           It can be used to wrap SilcPacketStream into SilcStream.
390
391         * Fixed %p formatting from silc_snprintf.  Affected file is
392           lib/silcutil/silcsnprintf.c.
393
394         * Ported SFTP library to new utility library.  Ported also
395           the SFTP testers.  Affected files in lib/silcsftp/.
396
397 Tue Jan  2 17:18:46 EET 2007  Pekka Riikonen <priikone@silcnet.org>
398
399         * Added lib/silcutil/silcsnprintf.[ch].  Added in addition
400           of silc_snprintf, silc_vsnprintf, silc_asprintf and
401           silc_vasprintf.
402
403 Sat Dec 30 23:23:17 EET 2006  Pekka Riikonen <priikone@silcnet.org>
404
405         * Added preliminary Symbian support.  Changes around the source
406           tree.  The symbian/ directory now includes Carbide.c++ project
407           files to compile the sources.
408
409         * Added silc_snprintf.  Affected files are
410           lib/silcutil/silcstrutil.[ch].
411
412 Thu Dec 21 18:01:51 EET 2006  Pekka Riikonen <priikone@silcnet.org>
413
414         * Changed SILC_FSM_[CONTINUE|YIELD|WAIT|FINISH] enums to
415           macros.  SILC_FSM_CONTINUE macro now immediately calls the
416           next state instead of first returning back to FSM.  Helps
417           in debugging crashes etc.
418
419           Removed FSM Semaphores.  Introduced FSM Event which is
420           asynchronous event.   Affected files are in lib/.
421
422         * Added epoll(7) support to SILC Scheduler.  It is used by default
423           if it is available.  Affected files are
424           lib/silcutil/silcschedule.[ch],
425           lib/silcutil/unix/silcunixschedule.c.
426
427 Tue Dec 19 20:39:35 EET 2006  Pekka Riikonen <priikone@silcnet.org>
428
429         * Added CTR mode to AES.  Simplified cipher implementation API
430           more.  Affected files are in lib/silccrypt/.
431
432 Sun Dec 17 16:46:55 EET 2006  Pekka Riikonen <priikone@silcnet.org>
433
434         * Removed `detach' client operation.  The detachment data is
435           now delivered in SILC_COMMAND_DETACH command reply to
436           application.  Affected file in lib/silcclient/.
437
438         * Rewrote resuming/detaching in client library.
439
440         * Added boolean encryption indicator for silc_cipher_set_key.
441           Affected files lib/silccrypt/silccipher.[ch].
442
443 Wed Dec 13 18:05:50 EET 2006  Pekka Riikonen <priikone@silcnet.org>
444
445         * Added silc_likely and silc_unlikely macros for GCC branch
446           prediction optimizations.  Affected file lib/silcutil/silctypes.h.
447
448         * Added assembler AES optimization.  Cleaned up the SILC Cipher
449           implementation API.  Affected files are in lib/silccrypt/.
450
451 Tue Dec 12 18:56:14 EET 2006  Pekka Riikonen <priikone@silcnet.org>
452
453         * Changed back the SILC_FSM_THREAD_WAIT operation to not
454           continue to next state if thread is finished already.  That
455           check is not done anymore.  Affected files are
456           lib/silcutil/silcfsm.[ch].
457
458 Sun Dec 10 13:54:52 EET 2006  Pekka Riikonen <priikone@silcnet.org>
459
460         * Removed silc_packet_[get|set]_ciphers and
461           silc_packet_[get|set]_hmacs.  Added silc_packet_set_keys that
462           handle REKEY_DONE packet sending in rekey.  Affected files
463           are lib/silccore/silcpacket.[ch].
464
465         * Added silc_fsm_is_started.  Affected files are
466           lib/silcutil/silcfsm.[ch].
467
468         * Added settings sign_channel_message, sign_private_message
469           and key_exchange_rekey_pfs to SILC Client.  Added UDP transport
470           support for key agreement in /KEY command. Affected files
471           in apps/irssi/src/silc/core/.
472
473         * During SILC Client initialization forward log messages to
474           stderr.   Affected files in apps/irssi/src/silc/core/.
475
476 Thu Dec  7 19:07:21 EET 2006  Pekka Riikonen <priikone@silcnet.org>
477
478         * Added silc_ske_get_key_material.  Affected files are
479           lib/silcske/silcske.[ch].
480
481         * Added silc_packet_stream_is_udp.  Affected files are
482           lib/silccore/silcpacket.[ch].
483
484         * Added SKE packet retransmission support with UDP transport.
485           Affected file is lib/silcske/silcske.c.
486
487 Sun Dec  3 22:00:12 EET 2006  Pekka Riikonen <priikone@silcnet.org>
488
489         * Added silc_socket_stream_is_udp.  Affected file is
490           lib/silcutil/silcsocketstream.[ch].
491
492         * Added UDP transport support to packet engine.  Affected file
493           is lib/silccore/silcpacket.c.
494
495         * Added silc_socket_stream_is_udp.  Affected file is
496           lib/silcutil/silcsocketstream.[ch].
497
498 Sat Nov 18 11:33:03 EET 2006  Pekka Riikonen <priikone@silcnet.org>
499
500         * Added silc_packet_send_va[_ext] to send variable argument
501           formatted buffers.  Affected files lib/silcore/silcpacket.[ch].
502
503         * Timeout freelist garbage collection added to scheduler.
504           Affected file lib/silcutil/silcschedule.c.
505
506 Thu Nov  9 18:12:15 EET 2006  Pekka Riikonen <priikone@silcnet.org>
507
508         * Added silc_show_public_key_file to
509           lib/silcapputil/silcapputil.[ch].
510
511         * Added SILC_STR_ADVANCE support for buffer unformatting.
512           Affected file lib/silcutil/silcbuffmt.c.
513
514 Tue Nov  7 18:04:36 EET 2006  Pekka Riikonen <priikone@silcnet.org
515
516         * Added silc_string_split to lib/silcutil/silcstrutil.[ch].
517
518         * Added silc_mutex_assert_locked to lib/silcutil/silcmutex.h.
519
520         * silc_fsm_continue[_sync] now cancels erlier timeout set with
521           silc_fsm_next_later.  Affected file lib/silcutil/silcfsm.c.
522
523 Sat Nov  4 21:50:37 EET 2006  Pekka Riikonen <priikone@silcnet.org
524
525         * Added SILC_STR_FUNC to buffer format API.  Affected files
526           are lib/silcutil/silcbuffmt.[ch].
527
528         * Added silc_buffer_[s]enlarge to lib/silcutil/silcbuffer.h.
529
530         * No more memory allocation for message payload parsing.
531           Pre-allocated buffer can be used with message payload encoding.
532           Affected files lib/silccore/silcmessage.[ch].
533
534 Fri Oct 27 21:01:26 EEST 2006  Pekka Riikonen <priikone@silcnet.org
535
536         * Added silc_buffer_sunformat and silc_buffer_sunformat_vp
537           to silcutil/silcbuffmt.[ch].
538
539 Sun Oct 22 13:03:07 EEST 2006  Pekka Riikonen <priikone@silcnet.org
540
541         * Added SILC_STR_BUFFER to format and unformat SilcBuffer.
542           Affected file lib/silcutil/silcbuffmt.[ch].
543
544         * Removed silc_schedule_signal_[un]register and
545           silc_schedule_signal_call.  Added silc_schedule_task_add_signal
546           to add signal task.  Only one callback per signal may be
547           added.  The signals are now automatically called back to
548           caller.  Affected files lib/silcutil/silcschedule.[ch] and
549           silcutil/[unix/win32]/silc[unix/win32]schedule.c.
550
551         * Added silc_time_msec and silc_time_usec to silcutil/silctime.[ch].
552
553         * Added SilcSKEParams for SKE parameters and simplied even more
554           the SKE interface.  Affected files are lib/silcske/silcske.[ch].
555           Added support for IV included and session port handling with
556           UDP/IP connections.
557
558         * Added Secure ID (SID) support with IV Included flag (for UDP/IP)
559           in lib/silccore/silcpacket.[ch].  Added silc_packet_set_sid
560           which is called after every rekey when IV Included flag is used.
561           See SILC specifications for details.
562
563 Thu Oct 19 10:03:03 EEST 2006  Pekka Riikonen <priikone@silcnet.org
564
565         * Added lib/silcapputil and moved SILC application specific
566           utility routines from the generic util library lib/silcutil
567           to the new library.  Removed lib/silcidcache and moved that
568           to lib/silcapputil as well.
569
570 Tue Sep 19 00:14:11 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
571
572         * Added SILC_STR_ADVANCE.  Affected file is
573           lib/silcutil/silcbuffmt.[ch].
574
575         * The silc_buffer_strformat preserves buffer locations now.
576
577         * Added lib/silcutil/silcatomic.h for atomic operations.
578
579 Sat Sep 16 11:23:06 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
580
581         * Added lib/silchttp, SILC HTTP server, a very simple HTTP
582           server.
583
584         * Fixed MIME deocing when data portion is not present.
585           Affected file lib/silcutil/silcmime.c.
586
587 Wed Jul 19 12:06:38 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
588
589         * Moved lib/silccore/silcidcache.[ch] to lib/silcutil/.
590
591         * Added IV Included support to packet routines, to allow
592           packet sending and receiving on UDP/IP.  Affected files are
593           lib/silccore/silcpacket.[ch].
594
595         * Added SILC_FSM_YIELD.  Affected files lib/silcutil/silcfsm.[ch].
596
597 Tue Jul 18 20:10:28 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
598
599         * Added UDP support to network and socket stream library.
600
601 Sat Jun 24 22:33:18 EEST 2006  Pekka Riikonen <priikone@silcnet.org>
602
603         * Added conditional variables.  New files are
604           lib/silcutil/silcondvar.h and platform specific implementations.
605
606 Thu Jan  5 20:02:31 CET 2006 Patrik Weiskircher <pat@icore.at>
607
608         * make sure session->hostname and session->port are valid before the
609           application callback is done, since things will go wrong if the
610           application immediately calls silc_client_file_receive. Affected
611           file lib/silcclient/client_ftp.c.
612           Patch received from Stefan Siegel <stesie@brokenpipe.de>, thanks!
613
614 Fri Dec 30 22:54:21 EET 2005  Pekka Riikonen <priikone@silcnet.org>
615
616         * New SILC PKCS API enabling support for other public keys
617           and certificates, lib/silccrypt/silcpkcs.[ch], silcpk.[ch].
618
619         * Separated SILC Public Key Payload routines from the PKCS API
620           to lib/silccore/silcpubkey.[ch].
621
622 Wed Dec 28 13:55:22 EET 2005  Pekka Riikonen <priikone@silcnet.org>
623
624         * Added SILC Key Repository library, lib/silcskr.
625
626         * Added SILC Server library, lib/silcserver.
627
628 Mon Dec 19 18:04:24 EET 2005  Pekka Riikonen <priikone@silcnet.org>
629
630         * MIME objects in attributes now use SilcMime.  Affected files
631           are lib/silccore/silcattrs.[ch].
632
633 Sat Dec 17 20:13:31 EET 2005  Pekka Riikonen <priikone@silcnet.org>
634
635         * Synchronize semaphore posting for real threads in FSM.
636           Affected files are lib/silcutil/silcfsm.c, silcfsm_i.h.
637
638 Mon Nov 28 17:06:54 EET 2005  Pekka Riikonen <priikone@silcnet.org>
639
640         * Added silc_file_set_nonblock.  Affected file is
641           lib/silcutil/silcfileutil.h.
642
643         * Added silc_fd_stream_file to lib/silcutil/silcfdstream.[ch].
644
645 Sat Nov 26 16:13:40 EET 2005  Pekka Riikonen <priikone@silcnet.org>
646
647         * FSM based implementation of SILC SKE.  Simpler interface also.
648           Affected files are in lib/silcske/.
649
650         * Added SilcBool type.  Affected file lib/silcutil/silctypes.h.
651
652 Sat Nov 19 17:34:51 EET 2005  Pekka Riikonen <priikone@silcnet.org>
653
654         * Added SilcMime API to lib/silcutil/silcmime.[ch].  The old
655           silc_mime_parse is available but deprecated.
656
657         * Check that packet is valid when processing key exchange,
658           authentication and rekey protocols.  Fixes a crashbug.
659           Affected files are apps/silcd/protocol.c and
660           lib/silcclient/protocol.c.
661
662         * Added SILC_HASH_MAXLEN to lib/silccrypt/silchash.h, and changed
663           all hash buffers to use that instead of fixed values.
664
665 Wed Nov 16 15:47:12 EET 2005  Pekka Riikonen <priikone@silcnet.org>
666
667         * Added SHA-256 to crypto library.  The SHA-256 takes now
668           precedence over SHA-1.
669
670 Thu May 26 20:31:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
671
672         * Check for valid return value from regcomp.  Affected file
673           lib/silcutil/unix/silcunixutil.c.
674
675 Tue May 10 23:11:17 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
676
677         * Fixed silc_hash_uint to work with integers.  Affected
678           file lib/silcutil/silcutil.c.
679
680 Tue May 10 15:11:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
681
682         * Rewritten SILC Log API.  Affected files lib/silcutil/silclog.[ch].
683
684 Mon May  9 12:00:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
685
686         * Fixed channel public key list saving on JOIN command reply
687           on backup router.  Affected file apps/silcd/command_reply.c.
688
689 Mon May  2 10:42:49 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
690
691         * Added default limit how many channels client can join,
692           default is 50.  Added 'channel_join_limit' configuration
693           option to server too.  Affected files are apps/silcd/command.c
694           and serverconfig.[ch].
695
696 Sun May  1 17:42:55 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
697
698         * --without-silc -> --with-silc, --without-irssi -> --with-irssi.
699           On Toolkit the server and client are not compiled by default.
700           Affected file configure.ad.
701
702 Thu Apr 28 15:57:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
703
704         * Added lib/contrib/getopt.[ch] for platforms that don't
705           have it (it is not GPL implementation).
706
707         * Fixed compilation when pkg-config is used.
708
709 Wed Apr 27 11:49:41 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
710
711         * A comma in invite/ban string is invalid, check for it.
712           Affected file apps/silcd/server_util.c.
713
714         * Added SERVICE command to the server.  It parses the command
715           request but SILC Server does not support services for the
716           time being.  Affected file apps/silcd/command.[ch].
717
718         * Added SERVICE command and command reply to client library.
719           It is however incomplete.  Updated Toolkit documentation.
720           Affected files are lib/silcclient/command[_reply].[ch].
721
722         * Fixed IDENTIFY/WHOWAS command reply to send the username
723           correctly (uninitialized buffer).  Affected file is
724           apps/silcd/server_query.c.
725
726 Mon Apr 25 14:25:24 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
727
728         * Moved silcer/, silc/, silcd/ and irssi/ to apps/.  This
729           finalizes the major restructuring of the CVS tree.
730
731 Mon Apr 25 00:39:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
732
733         * Send empty MOTD reply if MOTD file cannot be read.
734           Affected file silcd/command.c.
735
736 Sun Apr 24 12:01:37 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
737
738         * Optimized primer number generator to use simpler conversion
739           routines.  Also assure that the prime number will have the
740           highest bit set after modifying it.  Affected file is
741           lib/silcmath/silcprimegen.c.
742
743         * Added LibTomMath to SILC Math library (SILC_DIST_TMA).
744
745         * Added FastTomMath to SILC Math Library (SILC_DIST_TFM),
746           for now only for testing purposes, it will not be delivered
747           in any distribution for now.
748
749         * Removed NSS MPI from the source tree.  Due to upcoming
750           license change for the SILC Toolkit, we cannot deliver the
751           NSS MPI anymore.  I decided to replace it in all distributions
752           with public domain library.
753
754         * Removed GNU regex from lib/contrib and introduced free
755           GNU compatible regex, lib/contrib/regexpr.[ch].  Added
756           GNU regex compatible API to it (only partial).
757
758         * Removed getopt routines from lib/contrib.
759
760 Fri Apr 22 12:21:44 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
761
762         * Use silc_server_send_command_reply to send replies instead
763           of encoding packet itself.  Affected file silcd/command.c.
764
765         * Added command sending and receiving statistics to server.
766           Affected files in silcd/.
767
768         * GCC 4 warning fixes.  -Wno-pointer-sign option is now used
769           with GCC, for it not to warn about pointer signedness.
770
771 Tue Apr 19 11:57:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
772
773         * Added context to the SilcIDCache destructor.  Affected
774           files are lib/silccore/silcidcache.[ch],
775           lib/silcclient/client.c and silcd/server.c.
776
777 Mon Apr 18 09:53:28 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
778
779         * Added pkg-config check to configure.
780
781         * The PublicKeyDir must not be used with Admin block in server
782           config.  Affected file silcd/serverconfig.c.
783
784 Sat Apr 16 20:23:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
785
786         * Added Autodist.
787
788 Thu Apr 14 20:25:08 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
789
790         * Handle empty LIST command reply correcttly in server.  Affected
791           file silcd/command_reply.c.
792
793         * Handle empty LIST command reply correctly in client library.
794           The application will now receive one LIST command reply with
795           all arguments set to NULL if there are no channels.  Updated
796           Client Library documentation accordingly.  Affected file
797           lib/silcclient/command_reply.c.
798
799 Tue Apr 12 00:02:09 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
800
801         * Added channel name string stringprep profile to the protocol
802           and implementation to allow a little free'er channel name
803           strings.  Affected files are lib/silcutil/silcstringprep.[ch].
804
805         * Added silc_channel_name_[check|verify] to check and verify
806           channel name strings.  Affected files are
807           lib/silcutil/silcstrutil.[ch].
808
809         * Added support for the new channel name preparation in client
810           library and server.  Affected files in lib/silcclient and
811           silcd/.
812
813 Mon Apr 11 13:40:27 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
814
815         * Added the Autodist into the source tree.  It replaces the
816           old ./prepare.  It can be used to create distributions as
817           previously.  See README.CVS and README.DIST.  See
818           distributions in distdir/.
819
820 Sun Apr 10 11:30:56 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
821
822         * Make sure query sends at least an error back if nothing
823           more is sent.  Affected file silcd/server_query.c.
824
825 Thu Apr  7 14:50:01 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
826
827         * During query, check if the original command caller goes
828           away.  If it does, stop the query.  Affected file
829           silcd/server_query.c.
830
831         * Check for valid channel creation in JOIN command reply.
832           Affected file lib/silcclient/command_reply.c.
833
834         * Handle the resolver counter in silc_client_get_users_by_channel
835           callback correctly.  Fixed auto-join bug in Gaim.  Affected
836           file lib/silcclient/idlist.c.
837
838 Wed Apr  6 16:56:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
839
840         * Added some better error messages.  Affected file
841           silcd/command_reply.c and packet_receive.c.
842
843         * Handle error in WATCH command propely on backup router.
844           Affected file silcd/command.c.
845
846         * Fixed freeing of unfreeable variable in WHOIS command reply.
847           Affected file silcd/command_reply.c.
848
849 Wed Apr  6 09:10:31 CEST 2005  Pekka Riikonen <priikone@silcnet.org>
850
851         * Added pkg-config .pc file creation for silc core library
852           and silcclient library.  A patch by c0ffee.
853
854         * Removed the need for GNU Libidn.  Added the simple stringprep
855           from libidn into lib/contrib/.  It is now used also on Windows
856           build.
857
858 Mon Apr  4 15:15:46 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
859
860         * Simplified the invite and ban string handling in the
861           server.  Check for valid invite and ban arguments also.
862           Affected file silcd/server_util.c.
863
864 Sun Apr  3 14:58:53 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
865
866         * Added WATCH list announcing in backup router protocol.
867           Affected files are silcd/command.c, server.c, server_backup.c.
868
869         * Do not change users mode to founder on normal server/backup
870           if the founder mode is set, and user is first one to join.
871           Affected file silcd/pcaket_receive.c.
872
873         * Do not send CUMODE_CHANGE notify back to sender.  Affected
874           file silcd/packet_receive.c.
875
876         * Added getrusage() to take noise in SILC RNG.  A patch by
877           Mika Boström.  Affected files are configure.in.pre,
878           includes/silcincludes.h.in, lib/silccrypt/silcrng.c.
879
880 Sat Apr  2 18:09:30 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
881
882         * Splitted the SILC libraries configuration into a configure
883           fragment into lib/configure.ad.  It is now possible, once
884           this feature is added, to specify whether to compile or not
885           compile included SILC libraries.  Affected files are
886           configure.in.pre, lib/silcmath/mpi/configure.ad,
887           lib/configure.ad, Makefile.defines.pre and
888           Makefile.defines_int.pre.
889
890         * Added --with-silc-includes and --with-silc-libs to configure.
891           If specified the included libs are not compiled, but the
892           specified libs are used.  Pkg-config is not yet supported.
893           Affected file configure.in.pre.
894
895         * Fixed WATCH command handling on backup router.  Router does not
896           send the watch command any more to backup if it originates from
897           backup.  Affected file silcd/command.c.
898
899 Fri Apr  1 18:52:47 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
900
901         * Changed announcing to not announce unregistered clients.
902           Affected file silcd/server.c.
903
904         * Fixed username handling in command reply.  Affected file
905           silcd/command_reply.c.
906
907         * Log files are now 0600.  Affected file lib/silcutil/silclog.c.
908
909 Thu Mar 31 22:34:22 CEST 2005  Patrik Weiskircher <pat@icore.at>
910
911         * Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
912           Affected file: includes/silcincludes.h.in
913
914         * bool is defined as _Bool on Mac OS X now.
915           Affected file: lib/silcutil/silctypes.h
916
917 Thu Mar 31 08:52:06 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
918
919         * Added support for UTF-8 nicknames, channel names and
920           server names in client library.  Affected files in
921           lib/silcclient/.
922
923         * Added __SILC_HAVE_PTHREAD, __SILC_HAVE_SIM, __SILC_HAVE_LIBIDN,
924           and __SILC_ENABLE_DEBUG to include/silcclient.h for third-party
925           software to check how Toolkit has been compiled.
926
927 Wed Mar 30 22:16:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
928
929         * Added silc_utf8_str[n]casecmp into lib/silcutil/silcutf8.[ch].
930
931         * Use silc_utf8_str[n]casecmp instead of strcmp routines
932           in library and in SILC Client when dealing with nicknames
933           and other identifier strings.  Affected file in client lib
934           and irssi.
935
936         * Convert nickname to UTF-8 in /msg and /smsg.  Affected file
937           irssi/src/silc/core/silc-servers.c.
938
939 Wed Mar 30 10:50:02 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
940
941         * Fixed idcache to work with the new identifier strings.
942           Affected file lib/silccore/silcidcache.c.
943
944         * Added UTF-8 hash and compare function for SilcHashTable.
945           Affected file lib/silcutil/silcutil.[ch].
946
947         * Added casefolding stringprep, SILC_CASEFOLD_PREP.
948           Affected file lib/silcutil/silcstringprep.[ch].
949
950         * Changed the identifier string handling to include the original
951           format in client, server, channel entries and normalized
952           format in cache.  Affected files in silcd/.
953
954 Tue Mar 29 16:51:35 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
955
956         * Added support for the new identifier strings and their
957           validity checking.  Nicknames, channel names and usernames
958           can now include practically any kind of letters and various
959           other characters.  Affected files in silcd/ and in libraries.
960
961           NOTE: comparing these strings should now be done with memcmp()
962           to check binary compatibility.  All these strings are normalized
963           and casing is irrelevant.
964
965         * Added silc_identifier_check to lib/silcutil/silcstrutil.[ch]
966           as easy function for applications to check whether identifier
967           strings are valid.
968
969 Tue Mar 29 00:45:11 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
970
971         * Fixed SILC_STRING_LDAP_DN encoding and decoding.  Affected
972           file lib/silcutil/silcutf8.c.
973
974         * Added SILC_STRING_UTF8_ESCAPE to lib/silcutil/silcstrutil.h.
975
976 Mon Mar 28 22:46:23 CEST 2005  Jochen Eisinger <jochen@penguin-breeder.org>
977
978         * Make public key in getkey reply mandatory.  Affected file
979           lib/silcclient/command_reply.c
980
981 Sun Mar 27 19:03:31 CEST 2005  Patrik Weiskircher <pat@icore.at>
982
983         * Added Parameter dont_register_crypto_library to
984           SilcClientParam. If set to TRUE, silcclient library will
985           not initalize the Crypto Libraries and application
986           will need to do it. Affected file lib/silcclient/silcclient.h,
987           lib/silcclient/client.c.
988
989 Sun Mar 27 19:02:48 EEST 2005  Pekka Riikonen <priikone@silcnet.org>
990
991         * Imported new silc_utf8_[encode|decode] routines from
992           my internal SILC 1.1 source tree.  New encodings added:
993           SILC_STRING_LOCALE (SILC_STRING_LANGUAGE is deprecated),
994           SILC_STRING_UTF8, SILC_STRING_PRINTABLE, SILC_STRING_VISIBLE,
995           SILC_STRING_TELETEX, SILC_STRING_NUMERICAL and
996           SILC_STRING_LDAP_DN.
997
998         * Splitted UTF-8 routines into lib/silcutil/silcutf8.[ch].
999
1000         * Implemented stringprep (RFC 3454) API.  Internally we use
1001           GNU Libidn's stringprep, for now, so it is required now to
1002           compile SILC sources.  Added lib/silcutil/silcstringprep.[ch].
1003
1004         * Added checking for GNU Libidn and --with-libidn to configure.
1005
1006 Wed Mar 23 11:20:33 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1007
1008         * If the passphrases entered do not match while generating a new key,
1009           completly start over instead of going into an infinite loop asking
1010           the user to re-enter the passphrase correctly.  Affected file
1011           lib/silcutil/silcapputil.c
1012
1013 Sun Jan  9 14:28:51 CET 2005  Pekka Riikonen <priikone@silcnet.org>
1014
1015         * Make sure server is removed from backup list when it is
1016           deleted.  Affected files silcd/command.c, server.c,
1017           server_util.c.
1018
1019         * Close socket when connecting to router fails.  Affected
1020           file silcd/server.c.
1021
1022 Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
1023
1024         * Adopt configuration toolchain to current auto-tools.
1025           Affected files prepare, irssi/configure.in
1026         * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
1027           redo that.  Affected files irssi/src/silc/core/client_ops.c,
1028           irssi/src/fe-common/silc/fe-silc-channels.c
1029         * Take over command line options into silcclient data structure.
1030           Affected file irssi/src/silc/core/silc-core.c
1031
1032 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1033
1034         * Do not try to initiate backup resuming protocol forever.
1035           Affected file silcd/server_backup.c.
1036
1037 Wed Nov 24 18:24:05 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1038
1039         * ID change in resuming has to be done before changing
1040           detached client's modes, since the ID change may fail and
1041           leave ghosts on the network.  Affected file is
1042           silcd/packet_receive.c.
1043
1044 Tue Nov 23 16:54:35 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1045
1046         * Fixed Win32 scheduler to not stuck anymore.  A patch from
1047           Juha Räsänen.  Affected file is
1048           lib/silcutil/win32/silcwin32schedule.c.
1049
1050         * Fixed QoS parsing for connection blocks in server.  Affected
1051           file is silcd/serverconfig.c.
1052
1053         * Fixed server statistics increasing in server.  Affected file
1054           is silcd/server.c.
1055
1056         * The CLOSE command now marks backup router as self disconnected
1057           to avoid resuming problems.  Affected file silcd/command.c.
1058
1059 Wed Sep 22 19:46:32 CEST 2004  Patrik Weiskircher <pat@icore.at>
1060
1061         * When using silc_net_create_connection[_async], and your system can
1062           create IPv6 sockets, it will try to connect to the IPv6 host.
1063           Now it tries to connect to an IPv4 host if IPv6 fails. Affected
1064           file lib/silcutil/unix/silcunixnet.c
1065
1066 Fri Jun 18 19:26:58 CEST 2004  Pekka Riikonen <priikone@silcnet.org>
1067
1068         * Check for valid route when receiving packet from router and
1069           when routing it to local server in the cell.  A patch from
1070           Matt Miller.  Affected files silcd/router.c and server.c.
1071
1072 Sat May  1 13:55:54 CEST 2004  Patrik Weiskircher <pat@icore.at>
1073
1074         * Couldn't detach and reattach twice, because of the previous
1075           commit. Affected file silcd/packet_receive.c
1076
1077 Fri Apr 30 19:40:28 CEST 2004  Patrik Weiskircher <pat@icore.at>
1078
1079         * Added check to ignore Port value if Initiator is FALSE.
1080           Remote router coudln't connect if Port was set. Affected file
1081           silcd/serverconfig.c
1082
1083         * If some client tries to resume more than once at the same time,
1084           server crashed. Router didn't crash, but showed odd behaviour
1085           (didn't allow clients to join anymore, ..). Affected files
1086           silcd/packet_receive.c silcd/idlist.h
1087
1088 Mon Mar 15 21:10:08 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1089
1090         * Destroy the file transfer session in silc_client_file_close
1091           with timeout.  Affected file lib/silcclient/client_ftp.c.
1092
1093         * Call SFTP server monitor in READ and WRITE after the actual
1094           operations.  Affected file lib/silcsftp/sftp_server.c.
1095
1096 Wed Mar 10 21:30:02 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1097
1098         * Create one configure script from configure fragments
1099           (configure.ad).  This is a first step towards new distribution
1100           system.  Affected files prepare, configure.in.pre,
1101           lib/silcmath/mpi/configure.ad.
1102
1103 Wed Mar 10 18:35:24 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1104
1105         * Removed expiring of client key pair.  Affected file is
1106           irssi/src/silc/core/clientutil.c
1107
1108 Tue Mar  9 17:11:58 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1109
1110         * Check the number of connections from real number of
1111           connections instead of socket number, when deciding if
1112           server is full.  Affected files are silcd/server.c,
1113           server_internal.h and silcd.c.
1114
1115         * Clarified the connections_max meaning in General section
1116           in doc/example_silcd.conf.in.
1117
1118         * The reconnect_keep_trying default value set to TRUE
1119           if it is not defined in the config file.  Affected file
1120           silcd/serverconfig.c.
1121
1122 Wed Mar  3 15:13:49 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1123
1124         * Fixed crashbug in connection closing, after a protocol
1125           completion callback, which might have closed it already.
1126           Affected file silcd/server.c.
1127
1128         * Fixed rekey with PFS in backup router.  It did not allow
1129           rekeys with PFS, and when the rekey protocol timedout
1130           it crashed the backup router without the above fix.  Affected
1131           file silcd/packet_send.c and server.c.
1132
1133 Sat Feb 28 16:25:09 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1134
1135         * The silc_client_add_channel_private_key now returns the
1136           private key context if pointer is given as argument.
1137           Affected files are lib/silcclient/silcclient.h and
1138           client_channel.c.
1139
1140         * Added support for using channel private keys in SILC
1141           Client Library even if the private key mode is not set
1142           on the channel.  Affected file lib/silcclient/client_channel.c.
1143
1144         * The channel private key used to decrypt message is now
1145           delivered to the application in the 'channel_messageÃ' client
1146           operation.  Affected files are lib/silcclient/silcclient.h
1147           and client_channel.c.
1148
1149         * Fixed wrong arg type for user limit in CMODE command reply.
1150           Affected file silcd/command.c.
1151
1152         * The user limit is now taken and saved to SilcClientEntry in
1153           JOIN and CMODE command replies and in CMODE_CHANGE notify.
1154           Affected files lib/silcclient/silcclient.h, command_reply.c
1155           and client_notify.c.
1156
1157         * Added support to the new private message key indicator
1158           packet.  Added a new function to the client library:
1159           silc_client_send_private_message_key_request.  The sender
1160           indicates to be initiator, and receiver is responder.
1161           Added the indicator to the SilcClientEntry as 'prv_resp'
1162           boolean.  Affected files are lib/silcclient/silcclient.h
1163           client.[ch], and client_prvmsg.c.
1164
1165 Fri Feb 27 11:25:26 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1166
1167         * Fixed the JOIN command calling when called with both
1168          -auth and -founder.  Affected file is lib/silcclien/command.c.
1169
1170 Wed Feb 25 23:12:11 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1171
1172         * Check watcher list for resumed clients as well.  Affected
1173           file is silcd/packet_receive.c.
1174
1175 Tue Feb 24 16:49:10 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1176
1177         * Implemented the user limit to the CMODE_CHANGE notify,
1178           CMODE command reply and JOIN command reply in server.
1179           Affected files are silcd/server.c, command.c, command_reply.c,
1180           packet_send.c and packet_receive.c.
1181
1182 Mon Feb 23 23:31:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1183
1184         * Defined SILC_STRFMT_END that must be used now with
1185           silc_buffer_strformat, instead of SILC_STR_END.  Fixes
1186           crashes on AMD64.  Affected files are lib/silcutil/silcbuffmt.h,
1187           lib/silcclient/silcvcard.c, silcd/server_util.c.
1188
1189         * Fixed the adding of public key to the WATCH list in server.
1190           Fixed the WATCH notify sending to client.  Affected files
1191           are silcd/packet_send.[ch], command.c, server_util.c.
1192
1193         * Implemented the watching by public key in the SILC Client
1194           Library and SILC Client.  Affected files are
1195           lib/silcclient/command.c and client_notify.c.
1196
1197 Mon Feb 23 09:30:30 CET 2004  Pekka Riikonen <priikone@silcnet.org>
1198
1199         * Added support for public key watching in server.  Affected
1200           files are silcd/server.c, server_internal.h, command.c,
1201           server_util.c.
1202
1203 Sun Feb 22 19:03:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1204
1205         * Added public key to the SIlcClientEntry.  Affected files
1206           are lib/silcclient/silcclient.h, command_reply.c, idlist.c
1207
1208         * Fixed the get_clients_whois reply processing to return
1209           exactly same entries server returned.  Makes it possible
1210           to search using attributes.  Affected file is
1211           lib/silcclient/idlist.c.
1212
1213 Sat Feb 21 19:21:57 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1214
1215         * Save founder key to SilcChannelEntry.  Affected files are
1216           lib/silcclient/silcclient.h, command_reply.c, idlist.c.
1217
1218 Fri Feb 20 20:37:38 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1219
1220         * Call the monitor callback with _CLOSED status from the
1221           silc_client_file_close.  Affected files are
1222           lib/silcclient/client_fpt.c, silcclient.h
1223
1224         * Added silc_client_get_clients_whois which resolves using
1225           WHOIS, and supports requested attributes as well.
1226           Affected files are lib/silcclient/silcclient.h, idlist.c.
1227
1228 Fri Feb 19 21:09:22 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1229
1230         * Added support for asking the destination filename where
1231           the downloaded file is saved in the file transfer.  Affected
1232           files are lib/silccilent/silcclient.h, client_ftp.c.
1233
1234 Wed Feb 18 02:46:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1235
1236         * Fixed error handling in resuming data processing.  Affected
1237           files are lib/silcclient/client_resume.c and client.c.
1238
1239 Tue Feb 17 19:34:30 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1240
1241         * Fixed silc_client_send_private_message to return TRUE correctly.
1242           Affected file lib/silcclient/client_prvmsg.c.
1243
1244         * Added topic to the SilcChannelEntry.  Affected files are
1245           lib/silcclient/silcclient.h, command_reply.c, client_notify.c.
1246
1247 Fri Feb 13 14:19:14 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1248
1249         * Use conn->cmd_ident for all silc_client_command_call()s.  Affected
1250           file lib/silcclient/command.c
1251
1252 Fri Feb 13 13:53:45 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1253
1254         * Convert all commands to UTF-8 before passing them to the
1255           client library.  Still need to convert replies from UTF-8 to
1256           the locale encoding.  Affected file
1257           irssi/src/silc/core/silc-cmdqueue.c
1258
1259 Fri Feb 13 13:13:07 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1260
1261         * redirect all silc_client_command_calls through a queueing framework.
1262           This fixes /CYCLE and the annoying "nick change after auto-joining
1263           a channel".  Furthermore it defines one central point where
1264           command parameters can be UTF-8-ified.  Affected files
1265           irssi/src/silc/core/Makefile, client_ops.c, silc-channels.c,
1266           silc-servers.[ch], silc-core.c, silc-cmdqueue.[ch], silc-lag.c
1267
1268 Fri Feb 13 12:04:41 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1269
1270         * use asynchronous connect() to establish router connections.
1271           Fixes problem when the primary router goes down.  Affected files
1272           silcd/server.c, silcd/server_backup.c
1273
1274 Thu Feb 12 20:09:59 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1275
1276         * Added SILC_[32|64]_TO_PTR and SILC_PTR_TO_[32|64] macros.
1277           Fixed various compilation warnings when type casting ints
1278           to pointers or vice versa, of different size.  Updates around
1279           the source free.
1280
1281 Tue Feb  3 23:25:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1282
1283         * Surrogates not allowed in UTF-8 strings, updated decoder.
1284           Affected file lib/silcutil/silcstrutil.c.  Added UTF-8
1285           testers in lib/silcutil/tests/ directory.
1286
1287 Wed Jan 14 18:42:44 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1288
1289         * Added SILC_CLIENT_CONN_ERROR_KE, ERROR_AUTH, ERROR_RESUME and
1290           ERROR_TIMEOUT SilcClientConnectionStatus errors.  Affected
1291           files are lib/silcclient/silcclient.h, client.c.
1292
1293 Mon Jan 12 13:01:10 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1294
1295         * When resuming a session fails, notify the user that the session
1296           file needs to be removed eventually.  Affected files
1297           irssi/src/fe-common/silc/module-formats.[ch],
1298           irssi/src/silc/core/client_ops.c.
1299
1300 Tue Jan 04 12:16:04 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1301
1302         * Added DIST_SUBDIRS symbols to include all subdirs in distributions.
1303           Affected files lib/silcutil/Makefile.am, lib/silcmath/Makefile.am
1304
1305         * Typofix in Irssi::Silc module.  Affected file
1306           irssi/src/perl/silc/Silc.xs.
1307
1308 Tue Jan 04 02:43:44 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1309
1310         * Changed the way NOTICE flagged messages are treated. Added support
1311           for notices in queries and signing notices.  Affected files
1312           irssi/default.theme; irssi/docs/help/in/notice.in;
1313           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c;
1314           irssi/src/silc/core/client_ops.c, silc-channels.c, silc-servers.c
1315
1316         * Fixed typo in /ACTION help.  Affected file
1317           irssi/docs/help/in/action.in
1318
1319 Mon Jan 03 23:26:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1320
1321         * Fixed typo in perl module.  Affected file
1322           irssi/src/perl/silc/Server.xs
1323
1324         * Changed the way ACTION flagged messages are treated. Added support
1325           for actions in queries and signing actions.  Affected files
1326           irssi/default.theme; irssi/docs/help/in/action.in;
1327           irssi/src/fe-common/silc/module-formats.[ch], fe-silc-messages.c,
1328           fe-silc-queries.c; irssi/src/silc/core/client_ops.c, silc-channels.c,
1329           silc-servers.[ch]
1330
1331 Mon Jan 03 16:04:29 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1332
1333         * Incorrectly reported error when client had to be resolved from
1334           server in /SMSG.  Affected file irssi/src/silc/core/silc-servers.c
1335
1336 Sat Jan  3 16:37:15 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1337
1338         * Fixed whois public key hash table deleting and adding in
1339           detached client case.  Affected file silcd/packet_receive.c.
1340
1341 Sat Jan 03 12:15:38 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1342
1343         * Changed filenames of silc/fe module not to collide with filenames
1344           from core/fe.  Also seperated public messages printing from
1345           query messages printing.  Affected files are all in
1346           irssi/src/fe-common/silc.
1347
1348 Sat Jan  3 12:18:07 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1349
1350         * Fixed the invite process handling during joining to use
1351           correct server name for the client that is matched against
1352           the invite string for the channel.  Wrong server name caused
1353           inability to join the channel.  Affected file is
1354           silcd/command.c.
1355
1356 Fri Jan  2 23:34:17 EET 2004  Pekka Riikonen <priikone@silcnet.org>
1357
1358         * Fixed the CUMODE channel founder authentication on normal
1359           server to not remove the founder rights on existing founder
1360           before checking that router accepts the mode change.  Affected
1361           files are silcd/command.c and silcd/packet_receive.c.
1362
1363         * Remove the server entry correctly when rekey timeouts and
1364           remote router connection on normal server is closed.  Fixes
1365           a crash where server uses the freed server entry.  Affected
1366           file silcd/server.c.
1367
1368 Fri Jan 02 10:28:15 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1369
1370         * Add /SILCNET [ADD|REMOVE|LIST] command to manage different SILC
1371           networks.  This is the first step in solving the bug about
1372           /SERVER ADD -silcnet <silcnet>.  Affected files
1373           irssi/docs/in/silcnet.in; irssi/src/fe-common/silc/Makefile.am,
1374           fe-silcnet.c, fe-common-silc.c, module-formats.[ch];
1375           irssi/src/silc/core/silc-chatnets.[ch], silc-core.c, Makefile.am
1376
1377 Thu Jan 01 20:11:32 CET 2004  Jochen Eisinger <jochen@penguin-breeder.org>
1378
1379         * /SMSG and /MMSG now correctly create new queries. Affected files
1380           irssi/src/fe-common/silc/fe-messages.c, irssi/scripts/silc-mime.pl
1381
1382         * Add basic support for SILC protocol specific variables in perl.
1383           Affected files irssi/src/perl/silc/*, irssi/configure.in,
1384           irssi/src/perl/Makefile.am
1385
1386 Wed Dec 31 17:06:55 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1387
1388         * Don't use silc_get_input, it's obviously not reliable.  Fixes
1389           issue when the current key expires.  Affect file
1390           irssi/src/silc/core/clientutils.c
1391
1392         * Make the session data filename configurable.  This makes it
1393           possible to have different session files for different
1394           SILC networks.  Affected files irssi/src/silc/core/silc-core.c,
1395           client_ops.[ch], silc-servers.c,
1396           irssi/src/silc/fe-common/silc/module-formats.[ch]
1397
1398         * Use the same set of libtool files for the MPI lib as for the
1399           rest of the toolkit.  Affected files lib/silcmath/mpi/config.guess,
1400           config.sub, configure.in, install-sh, missing, mkinstalldirs
1401
1402 Sun Dec 28 21:57:39 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1403
1404         * Fixed server statistics decrementing error to not go to
1405           negative.  Affected file silcd/packet_receive.c.
1406
1407 Sat Dec 20 14:42:36 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1408
1409         * Use silc_server_query_add_error to add error in public key
1410           search error.  Added support in send_reply to send errors
1411           without specific argument.  Affected file silcd/server_query.c.
1412
1413         * Fixed the WHOIS, IDENTIFY and WHOWAS error handling in SILC
1414           Client for NO_SUCH_NICK.  It was against the protocol specs.
1415           Affected file irssi/src/silc/core/client_ops.c.
1416
1417         * Added backwards support for the wrong NO_SUCH_NICK error sending
1418           in server.  To be removed in SILC Server 1.0.  Both old clients
1419           and clients with fixed error handling now works.  Affected file
1420           silcd/server_query.c.
1421
1422 Sat Dec 20 00:44:47 CET 2003  Patrik Weiskircher <pat@icore.at>
1423
1424         * fixed a bug in the whois using attributes function where no
1425           error was sent if no nickname and client id but the attributes were
1426           given to whois. Affected file silcd/server_query.c
1427
1428 Tue Dec 16 21:34:59 CET 2003  Patrik Weiskircher <pat@icore.at>
1429
1430         * remove public key from public key hashtable on detach. Affected
1431           file silcd/packet_receive.c
1432
1433         * free public key hashtable before removing clients on server
1434           shutdown. Affected file silcd/server.c
1435
1436         * remove public key prior deleting client-data on killing a client.
1437           Affected file silcd/server_util.c
1438
1439 Sat Dec 06 21:35:14 CET 2003  Patrik Weiskircher <pat@icore.at>
1440
1441         * Getting the MOTD from other servers works now. Affected
1442           files are silcd/command.c and silcd/command_reply.c
1443
1444 Thu Dec 04 11:33:46 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1445
1446         * Initialize the variable idletag, since it is tested in
1447           silc_core_deinit for its default value.  Affected file
1448           irssi/src/silc/core/silc-core.c
1449
1450 Sun Nov 30 19:47:02 CET 2003  Patrik Weiskircher <pat@icore.at>
1451
1452         * Fixed signed channel messages across cells. Affected file
1453           silcd/packet_send.c
1454
1455 Fri Nov 28 19:13:21 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1456
1457         * Changed the SILC_LOG_* macros to not be empty if SILC_DEBUG
1458           is not defined.  They can now be safely used in if-statements
1459           without braces.  Affected file lib/silcutil/silclog.h.
1460
1461         * Added the checks for backup closing connection due to error
1462           (local or remote) and thus not allow the resuming to occur
1463           in reconnect.  Affected files are silcd/packet_send.c
1464           and server.c.
1465
1466 Tue Nov 25 15:20:59 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1467
1468         * Help file updates.  Affected files in irssi/src/docs/help/in/.
1469
1470 Wed Nov 23 20:51:21 CET 2003  Patrik Weiskircher <pat@icore.at>
1471
1472         * Fixed channel messages across cells. Affected file
1473           silcd/packet_send.c
1474
1475 Wed Nov 12 11:34:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1476
1477         * Fixed file transmission accepting in client library to not
1478           start the negotiation if user hasn't accepted the transfer,
1479           instead create new session for resent transfer.  Affected
1480           file lib/silcclient/client_ftp.c.
1481
1482         * Show the session ID in the file transmision list.  Remove
1483           session from list that failed to transfer.  Switch the current
1484           session automatically after transmission, and in errors, to new
1485           session if other sessions exists in the transfer list.  Affected
1486           files are irssi/src/silc/core/silc-servers.c,
1487           irssi/src/fe-common/silc/modfule-formats.c.
1488
1489 Mon Nov 10 14:41:40 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1490
1491         * Fixed MIME header parsing for the hopefully last time.  Affected
1492           file lib/silcutil/silcstrutil.c
1493
1494 Mon Nov 10 13:03:46 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1495
1496         * Rewrote the PKCS#1 routines.  Added lib/silccrypt/silcpkcs1.[ch].
1497
1498         * The SILC RNG is now gauranteed to return non-zero random
1499           values.  Affected files are lib/silccrypt/silcrng.[ch].
1500
1501 Sun Nov  9 20:44:56 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1502
1503         * Fixed nickname formatting when changing only case of the
1504           nickname.  Affected file lib/silcclient/idlist.c.
1505
1506 Sun Nov  9 19:33:59 CET 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1507
1508         * Fixed a memory leak and incorrect printing of the "appears as"
1509           message.  Affected file irssi/src/silc/core/client_ops.c
1510
1511 Sun Nov  9 17:45:11 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1512
1513         * Added CRT (Chinese Remainder Theorem) supported RSA
1514           private keys and private key operations.  This significantly
1515           increases private key operation efficiency.  No compatibility
1516           issues with new or old private keys.  Affected files are
1517           lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
1518
1519 Sat Nov  8 13:08:53 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1520
1521         * Fixed GCC-3.3.2 related compilation warnings from the
1522           source tree.
1523
1524 Fri Nov  7 23:01:47 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1525
1526         * Removed RC6 from distributions.
1527
1528 Fri Nov  7 19:38:42 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1529
1530         * Added some better comments to lib/silccrypt/silcpkcs.h,
1531           optimized some routines in lib/silccrypt/silcpkcs.c.
1532           Added test_silcpkcs into lib/silccrypt/tests/.
1533
1534         * Fixed silc_rng_global_init to actually init the global RNG
1535           if RNG wasn't provided for it.  Affected file is
1536           lib/silccrypt/silrng.c.
1537
1538 Thu Nov  6 21:08:28 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1539
1540         * Added silc_hash_table_find_by_context_ext.  Affected files
1541           lib/silcutil/silchashtable.[ch].
1542
1543         * Save the public key on normal server in WHOIS command reply
1544           from attributes, if present, and add it to public key hash
1545           table.  Fixes WHOIS resolving by public key on normal server.
1546
1547           Optimized the attributes resolving on normal server to not
1548           resolve if we resolved them already from router.
1549
1550           Affected files are silcd/server_query.c, command_reply.c.
1551
1552 Wed Nov  5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
1553
1554         * Added support for whois using attributes.
1555           Affected files silcd/command_reply.c, silcd/packet_receive.c,
1556           silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
1557           silcd/server_util.c
1558
1559         * Added support for whois using public key attribute to /WHOIS i
1560           client command. Affected files irssi/docs/help/in/whois.in,
1561           irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
1562
1563 Wed Nov  5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1564
1565         * Fixed UMODE setting in server when the client has anonymous
1566           mode set.  The mode setting was not working.  Affected file
1567           silcd/command.c.
1568
1569 Mon Nov  2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1570
1571         * Fixed some bugs and typos related to sending split messages.
1572           Print notification when sending messages with /MMSG.  Affected
1573           files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
1574
1575 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1576
1577         * Optimized the socket referencing in packet routines, client
1578           library and server.  Affected files are lib/silccore/silcpacket.c,
1579           lib/silcclient/client.c and silcd/server.c.
1580
1581         * If silc_socket_set_qos is given with NULL arguments the QoS is
1582           reset from the socket.  Affected files are
1583           lib/silcutil/silcsockconn.[ch].
1584
1585 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1586
1587         * Add a /LISTKEYS command which lists the locally cached
1588           client and server keys.  Affected files
1589           irssi/src/fe-common/module-formats.[ch],
1590           irssi/src/silc/core/silc-{channels,servers}.c
1591           irssi/docs/help/in/listkeys.in
1592
1593 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1594
1595         * Check that packet queue purging was successful.  Affected
1596           files lib/silcclient/client.c and silcd/packet_send.c.  Related
1597           to MAC failed errors.
1598
1599         * Do not clear the inbuf even if it is empty if QoS was applied
1600           to it.  Otherwise the QoS data is cleared and MAC failed error
1601           will occur.  Affected file lib/silccore/silcpacket.c.
1602
1603         * Use the rekey period time as rekey protocol timeout value.
1604           If the rekey does not succeed during the rekey period there's
1605           something very wrong, and we most likely end up with wrong keys,
1606           do graceful reconnect then.   Affected file silcd/server.c.
1607
1608         * Take reference of the socket in the parser context, as it's
1609           possible to have the parsers in queue after the socket is
1610           disconnected and this may cause crash.  Affected files are
1611           lib/silccore/silcpacket.c, lib/silcclient/client.c and
1612           silcd/server.c.
1613
1614 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1615
1616         * Fixed KICK command reply sending, it sent to replies.
1617           Affected file silcd/command.c.
1618
1619 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
1620
1621         * Finish the silc-mime.pl script. It now supports MIME type
1622           guessing using magic files, signing data messages, executing
1623           MIME handlers in background. Affected files
1624           irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
1625
1626         * Changed MIME signal handler to make things easier for the perl
1627           script. Affected files irssi/src/silc/core/client_ops.c,
1628           silc-servers.c, and irssi/docs/signals.txt
1629
1630         * Cleaned up the silc_mime_parse function and fixed detection
1631           of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
1632
1633 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
1634
1635         * Resolve the IP for file transfer listener from the connection
1636           socket.  Affected file lib/silcclient/client_ftp.c.
1637
1638         * Accept NULL hostname parameter in the functions
1639           silc_net_check_[local|remote]_by_socket.  Do not reverse lookup
1640           if hostname is not wanted.
1641
1642 Fri Oct 24 21:24:12 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1643
1644         * Fixed race condition between silc_client_init and
1645           my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
1646
1647 Fri Oct 24 16:43:40 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1648
1649         * Fixed file transfer connection closing when SIGNOFF for
1650           the client is received from server.  Affected file is
1651           lib/silcclient/client_ftp.c.
1652
1653 Tue Oct 21 13:35:57 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1654
1655         * Check for disconnected socket in QUIT callback.  Affected
1656           file silcd/command.c.
1657
1658 Thu Oct 21 09:43:17 CEST 2003  Jochen Eisinger <jochen@penguin-breeder.org>
1659
1660         * Modified the MIME parsing to allow \n and \r\n as delimiters.
1661           Affected files lib/silcutil/silcstrutil.c
1662
1663         * Cleaned up the escape/unescape functions for correctness and
1664           speed. Affected file irssi/src/silc/core/client_ops.c
1665
1666         * Removed handling for data messages with Content-Type: text/*,
1667           moved parsing of MIME headers to the signal handler, added
1668           support for signing and verifying data messages. Affected
1669           files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
1670           irssi/src/silc/core/silc-{servers,channels}.c
1671
1672         * Added a perl script for handling data messages based on
1673           information read from Mailcap files. New file
1674           irssi/scripts/silc-mime.pl
1675
1676 Mon Oct 20 16:08:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1677
1678         * Added new SILC_MESSAGE_FLAG_ACK that can  be used to
1679           acknowledge recepetion of a message to the sender.  Updated
1680           protocol specs.
1681
1682 Sat Oct 18 11:55:33 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1683
1684         * Unregister channel key saving callback when deleting channel.
1685           Affected file lib/silcclient/idlist.c.
1686
1687         * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
1688           before calling notify client operation.  Affected file is
1689           lib/silcclient/client_notify.c.
1690
1691         * Unregister QoS tasks when deleting the socket connection.
1692           Affected files lib/silcutil/silcsockconn.[ch],
1693           unix/silcunixsockconn.c.
1694
1695         * Implemented latest presence-attrs draft changes.  Affected
1696           files lib/silccore/silcattrs.h and
1697           irssi/src/silc/core/silc-queries.c.
1698
1699 Tue Oct 14 18:24:53 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1700
1701         * Save old channel keys in list to allow more rapid change
1702           of channel keys if server for some reason does that.  This
1703           avoids loosing so many channel messages due to not having
1704           key to decrypt.  Affected file lib/silcclient/silcclient.h,
1705           idlist.c and client_channel.c.
1706
1707 Mon Oct 13 21:37:47 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1708
1709         * Continued backup router tests and fixes.  Affected files
1710           silcd/server_backup, server_util.c, server.c.  See TODO.
1711
1712 Sun Oct 12 19:58:18 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1713
1714         * Fixed SERVER_SIGNOFF handling in servers.  The client
1715           was removed from wrong list thus not removing the client
1716           at all.  Affected file silcd/packet_receive.c.
1717
1718         * Do not execute rekey protocol for disabled connections as
1719           it would never go through.  Affected file silcd/server.c.
1720
1721         * Added timeout for rekey protocol to catch if the protocol
1722           never executes successfully.  Affected files silcd/server.c
1723           and protocol.h.
1724
1725 Sat Oct 11 15:39:22 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1726
1727         * Abandon packet processing for disconnected sockets.  Check
1728           this always after calling packet processing callback.
1729           Affected file lib/silccore/silcpacket.c.
1730
1731         * Fixed double registration disconnection code in server.
1732           Closed wrong connection.  Affected file silcd/packet_receive.c.
1733
1734 Fri Oct 10 16:27:12 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1735
1736         * On normal server reconnect to primary during resuming 4
1737           times, then give up.  Affected file silcd/server_backup.c.
1738
1739         * If during reconnecting to routers we notice we have router
1740           connection but no primary router set, the server is in desync.
1741           Reconnect to primary to restore network.  Affected file
1742           silcd/server.c.
1743
1744         * Assure that only one protocol is exeucting at the same time.
1745           Added checks for all protocols.  Affected files are
1746           silcd/server.c and server_backup.c.
1747
1748 Thu Oct  9 20:24:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1749
1750         * Check that a string is not already part on invite/ban
1751           string when processing it.  Affected file silcd/server_util.c.
1752
1753 Thu Oct  9 12:06:40 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1754
1755         * Fixed the CUMODE_CHANGE for founder mode changes to comply
1756           with 1.2 version of the protocol.  Affected file is
1757           silcd/packet_receive.c.
1758
1759 Wed Oct  8 19:41:15 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1760
1761         * ERR_BAD_PASSWORD now returns the Channel ID of the channel
1762           where the passphrase was given.  Affected file is
1763           silcd/command.c.
1764
1765 Wed Oct  8 09:32:12 CEST 2003  Pekka Riikonen <priikone@silcnet.org>
1766
1767         * INVITE and BAN notifys are now delivered from routers to
1768           servers (but not clients) on the channel.  Updated specs and
1769           code.  Affected files silcd/packet_[send|receive].[ch],
1770           command.c, server.c and server_util.c.
1771
1772         * Implemented INVITE and BAN announcing.  Affected files are
1773           silcd/server.[ch], server_util.c.
1774
1775         * Implemented SilcStatus error type argument returning in
1776           command reply error in server.  Affected file silcd/command.c.
1777
1778         * Implemented SilcStatus argument returning in comand reply
1779           in client library.  The command_reply client operation now
1780           returns error specific arguments as well.  Affected files
1781           are lib/silcclient/command_reply.[ch], client_resume.c,
1782           lib/silccore/silcstatus.[ch].
1783
1784 Sun Oct  5 20:22:08 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1785
1786         * Backup router protocol version 1.2 implemented.  Testing still
1787           required.  Affected files in silcd/server_backup.[ch], server.c,
1788           packet_receive.c and server_internal.h.
1789
1790 Sun Oct  5 12:36:37 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1791
1792         * silc_client_send_[channel|private]_message now return TRUE
1793           or FALSE.  Affected file lib/silcclien/client_channel.c and
1794           client_prvmsg.c.
1795
1796 Thu Oct  2 17:03:09 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1797
1798         * Check for explicit nickname in INVITE and BAN processing
1799           during join as well (and don't expect only wildcards in
1800           invite/ban strings).  Affected file silcd/command.c.
1801
1802         * Fixed the INVITE and BAN by public key.  The public key saved
1803           is the PK payload (as specified) not the raw data.  Affected
1804           file silcd/server_util.c.
1805
1806 Wed Oct  1 20:29:06 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1807
1808         * UTF-8 text message support for actions and notices in SILC
1809           Client.  Affected file irssi/src/silc/core/client_ops.c.
1810
1811         * silc_get_username and silc_get_real_name now returns sensible
1812           data on Win32.  Patch by Toni Willberg.  Affected file is
1813           lib/silcutil/win32/silcwin32util.c.
1814
1815 Sun Aug 24 23:35:19 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1816
1817         * Provide a signal handler to send MIME encoded messages and emit
1818           a signal when a MIME encoded message is received. Also document
1819           the signals for usage with the perl interface.
1820
1821           A sample perl script will be supplied at a later point.
1822
1823           Affected files are irssi/docs/signals.txt,
1824           irssi/src/silc/core/client_ops.[ch],
1825           irssi/src/silc/core/silc-{channels,servers}.c
1826
1827 Sun Aug 24 12:58:30 CEST 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
1828
1829         * Use SILC_COMMAND_PING to estimate the round-trip time to the
1830           server. Use this time to display a lag and disconnect when it
1831           exceeds a specified limit.
1832
1833           Affected files are irssi/src/silc/core/silc-{lag,core}.c.
1834
1835 Mon Aug 11 17:14:17 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1836
1837         * Remove the channel auth list in normal server if router
1838           encofrces its list during connecting.  Send notify to channel
1839           to remove the mode to remove the list.  Affected files are
1840           silcd/server_util.c and silcd/packet_receive.c.
1841
1842 Wed Aug  6 14:52:04 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1843
1844         * Added support for channel public keys.  Updated protocol specs
1845           and implemented it.  Affected files are
1846           silcd/command.c, command_reply.c, lib/silcclient/command.c,
1847           lib/silcclient/command_reply.c.
1848
1849 Wed Jul 23 12:17:01 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1850
1851         * Ignore SIGXFSZ and SIGXCPU signals in server.  They can
1852           terminate the process on Linux.  Affected file silcd/silcd.c.
1853
1854 Mon Jun  2 19:13:27 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1855
1856         * Check for NULL buffer in silc_buffer_clear.  Affected file
1857           is lib/silcutil/silcbuffer.h.
1858
1859         * Simplified the backup router protocol by removing the _GLOBAL
1860           types.  Updated protocol specs and the code.  Affected files
1861           are silcd/server_backup.[ch].
1862
1863 Thu Apr 24 19:50:25 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1864
1865         * Deny '@' and '!' from nicknames since they are reserved
1866           by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
1867           Updated protocol specs and the code.
1868
1869           Affected files are silcd/server_util.[ch].
1870
1871 Wed Apr  9 18:51:59 EEST 2003  Pekka Riikonen <priikone@silcnet.org>
1872
1873         * Fixed stack overflow in Irssi SILC client.  Affected
1874           file irssi/src/silc/core/client_ops.c.
1875
1876         * Check that Host is set in ServerConnection and RouterConnection
1877           in silcd.conf.  Affected file silcd/serverconfig.c.
1878
1879         * Fixed crash in server with protocol completion callbacks,
1880           namely rekey and backup resuming protocols.  Affected files
1881           are silcd/server_backup.c and silcd/server.c.
1882
1883         * Fixed rekey protocol to not restart if it is started already.
1884           Affected files are lib/silcclient/client.c and
1885           silcd/server.c.c
1886
1887 Mon Mar 17 18:35:24 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1888
1889         * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
1890
1891         * Fixed EOF handling in SILC Config, affected file
1892           lib/silcutil/silcconfig.c.
1893
1894         * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
1895
1896         * Fixed RESOLVING flag handling in JOIN notify and other
1897           notifys to handle the resolvings correctly in client library.
1898           Affected file lib/silcclient/client_notify.c.
1899
1900         * Do not send full INVITE and BAN lists in INVITE and BAN
1901           notifys, only the changed information.  Affected file
1902           silcd/command.c.
1903
1904         * Fixed INVITE notify sending in INVITE command, send it
1905           only when needed.  Affected file silcd/command.c.
1906
1907         * Handle the founder key change properly in CMODE_CHANGE
1908           notify.  Bug #122.  Affected file silcd/packet_receive.c.
1909
1910 Sun Mar  9 16:29:20 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1911
1912         * Remove the mark for output (mark it only for input) after
1913           purging outgoing queue.  Prevents the "Error in select()"
1914           floods.  Affected file silcd/packet_send.c.
1915
1916         * Fixed incorrect connection deletion from client library
1917           after calling "connect" client operation.  Could cause
1918           crashes for example during reconnect timeouts.  Affected
1919           files are lib/silcclient/client.c and
1920           irssi/src/silc/core/client_ops.c.
1921
1922         * Check server private key file permissions before starting
1923           the server.  Affected file silcd/serverconfig.c.
1924
1925 Tue Feb  4 22:53:26 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1926
1927         * NULL terminate allocated string in silc_buffer_strformat.
1928           Affected file lib/silcutil/silcbuffmt.c.
1929
1930         * Rewrote the invite/ban list string handling in server to
1931           use SilcBuffer instead.  Affected files are silcd/command.c
1932           and silcd/server_util.c.
1933
1934 Mon Feb  3 14:43:52 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1935
1936         * Fixed double free in CMODE command when setting new HMAC
1937           for channel.  Affected file silcd/command.c.
1938
1939         * Added couple of missing memset's to zero sensitive memory.
1940           Affected files silcd/command.c, lib/silcclient/command.c.
1941
1942 Sun Jan 26 12:20:30 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1943
1944         * Fixed a double free in INVITE command error handling in
1945           server.  Affected file silcd/command.c.
1946
1947         * Added macros SILC_SWAB_[16|32] to swab byte order of
1948           16-bit and 32-bit unsigned integers.  Affected file
1949           lib/silcutil/silctypes.h.
1950
1951         * Use the SILC_SWAB_16 instead of htons() in server when
1952           handling ports since the ports in structures are always
1953           in little-endian order (regardless of platform).  Affected
1954           file silcd/serverid.c and silcd/server_backup.c.
1955
1956 Tue Jan 21 17:18:04 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1957
1958         * Send DISCONNECT in close admin command in server.  Affected
1959           file silcd/command.c.
1960
1961         * Check whether we are already connecting to a remote router
1962           (in addition of checking whether we are already connected)
1963           before creating new connection.  Affected file silcd/server.c.
1964
1965 Thu Jan 16 18:47:00 EET 2003  Pekka Riikonen <priikone@silcnet.org>
1966
1967         * Added better compiler and compiler flags checking in
1968           configure.
1969
1970         * Check that socket is valid after QoS is applied to data.
1971           Affected file lib/silcutil/unix/silcunixsockconn.c.
1972
1973         * Make sure the socket connecetion is not closed to early
1974           when closing connection in server.  Also make sure the
1975           connection is always closed after error in a protocol.
1976           Affected file silcd/server.c.
1977
1978 Wed Jan 15 11:03:36 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1979
1980         * Removed --session and --dummy options from Irssi SILC Client.
1981           -d option is available only if --enable-debug was given.
1982           Affected files are irssi/src/silc/core/silc-core,
1983           irssi/src/core/session.c and irssi/src/fe-text/silc.c.
1984
1985 Tue Jan 14 12:25:09 CET 2003  Pekka Riikonen <priikone@silcnet.org>
1986
1987         * Added silc_buffer_steal to steal the data from the buffer.
1988           Affected file lib/silcutil/silcbuffer.h.
1989
1990 Sat Jan 11 18:16:29 CET 2003  Giovanni Giacobbi <giovanni@giacobbi.net>
1991
1992         * Fixed server crash with double Primary block in config file.
1993
1994           Fixed also various memory leaks around the config file
1995           parser.  Affected files lib/silcutil/silcconfig.c,
1996           silcd/serverconfig.c.
1997
1998         * Changed my nickname (Johnny Mnemonic) to my real name, this
1999           means that bugs introduced by him were actually introduced
2000           by me!
2001
2002 Tue Jan  7 21:58:53 CET 2003  Jochen Eisinger <c0ffee@penguin-breeder.org>
2003
2004         * Don't display "foo appears as foo\nYou're now known as foo"
2005           messages.  Affected file irssi/src/silc/core/client_ops.c
2006
2007 Tue Jan  7 20:08:15 EET 2003  Pekka Riikonen <priikone@silcnet.org>
2008
2009         * Fixed error handling of invalid client entry when calling
2010           commands in server.  Fixes a crash.  Affected file
2011           silcd/command.c.
2012
2013 Thu Dec 26 14:19:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2014
2015         * Added some sanity checks in server for correctness of the
2016           server configuration.  Affected file silcd/serverconfig.c.
2017
2018 Fri Dec 20 10:47:59 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2019
2020         * Prevent endless resolving of user informations in USERS
2021           command by checking the command reply status correctly.
2022           Affected file lib/silcclient/command_reply.c.
2023
2024 Tue Dec 17 10:05:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2025
2026         * Fixed file writing on WIN32 to use O_BINARY flag.  Affected
2027           file is lib/silcutil/silcfileutil.c.  A patch by Matthew
2028           Aldous <Matthew@Aldous.com>.
2029
2030         * Added better implementation using CriticalSection of
2031           SilcMutex on WIN32.  A patch by Mikko Lähteenmäki
2032           <mikko.lahteenmaki@pikabaana.net>.
2033
2034         * Added some Winsock WIN32 compatiblity defines into
2035           includes/silcwin32.h.
2036
2037 Mon Dec 16 19:33:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2038
2039         * Fixed double free in async host lookup code.  Affected file
2040           lib/silcutil/silcsockconn.c.
2041
2042         * On backup router handle now the SERVER_SIGNOFF from router
2043           for local connected servers too, and close the connections.
2044
2045           Do not process them as normally signing off servers when they
2046           really signoff by sending EOF fe, but always assume that
2047           router sends the SERVER_SIGNOFF.
2048
2049           Affected files silcd/server.c and silcd/packet_receive.c.
2050
2051         * Fixed socket unsetting when closing connections.  Affected
2052           files silcd/server.c and silcd/packet_send.c.
2053
2054         * Do not print the nickname in SERVER_SIGNOFF if we do not
2055           have it.  Prevents asserts in Irssi core.  It is possible we
2056           don't have the nick if it was just being resolved when server
2057           signoff.  Affected file irssi/src/silc/core/client_ops.c.
2058
2059 Thu Dec 12 23:22:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2060
2061         * Fixed autonick crashbug in client library.  Affected file
2062           lib/silcclient/client.c.
2063
2064         * Fixed Unix implementation of SilcMutex to really assert if
2065           the mutex is locked/unlcoked already.  Affected file
2066           lib/silcutil/unix/silcunixmutex.c.
2067
2068         * Fixed locking in silc_schedule_uninit.  It didn't lock
2069           when dispatching timeout tasks.  Affected file is
2070           lib/silcutil/silcschedule.c.
2071
2072         * Changed Win32 implementation of SilcThread to use modern
2073           Win32 interface.  Affected file is
2074           lib/silcutil/win32/silcwin32thread.c  A patch by Mikko L.
2075
2076 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2077
2078         * Don't print signed messages when sending failed.  Affected files
2079           irssi/src/silc/core/silc-[servers.c/commands.h]
2080
2081         * Send adquate signal when founding a channel by joing it.  Affect
2082           file irssi/src/silc/core/client_ops.c
2083
2084 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
2085
2086         * Fix theme abstracts parsing.  Affected files irssi/default.theme,
2087           irssi/src/fe-common/core/themes.c
2088
2089 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2090
2091         * Fixed close command to use the port correctly when closing
2092           server connections.  Affected file silcd/idlist.c.
2093
2094         * Check for NULL outbuf in silc_socket_write.  It is possible
2095           that it is NULL is some odd case.  Affected files are
2096           lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
2097
2098         * Do not call final protocol callback for backup router
2099           resuming protocol when closing connection.  It is closed
2100           by timeout in case of error.  Affected file silcd/server.c.
2101
2102         * Backup reconnect to router if backup resuming protocol
2103           failed.  Affected file silcd/server_backup.c.
2104
2105 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
2106
2107         * Fixed double free in SKE library error hadling when signature
2108           error occurred.  Affected file lib/silcske/silcske.c.
2109
2110         * Save the fingerprint to new SilcClientEntry after changing
2111           nickname.  Affected file lib/silcclient/client_notify.c.
2112
2113         * Print SIGNOFF in Irssi SILC client only if the nickname is
2114           known.  Prevents asserts in Irssi core.  It is possible we
2115           don't have the nick if it was just being resolved when it
2116           quit.  Affected file irssi/src/silc/core/client_ops.c.
2117
2118 Tue Dec 10 21:47:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2119
2120         * Fixed double free in invite list adding code when adding
2121           invite strings.  Affected file silcd/server_util.c.
2122
2123 Fri Dec  6 17:40:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2124
2125         * More log printing during backup router protocol.  Affected
2126           file silcd/server_backup.c.
2127
2128         * Removed backwards support for old private key file format.
2129           Affected file lib/silccrypt/silcpkcs.c.
2130
2131         * Removed backwards support for not-so-strict decryption length
2132           check, it's strict now.  Affected lib/silccrypt/silccipher.c.
2133
2134         * GETKEY to update the client entrys fingerprint too.
2135           Affected file lib/silcclient/command_reply.c.
2136
2137         * Added --without-libtoolfix for package builders using weird
2138           wrappers around libtool (BSD at least).
2139
2140 Thu Dec  5 22:29:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2141
2142         * Fixed backup router bugs:  When backup resumes router and
2143           receives a CHANNEL_MESSAGE packet the backup must not act
2144           as router since the packet header decryption would be
2145           different.  Also, when relaying packets to channel, do
2146           not re-encrypt packets on backup that came from the primary
2147           since the connection isn't really router-router connection.
2148           Affected files silcd/server.c, silcd/packet_send.c.
2149
2150         * Added checks in encryption/decryption that encryption/decryption
2151           length sent as argument really is multiple by block size.  Helps
2152           catching really weird bugs like the above backup router bugs
2153           when packets are being decrypted in wrong way.  Affected files
2154           lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
2155
2156         * Fixed padding generation in private key file encryption.
2157           Affected file lib/silccrypt/silcpkcs.c.
2158
2159 Thu Dec  5 16:35:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2160
2161         * Added ignore_message_signatures setting which can be used
2162           to ignore signatures in messages.  Affected files are
2163           irssi/src/silc/core/client_ops.c, silc-core.c.
2164
2165         * Fixed the libtoolfix to use command line options instead of
2166           environment variables.  They didn't work as expected.  Now,
2167           the libtool is fully run-time configurable.
2168
2169 Wed Dec  4 21:08:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2170
2171         * Verify signature payload for signed messages. Affected files
2172           irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
2173           irssi/src/silc/core/silc-core.h
2174
2175         * Display signature verification result in public and private
2176           messages using theme abstracts. See irssi/default.theme for
2177           examples on their usage. Affected files
2178           irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
2179           irssi/src/fe-common/silc/module-formats.[ch],
2180           irssi/src/fe-common/silc/fe-common-silc.c,
2181           irssi/src/fe-common/silc/Makefile.am
2182           irssi/src/fe-common/core/fe-messages.[ch]
2183
2184         * Fixed bugs in Irssi's theme parsing. Affected files
2185           irssi/src/fe-common/core/themes.c
2186
2187 Wed Dec  4 18:29:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2188
2189         * Calculate the correct length for signed messages before
2190           encrypting, it must be multiple by block size.  Affected
2191           file lib/silccore/silcmessage.c.
2192
2193         * silc_message_signed_get_public_key returns now both
2194           decoded and encoded public key.  Affected files are
2195           lib/silccore/silcmessage.[ch].
2196
2197         * Added libtoolfix script that makes the libtool more generic
2198           and configurable in run-time.  Now we can specify in run-time
2199           if what kind of libraries we want to create, regardless of
2200           configuration.  SIMs are now creates even if --disable-shared
2201           was explicitly given.
2202
2203 Tue Dec  3 23:26:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2204
2205         * Fixed founder key sending in CMODE command in client.
2206           Affected file lib/silcclient/command.c.
2207
2208         * Fixed CUMODE founder authentication in server to not check
2209           for client's public key since it's not supposed to do that.
2210           Affected file silcd/command.c.
2211
2212 Tue Dec  3 12:02:41 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2213
2214         * Set realname and hostname in NICK_REC records. Affected file
2215           irssi/src/silc/core/silc-nicklist.c
2216
2217 Mon Dec  2 20:50:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2218
2219         * Remove 1.0 protocol backwards compat code from client
2220           library.
2221
2222         * Added more reliable check for whether nickname did change
2223           or not, or whether only Client ID changed in NICK_CHANGE
2224           notify.  Affected file lib/silcclient/client_notify.c.
2225           Fixes bug in '@' character handling in a nickname.
2226
2227         * Added support for automatically parsing signature from
2228           the message payload.  Added new function
2229           silc_message_get_signature to return the payload to
2230           application.  Affected files lib/silccore/silcmessage.[ch].
2231
2232         * Changed the private_message and channel_message client
2233           operations to deliver the SilcMessagePayload to the
2234           application too.  Application can use it fe. to get the
2235           signature from the message for verification.  Affected
2236           file lib/silcclient/silcclient.h, client_channel.c and
2237           client_prvmsg.c.
2238
2239         * Redefined the signed payload for message payloads.
2240           Updated protocol specs and implemented.
2241
2242 Mon Dec  2 16:28:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2243
2244         * Fixed wrong invite and ban list handling in server command
2245           reply.  Affected files are silcd/command_reply.c,
2246           silcd/server_util.[ch].
2247
2248 Sun Dec  1 20:48:17 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2249
2250         * Fixed CMODE setting in server when founder mode was set.
2251           Affected file silcd/command.c.  Bug #95.
2252
2253         * Added support to setting specific public key in CMODE in
2254           Irssi SILC client.  Affected file lib/silcclient/command.c.
2255
2256         * Added support to use specific public key in CUMODE in
2257           Irssi SILC Client.  Affected file lib/silcclient/command.c.
2258
2259         * Added support for inviting and banning by public key in
2260           Irssi SILC client.  Affected file lib/silcclient/command.c.
2261
2262         * Fixed fingerprint/babbleprint showing in invite and ban
2263           list command replys.  Affected file is
2264           irssi/src/silc/core/client_ops.c.
2265
2266 Sun Dec  1 16:32:03 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2267
2268         * Format CMODE +c and +h to display both the mode and the argument
2269
2270 Sun Dec  1 18:17:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2271
2272         * Added test vectors and test programs for SHA-1, MD5,
2273           HMAC-SHA1 and HMAC-MD5.  New tests are located in
2274           lib/silccrypt/tests/.  Fixed also argument decoding bug in
2275           MD5 implementation.  Affected file lib/silccrypt/md5.c.
2276
2277         * Changed the channel private key and private message key
2278           generation (with static keys) to use SHA1 instead of MD5,
2279           as SHA1 is the mandatory hash function in SILC.  Affected
2280           file lib/silcclient/client_[channel/prvmsg].c.
2281
2282         * Changed the private key file encryption to use SHA1 instead
2283           of MD5.  Added support for the old generation and added
2284           automatic change of the key (to be removed later).  Affected
2285           files lib/silccrypt/silcpkcs.c.
2286
2287 Sat Nov 30 19:07:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2288
2289         * Load only files with .pub suffix in PublicKeyDir.  Affected
2290           file silcd/serverconfig.c.
2291
2292 Sat Nov 30 14:29:34 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
2293
2294         * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
2295           channels.  Affected files silcd/silcd.c, silcd/server.h.
2296
2297         * Added the config directive PublicKeyDir for the client block.
2298           Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
2299
2300 Sat Nov 30 09:30:55 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2301
2302         * Merged Toni's irssi/silc.conf patch.
2303
2304         * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
2305
2306         * Max alloc tests in allocation routines.  Affected file
2307           lib/silcutil/silcmemory.c.
2308
2309 Fri Nov 29 23:44:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2310
2311         * Fixed a typo in resuming code that fixed detach/resume code
2312           in server.  Bug #93.  Affected file silcd/packet_receive.c.
2313
2314 Thu Nov 28 17:17:11 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2315
2316         * Do reverse lookups for server when /connecting. Affected files
2317           irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
2318           irssi/src/core/net-nonblock.*
2319
2320 Thu Nov 28 16:19:18 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2321
2322         * Added library versioning for shared libraries.  Affected
2323           files configure.in.pre and lib/Makefile.am.pre.
2324
2325 Wed Nov 27 21:51:52 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2326
2327         * Display INVITE and BAN lists as specified by SILC 1.2
2328
2329 Wed Nov 27 16:01:11 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2330
2331         * Do not send invite list back unless asked (when sending
2332           no arguments) or when list was modified.  Affected file
2333           silcd/command.c.
2334
2335         * Remove client from invite list in KILLED notify and in
2336           KILL command.  Affected file silcd/command.c and
2337           silcd/server.[ch].
2338
2339         * Fixed bugs in invite list handling in INVITE command.
2340           Affected files silcd/command.c and silcd/server_util.c.
2341
2342         * Merged with Irssi 0.8.6.
2343
2344         * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
2345           Affected file irssi/src/fe-text/silc.c.
2346
2347 Mon Nov 25 18:21:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2348
2349         * The silc_argument_get_[first/next] now return the argument
2350           type to caller.  Added silc_argument_payload_encode_one.
2351
2352           Affected files are lib/silccore/silcargument.[ch].
2353
2354         * Added support for the SILC 1.2 INVITE command and new
2355           invite lists to server.  Affected files are silcd/command.c,
2356           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2357
2358         * Added support for the SILC 1.2 BAN command and new
2359           ban lists to server.  Affected files are silcd/command.c,
2360           silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
2361
2362         * Added support to client sending new INVITE command.  Affected
2363           file is lib/silcclient/command.c.
2364
2365         * Added support to client sending new BAN command.  Affected
2366           file is lib/silcclient/command.c.
2367
2368         * Added support for removing client from invite list when kicked
2369           from channel, as SILC 1.2 dictates.  Affected files are
2370           silcd/packet_receive.c and silcd/command.c.
2371
2372 Sun Nov 24 18:26:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2373
2374         * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
2375           automatically the cipher's internal IV.  Affected files
2376           lib/silccrypt/silccipher.[ch].
2377
2378         * Assure the RESUME_CLIENT packet is not sent to twice to
2379           backup router if the detached client was originated from
2380           the backup.  Affected file silcd/server.c.  Bug #76.
2381
2382         * Changed silc_sim_symname to not allocate memory.  Affected
2383           file lib/silcsim/silcsimutil.c.
2384
2385         * Fixed memory leaks with SIMs in server.  Affected files
2386           silcd/serverconfig.c, silcd/server.c.
2387
2388         * Fixed channel key distribution after resuming detached
2389           client.  Affected files silcd/packet_receive.c.
2390
2391         * Fixed channel's global_user boolean checking after detaching.
2392           Check it after changing the owner of the client not before.
2393           Affected file silcd/packet_receive.c.
2394
2395         * Fixed few double frees from client library.  Fixes at least
2396           Bug #81, possibly others too.
2397
2398         * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
2399           notifys in Irssi SILC Client.  Affected file is
2400           irssi/src/silc/core/client_ops.c.  Bug #82.
2401
2402         * Applied Ville Räsänen's manual page and --mandir bugfix
2403           patch.  Affected files are configure.in.pre and Makefile.am.pre.
2404           Bug #88.
2405
2406 Fri Nov 22 18:34:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2407
2408         * Added support to backup router protocol for backup to tell
2409           normal server that it cannot use the backup router as primary
2410           because the primary isn't really down.  Updated protocol
2411           specs.
2412
2413         * Added support for primary router to tell backup router that
2414           resuming is not possible because the backup really isn't primary
2415           in the cell.  For example if backup disconnected itself the
2416           resuming is not allowed since the primary really did not
2417           go down.  Updated protocol specs.
2418
2419         * Removed MARS from crypto library.
2420
2421         * Defined the CTR mode and Randomized CBC mode in SILC.  The
2422           CTR mode is RECOMMENDED now in specification.  Defined also
2423           Serpent cipher as optional cipher.  Updated the protocol specs.
2424
2425 Thu Nov 21 12:43:28 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2426
2427         * Added support for inviting/banning by IP/MASK, public key,
2428           and explicit Client ID.  Redefined the command and notify
2429           types to allow easier forwards support for other methods
2430           of inviting/banning.  Updated protocol specs.
2431
2432         * Remove the client from channel's invite lists if the client
2433           is kicked or killed.  Updated protocol specs.
2434
2435         * Unified the Channel Message Payload and Private Message
2436           into one Message Payload.  Updated protocol specs and
2437           implemented.
2438
2439 Tue Nov 19 22:30:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2440
2441         * Don't wait for EOF after socket error has occurred, but
2442           close the connection.  Affected file is silcd/server.c.
2443
2444 Mon Nov 18 18:58:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2445
2446         * Added support for setting FOUNDER mode on channel with
2447           specific public key which can be set with CMODE command.
2448           Updated protocol specs and implemented in client and server.
2449
2450         * Fixed the Irssi SILC client to correctly shutdown the client
2451           library to avoid memory leaks.  Affected files are
2452           irssi/src/silc/core/silc-core.c and silc-servers.c.
2453
2454         * Deprecated the No Reply flag in SKE protocol and introduced
2455           "IV Included" flag which can be used to indicate that the IV
2456           is included in the ciphertext.  This makes it possible to use
2457           SILC on unreliable transport, such as UDP which may cause
2458           packet reordering and losses.  Updated protocol specs, did
2459           not implement yet.
2460
2461 Sun Nov 17 15:50:57 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2462
2463         * Fixed the MPI implementation of silc_mp_sizeinbase to return
2464           < 32 bit values in correct size.  Affected file is
2465           lib/silcmath/mp_mpi.c.
2466
2467 Sat Nov 16 13:14:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2468
2469         * Fixed the KE Start Payload parsing to check that mandatory
2470           fields are present.  Affected file lib/silcske/payload.c.
2471
2472         * Fixed compilation warnigs in Irssi SILC Client.  Affected
2473           files are irssi/src/silc/core/silc-query.c. client_ops.c.
2474
2475 Thu Nov 14 19:33:28 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2476
2477         * Print "nick now appears as newnick" and update Irssi's nicklist
2478           when you change your nick to "nick". Closes #62
2479
2480         * Never format your own nick. Closes #63
2481
2482 Thu Nov 14 09:44:54 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2483
2484         * SILC_UMODE_GONE changes are now propagated correctly to the
2485           Irssi client. Closes #54
2486
2487 Tue Nov 12 19:42:18 CET 2002  Jochen Eisinger <c0ffee@penguin-breeder.org>
2488
2489         * Fixed example in /HELP KEY
2490
2491         * Added expando $j which expands to current SILC Client version
2492
2493 Tue Nov 12 19:46:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2494
2495         * Fixed public key decoding in crypto library.
2496
2497         * Added better error printing to SKE library.
2498
2499 Tue Nov 12 08:50:12 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2500
2501         * Fixed NICK command to not crash if nickname was not sent.
2502
2503 Mon Nov 11 19:32:00 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2504
2505         * Added Encrypt-Then-MAC order to SILC packet MAC generation.
2506           Deprecated the old Encrypt-And-MAC order.  Updated protocol
2507           specs and implemented.
2508
2509         * Added Encrypt-Then-MAC order to Channel Message Payload MAC
2510           generation.  Updated specs and implemented.
2511
2512 Sun Nov 10 12:20:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2513
2514         * Added support for rekey before 2^32 sequence number wraps.
2515           Affected files in server and client library.
2516
2517         * Padding must be at least 8 bytes now.  Implemented and updated
2518           protocol specs.
2519
2520         * Compute maximum padding for authentication packets to make
2521           passphrase approximation attacks impossible.  Affected files
2522           in client library and in server.
2523
2524         * Fixed PING command sending in client library and handling in
2525           server.  The server ID must be ID Payload, not raw ID data.
2526           Affected files in server and client library.
2527
2528         * Defined that all public keys sent in commands and notify
2529           payloads are actually Public Key Payloads not raw public key
2530           data.  Updated protocol specs and implemented.
2531
2532         * Updated protocol version to 1.2.  Updated specs and code.
2533
2534         * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
2535           status types.  Updated specs and the code.
2536
2537         * Added support for normal client to kill its own entries from
2538           the network.  Updated protocol specs and the code.
2539
2540         * Defined the SILC_MESSAGE_FLAG_SIGNED.  Updated protocol specs
2541           and added initial implementation.
2542
2543         * Added MAC field to the Private Message Payload to protect
2544           against chosen ciphertext attacks.  Updated the protocol specs
2545           and implemented.
2546
2547         * Added idle and signon fields to the ATTRIBUTE_SERVICE
2548           attribute to indicate the user's current idle and signon time
2549           of a service.  Updated protocol specs and implemented.
2550
2551 Thu Nov  7 19:21:10 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2552
2553         * Added "do_not_bind" argument to silc_client_file_send what
2554           can be used to not bind locally but assume the file receiver
2555           provides the point of connect.  Usefull when sender is behind
2556           NAT device.  Affected file lib/silcclient/silcclient.h and
2557           client_ftp.c.
2558
2559         * Added -no-listener option to FILE SEND command in Irssi SILC
2560           client.  Affected file irssi/src/silc/core/silc-servers.c.
2561           Renamed FILE RECEIVE to FILE ACCEPT.
2562
2563         * Confirm passphrase for private key encryption in
2564           silc_create_key_pair and silc_change_private_key_passphrase.
2565           Affected files are lib/silcutil/silcapputil.c.
2566
2567 Thu Nov  7 10:05:28 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2568
2569         * Move silc_client_packet_send back to internal, added
2570           silc_client_send_packet, a bit simpler function for application.
2571           Affected files lib/silcclient/silcclient.h, client.c and
2572           client_internal.h.
2573
2574         * Moved the SilcClientEntry, SilcChannelEntry and
2575           SilcServerEntry to silcclient.h to be public and documented
2576           them for application.  Affected files are
2577           lib/silcclient/silcclient.h and idlist.h.
2578
2579 Wed Nov  6 17:18:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2580
2581         * Fixed manual page installation patch by Ville Räsänen.
2582           USERS help page fix patch by Ville Räsänen
2583
2584         * Changed the silc_client_command_call interface to make
2585           the command call simpler for the application.  The library
2586           now handles the command line parsing, command finding and
2587           execution.  Application only needs to call the function
2588           with the command line.  Affected files are
2589           lib/silcclient/silcclient.h, command.[ch].
2590
2591         * Fixed silc_get_input to NULL-terminate the returned input.
2592           Affected file lib/silcutil/silcutil.c.
2593
2594         * Resolve the client's public key in JOIN command if the
2595           founder auth data is being requested but we don't know the
2596           client's public key.  Affected file silcd/command.c.
2597           Bug #53.
2598
2599 Mon Nov  4 16:02:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2600
2601         * Print notify for server opers when backup router comes
2602           online.  Affected file silcd/server.c.
2603
2604         * Fixed the INVITE command to send the invite list in
2605           command reply.  Affected file silcd/command_reply.c.
2606
2607         * Fixed MOTD command reply sending.  Affected file
2608           silcd/command.c.
2609
2610         * UTF-8 decode the topic in TOPIC command reply and LIST
2611           command reply in Irssi SILC client.  Affected file is
2612           irssi/src/silc/core/client_ops.c.
2613
2614 Sun Nov  3 17:59:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2615
2616         * Fixed the INVITE command to not crash Irssi SILC client
2617           when given without nickname argument.  AFfected file
2618           irssi/src/silc/core/client_ops.c.
2619
2620         * Fixed double free in WHOIS query on normal server when
2621           forwarding query to router.  Affected file is
2622           silcd/server_query.c.
2623
2624         * Fixed WATCH command reply handling on normal server which
2625           was missing altogether.  Affected file silcd/command_reply.c.
2626           Bug #44.
2627
2628 Sun Nov  3 00:42:05 EET 2002  Mika Boström <bostik@lut.fi>
2629
2630         * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
2631           Included yodl sources for each of these. Also modified
2632           Makefile.am prototype to install these files to proper
2633           locations. Updated CREDITS. Affected file Makefile.am.pre,
2634           new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
2635           doc/silcd.8.
2636
2637 Sat Nov  2 21:26:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2638
2639         * Added support for encrypted private key files.  Now
2640           passphrase must be provided when new key pair is created
2641           (can be empty though), and prompted when loading the
2642           private key.  Added support for loading the old-style
2643           non-encrypted private keys as well.  Affected files
2644           lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
2645           SILC Server.
2646
2647         * Fixed silc_get_input to accept input on all terminals.
2648           Affected file lib/silcutil/silcutil.c.
2649
2650         * Moved the Irssi SILC client key loading and other stuff
2651           to be called after the arguments and UI is initialized.
2652           Affected file irssi/src/silc/core/silc-core.c.  Bug #31.
2653
2654         * Added -P option to Irssi SILC client which can be used
2655           to change the passphrase of the private key.  Affected
2656           file irssi/src/silc/core/silc-core.c.
2657
2658         * Added silc_change_private_key_passphrase apputil routine
2659           to lib/silcutil/silcapputil.[ch].
2660
2661 Sat Nov  2 12:53:09 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2662
2663         * Fixed connection closing in client library to not crash.
2664           Moved the connection freeing totally to function
2665           silc_clinet_del_connection.  Affected file
2666           lib/silcclinet/client.c.
2667
2668 Fri Nov  1 18:57:02 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2669
2670         * Changed includes/silcincludes.h to silcincludes.h.in to
2671           include configuration specific information.  The silcdefs.h
2672           is not included in to installation anymore (it's only
2673           compilation time header).
2674
2675 Fri Nov  1 10:30:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2676
2677         * Moved the SilcClient and SilcClientConnection from client.h
2678           to the public lib/silcclient/silcclient.h.  Changed the
2679           structures a bit.
2680
2681 Thu Oct 31 22:44:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2682
2683         * If version string in silc_clinet_alloc is NULL the library
2684           puts it automatically.  Affected file lib/silcclient/client.c.
2685
2686         * Changed the version strings from variables to #define's
2687           in includes/silcversion.h.
2688
2689 Wed Oct 30 16:17:30 CET 2002  Pekka Riikonen <priikone@silcnet.org>
2690
2691         * Added shared library complation support.
2692
2693 Tue Oct 29 21:48:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2694
2695         * Added lib/silcutil/silcapputil.[ch] for application
2696           utility functions.  It includes routines for applications'
2697           convenience.  Added silc_create_key_pair, silc_show_public_key
2698           and silc_load_key_pair functions.
2699
2700 Tue Oct 29 17:36:44 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2701
2702         * Send RESUME_CLIENT packet from router to backup routers
2703           to in resuming.  Affected file silcd/packet_receive.c.
2704
2705 Mon Oct 28 21:23:39 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2706
2707         * In IDENTIFY command parsing, send all other IDs except
2708           Client IDs explicitly to router for resolving on normal
2709           server.  Also check that ID received in WHOIS command is
2710           always Client ID, others are not allowed.  Affected file
2711           silcd/server_query.c.
2712
2713         * Merged latest changes from irssi.org CVS.
2714
2715 Sun Oct 27 11:44:32 EET 2002  Pekka Riikonen <priikone@silcnet.org>
2716
2717         * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
2718           Affected files irssi/src/silc/core/silc-core, silc-server.c.
2719
2720         * Fixed the heartbeat sending in Irssi SILC client.  Moved
2721           the silc_client_packet_send to silcclient.h for application
2722           usage.  Affected files lib/silcclient/client_internal.h
2723           lib/silcclient/silcclient.h.
2724
2725         * Fixed a bug in query resolving in server.  Used wrong
2726           variable in a for loop and crashed.  Affected file is
2727           silcd/server_query.c.
2728
2729         * Server constructs requested attributes only to locally
2730           connected clients.  Affected file silcd/server_query.c.
2731           Bug #36.
2732
2733         * Fixed a bug when sending resolving from router to server
2734           with requested attributes.  The constructed WHOIS command
2735           was incorrect.  Affected file silcd/server_query.c.
2736           Bug #38.
2737
2738         * Fixed Requested Attributes saving in WHOIS command reply.
2739           The length of the data buffer must be saved too.  Affected
2740           file silcd/command_reply.c.
2741
2742         * Update the client entry's servername after detaching is
2743           over.  Affected file silcd/packet_receive.c.  Bug #37.
2744
2745         * Resolve incomplete client entrys in CUMODE_CHANGE and
2746           CMODE_CHANGE notifys.  Affected file is
2747           lib/silcclient/client_notify.c.  Bug #42.
2748
2749 Thu Oct 24 12:22:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2750
2751         * Fixed channel key packet processing bug on backup router
2752           during backup resuming protocol.  Affected file is
2753           silcd/packet_receive.c.
2754
2755         * Fixed memory leaks in server.  Affected files are
2756           silcd/server.c and silcd/packet_receive.c.
2757
2758         * Fixed packet decryption problem when backup router encrypted
2759           channel message with wrong key during backup resuming
2760           protocol.  Affected file silcd/packet_send.c.
2761
2762         * ROBODoc documented lib/silccrypt/silccipher.h.  A patch by
2763           Toni Willberg (toniw@iki.fi)
2764
2765         * Changed the SilcCipher context to be private.  Changed the
2766           silc_cipher_get_iv to just return pointer to the IV.  Added
2767           silc_cipher_get_name to return the name of the cipher.
2768           Fixed code all around to support these changes.  Affected
2769           files are lib/silccrypt/silccipher.[ch], client library and
2770           server.
2771
2772 Wed Oct 23 19:01:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2773
2774         * Fixed unaligned access in lib/silccore/silcattrs.c.
2775
2776         * Fixed libtool linking in lib/silcsim/Makefile.am.
2777
2778         * Fixed services attribute printing.  Affected files is
2779           irssi/src/silc/core/silc-queries.c.
2780
2781 Wed Oct 23 09:51:04 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2782
2783         * Fixed a crashbug in incoming server accepting.  Affected
2784           file silcd/server.c.
2785
2786 Tue Oct 22 13:02:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2787
2788         * Added automatically generated index to Toolkit Reference
2789           Manual.
2790
2791         * Added support for Postscript Toolkit Reference Manual.
2792
2793 Mon Oct 21 21:30:40 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2794
2795         * Merged DISCONNECT fix, and autoconn port fix from Irssi
2796           CVS.
2797
2798 Sun Oct 20 19:54:55 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2799
2800         * Added 'send_events' boolean argument to the function
2801           silc_schedule_set_listen_fd which sends the set events to
2802           the application explicitly if set to TRUE.  Default action
2803           should be FALSE.  Affected file lib/silcutil/silcschedule.[ch],
2804           lib/silcclient/client_internal.h and silcd/server_internal.h.
2805
2806         * Added silc_compare_timeval to determine which time values
2807           is smaller.  Affected file lib/silcutil/silcutil.[ch].
2808
2809         * Added sort-of "Quality of Service" (QoS) support to
2810           SilcSocketConnection.  Data reception can be controlled with
2811           rate limit per second and/or read data length limit.
2812           Added silc_socket_set_qos.  Affected files are
2813           lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
2814
2815         * Added the QoS configuration to SILC Server configuration
2816           file.  Affected files are silcd/serverconfig.[ch] and
2817           server.c.
2818
2819 Sun Oct 20 14:12:24 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2820
2821         * Merged with irssi.org CVS.
2822
2823         * Failed OPER and SILCOPER authentications are now logged.
2824           Affected file silcd/command.c.  Bugs #25.
2825
2826 Sat Oct 19 13:32:15 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
2827
2828         * ROBODoc documented lib/silcutil/silcbuffer.h and
2829           lib/silcutil/silcdlist.h.  Patch by Ville Räsänen
2830           <ville.rasanen@iki.fi>.
2831
2832 Fri Oct 18 10:51:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2833
2834         * Added support for auto-passphrase authentication from the
2835           config file during connecting which was not implemented
2836           yet.  Affected file irssi/src/silc/core/client_ops.c.
2837
2838         * Fixed a bug in authentication protocol failure handling which
2839           was processing wrong callback context.  Affected files
2840           are lib/silcclient/client.c and protocol.c.
2841
2842         * Fixed the /ATTR allow off to actually work.  Affected file
2843           is irssi/src/silc/core/silc-queries.c.
2844
2845         * Fixed the /ATTR -del to work.  Affected file is
2846           irssi/src/silc/core/silc-queries.c.
2847
2848 Thu Oct 17 23:45:12 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2849
2850         * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
2851
2852         * Fixed mask attribute adding in Irssi SILC client.  Affected
2853           file irssi/src/silc/core/silc-queries.c.
2854
2855 Thu Oct 17 16:40:39 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2856
2857         * Added support for saving the requested attributes in
2858           WHOIS to directory.  Affected file is
2859           irssi/src/silc/core/silc-queries.c.
2860
2861 Wed Oct 16 17:40:56 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2862
2863         * Added support for parsing VCard fields that do not have
2864           the TYPE= for types.  Affected file lib/silcutil/silcvcard.c.
2865
2866         * Fixed a double free bug in hash table foreach function
2867           if the entry was deleted in the foreach callback.  Affected
2868           file lib/silcutil/silchashtable.c.
2869
2870 Tue Oct 15 18:05:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2871
2872         * Added silc_attribute_get_verify_data to return the signature
2873           verification data for either user digital signature or
2874           server digital signature in Requested Attributes.  Affected
2875           files are lib/silccore/silcattrs.[ch].
2876
2877         * Added silc_vcard_alloc which is used to allocated dynamic
2878           SilcVCard context.  The silc_vcard_free now checks whether
2879           the context is dynamically allocated or not.  Affected files
2880           are lib/silcutil/silcvcard.[ch].
2881
2882 Mon Oct 14 17:55:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2883
2884         * Periodically remove the NOATTR status from client entry
2885           so that the client may take the attributes in use even after
2886           server has resolved them unsuccessfully earlier.  Affected
2887           file silcd/server_query.c and idlist.h.
2888
2889         * Moved sha1hash and md5hash from client->internal to
2890           SilcClient for application usage.  Affected files are
2891           lib/silcclient/client.h and client_internal.h.
2892
2893         * Fixed attribute encoding and decoding bugs.  Affected
2894           files lib/silccore/silcattrs.[ch].
2895
2896         * Added ATTR command to Irssi SILC Client which is used to
2897           manage user's Requested Attributes sending and values for
2898           WHOIS command.  Affected files around Irssi SILC client.
2899
2900 Mon Oct 14 14:33:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2901
2902         * Added silc_buffer_strformat which can be used to format
2903           strings into a buffer which size is automatically increased.
2904           Affected file lib/silcutil/silcbuffmt.[ch].
2905
2906         * Added implementation of VCard (RFC 2426) which can be used
2907           as part of Requested Attributes in WHOIS command.  Affected
2908           file lib/silcutil/silcvcard.[ch].
2909
2910 Fri Oct 11 23:52:17 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2911
2912         * Some strncat -> silc_strncat changes our the core and
2913           client library.
2914
2915         * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
2916           errors.  Added better error printing to SKE library.
2917           Affected files lib/silcske/silcske.c, silcske_status.h and
2918           payload.c.
2919
2920         * Save the PKCS key length even if only private key is set to
2921           SilcPKCS.  Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
2922
2923         * Fixed the usage of silc_pkcs_get_key_len since it returns the
2924           length in bits not in bytes.  Affected files are
2925           lib/silcske/silcske.c, lib/silccore/silcauth.c and
2926           silcd/server_query.c.
2927
2928 Wed Oct  9 17:22:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2929
2930         * Added silc_attribute_payload_encode_data to directly encode
2931           the data into the attributes buffer.  Renamed function
2932           silc_attribute_payload_parse_list to silc_attribute_payload_parse.
2933           Affected files are lib/silccore/silcattrs.[ch].
2934
2935         * silc_hash_table_find_foreach calls the foreach function now
2936           once even if the nothing was found with context set to NULL.
2937           Affected file lib/silcutil/silchashtable.[ch].
2938
2939         * Remove the RESOLVING flag from client entry after received
2940           the Requested Attributes from the client.  Fixed memory leak
2941           in client entry freeing.  Affected files silcd/server_query.c
2942           and idlist.c.
2943
2944         * Added Requested Attributes support into SILC Client Library.
2945           It is not able to send requested attributes in WHOIS command,
2946           and also receive and process requested attributes.  Added
2947           silc_client_attribute_[add|del] and silc_client_attributes_get
2948           functions.  Added also `ignore_requested_attributes' to the
2949           SilcClientParams to not use attributes in client.  Affected
2950           files are lib/silcclient/command.c, client_attrs.[ch],
2951           silcclient.h, client_internal and client.[ch].
2952
2953         * Changed the silc_client_get_client_by_id to support Requested
2954           Attributes, it takes them as argument now.  Affected file
2955           is lib/silcclient/silcclient.h, and idlist.c.
2956
2957         * Added -details option to WHOIS command in Irssi SILC Client
2958           to support the requested attributes.  By default it requests
2959           all attributes.  Affected file lib/silcclient/command.c and
2960           irssi/doc/help/in/whois.in.
2961
2962 Tue Oct  8 17:58:28 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2963
2964         * Add also SERVICE attribute for server-constructed attribute
2965           data.  Also digitally sign the attributes and add
2966           SERVER_DIGITAL_SIGNATURE attribute.  Affected file is
2967           silcd/server_query.c.
2968
2969 Mon Oct  7 18:25:35 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2970
2971         * Changed the silc_attribute_payload_encode to support list
2972           of attributes (function may be called several times to add
2973           a new attribute).  Removed the silc_attribute_payload_encode_list
2974           function.  The encoding function now also automatically encodes
2975           the data, so the caller does not need to do that.  Affected
2976           files lib/silccore/silcattrs.[ch].
2977
2978         * Added support for replying on behalf of the user to the
2979           Requested Attributes in WHOIS command in the server.  Affected
2980           file silcd/server_query.c.
2981
2982         * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
2983           SILC_LOG_DEBUG.  Affected file lib/silcutil/silclog.h.
2984
2985 Sun Oct  6 16:48:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
2986
2987         * Don't swtich to become primary router if we are backup if
2988           decryption error has occurred.  Affected file silcd/server.c.
2989
2990         * Fixed a bug in backup router IP address comparison in
2991           silc_server_backup_get.
2992
2993           Save now also the port of the server/router and use that
2994           in comparison as well.  Affected file silcd/server_backup.c.
2995
2996         * Normal server now reconnects to backup router automatically
2997           if connection is lost to it.  Affected file silcd/server.c.
2998
2999 Thu Sep 26 13:51:02 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3000
3001         * If packet processing fails (like integrity check fails)
3002           the connection is closed now.  Affected files are
3003           lib/silccore/silcpacket.c and silcd/server.c.
3004
3005 Mon Sep 23 10:59:39 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3006
3007         * Fixed double free in RSA public key set function
3008           silc_rsa_set_public_key.  Affected file lib/silccrypt/rsa.c.
3009           Bug #29.
3010
3011 Sun Sep 22 14:54:05 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3012
3013         * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
3014           Added server_query.[ch] which provides one interface for
3015           querying information using all three commands.
3016
3017         * Changed all "typedef unsigned char" in core library to
3018           "typedef SilcUInt8".
3019
3020 Sat Sep 21 21:36:45 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3021
3022         * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
3023
3024         * Renamed silc_server_get_client_resolve to
3025           silc_server_query_resolve and moved to server_query.[ch].
3026
3027 Wed Sep 18 18:28:04 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3028
3029         * Resumed client packet handling from server put the resumed
3030           client on wrong list on router and caused the client not
3031           be present on the network anymore.  Now fixed to put the
3032           client to correct list.  Affected file silcd/packet_receive.c.
3033
3034 Wed Sep 18 15:13:48 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
3035
3036         * Various cleanup in error message output in config parsing code
3037           and in server init code.  Fixed error log files containing
3038           too many newlines ('\n') in some situations.  Affected files are
3039           silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
3040
3041 Wed Sep 18 10:51:23 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3042
3043         * Use the reverse lookupped hostname in client internals
3044           instead of one user provided us as remote server name.
3045           Affected file lib/silcclient/client.c.
3046
3047 Mon Sep 16 12:02:54 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3048
3049         * Added 'app_context' to silc_schedule_init.  It is an
3050           application specific context that is delivered to application
3051           in task callback functions.  Affected files are
3052           lib/silcutil/silcutil.[ch].
3053
3054         * The hb_context in SilcSocketConnection is not freed
3055           automatically anymore (application must free it).  Freeing
3056           it automatic is inconsistent.  Affected files are
3057           lib/silcutil/silcsockconn.[ch].
3058
3059 Sun Sep 15 22:16:19 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3060
3061         * Added support for removing explicitly added client connections
3062           in rehash and closing the client connections if they were
3063           unconfigured in the rehash.  Affected file silcd/server.c.
3064
3065         * Added support for aborting automatically pending commands
3066           that never receives the reply (to avoid memory leaks).
3067           Added also silc_server_command_pending_timed to set the
3068           specific timeout for pending command.  Affected files are
3069           silcd/command[_reply].[ch].
3070
3071         * Added SILC_STATUS_ERR_TIMEDOUT status.  Updated protocol
3072           specs and lib/silccore/silcstatus.h.
3073
3074 Sun Sep 15 12:25:10 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3075
3076         * Changed the silc_get_time to accept time value as argument
3077           or if zero is sent return current local time.  Affected
3078           file lib/silcutil/silcutil.[ch].
3079
3080         * Added STATS command to client library and Irssi SILC client.
3081           Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
3082
3083 Wed Sep 11 09:22:00 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3084
3085         * Assure that channel key is set before sending it.  May
3086           crash server otherwise.  Affected file silcd/packet_send.c.
3087
3088 Tue Sep 10 09:50:08 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3089
3090         * Assure that endless loop cannot happen with detached client
3091           resolving on normal server.  Added idlist status
3092           SILC_IDLIST_STATUS_RESUME_RES.   Affected files are
3093           silcd/idlist.h and silcd/packet_receive.c.
3094
3095 Mon Sep  9 12:18:18 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3096
3097         * Incoming file transfer request cannot use same session as
3098           the sending session.  This can happen when sending file to
3099           yourself.  Crashed the client on quit.  Affected file
3100           lib/silcclient/client_ftp.c.  Bug #24.
3101
3102 Sun Sep  8 18:39:25 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3103
3104         * Implemented the draft-riikonen-precense-attrs draft and
3105           the Attribute Payload into the lib/silccore/silcattrs.[ch].
3106
3107 Sun Sep  8 13:13:44 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3108
3109         * Distribute the SERVER_SIGNOFF notify also to local backup
3110           routers from the primary router.  The backup router may not
3111           have the signing of local server directly connected and need
3112           to know about the signoff.  Affected file silcd/server_util.c.
3113
3114         * Use the primary router as the origin of the locally connected
3115           server when it is disconnecting from the backup router since
3116           that's where it really is coming from.  Now the clients from
3117           the disconnecting server are removed correctly and "shadow"
3118           clients are not left to the backup router.  Affected file
3119           silcd/server.c.
3120
3121 Sat Sep  7 22:26:50 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3122
3123         * If normal server is standalone and found existing but disabled
3124           channel, do not re-create the channel since it creates
3125           duplicate same channels.  Affected file silcd/server.c.
3126
3127         * Added anonymous client connections support to server.  New
3128           "anonymous" configuration option to ConnectionParams section
3129           added.  If set to true, the username and hostname information
3130           of the client will be scrambled and anonymous user mode is
3131           set automatically to the user.  Affected files are
3132           silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
3133
3134 Sat Sep  7 16:02:09 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3135
3136         * In JOIN notify handling, mark that the cache entry of the
3137           client cannot be expired.  Can cause crashes on normal
3138           server (asserts client->channels).  Affected file is
3139           silcd/packet_receive.c.
3140
3141         * From now on distribution versions are used as protocol versions
3142           instead of by default using the Toolkit base version as protocol
3143           version.  Affected file prepare.
3144
3145         * Do not set the locally resolved hostname for local client
3146           entry but take what server sends.  This way the real hostname
3147           is showed in WHOIS for yourself.  Affected file is
3148           lib/silcclient/idlist.c and lib/silcclient/client.c.
3149
3150         * Resolve local info with IDENTIFY when connecting to server.y
3151
3152 Sat Sep  7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3153
3154         * Rewritten check for POSIX threads.  Use --with-pthreads[=DIR]
3155           for implied search (not needed on platforms which has native
3156           pthreads library).  Use --without-pthreads to disable threads.
3157           Affected file is configure.in.pre
3158
3159         * Fixed --with-iconv on platforms which need to bypass (broken)
3160           native iconv().  Affected file is configure.in.pre
3161
3162 Sat Sep  7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3163
3164         * Moved -C option parsing in Irssi SILC client at same time
3165           as other options.  The UI was initialized earlier and caused
3166           problems on command line.  Bug #16.  Affected file is
3167           irssi/src/silc/core/silc-core.c.
3168
3169 Mon Sep  2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3170
3171         * Added global variable silc_log_timestamp that tells silclog
3172           wether to print or not the timestamp in the logging files.
3173           Affected file lib/silcutil/silclog.[ch].
3174
3175         * Added silcd configuration option Timestamp in the Logging
3176           section.  Affected file silcd/serverconfig.[ch],
3177           doc/example_silcd.conf.in.
3178
3179 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3180
3181         * Fixed fingerprint checking to check for entirely empty
3182           fingerprint instead of two first bytes when determining
3183           if it is set.  Bug #18.  Affected file silcd/command.c.
3184
3185         * Fixed duplicate PKCS name registering to not allow it.
3186           Bugs #17.  Affected file lib/silccrypt/silcpkcs.c.
3187
3188 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3189
3190         * Conditionalize non-gcc compiler optimizations for various
3191           platforms, enable those commented out.  Cleanups.
3192           Affected file lib/silcmath/mpi/configure.in
3193
3194 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
3195
3196         * silc_rng_exec_command() left zombie processes if command
3197           didn't generate any output.  Affected file
3198           lib/silccrypt/silcrng.c
3199
3200 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3201
3202         * Rewrote iconv checking, introduce --with-iconv for systems
3203           which rely on libiconv.  Check if iconv() provided by libc
3204           is good enough, otherwise demand libiconv.  Affected file
3205           configure.in.pre
3206
3207 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3208
3209         * Search for ldopen() also in libc.  This enables SIM support
3210           on *BSD systems.  Based on patch from Alex Zepeda.  Affected
3211           file configure.in.pre
3212
3213 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
3214
3215         * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
3216           This fixes prepare on *BSD systems.  Affected file
3217           configure.in.pre
3218
3219 Sun Aug  4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3220
3221         * More fixed for not having purge timeout for global clients
3222           that are on channel.  Affected files silcd/command_reply.c
3223           and server_util.c.
3224
3225         * Fixed the rekey protocol to work with backup router connections.
3226           Rekey packets are now allowed on disabled connections as
3227           well.  Affected files silcd/packet_send.c and server.c.
3228
3229         * Do not switch to be as backup router when shutting down and
3230           closing the primary connection.  Affected file silcd/server.c.
3231
3232         * Fixed memory leaks in backup router deleting.  Added
3233           silc_server_backup_free to free all data during shutdown of
3234           server.  Affected files silcd/server_backup.[ch].
3235
3236 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3237
3238         * Do not process commands if the sock->user_data is NULL.
3239           Affected file silcd/command.c.
3240
3241 Tue Jul  9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3242
3243         * Fixed buffer overflow and security problems (loosing bits
3244           in CFB encryption) in SILC RNG.  Problems reported by
3245           Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
3246
3247 Sun Jul  7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3248
3249         * Added yet more checks that client is not expired on global
3250           list if it is on channels.  Affected file is
3251           silcd/command_reply.c.
3252
3253 Sat Jul  6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3254
3255         * Merged c0ffee's MIME signal patch which adds support for
3256           sending also MIME messages in Irssi SILC Client, and handling
3257           received MIME messages in a signal (and perhaps doing something
3258           to non-textual MIME messages).
3259
3260 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3261
3262         * Fixed pending command deletion in server and client library
3263           to check the whole list instead of breaking after first found.
3264           The affected files are silcd/command.[ch] and
3265           lib/silcclient/command.[ch].
3266
3267 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3268
3269         * Return NO_SUCH_CHANNEL error in USERS for channel that is
3270           secret or private, otherwise it's possible to find out
3271           whether a secret channel exists or not.  Affected file
3272           silcd/command.c.
3273
3274         * If CMODE change fails during the mode setting, assure that
3275           the old mode mask is set for the channel back.  Affected
3276           file silcd/command.c.
3277
3278         * Fixed passphrase saving on +a channel on normal server
3279           after successful JOIN command.  Affected file silcd/command.c.
3280
3281 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3282
3283         * Remove server/router operator privileges in DETACH command,
3284           since it's possible to resume to server where these
3285           privileges would not be allowed for the client.  Affected
3286           file silcd/command.c.
3287
3288         * Do not set to wait for backup in rehash of the server.
3289           Affected file silcd/server.c.
3290
3291         * Do not check listener sockets when counting how many
3292           socket connections we have.  Affected file is
3293           silcd/server_util.c.
3294
3295         * Do not announce disconnected clients that are remaining
3296           in history (for WHOWAS).  This is because SIGNOFF notify
3297           for these has been sent earlier already.  Affected file
3298           silcd/server.c.
3299
3300 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3301
3302         * Buffer overflow with CUMODE command's mode->mode character
3303           conversion.  Reported by Ville Räsänen.  Affected file
3304           lib/silcutil/silcutil.c.
3305
3306 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3307
3308         * Allow heartbeat packets to go disabled connections anyway.
3309           Affected files silcd/server.c and silcd/packet_send.c.
3310
3311         * Do not broadcast New Channel packets with List flag set
3312           in the packet to backup routers.  The router must check
3313           for the correctness of the packets before sending them.
3314           It is possible that router will have enforce Channel ID
3315           change and this would cause desync in the backup router.
3316           Affected file silcd/packet_receive.c.
3317
3318         * Remove SILC_PACKET_FLAG_LIST from the temp packets that
3319           are handled in list parsing.  They are not list packets
3320           anymore.  Affected file silcd/packet_receive.c.
3321
3322 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3323
3324         * Stop waiting for backup router through the timeout, not
3325           directly after backup router has arrived.  Affected file
3326           silcd/server.c.
3327
3328         * Do not re-create channel keys and send them when removing
3329           clients in server shutdown.  Affected files are
3330           silcd/server_internal.h and silcd/server_util.c.
3331
3332         * Notify distribution to backup routers was missing from
3333           the silc_server_send_notify_dest function which caused
3334           desyncing problems with backup router.  Affected file is
3335           silcd/packet_send.c.
3336
3337         * The client's channel removing was working wrong on
3338           backup router.  It assumed that it doesn't know global
3339           information but backup router does know.  For this reason
3340           it could remove channel when it wasn't supposed to do that.
3341           Affected file silcd/server.c and silcd/server_util.c.
3342
3343 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3344
3345         * Stop for a couple seconds after badkup router has become
3346           primary router.  Affected file silcd/server.c.
3347
3348         * Added silc_server_remove_servers_by_server, which is used
3349           to remove servers originated from some other server.  Also
3350           clients of those servers can be removed too.  Affected file
3351           silcd/server_util.[ch].
3352
3353         * When removing clients after a server has signed of remove
3354           also all servers behind that server (unless they are known
3355           to be available locally), and send SERVER_SIGNOFF for each
3356           of the server separately.  Also the signed off clients are
3357           sent now separately per signed off server.  The affected files
3358           are silcd/server.c and silcd/server_util.[ch].
3359
3360         * All servers added with silc_idlist_add_server must always
3361           have both "router" and "connection" pointers set.  Otherwise,
3362           bad server entries may be left around in the cache.
3363           Affected file silcd/command_reply.c.
3364
3365         * Do not create the channel key in NEW_CHANNEL packet
3366           processing if the channel is empty.  Affected file
3367           silcd/packet_receive.c.
3368
3369         * Completed backup router support for standalone routers.
3370           Supports also servers in the cell that do not use the backup
3371           at all.
3372
3373 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3374
3375         * Fixed a bug in silc_string_regexify which did not add '^'
3376           at the start of each string, and thus the matching was
3377           not explicit.  For example ban list iikone@*!*@* would
3378           match also "priikone", which is wrong, it would have to be
3379           *iikone@*!*@* to match also "priikone".  Affected
3380           file lib/silcutil/unix/silcunixutil.c.
3381
3382 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3383
3384         * Enable all local server connections before updating client
3385           caches when we've become backup router.  Otherwise, signoff
3386           packets may not reach the clients.  Affected files are
3387           silcd/server.c and silcd/server_util.[ch].
3388
3389         * Fixed a bug in version string parsing which could crash
3390           the program with specially formatted version string.
3391           Bug reported and patch provided by Ville Räsänen.  Affected
3392           file lib/silcutil/silcutil.c.
3393
3394         * Handle the disconnection immediately when DISCONNECT
3395           packet is received in server.  Affected file silcd/server.c.
3396
3397         * Primary router now waits a short time (10 seconds) for
3398           backup router connection before accepting any other
3399           connection (except local).  Affected file silcd/server.c,
3400           serverconfig.[ch].
3401
3402         * Fixed a crash in client libary in NICK_CHANGE notify when
3403           NICK_CHANGE arrived for client entry we are resolving
3404           currently.  Affected file lib/silcclient/client_notify.c.
3405
3406         * Call the sconn->callback completion even if error had
3407           occurred.  Start reconnecting always if connection to
3408           primary router fails during backup router protocol.
3409           Affected files silcd/server.c and server_backup.c.
3410
3411 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3412
3413         * Added functions silc_server_send_opers and
3414           silc_server_send_opers_notify to send packets stricly
3415           to operators.  Added macro SILC_SERVER_SEND_OPERS macro
3416           to send variable argument notify to operators.
3417           Affected files silcd/packet_send.[ch] and silcd/server.h.
3418
3419         * Removed UMODE rights checking with UMODE_CHANGE notify.
3420           Affected file silcd/packet_receive.c.
3421
3422         * Server/router operator now receives notify when network
3423           switches to backup router and when it resumes the use of
3424           primary router.  Affected file silcd/server.c and
3425           silcd/server_backup.c.
3426
3427         * Fixed the updating of client information after backup
3428           resuming protocol is over; update all except local clients
3429           to the new primary router.  The affected file is
3430           silcd/server_util.c.
3431
3432         * Added support for closing active connections in rehash
3433           that were unconfigured by the user.  Supports currently
3434           closing server and router connections.  Affected file
3435           silcd/server.c.
3436
3437         * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
3438
3439 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3440
3441         * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
3442           is NULL since seems that on some platforms NULL is allowed
3443           and on some it's not.  Fallback encoding is used instead.
3444           Affected file lib/silcutil/silcstrutil.c.
3445
3446         * Fixed statistics updating for incoming server connection
3447           which could cause problems when re-connecting.  Affected
3448           file silcd/server.c.
3449
3450         * Preliminary backup router support for standalone router
3451           added.  Affected files in silcd/.
3452
3453         * Mark server connections in backup router disabled before
3454           and after backup protocol.  Affected file is
3455           silcd/server_backup.c.
3456
3457         * Added support for reconnecting to remote server connection
3458           even if the protocol fails, and if the configuration wants
3459           us to keep trying to connect anyway.
3460
3461           Server connection is not allowed to backup router if
3462           backup router does not have connection to primary router yet.
3463
3464           Affected file is silcd/server.c.
3465
3466 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3467
3468         * Added silc_client_udpate_server function to update changed
3469           server info.  Affected file lib/silcclient/idlist.[ch].
3470
3471         * Added check for server entries that are being resolved when
3472           notify is received.  If being resolved, handle the received
3473           notify only after it's resolved so that all notifys are
3474           handled in same order as received from the server.
3475
3476           Added similar resolver check to channel entries.  Every
3477           notify that cause resolving of any information that affects
3478           channel entry marks the channel entry in waiting state.
3479           After whatever resolving is over the waiters are signalled
3480           and only then the notifys are handled in the same order
3481           as delivered from the server.
3482
3483           Affected files are lib/silcclient/idlist.[ch], and
3484           client_notify.c.
3485
3486         * Fixed KILLED notify handling in normal server.  Affected
3487           file silcd/packet_receive.c.
3488
3489         * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
3490           is locally connected, or was locally connected (but may
3491           be detached and connection is not active).  Added also
3492           SILC_IS_LOCAL for checking this status.  Affected files
3493           silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
3494           silcd/server.c and silcd/server_internal.h.
3495
3496 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3497
3498         * Don't send or handle TOPIC_SET if topic is already set and
3499           is same as being set.  Affected files silcd/command.c and
3500           silcd/packet_receive.c.
3501
3502         * Fixed CMODE change rights checking to work correctly when
3503           removing modes by operator.  Affected file is
3504           silcd/server_util.c.
3505
3506         * Fixed some handling with New Channel packet in router and
3507           fixed some CMODE_CHANGE notify handling in server and router.
3508           Affected file is silcd/packet_receive.c.
3509
3510         * Changed "disconnect" client operation to include the
3511           reason of the disconnection and optional disconnection
3512           message.  Affected file lib/silcclient/silcclient.h.
3513
3514         * Made the compilation of lib/contrib/ stuff conditional.
3515           Affected files configure.in.pre, lib/contrib/Makefile.am.
3516
3517 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3518
3519         * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
3520           to the sender of the notify too, to avoid situation where two
3521           notifys are in the network at the same time going to oppsite
3522           directions.  Affected file silcd/packet_receice.c.
3523
3524 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3525
3526         * Delete the client from channel even if the cilent->id is
3527           NULL.  It was possible that client was deleted without
3528           removing from channels (theoretically at least).  Affected
3529           file silcd/server.c and silcd/server_util.c.
3530
3531         * Free the client data too when resuming is not successful.
3532           Affected file silcd/packet_receive.c.
3533
3534         * Merged some code from c0ffee's silc-plugin.  Affected files
3535           irssi/src/silc/core/silc-channels.c and silc-expandos.c.
3536
3537         * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
3538           silcd/server_internal.h.  SILC_PRIMARY_ROUTE Returns pointer
3539           to the primary router connection, the other one returns
3540           TRUE if packet must be broadcasted to network.
3541
3542         * All notifys that are destined to primary router (to network)
3543           are now automatically sent to backup routers even if the
3544           router is standalone (and has backup router).  Affected files
3545           in silcd/.
3546
3547         * Added --without-irssi and --without-silcd configuration
3548           options for disabling the compilation of these applications.
3549           Affected file configure.in.pre and prepare.
3550
3551 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3552
3553         * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
3554           UTF-8 encoding and decoding.  Added also new encodings
3555           SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
3556
3557           Added also SILC_STRING_LANGUAGE which is language and charset
3558           specific encoder and decoer for those platforms that support
3559           iconv().  It can convert the UTF-8 to and from the locale
3560           specific character set.
3561
3562           Affected file lib/silcutil/silcstrutil.[ch].
3563
3564         * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
3565
3566         * Added function silc_get_command_name to the file
3567           lib/silcutil/silcutil.[ch].
3568
3569         * Improved the server debug output a bit.  Affected files are
3570           in silcd/.
3571
3572 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3573
3574         * Save the channel passphrase when received succesful JOIN
3575           command reply from router, on normal server.  Otherwise
3576           joinig +a channels from normal server is not possible.
3577           Affected file silcd/command.c.
3578
3579         * Fixed a bug in TOPIC_SET notify handling.  The notifier
3580           may be other than client too, like server or channel.
3581           It expected it to always be only client and ignored the
3582           notify.  Affected file silcd/packet_recieve.c.
3583
3584         * Removed some (unnecessary) debug printing from
3585           lib/silccore/silcid.c and lib/silccore/silcargument.c.
3586
3587         * Do not force CMODE_CHANGE when server is announcing new
3588           channel.
3589
3590           Router announces stuff only after server reannounces channel
3591           after CHANNEL_CHANGE notify.
3592
3593           These fixes optimizes the announcing procedure, and perhaps
3594           fixes some problems too.  Affected file silcd/packet_receive.c.
3595
3596         * Fixed SERVER_SIGNOFF sending to local clients.  It was
3597           totally broken and sent the notify to all local clients,
3598           instead of only to those that was on same channel as the
3599           signing off clients.  Affected file silcd/server_util.c.
3600
3601         * Added -D option to server.  It can be used to give debug
3602           level.  The levels are from 0 - 99, and are predefined for
3603           smooth server debugging.  (see silcd.c for the predefined
3604           levels).  Affected file silcd/server.c.
3605
3606 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3607
3608         * Fixed a bug in Irssi SILC client to close the connection
3609           properly when disconnecting from server.  Affected file
3610           irssi/src/silc/core/client_ops.c.
3611
3612 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3613
3614         * When authenticating as founder during JOIN command, check
3615           that the one authenticating becomes the only founder on the
3616           channel.  Affected file silcd/command.c.
3617
3618         * Better checking for founder mode setting when CUMODE_CHANGE
3619           notify is received.  Affected file silcd/packet_receive.c.
3620
3621         * Close all connections when shutting down the server by sending
3622           DISCONNECT packet.  Close all listeners too when shutting
3623           down the server.  Affected file silcd/server.c.
3624
3625         * Handle DISCONNECT packet correctly in client library by
3626           calling the "disconnect" client operation.  Affected file
3627           lib/silcclient/client.c.
3628
3629         * Handle local errors correctly during resuming.  Affected
3630           file lib/silcclient/client.c.
3631
3632 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3633
3634         * The log file is not dupped internally anymore in
3635           lib/silcutil/silclog.c.  Fixed memory leaks too.
3636
3637         * The scheduler now dispatches all pending timeout tasks
3638           when it is uninitialized with silc_schedule_uninit.
3639           Affected file lib/silcutil/silcschedule.c.
3640
3641 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3642
3643         * Added --enable-stack-trace option to configure.  Added
3644           memory allocation stack trace support.  Added files
3645           lib/silcutil/stacktrace.[ch].  Affected files are
3646           lib/silcutil/silcmemory.[ch].
3647
3648         * Fixed memory leaks from libraries and server.  Affected
3649           files around the tree.
3650
3651         * Reverted back a fix made to CUMODE which broke it.
3652           Affected file silcd/command.c.
3653
3654 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3655
3656         * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
3657           core library, and implemented it.  All textual messages SHOULD
3658           use this flag and the message MUST be UTF-8 encoded.
3659           All text messages sent by Irssi SILC client are now UTF-8
3660           encoded (regardless whether the terminal supports UTF-8 or not).
3661           Affected files are lib/silccore/silcchannel.h,
3662           irssi/src/silc/core/silc-servers.c, silc-channels.c and
3663           client_ops.c.
3664
3665 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3666
3667         * Added lots of new statistics updating that was missing from
3668           the server and router code.  Affected files in silcd/.
3669
3670         * Sending SIGUSR1 signal to server now dumps the current
3671           server statistics into /tmp directory.  Affected file is
3672           silcd/silcd.c.
3673
3674         * ROBODoc documented the lib/silccrypt/silchash.h.  Improved
3675           the SILC Hash Interface also.  Added new functions
3676           silc_hash_get_name, silc_hash_init, silc_hash_update and
3677           silc_hash_final.  Affected file lib/silccrypt/silchash.c.
3678
3679 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3680
3681         * Added some better info printing for client during connecting.
3682           Affected file silcd/server_util.c.
3683
3684         * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
3685           to silence a user on a channel.  Affected files are
3686           lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
3687           irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
3688           and silcd/packet_receive.c.
3689
3690         * Fixed a fatal bug in handling of malformed command payload.
3691           Affected file silcd/command.c.
3692
3693         * Fixed a double free when announcing channel users to router.
3694           Affected file silcd/server.c.
3695
3696         * After successful authentication to channel founder mode, check
3697           that there isn't anyone else with founder mode on the channel.
3698           The one that authenticated will become founder and anyone
3699           else is demoted.  Affected file silcd/command.c.
3700
3701         * Added error printing of any error that has occurred during
3702           any command in client library.  Affected file is
3703           irssi/src/silc/core/client_ops.c.
3704
3705         * Removed some error printing from the client library and left
3706           it for the application to worry (from the error status it
3707           receives in 'command' client operation.  Affected file is
3708           lib/silcclient/command.c.
3709
3710 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3711
3712         * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
3713           KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
3714           Starting key agreement with itself is denied.  Affected file
3715           is lib/silcclient/client_keyagr.c.
3716
3717         * Fixed some error checkings from the SFTP library which caused
3718           misbehaviour.  Affected files are lib/silcsftp/sftp_client.c
3719           and lib/silcsftp/sftp_util.c.
3720
3721         * Added new "debug" and "debug_string" settings to Irssi SILC
3722           client which can be used to print runtime debugging on the
3723           Irssi's screen.  Available when compiled with --enable-debug
3724           option.  Affected file irssi/src/silc/core/silc-core.c.
3725
3726 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
3727
3728         * Fixed a missing variadic parameter in a function call that
3729           caused server crash when a non-allowed connection arrived.
3730           Reported by Richard Becker.  Affected file silcd/server.c.
3731
3732 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3733
3734         * Added WATCH list sending to backup routers from router.
3735           The WATCH command is sent by the router to the backup
3736           router.  Affected file silcd/command.c.
3737
3738         * Mark the backup_router flag for RouterConnection entry
3739           if the backup router stuff is defined in the config file.
3740           Affected file silcd/serverconfig.c.
3741
3742         * Fixed some backup data sending around the code to work better
3743           if the router is standalone router.  Not all places were fixed.
3744           Affected file silcd/packet_receive.c, silcd/packet_send.c,
3745           silcd/server.c.
3746
3747         * Fixed the router connecting when connecting to multiple
3748           routers.  It ignored every other router except the first
3749           one.  Affected file silcd/server.c.
3750
3751 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3752
3753         * Made the private key generation after expiration optional.
3754           If not created after expiration the old key will re-expire
3755           at a later time (and thus key pair is not necessary to
3756           change).  Affected file irssi/src/silc/core/clientutil.c.
3757
3758 Sun Jun  9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3759
3760         * The length arguments in bind() and connect() were wrong
3761           and fixed now to used SIZEOF_SOCKADDR in the
3762           lib/silcutil/unix/silcunixutil.c.
3763
3764 Tue Jun  4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3765
3766         * Fixed detach timeout handling to use Client ID and not
3767           the actual client entry which may be freed in the callback.
3768           Affected file silcd/command.c.
3769
3770 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3771
3772         * Merged c0ffee's multiple interface support patch.
3773           Affected files in silcd/.
3774
3775 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3776
3777         * Cleanup keys properly.  Affected file is
3778           irssi/src/silc/core/clientutil.c.
3779
3780 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3781
3782         * Display the user mode on the status bar.  Affected file
3783           irssi/src/silc/core/silc-expandos.c.
3784
3785 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3786
3787         * If private message key is not set, but the flag is set in
3788           the packet, ignore the packet since it cannot be decrypted.
3789           Affected file lib/silcclient/client_prvmsg.c.
3790
3791 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3792
3793         * When resuming client, remove the old client entry from
3794           the watcher list too.  Affected file silcd/packet_receive.c.
3795
3796         * Do not allow normal server to force founder mode away
3797           from router if the founder mode is already set.  Affected
3798           file silcd/packet_receive.c.
3799
3800         * Remove the client entry with watch notify types with short
3801           timeout, and not directly, so that other notifys can be
3802           retrieved too.  Affected file lib/silcclient/client_notify.c.
3803
3804         * Display notification about data messages that cannot be
3805           displayed.  Affected files irssi/src/silc/core/client_ops.c,
3806           irssi/src/fe-common/silc/module-formats.[ch].
3807
3808 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3809
3810         * Fixed the CHANNEL_CHANGE notify handling in client libary
3811           to not use freed memory.  Affected file is
3812           lib/silcclient/client_notify.c.
3813
3814         * Fixed CUMODE_CHANGE notify handling in server.  Affected
3815           file silcd/packet_receive.c.
3816
3817         * Fixed USERS command to support empty channels.  Affected
3818           file silcd/command.c.
3819
3820 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3821
3822         * Allow multiple identical pending commands to be registered
3823           in client library.  Affected file is lib/silcclient/command.c.
3824
3825         * Call the completion for resolving client information only
3826           after all resolvers has finished.  This fixes a crash in
3827           the client.  Added support for checking when the resolvers
3828           are finished.  Affected file is lib/silcclient/idlist.c.
3829
3830         * Wait by default 3 seconds before reconnecting to the server
3831           after being disconnected.  Makes the /detach command a bit
3832           more usable.
3833
3834 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3835
3836         * Check the watcher list before sending signoff notifys
3837           when closing client connection.  Affected file is
3838           silcd/server.c.
3839
3840         * Added better CMODE command rights checking.  Affected file
3841           silcd/server_util.c.
3842
3843 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3844
3845         * Fixed watcher list checking during server signoff.  It
3846           crashed the server.  Affected file silcd/server_util.c.
3847
3848         * The JOIN command reply returns now the founder's public
3849           key.  Affected file is silcd/command.c.
3850
3851         * Announce the channel mode, and the mode properties with
3852           CMODE_CHANGE notify.  Affected file silcd/server.c.
3853
3854         * Mark new channels by default disabled, untill at least
3855           one user joins the channel.  Affected file is
3856           silcd/packet_receive.c.
3857
3858 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3859
3860         * The nickname argument to watch notify can be optional.
3861           Fixes a crash in server.  Affected file silcd/packet_send.c.
3862
3863         * Remove the client entry from cache if the WATCH notify type
3864           is KILLED, SERVER_SIGNOFF or SIGNOFF.  Affected file is
3865           lib/silcclient/client_notify.c.
3866
3867         * Check the watcher list before and after changing nickname
3868           when the NICK_CHANGE notify is received.  Affected file is
3869           silcd/idlist.c.
3870
3871         * Fixed a crash in OPER and SILCOPER command sending.  Empty
3872           passphrase caused the crash.  Affected file is
3873           lib/silcclient/command.c.
3874
3875 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3876
3877         * Merged with Irssi CVS for Irssi SILC client.
3878
3879 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3880
3881         * Completed the protocol specifications.
3882
3883 Tue May  7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3884
3885         * Merged with Irssi CVS for Irssi SILC client.
3886
3887 Tue May  7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3888
3889         * Added the founder's public key delivery to the
3890           CUMODE_CHANGE notify type as well.  Updated the protocol
3891           specs and the code.  Affected files are silcd/packet_send.[ch],
3892           silcd/packet_receive.c and silcd/command.c.
3893
3894 Mon May  6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3895
3896         * Added silc_pkcs_public_key_copy function into the
3897           lib/silccrypt/silcpkcs.[ch].
3898
3899         * Remove the `iv' from the SilcChannelEntry since we can
3900           live without it.  Affected files are silcd/idlist.h and
3901           silcd/packet_receive.c.
3902
3903         * Added support for sending the founder's public key in
3904           the CMODE_CHANGE notify packet in the server.  Affected
3905           files are silcd/packet_send.[ch], silcd/packet_receive.c,
3906           silcd/command.c and silcd/server.c.
3907
3908         * Changed the FOUNDER_AUTH authentication to use only
3909           public key authentication as defined by new protocol
3910           specs.  Passphrase authentication with that mode cannot
3911           be used anymore.  It is now possible to reclaim founder
3912           mode from any server in the network.  Affected files are
3913           silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
3914
3915         * Added permanent channels support by making the channel
3916           permanent when FOUNDER_AUTH mode is set on the channel.
3917           The channel will not be destroyed even if channel is empty
3918           when that mode is set.  Protocol TODO #17.  Affected
3919           files are silcd/server.[ch], server_util.[ch],
3920           silcd/command.c, silcd/packet_receive.c and
3921           lib/silcclient/command.c.
3922
3923 Fri May  3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3924
3925         * Added reference counter to the command reply context in
3926           the client library.  Affected files are
3927           lib/silcclient/command_reply.[ch].
3928
3929 Fri May  3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
3930
3931         * Fixed rekey protocol with PFS in the client library.
3932           Affected file is lib/silcclient/protocol.c.
3933
3934         * Added support for list of errors in client library
3935           command reply handling.  Affected file is
3936           lib/silcclient/command_reply.c.
3937
3938         * Defined that the WHOIS and IDENTIFY commands can send
3939           list of errors.  Updated the protocol specs.  Protocol
3940           TODO #2.
3941
3942         * Added support for sending list of errors to WHOIS and
3943           IDENTIFY commands in server.  Added support for receiving
3944           list of errors in server.  Affected files are
3945           silcd/command.c and silcd/command_reply.c.
3946
3947         * Fixed client info resolving on LEAVE command in client
3948           library to not crash.  Affected file is
3949           lib/silcclient/client_notify.c.
3950
3951 Thu May  2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
3952
3953         * Defined that the NICK command replies with thew changed
3954           nickname too, to make the nickname changing simpler at
3955           the client's end.  Updated protocol specs and the code
3956           in client and server.  Affected files are
3957           silcd/command.c, lib/silcclient/command_reply.c and
3958           lib/silcclient/command.c.
3959
3960 Mon Apr 29 20:10:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3961
3962         * Added `Compressed' packet flag to indicate that the packet
3963           payload is compressed by the sender.  Updated the protocol
3964           specs and the core library.  The compression still is not
3965           implemented in the sources.  Affected file is
3966           lib/silccore/silcpacket.h.
3967
3968 Mon Apr 29 09:48:12 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3969
3970         * Remove pending command callbacks also if the connection
3971           to the server is destroyed.  Affected file is
3972           lib/silcclient/client.c.
3973
3974 Sat Apr 27 19:52:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3975
3976         * Added new QUIET channel user mode that can be used to
3977           quiet a user in a channel.  Updated the protocol specs but
3978           it wasn't implemented yet.  Protocol TODO #27.  Affected
3979           file is lib/silccore/silcmode.h.
3980
3981 Mon Apr 22 09:09:44 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
3982
3983         * Added BLOCK_INVITE user mode to be able to block incoming
3984           invite notifications.  Protoocol TODO #26.  Affected files
3985           are lib/silccore/silcmode.h, lib/silcclient/command.c and
3986           silcd/command.c.
3987
3988         * SILC Publickey fields MUST be UTF-8 encoded now.  Updated
3989           the protocol specs and the code.  Affected file is
3990           lib/silccrypt/silcpkcs.c.
3991
3992 Sun Apr 21 19:44:38 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
3993
3994         * Disconnect Payload includes now the status type.  Updated
3995           the protocol specs and the code.  Protocol TODO #25.
3996           Affected files are silcd/server.c, lib/silcclient/client.c.
3997
3998         * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
3999           KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
4000           Moved the silc_client_command_status_messages table to the
4001           lib/silcutil/silcutil.c and added new funtion
4002           silc_get_status_message, which deprecates function
4003           silc_client_status_message.  Affected files are
4004           lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
4005           lib/silcutil/silcutil.[ch].
4006
4007 Fri Apr 19 17:35:15 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4008
4009         * Defined that the nickname hash in Client ID MUST be from
4010           lowercase nickname.  This effectively changes nicknames in
4011           SILC to case-insensitive.  Updated the protocol specs and
4012           the code.  Affected files are lib/silcutil/silcutil.[ch],
4013           silcd/serverid.c, and silcd/idlist.c.
4014
4015         * Added new channel user modes BLOCK_MESSAGES_USERS and
4016           BLOCK_MESSAGES_ROBOTS.  Updated the protocol specs and the
4017           code.  Affected files are lib/silccore/silcmode.h,
4018           lib/silcclient/command.c, and silcd/packet_send.c.
4019
4020         * Added new error status ERR_RESOURCE_LIMIT.  Updated protocol
4021           specs and code.  Affected file lib/silccore/silcstatus.h.
4022
4023         * Added support for watch list.  It is possible to add nicknames
4024           to be watched, and when they come to network, leave network
4025           or user mode changes the watcher will be notified of this
4026           change.  Added SILC_COMMAND_WATCH command, added new
4027           notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
4028           notifications.  Updated the protocol specs and implemented
4029           this to library, client and server.  Protocol TODO #21.
4030           Affected files are lib/silccore/silccomand.h,
4031           lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
4032           silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
4033           silcd/packet_send.[ch], silcd/packet_receive.c, and
4034           irssi/src/silc/core/client_ops.c.
4035
4036         * Added user mode SILC_UMODE_REJECT_WATCHING to reject
4037           somebody watching you.  Updated the protocol specs and the
4038           code.  Affected files are lib/silccore/silcmode.h, and
4039           lib/silcclient/command.c.
4040
4041 Fri Apr 19 09:02:20 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4042
4043         * Added service support to SILC protocol.  Added new command
4044           SILC_COMMAND_SERVICE.  Updated the protocol specs and the
4045           core library.  Services are not implemented in server or
4046           client for now.  Protocol TODO #20.  Affected files are
4047           lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
4048
4049         * Added SilcStatus argument to `command' client operation
4050           to return the error status when command sending fails
4051           locally.  Changed all command in client library to return
4052           correct command status.  Affected files are
4053           lib/silcclient/command.c, lib/silcclient/silcclient.h and
4054           irssi/src/silc/core/client_ops.c.
4055
4056 Thu Apr 18 14:09:51 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4057
4058         * Added silc_mime_parse function to parse MIME headers.
4059           Affected files are lib/silcutil/silcstruti.[ch].
4060
4061         * Added MIME header parsing in Irssi SILC Client.  It displays
4062           all textual MIME objects, others it ignores.  Affected file
4063           is irssi/src/silc/core/clien_ops.c.
4064
4065 Wed Apr 17 22:07:59 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4066
4067         * Fixed a bug in the pid writing function, which couldn't be
4068           written in a root-owned directory.
4069
4070 Tue Apr 16 09:34:40 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4071
4072         * Defined that channel message to unknown Channel ID must
4073           cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
4074           Updated the protocol specs and the code in server.  The
4075           affected file is silcd/packet_receive.c.
4076
4077 Mon Apr 15 19:57:57 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4078
4079         * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
4080           that it is used to send error notifys if error occurs during
4081           some SILC packet processing, except commands.  The error
4082           types are same as for command reply types.  Defined that
4083           if private message is sent to unknown Client ID the error
4084           is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
4085           Updated the protocol specs and code.  Affected files are
4086           lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
4087           lib/silcclient/client_notify.c, silcd/packet_receive.c,
4088           and irssi/src/silc/core/client_ops.c.  Renamed the
4089           SilcCommandStatus to SilcStatus.
4090
4091         * Defined the use of extra WHOIS attributes in WHOIS command.
4092           The <Requested Attributes> (defined in a separate document)
4093           can be used to request additional information about user
4094           not returned by standard WHOIS command.  Defined that server
4095           can send WHOIS command directly to client.  Client provides
4096           the requested attributes to the server.  Updated the protocol
4097           specs.  Protocol TODO #4.  Implementation is not done yet
4098           (Protocol TODO #24).
4099
4100         * Renamed function silc_client_command_status_message to
4101           silc_client_status_message.  Affected files are
4102           lib/silcclient/command_reply.[ch].
4103
4104 Sun Apr 14 21:13:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4105
4106         * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
4107           32 bit integers.  Updated the protcol specs and the code.
4108           Affected files are silcd/command.c and
4109           lib/silcclient/command.c.
4110
4111 Sun Apr 14 19:49:02 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4112
4113         * Fixed a bug in library where sending a bogus authentication
4114           payload would lead to a crash.  Affected file is
4115           lib/silccore/silcauth.c.
4116
4117 Sat Apr 13 13:09:24 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4118
4119         * Added detach_disabled and detach_timeout server config
4120           options to the server.  Affected files silcd/serverconfig.[ch],
4121           silcd/command.c and silcd/packet_receive.c.
4122
4123 Fri Apr 12 20:09:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4124
4125         * Added resolve_cmd_ident field to the SilcClientEntry structure
4126           too so that if the entry is for example being resolved so
4127           another command may attach to the same pending command reply
4128           without requiring to resolve the same entry again.  Added
4129           support for adding multiple pending commands for one
4130           command idenfier.  Affected files lib/silcclient/command.[ch],
4131           lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
4132
4133 Fri Apr 12 10:17:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4134
4135         * Defined that server receives WHOIS command reply for private
4136           and secret channels too.  Updated protocol specs and the
4137           code in server.  Affected file silcd/command.c.
4138
4139         * Defined <channel user mode list> argument to WHOIS command
4140           reply for returning user modes on the channels.  The
4141           channel list now doesn't include the user mode anymore but the
4142           actual channel mode.  Updated protocol specs and the code in
4143           client and server.  Affected files are silcd/command_reply.c,
4144           silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
4145           and lib/silcclient/command_reply.c.
4146
4147         * Save the channels list in WHOIS command reply in normal server
4148           so that WHOIS always shows joined channels also in normal
4149           server and not just on router.  Affected file is
4150           silcd/command_reply.c.
4151
4152 Thu Apr 11 22:29:33 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4153
4154         * Defined that server receives USERS command reply for private
4155           and secret channels too.  Updated protocol specs and the
4156           code in server.  Affected file silcd/command.c.
4157
4158 Thu Apr 11 16:32:08 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4159
4160         * Changed the UMODE's mode mask argument to be optional.  If
4161           not provided then the command merely returns the current mode
4162           mask to the client.  Updated protocol specs and the server.
4163           Affected file is silcd/command.c.
4164
4165         * Added SILC session detachment/resuming support.  It is possible
4166           to detach by closing the network connection and then re-connect
4167           and resume to the old client session.  Added DETACHED user
4168           mode that server will set for detached client.  Added new
4169           packet RESUME_CLIENT which is used to perform the resuming
4170           process.  Added DETACH command.  Updated the protocol specs,
4171           core library, client and server.  Protocol TODO #22.  Very
4172           many affected files around the tree.
4173
4174 Wed Apr 10 16:32:01 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4175
4176         * Changed the CMODE's mode mask argument to be optional.  If
4177           not provided then the command merely returns the current mode
4178           mask to the client.  Updated protocol specs and the server.
4179           Affected file is silcd/command.c.
4180
4181         * Changed the Killer's Client ID in KILLED notify to be just
4182           any ID payload since router server is allowed to kill as well.
4183           Updated protocol specs, client libary and server.  Affected
4184           files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
4185           and irssi/src/silc/core/client_ops.c.
4186
4187 Tue Apr  9 17:15:42 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4188
4189         * Added new user modes ANONYMOUS for special anonymous servers
4190           that may set the mode for client, and BLOCK_PRIVMSG which
4191           client may set to block incoming private messages unless the
4192           Private Message Key flag is set (using private keys to protect
4193           private messages).  Updated protocol specs and code in client
4194           and server and core library.  Protocol TODO #23.  Affected
4195           files are lib/silccore/silcmode.h, silcd/server.[ch],
4196           irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
4197           irssi/docs/help/in/umode.in, lib/silcclient/command.c.
4198
4199         * Added new channel user mode BLOCK_MESSAGES which the client
4200           may set to itself to tell server not send channel messages.
4201           Other packets such as channel key packets are still sent.
4202           Protocol TODO #23.  Updated the protocol specs, client and
4203           server.  Affected files are lib/silccore/silcmode.h,
4204           irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
4205           lib/silcutil/silcutil.c, silcd/command.c, and
4206           silcd/packet_send.c.
4207
4208 Mon Apr  8 23:57:32 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4209
4210         * Redefined the Status Payload to include now two 8 bit fields,
4211           instead of one 16 bit field.  This now makes it possible to
4212           send list of errors.  Updated the protocol specs and the code
4213           in core library, client library and server.  Protocol TODO #1.
4214           Affected files are lib/silccore/silccommand.[ch],
4215           lib/silcclient/command_reply.[ch], silcd/command.c,
4216           silcd/command_reply.c and silcd/packet_receive.[ch].
4217
4218 Mon Apr  8 19:57:40 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4219
4220         * Added config parse status SILC_CONFIG_EPRINTLINE, this status
4221           must be handled by the application and should tell the application
4222           that an error message was already printed, and it should print the
4223           config coords (line, filename, ...).  Affected files are
4224           silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
4225
4226         * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
4227           server config parsing code more readable.
4228
4229           Fixed a bug in the fetch_logging() config callback.
4230
4231           Affected files is silcd/serverconfig.c.
4232
4233         * Drop root privileges when started in foreground.  Don't drop them
4234           if debugging also.  Affected file is silcd/silcd.c.
4235
4236 Mon Apr  8 17:00:41 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4237
4238         * Added more IM-like features by introducing new user modes
4239           for setting various presence information.  Added new modes:
4240           INDISPOSED, BUSY, PAGE, HYPER and ROBOT.  Updated protocol
4241           specs and code.  Protocol TODO #19. Affected files are
4242           lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
4243           irssi/docs/help/in/umode.in and lib/silcclient/command.c.
4244
4245 Sun Apr  7 17:07:59 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4246
4247         * Added STATS command to the protocol after all, to return
4248           various statistical information about the network.  It can
4249           be used by clients to retrieve statistical information, and
4250           servers may use it to to fetch cell and network wide
4251           statistics from router.  Updated the protocol specs and
4252           implemented it to the server.  Protocol TODO #16.
4253           Affected files are lib/silccore/silccommand, silcd/command.[ch],
4254           silcd/command_reply.[ch].
4255
4256 Sat Apr  6 17:08:58 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4257
4258         * The LIST command reply in client libary now adds new channel
4259           entry if the returned channel doesn't exist yet in cache,
4260           and returns the channel entry to the application in the
4261           command_reply client operation.  Affected file is
4262           lib/silcclient/command_reply.c.
4263
4264         * Changed the channel message payload's MAC generation to
4265           include the IV in the MAC as well.  This way all relevant
4266           parts of the channel message payload are authenticated also
4267           with the channel message MAC (and not only by packet MAC).
4268           Causes incompatibility with 1.0 protocol.  Protocol TODO #7.
4269           Affected file is lib/silccore/silcchannel.c.
4270
4271         * Fixed the SKE to save the remote version, since the
4272           silc_ske_parse_version mistakenly checked wrong version,
4273           after it replaced the start payload.  Affected files are
4274           lib/silcske/silcske.[ch].
4275
4276 Fri Apr  5 16:03:03 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4277
4278         * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
4279           string utility functions.  Added there also new functions
4280           silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
4281           Affected files lib/silcutil/silcstrutil.[ch].
4282
4283         * Renamed silc_*_pem functions to silc_pem_* functions.  Affected
4284           files are lib/silcutil/silcstrutil.[ch].
4285
4286         * Defined that the security property fields in SKE SHOULD be
4287           UTF-8 encoded, defined that version string MUST be US-ASCII
4288           encoded, defined that passphrases sent in connection
4289           authentication protocol MUST be UTF-8 encoded.  Implemented
4290           these to the client and server.  Defined also that other
4291           passphrases sent in the protocol MUST be UTF-8 encoded.
4292           Affected files are lib/silcske/silcske.c,
4293           lib/silcclient/protocol.c, silcd/protocol.c,
4294           silcd/serverconfig.c, and lib/silccore/silcauth.c.
4295
4296         * Changed the silc_client_close_connection interface to not
4297           need the SilcSocketConnection which should not be visible
4298           to application.  Affected files are lib/silcclient/client.c
4299           and lib/silcclient/silcclient.h.
4300
4301         * Rewrote the text for Private Message Key Payload in the
4302           protocol specification.  Protocol TODO #11.
4303
4304 Wed Apr  3 16:24:51 EEST 2002  Pekka Riikonen <priikone@silcnet.org>
4305
4306         * Upgraded the protocol version to 1.1, updated protocol specs
4307           and software.
4308
4309         * Added the nickname as new argument to NICK_CHANGE notify and
4310           added it to protocol specs and implemented it to client and
4311           server.  Protocol TODO #3.  Affected files are silcd/idlist.[ch],
4312           silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
4313           lib/silcclient/client_notify.c.
4314
4315         * Added the killer's client ID to the KILLED notify and added
4316           it to protocol specs and implemented it to client and server.
4317           Protocol TODO #13.  Affected files are silcd/command.c,
4318           silcd/packet_receive.c, packet_send.[ch],
4319           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4320           The killer's client entry is now returned to application in
4321           the `notify' client operation.
4322
4323         * Fixed the Max Argument fields that had too large value set
4324           in the protocol specs.  Protocol TODO #14.
4325
4326         * Added the LEAVE command reply to return the ID of parted
4327           channel.  Updated protocol specs and implemented it to the
4328           client and server.  Protocol TODO #15.  Affected files are
4329           silcd/command.c, lib/silcclient/command_reply.c.  The channel
4330           entry is now returned to application in the `command_reply'
4331           client operation.
4332
4333         * Rewrote the version SKE version checking in client libary
4334           and in server to use the silc_parse_version_string.  Affected
4335           files are lib/silcclient/protocol.c, silcd/protocol.c.
4336
4337         * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
4338           commands that was missing it, and updated protocol specs and
4339           the server implementation.  Protocol TODO #10.  The affected
4340           file is silcd/command.c.
4341
4342         * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
4343           generic reply to a generic request (REQUEST flag), and
4344           SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
4345           way.  A draft-riikonen-silc-flags-payloads-00.txt is written
4346           to define the payload for DATA flag.  Added the flags to
4347           the implementation.  Protocol TODO #9.  Affected file is
4348           lib/silccore/silcchannel.h.
4349
4350           Changed the client library to return the message length
4351           to application as well in the channel_message and private_message
4352           client operations.  Affected files are
4353           lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
4354           lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
4355           and lib/silcclient/client_ops_example.c.
4356
4357         * Added two new channel modes: SILC_CMODE_SILENCE_USERS
4358           and SILC_CMODE_SILENCE_OPERS which can be used to moderate
4359           the channel.  Updated protocol specs and impelemented this
4360           to client and server.  Protocol TODO #6.  Affected files are
4361           silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
4362           lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
4363
4364           Added new options m and M to CMODE command in Irssi SILC
4365           client to set these modes.
4366
4367         * Deprecated all administrative commands from SILC protocol
4368           since they are highly implementation specific commands.
4369           Updated protocol specs.  Moved the old commands in
4370           implementations to private range of command types.  Affected
4371           files are silcd/command.c, lib/silcclient/command.c and
4372           lib/silcclient/command_reply.c.  Protocol TODO #8.
4373
4374         * Fixed a bug in server where sending unknown command crashes
4375           the server.  Affected file silcd/command.c.
4376
4377 Wed Apr  3 09:57:47 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4378
4379         * Added SILC_PROTOCOLVERSION macro to check protocol version
4380           of a socket connection.  The affected file is
4381           lib/silcutil/silcsockconn.h.
4382
4383         * Added better error logging in rekey protocol.  Affected file
4384           silcd/protocol.c.
4385
4386         * Do not check public key types in SKE during rekey.  Affected
4387           file lib/silcske/payload.c.
4388
4389         * Fixed the rekey protocol with PFS, which was totally broken.
4390           Affected file silcd/protocol.c.
4391
4392 Tue Apr  2 14:55:06 CEST 2002  Pekka Riikonen <priikone@silcnet.org>
4393
4394         * Some client implementations quit network by doing first LEAVE
4395           and then immediately SIGNOFF (like Bombyx).  We now do check
4396           after a short time after LEAVE notify and check whether the
4397           client is still valid after LEAVE, and if not we remove it from
4398           cache.  Affected file is lib/silcclient/client_notify.c.
4399
4400 Tue Apr  2 13:39:04 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4401
4402         * Merged version 1.1.4 of zlib. Even if it not currently in use,
4403           it's good not to have security holes here.
4404
4405         * Fixed a negative refcount situtuation for the config context.
4406           Affected file is silcd/serverconfig.c.
4407
4408 Mon Apr  1 20:15:10 CEST 2002  Johnny Mnemonic <johnny@themnemonic.org>
4409
4410         * ROBOdoc documented lib/silcutil/silcutil.h.
4411
4412 Sat Mar 30 21:06:45 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4413
4414         * Optimized even more the SilcPacketContext structure.  Now
4415           totally saved 16 bytes of memory per context after optimization.
4416           Affected files are lib/silccore/silcpacket.[ch].
4417
4418         * Made strict checks for valid SILC IDs.  Affected file is
4419           lib/silccore/silcid.c.
4420
4421 Sat Mar 30 18:15:55 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4422
4423         * Changed the object argument for silc_cipher_register,
4424           silc_hash_register, silc_hmac_register and silc_pkcs_register
4425           to const.  Affected files are lib/silccrypt/silccipher.[ch],
4426           silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
4427
4428         * Changed the silc_get_username and silc_get_real_name to
4429           never fail.  Affected file lib/silcutil/unix/silcunixutil.c.
4430
4431         * Fixed the Irssi SILC Client to use the silc_get_username and
4432           silc_get_real_name insted of glib routines since the glib
4433           routines only corrupt stack.  Fixes the Irssi SILC to work in
4434           Cygwin.  Affected file irssi/src/silc/core/silc-core.c.
4435
4436         * Fixed the Irssi to not use g_get_home_dir since it crashes
4437           or returns garbage on cygwin and corrupts stack.  Added function
4438           get_home_dir to Irssi routines.  Affected files are
4439           irssi/src/core/misc.[ch] and irssi/src/core/core.c.
4440
4441 Fri Mar 29 21:55:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4442
4443         * Made some structure optimizations.  SFTP memory FS MemFSEntry
4444           entry structure.  Optimized SilcTask structure.  Optimized
4445           SilcPacketContext structure.
4446
4447           Affected files lib/silcsftp/sftp_fs_memory.c,
4448           lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
4449
4450 Fri Mar 29 10:41:07 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4451
4452         * And yet again reverted back the config thing since Johnny
4453           screwed it up.  Affected file silcd/serverconfig.[ch], server.c,
4454           and silcd.c.
4455
4456         * Fixed memory leaks from config object.  Affected files are
4457           silcd/serverconfig.[ch].
4458
4459         * Added support for adding new connections to the server in rehash.
4460           After rehash they take effect.
4461
4462           Added support for changing the maximum allowed connections in
4463           rehash.  The number can grow but going smaller is not supported.
4464
4465           Added function silc_server_num_sockets_by_remote to the
4466           silcd/server_util.[ch].
4467
4468           Affected files are silcd/server.c, and silcd/serverconfig.[ch].
4469
4470 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
4471
4472         * Added preliminary checking during config parsing for a valid
4473           public/private key and removed further checks in the code.
4474           Affected files are silcd/serverconfig.[ch], server.c.
4475
4476         * Moved functions silc_server_drop() and silc_server_daemonise()
4477           from server.c to silcd.c since they are stricly related to
4478           the application activity.
4479
4480         * Reverted a small part of the automatic ref/unref since
4481           it caused a double unref in some situations.  Affected
4482           files are silcd/silcd.[ch], server.c, serverconfig.c.
4483
4484         * Added some .cvsignore files in the lib directory.
4485
4486 Thu Mar 28 22:51:15 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4487
4488         * Fixed silc_net_gethostbyaddr to correctly resolve by
4489           address.  Affected file lib/silcutil/silcnet.c.
4490
4491         * Fixed the notify relaying to client.  The HMAC to be used
4492           with relayed packets ws wrong and caused decryption failure
4493           at the client end.  Affected file is silcd/packet_receive.c.
4494
4495 Thu Mar 28 19:02:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4496
4497         * Created new branch silc_protocol_1_0_branch.
4498
4499         * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
4500
4501         * Changed the silc_server_config_* routines to be SilcServer
4502           independent.  They are now officially application specific code
4503           and not part of generic server implementation.  Affected files
4504           are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
4505
4506 Thu Mar 28 17:01:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4507
4508         * Added automatic referencing of config context in the
4509           silc_server_config_alloc, and automatic unreferencing in the
4510           silc_server_config_destroy.  Affected files are
4511           silcd/serverconfig.[ch], silcd/silcd.c.
4512
4513         * Fixed the silc_log_quick handling in the logging routines.
4514           It didn't log quickly when it was TRUE.  Affected file is
4515           lib/silcutil/silclog.c.  Also the flush delay was set even
4516           if it was 0 in config file.  Affected file is
4517           silcd/serverconfig.c.
4518
4519         * Added support for changing key pair of the server in rehash.
4520           Affected file silcd/server.c.
4521
4522 Thu Mar 28 12:17:21 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4523
4524         * Fixed the TOPIC_SET notify to not cras.  It changed the topic
4525           too early, before getting the channel entry.  Affected file
4526           is silcd/packet_receive.c.
4527
4528 Thu Mar 28 09:58:16 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4529
4530         * Added functions silc_server_config_[ref/unref], these are used
4531           to prevent that the config object is destroyed.
4532
4533           No longer directly affect global variables silc_log_quick and
4534           silc_log_delay, they are first cached inside the config object
4535           and then applied with silc_server_config_setlogfiles().
4536
4537           silc_server_config_set_defaults() is now internal to
4538           serverconfig.c, there are no reasons to show this internal stuff
4539           to the server.
4540
4541           Affected files are silcd/serverconfig.[ch].
4542
4543         * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
4544           fprintf's to stderr, since some code may be executed again after
4545           the server went into the background.  Affected files are
4546           silcd/server.[ch].
4547
4548         * Added rehash support. Added function silc_server_rehash() that
4549           will perform all the basic tasks of the rehashing procedure.
4550
4551         * Added command line option `-x, --hexdump'. This will enable the
4552           SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
4553           The option `--hexdump' implies `--debug'.
4554
4555         * Fixed a bad bug in the logging APIs (silcutil library) where
4556           the application would crash after calling silc_log_reset_all().
4557
4558 Wed Mar 27 19:43:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4559
4560         * Fixed the KICKED notify handling in client library to
4561           correctly remove the channel and all entries from the
4562           channel when I was kicked.  This bug crashed the client.
4563
4564           Fixed yet another but in KICKED notify handling to remove
4565           the kicked client correctly from the channel.
4566
4567           Affected file is lib/silcclient/client_notify.c.
4568
4569         * Fixed a minor bug in looking up correct client entry
4570           in KICKED notify in server.  Affected file is
4571           silcd/packet_receive.c.
4572
4573         * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
4574           sources correctly to distribution.  Fixes --with-gmp option.
4575
4576         * Removed the manual rehashing from ID Cache, and changed it
4577           to use the SILC Hash Table's auto rehash feature.  Affected
4578           file is lib/silccore/silcidcache.c.
4579
4580 Wed Mar 27 00:07:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4581
4582         * Fixed a bug in the silc_client_nickname_format function that
4583           handles the multiple same nickname formatting.  Two clients
4584           with same nickname caused problems after the first one left
4585           and rejoined.  It didn't format the nickname correctly.
4586           Affected file is lib/silcclient/idlist.c.
4587
4588 Tue Mar 26 19:33:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4589
4590         * Don't change the topic if olod topic is same as new one.
4591           Affected file is silcd/packet_receive.c.
4592
4593 Mon Mar 25 21:11:35 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4594
4595         * Added cross-reference support to the SILC Documentation
4596           generator.  All types across all HTML files are now cross-
4597           referenced.  Affected files util/robodoc/generator.c and
4598           scripts/silcdoc/silcdoc.
4599
4600         * Added file lib/silcutil/silctypes.h to include all the
4601           arithmetic type definitions and some macros.  Removed
4602           includes/bitmove.h and moved macros to silctypes.h.
4603
4604 Mon Mar 25 17:19:46 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4605
4606         * Merged bugfixes for Irssi SILC client from irssi.org CVS.
4607
4608 Sun Mar 24 11:21:04 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4609
4610         * Added `type' argument to silc_id_payload_parse_id function which
4611           now returns the type of the ID to the sent pointer.  Affected
4612           file is lib/silccore/silcid.[ch].
4613
4614         * Added check for CMODE_CHANGE notify type that mode change is
4615           allowed by the sender.  Affected file silcd/packet_receive.c.
4616
4617         * Added check for CUMODE_CHANGE notify type that mode change is
4618           allowed by the sender.  Affected file silcd/packet_receive.c.
4619           Added the ID type as CUMODE_CHANGE notify type as argument
4620           to the `notify' client operation.  Affected files are
4621           lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
4622
4623         * Added function silc_client_add_server to the client library.
4624           Added support for resolving also channel and server info when
4625           received unknown entity in notify packet.  Affected files are
4626           lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
4627
4628         * Added function silc_command_get_status to return the command
4629           status from the command reply's argument payload.  Affected files
4630           are lib/silccore/silccommand.[ch].
4631
4632         * Added check for KICKED notify type that the kicking is
4633           allowed by the client.  Affected file silcd/packet_receive.c.
4634
4635         * Created function silc_get_input which can be used to get input
4636           (echo on or off) from user on command line.  Affected files are
4637           lib/silcutil/silcutil.[ch].
4638
4639 Sat Mar 23 09:51:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4640
4641         * Optimized silc_server_packet_relay_to_channel function.
4642           Added new function silc_channel_message_payload_encrypt which
4643           can be called directly if channel message payload needs to
4644           be encrypted and is already encoded (no need to call _encode
4645           function).  Packet relaying is now done by router without any
4646           extra memory allocations.  Affected files are
4647           lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
4648           silcd/packet_send.c.
4649
4650         * Fixed the INVITE notify handling.  It took wrong arguments
4651           as invite list and invite delete.  Affected file is
4652           silcd/packet_receive.c.
4653
4654         * Added check for TOPIC_SET notify type that the topic change is
4655           allowed by the client.  Affected file silcd/packet_receive.c.
4656
4657         * Added check for INVITE notify type that inviting is allowed by
4658           the client.  Affected file silcd/packet_receive.c.
4659
4660         * Changed the silc_server_client_on_channel to return the
4661           SilcChannelClientEntry as well.  Moved the function
4662           silc_server_check_cmode_rights to server_util.[ch].
4663           Affected files are silcd/server_util.[ch], silcd/command.c.
4664
4665         * Added function silc_server_check_umode_rights to check whether
4666           changing client's user mode is allowed.  Added check for
4667           UMODE_CHANGE notify type that the umode change is allowed
4668           by the client.  Affected files are silcd/server_util.[ch],
4669           silcd/packet_receive.c and silcd/command.c.
4670
4671 Fri Mar 22 12:25:58 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4672
4673         * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
4674           ID length.  It ignored that ID can be IPv6 based as well.
4675           Affected file lib/silccore/silcpacket.h.
4676
4677         * Fixed the silc_id_id2str and silc_id_str2id to take the
4678           IPv6 address offset's into consideration.  Affecte file is
4679           lib/silccore/silcid.c.
4680
4681 Thu Mar 21 20:44:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4682
4683         * Fixed the internal Unix scheduler functions to check for
4684           NULL context they may receive.  The affected file is
4685           lib/silcutil/unix/silcunixschedule.c.
4686
4687 Thu Mar 21 19:12:22 EET 2002  Timo Sirainen <tss@iki.fi>
4688
4689         * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
4690           can specify different directory with --home command line
4691           parameter. Affected files irssi/src/silc/core/client_ops.c,
4692           clientutil.c
4693
4694         * SILC-specific commands aren't now executed if the active server
4695           isn't of SILC-type, so there won't be problems with having
4696           IRC and SILC protocol support in same client. Affected files
4697           irssi/src/silc/core/silc-channels.c, silc-servers.c,
4698           silc-commands.h
4699
4700 Wed Mar 20 11:06:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4701
4702         * Improved the signal support in SILC Schedule.  Added new
4703           function silc_schedule_signal_call which is used by application
4704           to mark a signal to be called.  It is now safe to perform
4705           any kind of tasks in signal callbacks since it is guaranteed
4706           that the application specified signal callback is called
4707           after the signal is over.  Affected files are
4708           lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
4709
4710 Tue Mar 19 20:42:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4711
4712         * Added `name' field to SilcChannelPrivateKey to represent
4713           application given name for the key.  Moved also the context from
4714           lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
4715           Added the `name' argument also to the function
4716           silc_client_add_channel_private_key.
4717
4718           Added function silc_client_current_channel_private_key to set the
4719           current channel private key in use.
4720
4721           Added "change" command to KEY command which can be used to change
4722           the current channel private key.  Bound the command also to
4723           alt+K (Alt+Shift+k).
4724
4725           Also affected files lib/silcclient/client_channel.c,
4726           irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
4727
4728 Tue Mar 19 16:32:43 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4729
4730         * Added silc_rng_get_byte_fast function in to the
4731           lib/silccrypt/silcrng.[ch].
4732
4733         * Changed the interface of silc_packet_assemble and the
4734           silc_packet_send_prepare.  If silc_packet_assmble is now
4735           called the application does not call silc_packet_send_prepare
4736           because the library will call it automatically.  These
4737           interfaces now also return a reference to the outgoing buffer
4738           which includes the assembled packet, which the application can
4739           use to encrypt the packet.
4740
4741           Affected files are lib/silccore/silcpacket.[ch],
4742           lib/silcclient/client.c, client_channel.c client_prvmsg.c,
4743           silcd/packet_send.c, server_backup.c and packet_receive.c.
4744
4745         * Fixed a packet sending bug on very high load, where outgoing
4746           packet queue wasn't handled correctly and packets got corrupted.
4747           Affected files are lib/silcutil/*/silc*sockconn.c,
4748           lib/silcclient/client.c and silcd/server.c.
4749
4750 Mon Mar 18 21:00:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4751
4752         * Added macro SILC_PACKET_DATALEN which can be used during
4753           packet assembling to check whether the data to be added to
4754           the packet will fit to SILC_PACKET_MAX_LEN.  If not the data
4755           len is truncated until it fits it.
4756
4757           Added checks for maximum length of channel message payload and
4758           private message payload also.
4759
4760           Added checks for maximum packet length in server and in
4761           client library.
4762
4763           Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
4764           lib/silcclient/client.c, lib/silccore/silcchannel.c and
4765           lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
4766           lib/silcclient/client_prvmsg.c.
4767
4768 Mon Mar 18 14:54:42 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4769
4770         * Added silc_server_packet_queue_purge call to the
4771           silc_server_disconnect_remote to assure that all data in the
4772           queue before disconnecting is sent to the network.  Affected
4773           file silcd/server.c.
4774
4775 Sun Mar 17 19:26:16 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4776
4777         * Added the deleting of server's own ID cache entry to the
4778           silc_server_free function.  Free also everything else that
4779           has been allocated in silc_server_init.  The affected file
4780           is silcd/server.c.
4781
4782 Sun Mar 17 15:44:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4783
4784         * Added functions silc_parse_version_string, silc_version_to_num,
4785           and silc_ske_parse_version to parse SILC protocol style version
4786           strings.  Affected files lib/silcutil/silcutil.[ch] and
4787           lib/silcske/silcske.[ch].
4788
4789         * Added new configuration params: version_protocol, version_software
4790           and version_software_vendor to specify what version the remote
4791           host must at least be to be able to connect to server.  The vendor
4792           string can be regex matched too.  Added new function
4793           silc_server_connection_allowed to check maximum number of allowed
4794           connections, and allowed versions for incoming connections.
4795           Affected files are silcd/server.c, server_util.[ch] and
4796           serverconfig.[ch].
4797
4798 Sun Mar 17 10:24:50 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4799
4800         * Added preliminary support for signals in scheduler.  The
4801           signals we care about are now blocked always when the scheduler
4802           is locked.  This way we can synchronise the use of signal with
4803           scheduler.  It is guaranteed that when signal occurs the scheduler
4804           is not locked, and thus new tasks can be safely added to the
4805           scheduler.
4806
4807           Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
4808           to silc_schedule_internal_init and silc_schedule_internal_uninit.
4809           Added new platform specific routines
4810           silc_schedule_internal_signals_[un]block and
4811           silc_schedule_internal_signal_[un]register.
4812
4813           Added new functions to SILC Schedule API:
4814           silc_schedule_signal_[un]register.  Each signal that application
4815           is going to use should be registered to the scheduler.
4816
4817           Affected files are lib/silcutil/silcschedule.[ch],
4818           lib/silcutil/*/silc*schedule.c.
4819
4820 Sat Mar 16 22:39:23 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4821
4822         * Check for unauthenticated client and server in the
4823           silc_server_new_client and silc_server_new_server functions.
4824           Affected file silcd/packet_receive.c.
4825
4826         * Added function silc_string_is_ascii to check whether given
4827           string is 7-bit ASCII string.  Affected files are
4828           lib/silcutil/silcutil.[ch].
4829
4830         * Added function silc_id_is_valid_server_id into the
4831           silcd/serverid.c and added checking for valid Server ID's in
4832           silc_server_new_server.  The Server ID must always be based
4833           on the server's public IP address.
4834
4835         * Added logging of DISCONNECT packet message in the server.
4836           Affected file silcd/server.c.
4837
4838 Sat Mar 16 18:04:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4839
4840         * Changed all library interfaces that use Global RNG to also
4841           accept SilcRng as argument.  Affected files are
4842           lib/silcclient/command.c, lib/silccore/silcauth.[ch],
4843           lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
4844           silcd/packet_send.c, lib/silccore/silcprivate.[ch],
4845           lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
4846           lib/silccrypt/rsa.c.
4847
4848         * Added function silc_pkcs_generate_key to the
4849           lib/silccrypt/silcpkcs.[ch] for applications so that they
4850           don't need to do pkcs->pkcs->init calls anymore.
4851
4852         * Remove SilcSocketConnection from the SFTP API since it really
4853           wasn't needed there.  The application has the information
4854           saved in its contexts anyway and the SFTP layer doesn't need
4855           know about it.  Affected files lib/silcsft/silcsftp.h and
4856           lib/silcsftp/sftp_[server/client].c.
4857
4858         * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
4859           The SilcSimContext is not SilcSim.
4860
4861         * Fixed possible buffer overflows in silc_id_render in the
4862           lib/silcutil/silcutil.c.
4863
4864         * On EPOC the global crypto module lists are not used at all
4865           in the crypto library.  Added support for using the constant
4866           algorithm list on EPOC.  Affected files are
4867           lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
4868           silcpkcs.c.
4869
4870         * Fixed the handling of third parameter of KICKED notify, since
4871           it was mistakenly updated to SILC Protocol 1.0 even though it
4872           is to be included in 1.1.  Since it is not in 1.0 it is not
4873           mandatory, and this fix now handles it only if it is provided,
4874           and it is not error if it is not provided.  Affected file
4875           lib/silcclient/client_notify.c.
4876
4877 Sat Mar 16 09:07:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4878
4879         * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
4880           client.  Affected file irssi/src/silc/core/client_ops.c.
4881
4882         * Merged with Irssi 0.8.4 from irssi.org CVS.
4883
4884 Thu Mar 14 12:53:57 CET 2002  Pekka Riikonen <priikone@silcnet.org>
4885
4886         * Check for valid socket connection in client entries before
4887           sending any messages.  Fixes a crash, but doesn't fix some
4888           other underlaying bug that is lurking there.  Affected
4889           file silcd/packet_send.c.
4890
4891 Thu Mar 14 13:38:12 EET 2002  Timo Sirainen <tss@iki.fi>
4892
4893         * $usermode, $cumode and $cumode_space expandos shouldn't do
4894           anything with non-SILC server records. Affected file
4895           irssi/src/silc/core/silc-expandos.c
4896
4897 Wed Mar 13 21:38:26 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4898
4899         * Fixed the silc_net_check_[host/local]_by_sock to support
4900           IPv6 bound sockets as well.  Now they can return IPv6 addresses
4901           as well.  Affected file lib/silcutil/silcnet.c.
4902
4903         * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
4904           Affected lib/silcutil/unix/silcunixnet.c.
4905
4906         * Fixed ID rendering (at least on some platforms, not NetBSD)
4907           for IPv6 addresses.  Affected file lib/silcutil/silcutil.c.
4908
4909 Tue Mar 12 17:58:59 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4910
4911         * Added silc_hash_public_key and silc_hash_public_key_compare
4912           functions to be used with SilcHashTable.  They can be used to
4913           hash public keys and compare public keys in hash table.  Affected
4914           file lib/silcutil/silcutil.[ch].
4915
4916         * Added support for specifying multiple public keys for Client
4917           connection section in server configuration file.  This makes it
4918           possible to accept multiple public keys from same host, or to
4919           make a section that accepts any incoming host, and have the
4920           accepted public keys listed in the section.
4921
4922           Added functions silc_sever_[find/get]_public_key,  added the
4923           support for this actually to all connection sections but only
4924           the Client section is currently allowed to specify multiple
4925           public keys.
4926
4927           Affected files are silcd/server.c, server_internal.h,
4928           command.c, protocol.c, server_util.[ch], packet_receive.c.
4929
4930 Mon Mar 11 23:37:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4931
4932         * Merged Irssi 0.8.2 from irssi.org CVS.
4933
4934 Sun Mar 10 23:34:48 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
4935
4936         * If silc_debug is TRUE, also output standard logging messages
4937           to stderr with the debug output.
4938
4939           Made silc_log_reset_all() flushing all channels before returning.
4940           Also fixed some documentation typos.
4941
4942           Affected files are lib/silcutil/silclog.[ch].
4943
4944 Sun Mar 10 20:07:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4945
4946         * Fixed the server to check correctly the amount of connections
4947           from single host, by checking also the type of the connection.
4948           Fixed also the comparison of number of connections and number
4949           of allowed connections.  Affected files are silcd/server.c,
4950           server_util.[ch].
4951
4952 Fri Mar  8 17:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4953
4954         * Fixed the USERS command reply to save the user's mode on the
4955           channel as well.  Fixed JOIN command reply to check whether a
4956           client is on channel already and not join it twice.  Affected
4957           file lib/silcclient/command_reply.c.
4958
4959         * Added new file silc-expandos.c into irssi/silc/core/ to return
4960           various stuff for various signal for the statusbar etc. updating.
4961           Now Irssi SILC client prints channel user modes etc. on the
4962           statusbar.
4963
4964         * The user mode (like server/router operator changes) is now shown
4965           on the Irssi SILC client's statusbar.  The affected files are
4966           irssi/src/silc/core/client_ops.c, silc-expandos.c.
4967
4968 Thu Mar  7 19:21:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4969
4970         * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
4971           to SILC_SCHEDULE_[UN]LOCK macros.
4972
4973         * Added more error printing to logs in server code.  Affected
4974           files silcd/server.c and silcd/protocol.c.
4975
4976         * Fixed -S option parsing in Irssi SILC Client.  Affected file
4977           irssi/src/silc/core/silc-core.c.
4978
4979         * Added silc_buffer_alloc_size function.  Affected file is
4980           lib/silcutil/silcbuffer.h.
4981
4982 Tue Mar  5 14:37:27 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4983
4984         * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
4985           constants.  Affected files in
4986           lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
4987           silccipher.[ch].
4988
4989         * Changed the internal SFTP Memory FS table to const.  Affected
4990           file lib/silcsftp/sftp_fs_memory.c.
4991
4992 Sun Mar  3 18:37:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4993
4994         * Fixed the buffer formatting and unformatting routines to
4995           check the size of 64 bits types with sizeof().  Affected
4996           file is lib/silcutil/silcbuffmt.c.
4997
4998 Mon Feb 25 17:19:05 EET 2002  Pekka Riikonen <priikone@silcnet.org>
4999
5000         * Removed 0.6.x backwards support.
5001
5002 Sun Feb 24 12:53:25 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5003
5004         * Changed all integer type names:
5005           [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64].  This is
5006           to avoid collisions with other libraries using same type names
5007           as we did.
5008
5009 Sat Feb 23 20:31:43 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5010
5011         * Added `prefer_ipv6' argument to the functions
5012           silc_net_gethostbyname[_async].  If it is TRUE it will return
5013           IPv6 address over IPv4.  If FALSE IPv4 address is returned
5014           even if IPv6 address was found.  Affected files
5015           lib/silcutil/silcnet.[ch].
5016
5017         * Added support silc_net_create_connection[_async] to fallback
5018           to IPv4 address if IPv6 address could not be used (like if
5019           it doesn't work on a specific system).  Affected file in
5020           lib/silcutil/unix/silcunixnet.c.
5021
5022 Sat Feb 23 15:20:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5023
5024         * Added silc_schedule_reinit function to do the enlarging
5025           of the max tasks handling capabilities of the scheduler.
5026           Affected files lib/silcutil/silcschedule.[ch].
5027
5028 Wed Feb 20 20:41:01 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5029
5030         * Added automatic extern "C" { ... } for C++ compilers so the
5031           application does not need to define them.  Affected file
5032           includes/silcincludes.h.
5033
5034         * Renamed lib/silcclient/silcapi.h to silcclient.h as the
5035           old name went against naming convention.  Applications now
5036           include "silcclient.h" instead of "clientlibincludes.h".
5037           Removed includes/clientlibincludes.h, it is redundant now.
5038
5039         * Renamed includes/version.h to silcversion.h.
5040
5041         * Added really preliminary support for OS/2 into the util
5042           library.  Only thread & mutex API is implemented, others
5043           are still to be implemented.  Created the lib/silcutil/os2/
5044           directory.  Created also file includes/silcos2.h.
5045
5046 Wed Feb 20 18:48:49 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5047
5048         * Added preliminary BeOS support into the util library.
5049           Created lib/silcutil/beos/, and implemented all the needed
5050           functions to support SILC on BeOS.  Created also file
5051           includes/silcbeos.h.
5052
5053 Mon Feb 18 15:49:22 EET 2002  Timo Sirainen <tss@iki.fi>
5054
5055         * Added proper initializations to silc's irssi code, so it's
5056           now possible to load it as module.  Affected files
5057           irssi/src/silc/core/silc-core.c,
5058           fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
5059
5060 Sun Feb 17 19:02:56 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5061
5062         * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
5063           the SILC tree.
5064
5065         * Fixed the silcdoc document generator to correct generate
5066           docs from all kinds of filenames.  Affected files are
5067           util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
5068
5069         * ROBOdoc documented lib/silcutil/silcmemory.h.
5070           Added also new function silc_memdup.
5071
5072         * Removed lib/silcutil/silcbufutil.h and moved those routines
5073           to the lib/silcutil/silcbuffer.h.
5074
5075 Sun Feb 17 15:52:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5076
5077         * Added `user_count' to the SilcChannelEntry which now tells the
5078           number of users on the channel.  The user count is now saved
5079           in normal server of global channels as well.  Affected files
5080           silcd/server.c, idlist.h, packet_receive.c and command.c.
5081
5082         * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
5083           include file utility functions.
5084
5085         * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
5086           instead of calling directly OS routines.
5087
5088         * Fixed NICK change printing in Irssi SILC Client. Fixed
5089           KICKED notify printing in Irssi SILC Client.  Affected file
5090           irssi/src/silc/core/client_ops.c.
5091
5092         * Fixed a NICK change bug in client library, to not recreate the
5093           client_entry->channels hash table everytime nick is changed.
5094           Affected file lib/silcclient/client.c.
5095
5096 Sun Feb 17 10:10:14 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5097
5098         * ROBOdoc documented the lib/silcske/silcske.h, and improved
5099           the SKE interface a bit.
5100
5101         * Fixed padding problem in PKCS#1. The padding was not actually
5102           random since the random number generator was used incorrectly.
5103           This security bug affects only when encrypting with PKCS#1, and
5104           it is not currently used at all in SILC. SILC only use signing
5105           with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
5106
5107 Sat Feb 16 13:44:24 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5108
5109         * Rewrote the notify handling in Irssi SILC client to not call
5110           the events as signals.  Fixes problems with Perl support.
5111           Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
5112
5113         * Send the auto-nicking NICK command in client library with
5114           little timeout after connecting.  The affected file is
5115           lib/silcclient/client.c.
5116
5117         * Added following new config file settings:
5118           channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
5119           key_exchange_timeout, conn_auth_timeout, connections_max,
5120           links_max.
5121
5122           Implemented all the new config settings handling in the server.
5123
5124           Optimized the use of SKE Mutual flag usage.  Use it only
5125           if connection authentication protocol is not based in public
5126           key authentication.
5127
5128           Renamed all SilcServerConfigSection* to SilcServerConfig*
5129           to have a bit shorter names.
5130
5131           Affected files silcd/serverconfig.[ch], server.[ch], and
5132           protocol.[ch].
5133
5134 Sat Feb 16 02:46:43 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5135
5136         * Cleaned up the listening sockets code, preparing for the rehash
5137           support.  Affected file is silcd/server.c.
5138
5139         * Fixed some output messages.  Affected files are silcd/silcd.c,
5140           and silcd/server.c.
5141
5142 Fri Feb 15 19:10:20 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5143
5144         * Create lib/doc/silcrng_intro.html document as introduction
5145           to SILC RNG.  ROBOdoc documented lib/silccrypt/silcrng.h.
5146
5147 Fri Feb 15 13:23:03 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5148
5149         * Fixes to the silcd config template.  Affected file is
5150           doc/example_silcd.conf.in.
5151
5152         * Removed type casts from silc_calloc(), conforming to the
5153           CodingStyle.  Affected file is lib/silcutil/silcconfig.c.
5154
5155         * Removed param_name member from client, server, and router
5156           section structs, now identifying the param directly.
5157
5158           Added CONFIG_FREE_AUTH macro in config file parsing.
5159
5160           Affected files are silcd/serverconfig.[ch].
5161
5162 Fri Feb 15 12:24:08 EET 2002  Timo Sirainen <tss@iki.fi>
5163
5164         * Fixed command line parameter handling. All SILC initialization
5165           is now done in silc_core_init() which also fixes autoconnecting
5166           to servers.
5167
5168           Affected files irssi/src/silc/core/silc-core.c,
5169           irssi/src/fe-text/silc.c.
5170
5171 Thu Feb 14 22:03:58 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5172
5173         * Added new configuration options and blocks:
5174           keepalive_secs, reconnect_count, reconnect_interval,
5175           reconnect_interval_max, reconnect_keep_trying and
5176           require_reverser_lookup.  Added ConnectionParam block, and
5177           implemented the connection parameters when connecting as
5178           initiator and when accepting connections as responder.
5179
5180           Added CONFIG_IS_DOUBLE macro in config file parsing, to check
5181           whether given configuration value has been given already.
5182
5183           Affected files silcd/serverconfig.[c], server.[c].
5184
5185         * Splitted the doc/example_silcd.conf.in.  Separated the crypto
5186           algorithm parts and created new file silcalgs.conf, that
5187           is now included from the example_silcd.conf.in.
5188
5189         * Optimized the silc_server_connect_to_router_second to take
5190           the connection configuration object from the SilcServerConnection
5191           object instead of finding it during the connecting phase.
5192           Added the configuration object to SilcServerConnection struct.
5193           Affected files silcd/server_internal.h, server.c.
5194
5195 Thu Feb 14 16:02:26 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5196
5197         * Add the client on channel after it was resolved at the
5198           channel message receiving, and it was not already on the
5199           channel.  Affected file lib/silcclient/client_channel.c.
5200
5201 Wed Feb 13 23:16:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5202
5203         * Fixed the public key authentication to allocate always the
5204           destination signature buffer instead of using static buffer.
5205           Affected file silcd/protocol.c.
5206
5207 Wed Feb 13 20:51:13 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5208
5209         * Unified the serverconfig.[ch]'s helper function interface.
5210           Affected file silcd/serverconfig.[ch].
5211
5212         * Removed doc/example_silc.conf.in since it is redundant.
5213           The make install will now install irssi/silc.conf file.
5214
5215         * Added new Passphrase and Publickey authentication methods to
5216           config file, allowing both public key and passphrase based
5217           authentication to be set at the same time.
5218
5219           Added `prefer_passphrase_auth' setting in config file which
5220           can be used to set to prefer passwd auth if both passwd and
5221           public key is set.  If not set, public key is preferred.
5222           This has effect only when being initiator (responder will try
5223           both anyway).
5224
5225           Added support for authentication with passphrase and public key
5226           at the same time.  The passphrase is tried first always since
5227           it is faster to check.
5228
5229           Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
5230
5231 Wed Feb 13 12:46:25 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5232
5233         * Merged the new SILC Config library, with the server parsing
5234           support.  Read the header file silcconfig.h or the toolkit
5235           documentation for the news.  Affected files are
5236           doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
5237           silcd/command.c silcd/packet_receive.c silcd/packet_send.c
5238           silcd/protocol.c silcd/server.c silcd/server_backup.c
5239           silcd/serverconfig.[ch] silcd/silcd.c.
5240
5241         * Fixed some silclog documentation.  Affected file is
5242           lib/silcutil/silclog.h.
5243
5244 Sun Feb 10 18:11:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5245
5246         * The silc_cipher_register, silc_hash_register and
5247           silc_hmac_register now checks if the object to be registered
5248           is registered already.  Affected files are
5249           lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
5250
5251 Sun Feb 10 15:48:38 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5252
5253         * Merged new irssi from irssi.org's CVS, the version 0.7.99.
5254
5255 Sat Feb  9 14:54:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5256
5257         * Allow zero length channel messages inside the Channel Message
5258           Payload.  Affected file lib/silccore/silcchannel.c.
5259
5260         * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
5261           as header filenames.
5262
5263         * Removed lib/silcclient/README and created HTML file
5264           lib/silcclient/silcclient_using.html, which is now included
5265           as part of Toolkit documentation.
5266
5267 Thu Feb  7 10:12:25 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5268
5269         * Fixed CUMODE_CHANGE notify handling to change the mode of
5270           correct client.  Affected file lib/silcclient/client_notify.c.
5271
5272         * Make silc_rng_alloc fail if it cannot allocate the sha1
5273           hash algorithm.  Affected file lib/silccrypt/silcrng.c.
5274
5275 Sun Feb  3 17:20:52 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5276
5277         * Fixed the file transfer's key agreement payload to include
5278           zero port also if the hostname is NULL because it could not
5279           be bound.
5280
5281           Call file transfer monitor callback now also if error occurs
5282           during key agreement protocol.
5283
5284           Changed the silc_client_file_send interface to return the
5285           SilcClientFileError instead of session id.  The session ID
5286           is returned into pointer provided as argument.
5287
5288           Check that the file exists locally before sending the
5289           file transfer request at all.
5290
5291           Affected file lib/silcclient/client_ftp.c, silcapi.h.
5292
5293         * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
5294           error than can occur while key agreement protocol.  Affected
5295           file lib/silcclient/silcapi.h.
5296
5297         * Fixed the event_mode CMODE handler to not crash when mode
5298           is changed and +k mode is set in the channel.  Affected file
5299           irssi/src/silc/core/silc-channels.c.
5300
5301         * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
5302           SILC_LOG_WARNING to give out Warning and not Error.  Affected
5303           file lib/silcutil/silclog.c.
5304
5305         * Fixed the channel message payload decryption in the function
5306           silc_channel_message_payload_decrypt to not modify the original
5307           buffer before it is verified that the message decrypted
5308           correctly.  Otherwise, next time it is called with correct
5309           channel key it won't encrypt since the payload is corrupted.
5310           Affected file lib/silccore/silcchannel.c.
5311
5312 Sun Feb  3 11:46:12 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5313
5314         * Do not constantly resize the window.  A fix patch by cras.
5315           Affected file irssi/src/fe-text/screen.c.
5316
5317 Sat Feb  2 16:54:18 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5318
5319         * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
5320           Affected file lib/silcutil/silcnet.c.
5321
5322 Fri Feb  1 22:33:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5323
5324         * Fixed a bug in hash table internal routine for traversing
5325           the table with foreach callback.  The current entry may
5326           become invalid in the callback but it was referenced after
5327           the callback returned.
5328
5329           Do not allow auto rehashing of hash table during the
5330           silc_hash_table_foreach operation, for same reasons as it is
5331           not allowed for SilcHashTableList.  Affected files are
5332           lib/silcutil/silchashtable.[ch].
5333
5334 Fri Feb  1 14:55:00 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5335
5336         * Defined DLLAPI into silcincludes.h and silcwin32.h for
5337           Win32 DLL.  extern's in header files are now declared with
5338           DLLAPI.
5339
5340 Thu Jan 31 23:34:33 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5341
5342         * Fixed private message handling.  It used some old code that
5343           caused the client to crash.  Affecte file is
5344           lib/silcclient/client_prvmsg.c.
5345
5346 Thu Jan 31 19:06:22 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5347
5348         * Added function silc_client_add_channel,
5349           silc_client_replace_channel_id, and removed functions
5350           silc_client_new_channel_id and silc_idlist_get_channel_by_id
5351           from client library.
5352
5353         * Added cross reference of the joined channels to the
5354           SilcClientEntry, and changed the SilcChannelEntry's
5355           users list to SilcHashTable.  The affected files are
5356           lib/silcclient/idlist.[ch].
5357
5358         * Fixed a bug in hash table tarversing.  While the hash table
5359           is traversed with SilcHashTableList the table must not be
5360           rehashed.  It is now guaranteed that auto rehashable tables
5361           are not rehashed while tarversing the list.  Also defined that
5362           silc_hash_table_rehash must not be called while tarversing
5363           the table.  Added function silc_hash_table_list_reset that must
5364           be called after the tarversing is over.  The affected files are
5365           lib/silcutil/silchashtable.[ch].
5366
5367         * Changed all hash table traversing to call the new
5368           silc_hash_table_list_reset in server and in client library.
5369
5370         * Added function silc_client_on_channel to return the
5371           SilcChannelUser entry if the specified client entry is joined
5372           on the specified channel.  This is exported to application as
5373           well.  Affected files lib/silcclient/client_channel.c, silcapi.h.
5374
5375 Wed Jan 30 19:14:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5376
5377         * Fixed founder regaining problem with JOIN command on normal
5378           server.  The notify for mode change must be sent always and
5379           not only if !cmd->pending.  Affected file silcd/command.c.
5380
5381         * Fixed the WHOWAS command's reply sending to support the
5382           lists correctly.  Affected file silcd/command.c.
5383
5384 Wed Jan 30 11:11:47 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5385
5386         * When sending JOIN command to router for processing the
5387           sender's old command identifier was not saved back to the
5388           sender's command context, fixed now.  The affected file is
5389           silcd/command.c.
5390
5391         * Create the key in JOIN command of the router did not return
5392           the channel key, added check for this.  Affected file is
5393           silcd/command.c.
5394
5395         * Fixed a channel ID update bug in JOIN command reply.  Do
5396           not directly upgrade the ID but call the function
5397           silc_idlist_replace_channel_id if the ID was changed.
5398           Affected file silcd/command_reply.c.
5399
5400         * Fixed memory leaks from command calling if it would fail.
5401           Affected file silcd/command.c.
5402
5403 Tue Jan 29 19:49:31 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5404
5405         * Applied patches from cras:
5406
5407           Memory leak fixes around libaries, irssi window resize fix,
5408           new silclist.h and silcdlist.h, all extern inline changed to
5409           static inline.
5410
5411         * Removed dotconf from lib/dotconf, not needed anymore.
5412
5413         * Removed TRQ from lib/trq, not needed anymore.
5414
5415         * Do more frequent heartbeats (5 minutes instead of 10 minutes)
5416           with server connections.  Later this will be configurable
5417           in config file after new config file is done.  Affected file
5418           silcd/server.c.
5419
5420 Tue Jan 29 10:35:03 CET 2002  Pekka Riikonen <priikone@silcnet.org>
5421
5422         * Fixed a crash in server related to channel announcements.
5423           Affected file silcd/server.c.
5424
5425 Mon Jan 28 17:49:42 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5426
5427         * Fixed memory leaks in silc_server_create_new_channel*
5428           functions.  Affected file silcd/server.c.
5429
5430         * Fixed the CHANNEL_CHANGE notify to re-announce the channel
5431           which ID was changed.  This way the router will send the
5432           user list for the channel again, and server won't be in
5433           desync in some rare circumstances.  Affected file is
5434           silcd/packet_receive.c.
5435
5436 Sun Jan 27 21:04:19 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5437
5438         * Check for NULL socket pointer in the function
5439           silc_server_packet_send_to_channel_real.  Affected file
5440           silcd/packet_send.c.
5441
5442         * Fixed the BAN notify handling to correctly remove ban
5443           list.  Affected file silcd/packet_receive.c.
5444
5445 Sat Jan 26 23:01:03 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5446
5447         * Fixed some header addition to Toolkit distribution in
5448           lib/silcutil/Makefile.am and lib/trq/Makefile.am.
5449
5450         * Added lib/silcclient/client_ops_example.h as an template
5451           file for application programmers to quickly start using
5452           the SilcClientOperation functions in their application.
5453           Updated the lib/silcclient/README as well to tell about this
5454           nice file made available.
5455
5456 Sat Jan 26 10:45:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5457
5458         * Call silc_server_remove_from_channels when removing client
5459           entry when NO_SUCH_CLIENT_ID was received.  Affected file
5460           is silcd/command_reply.c.
5461
5462 Fri Jan 25 19:12:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5463
5464         * Added server & router operator statistics updating.  Affected
5465           file silcd/packet_receive.c and silcd/command.c.
5466
5467         * Fixed the SERVER_SIGNOFF notify handling on normal server
5468           not to save the history information for clients.  Same was
5469           fixed earlier in remove_clients_by_server function, but not
5470           here.  Affected file silcd/packet_receive.c.
5471
5472         * Raised the default connection-retry count from 4 to 7 in
5473           server.  Affected file silcd/server.h.
5474
5475         * Cancel any possible reconnect timeouts when we start the
5476           key exchange.  Affected file silcd/server.c.
5477
5478         * Do not reconnect on connection failure when SCONNECT was
5479           given.  Affected files silcd/server.[ch].
5480
5481 Tue Jan 22 18:19:36 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5482
5483         * Removed assert()'s from the lib/silcclient/client_keyagr.c.
5484
5485         * Fixed the NICK command to always give the unformatted
5486           nickname to the one giving the NICK command.  If unformatted
5487           nickname is cached already it will be formatted and the
5488           local entry will always get the unformatted nickname.
5489           Affected file lib/silcclient/idlist.c.
5490
5491         * Fixed some double frees from client library commands.
5492           Affected file is lib/silcclient/command.c.
5493
5494         * Fixed CUMODE command in server to assure that no one can
5495           change founder's mode than the founder itself, there was a
5496           little bug.  Affected file silcd/command.c.
5497
5498 Mon Jan 21 19:07:53 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5499
5500         * Removed the SilcClientCommandDestructor from the client
5501           libary, it is not needed anymore.  Affected files are
5502           lib/silcclient/silcapi.h, command[_reply].[ch],
5503           client_notify, idlist.c.
5504
5505         * Fixed GETKEY command to first resolve client, and then
5506           resolve the server only if the client was not found, instead
5507           of resolving both at the same time.  Affected file is
5508           lib/silcclient/command.c.
5509
5510         * Added silc_client_start_key_exchange_cb and lookup the
5511           remote hostname and IP address before starting the key
5512           exchange with server.  The affected file is
5513           lib/silcclient/client.c.
5514
5515         * The server's public key is now saved using the IP address
5516           of the server and not the servername for the filename.
5517           The hostname public key filename is checked as an fall back
5518           method if the IP address based filename is not found.
5519
5520           Fixed the GETKEY command to save the fetched server key
5521           in correct filename.
5522
5523           Print the remote server's hostname now when new key is
5524           received during connection process.  Affected file is
5525           irssi/src/silc/core/client_ops.c.
5526
5527         * Return always our own public key to the client if it asks
5528           for it with GETKEY command.  Affected file silcd/command.c.
5529
5530         * Removed the use_auto_addr variable from default config
5531           file since it was in wrong section.  Affected file is
5532           irssi/src/config.
5533
5534         * Fixed TOPIC_CHANGE notification to not route it when it
5535           was sent using silc_server_send_notify_to_channel function.
5536           Affected file silcd/command.c.
5537
5538         * Fixed silc_server_send_notify_kicked to send the kicker's
5539           Client ID also, it was missing.  Affected files are
5540           silcd/command.c, silcd/packet_send.[ch].
5541
5542 Thu Jan 17 18:59:11 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5543
5544         * Do not save client history information in SERVER_SIGNOFF.
5545           Fixes the bug in normal server that it does not detect
5546           the client becoming valid after the server becomes back
5547           online.  Affected file silcd/server_util.c.
5548
5549         * Added `sock_error' field  into the SilcSocketConnection
5550           context.  When error occurs during socket operation (read
5551           or write) the error is saved.  Added also new function
5552           silc_socket_get_error to return human readable socket error
5553           message.  Affected files are lib/silcutil/silcsockconn.[ch],
5554           lib/silcutil/unix/silcunixsockconn.c, and
5555           lib/silcutil/win32/silcwin32sockconn.c.
5556
5557         * The server now prints the socket error message in the
5558           signoff for client.  Affected file silcd/server.c.
5559
5560         * Fixed the `created' channel information sending from router
5561           to server in JOIN command.  Checks now whether the channel
5562           really was created or not and set it according that.
5563
5564           Fixed the JOIN command to use the client entry's current
5565           ID during the joining procedure instead of the one it sent
5566           in the command (it is checked though), since it can change
5567           between the packet processing and command processing, and
5568           would just case unnecessary pain in the client end.  Affected
5569           file silcd/command.c.
5570
5571         * Fixed a channel key payload sending to use correct channel
5572           ID when the server was forced to change the channel's ID by
5573           router.  Router sent the key payload with the old Channel ID.
5574           Affected file silcd/packet_receive.c.
5575
5576 Wed Jan 16 22:26:30 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5577
5578         * Call silc_server_save_channel_key only if the key payload
5579           was provided in the JOIN command's command reply.  Affected
5580           file silcd/command_reply.c.
5581
5582 Tue Jan 15 18:49:41 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5583
5584         * Fixed silc_mp_sizeinbase to return the value correctly with
5585           MPI.  Affected file lib/silcmath/mp_mpi.c.
5586
5587         * Fixed the stop_server signal to correctly stop the scheduler
5588           and gracefully stop the server when SIGTERM or SIGINT signals
5589           are received.  Affected file silcd/silcd.c.
5590
5591 Mon Jan  7 23:38:19 CET 2002  Johnny Mnemonic <johnny@themnemonic.org>
5592
5593         * Simple handling of TERM and HUP signals. Also added some log
5594           flushing call around.  Affected file is
5595           silcd/silcd.c.
5596
5597         * Fixed small bugs in silclog.c. Now buffering output will take
5598           effect after 10 seconds since startup: This will ensure that
5599           no important startup messages are lost. Also output redirection
5600           will preserve original format ([Date] [Type] message).
5601           Affected file is lib/silcutil/silclog.c.
5602
5603         * Added two options to the config file, in the logging section:
5604           quicklogs:<yes/no>: and flushdelay:<seconds>:.  Affected files
5605           lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
5606
5607 Sun Jan  6 12:49:40 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5608
5609         * Do not print the warning about log files not being initialized
5610           more than once to avoid excess logging.  Affected file is
5611           lib/silcutil/silclog.c.
5612
5613         * Fixed the SIM compilation in lib/silcsim/Makefile.am.  Fixed
5614           the SIM copying in make install in Makefile.am.pre.
5615
5616 Sun Jan  6 01:10:21 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5617
5618         * Rewritten silclog APIs. Globally interesting changes follows:
5619           silc_log_set_files() changed to silc_log_set_file().
5620           silc_log_set_callbacks() changed to silc_log_set_callback().
5621           ROBOdoc documented silclog header file.
5622           SilcLogCb now returns bool to wether inihibit the default
5623           handler or not (to keep the old behaviour return always TRUE).
5624           The new APIs should also fix the problem of the
5625           silcd_error.log file that was written in the current directory.
5626
5627           New features:
5628           Log files streams will remain opened after silc_log_set_file()
5629           call, means less CPU usage notably on high traffic servers.
5630           File streams are now full buffered, and flushed to the disk
5631           every 5 minutes, lesses HD activity and CPU usage.
5632           Messages can be redirected, allowing admins to configure
5633           one single logfile for all server messages.
5634           the silc_log_quick global variable to activate fast-logging.
5635           Affected files lib/silcutil/silclog.[ch]
5636
5637         * Changed some code to conform new silclog APIs. Affected
5638           files are doc/example_silcd.conf.in, silcd/server.c
5639           irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
5640           silcd/silcd.c.
5641
5642         * Fixed a memory leak that could occur in some situations.
5643           Affected file silcd/serverconfig.c.
5644
5645 Sat Jan  5 13:37:29 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5646
5647         * Added the silc_client_del_client to remove the client from
5648           all channels as well.  Affected file lib/silcclient/idlist.c.
5649
5650         * Fixed the client library to correctly remove the client
5651           from all channels when the client entry is being destroyed.
5652           Affected file lib/silcclient/client_notify.c, command.c.
5653
5654         * Added auto-nicking support to the client library.  If the
5655           applicatio now sets client->nickname it will be sent to the
5656           server after connecting by the library.  This way for example
5657           SILCNICK (or IRCNICK) environment variables will have effect
5658           and always change the nickname automatically to whatever
5659           it is wanted.  Affected file lib/silcclient/client.[ch].
5660
5661         * Renamed silc_server_command_bad_chars to the
5662           silc_server_name_bad_chars and moved it to the
5663           silcd/server_util.[ch].  Added also new function
5664           silc_server_name_modify_bad to return nickname that
5665           includes bad characters as new nickname without those
5666           bad characters.  This check and modify is now used in
5667           silc_server_new_client when the username is initially set
5668           as nickname, so it must be checked to be valid nickname.
5669           Affected file silcd/packet_receive.c.
5670
5671         * The nickname length is now taken from the packet for real
5672           and not trusted to strlen() since it clearly can return
5673           wrong length for nickname including bad characters.  This
5674           also applies to channel names.  Affected file silcd/command.c.
5675
5676         * Removed the lib/silcsilm/modules directory.  Modules are now
5677           compiled into the lib/silcsim.  Fixed the copying of the
5678           modules to follow symbolic links in Makefile.am.pre.
5679
5680 Wed Jan  2 18:56:21 EET 2002  Pekka Riikonen <priikone@silcnet.org>
5681
5682         * Fixed silc_string_regexify list creation.  Fixes bugs with
5683           BAN and INVITE commands in server.  The affected file is
5684           lib/silcutil/unix/silcunixutil.c.
5685
5686 Sun Dec 30 13:41:34 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5687
5688         * Removed the command destructor entirely from the server's
5689           command and command reply routines.  It is not needed, and
5690           its usage was buggy and caused crashes.  Affected files are
5691           silcd/command[_reply].[ch].
5692
5693 Fri Dec 28 12:43:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5694
5695         * Cancel protocol and NULL sock->protocol if timeout
5696           occurred during protocol.  Affected file silcd/server.c.
5697
5698         * Cancel protocol timeouts always before calling the final
5699           callback, to assure that after final callback is called
5700           no other state will be called for the protocol anymore.
5701           Affected file silcd/protocol.c.
5702
5703         * Print error log if incoming connection configuration could
5704           not be found.  Affected file silcd/server.c.
5705
5706         * Fixed JOIN command to correctly save the founder mode
5707           to the client on normal SILC server, when the channel
5708           was created by the router.  Affected file silcd/command.c.
5709
5710         * Fixed LIST command (hopefully) to send correct reply
5711           packets.  Affected file silcd/command.c.
5712
5713 Thu Dec 20 16:14:52 CET 2001  Pekka Riikonen <priikone@silcnet.org>
5714
5715         * The silc_packet_receive_process now returns FALSE if the
5716           read data was invalid packet, and TRUE if it was ok.
5717
5718           The server now checks that if unauthenticated connection
5719           sends data and its processing fails the server will close
5720           the connection since it could be a malicious flooder.
5721
5722           Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
5723
5724 Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5725
5726         * Make sure the warning about error opening a log file is
5727           printed only once and not everytime it fails (produces
5728           too much useless log).  Affected file lib/silcutil/silclog.c.
5729
5730 Wed Dec 19 18:21:51 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
5731
5732         * Made the silc_server_daemonise() function more readable.
5733           Affected file silcd/server.c.
5734
5735         * Pid file is now optional, the user may comment it out from
5736           the config file. Removed define SILC_SERVER_PID_FILE, we
5737           don't need a default any longer.  Affected file
5738           configure.in.pre, lib/Makefile.am.pre.
5739
5740         * Make some use of the pid file. The server now dies at startup
5741           if it detects a valid pid file on his path. The server would
5742           die anyway in this circumstance, because of the bind() failure.
5743           Affected file silcd/silcd.c.
5744
5745         * No longer compiling lib/dotconf.
5746
5747 Mon Dec 17 18:24:27 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5748
5749         * Fixed JOIN command parsing not to crash.  Affected file
5750           lib/silcclient/command.c.
5751
5752         * Fied the NICK_CHANGE notify to add the new client entry
5753           even it is resolved.  This removes an <[unknown]> nick
5754           thingy bug in the client.  Affected file is
5755           lib/silcclient/client_notify.c.
5756
5757         * Do not try to allocate 0 bytes (efence does not like it)
5758           in lib/silccore/silccomand.c when encoding payload.
5759
5760         * Do not take IRCNICK as nickname in Irssi SILC client since
5761           it is not possible to set nickname before hand connecting
5762           the server (TODO has an entry about adding auto-nicking
5763           support).
5764
5765         * Changed the silc_server_command_pending to check whether
5766           there already exists an pending entry with the specified
5767           command, command identifier and pending callback.  This is
5768           to fix IDENTIFY and WHOIS related crashes that may register
5769           multiple pending commands with same identifier.  Affected
5770           file silcd/command.c.
5771
5772         * Fixed the server to reconnect to the router even if it
5773           was already reconnecting and EOF was received.  This to
5774           fix a possibility that the server wouldn't ever try to
5775           auto-reconnect to the router.  Affected file silcd/server.c.
5776
5777 Sat Dec 15 20:31:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5778
5779         * Fixed the server's password authentication to use the
5780           length of the locally saved password, and not the one
5781           sent in the packet.  Affected file silcd/protocol.c.
5782
5783         * Fixed same password authentication problem in the
5784           Authentication Payload handling routines in
5785           lib/silccore/silcauth.c.
5786
5787         * Yet another password authentication problem fixed with
5788           channel password handling in silcd/command.c.
5789
5790 Mon Dec 10 19:57:40 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5791
5792         * If first character of string in silc_parse_userfqdn is '@'
5793           then do not parse it.  Affected file is
5794           lib/silcutil/silcutil.c.
5795
5796 Sun Dec  9 22:18:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5797
5798         * Fixed minor bug in IDENTIFY command reply sending, which
5799           caused various weird problems during JOIN when it was
5800           resolving names for users.  Affected file silcd/command.c.
5801
5802 Sun Dec  9 19:18:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5803
5804         * Fixed the IDENTIFY command reply sending to chech better valid
5805           clients.  It was possible to send incomplete list of replies.
5806           Affected file silcd/command.c.
5807
5808 Sat Dec  8 15:58:31 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5809
5810         * Added silc_client_command[s]_[un]register functions now to
5811           dynamically register the commands in client library.  Removed
5812           the static table of commands.  This allows the client library
5813           to call commands without causing the application to know about
5814           what commands library has called.
5815
5816           Removed the INFO command reply kludge to detect when the command
5817           was called by library.  Now library use its own command reply
5818           function for INFO command.
5819
5820           Added function silc_client_command_call to call a command.
5821           Application can use it to call command, not access the structure
5822           directly.
5823
5824           Now all commands that are sent by the client library (not
5825           explicitly sent by application) use own command reply functions.
5826
5827           Affected files around lib/silcclient/ and in
5828           irssi/src/silc/core/.
5829
5830         * Fixed the WHOIS command reply sending to chech better valid
5831           clients.  It was possible to send incomplete list of replies.
5832
5833           Fixed the WHOIS and IDENTIFY to send the request to router
5834           if normal server did not do it and did not find any results.
5835
5836           Affected file silcd/command.c.
5837
5838 Thu Dec  6 17:21:06 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5839
5840         * Moved the internal data from SilcClient context into its
5841           own file, not accesible to application.  Affected files
5842           lib/silcclient/client.h and lib/silcclient/client_internal.h,
5843           and other files in client library.
5844
5845 Thu Dec  6 10:37:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5846
5847         * Added doc/examples installation target in Makefile.am.pre.
5848           A patch by salo.
5849
5850 Tue Dec  4 17:43:19 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5851
5852         * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
5853           commands the found client entry will be removed from the
5854           cache, after notifying application about the error.  Affected
5855           file lib/silcclient/command_reply.c.
5856
5857         * Changed the /MSG to check for exact nickname user gave, and
5858           not let `nick' match `nick@host' if it is only one found.  Now,
5859           user must type the exact nickname (like nick@host2) even if
5860           there are no more than one same nicks found.  This is to avoid
5861           a possibility of sending nickname to wrong nickname since
5862           `nick' could match `nick@host'.  Affected file is
5863           irssi/src/core/silc-servers.c.
5864
5865 Mon Dec  3 18:49:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5866
5867         * Do not print "you are now server operator" or similar when
5868           giving /away command.  Affected files are
5869           irssi/src/silc/core/client_ops.c, silc-servers.h.
5870
5871         * Made the silc_server_command_pending_error_check to send
5872           the same command reply payload it received back to the
5873           original sender of the command.  This way all arguments
5874           that was received by the server will be received by the
5875           client too.  Affected file silcd/command.c.
5876
5877         * Added the silc_idcache_add to return the created cache entry
5878           to a pointer.  Affected file lib/silccore/silcidcache.[ch].
5879
5880         * Add global clients to expire if they are not on any channel.
5881           This is because normal server will never know if they signoff
5882           if they are not on any channel.  The cache expiry will take
5883           case of these entries.  This is done by normal servers only.
5884           The affected files are silcd/command_reply.c,
5885           silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
5886
5887         * If server receives invalid ID notification for WHOIS or
5888           IDENTIFY and the ID exists in the lists, it is removed.
5889           Affected file silcd/command_reply.c.
5890
5891         * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
5892           in client then client entry that it matches is searched and
5893           the nickname is printed on the screen for user.  Affected
5894           file irssi/src/silc/core/client_ops.c.
5895
5896 Mon Dec  3 11:56:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5897
5898         * Use cache entry expire time in the LIST command reply to
5899           purge old entries from the cache after the LIST command
5900           reply has been received.  This way we don't have non-existent
5901           entries in the cache for too long.  Affected file is
5902           silcd/command_reply.c.
5903
5904 Sun Dec  2 23:29:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5905
5906         * If we are normal server, and we've not resolved client info
5907           in WHOIS or IDENTIFY from router, and it is global client,
5908           we'll check whether it is on some channel.  If it is not
5909           then we cannot be sure about its validity and will resolve it
5910           from router.  Fixes a bug in WHOIS and IDENTIFY.  Affected
5911           file silcd/command.c.
5912
5913         * Search channel by name (if possible) rather than by ID
5914           in IDENTIFY command's command reply.  Affected file is
5915           silcd/command_reply.c.
5916
5917 Sun Dec  2 13:48:46 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5918
5919         * Distribute to the channel passphrase in CMODE_CHANGE notify.
5920           Updated specs and implemented it.  Affected file silcd/command.c,
5921           silcd/packet_send.c and silcd/packet_receive.c.
5922
5923         * Implemented the <founder auth> payload handling in the JOIN
5924           command.  If provided all conditions for channel joining
5925           except requirement to provide correct passphrase can be
5926           overrided by the channel founder.  Updated the protocol specs.
5927           Affected file silcd/command.c.
5928
5929           Added support for founder auth in JOIN command in client
5930           library.  Fixed the parsing of the JOIN command now to support
5931           all options as they should be.  The affected file is
5932           lib/silcclient/command.c.
5933
5934         * Optimized the WHOIS and IDENTIFY commands to send the request
5935           to router only if it includes nicknames or other names.  If
5936           they include only IDs then check the local cache first before
5937           routing.  Affected file is silcd/command.c.
5938
5939         * Added channels topic announcements.  Affected file is
5940           silcd/packet_receive.c and silcd/server.c.
5941
5942         * Fixed the silc_server_send_notify_topic_set to really destine
5943           the packet to channel.  Affected file silcd/packet_send.c.
5944
5945         * Fixed a crash in CHANNEL_CHANGE notify handling in the client
5946           library.  Affected file lib/silcclient/client_notify.c.
5947
5948         * Added UMODE announcements.  Affected file silcd/server.c.
5949
5950 Sat Dec  1 12:52:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
5951
5952         * Memory leak fixes in:
5953
5954           lib/silcutil/silcsockconn.c
5955           lib/silcske/silcske.c
5956           lib/silcske/groups.c
5957           lib/silccrypt/rsa.c
5958           lib/silccrypt/silcpkcs.c
5959           lib/silccore/silccommand.c
5960           lib/silccore/silcidcache.c
5961           silcd/idlist.c
5962           silcd/packet_send.c
5963           silcd/command.c
5964
5965         * ROBOdoc documented the lib/silcske/groups.h file and a
5966           bit changed the interface for better.
5967
5968 Thu Nov 29 22:12:50 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5969
5970         * Update the client entry context in the ID cache after
5971           nick change.  Affected file lib/silcclient/command.c.
5972           Fixes the CUMODE command when regaining founder privileges,
5973           and a little WHOIS problem.
5974
5975         * Fixed silc_net_gethostbyname to correctly call the
5976           inet_ntop.  Affected file lib/silcutil/silcnet.c.
5977
5978 Thu Nov 29 19:31:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5979
5980         * Added IPv6 support checking to the configure.in.pre, added
5981           also --enable-ipv6 option to override the check.  Affected
5982           file configure.in.pre.
5983
5984         * The silc_thread_create now calls the start function
5985           directly if threads support is not compiled in.  Removes
5986           ugly #ifdef's from generic code.  Affected files are
5987           lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
5988
5989         * Added silc_net_gethostby[name/addr]_async to asynchronously
5990           resolve.  Affected files are lib/silcutil/silcnet.[ch].
5991
5992         * Added support for rendering IPv6 based server, client and
5993           channel IDs.  Affected file lib/silcutil/silcutil.c.
5994
5995         * Added support for creating IPv6 based server IDs.  Affected
5996           file is silcd/serverid.c.
5997
5998 Wed Nov 28 23:46:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
5999
6000         * Added silc_net_gethostby[addr/name] into the
6001           lib/silcutil/silcnet.[ch].  Added IPv6 support to Unix network
6002           routines.  Added silc_net_is_ip[4/6].  Affected file is
6003           lib/silcutil/unix/silcunixnet.c.  All routines that take
6004           address as argument now supports both IPv4 and IPv6 addresses.
6005
6006 Mon Nov 26 18:09:48 EET 2001  Pekka Riikonen <priikone@silcnet.org>'
6007
6008         * Fixed LIST command reply sending in server.  Affected file
6009           silcd/command.c.
6010
6011         * Server now sends the kicker's client ID in the KICK notify
6012           to the kicked client.  Affected file silcd/command.c.
6013
6014         * The client library now parses the kickers client ID and
6015           UI displays it.  Affected files lib/silcclient/client_notify.c
6016           and irssi/src/silc/core/silc-channels.c, module-formats.c.
6017
6018         * Made all payload parsing function prototypes consistent.
6019           They all take now const unsigned char * and uint32 pair as
6020           the payload data instead of SilcBuffer.  Changes all around
6021           the source tree.  Other unsigned char* -> const unsigned char*
6022           changes around the tree as well.
6023
6024         * Optimized SFTP client and server packet sending not to
6025           allocate new buffer for each packet but to recycle the
6026           first allocated buffer.  Affected files are
6027           lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
6028
6029         * Optimized the SFTP client to use SilcList instead of
6030           SilcDList for requests, because it is faster.  Affected file
6031           is lib/silcsftp/sftp_client.c.
6032
6033         * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
6034           into lib/silccore/silcid.[ch].
6035
6036           Renamed silcpayload.[ch] into silcargument.[ch].
6037
6038 Mon Nov 26 15:01:53 CET 2001  Pekka Riikonen <priikone@silcnet.org>
6039
6040         * If client entry is deleted with active key agreement
6041           session, abort the session.
6042
6043           The silc_client_abort_key_agreement now calls the completion
6044           callback with new SILC_KEY_AGREEMENT_ABORTED status.
6045
6046           Affected file lib/silcclient/silcapi.h, client_keyagr.c and
6047           idlist.c.
6048
6049 Sun Nov 25 18:01:45 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6050
6051         * Don't use __restrict in older GCC's.  Affected file is
6052           lib/silcmath/mpi/mpi-priv.h.  A patch by salo.
6053
6054         * silc_net_localhost now attempts to reverse lookup the
6055           IP/hostname.  Affected file lib/silcutil/silcnet.c.
6056
6057         * Defined <founder auth> argument to the SILC_COMMAND_JOIN
6058           command.  It can be used to gain founder privileges at
6059           the same time when joining the channel.
6060
6061           Defined that the SILC_NOTIFY_TYPE_KICKED send the
6062           kicker's client ID as well.  Updated protocol specs.
6063
6064           Defined that the server must send SILC_COMMAND_IDENTIFY
6065           command reply with error status to client who sent
6066           private message with invalid client ID.
6067
6068           Updated the protocol specification.
6069
6070         * Added silc_server_send_command_reply to send any
6071           command reply.  Affected file silcd/packet_send.[ch].
6072
6073         * Added silc_id_payload_encode_data to encode ID payload
6074           from raw ID data.  Affected file lib/silccore/silcpayload.[ch].
6075
6076         * The server now send IDENTIFY command reply with error
6077           status if client ID in private message is invalid.  Affected
6078           file silcd/packet_receive.c.
6079
6080         * Save the server key file with server's IP address in
6081           the filename instead of hostname.  The affected file is
6082           irssi/src/silc/core/client_ops.c.
6083
6084 Sat Nov 24 20:08:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6085
6086         * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
6087           A patch by Sunfall.
6088
6089         * Added libtool support for compiling shared objects in
6090           lib/silcsim.  Affected file configure.in.pre and
6091           lib/silcsim/Makefile.am.  Original patch by cras.
6092
6093 Fri Nov 23 23:30:59 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6094
6095         * Pid file configuration, and server's config file fixes
6096           patch by toma.  Updated CREDITS file.
6097
6098 Sun Nov 18 01:34:41 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6099
6100         * Fixed silc_client_channel_message to not try to decrypt
6101           the message twice if it resolved the destination client
6102           information.  This could cause of dropping one channel
6103           message.  Affected file lib/silcclient/client_channel.c.
6104
6105 Wed Nov 14 23:44:56 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6106
6107         * Added silc_client_run_one into lib/silcclient/silcapi.h and
6108           lib/silcclient/client.c. This function is used when the SILC
6109           Client is run under some other scheduler, or event loop or
6110           main loop.  On GUI applications, for example this may be
6111           desired to used to run the client under the GUI application's
6112           main loop.  Typically the GUI application would register an
6113           idle task that calls this function multiple times in a second
6114           to quickly process the SILC specific data.
6115
6116 Wed Nov 14 19:16:52 CET 2001  Johnny Mnemonic <johnny@themnemonic.org>
6117
6118         * Fixed silc_server_drop() for dropping the supplementary
6119           groups as well, this could cause a security hole on some
6120           systems.
6121
6122 Wed Nov 14 16:22:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6123
6124         * __pid_t -> pid_t in lib/silccrypt/silcrng.c.  A patch by
6125           johnny.
6126
6127         * Write PID file after dropping privileges.  Added -F option
6128           to run server on foreground.  A patch by debolaz.
6129           Affected files silcd/server.c, silcd/silcd.c.
6130
6131         * Fixed MOTD to return the MOTD file server name.  Affected
6132           file silcd/command.c.
6133
6134         * Added INFO command reply handling to the Irssi SILC Client.
6135           Affected file irssi/src/silc/core/client_ops.c.
6136
6137 Wed Nov 14 00:18:08 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6138
6139         * Fixed the silc_idcache_list_* routines to really support
6140           the dynamic list.  Fixes a crash.  Affected file is
6141           lib/silccore/silcidcache.c.
6142
6143         * Fixed the LIST command reply to really call LIST command's
6144           pending callbacks.  Affected file silcd/command_reply.c.
6145
6146 Tue Nov 13 00:49:17 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6147
6148         * Update conn->local_entry->nickname after giving NICK
6149           command.  Affected file lib/silcclient/command.c.
6150
6151 Sun Nov 11 23:43:02 PST 2001  Brian Costello <bc@wpfr.org>
6152
6153         * Added the [pid] option to the silcd configuration file
6154
6155           Affected files: serverconfig.[ch] and silcd.c
6156
6157 Sun Nov 11 23:56:39 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6158
6159         * Save fingerprint in WHOIS command reply in server.
6160           Affected file silcd/command_reply.c.
6161
6162         * Fixed NICK commands pending callback registration.
6163           Affected file lib/silcclient/command.c.
6164
6165 Sun Nov 11 10:49:10 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6166
6167         * Use ++server->cmd_ident when sending commands in server,
6168           instead of random number.  Affected file silcd/command.c.
6169
6170         * Fixed GETKEY command reply to call actually GETKEY pending
6171           command callbacks.  Affected file silcd/command_reply.c.
6172
6173         * A bit stricter check for nicknames.  Check for same nickname
6174           in NICK command also.  Affected file silcd/command.c.
6175
6176         * Do not call INFO command everytime client ID changes, only
6177           during first connecting.  Affected file lib/silcclient/client.c.
6178
6179         * Set the new nickname only after successful command reply for
6180           NICK command is returned by server.  Affected file
6181           lib/silcclient/command.c.
6182
6183         * Remove nicknames from nicklist during server_signoff notify.
6184           Should fix /NAMES bit more.  The affected file is
6185           irssi/src/silc/core/silc-channels.c.
6186
6187         * Added `fingerprint' field to the SilcIDListData in the
6188           silcd/idlist.h to hold the fingerprint of the client's
6189           public key.
6190
6191           Send the fingerprint of the client's public key in WHOIS
6192           command reply.
6193
6194           Affected files silcd/command.c, and silcd/idlist.[ch].
6195
6196         * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
6197           create fingerprint from given data.
6198
6199         * Show the fingerprint of the client's public key in WHOIS.
6200           Affected files irssi/src/module-formats.[ch] and
6201           irssi/src/silc/core/client_ops.c.
6202
6203         * Format the multiple same nicknames also during JOIN and
6204           NICK_CHANGE notifys.  Affected file is
6205           lib/silcclient/client_notify.c.
6206
6207         * Do not print error on screen for invalid private message
6208           payload since it can come if someone is sending private
6209           messages with wrong key.  Affected file
6210           lib/silccore/silcprivate.c.
6211
6212         * Fixed multiple concurrent /PING crash.  Affected file
6213           lib/silcclient/command.c.
6214
6215         * Changed the wrong ID encoding.  All IP addresses must be
6216           in MSB first order in encoded format.  They were encoded
6217           wrong and was in LSB format.  Affected files are
6218           silcd/serverid.c, lib/silcutil/silcutil.c.
6219
6220         * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
6221
6222         * Call the `connect' client operation through the scheduler
6223           in case of error.  Affected file lib/silcclient/client.c.
6224
6225         * Call the `failure' client operation even if the error
6226           occurred locally during a protocol.  Affected file is
6227           lib/silcclient/protocol.c.
6228
6229         * Added support of sending LIST command to router from normal
6230           server.  This way normal server can get list of all channels
6231           in the network too.  Fixed the channel list sending in the
6232           server too.  Affected files are silcd/command.c, and
6233           silcd/command_reply.[ch].
6234
6235         * Added silc_server_update_channels_by_server and
6236           silc_server_remove_channels_by_server.  They are used during
6237           disconnection of primary router and in backup router protocol.
6238           Affected file silcd/server_util.[ch], silcd/server.c and
6239           silcd/server_backup.c.
6240
6241         * Fixed channel adding to global list in IDENTIFY command
6242           reply in server.  Affected file silcd/command_reply.c.
6243
6244 Sat Nov 10 21:39:22 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6245
6246         * If the incoming packet type is REKEY or REKEY_DONE process
6247           that packet always synchronously.  Fixes yet another MAC
6248           failed error on slow (dialup) connections.  Affected file
6249           lib/silcclient/client.c and silcd/server.c.
6250
6251 Thu Nov  8 22:21:09 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6252
6253         * Call check_version SKE callback for initiator too.  Affected
6254           file lib/silcske/silcske.c.
6255
6256         * Implemented fix for security hole found in the SKE that was
6257           fixed in the specification few days back; the initiator's
6258           public key is now added to the HASH value computation.
6259           Added backwards support for the old way of doing it too, for
6260           old clients and old servers.  Affected file is
6261           lib/silcske/silcske.c.
6262
6263         * Enabled mutual authentication by default in SKE.  If initiator
6264           is not providing mutual authentication the responder will
6265           force it.  This will provide the proof of posession of the
6266           private key for responder.  The affected files are
6267           lib/silcclient/protocol.c and silcd/protocol.c.
6268
6269         * Do not cache anymore the server's public key during SKE.
6270           We do mutual authentication so the proof of posession of
6271           private key is done, and if the server is authenticated in
6272           conn auth protocol with public key we must have the public
6273           key already.  Affected file silcd/protocol.c.
6274
6275         * Added new global debug variable: silc_debug_hexdump.  If
6276           it is set to TRUE SILC_LOG_HEXDUMP will be printed.  Affected
6277           file lib/silcutil/silclog.[ch].
6278
6279         * Fixed compilation warning due to char * -> const char *.
6280           Affected files lib/silcutil/silcnet.h, and
6281           lib/silccore/silcauth.[ch].
6282
6283 Wed Nov  7 20:43:03 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6284
6285         * Fixed CMODE command when new channel key was created.  If
6286           the creation failed the old key was removed.  Next time giving
6287           same command would crash the server since the old key was
6288           freed already.  Affected file silcd/command.c.
6289
6290         * Fixed the silc_server_announce_get_channels to not crash
6291           on reconnect.  Affected file silcd/server.c.
6292
6293 Wed Nov  7 17:15:07 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6294
6295         * Added silc_log_set_debug_string function to set a regex
6296           string to match for debug output.  Only the function names,
6297           or filenames matching the given debug string is actually
6298           printed.  This way it is possible to filter out those debug
6299           strings that user is not interested in.
6300
6301           Fixed a bug in silc_string_regexify.
6302
6303           Affected files lib/silcutil/silclog.[ch], and
6304           lib/silcutil/unix/silcunixutil.c.
6305
6306         * Changed the -d options in both server and Irssi SILC client
6307           to take the debug string as argument.  Affected files
6308           silcd/silcd.c and irssi/src/silc/core/silc-core.c.
6309
6310 Tue Nov  6 21:31:54 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6311
6312         * Added silc_hash_babbleprint to create a Bubble Babble
6313           Encoded fingerprint.  The encoding is developed by Antti
6314           Huima (draft-huima-babble-01.txt), and it creates human
6315           readable strings out of binary data.  Affected file
6316           lib/silccrypt/silchash.[ch].
6317
6318         * Print the babble print now in addition of fingerprint as well
6319           in Irssi SILC client.  Affected files are
6320           irssi/src/fe-common/silc/module-formats.[ch],
6321           irssi/src/fe-common/silc/core/client_ops.c.
6322
6323 Sun Nov  4 23:37:28 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6324
6325         * Fixed a security problem found in SKE.  The initiator's
6326           public key too is now added to the HASH hash value creation
6327           which is signed by the responder to create the SIGN value.
6328           This will prevent anyone in the middle to lie to the responder
6329           about the initiator's public key.  If this is done now, the
6330           man in the middle will get caught.  Updated the protocol
6331           specification.
6332
6333 Sun Nov  4 11:43:53 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6334
6335         * Better installation directory handling.  Configure module
6336           paths and other paths automatically to example_silc* files
6337           in doc/.  A patch by toma.
6338
6339         * Fixed compiler warning from MPI library, and from SILC RNG.
6340           A patch by johnny.
6341
6342         * Added SILC_SERVER_PID_FILE to define the pid file for server.
6343           It can be configured with ./configure.  A patch by toma.
6344
6345 Sat Nov  3 23:48:23 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6346
6347         * Find correct make to use in prepare-clean.  A patch by
6348           toma.  Affected file prepare-clean.
6349
6350 Sat Nov  3 22:04:00 PST 2001  Brian Costello <bc@mksecure.com>
6351
6352         * Added irssi variables use_auto_addr, auto_bind_ip,
6353           auto_bind_port and auto_public_ip.
6354
6355         * Changed the interface for silc_client_send_key_agreement
6356           in lib/silcclient/silcapi.h
6357
6358         Affected files:
6359
6360          irssi/src/silc/core/silc-core.c
6361          irssi/config
6362          lib/silcclient/silcapi.h
6363          irssi/src/silc/core/silc-channels.c
6364          lib/silcclient/client_keyagr.c
6365          irssi/docs/help/key
6366
6367 Sat Nov  3 17:48:55 EET 2001  Pekka Riikonen <priikone@silcnet.org>
6368
6369         * Added silc_pkcs_public_key_compare to compare two
6370           public keys.  Affected file lib/silccrypt/silcpkcs.[ch].
6371
6372         * Check that the client who set the founder mode on the
6373           channel is the same client that is giving the founder
6374           mode to itself.  It is done by comparing the saved public
6375           key (it is saved even in the authentication is passphrase).
6376           Affected file silcd/command.c.
6377
6378 Fri Nov  2 18:52:08 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6379
6380         * Do not process packet for disconnected socket connection.
6381           Affected file lib/silccore/silcpacket.c.
6382
6383         * Process the DISCONNECT packet through scheduler in the
6384           client library.  Affected file lib/silcclient/client.c.
6385
6386         * Fixed the silc_client_packet_parse to not to increase
6387           the packet sequence number if the conn->sock and the
6388           current socket connection is not same.  This can happen
6389           for example during key agreement when the conn includes
6390           multiple socket connections (listeners).  Affected file
6391           lib/silcclient/client.c.
6392
6393         * The sender of the file transfer request now provides also
6394           the pointer (listener) for the key exchange protocol.  If
6395           the listener cannot be created then it sends empty key
6396           agreement and lets the receiver provide the listener.
6397
6398           Added `local_ip' and `local_port' arguments to the
6399           silc_client_file_send.  If they are provided they are used,
6400           if not then it will attempt to find local IP address, if
6401           not found or bind fails then the remote client will provide
6402           the listener.
6403
6404           Affected files are lib/silcclient/client_ftp.c and
6405           lib/silcclient/silcapi.h.
6406
6407         * Extended the FILE SEND command to support defining the
6408           local IP and port for key exchange listener.  They are
6409           optional.  Affected file irssi/src/silc/core/silc-servers.c.
6410
6411 Thu Nov  1 22:10:07 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6412
6413         * Defined to WHOIS command reply the sending of fingerprint
6414           of the client's public key (if the proof of posession of the
6415           corresponding private key is verified by the server).
6416           Updated to the protocol specification.
6417
6418         * Added support of receiving the client's public key's
6419           fingerprint in command reply in client library.  Affected
6420           file is lib/silcclient/command_reply.c, and
6421           lib/silcclient/idlist.[ch].
6422
6423 Thu Nov  1 18:06:12 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6424
6425         * Do not send over 128 chars long nickname to the server
6426           in NICK command.  Affected file lib/silcclient/command.c.
6427
6428         * Do not send over 256 chars long channel names to the server
6429           in JOIN command.  Affected file lib/silcclient/command.c.
6430
6431 Tue Oct 30 22:48:59 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6432
6433         * Assure that silc_server_close_connection cannot be called
6434           twice for same socket context.  Affected file is
6435           silcd/server.c.
6436
6437 Tue Oct 30 16:58:14 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6438
6439         * Send error message to application if opening file for
6440           writing during file transfer fails.  Affected file is
6441           lib/silcclient/client_ftp.c.
6442
6443           Remove all file transfer sessions for a client that we're
6444           removing from ID cache.
6445
6446           Affected file is lib/silcclient/client_ftp.c.
6447
6448         * Fixed silc_net_addr2bin to return correct address.  Affected
6449           file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
6450
6451         * Fixed file transfer session removing on signoff notify.
6452           Affected file irssi/src/silc/core/silc-servers.c.
6453
6454         * Added the SilcClientFileError to be returned in the monitor
6455           callback.  Added NO_SUCH_FILE and PERMISSION_DENIED errors.
6456           Affected file lib/silcclient/silcapi.h.
6457
6458 Mon Oct 29 17:43:04 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6459
6460         * Fixed a crash in silc_client_ftp_free_sessions and
6461           silc_client_ftp_session_free_client.  Affected file
6462           lib/silcclient/client_ftp.c.
6463
6464         * Added `disabled' field in the SilcChannelEntry in the server
6465           to indicate if the server entry is disabled.  Affected file
6466           silcd/idlist.h, silcd/command[_reply].c.
6467
6468         * SILC server adds now /var/run/silcd.pid everytime it is
6469           started.  Affected file silcd/silcd.c.
6470
6471         * Added silc_server_packet_send_clients to send a packet to
6472           the provided table of client entries.  Affected file
6473           silcd/packet_send.[ch].
6474
6475         * Fixed a crash in client resolving in client_prvmsg.c in
6476           client library.  Affected file lib/silcclient/client_prvmsg.c.
6477
6478         * Do not actually remove the client directly from ID cache
6479           during SERVER_SIGNOFF, but invalidate it.  This way we
6480           preserve the WHOWAS info for the client.  Affected file
6481           silcd/server_util.c.
6482
6483         * Fixed SERVER_SIGNOFF notify handling in the server.  The
6484           server is now able to process incoming SERVER_SIGNOFF notify
6485           for a server that it doesn't even know about.  It will remove
6486           the clients provided in the notify.  Affected file
6487           silcd/packet_receive.c.
6488
6489         * Check for partial packet in data queue after every packet that
6490           was found from the queue.  Return and wait for more data if
6491           there is partial data in queue.  Affected file is
6492           lib/silccore/silcpacket.c.
6493
6494 Sun Oct 28 18:46:27 EST 2001  Pekka Riikonen <priikone@silcnet.org>
6495
6496         * Added SilcClietFileError enum to indicate error in
6497           file transfer.  Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
6498           and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
6499           Affected files lib/silcclient/silcapi.h and
6500           lib/silcclient/client_ftp.c.
6501
6502         * Check that newsize in silc_buffer_realloc is larger than
6503           the old buffer's size.  Affected file lib/silcutil/silcbufutil.h.
6504
6505         * Added better monitor of file transfers.  It now monitors
6506           key agreement protocol during the file transfer too.  Added
6507           error reporting too.  Affected files
6508           irssi/src/silc/core/silc-servers.c,
6509           irssi/src/fe-common/silc/module-formats.[ch].
6510
6511         * Wrote a help file for FILE command.
6512
6513         * Added silc_rng_global_get_byte_fast to get not-so-secure
6514           random data as fast as possible.  Random data is read from
6515           /dev/urandom if available and from the SILC RNG if not
6516           available.  It is used in padding generation.  Affected file
6517           lib/silccrypt/silcrng.[ch].
6518
6519         * All packets in client library are now processed synchronously.
6520           Optimized packet processing a lot.  Affected file
6521           lib/silcclient/client.c.
6522
6523         * All server connection packets are processing synchronously
6524           now in server, to optimize packet processing.  Affected file
6525           silcd/server.c.
6526
6527         * Include files are installed now only in Toolkit distribution
6528           if make install is given.  Affected files: all Makefile.am's.
6529
6530 Thu Oct 25 22:44:06 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6531
6532         * Assure that silc_client_notify_by_server_resolve does not
6533           resolve the client information multiple times.  If it cannot
6534           be found by the first it cannot be found at all.  Affected
6535           file lib/silcclient/client_notify.c.
6536
6537         * Fixed WHOWAS command reply calling.  Affected file
6538           lib/silcclient/command_reply.c.
6539
6540         * Removed all references to silc_idlist_get_client from the
6541           Irssi SILC client since that call is internal call used by
6542           the library.  The Irssi SILC client will use now client
6543           retrieval functions found in silcapi.h.
6544
6545         * Fixed a bug in resolving nickname info before sending
6546           private message.  It used freed memory.  Affected file
6547           irssi/src/silc/core/silc-servers.c.
6548
6549 Thu Oct 25 19:04:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6550
6551         * Assure my_channels statistics cannot go negative in server.
6552           Affected files silcd/server.c, silcd/server_util.c.
6553
6554 Wed Oct 24 19:53:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6555
6556         * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
6557
6558 Tue Oct 23 13:51:19 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6559
6560         * Win32 Toolkit changes.  Affected files
6561           win32/silc.dsw, win32/libsilc/libsilc.def,
6562           win32/libsilcclient/libsilc.def,
6563           lib/silcutil/silcutil.c, and
6564           lib/sftp/sftp_fs_memory.c.
6565
6566 Mon Oct 22 16:35:05 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6567
6568         * Added silc_net_localip to return local host's IP address.
6569           Affected file lib/silcutil/silcnet.[ch].
6570
6571         * If key exchange or rekey protocol is active for a connection
6572           parse all packets syncronously since there might be packets
6573           in packet queue that we are not able to process without first
6574           processing packets before them.  Affected file silcd/server,
6575           lib/silcclient/client.c.
6576
6577         * SilcPacketParserCallback now returns TRUE or FALSE to indicate
6578           whether library should continue processing the packet.
6579           Affected file lib/silccore/silcpacket.h.
6580
6581         * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
6582           SilcSFTPMonitorData to SFTP server to monitor various
6583           SFTP client requests.  Affected file lib/silcsftp/silcsftp.h,
6584           lib/silcsftp/sftp_server.c.
6585
6586         * Added silc_file_size to return file size.  Affected file
6587           lib/silcutil/silcutil.[ch].
6588
6589         * Implemented the file transfer support for the client library.
6590           Added preliminary support for simple client to client one-file
6591           transmission.  Affected file lib/silcclient/client_ftp.c,
6592           lib/silccilent/client.[ch].
6593
6594         * Added new local command FILE to the Irssi SILC Client.
6595           It is used to perform the file transfer.  It has subcommands
6596           SEND, RECEIVE, SHOW and CLOSE.  Affected files
6597           irssi/src/silc/core/client_ops.c,
6598           irssi/src/silc/core/silc-server.[ch].
6599
6600 Mon Oct 22 12:50:08 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6601
6602         * Relay the SILC_PACKET_FTP in the server.  Affected files
6603           silcd/server.c and silcd/packet_receive.c.
6604
6605 Sun Oct 21 20:21:02 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6606
6607         * Renamed silc_file_read and silc_file_write to functions
6608           silc_file_readfile and silc_file_writefile.  Added function
6609           silc_file_open and silc_file_close.  Affected files
6610           lib/silcutil/silcutil.[ch].
6611
6612 Thu Oct 18 20:58:13 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6613
6614         * Resolve the client info when received private message or
6615           channel message for a client which nickname we don't know.
6616           Affected files lib/silcclient/client_prvmsg.c and
6617           lib/silcclient/client_channel.c.
6618
6619         * Do not crash in /KEY if client is not connected.  Affected
6620           file irssi/src/silc/core/silc-channels.c.
6621
6622         * Added SilcClientStatus field to the SilcClientEntry in the
6623           lib/silcclient/idlist.h.
6624
6625           Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
6626           is incomplete and is being resolved, it won't be resolved
6627           twice.
6628
6629           Make sure also that USERS command reply does not resolve
6630           twice information.  Affected file is
6631           lib/silcclient/command_reply.c.
6632
6633           Make sure that silc_client_get_clients_by_list does not
6634           resolve twice same information.
6635
6636         * Check for valid client->id in the silc_server_free_client_data.
6637           Affected file silcd/server.c.
6638
6639         * Fixed /GETKEY nick@server not to crash if the server entry
6640           is not found.  Affected file lib/silcclient/command.c.
6641
6642         * Fixed the silc_server_check_cmode_rights to check the
6643           requested modes correctly.  Affected file silcd/command.c.
6644
6645 Thu Oct 18 12:10:22 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
6646
6647         * Better checks for non-printable chars in nick added.
6648           Affected file silcd/command.c.
6649
6650 Thu Oct 18 09:18:58 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6651
6652         * Call the silc_server_udpate_servers_by_server in the
6653           primary router that comes back online in the backup resuming
6654           protocol.  Otherwise it routes packets wrong.  Affected file
6655           silcd/server_util.[ch], silcd/server_backup.c.
6656
6657 Wed Oct 17 16:51:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6658
6659         * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
6660           lib/silcutil/silcbuffmt.[ch].
6661
6662         * Redefined the SILC packet header to include the padding
6663           length.  Affected file lib/silccore/silcpacket.[ch].
6664
6665         * Added SILC_PACKET_PADLEN_MAX macro to return the padding
6666           length for maximum padding up to 128 bytes).  Affected
6667           file lib/silccore/silcpacket.h.
6668
6669         * Removed all backwards support for old 0.5.x MAC thingies.
6670           The SILC packet header change makes it impossible to be
6671           backwards compatible.
6672
6673         * Send the ENDING packet with timeout in the backup resuming
6674           protocol.  This is to assure that all routers has connected
6675           to the primary router.  Affected file silcd/server_backup.c.
6676
6677         * Changed the RNG to take the first IV from random data.  It
6678           used to take it from zero actually.  Changed the RNG also
6679           to use /dev/urandom during session.  /dev/random is used
6680           in initialization.  Affected file lib/silccrypt/silcrng.[ch].
6681
6682 Tue Oct 16 20:45:49 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6683
6684         * Changed the SILC packet header to have the first two bytes
6685           (the packet length) encrypted.  Affected files aroung the
6686           code tree, lib/silccore/silcpacket.[ch].  Removed the
6687           SilcPacketCheckDecrypt callback.  It is not needed anymore
6688           since the silc_packet_receive_process will determine now
6689           whether the packet is normal or special.
6690
6691         * Implemented the unidirectional MAC keys.  Affected files
6692           lib/silcske/silcske.c, silcd/protocol.c and
6693           lib/silcclient/protocol.c.
6694
6695         * Implemented the packet sequence number to the MAC computation.
6696           Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
6697           silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
6698           lib/silcclient/protocol.c.
6699
6700 Mon Oct 15 17:42:55 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6701
6702         * Allow backup router to announce servers.  All servers
6703           announced by backup router are added to the global list
6704           automatically.  Update hte server's socket to our primary
6705           router also when backup router announces a server.
6706           Affected file silcd/packet_receive.c.
6707
6708         * Do not update the client->router in the function
6709           silc_server_udpate_clients_by_server if the client is on
6710           global list.  We might fail to find any specific server
6711           for locally connected clients and local cell clients.  They
6712           should still use the `from' and not `to' as client->router.
6713           This fixes backup router resuming protocol.  Affected file
6714           silcd/server_util.c.
6715
6716         * Decrease channel statistics count only if the channel
6717           deletion worked.  Affected files are silcd/server.c and
6718           silcd/server_util.c.
6719
6720         * Added silc_server_update_servers_by_server to update origin
6721           of all server entries.  Used during backup router protocol.
6722           Affected files silcd/server_util.[ch], silcd/server.c. and
6723           silcd/backup_router.c.
6724
6725         * ROBODoc documented the lib/silccrypt/silchmac.h.  Added new
6726           function silc_hmac_init, silc_hmac_update, silc_hmac_final,
6727           silc_hmac_get_hash and silc_hmac_get_name.  Affected file
6728           lib/silccrypt/silchmac.c.
6729
6730 Sun Oct 14 18:28:22 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6731
6732         * Assure that router cannot reroute the same channel message
6733           to the sender.  Affected file silcd/packet_receive.c.
6734
6735 Sat Oct 13 12:46:18 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6736
6737         * Made better checks that the channel message is not sent
6738           to the router it came from.  Affected file is
6739           silcd/packet_send.c.  Fixed memory leak too.
6740
6741         * Announce informations for incoming router connection, but
6742           only after checking if it is replaced by backup router.
6743           Affected file silcd/packet_receive.c.
6744
6745 Fri Oct 12 18:37:24 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6746
6747         * Fixed the backup resuming protocol to work in multiple
6748           router environment.  Affected file silcd/server_backup.c.
6749
6750         * Route packet only to one router in the function
6751           silc_server_packet_send_to_channel.  Affected file is
6752           silcd/packet_send.c.
6753
6754         * Fixed silc_server_send_notify_dest to set the broadcast
6755           flag.  Fixed the silc_server_send_notify_topic to actually
6756           send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
6757           Affected file silcd/packet_send.c.
6758
6759         * Changed the SFTP Filesystem interface.  Changed the
6760           SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
6761           the filesystem operation function.  The SilcSFTPFilesystem
6762           is now a context that is allocated by all filesystem allocation
6763           functions and it already includes the operations structure
6764           and filesystem specific context.  It is given as argument
6765           now to the silc_sftp_server_start.  This made the interface
6766           a bit cleaner.  Affected file lib/silcsftp/silcsftp[_fs].h,
6767           lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
6768
6769 Thu Oct 11 22:19:26 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6770
6771         * Changed the backup router adding and getting interfaces
6772           in the server.  The router that will be replaced by the
6773           specified backup router is now sent as argument.  Affected
6774           files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
6775           silcd/server.c.
6776
6777         * Added silc_net_addr2bin_ne to return the binary form of
6778           the IP address in network byte order.  Affected files
6779           lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
6780
6781 Thu Oct 11 12:14:19 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6782
6783         * Check for existing server ID in silc_server_new_server
6784           and in silc_server_connect_to_router_final and remove the
6785           old entry if it exists.  Affected file silcd/packet_receive.c,
6786           silcd/server.c.
6787
6788         * Send the channel message always to only one router, either
6789           in upstream or downstream.  Affected file is
6790           silcd/packet_send.c.
6791
6792 Tue Oct  9 17:45:43 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6793
6794         * Wrote the definition of the backup resuming protocol to the
6795           protocol specification.
6796
6797         * Removed one redundant channel key generation from normal
6798           server during joining procedure.  Removed one redundant
6799           channel key sending from server to router during joining
6800           procedure.  Affected file silcd/command.c.
6801
6802         * Made minor bugfixes to the backup router resuming protocol.
6803           Affected file silcd/server_backup.c, server.c.
6804
6805 Mon Oct  8 16:47:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6806
6807         * Added --disable-asm configuration option.  Affected files
6808           configure.in.pre, lib/silcmath/mpi/configure.in.  A patch
6809           by salo.
6810
6811         * Implemented the backup resuming protocol that is used to
6812           resume the primary router position in the cell after the
6813           primary router comes back online.  Affected files
6814           silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
6815           and silcd/server_util.[ch].
6816
6817 Sun Oct  7 12:29:25 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6818
6819         * Sleep two (2) seconds after sending QUIT command to server.
6820           Affected file lib/silcclient/command.c.
6821
6822         * Assure that if outgoing data buffer is pending do not force
6823           send any data.  Affected file silcd/packet_send.c.
6824
6825         * Assure that if outgoing data buffer is pending do not force
6826           send any data.  Affected file lib/silcclient/client.c.
6827
6828         * Implemented the backup router support when the primary router
6829           goes down.  The servers and routers can now use the backup
6830           router as new primary router without loosing connectivity.
6831
6832 Sat Oct  6 21:18:54 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6833
6834         * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
6835           in the server to indicate disabled entry.  All data read
6836           from the connection will be ignored and no data is sent
6837           for entry that is disabled.  Affected files are
6838           silcd/idlist.h, silcd/server.c.
6839
6840 Fri Oct  5 00:03:29 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6841
6842         * Created SFTP client and server test programs in the
6843           lib/silcsftp/tests directory.
6844
6845 Wed Oct  3 23:31:42 EDT 2001  Pekka Riikonen <priikone@silcnet.org>
6846
6847         * Implemented memory filesystem (virtual filesystem) for
6848           SFTP server.  Affected file lib/silcsftp/silcsftp_fs.h,
6849           sftp_fs_memory.c.
6850
6851 Sun Sep 30 22:10:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6852
6853         * Implemented the SFTP (SSH File Transfer Protocol) to the
6854           lib/silcsftp.  It includes SFTP client and SFTP server
6855           implementations.
6856
6857 Sun Sep 30 10:35:44 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6858
6859         * Moved lib/silccore/silcprotocol.[ch] to the
6860           lib/silcutil library.
6861
6862         * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
6863           take variable argument list pointer as argument.  Affected
6864           file lib/silcutil/silcbuffmt.[ch].
6865
6866         * Added silc_buffer_set function that is used to set data
6867           to a SilcBuffer that is not allocated at all (SilcBufferStruct).
6868           Affected file lib/silcutil/silcbuffer.h.
6869
6870         * Changed various routines in the core library to use the new
6871           silc_buffer_set instead of allocating new buffer only for
6872           temporary purposes.
6873
6874         * Added 64-bit value formatting and unformatting support to the
6875           silc_buffer_[un]format routines.  Affected file is
6876           lib/silcutil/silcbuffmt.[ch].
6877
6878           Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
6879           to includes/bitmove.h.
6880
6881 Fri Sep 28 21:30:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6882
6883         * Fixed channel user mode saving in client library.  Affected
6884           file lib/silcclient/command[_reply].c.
6885
6886 Thu Sep 27 22:52:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6887
6888         * Defined the file transfer to the SILC Protocol.  Added
6889           new packet type SILC_PACKET_FTP and defined File Transfer
6890           Payload.  The mandatory file transfer protocol is SFTP
6891           (SSH File Transfer Protocol).  Affected file in addition
6892           of the internet draft is lib/silccore/silcpacket.h.
6893
6894         * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
6895           packet SILC_PACKET_RESUME_ROUTER instead.  The new packet
6896           is used as part of backup router protocol when the primary
6897           router of the cell is back online and wishes to resume
6898           the position as primary router.
6899
6900         * Redefined the MAC generation keys in the protocol.  The
6901           same key is not used anymore in both direction.  Both
6902           direction will now use different keys for sending and
6903           receiving.  This fixes a potential security flaw.  This
6904           change causes incompatibilities in the protocol.
6905
6906         * Redefined also the MAC computation from the packet.
6907           An packet sequence number is now added to the MAC
6908           computation.  This prevents possible replay attacks against
6909           the protocol.  This change too causes incompatibilities
6910           in the protocol.
6911
6912           Added `sequence' field to the SilcPacketContext to hold
6913           the current sequence number for the packet.
6914
6915 Wed Sep 26 20:15:22 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6916
6917         * Added `created' field to the SilcIDListData in the file
6918           silcd/idlist.h to indicate the time when the entry was
6919           created.
6920
6921         * Added `created' field to the SilcChannelEntry too.  Affected
6922           file silcd/idlist.h.
6923
6924         * Added `creation_time' aguments to all the announcement functions
6925           in the server.  If it is provided then only the entries that
6926           was created after the provided time frame are actually
6927           announced.  Affected file silcd/server.[ch].
6928
6929         * The protocol says that the Channel ID's IP address must be
6930           based on the router's IP address.  Added check for this in
6931           the silc_server_new_channel when processing incoming New Channel
6932           Payload.  Affected file silcd/packet_receive.c.
6933
6934         * Print out the correct version with --version in SILC client.
6935           Affected file irssi/src/silc/core/silc-core.c.
6936
6937 Mon Sep 24 17:19:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6938
6939         * Fixed WHOWAS command to check for completnes of the client
6940           entry always, not just when the command is coming from client.
6941           Affected file silcd/command.c.
6942
6943         * Added new function silc_server_packet_queue_purge to purge the
6944           outgoing data queue to the network.  After the function returns
6945           it is guaranteed that the outgoing packet queue is empty.
6946           Affected file silcd/packet_send.[ch].
6947
6948         * Purge the outgoing packet queue in the rekey protocol's final
6949           callback to assure that all rekey packets go to the network
6950           before quitting the protocol.  Affected file silcd/server.c.
6951
6952         * Added silc_client_packet_queue_parse as similar function as
6953           in server to the client library.  The affected file is
6954           lib/silcclient/client.c.
6955
6956 Sun Sep 23 15:15:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6957
6958         * Splitted silcd/server.c and created silcd/server_util.[ch]
6959           for utility functions.
6960
6961         * Added new socket flag SILC_SF_DISABLED to indicate that the
6962           connection is open but nothing can be sent to or received from
6963           the connection.  Affected file lib/silcutil/silsockconn.[ch].
6964           The checking for disabled socket is checked in the low level
6965           silc_socket_write and silc_socket_read functions.
6966
6967 Thu Sep 20 23:11:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6968
6969         * Allow only nicknames and channel names that fits into the
6970           7-bit unsigned char ASCII set.  Affected file silcd/command.c.
6971
6972 Thu Sep 20 18:04:12 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6973
6974         * When processing JOIN command reply in server check that if
6975           the channel exists in our global list we'll move it the local
6976           list.  Affected file silcd/command_reply.c.
6977
6978         * Fixed the check whether client is joined on the channel already
6979           in JOIN command.  Affected file lib/silcclient/command.c.
6980
6981         * Fixed the JOIN command reply to check whether the channel
6982           already exists.  Affected file lib/silcclient/command_reply.c.
6983
6984 Wed Sep 19 22:58:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6985
6986         * Added silc_ske_status_string to map the SKE error numbers
6987           to readable strings.  The affected files are
6988           lib/silcske/silcske[_status].[ch].
6989
6990 Tue Sep 18 22:50:41 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6991
6992         * Do not show the private channels on the WHOIS channel list
6993           as it is not allowed by the protocol.  The affected file is
6994           silcd/server.c.
6995
6996 Sun Sep 16 12:32:58 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
6997
6998         * Assure that the packet length digged from the actual packet
6999           is something sensible in the silc_packet_decrypt_rest_special
7000           in lib/silccrypt/silcpacket.c.
7001
7002         * Free and NULL the allocated pointer in silc_hmac_alloc if
7003           the HMAC allocation fails.  The affected file is
7004           lib/silccrypt/silchmac.c.
7005
7006         * Print the selected security properties to the log files in
7007           the server.  Affected file silcd/protocol.c.
7008
7009         * Add SKE's reference counter even if calling the completion
7010           callback manually.  Otherwise it goes negative, although it
7011           does not cause any problems.  The affected file is
7012           lib/silcske/silcske.c.
7013
7014         * Remove the client entry with short timeout after giving the
7015           KILL command.  Affected file lib/silcclient/command.c.
7016
7017         * Fixed to send error reply in WHOIS and IDENTIFY commands in
7018           case all found clients are already disconnected (WHOWAS would
7019           found them) in the server.  Affected file silcd/command.c.
7020
7021         * Update the last_receive (time of last data received) to be
7022           updated only when received private or channel message so that
7023           the idle time showed in WHOIS makes more sense.
7024
7025         * Added boolean field `valid' in to the SilcClientEntry in the
7026           client library to indicate whether the entry is valid or not.
7027           This fixes the nickname change bug on channel when changing
7028           the nickname to be same than the old (like nick to Nick) the
7029           nickname formatter doesn't set the new nick anymore to Nick@host.
7030           Affected file lib/silcclient/idlist.[ch].
7031
7032         * Now actually fixed the nickname changing on disconnection.
7033           Added new function silc_change_nick to the Irssi SILC Client.
7034           Affected file irssi/src/silc/core/client_ops.c,
7035           irssi/src/silc/core/silc-nicklist.[ch].
7036
7037 Sat Sep 15 13:29:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7038
7039         * Check that the public key exists in the GETKEY command before
7040           trying to encode it.  Affected file silcd/command.c.
7041
7042         * Print some notifications on received public keys with GETKEY
7043           command in the Irssi SILC Client.  Affected files are
7044           irssi/src/fe-common/silc/module-formats.[ch],
7045           irssi/src/silc/core/client_ops.c.
7046
7047         * Use IDENTIFY command to resolve the server information in the
7048           GETKEY command instead of INFO command.  Affected file
7049           lib/silcclient/command.c.
7050
7051         * All command reply functions in the client library now calls
7052           the pending command reply callbacks even if an error has
7053           occurred.  The server has done this a long time and now it was
7054           time to move the client library to this as well.  Now all
7055           errors can be delivered back to the pending command reply
7056           callbacks if necessary.  Affected files are
7057           lib/silcclient/command[_reply].[ch].
7058
7059         * Change the nickname on disconnection back to the username
7060           because in reconnect the server will enforce it to it anyway.
7061           Affected file irssi/src/silc/core/silc-servers.c.
7062
7063         * Fixed a config file parsing bug in the Irssi SILC client.
7064           Affected file irssi/src/silc/core/clientconfig.c.
7065
7066 Thu Sep 13 23:11:18 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7067
7068         * When printing the channel mode on JOIN, verify that the
7069           channel key and channel's HMAC are valid.  Affected file
7070           irssi/src/silc/core/client_ops.c.
7071
7072 Thu Sep 13 20:24:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7073
7074         * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
7075           SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
7076           lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
7077
7078         * Removed channel key rekey task deleting from the function
7079           silc_server_save_channel_key.  Affected file silcd/server.c.
7080           Added explicit timeout task context instead that is used to
7081           delete the task if we are registering a new task before the
7082           new task has elapsed.
7083
7084         * When channel key rekey occurs the client library now saves
7085           the old channel key for a short period of time (10 seconds) and
7086           is able to use it in case some is still sending channel
7087           messages encrypted with the old key after the rekey.  Affected
7088           file lib/silcclient/[idlist.h|client_channel.c].
7089
7090 Sun Sep  9 15:49:16 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7091
7092         * Added check to the silc_server_new_id_real to not accept
7093           new ID if it is the sender's own ID.  Affected file is
7094           silcd/packet_receive.c.
7095
7096         * Assure that we do not announce ourself or the one we've
7097           sending our announcements when we're router and are announcing
7098           servers to our primary router.  Affected file silcd/server.c.
7099
7100         * Fixed silc_server_command_identify_check_client to assemble
7101           correct WHOIS packet.  It send corrupted WHOIS packet and
7102           caused problem with router to router connections.  Affected
7103           file silcd/command.c.
7104
7105           Fixed also silc_server_command_whois_check the same way
7106           as for the IDENTIFY command.
7107
7108         * Added new SilcIDListStatus to the server in the SilcIDListData
7109           structure.   The status now includes the current status of
7110           the entry (like registered, resolved etc.).  Affected file
7111           silcd/idlist.[ch].  Defined a bunch of different status types
7112           as well.  This replaced the old boolean registered field as well.
7113
7114           Added resolve_cmd_ident field to the SilcClientEntry structure
7115           too so that if the entry is for example being resolved so
7116           another command may attach to the same pending command reply
7117           without requiring to resolve the same entry again.  This concept
7118           should optimize the WHOIS and the IDENTIFY resolving under
7119           heavy load by taking away unnecessary resolving for entries
7120           that are being resolved already.
7121
7122           Added support for adding multiple pending commands for one
7123           command idenfier.  Affected file silcd/command[_reply].[ch].
7124
7125         * Fixed WHOIS and IDENTIFY save to remove the cache entry
7126           before deleting the data.  Otherwise the hash table will have
7127           freed data in comparison functions.  Affected file is
7128           silcd/command_reply.c.
7129
7130         * Fixed silc_idlist_replace_client_id to add the new entry to
7131           the cache with NULL nickname.  Otherwise there will be invalid
7132           memory as the nickname after the nickname is freed.  Affected
7133           file silcd/packet_receive.c.
7134
7135         * Fixed the silc_idlist_get_clients_by_hash.  The entries was
7136           saved into wrong slots because the previous number of entries
7137           was not taken into account.  Affected file silcd/idlist.c.
7138           Fixed same thing in silc_idlist_get_clients_by_nickname too.
7139
7140         * If we are router and we receive JOIN notify to a channel that
7141           does not have any users then notified client is marked as the
7142           channel founder, as it is it.  The affected file is
7143           silcd/packet_receive.c
7144
7145         * Added to the extended hash table API's table_del_*ext functions
7146           the destructor as argument too, so that the caller can decide
7147           which destructor to use or whether to use destructor at all.
7148           Affected file lib/silcutil/silchashtable.[ch].
7149
7150         * Fixed ID Cache purging.  It actually deleted the entries from
7151           the hash table after the data was freed.  The hash table ended
7152           up comparing freed memory.  The affected file is
7153           lib/silccore/silcidcache.c.
7154
7155 Sat Sep  8 10:22:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7156
7157         * Fixed Irssi SILC client's KILL command's HELP syntax.
7158
7159         * The USERS command now resolves the detailed user information
7160           if the userinfo field is missing.  Affected file is
7161           lib/silcclient/command_reply.c.
7162
7163         * Do not print error in silc_file_read if the read file does
7164           not exist.  Just silently return NULL.  Affected file is
7165           lib/silcutil/silcutil.c.
7166
7167         * Fixed the silc_log_output to not wine about NULL filename
7168           and to not create some bogus " " filename.  Affected file is
7169           lib/silcutil/silclog.c.
7170
7171 Fri Sep  7 22:16:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7172
7173         * Fixed various printing bugs on the user interface in the
7174           Irssi SILC Client.  Minor changes that were forgotten from
7175           the release.
7176
7177 Fri Sep  7 17:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7178
7179         * Fixed the configure.in.pre and the compilation and distribution
7180           environment to support the new autoconf 2.52.  That version is
7181           now required to compile the CVS trunk.
7182
7183 Thu Sep  6 12:47:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7184
7185         * Renamed function silc_parse_nickname to silc_parse_userfqdn
7186           to generally parse user@fqdn format strings.  Affected file
7187           lib/silcutil/silcutil.c.
7188
7189         * Added nickname_format and nickname_force_format fields to the
7190           SilcClientParams structure.  The first one defines the format
7191           for the nicknames that the library will enforce if the receives
7192           multiple same nicknames.  The second one is boolean value and
7193           can be used to force the library to always enforce the format
7194           to the nicknames regardles whether there are multiple nicknames
7195           or not.  This configurable formatting was employed to flexibly
7196           support accessing multiple nicknames from the user interface.
7197           The userinterface can now set the nicknames to what ever format
7198           they prefer.  Affected file lib/silcclient/silcapi.h.
7199
7200           Added function silc_client_nickname_format to the file
7201           lib/silcclient/idlist.c.  It performs the nickname formatting.
7202
7203           Added new field `hostname´ to the SilcClientEntry context.
7204           It holds the hostname of the client.  Affected file is
7205           lib/silcclient/idlist.h.
7206
7207         * Irssi SILC Client sets the nicknames in nick@hostn format.
7208           Fe. priikone@otaku, priikone@otaku2 etc.  Affected file
7209           irssi/src/silc/core/silc-core.c.
7210
7211           The WHOIS printing now also shows both the real nickname and
7212           the formatted nickname so that user knows how to access the
7213           user if there are multiple same nicknames cached.  Affected
7214           file irssi/src/silc/core/client_ops.c.  Changed the WHOIS
7215           printing formatting too to take the hostname now as a separate
7216           argument.  The Affected file is
7217           irssi/src/fe-common/silc/modules-formats.[ch].
7218
7219         * Changed the silc_client_get_clients_local to accept the formatted
7220           nickname as argument.  It accepts the real nickname too but the
7221           formatted nickname can be used to find the true entry from
7222           multiple entries.  Affected file lib/silcclient/silcapi.h and
7223           lib/silcclient/idlist.c.
7224
7225         * Added nickname_format_parse field to the SilcClientParams.
7226           It is a callback function provided by the application to parse
7227           the nickname out of the formatted nickname string. The library
7228           calls it to get the nickname from the formatted string. Since
7229           the application generally knows better the format of the nickname
7230           string it parses it instead of the library, even though library
7231           encodes the formatted string.  If the callback function is not
7232           provided then the library will use the string as is.  The
7233           affected file is lib/silcclient/silcapi.h.
7234
7235         * All the nickname strings passed to the client library in
7236           commands are now expected to be formatted nickname strings.
7237           If the command does not support the formatted nickname string
7238           it will assume that the sent string is the actual nickname.
7239           Affected file lib/silcclient/command.c.
7240
7241 Tue Sep  4 22:31:28 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7242
7243         * Added public key authentication support to OPER and SILCOPER
7244           commands in the client library.  Affected file is
7245           lib/silcclient/command.c.
7246
7247 Tue Sep  4 12:39:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7248
7249         * Changed the get_auth_methdod client operation to be asynchronous.
7250           It can be async if the application resolves the authentication
7251           method from the server during the negotiation.  Added new
7252           SilcGetAuthMeth completion callback that the application will
7253           call after resolving the authentication method.
7254
7255           Added function silc_client_request_authentication_method that
7256           the application can use to resolve the authentication method
7257           from the server.  Added also SilcConnectionAuthRequest callback
7258           that the library will call after the server has replied.  The
7259           application can call this function if it does not know the
7260           current authentication method.
7261
7262           Affected files are lib/silcclient/client.c and
7263           lib/silcclient/silcapi.h.
7264
7265         * The Irssi SILC client now automatically resolves the authentication
7266           method incase any configuration information is not present (and
7267           currently there never is).  The affected file is
7268           irssi/src/silc/core/client_ops.c.
7269
7270         * Fixed public key authentication from the client library.
7271           Affected file lib/silcclient/protocol.c.  Changed also the
7272           protocol specification about the public key authentication in
7273           the connection authentication protocol.  The actual data to be
7274           signed is now computed with a hash function before signing.
7275
7276         * Fixed the public key authentication from the server as well.
7277           Affected file silcd/protocol.c.
7278
7279         * Removed the mlock()'s from the memory allocation routines.
7280           Affected file lib/silcutil/silcmemory.c.  The ./configure does
7281           not check anymore for the mlock().  Affected file is
7282           configure.in.pre.
7283
7284         * Fixed USERS command in server to allow the execution of the
7285           command for private and secret channels if the client sending
7286           the command is on the channel.  Affected file silcd/command.c.
7287
7288         * Fixed silc_client_get_clients_local to return the clients
7289           count correctly.  It could return wrong value.  Affected file
7290           lib/silcclient/idlist.c.
7291
7292 Mon Sep  3 20:09:59 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7293
7294         * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
7295           types.  The assembler optimizations seemed not to like 64-bit
7296           data types.  The assmebler optimizations thus are now enabled
7297           also for BSD systems as opposed to only enable them for Linux.
7298
7299         * Do not check for threads at all on BSD systems.  Affected
7300           file configure.in.pre.
7301
7302         * Removed -n and -h options from the Irssi SILC Client since
7303           they are not used in silc.
7304
7305         * Fixed the prime generation to assure that the first digit
7306           of the generated random number is not zero since our conversion
7307           routines does not like number strings that starts with zero
7308           digit.  If zero digit is seen the random number is regenerated.
7309           This caused some corrupted RSA keys when the zero first digit
7310           was met.  Affected file lib/silcmath/silcprimegen.c.
7311
7312 Sun Sep  2 17:17:24 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7313
7314         * Fixed WIN32 configuration in the ./configure script.
7315           Fixed to include xti.h on environments that has it.
7316           Patches by Carsten Ilchmann and andrew.
7317
7318 Sat Sep  1 00:29:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7319
7320         * Changed the silc_id_create_client_id to be collision
7321           resistant.  It is now assured that there cannot be created
7322           two same client ID's.  I suspect that some weird bugs in
7323           the server were actually caused by duplicate Client IDs.
7324           Affected file silcd/serverid.[ch].  A router receiving
7325           new ID now also assures and informs the sending server
7326           if the ID caused collision.
7327
7328         * Changed the silc_id_create_channel_id to also assure that
7329           there are no collisions.
7330
7331 Wed Aug 29 17:55:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7332
7333         * Statement about ignoring the Mutual Authentication flag when
7334           performing rekey with PFS was a bit misleading.  It is ignored
7335           if it was set in the initial negotiation, it cannot be even
7336           set in the rekey.  Fixed in the ke-auth draft.  Started the
7337           new versions of the protocol drafts in the doc/.
7338
7339 Sun Aug 26 14:59:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7340
7341         * Fixed a bug in silc_client_command_identify_save when saving
7342           new channel information.  The channel name was no duplicated
7343           and caused crash on exit.  Affected file is
7344           lib/silcclient/command_reply.c.
7345
7346 Fri Aug 17 23:07:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7347
7348         * Fixed the getkey command handling in the server.  Send just
7349           empty OK reply to the sender if the key could not be fetched
7350           (but everything else was ok, like the key just was not available).
7351           Changed the public key parameter to optional in the protocol
7352           specs so that empty OK reply can be sent.  Affected file
7353           silcd/command.c.
7354
7355           Added a message to Irssi SILC client to tell to user if the
7356           server did not return a public key.
7357
7358 Tue Aug 14 07:29:27 CEST 2001  Pekka Riikonen <priikone@silcnet.org>
7359
7360         * Fixed a channel key regeneration bug.  It registered new
7361           timeout tasks exponentially until all system resources were
7362           used.  Affected file silcd/server.c.
7363
7364 Sun Aug 12 20:48:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7365
7366         * Added the SILC Document generator to the scripts/silcdoc.
7367           It can be used to generate the Toolkit Reference Manual out
7368           of the source tree.  Internally it will also use the RoboDoc
7369           generator now imported in util/robodoc.
7370
7371 Sun Aug 12 12:28:17 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7372
7373         * Added couple of return's in rekey protocol if error orccurred
7374           during the protocol.  The execution must be terminated.
7375           Affected file silcd/protocol.c.  Also, terminate the protocol
7376           always with timeout.
7377
7378 Sat Aug 11 12:36:02 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7379
7380         * The client's Client ID was created initally from the wrong
7381           nickname (it could have been in format nick@host) in the
7382           silc_server_new_client.  Affected file silcd/packet_receive.c
7383
7384 Sat Aug 11 00:29:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7385
7386         * Added some SILC_LOG_ERROR's to various error conditions
7387           if client could not be added to ID cache.  Affected files
7388           silcd/packet_receive.c and silcd/server.c.
7389
7390         * When client's sock->user_data is freed, NULL also the
7391           client->router and client->connection pointers.  Added check
7392           for these pointers being NULL to various places around the
7393           code.  Affected file silcd/server.c.
7394
7395         * Added client->data.registered == TRUE checks to various
7396           places around the code to assure that unregistered client's
7397           are not handled when it is not allowed.  Affected file
7398           silcd/server.c.
7399
7400         * Added `bool registered' fields to all
7401           silc_idlist_[server|client]_get_* routines to indicate whether
7402           the fetched client needs to be registered or not.  Affected
7403           file silcd/idlist.[ch].
7404
7405         * Add your own entry as registered to the ID cache in the
7406           server.  Affected file server.c.
7407
7408         * Fixed a bug in silc_server_new_server.  The SilcServer was
7409           set as the new server's context instead of SilcServerEntry.
7410           This naturally caused some weird bugs.
7411
7412         * Added "updated" field the SilcChannelEntry which indicates
7413           the time since the channel entry was last accessed.  This
7414           can be used to determine whether it is necessary to
7415           announce the channel after backup resuming protocol.
7416           Affected files silcd/idlist.[ch].
7417
7418 Thu Aug  9 18:28:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7419
7420         * Do not delete the channel rekey task when adding it
7421           for in silc_server_create_channel_key.
7422
7423         * Changed the silc_server_create_channel_key to return
7424           TRUE or FALSE to indicate the success of the channel key
7425           creation.
7426
7427 Thu Jul 26 11:32:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7428
7429         * Fixed MSVC++ project files and added missing files to
7430           Makefiles under win32/.
7431
7432 Wed Jul 25 18:43:54 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7433
7434         * Do not add TCP_NODELAY flag if the operating system
7435           does not have it defined.  Affected files are
7436           lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
7437
7438         * Fixed buffer overflow from Irssi SILC Client.  Affected
7439           file irssi/src/fe-common/core/themes.c.
7440
7441         * Fixed double free in client library in the file
7442           lib/silcclient/client.c when disconnecting from server.
7443
7444         * Applied double free patch from cras to Irssi SILC client.
7445           Affected files irssi/src/core/[modules/expandos].c
7446
7447         * Fixed the disconnection handling to Irssi SILC Client.
7448           The application must call silc_client_close_connection
7449           in ops->connect client operation in case of failure of
7450           the connection.  Affected file is
7451           irssi/src/silc/core/client_ops.c.
7452
7453         * Do not set sock->protocol to NULL in the function
7454           silc_client_close_connection after executing the protocol's
7455           final callback since the sock might not be valid anymore.
7456           Affected file lib/silcclient/client.c.
7457
7458 Wed Jul 25 16:04:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7459
7460         * Do not enable SILC_THREADS if the linking with libpthread
7461           did not happen.  Affected file configure.in.pre.
7462
7463         * Added notion to protocol specification that server must
7464           verify the sent authentication payload with CMODE when
7465           setting the channel founder key.  Implemented it to the
7466           server.  Affected file silcd/command.c.
7467
7468 Mon Jul 23 18:31:43 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7469
7470         * Added _EXTRA_DIST SILC distribution variable to the
7471           distributions file.  It is used to conditionally add extra
7472           files or directories to the specific distribution.  Affected
7473           files ./prepare, Makefile.am.pre and distributions.
7474
7475           Removed the `_' from the start of the distribution names.
7476           It is redundant.
7477
7478         * Added README.WIN32 for instructions to compile the Toolkit
7479           under WIN32.
7480
7481 Mon Jul 23 10:12:37 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7482
7483         * Fixed a double free in disconnection in the server.  Affected
7484           file is silcd/server.c.
7485
7486         * Fixed the lib/silcske/groups.c to work now also with GMP
7487           MP library.  The string conversion did not work when using
7488           specific base and the base is indicated in the string as well.
7489
7490         * Created win32/ directory which now includes MSVC++ specific
7491           stuff so that toolkit (DLLs) may be compiled with MSVC++.
7492           It will appear only in the toolkit distribution
7493
7494 Sun Jul 22 19:40:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7495
7496         * Changed the key material distribution function in case when
7497           the hash output is too short.  The data is now concatenated
7498           a bit differently than it used to.  Made the change to the
7499           SKE protocol specification.
7500
7501         * Added better GMP detection to configure.in.pre.  A patch
7502           by salo.
7503
7504 Fri Jul 20 13:16:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7505
7506         * Fixed a minor bug in SKE that might cause some problem on
7507           some platforms.  Affected file lib/silcske/silcske.c.
7508
7509         * Added the cookie checking for initiator in the SKE.  It checks
7510           that the responder returns the sent cookie unmodified.  The
7511           affected file is lib/silcske/silcske.c.  Added new SKE
7512           error type INVALID_COOKIE that can be sent during the
7513           negotiation.  Fixed some memory leaks as well.
7514
7515         * Added the "invalid cookie" error message to Irssi SILC client's
7516           message formats.
7517
7518 Thu Jul 19 21:44:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7519
7520         * Added `task_max' field to the SilcClientParams to indicate
7521           the maximum tasks the scheduler can handle.  If set to zero,
7522           default values are used.  Affected file lib/silcclient/silcapi.h.
7523
7524         * Fixed memory leaks in silc_client_close_connection.  Affected
7525           file lib/silcclient/client.c.
7526
7527         * Added silc_client_del_client_entry to client library to free
7528           all memory of given client entry.  Affected file is
7529           lib/silcclient/idlist.[ch].
7530
7531         * Added new functions silc_client_del_channel and
7532           silc_client_del_server to delete channel and server entries.
7533           Affected file lib/silcclient/[silcapi.h/idlist.c].
7534
7535         * Removed silc_client_del_client_by_id from silcapi.h.
7536
7537         * Fixed the INFO command to return the server's own info
7538           correctly when querying by Server ID.  Affected file is
7539           silcd/command.c.
7540
7541 Thu Jul 19 14:47:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7542
7543         * Removed the non-blocking settings in WIN32 code in the
7544           silc_sock_[read/write] and added SleepEx instead.  Affected
7545           file lib/silcutil/win32/silcwin32sockconn.c.  The availability
7546           of input data is now checked with FIONREAD and ioctlsocket.
7547
7548 Wed Jul 18 18:34:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7549
7550         * Call silc_schedule_task_del_by_context in the
7551           silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
7552           Affected file lib/silccore/silcprotocol.c.
7553
7554         * Call silc_protocol_cancel for active protocols in the
7555           silc_server_close_connection if the funtion
7556           silc_server_free_sock_user_data has not been called.
7557           Affected file silcd/server.c.
7558
7559         * Generic tasks cannot be deleted using the del_by_fd
7560           task deleting function since generic tasks does not match
7561           any specific fd.  Affected file lib/silcutil/silcschedule.[ch].
7562
7563         * Added a notion to SILCOPER help file that the SILCOPER works
7564           only on router server, not on normal server.
7565
7566 Wed Jul 18 09:40:04 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7567
7568         * Added for WIN32 support for the new scheduler as well.
7569           Affected file lib/silcutil/win32/silcwin32schedule.c.
7570
7571         * Fixed the SHA1 implementation to work on various platforms.
7572
7573 Tue Jul 17 23:04:10 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7574
7575         * Rewrote the SILC Scheduler entirely.  Removed the old SILC Task
7576           API.  It is part of the scheduler now.  Everything else is
7577           as previously but some functions has changed their names.
7578           Checkout the lib/silcutil/silcschedule.h for the interface.
7579           Updated all applications to use the new interface.  Affected
7580           files are lib/silcutil/silcschedule.[ch].
7581
7582 Tue Jul 17 16:53:30 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7583
7584         * Found a bug in the SKE implementation.  The HASH value,
7585           specified by the protocol, was not computed correctly.  The
7586           public key of the responder was not added to the computation
7587           even though it is mandatory.  Affected file lib/silcske/silcske.c.
7588           This unfortunately causes incompatibilities with older
7589           clients and servers.
7590
7591         * Added WIN32 specific network init and uninit functions:
7592           silc_net_win32_init and silc_net_win32_uninit to init and uninit
7593           the Winsock2.  Affected file lib/silcutil/silcnet.h and
7594           lib/silcutil/win32/silcwin32net.c.
7595
7596         * Set the socket always to nonblocking mode on WIN32 after
7597           reading data or writing data.  Affected file is
7598           lib/silcutil/win32/silcwin32sockconn.c.
7599
7600 Mon Jul 16 22:55:26 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7601
7602         * Fixed various compilation problems under WIN32.  Affected
7603           files lib/silcutil/win32/silcwin32thread.c and
7604           lib/silcutil/win32/silcwin32schedule.c.
7605
7606         * Removed all _internal.h #includes from public header
7607           files.  Internal headers must never be included from
7608           public headers.
7609
7610           Removed also the lib/silcske/payload_internal.h file.
7611
7612         * All include files that may be needed (public and some others
7613           included by the public headers) by application developers are
7614           now copied to the ./includes directory.  It does not copy any
7615           internal headers.  Affected file Makefile.defines.pre and all
7616           Makefile.am's under lib/ and subdirs.
7617
7618 Thu Jul 12 17:49:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7619
7620         * Do not change the ~/.silc directory's permissions automatically.
7621           Affected file irssi/src/silc/core/clientutil.c.
7622
7623 Thu Jul 12 10:18:40 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7624
7625         * Do not cancel the protocol in silc_server_close_connection
7626           it might cause recursion.  Now cancelled in the function
7627           silc_server_free_sock_user_data.  Affected file silcd/server.c.
7628
7629         * Fixed the silc_server_remove_clients_by_server to regenerate
7630           the channel keys correctly finally.  Added also new function
7631           silc_server_remove_clients_channels to actually do it.
7632           Affected file silcd/server.c.
7633
7634         * Fixed the silc_server_new_channel to not crash by giving
7635           wrong router to the new channel.  Affected file is
7636           silcd/packet_receive.c.
7637
7638 Wed Jul 11 18:31:57 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7639
7640         * Added SilcClientParams structure to the lib/silcclient/silcapi.h
7641           which is given as argument to the silc_client_alloc now.
7642           It can be used to configure the client and set various parameters
7643           that affect the function of the client.
7644
7645         * The USERS command in server did not check whether the channel
7646           is private or secret.  Affected file silcd/command.c.
7647
7648         * Added new argument to the USERS command in protocol specification.
7649           The USERS command now can take the channel name as argument
7650           as well.  Added support for this in client and server and
7651           updated the protocol specs.
7652
7653         * Completed the GETKEY command in client. It can be now used
7654           to fetch also servers public key not only some clients.
7655           Affected files lib/silcclient/command[_reply].c.
7656
7657         * Added silc_client_get_server to return server entry by the
7658           server name.  Affected files lib/silcclient/silcapi.h and
7659           idlist.c.
7660
7661         * Redefined the IDENTIFY command in protocol specification to be
7662           more generic.  It now can be used to query information about
7663           any entity in the SILC Network, including clients, servers and
7664           channels.  The query may be based either the entity's name
7665           or the ID.  Added support for this in both client and server.
7666
7667           Affected files silcd/command.c and lib/silcclient/command.c
7668           and command_reply.c.
7669
7670         * Optimized the WHOIS and WHOWAS commands in the server. Removed
7671           the _from_client and _from_server functions.  Affected file
7672           silcd/command.c.
7673
7674         * Added silc_client_get_channel_by_id_resolve to the file
7675           lib/silcclient/silcapi.h to resolve channel information by
7676           its ID.  Added also silc_client_get_channel_by_id that
7677           does not resolve it from the server.
7678
7679 Tue Jul 10 18:05:38 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7680
7681         * Added SilcServerEntry context into the client library
7682           to represent one server.  The INFO command now allocates
7683           these to save the resolved server info.  For now on the
7684           client library will also keep information about servers,
7685           connected and resolved with INFO.
7686
7687           The INFO command now allocates the SilcServerEntry context
7688           and saves the server info there.  The COMMAND_REPLY in
7689           the INFO now returns the parameters to application in
7690           same order as defined in the protocol specification.
7691
7692           The entries are cached in the client->server_cache.
7693
7694         * The INFO command is now issued after received the Client ID
7695           from the server.  Affected file lib/silcclient/client.c.
7696
7697         * The CMODE_CHANGE notify may now return also an SilcServerEntry
7698           to the application as the mode changer might be server.
7699           It is guaranteed that NULL is not returned anymore to the
7700           application.  Affected file lib/silcclient/client_notify.c.
7701
7702           The ID Type is now also passed to the application so that
7703           it can check whether the returned entry is SilcClientEntry
7704           or SilcServerEntry.
7705
7706           Added new function silc_client_get_server_by_id to return
7707           the server entry by ID.  Affected files are the
7708           lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
7709
7710         * Do not create the channel in the Irssi SILC Client when issuing
7711           the JOIN command but when received the sucessful JOIN command
7712           reply.  Otherwise the channel might get created even though we
7713           could not join it.  The Affected file is
7714           irssi/src/silc/core/[silc-channels.c/client_ops.c].
7715
7716         * Fixed a channel joining bug in router.  The router must also
7717           check the channel modes, invite and ban lists etc. when serving
7718           the JOIN command sent by normal server.  Affected file is
7719           silcd/command.c.  The router now resolves the client's
7720           information from the server who sent the JOIN command if it
7721           does not know it, and processes the JOIN command only after
7722           that.
7723
7724         * Changed the SilcCommandCb to take new argument; void *context2.
7725           Affected file lib/silccore/silccommand.h
7726
7727           The second argument in the command callbacks in the server now
7728           includes the SilcServerCommandReplyContext if the command was
7729           called as pending command callback from the command reply.
7730           Otherwise it is NULL. When called as pending the status of the
7731           command reply will be checked and if it was erronous the
7732           error will be sent to the original sender of the command.
7733           This way the client always receives the error messages even
7734           though the server was actually the one who received the error
7735           when it resent the command to router, for example.  Affected
7736           files silcd/command[_reply].[ch].
7737
7738         * Fixed sending WHOWAS command's error message to client if
7739           the requested client could not be found.  It was missing.
7740           silcd/command.c.
7741
7742         * Changed the CMODE and CUMODE commands reply arguments in the
7743           protocol specification.  The Channel ID is now sent in both
7744           of the commands to identify the channel.  Implemented this
7745           new feature to the client and server.  Affected files
7746           lib/silcclient/command_reply.c and silcd/command.c.
7747
7748         * Made better checks for invite and ban lists in the JOIN
7749           command in server.  Affected file silcd/command.c.
7750
7751 Mon Jul  9 18:28:34 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7752
7753         * The server now performs the incoming host IP/DNS lookup
7754           using the silc_socket_host_lookup and thus does not block
7755           the server anymore.  Affected file silcd/server.c.
7756
7757         * Completed the multi-thread support for SILC Scheduler in
7758           the lib/silcutil/silcschedule.c.
7759
7760         * Fixed the configure.in.pre to detect the pthread correctly
7761           on various systems.
7762
7763         * Fixed a deadlock in silc_task_queue_wakeup in the file
7764           lib/silcutil/silctask.c.
7765
7766 Mon Jul  9 13:40:03 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7767
7768         * Added new function silc_schedule_wakeup that is used in
7769           multi-threaded environment to wakeup the main thread's
7770           schduler. It needs to be used when a thread adds a new task
7771           or removes a task from task queues. After waking up, the
7772           scheduler will detect the task queue changes. If threads
7773           support is not compiled in this function has no effect.
7774           Implemented the wakeup mechanism to both Unix and WIN32
7775           systems.  Affected files are lib/silcutil/silcschedule.[ch],
7776           lib/silcutil/unix/silcunixschedule.c and the
7777           lib/silcutil/win32/silcwin32schedule.c.
7778
7779         * Added new function silc_task_queue_wakeup to wakeup the
7780           scheduler by the specified task queue.  Affected file
7781           lib/silcutil/silctask.[ch].
7782
7783         * The silc_socket_host_lookup_start now wakes up the scheduler
7784           after adding the timeout task.  Affected file is
7785           lib/silcutil/silcsockconn.c.
7786
7787         * The silc_socket_host_lookup is synchronous now if the threads
7788           support is not compiled in.  However, the callback is still
7789           called asyncronously through the scheduler, anyway.  Affected
7790           file lib/silcutil/silcsockconn.c.
7791
7792 Mon Jul  9 00:24:45 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7793
7794         * Added new function silc_socket_host_lookup to perform
7795           asynchronous IP and FQDN lookups for the socket connection.
7796           Affected files lib/silcutil/silcsockconn.[ch].
7797
7798 Sun Jul  8 18:44:53 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7799
7800         * Added SILC_MUTEX_DEFINE to define the mutex on environments
7801           that may or may not compile the mutex support in.
7802
7803           Changed the silc_mutex_alloc interface. It allocates the
7804           mutex now to the sent pointer and returns TRUE or FALSE.
7805
7806           Affected file lib/silcutil/silcmutex.h.
7807
7808         * Wrote the SILC Task Queue interface to support multi-threads.
7809           Affected file lib/silcutil/silctask.[ch].
7810
7811         * Wrote the SILC Scheduler to support multi-threads.  Affected
7812           file lib/silcutil/silcschedule.c.
7813
7814 Sun Jul  8 11:16:01 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7815
7816         * Implemented the SILC Mutex API and SILC Thread API for WIN32
7817           in lib/silcutil/win32/.
7818
7819 Sun Jul  8 00:18:15 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7820
7821         * Defined SILC Mutex API and SILC Thread API and implemented
7822           them for Unix.  Affected files are
7823           lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
7824           lib/silcutil/unix/silcunixmutex.c and
7825           lib/silcutil/unix/silcunixthread.c.
7826
7827 Sat Jul  7 14:40:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7828
7829         * Fixed the silc_server_remove_clients_by_server's channel
7830           key re-generation.  The hash table handling was incorrect
7831           and would not work with many channels.  Affected file is
7832           silcd/server.c.
7833
7834         * Fixed some memory leaks around the server code.
7835
7836         * Rewrote the silc_server_get_users_on_channel to support IPv6
7837           based Client ID's.  Affected file silcd/server.c.
7838
7839         * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
7840           specification.  However, a separate document must be written
7841           to define the detailed signing procedure and the payload
7842           associated with the flag.  Defined the flag to the
7843           lib/silccore/silcchannel.h as well.
7844
7845 Fri Jul  6 18:26:31 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7846
7847         * Changed the dynamic tables to static size tables in the
7848           lib/silccrypt/silchmac.c.
7849
7850         * Removed GCC dependencies from the code.  A patch by cras.
7851
7852 Fri Jul  6 09:39:35 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7853
7854         * Do not show the error "Error receiving packet bla bla"
7855           in server if it really was not an error (-2 means that reading
7856           is pending).  Affected file silcd/server.c.
7857
7858 Thu Jul  5 21:22:32 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7859
7860         * Fixed a possible crash in silc_server_remove_clients_by_server
7861           in silcd/server.c.  Fixed there also some memory leaks.
7862
7863         * Fixed the silc_idlist_replace_client_id.  It could replace
7864           wrong key in the hash table.  Affected file silcd/idlist.c.
7865
7866         * Do not check whether there are global users on the channel
7867           if the channel->global_users is FALSE.  Affected functions
7868           silc_server_remove_from_one_channel and
7869           silc_server_remove_from_channels in silcd/server.c.  Also,
7870           do not check if the removed client is local as we can be
7871           sure that global client was not removed from the channel
7872           and checking for global users is not needed.
7873
7874         * The silc_server_remove_clients_by_server now re-generates
7875           the channel keys correctly for those channels that had
7876           clients removed from them.  Affected file silcd/server.c.
7877
7878 Tue Jul  3 11:39:20 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7879
7880         * Found the reason of random crashes in the server.  We weren't
7881           ignoring the SIGPIPE signal (which can be sent in write())
7882           and it crashed the server.  Affected file silcd/silcd.c.
7883
7884 Fri Jun 29 20:05:25 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7885
7886         * Assure that sock->user_data is not NULL in the function
7887           silc_server_packet_send in silcd/packet_send.c.
7888
7889         * Disconnect the remote connection if it could not be added
7890           to any ID lists in the server.  The affected file is
7891           silcd/server.c.
7892
7893         * Check in silc_server_packet_send[_real/dest] that the
7894           socket is not disconnecting and ignore the data if it is.
7895           Affected file silcd/packet_send.c.
7896
7897         * Define inline to __inline on native WIN32 compilation.
7898           Affected file includes/silcwin32.h.
7899
7900         * Added some explicit type casts for inline code since MSVC
7901           require them.  Affected files lib/silcutil/silcbuffer.h,
7902           lib/trq/silcdlist.h and lib/trq/silclist.h.
7903
7904         * Print warning in log files from now on if the packet
7905           decryption fails.  Affected file silcd/server.c.
7906
7907 Thu Jun 28 21:30:39 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7908
7909         * Changed the `say' client operation's interface to accept
7910           new `type' argument to indicate the type of the message sent
7911           by the library.  The application may filter the library's
7912           messages according the type.  The affected file is the
7913           lib/silcclient/silcapi.h.
7914
7915         * Added two new functions to lib/silcclient/silcapi.h:
7916           silc_client_del_client and silc_client_del_client_by_id.
7917           Affected file lib/silcclient/idlist.c.
7918
7919         * Moved the clientincludes.h from includes/ to silc/ and
7920           serverincludes.h from includes/ to silcd/.
7921
7922         * The modes for the CMODE and CUMODE are now passed as
7923           uint32 for application with COMMAND_REPLY.  The affected
7924           file is lib/silcclient/command_reply.c.
7925
7926 Wed Jun 27 22:24:47 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7927
7928         * /WHOIS without arguments shows client's own information.
7929           Affected file lib/silcclient/command.c.
7930
7931         * Changed PING to not accept any arguments.  The specs
7932           says that client can ping only the connected server so
7933           requiring an argument is not needed.  Affected file is
7934           lib/silcclient/command.c.
7935
7936 Wed Jun 27 00:10:33 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7937
7938         * Fixed a fatal bug in private message sending and reception
7939           encryption and decryption when using private message keys.
7940           The implementation was incorrect and did not follow the
7941           specification.  It causd that some of the message were
7942           lost since it did not use the sending and receiving keys
7943           as the protocol suggests.  This has been fixed and will cause
7944           incompatibilities with older clients when sending private
7945           message encrypted with private message keys.  Affected files
7946           lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
7947           and various other in Irssi SILC Client.
7948
7949           Added `responder' boolean argument to the functions
7950           silc_client_add_private_message_key[_ske] to indicate when
7951           the key is added as responder or initiator of the key
7952           negotiation.
7953
7954 Tue Jun 26 19:23:07 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7955
7956         * Removed the silc_ske_check_version function and created
7957           a SilcSKECheckVersion callback.  Added also a function
7958           silc_ske_set_callbacks that is now used to set all SKE
7959           callbacks.  The callback functions are not given to
7960           the SKE functions anymore, but this function is used to
7961           set the callbacks.
7962
7963         * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
7964
7965         * Added `silc_version' argument to the silc_client_alloc
7966           to define the version of the application for the library.
7967           The library will use the version string to compare it
7968           against the remote host's (usually a server) version
7969           string.  Affected file lib/silcclient/silcapi.h
7970
7971         * Added the KE protocol context to Key Agreement context
7972           in client library so that we can abort the SKE if it
7973           is in process when we get timeout.  Affected file is
7974           lib/silcclient/client_keyagr.c.
7975
7976         * Do not resolve the client ID forever if it returns in the
7977           first time that such client does not exist.  This was done
7978           for example with private message.  Affected file is
7979           lib/silcclient/client_prvmsg.c.
7980
7981 Mon Jun 25 21:42:51 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7982
7983         * Do not add regex.h for WIN32.  The affected file
7984           includes/silcincludes.h.
7985
7986         * Added WIN32 DLL generation to lib/Makefile.am.pre.  It might
7987           not work yet 100%.  It generates the DLL's automatically
7988           when compiling with --with-win32 under cygwin.
7989
7990 Sun Jun 24 19:49:23 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
7991
7992         * lib/contrib/regex.c is not compiled on WIN32.
7993
7994         * Added silc_net_get_socket_opt function to the
7995           lib/silcutil/silcnet.h.
7996
7997         * Added includes/silcwin32.h for WIN32 specific includes
7998           and definitions.
7999
8000         * Do not use ptime structure or any of the posix process
8001           functions on WIN32 in lib/silccrypt/silrng.c.
8002
8003         * Added silc_gettimeofday to provide generic function
8004           for struct timeval on all platforms.  Added the function
8005           to lib/silcutil/silcutil.h.
8006
8007 Sun Jun 24 12:19:52 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8008
8009         * Moved the lib/silccore/silcsockconn.[ch] to the utility
8010           library as they clearly belong there.  As a plus side we
8011           can make the actual socket connection routines platform
8012           specific.
8013
8014           Added also new generic function silc_socket_read and
8015           silc_socket_write (that used to be silc_packet_[read/write].
8016           The implementation of these are platform specific.
8017
8018         * Added WIN32 specific routines of silc_socket_[read/write]
8019           to lib/silcutil/win32/silcwin32sockconn.c.
8020
8021 Sat Jun 23 16:01:00 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8022
8023         * Added preliminary support for native WIN32 compilation under
8024           cygwin (using the -mno-cygwin option for GCC) to the
8025           ./configure.in.pre.  The --with-win32 now prepares the
8026           compilation for native WIN32.
8027
8028         * Rewrote the SILC Scheduler interface in the file
8029           lib/silcutil/silcschedule.h.  The scheduler is now context
8030           based and does not have anymore any global static scheduler.
8031           Moved the Unix scheduler to the lib/silcutil/unix/ directory
8032           and created lib/silcutil/win32 directory for WIN32 based
8033           scheduler.
8034
8035         * Added Unix specific network routines to the
8036           lib/silcutil/unix/silcunixnet.c and the old
8037           lib/silcutil/silcnet.c includes now only generic routines.
8038
8039           Added WIN32 specific network routines to the
8040           lib/silcutil/win32/silcwin32net.c.
8041
8042         * Added Unix specific utility functions from the
8043           lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
8044
8045         * Added WIN32 SILC Scheduler to the file
8046           lib/silcutil/win32/silcwin32schedule.c. The code is of course
8047           untested.
8048
8049 Fri Jun 22 10:44:14 EEST 2001  Pekka Riikonen <priikone@silcnet.org>
8050
8051         * Do not handle JOIN notify in the server if the target client
8052           is not registered (idata->registered == FALSE).  The affected
8053           file is silcd/packet_receive.c.
8054
8055         * Update the nickrec->founder in event_cumode in the Irssi SILC
8056           client.  Affected file irssi/src/silc/core/silc-channels.c.
8057
8058         * Fixed the CUMODE_CHANGE notify handling in the server when
8059           server and router are announcing their clients on channels.
8060           Now the mode changes are saved and notified correctly.  The
8061           affected file is /silcd/packet_receive.c.
8062
8063         * Fixed silc_idlit_replace_[server/client/channel]_id functions.
8064           They really did not replace the cache entry in the ID Cache.
8065           Now they do that.  Affected file silcd/idlist.c.
8066
8067         * Fixed the KICK notify handling in the Irssi SILC client to
8068           update the channel records so that the kicked client does not
8069           appear to be on the channel.  The affected file is
8070           irssi/src/silc/core/silc-channels.c.
8071
8072         * Always update the conn->current_channel when executing command
8073           on a channel.  Affected file irssi/src/silc/core/silc-servers.c.
8074
8075         * Fixed the KILL notify handling in Irssi SILC client to remove
8076           the killed client on all channels.
8077
8078 Thu Jun 21 17:10:08 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8079
8080         * Fixed the silc_parse_command_line to remove extra spaces
8081           from the start and end of the arguments.  Affected file is
8082           lib/silcutil/silcutil.c.
8083
8084         * Cancel and free any active protocol in the function
8085           silc_server_close_connection.  Affected file silcd/server.c.
8086
8087         * Cancel and free any active protocol in the function
8088           silc_client_close_connction.  Affected file is
8089           lib/silcclient/client.c.
8090
8091         * Do not execute the KILL command for clients that are in
8092           history (ie. they are not in the network).  Affected file is
8093           silcd/command.c.
8094
8095         * Fixed KILL notify handling, client does not crash anymore.
8096           Affected file irssi/src/silc/core/silc-channels.c.
8097
8098         * Reduced the default packet buffer size from 2048 to 1024 in
8099           lib/silccore/silcpacket.c.
8100
8101         * Added SILC_SKE_STATUS_FREED SKE status type and a reference
8102           counter to the SKE context that is incresed when the SKE library
8103           performs async operation outside the library.  If the outside
8104           process frees the SKE context and FREED status will be set
8105           and the library will detect after the sync operation that the
8106           libary is freed.  The affected files are
8107           lib/silcske/silcske[_status].[ch].
8108
8109         * Resolve the client entry information in the function
8110           silc_client_channel_message to assure that NULL pointer is not
8111           passed as client entry to the application. */
8112
8113         * Fixed the task timeout calculation to assure that there is
8114           never negative timeouts.  The affected file is
8115           lib/silcutil/silcschedule.c.
8116
8117         * Fixed the channel user mode notification sending in server.
8118           It was sent point-to-point to the router (or to server by router)
8119           but it needs to be destined to a channel.  The routines now
8120           supports sending the channel user mode notifys to the channels
8121           when announcing clients and channels.  Affected files are
8122           silcd/server.c and silcd/packet_receive.c.
8123
8124         * Fixed the CHANNEL_CHANGE notify handling in the client libary.
8125           It did not actually replace the old channel entry in the cache.
8126           Affected file lib/silcclient/client_notify.c.
8127
8128 Tue Jun 19 22:10:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8129
8130         * Fixed a possible crash in silc_packet_send_prepare.  It now
8131           assures always that there is enough space in the buffer and
8132           at the tail area of the buffer (for MAC).
8133
8134           Fixed the inbound buffer reallocation in silc_packet_read.
8135           It was old code and did not handle the reallocation correctly.
8136           Affected
8137
8138           The affected file is lib/silccore/silcpacket.c.
8139
8140         * Fixed buffer overflow in silc_parse_nickname in the file
8141           lib/silcutil/silcutil.c.
8142
8143 Tue Jun 19 13:40:09 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8144
8145         * make install generates new server keys only if there is not
8146           keys already.
8147
8148 Mon Jun 18 18:49:07 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8149
8150         * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
8151           Added check that if the NOREPLY is set then we will not send
8152           the away message.  This avoids infinite loop of away messages
8153           if both clients are away.  The affected file is
8154           lib/silcclient/client_prvmsg.c.
8155
8156         * Fixed client crash if /NICK was given without arguments.
8157           Affected file lib/silcclient/command.c.
8158
8159         * Server does not send the invite list in INVITE command back
8160           to the client if the list was not altered.  Added this notion
8161           to the protocol spec as well.  Affected file silcd/command.c.
8162
8163           Fixed possible crash in INVITE command by checking the
8164           value of silc_server_get_client_route command.
8165
8166         * Fixed the INVITE notify type handling.  The arguments are now
8167           taken in correct order and client does not crash.  The affected
8168           file is irssi/src/silc/core/silc-channels.c.
8169
8170           Removed the "Inviting xxx to channel" message from the
8171           client library away and let the application handle it.
8172           Affected file lib/silcclient/command.c.  Added that message
8173           to Irssi SILC client's message formats.
8174
8175         * Fixed CMODE command crash in client.  It now checks the
8176           amount of arguments correctly and does not crash.  The affected
8177           file is lib/silcclient/command.c.
8178
8179         * Do not create new channel automatically in silc_channels_join
8180           but check whether the channel by that name already exists.
8181           Affected file irssi/silc/core/silc-channels.c.
8182
8183         * Do not send the SERVER_SIGNOFF to router if the disconnected
8184           entity was the router.  Affected file silcd/server.c.
8185
8186         * Added the handling of the SERVER_SIGNOFF notify to the Irssi
8187           SILC client as it was missing from there.
8188
8189           Added the handling of the KICK notify to the Irssi SILC client
8190           as it was missing.  Added "you have been kicked" message to
8191           Irssi SILC client's message modules formats.
8192
8193           Added the handing of the KILL notify to the Irssi SILC client
8194           as it was missing.  Added the kill message module formats
8195           as well.
8196
8197           The affected file is irssi/src/silc/core/silc-channels.c.
8198
8199         * The router did not save the channel mode the server announced.
8200           Affected file silcd/packet_receive.c.
8201
8202         * Fixed a possible crash in INFO command in server.  If the
8203           server did not provide the server info it crashed.  Affected
8204           file silcd/command.c.
8205
8206 Sun Jun 17 15:26:05 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8207
8208         * Fixed the GETKEY command in the server to check also the
8209           global list.  Otherwise the GETKEY would not work correctly
8210           in normal SILC server.  Affected file silcd/command.c.
8211
8212 Sat Jun 16 18:00:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8213
8214         * Fixed GETKEY crash, it crashed if the command did not succseed.
8215
8216 Tue Jun 12 21:36:18 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8217
8218         * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
8219           is now real and not just an macro interface to GMP.
8220
8221           Removed the entire GMP from the source tree and imported new
8222           NSS MPI library instead.  Reason for removing GMP is that it is
8223           extremely large and compiles extremely slow.  The NSS MPI
8224           is only a few files and compiles in less than 10 seconds.
8225           The speed is also about the same as GMP.  The MPI is imported
8226           to lib/silcmath/mpi.
8227
8228           If the system has GMP installed we will still use the GMP.
8229           If it is not then the NSS MPI will be compiled.
8230
8231 Mon Jun 11 18:07:24 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8232
8233         * Merged a long nickname (127 characters long) crash bugfix from
8234           Irssi CVS tree.  Affected file irssi/src/core/misc.c.
8235
8236         * Merged a freed memory reference bugfix from Irssi CVS tree.
8237           Affected file irssi/src/core/commands.c.
8238
8239 Sun Jun 10 16:08:35 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8240
8241         * Added the server's public key sving and verification to the
8242           server when performing the SKE.  This was missing and the
8243           remote server's (or router's) public key was accepted without
8244           checking whether we have it previously or trust it at all.
8245           Affected file silcd/protocol.c.
8246
8247 Sat Jun  9 20:17:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8248
8249         * Check in the silc_server_timeout_remote if protocol is active
8250           and make sure that the protocol's final callback is called so
8251           that all memory if freed.  Affected file silcd/server.c.
8252
8253 Sat Jun  9 12:51:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8254
8255         * silc_server_whois_send_reply crashed the server if the nickname
8256           was 127 characters long.  Affected file silcd/command.c.
8257
8258 Thu Jun  7 16:29:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8259
8260         * Added sanity check to the silc_server_new_client. If the hostname
8261           is provided inside username then check that the provided hostname
8262           really is the same as the resolved one.  If the hostname was not
8263           resolved then check it from the public key.  Affected file is
8264           silcd/packet_receive.c.
8265
8266         * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
8267           if the server disconnected us and the connection is not valid
8268           anymore.  Affected file irssi/src/silc/core/silc-channels.c.
8269
8270         * Moved the silc_client_[chmode|chumode|chumode_char] away from
8271           the library to the lib/silcutil/silcutil.[ch].
8272
8273 Thu Jun  7 08:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8274
8275         * Close log file after open.  Affected file
8276           lib/silcutil/silclog.c.
8277
8278         * Check whether sock == NULL in silc_client_send_packet and return
8279           if it is.  Affected file lib/silcclient/silcclient.c.
8280
8281         * Check rec->entry == NULL in the Irssi SILC Client before
8282           sending the channel message.  Affecte file is
8283           irssi/src/silc/core/silc-servers.c.
8284
8285 Tue Jun  5 08:08:21 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8286
8287         * Merged a splitted window bugfix from Irssi CVS tree.  The
8288           affected file is irssi/src/fe-text/textbuffer-view.c.
8289
8290         * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
8291           It did not print nickname.
8292
8293         * Improved the distributions system a bit.
8294
8295 Mon Jun  4 17:57:16 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8296
8297         * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
8298           irssi/src/fe-text/gui-window.c.
8299
8300         * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
8301           to in-active server.  The affected file is
8302           irssi/src/silc/core/client_ops.c.
8303
8304         * Resolve the client in USERS command reply if the entry does
8305           not have username resolved.  The affected file is
8306           lib/silcclient/command_reply.c.  Also, changed the IDENTIFY
8307           command to WHOIS command to really resolve stuff.  The USERS
8308           is not used any more in any critical section so WHOIS can
8309           be used even though it might be slower than IDENTIFY.
8310
8311         * Changed the lib/silcutil/silchashtable.h header to ROBODoc
8312           format.
8313
8314 Sun Jun  3 14:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8315
8316         * Changed the protocol API a bit more consistent in the
8317           lib/silccore/silcprotocol.[ch].
8318
8319         * Changed the following headers to ROBODoc format:
8320
8321                 lib/silccore/silcpayload.h
8322                 lib/silccore/silcprotocol.h
8323                 lib/silccore/silcsockconn.h
8324
8325           All core library headers are now formatted.
8326
8327 Sat Jun  2 10:45:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8328
8329         * Fixed a bug in Irssi SILC client; do not show that you are
8330           server/router operator if you really are not.  Affected file is
8331           irssi/src/silc/core/client_ops.c.
8332
8333         * Renamed silc_command_free_payload to silc_command_payload_free.
8334           Affected file lib/silccore/silccommand.h
8335
8336         * Added silcmath.h to include the prototoypes of various routines
8337           in the lib/silcmath.  Removed the old modinv.h, mpbin.h and
8338           silcprimegen.h.
8339
8340         * Changed the following headers to ROBODoc format:
8341
8342                 lib/silccore/silcchannel.h
8343                 lib/silccore/silccommand.h
8344                 lib/silccore/silcid.h
8345                 lib/silccore/silcidcache.h
8346                 lib/silccore/silcmode.h
8347                 lib/silccore/silcnotify.h
8348                 lib/silccore/silcpacket.h
8349                 lib/silcmath/silcmath.h
8350
8351 Fri Jun  1 22:19:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8352
8353         * Added checking to the server code not to start the server if
8354           ciphers and stuff are not configured properly.  Affected files
8355           silcd/serverconfig.[h] and silcd/server.c.
8356
8357         * Changed the layout of the header files of the public interfaces
8358           in the SILC libraries.  The new layout supports ROBODoc
8359           documentation tool (and some others) so that it is easy to create
8360           a library reference manual.  All the other headers and source
8361           code must still follow the CodingStyle document.  Also source
8362           code must not include these ROBODoc stuffs, only the headers.
8363           Furthermore, all public interface headers must now be named
8364           by using `silc' prefix, example: silcapi.h, silccipher.h.
8365           Some files were renamed due to this.  All the other headers
8366           must not be used as public interfaces.  I will update the
8367           CodingStyle document later.  Changed following headers, so far:
8368
8369                 lib/silcclient/silcapi.h
8370                 lib/silccore/silcauth.h
8371                 lib/silccore/silcprivate.h
8372                 lib/silccrypt/silcdh.h
8373
8374 Fri Jun  1 10:28:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8375
8376         * Updated TODO.
8377
8378         * Removed silc_client_packet_send_flush from the client library
8379           as it is not needed.  Affected file lib/silcclient/client.[ch].
8380
8381         * Added printing of message of unresolved authentication method
8382           to the Irssi SILC client.  Added it to the module formats.
8383           Removed the same message from the client library.
8384
8385 Thu May 31 13:57:33 CEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8386
8387         * Added new distribution feature, DISTLABEL.  Every distribution
8388           can define own preprocessor label that can be used in the
8389           source code.  For example: #ifdef SILC_DIST_CLIENT.  Affected
8390           file distributions, acconfig.h.pre and prepare.
8391
8392 Tue May 29 22:16:40 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8393
8394         * Added Makefile.defines_int to include the actual definitions
8395           for Makefile.defines.in.  Tested the new distribution system,
8396           created distributions and tested installation.
8397
8398         * Added AWAY message printing to the Irssi SILC client.  Added
8399           the messages to the irssi/src/fe-common/silc/module-formats.[ch].
8400
8401         * Added SCONNECT command to call the SILC's CONNECT command.
8402           Cannot use CONNECT directly since Irssi uses that internally.
8403           Affected file irssi/src/silc/core/silc-servers.c.
8404
8405           Added ACTION local command.  It is same as ME command but takes
8406           the channel as mandatory argument.
8407
8408           Rewrote some of the Irssi's help files to suite for SILC
8409           protocol.
8410
8411 Mon May 28 19:05:22 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8412
8413         * Added Makefile.defines[.in] that should for now on be included
8414           in all Makefile.am file in the source tree.  That file includes
8415           all common compilation definitions for SILC source tree.
8416
8417 Mon May 28 10:30:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8418
8419         * Minor changes to the ./prepare script to change the package
8420           name according the distribution name to the configure.in.
8421
8422 Sun May 27 22:24:57 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8423
8424         * Created new distribution system.  Added file `distributions'
8425           that defines all the distributions that can be created out of
8426           the SILC source tree.  The ./prepare script now reads that
8427           file to determine how to prepare the distributions.  The
8428           first argument to the ./prepare is the name of the distribution
8429           and second is the version of the distribution.  If given
8430           without arguments it creates the default (toolkit) distribution
8431           with the default version (defined in ./prepare).
8432
8433           All Makefile.am files that are subject to the distributions
8434           are now named as Makefile.am.pre.  These are ./Makefile.am
8435           and lib/Makefile.am.  Others may be changed later.
8436
8437 Sun May 27 15:57:17 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8438
8439         * Added invite list, ban list, some key management and connection
8440           error message printing to module formats in the Irssi SILC client.
8441
8442         * Added new silc_client_set_away_message to set the away message
8443           that is back to the person who sent private message.  The
8444           affected file lib/silcclient/silcapi.h and the
8445           lib/silcclient/client_prvmsg.c.
8446
8447 Sun May 27 12:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8448
8449         * Fixed the private message sending in the Irssi SILC client,
8450           added local command KEY to the Irssi SILC client.
8451
8452           Added key management and key agreement message formats to the
8453           irssi/src/fe-common/silc/module-formats.[ch].
8454
8455           Added USERS (alias WHO) printing, server/router operator
8456           indication and LIST command printing to the module formats.
8457
8458 Sat May 26 17:43:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8459
8460         * Fixed channel joining notify handling, cumode notify handling
8461           from Irssi SILC client.
8462
8463         * Added SILC specific module-formats to the Irssi SILC client so
8464           that SILC specific message hilighting, colors etc is possible.
8465           Affected file irssi/src/fe-common/silc/module-formats.[ch].
8466
8467           Added channel mode, channel user mode, actions, notices,
8468           whois and whowas printing to the the module-formats.c.
8469
8470         * Fixed a bug in channel deletion in the server.  The channel
8471           is not left to the cache even if the channel founder auth mode
8472           is set when there are no users anymore on the channel.  Affected
8473           file silcd/server.c.
8474
8475         * The silc_net_localhost now resolves the entire hostname including
8476           the domain name.  Affected file lib/silcutil/silcnet.c.
8477
8478 Sat May 26 12:13:37 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8479
8480         * Changed the ask_passphrase client operation to be ascynchronous.
8481           It has now a completion callback and a context that the
8482           application must call after it has got the passphrase from
8483           the user.  Affected files lib/silcclient/silcapi.h,
8484           lib/silcclient/protocol.c, lib/silcclient/command.c and
8485           silc/client_ops.c.
8486
8487           Added SilcAskPassphrase callback that the application calls
8488           to deliver the passphrase to the library.
8489
8490         * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
8491           The public key verification and especially a certificate
8492           verification is asynchronous procedure.
8493
8494           Added new SILC_SKE_STATUS_PENDING status to indicate the
8495           request is pending and a callback will be called to finalize
8496           the request.
8497
8498           Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
8499           indicate that remote end did not send its public key (or
8500           certificate), even though we require it.  Added check for this
8501           condition in the SKE.  This was a security bug, now fixed.
8502
8503           Defined new SilcSKEVerifyCbCompletion callback that is called
8504           when the verification process is completed.
8505
8506           The affected files lib/silcske/silcske_status.h and
8507           lib/silcske/silcske.[ch].
8508
8509         * Changed the verify_public_key client operation to be async
8510           as well.  Defined SilcVerifyPublicKey callback that is used to
8511           indicate the success of the public key verification process.
8512
8513           Changed the server and client to use the new async client
8514           operations.
8515
8516         * Changed the Irssi SILC client's internal scheduler to be called
8517           twice as many times as it used to be.  As a result the client
8518           should be a bit faster now.  Affected file is
8519           irssi/src/silc/core/silc-core.c.
8520
8521         * Added support to Irssi SILC client of asynchronous public key
8522           verification and passphrase inquiry.  Affected file is
8523           irssi/src/silc/core/silc-core.c.
8524
8525 Fri May 25 14:38:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8526
8527         * Do not say "You have left channel %s" in client library.
8528           Moved it to the application.  Affected files are
8529           lib/silcclient/command.c and silc/client_ops.c.
8530
8531         * Fixed silc_client_get_clients.  Command context was not
8532           duplicated and was freed memory in the callback.  Affected
8533           file lib/silcclient/idlist.c.
8534
8535         * Do not say "you are now talking..." on JOIN command in the
8536           client library.  The appliation must handle it.
8537
8538         * Do not say ".. changed topic to" in command reply in the
8539           client libary.  The application must handle it.
8540
8541         * Fixed TOPIC command sending in the client library.
8542
8543         * Fixed a memory leak in silc_client_command_free in the file
8544           lib/silcclient/command.c.
8545
8546 Thu May 24 19:08:55 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8547
8548         * Imported a modified version of Irssi client to the source tree.
8549           The Irssi will be used to create a new client called
8550           Irssi SILC.  Imported to irssi/.
8551
8552           Added silc_core_init_finish function to the Irssi.  Affected
8553           file irssi/configure.in.
8554
8555           A lot changes in the Makefile.ams around the irssi tree.
8556
8557 Tue May 22 22:23:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8558
8559         * Do not rehash if the new size is same as the old size of the
8560           hash table, in the silc_hash_table_rehash*.  The affected file
8561           lib/silcutil/silchashtable.c.
8562
8563         * Replaced hash_table_del_by_context calls from the server
8564           (when channel->user_list and client->channels) to the
8565           hash_table_del as it is sufficient and faster.
8566
8567 Tue May 22 17:27:16 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8568
8569         * Added silc_hash_table_list, silc_hash_table_get and the
8570           SilcHashTableList structure to provide an alternative way to
8571           traverse the hash table.  The affected files are
8572           lib/silcutil/silchashtable.[ch].
8573
8574         * Changed the server's idlist routines to use the hash table
8575           routines to optimize the code.
8576
8577 Mon May 21 21:46:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8578
8579         * Replaced the client entry's `channel' list and channel entry's
8580           `user_list' list to hash tables for optimized lookup.  Changed
8581           the code to use the hash table interface around the code.
8582           Affected file lib/silcd/idlist.[ch].
8583
8584         * Added `auto_rehash' boolean argument to the function
8585           silc_hash_table_alloc to indicate whether the hash table should
8586           auto-rehash when it thinks is appropriate time.  It will
8587           increase the hash table size if the there is twice as much
8588           entries in the table than the size of the table, and will
8589           decrease the size if there are twice as less entries than
8590           the size of the table.
8591
8592 Mon May 21 09:51:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8593
8594         * Fixed silc_xxx_get_supported to not crash at some circumstances.
8595
8596 Sun May 20 13:45:58 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8597
8598         * silc_idcache_purge_by_context deletes the entry now by context
8599           as it is supposed to do.  Affected file lib/silccore/idcache.c.
8600
8601         * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
8602           client is not anymore valid (WHOWAS givens the info) and not
8603           the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
8604
8605 Sat May 19 16:30:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8606
8607         * Removed the `data' and `data_len' arguments from the ID Cache
8608           interfaces and added `name' argument.  ID Cache does not handle
8609           anymore the binary data only a names associated with given ID.
8610
8611         * When hashing a Client ID with silc_hash_id the entire ID is
8612           not hashed anymore, instead only the hash of the Client ID is
8613           hashed.  This way we can access the Client ID from the cache
8614           with Client ID but with the hash of the ID (which is a hash of
8615           the nickname) as well without any difference in performance.
8616
8617           Added also silc_idcache_find_by_id_one_ext to do one on one
8618           searching when we have the actual ID.  Added also function
8619           silc_hash_client_id_compare.  The affected files are
8620           lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
8621
8622         * When hashing the name associated with a ID it is always done
8623           in lowercase.  This way we can access the cache without worrying
8624           about case-sensitivity, even though, for example nicknames are
8625           case sensitive.
8626
8627         * Fixed a bug in server with channel message sending.  It put
8628           wrong ID type as destination ID.  The affected file
8629           silcd/packet_send.c.
8630
8631         * silc_idcache_del_by_context now deletes from all hash tables
8632           by context.  Affected file lib/silccore/idcache.c.
8633
8634 Fri May 18 17:42:00 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8635
8636         * Changed the client library to use the new ID Cache interface.
8637           Changes around the source tree.
8638
8639         * Added silc_hash_table_rehash_ext to rehash with specific
8640           hash function.  Affected file lib/silcutil/silchashtable.[ch].
8641
8642         * Added silc_hash_string_compare to compare two strings in the
8643           hash table.  Affected file lib/silcutil/silcutil.[ch].
8644
8645 Fri May 18 11:18:45 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8646
8647         * Added new function silc_idcache_del_by_context into the
8648           lib/silccore/idcache.[ch].
8649
8650         * Changed the server's ID list routines to use the new ID Cache
8651           interface.  Changes around the source tree.
8652
8653 Fri May 18 08:35:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8654
8655         * Added silc_hash_table_del[_by_context]_ext functions in to the
8656           lib/silcutil/silchashtable.[ch].
8657
8658           Removed silc_hash_table_find_all* routines and added new
8659           silc_hash_table_find_foreach to replace them.
8660
8661           Added silc_hash_table_replace_ext function as extended
8662           replacing function.  Separated the simple hash table interface
8663           from the extended hash table interface in the file
8664           lib/silcutil/silchashtable.h.
8665
8666         * Fixed minor bugs and changed it to use some of the new
8667           hash table functions in lib/silccore/idcache.c
8668
8669 Thu May 17 18:15:12 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8670
8671         * Added new function silc_hash_table_find_all to return all keys
8672           in the hash table by the specified key.  As the hash table is
8673           collision resistant it also makes it possible to have several
8674           duplicate keys in the hash table.  This function may be used to
8675           find all of the keys from the hash.
8676
8677           Added user_context arguments to the SilcHashFunction,
8678           SilcHashCompare and SilcHashDestructor to deliver user specified
8679           context.
8680
8681           Added new fuctions silc_hash_table_find[_all]_ext to do
8682           extended lookup with specified hash and compare functions and
8683           specified user contexts.
8684
8685           Added new function silc_hash_table_add_ext to add the key
8686           with specified hash function and user context.
8687
8688           Added new function silc_hash_table_foreach to traverse all
8689           entrys in the hash table.  Added SilcHashForeach callback
8690           function.
8691
8692           Added new function silc_hash_table_del_by_context to delete
8693           the entry only if the context associated with the key matches.
8694
8695           Affected files are lib/silcutil/silchashtable.[ch].
8696
8697         * Removed silc_hash_[server/client/channel]_id and added just
8698           silc_hash_id to the lib/silcutil/silcutil.[ch].  Added also
8699           silc_hash_id_compare to compare two ID's using as the hash table
8700           comparison function.  Added also silc_hash_data to hash
8701           binary data and silc_hash_data_compare to compare it.
8702
8703         * Removed silc_idlist_find_client_by_hash as it is not needed
8704           anymore.  Affected file silcd/idlist.[ch].
8705
8706         * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
8707           to use internally the SilcHashTable.  The new ID Cache is a lot
8708           faster than the old one.  Some of the ID Cache interface was also
8709           rewritten and obsolete and stupid functions were removed.
8710
8711 Wed May 16 23:03:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8712
8713         * Added entry_count field to the SilcHashTable to keep the number
8714           of the entries in the table.  Implemented the function
8715           silc_hash_table_rehash.  Added new function
8716           silc_hash_table_count.  Affected file lib/silcutil/silchashtable.c.
8717
8718           Fixed a minor bug in silc_hash_table_free.
8719
8720         * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
8721           silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
8722           into the lib/silcutil/silcutil.[ch].
8723
8724 Wed May 16 20:02:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8725
8726         * Implemented a collision resistant hash table into the
8727           lib/silcutil/silchashtable[ch].  See the header and the source
8728           for the SilcHashTable API.
8729
8730 Tue May 15 22:05:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8731
8732         * Merged dotconf version 1.0.2 into lib/dotconf.
8733
8734 Sun May 13 19:32:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8735
8736         * Do not compile anything in lib/silcsim/* if the SIM support
8737           is not enabled.  The tree should now compile without problems
8738           under cygwin.
8739
8740 Thu May 10 22:49:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8741
8742         * Compiled the SILC under cygwin.  Compiled and tested briefly
8743           without problems.  More tests needed.  The SIMs didn't compile
8744           though.
8745
8746         * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
8747
8748         * Fixed possible crash in silc_get_username in the
8749           lib/silcutil/silcutil.c.
8750
8751 Tue May  8 09:04:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8752
8753         * Fixed a va_arg in silc/client_ops.c.
8754
8755         * Oops, RC5 routines were named AES and caused some problems
8756           when not using SIM's.  Affected file lib/silccrypt/rc5.c.
8757
8758 Sun May  6 13:59:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8759
8760         * Added new SilcIDIP structure into the lib/silccore/id.h and
8761           replaced the old `ip' fields from all SILC ID's to that type.
8762           This is a step towards IPv6 support.
8763
8764           The silc_id_get_len takes now the ID as an extra argument.
8765           The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
8766           both IPv4 and IPv6 based ID's.
8767
8768           The affected files are lib/silccore/id.[ch] and other files
8769           around the tree using these routines.
8770
8771         * Removed the ID length arguments in server from various
8772           silc_server_send_notify_* routines -> they are not needed
8773           anymore.
8774
8775 Sat May  5 13:56:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8776
8777         * Fixed memory leak in silc_encode_pem_file in the file
8778           lib/silcutil/silcutil.c.
8779
8780 Thu May  3 21:23:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8781
8782         * Check minor version as well in the SKE.  Affected files are
8783           silcd/protocol.c and lib/silcclient/protocol.c.
8784
8785         * Added --identifier option to the server so that an identifier
8786           can be when creating the public key for the server.  Affected
8787           file is silcd/silcd.c.
8788
8789         * Fixed minor decoding bug in silc_pkcs_decode_identifier in
8790           lib/silccrypt/silcpkcs.c.
8791
8792 Wed May  2 20:50:49 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8793
8794         * Register default ciphers and stuff when using -C option with
8795           the server.  Affected file sildc/silcd.c.
8796
8797         * Put back the servers public key filename format, it is better
8798           than the new one.  For now, the client keys are saved with the
8799           new filename format.  The affected file silc/client_ops.c.
8800
8801         * Implemented the Cipher API for the rest of the ciphers that
8802           did not implement it or implemented it the wrong way.
8803
8804 Wed May  2 13:31:26 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8805
8806         * Register default ciphers and stuff when using the -S option
8807           in the client.  Affected file silc/silc.c.  Same also when
8808           creating new key pair with -C option.
8809
8810 Tue May  1 14:18:13 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8811
8812         * Fixed the silc_verify_public_key client operation function to
8813           save the public keys differently.  The fingerprint is now
8814           used as filename and not the hostname.  This way also the
8815           client keys are saved uniquely and not with hostnames.  The
8816           affected file is silc/client_ops.c.
8817
8818         * Trimmed the silc_hash_fingerprint function to remove extra
8819           whitespaces from the end of the fingerprint.  The affected
8820           file is lib/silccrypt/silchash.c.
8821
8822         * Updated TODO.
8823
8824         * Added silc_cipher_register_default function to register all
8825           default ciphers.  It can be used when configuration files
8826           does not exist and the application does not want any specific
8827           ciphers in any specific order.
8828
8829           The SilcDList is now used as silc_cipher_list dynamically
8830           allocated cipher list.  Removed the static list all together
8831           and now all ciphers must be allocated to the dynamic list.
8832           The silc_cipher_alloc routine was changed to check only the
8833           dynamic list.
8834
8835           All silc_cipher_* routines that used to return int returns
8836           now bool.
8837
8838           The affected files lib/silccrypt/silccrypt.[ch].
8839
8840         * The same thing was done to silc_hash_* as for silc_cipher_*
8841           routines.  Affected files lib/silccrypt/silchash.[ch].
8842
8843         * The same thing was done to silc_pkcs_* as for silc_cipher_*
8844           routines.  Affected files lib/silccrypt/silcpkcs.[ch].
8845           Added also silc_pkcs_[un]register[_default] functions.
8846           Removed the data_context from the PKCS API.
8847
8848         * Added silc_hmac_register_default function to register default
8849           hmacs.  Affected files lib/silccrypt/silchmac.[ch].  Added also
8850           SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
8851           to unregister all hmacs at once.
8852
8853         * Register the default ciphers, hash functions, PKCSs and HMACs
8854           if client's configuration file does not exist.  The affected
8855           file silc/silc.c.
8856
8857         * The client did not load the hash functions from the SIM
8858           modules at all.  Added support for this.  Affected file is
8859           silc/clientconfig.c.
8860
8861         * When decoding public key with silc_pkcs_public_key_decode, check
8862           the supported algorithm only if PKCS are registered.  Affected
8863           file lib/silccrypt/silcpkcs.c.  The same was done with the
8864           silc_pkcs_private_key_decode.
8865
8866         * Fixed the SILC List routines to keep the list always in order.
8867           It used to change the list's order when traversing the list but
8868           not it preserves the order.  Affected file lib/trq/silclist.h.
8869
8870 Mon Apr 30 17:29:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8871
8872         * Added the client library to use the SilcSocketConnection's
8873           reference counter (by silc_socket_dup) to prevent the bug that
8874           the socket object may be freed underneath async operation.
8875
8876         * The name resolv library checking fixes in the configure.in.pre.
8877           The patch by salo.
8878
8879         * Created new version of the protocol drafts for future
8880           development. The -03 drafts are the ones that will be changed
8881           in the trunk now and the -02 will remain as they are.
8882
8883         * Send list of CUMODE notifys to the router when announcing
8884           the channel users to the router.  Affected file silcd/server.c.
8885           If the router receiving channel founder CUMODE for a channel
8886           that already has channel founder it will send CUMODE notify
8887           to the sender to remove the channel founder rights from the
8888           announced client.  Affected file silcd/packet_receive.c.
8889
8890         * The CUMODE notify may now use Server ID as well as the entity
8891           who changes the mode.  Updated protocool specs.
8892
8893         * Updated INSTALL and README files.
8894
8895 Sun Apr 29 23:17:50 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8896
8897         * New web pages in the http://silc.pspt.fi.  The pages was
8898           designed by salo.
8899
8900         * Updated CREDITS.
8901
8902 Sun Apr 29 13:33:41 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8903
8904         * Implemented the [DenyConnectin] config section in the server.
8905           Added silc_server_config_denied_conn to check whether incoming
8906           connection is denied.  Affected file silcd/serverconfig.[ch].
8907
8908         * Do not check the ports when checking the incoming configuration
8909           data if the port is 0, meaning any.  Affected file is
8910           silcd/serverconfig.c.
8911
8912 Fri Apr 20 18:58:43 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8913
8914         * Fixed buffer overflow in silc_string_compare in the file
8915           lib/silcutil/silcutil.c.
8916
8917         * Fixed double free in silc_server_command_leave in the file
8918           silcd/command.c.
8919
8920 Fri Apr 20 14:00:11 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8921
8922         * Fixed the version checking in the server.  Affected file is
8923           silcd/protocol.c.
8924
8925 Thu Apr 19 19:52:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8926
8927         * Fixed the configuration data fetching when accepting new
8928           connections in the server.  Affected file silcd/server.c.
8929
8930 Thu Apr 19 11:40:20 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8931
8932         * Added `sender_entry' argument to the function
8933           silc_server_packet_relay_to_channel so that we can check
8934           whether some destination actually belongs to the same route
8935           the sender belongs (ie, we must not resend the packet to the
8936           sender).  Affected file silcd/packet_send.[ch].
8937
8938         * Added `servername' field to the SilcClientEntry in the server
8939           to hold the name of the server where client is from.  Affected
8940           file is silcd/idlist.h.
8941
8942 Wed Apr 18 22:19:03 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8943
8944         * Moved the channel message encrypting in the router betwen
8945           router connections from silc_server_channel_message to the
8946           silc_server_packet_relay_to_channel since we want to check
8947           whether we have anybody channel before encrypting anything.
8948           Affected files silcd/packet_[receive/send].c.
8949
8950 Tue Apr 17 21:18:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
8951
8952         * Fixed the [AdminConnection] server config section to support
8953           multiple entries.  Affected file silcd/serverconfig.c.
8954
8955         * Added support into the server to check the validity of the
8956           incoming connection before executing any KE or authentication
8957           protocols.
8958
8959         * The connection configuration is now saved to the KE and
8960           connection auth protocol contexts and not fetched anymore in
8961           the protocol.  Affected files silcd/server.c, silcd/protocol.[ch].
8962
8963         * The local hosts listenning address and port is also resolved
8964           now when starting the server.  We want to have the socket object
8965           to include the real address and port for the listener.  Added
8966           new function silc_net_check_local_by_sock into the files
8967           lib/silcutil/silcnet.[ch].
8968
8969         * Fixed a broadcast bug in server -> do not broadcast if we
8970           are standalone.
8971
8972         * Fixed a routing bug.  Do not route broadcast packets ever.
8973           Broadcast packets must be processed always and not routed since
8974           they may be destined to some other host than yourself and thus
8975           would get routed without no good reason.  Affected file is
8976           silcd/server.c.
8977
8978         * Added function silc_server_config_is_primary_route to check
8979           whether primary router connection has been configured (a router
8980           configuration that we are initiating).  If there is not, we
8981           will assume that there is only two routers in the SILC network
8982           and we will use the incoming router connection as our primary
8983           route.  Affected files silcd/serverconfig.[ch], silcd/server.c.
8984
8985         * Changed the order of the broadcasting.  Broadcast _after_ the
8986           packet has been processed not before.  Affected file is
8987           silcd/server.c.
8988
8989         * Fixed a [ClientConnection] parsing bug.  The port was never
8990           parsed correctly thus resulting to port 0.  Affected file
8991           silcd/serverconfig.c.
8992
8993         * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
8994           argument and did not set the broadcast packet flag.  Affected
8995           file silcd/packet_send.c.  Fixed same bug in the function
8996           silc_server_send_notify as well.
8997
8998         * If we receive NEW_ID packet for our own ID in the server, ignore
8999           the packet.
9000
9001 Mon Apr 16 12:10:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9002
9003         * Updated TODO.
9004
9005         * Removed the nickname from the Private Message Payload.
9006           Updated the code and the protocol specs.
9007
9008         * Updated protocol specs for submitting to the IETF.
9009
9010         * Tweaked the Random Number Generator a bit.  Affected file
9011           lib/silccrypt/silcrng.c.  Exported a new function
9012           silc_rng_[global]_add_noise which can be used to add more
9013           noise to the RNG.
9014
9015 Sat Apr 14 16:21:32 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9016
9017         * Do not parse packets with different timeout when protocol
9018           is active -> may cause problem with rekey.  Affected file
9019           silcd/server.c.
9020
9021         * When server receives signoff notify it must not create
9022           new channel key if the client is on any channels since the
9023           sender of the signoff notify will create it.
9024
9025 Fri Apr 13 17:12:46 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9026
9027         * Added printing of error messages during SKE protocol from the
9028           failure packet sent by server during SKE.  Affected file
9029           silc/client_ops.c.
9030
9031         * Removed the client's failure_callback handling with timeout
9032           and handle it immediately when received.
9033
9034         * The SKE library returned wrong type in SUCCESS and FAILURE
9035           packets.  They must be 32 bit MSB not 16 bit MSB.
9036
9037 Fri Apr 13 00:09:08 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9038
9039         * Ok, rewrote the logic of the re-key and now it seems to work.
9040           I tested it on high traffic with frequent re-keys without
9041           problems.  Added hmac_receive (and renamed hmac to hmac_send)
9042           in SilcClientConnection in lib/silcclient/client.h and
9043           in SilcIDListData in silcd/idlist.h.  Also, removed the
9044           SilcPacketParserContext's cipher and hmac fields as they are
9045           not needed anymore and actually caused some problems when
9046           the ciphers and hmac's changed underneath the packet parser.
9047
9048 Thu Apr 12 14:42:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9049
9050         * If re-key protocol is active then process the incoming packets
9051           synchronously since we must assure that icoming packets encrypted
9052           with the old key is processed before the new keys is set to
9053           use.  This is true other packets than for REKEY packets.
9054           Affected file silcd/server.c.  The same was done to client library
9055           as well, affected file lib/silcclient/client.c.
9056
9057 Thu Apr 12 12:01:52 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9058
9059         * Fixed bug in client and server to accept the force send if
9060           the packet is send from silc_[server/client]_packet_process
9061           function.  Otherwise the packets are never delivered, oops.
9062
9063 Wed Apr 11 22:10:15 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9064
9065         * Disable force sending of packets when REKEY protocol is active.
9066           We must assure that no packet is sent directly when rekey is
9067           performed.  All packets must be sent through packet queue.
9068           Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
9069           SILC_CLIENT_IS_REKEY to lib/silcclient/client.h.  Affected
9070           function is silc_[server/client]_packet_send_real to check
9071           the situation.
9072
9073         * Replaced the SIM paths from example config files to
9074           /usr/local/modules.  Also, make install creates now
9075           /usr/local/silc/logs directory to hold all the SILC server
9076           logs.
9077
9078 Wed Apr 11 16:59:59 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9079
9080         * Made the configure.in.pre work on Solaris.  Patch by salo.
9081
9082         * Made all ciphers compatible with non-x86 machines.  Defined
9083           CBC mode macros into lib/silccrypt/ciphers_def.h.
9084
9085 Tue Apr 10 20:32:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9086
9087         * Fixed the make install.
9088
9089 Tue Apr 10 16:20:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9090
9091         * When MAC computation fails the silc_packet_decrypt returned 0
9092           even though it was supposed to return -1.  Fixed this.  The
9093           affected file is lib/silccore/silcpacket.c.
9094
9095         * Do not replace the config files in /etc/silc (in make install)
9096           if they already exist.  Affected file ./Makefile.am.
9097
9098         * Do not send re-key packets immediately but through packet queue.
9099           Affected file silcd/protocol.c and lib/silcclient/protocol.c.
9100
9101         * Changed silc_net_check_host_by_sock to return FALSE if the
9102           IP/DNS could not be resolved.  Though, it returns the IP address
9103           now even if it could not resolve it (but returns also FALSE).
9104           Affected file lib/silcutil/silcnet.[ch].
9105
9106 Mon Apr  9 21:54:44 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9107
9108         * Added silc_pkcs_decode_identifier to decode the public key's
9109           identifier.  Affected file lib/silccrypt/silpkcs.[ch].
9110           Added also silc_pkcs_free_identifier.  Added also new context
9111           SilcPublicKeyIdentifier.
9112
9113         * Added -S option to the silc client.  It is used to dump the
9114           contents of the specified public key file.
9115
9116         * Changed the PKCS api to return the public key length when
9117           setting the public key.
9118
9119         * Fixed a fatal bug in the public and private key file loading.
9120           Affected file lib/silccrypt/silcpkcs.c.
9121
9122         * Execute the packet parsing for client with zero (0) timeout
9123           if the protocol is active.  Affected file silcd/server.c.
9124
9125 Sun Apr  8 19:30:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9126
9127         * Made the key generation options to the silcd program.  Added
9128           -C option, equivalent to client's option.
9129
9130         * Added new [ServerKeys] config section to the server.  It
9131           configures the server's public and private key.
9132
9133         * Defined generic Public Key Payload into the protocol
9134           specification to send specific type of public keys and
9135           certificates.
9136
9137         * Defined new command SILC_COMMAND_GETKEY to fetch a client's
9138           public key or certificate.
9139
9140         * Implemented the GETKEY command to the server and to the
9141           client library and on user interface.
9142
9143 Sun Apr  8 01:37:21 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9144
9145         * Made preliminary `make install' work.
9146
9147 Thu Apr  5 17:42:30 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9148
9149         * Added SilcServerRekey context into silcd/idlist.h.
9150
9151         * Added the PFS support as defined in the specification to the
9152           SKE protocol.  Affected files lib/silcske/*.c.
9153
9154         * Added `ske_group' field to the SilcServerRekey context to hold
9155           the number of the SKE group that is used with PFS in re-key.
9156           Affected file silcd/idlist.h.
9157
9158         * Added PFS re-key support to the server.  Affected file is
9159           silcd/protocol.c.
9160
9161         * Added silc_protocol_cancel to cancel execution of the next
9162           state of the protocol.  Affected file is
9163           lib/silccore/silcprotocol.[ch].
9164
9165         * Added the re-key support with and without PFS to the client
9166           library.  Re-key is performed once in an hour, by default.
9167
9168           Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
9169           Added silc_client_rekey_callback and silc_client_rekey_final.
9170           Affected files are lib/silcclient/protocol.[ch] and
9171           lib/silcclient/client.[ch].
9172
9173         * Removed the `hmac_key' and `hmac_key_len' fields from the
9174           SilcClientConnection structure; not needed.  Affected file is
9175           lib/silcclient/client.h.
9176
9177         * Updated TODO.
9178
9179 Wed Apr  4 16:32:31 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9180
9181         * Do not ask whether user wants to use the negotiated private key
9182           for private messages, just use it.  Affected file is
9183           silc/local_command.c.
9184
9185         * Added `send_enc_key' and `enc_key_len' fields to the
9186           SilcIDListData structure since they are needed in the re-key
9187           phase.  Affected file is silcd/idlist.[ch].
9188
9189         * Implemented the simple re-key protocol into the server.
9190           Affected files silcd/server.c and silcd/protocol.[ch].  The
9191           re-key will be performed once in an hour, by default.
9192
9193           Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
9194           Added silc_server_rekey, silc_server_rekey_callback and
9195           silc_server_rekey_final.
9196
9197         * Removed Tunneled flag from the protocol.  Updated the code
9198           and the specifications.
9199
9200         * Adde `pfs' field to the SilcIDListData to indicate whether
9201           the PFS is to be performed in the re-key.  Affected file is
9202           silcd/idlist.h.
9203
9204 Tue Apr  3 21:52:42 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9205
9206         * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
9207           int64 of at least the xintXX size.  If void * is less that 4
9208           bytes uint32 * will be used.  Defined bool as boolean.
9209
9210         * Changed _ALL_ unsigned long and unsigned int to uint32,
9211           unsgined short to uint16 in the source tree.
9212
9213         * Fixed a fatal bug in silc_server_remove_clients_by_server.  Do
9214           not handle clients that has entry->data.registered == FALSE.
9215           They are not in the network anymore.  Affected file is
9216           silcd/server.c.
9217
9218 Tue Apr  3 16:39:19 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9219
9220         * Implemented the sending of the SERVER_SIGNOFF notify in the
9221           server.  Affected file is silcd/server.c.
9222
9223         * Added silc_server_send_notify_args into silcd/packet_send.[ch].
9224           Added also silc_notify_payload_encode_args into the
9225           lib/silccore/silcnotify.[ch].
9226
9227         * Implemented ther SERVER_SIGNOFF notify handling in the server.
9228           Affected file silcd/packet_receive.c.
9229
9230         * Implemented the SERVER_SIGNOFF notify handling in the client
9231           library.  Affected file lib/silcclient/client_notify.c.  Also,
9232           implemnted the printing of the SERVER_SIGNOFF info to the
9233           application.  Affected file silc/client_ops.c.
9234
9235         * The silc_idlist_del_server now returns TRUE or FALSE to indicate
9236           if the deleting was successful.  Affected file silcd/idlist.[ch].
9237
9238         * Added support for public key authentication in the connection
9239           authentication protocol in the client library.  Affected file
9240           lib/silcclient/protocol.c.
9241
9242         * Changed the server's silc_idlist_get_clients_by_* interface
9243           to support already allocated array so that new entries may be
9244           added to pre-allocated array.  Affected file silcd/idlist.[ch].
9245           This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
9246           and command replies.
9247
9248         * All command reply functions in the server now calls the
9249           pending command callback even if error occured.  This way the
9250           error will be delivered to the client as well.  Affected files
9251           silcd/command.c and silcd/command_reply.c.
9252
9253         * Fixed INFO command to return local server's info if no server
9254           was provided.  Affected file lib/silcclient/command.c.
9255
9256         * Removed RESTART command for good.  Updated the code and the
9257           protocol specs.
9258
9259         * Rewrote parts of the task system.  It is a bit simpler now.
9260           Removed unsued task priorities. The affected files are
9261           lib/silcutil/silctask.[ch].
9262
9263 Mon Apr  2 20:02:33 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9264
9265         * Moved the USERS printing from the library to the application.
9266           Affected files lib/silcclient/command.c and silc/client_ops.c.
9267
9268 Mon Apr  2 13:13:23 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9269
9270         * Updated TODO.
9271
9272         * Added channel key re-key support.  The re-key is perfomed
9273           only by the router and is done once in an hour.  Added `rekey'
9274           field to the SilcChannelEntry in the server.  Affected files
9275           silcd/server.c and silcd/idlist.h.
9276
9277         * Added silc_task_unregister_by_context into the file
9278           lib/silcutil/silctask.[ch].
9279
9280 Sun Apr  1 19:49:34 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9281
9282         * Added SILC_UMODE_GONE mode to indicate when the client is not
9283           present in the SILC network.  Added also support to the local
9284           command AWAY that will set this mode.  Added support of showing
9285           "xxx is gone" in WHOIS command.  The USERS command shows the
9286           gone status as well.
9287
9288         * Fixed setting server and router operator privileges in the
9289           server's UMODE command.  Affected file silcd/command.c.
9290
9291         * Merged the SKE KE1 and KE2 payloads into one payload.  The
9292           new KE payload is equivalent to the old KE2 payload.
9293
9294           Cleaned up the SKE Start Payload parsing.  It now uses the
9295           simple buffer unformatting to do the parsing.  A lot faster
9296           now.
9297
9298           Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
9299           to the SKE that is used to indicate whether both of the SKE
9300           parties should perform authentication.  By default only the
9301           responder performs authentication.  By setting this flag also
9302           the initiator must do authentication.  By default it is unset
9303           since in normal SKE case, client to server connection, only
9304           the responder should do authentication.  When doing SKE between
9305           two clients both should perform authentication.  Updated the
9306           code and the protocol specs.
9307
9308         * A little fix to IDENTIFY command in the server.  Search the
9309           client first by hash not nickname.  Affected file is
9310           silcd/command.c.
9311
9312         * Fixed the silc_client_close_connection to support closing
9313           the client to client connections wihtout deleting too much
9314           data.  Affected file lib/silcclient/client.c.
9315
9316         * Fixed a fatal bug in server and client; if KE1 or KE2 packets
9317           are received if protocol used to be active but is not anymore
9318           the application would crash due to NULL pointer dereference.
9319           Affected files silcd/server.c and lib/silcclient/client.c.
9320
9321         * Added `hash' field to the SilcClientConnection to include
9322           the hash function negotiated in the SKE protocol.
9323
9324         * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
9325           to set the channel founder authentication data.  A client can
9326           claim the founder rights later by providing the authentication
9327           data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
9328           This way the channel founder can regain the channel founder
9329           privileges even it is left the channel.  This works only on
9330           local server and the client must be connected to the same
9331           server to be able to regain the founder rights.  Updated the
9332           protocol specs accordingly.
9333
9334           Added support to the CMODE command in the client to set the
9335           founder auth data.  Read the README to see how to set it.
9336
9337           Added support to the CUMODE command to claim the founder
9338           rights.  Read the README to see how to do it.
9339
9340           Added support for the founder authentication to the Channel
9341           Entry in the server.  Affected file silcd/idlist.h.
9342
9343           Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
9344           server's CMODE command.  Affected file silcd/command.c.
9345
9346         * Added the following new functions into lib/silccore/silcauth.[ch]:
9347           silc_auth_get_method and silc_auth_get_data.
9348
9349         * The server now saves the remote hosts public key to the
9350           SilcIDListData pointer.  Affected file silcd/protocol.c.
9351
9352         * The normal server now does not remove the channel entry from
9353           the cache if the founder authentication data is set.  It used
9354           to remove it if the founder was the last one on the channel on
9355           the server and left the channel.  The auth data is saved and
9356           if the channel is re-joined later the old entry is used with
9357           the old auth data.  Affected files silcd/command_reply.c and
9358           silcd/server.c.
9359
9360         * Removed the `pkcs' field from the SilcIDListData structure
9361           in the server; it is not used.  Affected file silcd/idlist.h.
9362
9363 Sat Mar 31 15:38:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9364
9365         * Fixed packet processing on slow links.  Partial packets were
9366           never re-processed because the incoming data buffer was cleared
9367           by the application.  Application must not directly clear the
9368           sock->inbuf, the packet processing routines handle it.  Fixed
9369           this in client library and in server.
9370
9371 Fri Mar 30 16:35:27 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9372
9373         * Fixed the WHOIS and IDENTIFY send reply function to really
9374           check whether to send list or just one entry.  Affected file
9375           silcd/command.c.
9376
9377         * Cleaned up the LEAVE command's channel key distribution.  The
9378           affected file silcd/command.c.
9379
9380         * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
9381           can enforce the channel mode as well.  In that case the ID
9382           includes the ID of the server.  The code now enforces the
9383           mode change if the router have different mode than the server.
9384
9385         * The notify client operation with CMODE_CHANGE notify can now
9386           return NULL client_entry pointer if the CMODE was not changed
9387           by client.  Application must check for this.
9388
9389         * Added <Server ID> argument to INFO command to support server
9390           info fetching by Server ID.
9391
9392         * Added silc_server_announce_get_channel_users to get assembled
9393           packets of channel users of the specified channel.  Affected
9394           file silcd/server.[ch].
9395
9396         * Fixed bug in CHANNEL_CHANGE notify in the server.  The new ID
9397           was freed underneath the ID Cache.
9398
9399         * Re-announce clients when the server received CHANNEL_CHANGE
9400           notify from the router.  Affected file silcd/packet_send.c.
9401
9402 Thu Mar 29 19:10:28 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9403
9404         * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
9405           crashed since it did not handle the fact that there is no cipher
9406           called "3" and didn't check the error condition.  Now fixed.
9407
9408         * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
9409           flag.  It can be used to send message requests.
9410
9411 Thu Mar 29 12:26:25 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9412
9413         * Implemented the RESTART command in the client.
9414
9415         * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
9416           notice type messages.  Added notice printing to the user
9417           interface.
9418
9419         * The channel keys are not re-generated if the channel's mode
9420           is PRIVKEY, ie private key on the channel exists.  Affected
9421           files silcd/server.c and silcd/command.c.
9422
9423         * Fixed a little bug in channel message delivery when channel
9424           private keys are set in the server.  Affected file is
9425           silcd/packet_send.c.
9426
9427         * Changed the setting on channel->on_channel = TRUE from the
9428           silc_client_save_channel_key to the JOIN command reply.  The
9429           key payload is not received if the private channel key is set.
9430           Affected file lib/silcclient/command_reply.c and the
9431           lib/silcclient/client_channel.c.
9432
9433         * When the CMODE_CHANGE notify is sent and the channel private
9434           key mode is removed the channel key must be re-generated in
9435           other cells as well.  Added this support for the router in the
9436           silcd/packet_receive.c.
9437
9438         * Added new local command NOTICE to send notice message on
9439           channel.  Affected file silc/local_command.[ch].
9440
9441 Wed Mar 28 23:55:54 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9442
9443         * Added new local command ME to the client.  It is used to send
9444           message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
9445           some action.  Affected file silc/local_command.[ch].
9446
9447         * Changed channel_message and private_message client operations
9448           to deliver the message flags to the application.  Added also
9449           the `flags' arguments to the silc_client_send_channel_message
9450           and silc_client_send_private_message functions.  Affected file
9451           silcapi.h.
9452
9453 Wed Mar 28 20:50:47 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9454
9455         * Redefined the Private Message Payload to support private message
9456           keys and to support the new private message flags.  Updated
9457           the protocol specs.  Flags makes it possible to have for example
9458           CTCP style messages.
9459
9460         * Added new type SilcPrivateMessagePayload and defined an API
9461           for it in the lib/silcclient/silcprivate.[ch].
9462
9463         * Tested private message private keys successfully.  Tested the
9464           private message key set, unset and list commands with the new
9465           KEY command.
9466
9467         * Redefined the Channel Message Payload to include the channel
9468           message flags (equal with private message flags) to support
9469           for example CTCP style messages.
9470
9471         * Defined some of the message (for channel and private message)
9472           flags.  Updated the protocol specs and added the flags to the
9473           lib/silccore/silcchannel.h.  The type is SilcMessageFlags.
9474
9475 Wed Mar 28 15:52:36 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9476
9477         * Added SilcKeyAgreementStatus type to the key agreement routines
9478           to indicate the current status and error if one occured.
9479           The status types are defined in the lib/silcclient/silcapi.h.
9480
9481         * Added new local command KEY that is used to set and unset private
9482           keys for channels, set and unset private keys for private messages
9483           with remote clients and to send key agreement requests and
9484           negotiate the key agreement protocol with remote client.  The
9485           key agreement is supported only to negotiate private message keys,
9486           it currently cannot be used to negotiate private keys for channels,
9487           as it is not convenient for that purpose.
9488
9489         * Fixed a minor pending callback setting bug in the function
9490           silc_client_get_client_by_id_resolve, now the function works.
9491           Affected file lib/silcclient/idlist.c.
9492
9493         * Added function silc_net_get_local_port to get local bound
9494           port by socket.  Added to lib/silcutil/silcnet.[ch].
9495
9496         * Added `sockets' and `sockets_count' fields to the SilcClient
9497           object.  They hold the sockets of the listenning sockets in
9498           the client.  Listenning sockets may be for example the key
9499           agreement server.  Affected file lib/silcclient/client.[ch].
9500           Added functions the silc_client_add_socket and the
9501           silc_client_del_socket.  They are exported to the application
9502           as well.
9503
9504         * Added ~./silc/clientkeys to support other client's public keys.
9505
9506         * Renamed verify_server_key client operation to verify_public_key
9507           and added one argument to indicate the type of the connection
9508           (server, client etc.).
9509
9510 Tue Mar 27 22:22:38 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9511
9512         * Added silc_server_connection_auth_request to handle the
9513           incoming CONNECTION_AUTH_REQUEST packet.  Affected file is
9514           silcd/packet_receive.[ch].
9515
9516         * Added silc_server_send_connection_auth_request into the
9517           silcd/packet_send.c to send the connection auth request packet.
9518
9519         * Cleaned up the silcd/protocol.c a bit and fixed some memory
9520           leaks.
9521
9522         * Fixed the public key authentication in responder side in the
9523           server.  The `auth_data' pointer includes the SilcPublicKey
9524           not the path to the public key.  Affected file silcd/protocol.c.
9525
9526         * Implemented the public key authentication in the initiator side
9527           in the server.  Affected file silcd/protocol.c.
9528
9529         * Removed the [RedirectClient] config section from the server
9530           configuration.  Is not needed and I don't want to implement it.
9531
9532 Tue Mar 27 12:49:56 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9533
9534         * Cleaned up the CMODE command in the server.  It now works
9535           correctly and supports all the modes defined in the protocol.
9536           Affected file is silcd/command.c.
9537
9538         * Added `hmac_name' field to the SilcChannelEntry in the server
9539           to hold the default HMAC of the channel.  It can be set when
9540           creating the channel (with JOIN command).  Affected files
9541           silcd/idlist.[ch].
9542
9543         * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
9544           type to indicate the change of the current cipher and hmac
9545           on the channel.  Client can safely ignore the <cipher> argument
9546           (if it chooses to do so) since the CHANNEL_KEY packet will
9547           force the channel key change anyway.  The <hmac> argument is
9548           important since the client is responsible of setting the new
9549           HMAC and the hmac key into use.
9550
9551         * Fixed the CMODE command in the client library as well.
9552
9553         * Tested CMODE command in router environment successfully.
9554
9555 Mon Mar 26 14:39:48 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9556
9557         * Show the version of the remote client (or server) when connecting
9558           to the server.  It is logged to the log file.  Affected file
9559           is silcd/protocol.c.
9560
9561         * Fixed the KILLED notify handling in the client library.  The
9562           client must be removed from all channels when receiving the
9563           KILLED notify.
9564
9565           Also, do not remove the client entry when giving the KILL
9566           command but when the KILLED notify is received.
9567
9568         * Removed silc_idlist_find_client_by_nickname from the server.
9569           Not needed anymore.  Affected files silcd/idlist.[ch].
9570
9571         * Implemented the CHANNEL_CHANGE notify type handling to the
9572           server.  Affected file silcd/server.c.
9573
9574         * Updated TODO.
9575
9576 Mon Mar 26 12:11:14 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9577
9578         * Added silc_server_send_notify_invite to send the INVITE
9579           notify between routers.
9580
9581         * Implemented the INVITE command correctly to the server.
9582
9583         * Implemented the INVITE notify type handling in the server.
9584
9585         * Implemented the INVITE command to the client library and on the
9586           user interface.
9587
9588 Sun Mar 25 20:27:09 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9589
9590         * Added function silc_server_get_client_resolve to find the
9591           client entry by ID from all ID lists and then resolve it
9592           (using WHOIS) if it cannot be found.  Affected file is
9593           silcd/server.[ch].
9594
9595 Sun Mar 25 13:52:51 EEST 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9596
9597         * Implemented the BAN command to the client library.
9598
9599         * The JOIN command in the server now checks the invite list
9600           and the ban list.
9601
9602         * Changed the silc_command_reply_payload_encode_va and the
9603           silc_command_payload_encode_va to support that if argument is
9604           NULL it ignores and checks the next argument.  Affected file
9605           lib/silccore/silccommand.c.
9606
9607         * Added silc_server_send_notify_ban to send the BAN notify
9608           type between routers.
9609
9610         * Chaned the silc_notify_payload_encode to support that if
9611           argument is NULL it ignores and checks the next argument.
9612           Affected file lib/silccore/silcnotify.c.
9613
9614         * Tested ban lists in router environment successfully.
9615
9616 Sat Mar 24 14:47:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9617
9618         * Implemented BAN command to the server, in silcd/command.[ch].
9619
9620         * Removed the BAN and INVITE_LIST modes from the CMODE command
9621           in the server code.
9622
9623         * Added function silc_string_match to regex match two strings.
9624           Affected files lib/silcutil/silcutil.[ch].
9625
9626 Fri Mar 23 22:02:40 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9627
9628         * Redefined parts of the SilcChannelEntry in the server to support
9629           the new ban and invite lists.
9630
9631 Fri Mar 23 16:25:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9632
9633         * Redefined the INVITE command.  The same command can be used to
9634           invite individuals to the channel but also to manage the invite
9635           list of the channel (to add to and remove from the invite list).
9636           Updated the protocol specs.
9637
9638         * Added new command SILC_COMMAND_BAN that can be used to manage
9639           the ban list of the channel.  Updated the protocol specs.
9640
9641         * Removed the channel modes: the SILC_CMODE_BAN and the
9642           SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
9643           in the CMODE command.  The equivalent features are now available
9644           using INVITE and BAN commands.  Updated the protocol specs.
9645
9646         * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
9647           in the network about change in the current ban list.  The notify
9648           type is not used by the client.
9649
9650         * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
9651           support the invite lists.
9652
9653 Thu Mar 22 22:52:23 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9654
9655         * Added new function silc_string_regexify that converts string
9656           including wildcard characters into regex string that can
9657           be used by the GNU regex library.  Added into the file
9658           lib/silcutil/silcutil.[ch].
9659
9660           Added silc_string_regex_combine to combine to regex strings
9661           into one so that they can be used as one regex string by
9662           the GNU regex library.  Added into the file
9663           lib/silcutil/silcutil.[ch].
9664
9665           Added silc_string_regex_match to match two strings.  It returns
9666           TRUE if the strings match.  Added into lib/silcutil/silcutil.[ch].
9667
9668 Thu Mar 22 15:29:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9669
9670         * Imported GNU regex to the soruce tree into lib/contrib.
9671           Fixed some compiler warning from the regex.c.
9672
9673 Wed Mar 21 15:27:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9674
9675         * Fixed MOTD command in the server to work in router environment.
9676
9677         * Fixed the MOTD command in the client library to support
9678           the server argument in the command.
9679
9680         * Added `nickname_len' argument to the silc_idlist_add_client
9681           in the server, as the `nickname' argument may be binary data
9682           (it may be hash).
9683
9684         * Added silc_idlist_get_channels to return all channels from
9685           the ID list.
9686
9687         * Implemented LIST command to the server.  Affected file is
9688           silcd/command.c.
9689
9690         * Implemented the LIST command to the client library and on the
9691           user interface.
9692
9693         * Added [<user count>] argument to the LIST command reply.
9694           With private channels the user count is not shown.
9695
9696         * Updated TODO and README.
9697
9698 Tue Mar 20 21:05:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9699
9700         * The client entry's data.registered must be TRUE even with
9701           global client entry on global client list.  The data.registered
9702           is used to check whether the client is anymore in the network,
9703           for example with WHOWAS command so it must be valid.
9704
9705         * Fixed the WHOWAS command in the server.  It now actually works
9706           in router environment.  Added function into silcd/command_reply.c
9707           silc_server_command_reply_whowas_save.
9708
9709         * Added silc_idlist_purge function to the silcd/idlist.c
9710           to periodically purge the ID Cache.
9711
9712         * Fixed INFO command in the server.  It works now in router
9713           environment.  Added <server name> argument to the INFO command
9714           reply.  Updated the protocol specs.
9715
9716         * Fixed minor bug in silc_idcache_purge to not purge if the
9717           expire value is zero.
9718
9719         * Fixed various bugs in WHOIS and IDENTIFY command handling as
9720           they were buggy because of the WHOWAS information.
9721
9722         * Fixed local command MSG to handle the async resolving of
9723           the remote client properly.  It used to fail the first MSG.
9724           Affected file silc/local_command.c.
9725
9726         * Added `data_len' field to SilcIDCache context.
9727
9728 Tue Mar 20 16:29:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9729
9730         * Update TODO.  Todo in commands in the server.
9731
9732 Tue Mar 20 15:45:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9733
9734         * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
9735           used by routers as broadcast packet to inform other routers
9736           about the changed user mode.
9737
9738           Implemented the notify handling in the server.  Affected file is
9739           silcd/packet_receive.c.  Added the function
9740           silc_server_send_notify_umode to the silcd/packet_send.[ch].
9741
9742         * Added new generic Channel Payload and deprecated the New Channel
9743           Payload.  The New Channel Payload is now the generic Channel
9744           Payload.
9745
9746         * Added new argument `mode' to the silc_server_send_new_channel
9747           as it is required in the Channel Payload now.
9748
9749         * Renamed the SilcChannelPayload to SilcChannelMessagePayload
9750           and created a new and real SilChannelPayload to represent the
9751           new generic Channel Payload.  Implemented the encode/decode
9752           for Channel Payload.  Affected file lib/silccore/silcchannel.[ch].
9753
9754         * Added silc_server_get_client_channel_list to return the list
9755           of channels the client has joined for WHOIS command reply.
9756           Affected file silcd/server.[ch].
9757
9758         * Implemented the channel list sending in the WHOIS command reply
9759           in server and in the client.
9760
9761           Implemented the channel list displaying on the user interface
9762           as well.  Affected file silc/client_ops.c.
9763
9764         * Added silc_channel_payload_parse_list to parse list of Channel
9765           Payloads.  It returns SilcDList list of SilcChannelPayloads.
9766           Client for example can use this function to parse the list of
9767           channels it receives in the WHOIS command reply.  The caller
9768           must free the list by calling silc_channel_payload_list_free.
9769           Affected files lib/silccore/silcchannel.[ch].
9770
9771 Mon Mar 19 21:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9772
9773         * Added one new argument <user mode> to the WHOIS command reply
9774           to return the mode of the user in SILC.  Updated the protocol
9775           specs.
9776
9777           Implemented it to the server and client.
9778
9779 Mon Mar 19 18:43:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9780
9781         * Fixed the mode printing on the user interface on joining.
9782           Affected file silc/client_ops.c.
9783
9784         * Implemented the UMODE command and user modes in general to the
9785           client library and to the user interface.
9786
9787         * Implemented the UMODE command to the server.
9788
9789         * The server now sends UNKNOWN_COMMAND error status if client sends
9790           unknown command.  Affected file silcd/command.c.
9791
9792         * All server commands now handle the command identifier the right
9793           way when sending the command reply to the client.  The client can
9794           use to identify the command replies with the identifier.
9795
9796 Mon Mar 19 16:13:07 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9797
9798         * Added silc_server_get_client_route to resolve the route to
9799           the client indicated by the client ID.  Affected file is
9800           silcd/server.[ch].
9801
9802         * Added silc_server_relay_packet as general function to relay
9803           packet to arbitrary destination.  This deprecates functions
9804           like _send_private_message_key, _relay_notify etc.  Affected
9805           file is silcd/packet_send.[ch].
9806
9807           Removed silc_server_send_key_agreement,
9808           silc_server_send_private_message_key and
9809           silc_server_packet_relay_notify functions from the file
9810           silcd/packet_send.[ch].
9811
9812         * Updated TODO.
9813
9814         * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
9815           server.  Affected file silcd/packet_receive.[ch].
9816
9817         * Implemented the KILL command to the client.  Implemented the
9818           SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
9819           Affected files lib/silcclient/command[_reply].c and
9820           lib/silcclient/client_notify.c.  Implemented the KILL notify
9821           printing in the user inteface.
9822
9823         * Fixed a lot silc_parse_nick memory leaks from the client
9824           library in the file lib/silcclient/command.c.
9825
9826         * Changed the silc_server_send_notify_on_channels's `sender'
9827           argument from SilcSocketConnection to SilcClientEntry to
9828           check the sender as entry and not as connection object and not
9829           to send to the client provided as argument.  The affected file
9830           is silcd/packet_send.[ch].
9831
9832         * The notify packets that are destined directly to the client used
9833           to not to be processed by the server.  Now changed that and the
9834           server processes all notify packets.  After relaying the packet
9835           to the client the notify packet is processed in the server.
9836
9837         * The silc_server_free_client_data now checks whether there is
9838           pending outgoing traffic for the client and purges the data to
9839           the network before removing the client entry.
9840
9841 Sun Mar 18 21:02:47 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9842
9843         * Added SILC_NOTIFY_TYPE_KILLED notify type.  It is sent when
9844           an client is killed from the SILC Network.  Updated the protocol
9845           specs accordingly.
9846
9847           Added new function silc_server_send_notify_killed to the
9848           silcd/packet_send.[ch].
9849
9850         * Added function silc_server_packet_relay_notify to relay notify
9851           packets that are destined directly to a client.  In this case
9852           the server does not process the notify packets but merely relays
9853           it to the client.  Affected file silcd/packet_send.[ch].
9854
9855           Added also silc_server_packet_process_relay_notify to check
9856           whereto relay the notify.  Affected file is
9857           silcd/packet_receive.[ch].
9858
9859         * Implemented the KILL command to the server.
9860
9861         * Updated TODO.
9862
9863         * Added the backup schema desgined last fall to the protocol
9864           specs for everyone to see.  The specification is in the
9865           *-spec-xx.txt draft and the packet type definitions for the
9866           backup routers is in *-pp-xx.txt draft.  Thusly, added also
9867           new packet type SILC_PACKET_CELL_ROUTERS.
9868
9869         * A big security problem in the implementation discovered.  The
9870           signoff of an client did not cause new channel key generation
9871           which it of course should've done.  The channel keys must be
9872           always re-generated when client leaves (or signoffs) the channel.
9873           The silc_server_remove_from_channels funtion now handles
9874           the channel key re-generation.
9875
9876         * Added `sender' argument to the silc_server_send_notify_on_channels
9877           to not to send the client provided as argument.  Affected file
9878           silcd/packet_send.[ch].
9879
9880 Fri Mar 16 15:52:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9881
9882         * Implemented OPER and SILCOPER commands into the server and
9883           the client library.
9884
9885         * Added silc_auth_verify and silc_auth_verify_data to verify
9886           the authentication directly from the authentication payload.
9887           It supports verifying both passphrase and public key based
9888           authentication.  Affected file lib/silccore/silcauth.[ch].
9889
9890         * Added `hash' field to the SilcIDListData structure.  It is the
9891           hash negotiated in the SKE protocol.  Affected file is
9892           silcd/idlist.[ch].
9893
9894         * Slight redesigning of the SilcAuthPayload handling routines.
9895           Do not send SilcPKCS but SilcPublicKey as argument.
9896
9897         * Implemented the public key authentication support to the
9898           serverconfig.  The public key is loaded from the provided path
9899           and saved as authentication data to void * pointer.  Thus,
9900           changed the unsigned char *auth_data to void *auth_data;
9901
9902         * Fixed SHUTDOWN command to send the reply before the server
9903           is shutdown. :)  Affected file silcd/command.c.
9904
9905         * Fixed fatal bug in CONNECT command.  The hostname was invalid
9906           memory and server crashed.  Affected file silcd/command.c.
9907
9908         * Fixed fatal bug in CLOSE command.  The server_entry became
9909           invalid but was referenced later in the command.  Affected file
9910           silcd/command.c.
9911
9912 Thu Mar 15 12:46:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9913
9914         * Fixed fatal bug in failure packet handling.  Server ignored
9915           the failure and thus crashed when it came.
9916
9917         * Updated TODO.
9918
9919 Wed Mar 14 20:37:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9920
9921         * Added new SILC_CF_LAG_STRICT command flag that strictly forces
9922           that the command may be executed only once in (about) 2 seconds.
9923           The old SILC_CF_LAG flag is same but allows command bursts up
9924           to five before limiting.
9925
9926           Added the support for CF_LAG and CF_LAG_STRICT flags to the
9927           server code.  Various commands now includes the CF_LAG_STRICT
9928           flag to disallow any kind of miss-use of the command.
9929
9930         * Fixed the silc_buffer_unformat to not to allocate any data
9931           if the length of the data is zero.  It used to allocate the
9932           length + 1.  Affected file lib/silcutil/silcbuffmt.c.
9933
9934 Wed Mar 14 16:10:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9935
9936         * Changed the format of AdminConnection configuration section
9937           in the server.  Added username of the admin to the format.
9938           Affected files silcd/serverconfig.[ch].
9939
9940           Added silc_server_config_find_admin into silcd/serverconfig.[ch]
9941           to return admin configuration data by host, username and/or
9942           nickname.
9943
9944 Wed Mar 14 13:18:16 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9945
9946         * Implemented WHOWAS command to the server.  Added the functions:
9947
9948           silc_server_command_whowas_parse,
9949           silc_server_command_whowas_send_reply,
9950           silc_server_command_whowas_from_client and
9951           silc_server_command_whowas_from_server
9952
9953         * Added <Client ID> argument to the WHOWAS command reply.  Updated
9954           the protocol specs accordingly.
9955
9956         * Implemented WHOWAS command and command_reply to the client
9957           library.
9958
9959           Implemented the WHOWAS printing on the user interface.
9960
9961 Tue Mar 13 22:17:34 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9962
9963         * Added new argument to the WHOWAS command reply, the real name.
9964           It is an optional argument.  Updated the protocol specs.
9965
9966         * Added SilcIDCacheDestructor callback that is registered when
9967           the SilcIDCache is allocated.  The callback is called when
9968           an cache entry in the ID Cache expires, or is purged from the
9969           cache.  Added into lib/silccore/idcache.[ch].
9970
9971           Added silc_idlist_client_destructor to the silcd/idlist.[ch]
9972           to destruct the client entries when the cache entry expires.
9973           Other ID Cache's in server and in the client library ignores
9974           the destructor.
9975
9976         * If the ID Cache entry's `expire' field is zero then the entry
9977           never expires.  Added boolean `expire' argument to the
9978           silc_idcache_add function in the lib/silccore/idcache.[ch].
9979           If it is TRUE the default expiry value is used.
9980
9981         * Added silc_server_free_client_data_timeout that is registered
9982           when client disconnects.  By default for 5 minutes we preserve
9983           the client entry for history - for WHOWAS command.
9984
9985 Tue Mar 13 13:26:18 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
9986
9987         * Added support to the server to enforce that commands are not
9988           executed more than once in 2 seconds.  If server receives
9989           commands from client more frequently, timeout is registered
9990           to process the commands.  Affected file silcd/command.c.
9991           Added new function silc_server_command_process_timeout.
9992
9993         * Changed NICK_NOTIFY handling in client library to check that
9994           if the client's nickname was changed, so there is no need to
9995           resolve anything from the server.
9996
9997         * Removed error printing from the WHOIS and IDENTIFY commands.
9998           If error occurs then it is ignored silently in the client library.
9999           The application, however, may map the received error to
10000           human readable error string.  The application currently maps
10001           the NO_SUCH_NICKNAME error to string.
10002
10003         * Made the command status message public to the application.  Moved
10004           them from lib/silcclient/command_reply.c to
10005           lib/silcclient/command_reply.h.  The application can map the
10006           received command status to the string with the
10007           silc_client_command_status_message function.
10008
10009         * Added check to the server to check that client's ID is same
10010           as the Source ID in the packet the client sent.  They must
10011           match.
10012
10013 Tue Mar 13 12:49:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10014
10015         * Added dist-bzip hook to the Makefile.am to make bzip2
10016           compressed distributions.
10017
10018 Mon Mar 12 18:43:38 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10019
10020         * Server now enforces the maximum length for the nickname and
10021           the channel as protocol specification dictates.  128 bytes for
10022           nickname and 256 bytes for channel name.
10023
10024         * Moved the WHOIS printing to the application.  The client libary
10025           does not print out the WHOIS information anymore, the application
10026           must do it.  Renamed silc_client_command_reply_whois_print to
10027           the silc_client_command_reply_whois_save.
10028
10029           The client's idle time is also sent to the application now, and
10030           the idle is shown on screen.
10031
10032         * Added silc_client_command_reply_identify_save to save the
10033           received IDENTIFY entries.
10034
10035         * Do not check for channel private keys in message sending and
10036           reception if the channel does not have the PRIVKEY mode set.
10037           Affected file lib/silclient/client_channel.c.
10038
10039 Sun Mar 11 20:25:06 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10040
10041         * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
10042           just surfaced after chaning the JOIN procedure.
10043
10044 Sun Mar 11 14:59:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10045
10046         * Added silc_client_get_clients_by_list to get client entries
10047           from Client ID list, that is returned for example by JOIN
10048           and USERS command replies.  The application should use this
10049           function for example when JOIN command reply is received to
10050           resolve the clients already on the channel (library does not
10051           do that anymore as USERS command reply is not used in the JOIN
10052           procedure anymore).  Affected files lib/silcclient/silcapi.h and
10053           lib/silcclient/idlist.c.
10054
10055         * JOIN command reply and USERS command reply returns now SilcBuffer
10056           pointers instead of unsigned char pointers when returning
10057           the client list and mode list.
10058
10059         * Added <Client ID> argument to the JOIN command reply, mainly
10060           for the server to identify for which client the command was
10061           originally sent.  Updated protocol specs accordingly.
10062
10063         * Added SilcDlist private_key pointer to the SilcChannelEntry
10064           in the client to support the channel private keys.  Affected
10065           file is lib/silcclient/idlist.h.
10066
10067         * Added SilcChannelPrivateKey argument to the function
10068           silc_client_send_channel_message so that application can choose
10069           to use specific private ke if it wants to.  If it is not provided,
10070           the normal channel key is used, unless private keys are set.
10071           In this case the first (key that was added first) is used
10072           as the encryption key.
10073
10074         * Implemented the support for channel private key handling.
10075           Implemented the following functions:
10076
10077           silc_client_add_channel_private_key,
10078           silc_client_del_channel_private_keys,
10079           silc_client_del_channel_private_key,
10080           silc_client_list_channel_private_keys and
10081           silc_client_free_channel_private_keys
10082
10083           Affected file lib/silcclient/client_channel.c.
10084
10085         * Added the support for the private keys in the channel message
10086           sending and encryption and in the message reception and
10087           decryption.  Affected funtions are
10088           silc_client_send_channel_message and silc_client_channel_message.
10089
10090 Sat Mar 10 21:36:22 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10091
10092         * Added SKE's key verify callback to the client library's
10093           KE protocol context. Affected files lib/silcclient/protocol.[ch].
10094
10095         * Removed the statement that server (or router) must send USERS
10096           command reply when joining to the channel so that the client
10097           knows who are on the channel.  Instead, the client list and
10098           client's mode list is now sent in the JOIN command reply to the
10099           client who joined channel.  This is better solution.
10100
10101         * Added function silc_server_get_users_on_channel and function
10102           silc_server_save_users_on_channel to the silcd/server.[ch].
10103
10104         * Removed function silc_server_command_send_users from the
10105           silcd/command.c.
10106
10107         * Do not show topic on the client library anymore.  The topic is
10108           sent in the command reply notify to the application and the
10109           application must show the topic now.
10110
10111 Sat Mar 10 00:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10112
10113         * Added client searching by nickname hash into the IDENTIFY and
10114           WHOIS commands in the server as they were clearly missing from
10115           them.  Affected file is silcd/command.c.
10116
10117         * Fixed a bug in private message receiving in the client library.
10118           The remote ID was freed and it wasn't supposed, now it is
10119           duplicated.
10120
10121 Fri Mar  9 12:40:42 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10122
10123         * Minor fix to the channel payload; allocate the data area, as it
10124           needs to be of specific length.
10125
10126         * If the key agreement port is zero then the operating
10127           system will define the bound port.  Affected files are
10128           lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
10129
10130         * Added new function silc_channel_payload_decrypt into the file
10131           lib/silccore/silcchannel.[ch].
10132
10133         * Moved the channel message etc, check from silc_packet_decrypt
10134           to applications.  The library calls now a generic
10135           SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
10136           when the packet is either normal or special.  This was done to
10137           allow more wide range of checking that was not allowed when
10138           the code was in library.  Now applications can do virtually any
10139           checks to the packet and return to the library the decision how
10140           the packet should be processed.  Affected files are
10141           lib/silccore/silcpacket.[ch].
10142
10143           Added silc_server_packet_decrypt_check to the server and
10144           silc_client_packet_decrypt_check to the client library.
10145
10146         * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
10147           to send with specified source and destination information.
10148
10149         * Channel message delivery between routers was broken after the
10150           channel key distribution was fixed earlier.  The channel key
10151           was used be to distributed to other routers as well which is not
10152           allowed by the protocol.  Now this is fixed and channel keys
10153           really are cell specific and the channel message delivery between
10154           routers comply with the protocol specification.
10155
10156         * Fixed various commands in server to check also the global list
10157           for the channel entry and not just the local list.  The affected
10158           file silcd/command.c.
10159
10160 Thu Mar  8 21:39:03 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10161
10162         * Added assert()s to buffer formatting and unformatting routines
10163           to assert (if --enable-debug) when error occurs.  Affected
10164           file: lib/silcutil/silcbuffmt.c.
10165
10166         * Changed to auto-reconnect to check whether the remote host is
10167           router and register the re-connect timeout if it is.  It used
10168           to check that whether we are normal server, but router must do
10169           auto-reconnect with another router as well.  Affected file
10170           silcd/server.c.
10171
10172         * Removed the [<key len>] option from CMODE command as the cipher
10173           name decides the key length, nowadays.  See the defined ciphers
10174           from the protocol specification.
10175
10176         * Added [<hmac>] option to the CMODE command to define the HMAC
10177           for the channel.  Added SILC_CMODE_HMAC channel mode.
10178
10179         * Added [<hmac>] option for the JOIN command so that user can
10180           select which HMAC is used to compute the MACs of the channel
10181           messages.
10182
10183         * Added Hmac field to the Channel Message Payload.  The integrity
10184           of plaintext channel messages are now protected by computing
10185           MAC of the message and attaching the MAC to the payload.  The
10186           MAC is encrypted.  Now, it is clear that this causes some
10187           overhead to the size of the packet but rationale for this is that
10188           now the receiver can verify whether the channel message decrypted
10189           correctly and also when private keys are set for the channel the
10190           receiver can decrypt the packet with several keys and check from
10191           the MAC which key decrypted the message correctly.
10192
10193         * Added silc_cipher_encrypt and silc_cipher_decrypt into the
10194           lib/silccrypt/silccipher.[ch].
10195
10196         * Added silc_hash_len to return the digest length into the
10197           lib/silcrypt/silchash.[ch].
10198
10199         * Rewrote parts of Silc Channel Payload interface in the
10200           lib/silccore/silcchannel.[ch].  The encode function now also
10201           encrypts the packet and parse function decrypts it.
10202
10203 Wed Mar  7 20:58:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10204
10205         * Fixed a minor formatting bug in the SKE's key material processing.
10206           It actually might have processed the keys wrong way resulting
10207           into wrong keys.
10208
10209         * Redefined the mandatory HMAC algorithms and added new algorithms.
10210           Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
10211           and hmac-md5 truncated to 96 bits.  The mandatory is now
10212           hmac-sha1-96.  Rest are optional (including the one that used
10213           to be mandatory).  Rationale for this is that the truncated HMAC
10214           length is sufficient from security point of view and can actually
10215           make the attack against the HMAC harder.  Also, the truncated
10216           HMAC causes less overhead to the packets.  See the RFC2104 for
10217           more information.
10218
10219         * Added new [hmac] configuration section.  The SKE used to use
10220           the hash names (md5 and sha1) in the SKE proposal as HMCAS which
10221           is of course wrong.  The official names that must be proposed in
10222           the SKE are the ones defined in the protocol specification
10223           (hmac-sha1-96 for example).  The user can configure any hmac
10224           using any hash function configured in the [hash] section.  At
10225           least, the mandatory must be configured.
10226
10227           Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
10228
10229         * Added HMAC list to the SKE proposal list.  It has now both
10230           hash algorithm list and HMAC list.  This makes the protocol
10231           incompatible with previous versions.  The SKE now seems to work
10232           the way it is supposed to work, for the first time actually.
10233
10234         * Defined plain Hash algorithms to the protocol specification.
10235           Added sha1 and md5.
10236
10237 Tue Mar  6 15:36:11 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10238
10239         * Implemented support for key agreement packets into the server.
10240           Added functions silc_server_key_agreement and
10241           silc_server_send_key_agreement.  Other than these functions,
10242           server has nothing to do with this packet.
10243
10244         * Added support for private message key packets into the server.
10245           Added functions silc_server_private_message_key and
10246           silc_server_send_private_message_key.
10247
10248         * Updated TODO.
10249
10250         * Changed the silc_[client|server]_protocol_ke_set_keys to be
10251           called in the protocol's final callback instead in the END
10252           protocol state.  This makes a little more sense and in the same
10253           time in client we can use the same protocol routines for normal
10254           key exchange and to key agreement packet handling as well.
10255
10256         * Added to both client's and server's KE protocol context the
10257           SilcSKEKeyMaterial pointer to save the key material.  We will
10258           bring the key material to the protocol's final callback by doing
10259           this.  The final callback must free the key material.
10260
10261         * Added SKE's packet_send callback into client's KE protocol
10262           context so that the caller can choose what packet sending function
10263           is used.  This way we can use different packet sending when
10264           doing normal SKE when doing key agreement packet handling (in
10265           the key agreement packet handling we do not want to encrypt
10266           the packets).
10267
10268         * Implemented the responder side of the key agreement routines
10269           in the client.  The client can now bind to specified port and
10270           accept incoming key negotiation.  The key material is passed
10271           to the application after the protocol is over.
10272
10273         * Implemented the processing of incoming Key Agreement packet
10274           in the client.  Added function silc_client_key_agreement to
10275           process the packet.
10276
10277         * Implemented the intiator side of the key agreement routines
10278           in the client.  The client can now initiate key agreement with
10279           another remote client.  The key material is passed to the
10280           application after the protocol is over.
10281
10282         * Created client_keyagr.c to include all the key agreement
10283           routines.
10284
10285         * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
10286           SILC_TASK_CALLBACK except that it is not static.
10287
10288         * Created client_notify.c and moved the Notify packet handling
10289           from the client.[ch] into that file.
10290
10291         * Created client_prvmsg.c and moved all private message and
10292           private message key routines from the client.[ch] into that file.
10293
10294         * Create client_channel.c and moved all channel message and
10295           channel private key routines from the client.[ch] into that file.
10296
10297         * Changed silc_client_get_client_by_id_resolve to resolve with
10298           WHOIS command instead of IDENTIFY command, in the file
10299           lib/silclient/idlist.c.
10300
10301 Mon Mar  5 18:39:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10302
10303         * Implemented the SKE's responder side to the Client library.
10304
10305         * When FAILURE is received to the protocol do not trust it
10306           blindly.  Register a timeout to wait whether the remote closes
10307           the connection as it should do it, only after that process the
10308           actual failure.  This was changed to both client and server.
10309
10310         * Added client_internal.h to include some of the structures
10311           there instead of client.h in lib/silcclient/.
10312
10313         * Added function silc_task_unregister_by_callback to unregister
10314           timeouts by the callback function.
10315
10316 Sat Mar  3 19:15:43 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10317
10318         * Some "Incomplete WHOIS info" errors has been appearing on the
10319           log files.  Took away the entry->userinfo check from WHOIS
10320           reply sending.  The entry->userinfo is now " " if client did not
10321           provide one.  I thought this was fixed earlier but something
10322           is wrong still.  Let's see if the error still appears.
10323
10324 Wed Feb 28 20:56:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10325
10326         * Fixed a minor bug in the login when the channel key is
10327           re-generated in the server.  It used to generate the key in
10328           wrong order and thus caused problems in the channel traffic.
10329
10330         * Fixed a minor bug in channel key distsribution after
10331           KICK command.  The key was not sent to the router even though
10332           it should've been.
10333
10334 Tue Feb 27 20:24:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10335
10336         * Added silc_ske_process_key_material_data as generic routine
10337           to process any key material as the SILC protocol dictates.  The
10338           function is used by the actual SKE library but can be used by
10339           applications as well.  This relates to the private message keys
10340           and the channel private keys since they must be processed the
10341           same way the normal SILC session keys.  The protocol dictates
10342           this.  Affected files: lib/silcske/silcske.[ch].
10343
10344           Added also silc_ske_free_key_material to free the
10345           SilcSKEKeyMaterial structure.
10346
10347         * Defined silc_cipher_set_key function to set the key for
10348           cipher without using the object's method function.  The affected
10349           files: lib/silccrypt/silccipher.[ch].
10350
10351         * Implemented silc silc_client_add_private_message_key,
10352           silc_client_add_private_message_key_ske,
10353           silc_client_del_private_message_key,
10354           silc_client_list_private_message_keys and
10355           silc_client_free_private_message_keys functions in the
10356           client library.
10357
10358           Added functions silc_client_send_private_message_key to send
10359           the Private Message Key payload and silc_client_private_message_key
10360           to handle incoming Private Message Key payload.
10361
10362         * Added Cipher field to the Private Message Key payload to set
10363           the cipher to be used.  If ignored, the default cipher defined
10364           in the SILC protocol (aes-256-cbc) is used.
10365
10366 Tue Feb 27 13:30:52 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10367
10368         * Removed lib/silcclient/ops.h file.
10369
10370           Redefined parts of the SILC Client Library API. Created new
10371           file silcapi.h that deprecates the ops.h file and defines the
10372           published Client Library API.  Defined also private message key
10373           API and channel private key API into the file.
10374
10375           This is the file that the application must include from the
10376           SILC Client Library.  Other files need not be included by
10377           the application anymore.
10378
10379         * Added new key_agreement client operation callback and also
10380           defined the Key Agreement library API for the application.
10381
10382 Tue Feb 27 11:28:31 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10383
10384         * Added new packet type: SILC_PACKET_KEY_AGREEMENT.  This packet
10385           is used by clients to request key negotiation  between another
10386           client in the SILC network.  If the negotiation is started it
10387           is performed using the SKE protocol.  The result of the
10388           negotiation, the secret key material, can be used for example
10389           as private message key.
10390
10391           Implemented the Key Agreement payload into the files
10392           lib/silccore/silauth.[ch].
10393
10394 Mon Feb 26 12:13:58 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10395
10396         * Redefined ciphers for the SILC protocol.  Added some new ciphers
10397           and defined the key lengths for the algorithms.  Changed the
10398           code accordingly.  The default key length is now 256 bits.
10399
10400         * Fixed SKE key distribution function silc_ske_process_key_material
10401           when the key length is more than 128 bits.  The default key
10402           length in SILC is now 256 bits.
10403
10404         * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
10405           to indicate unsupported algorithm.
10406
10407         * Renamed rijndael.c to aes.c and all functions as well.
10408
10409         * Fixed a long standing channel key setting bug in client library.
10410           Weird that it has never surfaced before.
10411
10412         * Fixed bug in channel deletion.  If the entire channel is removed
10413           then it must also delete the references of the channel entry
10414           from the client's channel list as the client's channel entry and
10415           the channel's client entry share same memory.
10416
10417 Sun Feb 25 20:47:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10418
10419         * Implemented CONNECT and SHUTDOWN commands in the client.
10420
10421         * Implemented CLOSE command to the client.
10422
10423         * Added the function silc_idlist_find_server_by_name into the
10424           files silcd/idlist.[ch].
10425
10426           Added the function silc_idlist_find_server_by_conn into the
10427           files silcd/idlist.[ch].
10428
10429 Sat Feb 24 23:45:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10430
10431         * DIE command was renamed to SHUTDOWN.  Updated the both code
10432           and protocol specs.
10433
10434         * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
10435           SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
10436
10437         * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
10438           side.
10439
10440         * Added function silc_server_create_connection function to create
10441           connection to remote router.  My server implementation actually
10442           does not allow router to connect to normal server (it expects
10443           that normal server always initiates the connection to the router)
10444           so the CONNECT command is only good for connecting to another
10445           router.
10446
10447 Sat Feb 24 16:03:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10448
10449         * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
10450           or some other client was kicked from the channel.
10451
10452           Implemented the handling of the notify type to both client
10453           and server.
10454
10455           Implemented silc_server_send_notify_kicked to send the KICKED
10456           notify.  It is used to send it to the server's primary router.
10457
10458         * Implemented the KICK command into server and client.
10459
10460         * Added `query' argument to the silc_idlist_get_client function
10461           to indicate whether to query the client from server or not if
10462           it was not found.
10463
10464         * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
10465           to indicate that the client is not channel founder.
10466
10467         * Updated TODO.
10468
10469 Sat Feb 24 00:00:55 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10470
10471         * Removed the rng context from SilcPacketContext structure and
10472           changed that the packet routine uses the Global RNG API.
10473
10474 Fri Feb 23 11:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10475
10476         * Added support for quit message that client can "leave" on the
10477           channel when it quits the SILC.  It is ditributed inside the
10478           SILC_NOTIFY_TYPE_SIGNOFF notify type.
10479
10480           Added silc_server_free_client_data that will take the
10481           signoff message as argument.
10482
10483         * Changed SKE routines to use the silc_pkcs_sign/verify routines.
10484
10485 Thu Feb 22 23:05:36 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10486
10487         * Updated parts of the protocol specification to keep it up
10488           to date.
10489
10490 Thu Feb 22 15:08:20 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10491
10492         * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
10493           payloads in one packet.
10494
10495         * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
10496           NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST.  List packets
10497           use now the new List flag.
10498
10499         * Also deprecated the following packet types: REPLACE_ID,
10500           NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
10501
10502         * Added list support for Notify packet in server.
10503
10504         * Added silc_server_send_notify_channel_change to send the
10505           CHANNEL_CHANGE notify type to replace channel ID's.  Deprecates
10506           the silc_server_send_replace_id.
10507
10508         * Added silc_server_send_notify_nick_change to send the
10509           NICK_CHANGE notify type.  Deprecates the function
10510           silc_server_send_replace_id.
10511
10512         * Added silc_server_send_notify_join to send the JOIN notify type.
10513           Deprecates the function silc_server_send_new_channel_user.
10514
10515         * Added silc_server_send_notify_leave to send LEAVE notify type.
10516           Deprecates the function silc_server_send_remove_channel_user.
10517
10518         * Added silc_server_send_notify_cmode and
10519           silc_server_send_notify_cumode to send CMODE and CUMODE notify
10520           types.  Deprecates the silc_server_send_set_mode function.
10521
10522         * Added SERVER_SIGNOFF notify type to indicate that server has
10523           quit.  This means that all clients on the channel from that
10524           server will drop.  This can be also used when netsplit happens.
10525
10526           Deprecated REMOVE_ID packet type since it is not needed anymore
10527           even from server.
10528
10529           Added silc_server_send_notify_server_signoff to send the
10530           SERVER_SIGNOFF notify type.  Deprecates the function
10531           silc_server_send_remove_id.
10532
10533           Added also silc_server_send_notify_signoff to send the
10534           SIGNOFF notify type.
10535
10536         * Employed the PKCS #1. It is the mandatory way to do RSA in the
10537           SILC protocol from this day on.  Changed the protocol
10538           specification as well.
10539
10540         * Added silc_server_send_notify_topic_set to send TOPIC_SET
10541           notify type.  It is used between routers to notify about
10542           topic changes on a channel.
10543
10544         * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
10545           ID data.
10546
10547         * Partly updated the protocol specification to comply with the
10548           changes now made.  It is still though a bit outdated.
10549
10550         * The JOIN notify type now takes one extra argument <Channel ID>.
10551           The packet used to be destined to the channel but now the
10552           JOIN type may be sent as list thus it is impossible to
10553           destine it to any specific channel.  By adding this argument
10554           it is again possible.
10555
10556 Wed Feb 21 22:39:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10557
10558         * Added CREDITS file.  The CHANGES and CREDITS file will appear
10559           in the distribution as well.
10560
10561 Wed Feb 21 14:17:04 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10562
10563         * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
10564           types in the server's silcd/packet_receive.c.
10565
10566         * Implemented CMODE and CUMODE to work in router environment.
10567
10568         * Fixed minor encoding and decoding buglet from the
10569           lib/silccore/silcmode.c.
10570
10571         * Fixed buffer overflow from lib/silcclient/command.c in USERS
10572           command parsing.
10573
10574 Wed Feb 21 12:44:00 EET 2001  Mika Boström <bostik@lut.fi>
10575
10576         * Changed all SilcConfigServer* and silc_config_server* to
10577           SilcServerConfig* and silc_server_config*, respectively.
10578           Patch by Bostik.
10579
10580 Wed Feb 21 00:10:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10581
10582         * Associated the ID (client or server ID) to the Authentication
10583           Payload to avoid any possibility of forging.  Updated the
10584           protocol specification and the code accordingly.
10585
10586 Tue Feb 20 14:14:14 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10587
10588         * The RSA key length is now save to the RsaKey context in the
10589           key generation process in lib/silccrypt/rsa.c.  The key length
10590           is now used to figure out the maximum size of the block allowed
10591           to be encrypted/signed.
10592
10593         * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch].  It
10594           is equivalent to the silc_mp_mp2bin but does not allocate any
10595           memory.
10596
10597         * Changed silc_mp_mp2bin API to take length argument.  If it is
10598           non-zero then the buffer is allocated that large.  If zero, then
10599           the size is approximated using silc_mp_sizeinbase, which however
10600           is not relieable.
10601
10602         * Created Global RNG API which is global RNG that application can
10603           initialize.  After initializing, any routine anywhere in the
10604           code (including library) can use RNG without allocating a new
10605           RNG object.  This was done to allow this sort of use of the
10606           RNG in code that has no chance to allocate RNG object.  All
10607           applications currently allocate this and many routines in the
10608           library use this.  Affected file lib/silccrypt/silcrng.[ch].
10609
10610         * Removed the RNG kludge from lib/silcmath/primegen.c and changed
10611           it to use the Global RNG API.
10612
10613         * Defined Authentication Payload into protocol specification that
10614           is used during SILC session to authenticate entities.  It is
10615           used for example by client to authenticate itself to the server
10616           to obtain server operator privileges.
10617
10618           Implemented this payload into the lib/silccore/silcauth.[ch].
10619           Implemented also routines for public key based authentication
10620           as the new protocol specification dictates.
10621
10622           Moved definitions of different authentication methods from
10623           lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
10624
10625         * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
10626           silc_pkcs_verify and silc_pkcs_sign_with_hash and
10627           silc_pkcs_verify_with_hash functions into the file
10628           lib/silccrypt/silcpkcs.[ch].
10629
10630 Mon Feb 19 19:59:28 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10631
10632         * The client entry's userinfo pointer must be always valid.
10633           Otherwise the [<unknown>] bug will surface beacuse the WHOIS
10634           will fail since it requires the userinfo.  Now, the userinfo
10635           is allocated as "" if actual userinfo does not exist.  Actually,
10636           it must exist and it is totally Ok to drop client connections
10637           that does not announce the userinfo.  However, we will make
10638           this workaround for now.
10639
10640         * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
10641           to return the remote port by socket.
10642
10643 Mon Feb 19 14:26:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10644
10645         * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
10646           SILC_SERVER_PENDING_EXEC and added an new macro
10647           SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
10648           data or when error occurs while processing the pending command.
10649
10650           Added new argument `destructor' into silc_server_command_pending
10651           and to the SilcServerCommandPending object.  This destructor is
10652           now called after calling the pending callback or if error occurs
10653           immediately.  If error occurs the actual pending callback won't
10654           be called at all - only the destructor.  The destructor may be
10655           NULL if destructor is not needed.
10656
10657           All this applies for client library code as well.  Similar
10658           changes were made there as well for the pending commands.
10659
10660           In the client, the application must now allocate the
10661           SilcClientCommandContext with the silc_client_command_alloc
10662           function.
10663
10664         * Added reference counter to the SilcServerCommandContext.  Added
10665           function silc_server_command_alloc and silc_server_command_dup
10666           functions.
10667
10668           Same type of functions added to the client library for the same
10669           purpose as well.
10670
10671         * Removed the cmd_ident from IDListData away since it is now
10672           global for all connections.  It is the command identifier used
10673           in command sending and with pending commands.  The affected file
10674           is silcd/idlist.h.
10675
10676         * Added reference counter to the SilcSocketConnection objecet to
10677           indicate the usage count of the object.  The object won't be
10678           freed untill the reference counter hits zero.  Currently only
10679           server uses this, and client ignores it.  The client must be
10680           set to use this too later.  The affected files are
10681           lib/silccore/silcsockconn.[ch].  Added also the function
10682           silc_socket_dup to increase the reference counter.
10683
10684           This was mainly added because it is possible that the socket
10685           is removed underneath of pending command or other async
10686           operation.  Now it won't be free'd and proper DISCONNECTING
10687           flags, etc. can be set to avoid sending data to connection that
10688           is not valid anymore.
10689
10690         * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
10691           the connection.  After that it sets SILC_SET_DISCONNECTED.
10692           It is, however, possible that the socket data is not still freed.
10693           The silc_server_packet_process now checks that data is not
10694           read or written to connection that is DISCONNECTED.  The socket
10695           get's freed when the reference counter hits zero.
10696
10697 Mon Feb 19 00:50:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10698
10699         * Changed the client operation API: channel_message operation's
10700           `sender' is now the client entry of the sender, not the nickname
10701           and the `channel' is the channel entry, not the channel name.
10702
10703           In the private_message operation the `sender' is now also the
10704           client entry of the sender not the nickname.
10705
10706           Affected file is lib/silcclient/ops.h and all applications
10707           using the client operations.
10708
10709 Sat Feb 17 22:11:50 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10710
10711         * Moved the calling of ops->connect() from connect_to_server_final
10712           into receive_new_id functin since that is the point when the
10713           client is actually allowed to send traffic to network.  The
10714           affected file is lib/silcclient/client.c.
10715
10716 Sat Feb 17 13:15:35 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10717
10718         * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
10719           NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
10720           (if needs broadcasting) instead of broadcasting the packets one
10721           by one which would make a burst in the network traffic.
10722
10723         * Added `broadcast' argument to the functions in silcd/server.[ch]
10724           silc_server_create_new_channel[_with_id] to indicate whether
10725           to send New Channel packet to primary router.
10726
10727 Sat Feb 17 01:06:44 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10728
10729         * Added new function into the silcd/server.[ch] files:
10730           silc_server_create_new_channel_with_id to create new channel with
10731           already existing Channel ID.
10732
10733         * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
10734           lib/silccore/silcpacket.h.  This packet is used t send list of
10735           Set Mode payloads inside one packet.  Server uses this to set
10736           the modes for the channels and clients on those channels, that it
10737           announced to the router when it connected to it.  The protocol
10738           specification has been updated accordingly.
10739
10740         * The silc_server_new_channel did not handle the packet coming
10741           from normal server as it normally does not send that.  However,
10742           when it announces its channels it does send it.  Implemented
10743           the support for that.
10744
10745         * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
10746           into the file lib/silccore/id.h.
10747
10748 Fri Feb 16 23:57:29 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10749
10750         * Fixed memory leaks in the functions silc_idlist_del_client,
10751           silc_idlist_del_channel and silc_idlist_del_server in the file
10752           silcd/idlist.c.  All of those leaked like a sieve.
10753
10754         * Fixed some small memory leaks in the client's function
10755           silc_client_notify_by_server.
10756
10757         * Added functions into silcd/server.c: silc_server_announce_clients,
10758           silc_server_announce_channels and silc_server_announce_server.
10759           These functions are used by normal and router server to announce
10760           to its primary router about clients, channels and servers (when
10761           router) that we own.  This is done after we've connected to the
10762           router.
10763
10764           These functions effectively implements the following packet types:
10765           SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
10766           and SILC_PACKET_NEW_ID_LIST.
10767
10768         * Added new functions into the silcd/packet_receive.[ch]:
10769           silc_server_new_id_list, silc_server_new_channel_list and
10770           silc_server_new_channel_user_list to handle the incoming
10771           NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
10772
10773         * Added support of changing Channel ID in the function
10774           silc_server_replace_id.  If the server that announces a channel
10775           to the router already exists in the router (with same name but
10776           with different Channel ID), router is responsible to send
10777           Replace ID packet to the server and force the server to change
10778           the Channel ID to the one router has.
10779
10780         * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
10781           client that the Channel ID has been changed by the router.  The
10782           normal server sends this to the client.  Client must start using
10783           the new Channel ID as the channel's ID.
10784
10785           Implemented handling of this new type into lib/silcclient/client.c
10786           into the function silc_client_notify_by_server.
10787
10788         * Added new function silc_idlist_replace_channel_id into the files
10789           silcd/idlist.[ch] to replace the Channel ID.
10790
10791 Fri Feb 16 14:14:00 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10792
10793         * Call silc_server_command_identify_check always when processing
10794           the IDENTIFY command in silcd/command.c
10795
10796 Thu Feb 15 20:07:37 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10797
10798         * Added new packet type SILC_PACKET_HEARTBEAT that is used to
10799           send keepalive packets.  The packet can be sent by clients,
10800           servers and routers.
10801
10802           Added function silc_socket_set_heartbeat into the file
10803           lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
10804           If not set, the heartbeat is not performed.  The actual
10805           heartbeat is implemented in the low level socket connection
10806           library.  However, application is responsible of actually
10807           sending the packet.
10808
10809           Added silc_server_send_heartbeat to send the actual heartbeat
10810           packet into silcd/packet_send.[ch].  Server now performs
10811           keepalive with all connections.
10812
10813         * Added silc_task_get_first function into lib/silcutil/silctask.c
10814           to return the timeout task with shortest timeout.  There was a bug
10815           in task unregistration that caused problems.  TODO has been
10816           updated to include that task system must be rewritten.
10817
10818         * The client library will now resolve the client information when
10819           receiving JOIN notify from server for client that we know but
10820           have incomplete information.
10821
10822         * Rewrote parts of silc_server_remove_from_channels and
10823           silc_server_remove_from_one_channel as they did not remove the
10824           channel in some circumstances even though they should've.
10825
10826         * Encryption problem encountered in server:
10827
10828           The LEAVE command used to send the Channel Key packet to the
10829           router immediately after generating it.  However, the code
10830           had earlier sent Remove Channel user packet but not immediately,
10831           ie. it was put to queue.  The order of packets in the router
10832           was that Channel Key packet was first and Remove Channel User
10833           packet was second, even though they were encrypted in the
10834           reverse order.  For this reason, MAC check failed.  Now, this
10835           is fixed by not sending the Channel Key packet immediately but
10836           putting it to queue.  However, this is more fundamental problem:
10837           packets that are in queue should actually not be encrypted
10838           because packets that are sent immediately gets encrypted
10839           actually with wrong IV (and thus MAC check fails).  So, packets
10840           that are in queue should be encrypted when they are sent to
10841           the wire and not when they put to the queue.
10842
10843           However, the problem is that the current system has not been
10844           designed to work that way.  Instead, the packet is encrypted
10845           as soon as possible and left to the queue.  The queue is then
10846           just purged into wire.  There won't be any fixes for this
10847           any time soon.  So, the current semantic for packet sending
10848           is as follows:
10849
10850           o If you send packet to remote host and do not force the send
10851           (the packet will be in queue) then all subsequent packets to the
10852           same remote host must also be put to the queue.  Only after the
10853           queue has been purged is it safe again to force the packet
10854           send immediately.
10855
10856           o If you send all packets immediately then it safe to send
10857           any of subsequent packets through the queue, however, after
10858           the first packet is put to queue then any subsequent packets
10859           must also be put to the queue.
10860
10861           Follow these rules and everything works fine.
10862
10863 Thu Feb 15 14:24:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10864
10865         * Added new function silc_server_remove_clients_by_server to
10866           remove all client entries from ID list when the server connection
10867           is lost.  In this case it is also important to invalidate all
10868           client entires as they hold the invalid server entry.  This
10869           fixes fatal bug when server has lost connection and will reconnect
10870           again.
10871
10872 Wed Feb 14 16:03:25 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10873
10874         * Made some sanity checks to silc_server_daemonise like to check
10875           whether the requested user and group actually exists.
10876
10877         * Added sanity check to SKE's silc_ske_responder_finish to check
10878           that the public and private key actually is valid.
10879
10880         * Invalidate the client's nickname when receiving Replace ID
10881           packet and the Client ID is being replaced.  This means that the
10882           server will query the nickname if someone needs it (client)
10883           a bit later.
10884
10885         * Sort the ID Cache in client library when the ID Cache data
10886           has changed (needs sorting).
10887
10888         * Do not allow for SILC client to create several connections to
10889           several servers.  The client does not support windows right now
10890           and generating multiple connections causes weird behaviour.
10891
10892           Irssi-silc client does support windows and can handle several
10893           connections without problems, see: www.irssi.org and SILC plugin.
10894
10895         * Fixed some places where client was added to the IDList.  The
10896           rule of thumb is following (in order to get everything right):
10897           If the client is directly connected local client then the
10898           `connection' argument must be set and `router' argument must be
10899           NULL to silc_idlist_add_client function.  If the client is not
10900           directly connected client then the `router' argument must
10901           bet set and the `connection' argument must be NULL to the
10902           silc_idlist_add_client function.
10903
10904         * The funtion silc_server_packet_send_local_channel actually did
10905           not check whether the client was locally connected or not.  It
10906           does that now.  Fixed a bug related to LEAVE command.
10907
10908         * Fixed Remove Channel User payload parsing bug in server's
10909           silcd/packet_receive.c.  Fixed a bug related to LEAVE command.
10910
10911         * The server's silc_server_save_channel_key now checks also the
10912           global ID list for the channel as it might not be in the local
10913           list.  Fixed a bug related to LEAVE command.
10914
10915         * Is this the end of the [<unknown>] buglet that has been lurking
10916           around for a long time?  A little for loop fix in server's
10917           silc_server_command_whois_parse that is used by both IDENTIFY
10918           and WHOIS command.  At least, this was a clear bug and a cause
10919           of one type of [<unknown>] buglet.
10920
10921         * WHOIS and IDENTIFY commands call the function
10922           silc_server_command_[whois/identify]_check function even if
10923           we are not router server.
10924
10925 Tue Feb 13 19:55:59 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10926
10927         * Added --with-gmp configuration option.  If set the GMP
10928           is always compiled in the SILC source tree.  If not set then
10929           it is checked whether the system has the GMP3 installed.  If
10930           it has then the GMP won't be compiled (the system's headers
10931           and library is used), if it doesn't have it then the GMP is
10932           compiled in the SILC source tree.
10933
10934 Mon Feb 12 11:20:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10935
10936         * Changed RSA private exponent generation to what PKCS #1
10937           suggests.  We try to find the smallest possible d by doing
10938           modinv(e, lcm(phi)) instead of modinv(e, phi).  Note: this is
10939           not security fix but optimization.
10940
10941 Sun Feb 11 18:19:51 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10942
10943         * Added new config entry [Identity] to fork the server and run
10944           it as specific user and group.  A patch from Bostik.
10945
10946         * Imported Dotconf configuration library into lib/dotconf.
10947           This will be used to create the SILC configuration files later.
10948           It will appear in the distsribution after this commit.
10949
10950 Sat Feb 10 21:13:45 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10951
10952         * A big code auditing weekend happening.  Auditing code for
10953           obvious mistakes, bugs and errors.  Also, removing any code
10954           that is obsolete.
10955
10956           Removed files for being obsolete:
10957
10958           o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
10959           inline in the file lib/silcutil/silcbuffer.h)
10960
10961           o lib/silcutil/silcbufutil.c (the header has inline versions)
10962
10963           Changed code to fix possible error conditions:
10964
10965           o The buffer formatting routines now check that the destination
10966           buffer really has enough space to add the data.  This applies for
10967           both buffer formatting and unformatting
10968           (lib/silcutil/silcbuffmt.[ch]).  Also, the entire buffer
10969           unformatting was changed to accomodate following rules:
10970           XXX_*STRING_ALLOC will allocate space for the data into the pointer
10971           sent to the function while XXX_*STRING will not allocate or copy
10972           the data into the buffer.  Instead it sets the pointer from the
10973           buffer into the pointer sent as argument (XXX_*STRING used to
10974           require that the pointer must be allocated already).  This change
10975           makes this whole thing a bit more consistent and more optimized
10976           (note that the data returned in the unformatting with XXX_*STRING
10977           must not be freed now).  The routines return now -1 on error.
10978
10979           o Tried to find all code that use buffer_format and buffer_unformat
10980           and added return value checking to prevent formatting and
10981           especially unformatting errors and possible subsequent fatal
10982           errors.
10983
10984           o Changed ske->x and ske->KEY to mallocated pointers in
10985           lib/silcske/silcske.h.  Fixed possible data and memory leak.
10986
10987           o Added return value checking to all *_parse* functions.  Fixed
10988           many memory leaks as well.
10989
10990           o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
10991           so that buffer overflows would not happen.  All code now also
10992           checks the return value as it can fail.
10993
10994 Mon Feb  5 20:08:30 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
10995
10996         * Added reconnection support to server if the normal server looses
10997           its connection to the router (for example if router is rebooted).
10998           The server performs normal reconnection strategy implemented
10999           to the server.  Affected file silcd/server.c.
11000
11001 Sun Feb  4 13:18:32 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11002
11003         * Added new packet type SILC_PACKET_SET_MODE that is used to
11004           distribute the information about changed modes (for clients,
11005           channels and clients channel modes) to all routers in the
11006           network.  Updated the protocol specification accordingly.
11007
11008           Added functions into silcd/packet_send.c and
11009           silcd/packet_receive.c: silc_server_send_set_mode,
11010           silc_server_set_mode.
11011
11012           Added new files silcmode.[ch] into lib/silccore that implements
11013           the encoding and decoding of Set Mode Payload.  Added new type
11014           SilcSetModePayload.  Moved the definitions of different modes
11015           from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
11016
11017 Sat Feb  3 15:44:54 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11018
11019         * Oops, a little mistake in server's connection authentication
11020           protocol.  The protocol is not ended with FAILURE but with
11021           SUCCESS if the authentication is Ok. :)  Affected file is
11022           silcd/protocol.c.
11023
11024         * Implemented NICK_CHANGE notify handling in server in the file
11025           silcd/packet_receive.c  The NICK_CHANGE notify is distributed to
11026           the local clients on the channel.  After the changing nickname
11027           in router environment snhould work and the [<unknown>] nickname
11028           should appear no more.
11029
11030           The silc_server_replace_id function that receives the Replace ID
11031           payload now sends the NICK_CHANGE notify type also in the file
11032           silcd/packet_receive.c
11033
11034         * Changed WHOIS and IDENTIFY command to support the maximum amount
11035           of arguments defined in protocol specs (3328 arguments).  This
11036           fixed a bug that caused problems when there were more than three
11037           users on a channel.
11038
11039 Fri Feb  2 11:42:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11040
11041         * Added extra parameter, command identifier, to the
11042           silc_client_send_command so that explicit command identifier
11043           can be defined.
11044
11045           Changed that ID list routines uses specific command identifier
11046           when sending WHOIS/IDENTIFY requests to the server so that they
11047           can be identified when the reply comes back.
11048
11049           Affected files lib/silcclient/command.[ch],
11050           lib/silcclient/client.c and lib/silcclient/idlist.[ch].
11051
11052         * Added `sender' argument to silc_server_packet_send_to_channel
11053           to indicaet the sender who originally sent the packet to us
11054           that we are now re-sending.  Ignored if NULL.  Affected file
11055           silcd/packet_send.[ch].
11056
11057         * Added some server statistics support in silcd/server_internal.h
11058           SilcServerStatistics structure and around the server code.  Also
11059           send some nice statistics information when client is connecting
11060           to the client.
11061
11062 Thu Feb  1 23:31:21 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11063
11064         * Fixed channel ID decoding in server's JOIN command reply in
11065           silcd/command_reply.c
11066
11067         * Fixed braodcasting of replace ID payload to not to send it if
11068           we are standalone server in silcd/packet_receive.c.
11069
11070         * Fixed all channel message sending routines to not to send
11071           packets to clients that has router set, since they are routed
11072           separately in the same function earlier.  Affects file
11073           silcd/packet_send.c and all channel packet sending functions.
11074
11075         * In USERS reply, res_argv[i] are not allocated, the table
11076           is allocated.  Thus changed that free the table, not its
11077           internals.
11078
11079         * In server's whois_check and identify_check if the client is
11080           locally connected do not send any WHOIS commands - they are not
11081           needed.
11082
11083 Thu Feb  1 21:32:27 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11084
11085         * Fixed some minor bugs in client when sending WHOIS command.  The
11086           arguments was in wrong order.
11087
11088         * Removed statis function add_to_channel from server in
11089           silcd/command.c that was previously used with the joining but
11090           is obsolete now.
11091
11092         * Tested USERS command in router environment successfully with two
11093           routers, two servers and two clients.
11094
11095 Thu Feb  1 00:54:26 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11096
11097         * Reorganized the USERS command and command reply in client library
11098           in lib/silcclient/command.c and lib/silcclient/command_reply.c.
11099           When the command is given by user we register a pending command
11100           callback that will reprocess the command after the reply has been
11101           received from the server.  When reprocessing the packet we then
11102           display the information.  Thus, the USERS information is displayed
11103           now in the command callback instead of in the command reply
11104           callback.  The processing of the command is same as previously
11105           when server has sent the command reply in the JOINing process.
11106
11107         * Added to USERS command in silcd/command_reply.c to join the client,
11108           we didn't use to know about, to the channel after we've created
11109           a client entry for it.  Also, for clienet we did know already still
11110           check whether it is on the channel or not and add it if not.
11111
11112         * Removed silc_server_command_join_notify as the function and its
11113           use was obsolete.
11114
11115 Tue Jan 30 22:39:15 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11116
11117         * Changed the client's pending command handling to the same as the
11118           server's pending command handling.  It is also now possible to
11119           execute command reply functions from other command reply
11120           function as the function callbacks for commands and command
11121           replies are one and same.  The pending commands are not static
11122           list anymore, it is mallocated SilcDList in lib/silcclient/client.h
11123           in client connection context.  Thus, pending commands are server
11124           connection specific as it is convenient.
11125
11126           Changed the function silc_client_command_pending and
11127           silc_client_command_pending_del and added new function
11128           silc_client_command_pending_check.  Removed the
11129           SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
11130           macros.
11131
11132         * Added cmd_ident, current command identifier, to the client
11133           connection context in lib/silcclient/client.h to keep track on
11134           command identifiers used in command sending.  Client's command reply
11135           function handling now supports the mandatory command identifiers.
11136
11137         * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
11138           funtions in client to fully support pending command callbacks.
11139
11140         * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
11141           as one of the arguments to the application in the command reply
11142           client operation.
11143
11144         * NOTE: The FORWARDED flag is depracated.  It used to be depracated
11145           before first releasing SILC but came back.  Now it is removed again
11146           and should come back nomore.  The FORWARDED flag was used only
11147           by the JOINing procedure by forwarding the command packet to router.
11148           Now, the JOINing procedure has been changed to more generic (due
11149           to various router environment issues) and FORWARDED is not needed
11150           anymore for anything.  The protocol specification is yet to be
11151           updated.
11152
11153           Now, removed silc_server_packet_forward from server and the flag
11154           SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
11155
11156 Tue Jan 30 00:05:05 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11157
11158         * Renamed NAMES command to USERS command.  The NAMES was named that
11159           due to historical reasons.  Now it is renamed.  Also, rewrote
11160           parts of the USERS command.  The nickname list is not sent anymore
11161           by the server.  Only Client ID and mode lists are sent in the USERS
11162           command.  Changed this also to the protocol specification.
11163
11164           The client now resolves the names and stuff after it receives
11165           the USERS list from the server when joining to the channel.
11166
11167         * WHOIS and IDENTIFY commands has been changed to support multiple
11168           Client ID's per command.  One can now search for multiple users
11169           in the network by sending only one WHOIS or IDENTIFY command.
11170           Changed the code and the protocol specifications.
11171
11172         * Removed silc_server_command_identify_parse and changed that IDENTIFY
11173           uses silc_server_command_whois_parse to parse the request. */
11174
11175         * If normal server, do not parse the WHOIS and IDENTIFY requests
11176           before sending it to the router.  Saves some time.
11177
11178 Sun Jan 28 16:19:49 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11179
11180         * Fixed JOIN command on client library.  Wrong number of arguments
11181           used to crash the client.
11182
11183         * Added silc_server_channel_has_global function to check whether
11184           channel has global users or not.
11185
11186         * Added silc_server_channel_has_local function to check whether channel
11187           has locally connected clients on the channel.
11188
11189         * The silc_server_remove_from_one_channel now checks whether the
11190           channel has global users or not after given client was removed from
11191           the channel.  It also checks whether the channel has local clients
11192           on the channel anymore.  If it does not have then the channel entry
11193           is removed as it is not needed anymore.
11194
11195         * The silc_server_notify now checks on JOIN notify whether the joining
11196           client is one of locally connected or global.  If it is global then
11197           the channel has now global users on the channel and that is marked
11198           to the channel entry.  Also, it now saves the global client to
11199           global list who is joining and JOINs it to the channel.  This is
11200           for normal server, that is.
11201
11202           Changed silc_server_send_notify_on_channel,
11203           silc_server_packet_relay_to_channel and
11204           silc_server_packet_send_to_channel check if we are normal server
11205           and client has router set (ie. global client) do not send the
11206           message to that client, as it is already routed to our router.
11207
11208         * Implemented LEAVE notify type handling in silc_server_notify
11209           function.
11210
11211         * Tested LEAVE command in router environment successfully.  Tested
11212           with two routers, two servers and two clients.
11213
11214         * Updated TODO.
11215
11216         * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
11217
11218         * Implemented SIGNOFF notify type handling in silc_server_notify
11219           function.
11220
11221         * silc_server_remove_id now removes the client entry from all channels
11222           it has joined and thusly sends SIGNOFF notify type.
11223
11224         * Rewrote the NAMES list generation in server by removing two excess
11225           loops.  The lists are created now inside one loop.
11226
11227 Sat Jan 27 22:34:56 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11228
11229         * silc_server_remove_channel_user checks now also global list
11230           for channel and client.
11231
11232         * silc_server_new_channel_user checks now both local and global
11233           list for channel and client.  Fixed a bug in client id decoding.
11234           Used to decode wrong buffer.
11235
11236         * silc_server_channel_message checks now both local and global
11237           list for channel entry.
11238
11239         * Tested channel joining (hence JOIN) in router environment
11240           successfully.  Tested with two routers, two servers and two
11241           clients.
11242
11243         * Tested channel message sending in router environment successfully.
11244
11245 Thu Jan 11 03:22:57 EET 2001  Pekka Riikonen <priikone@poseidon.pspt.fi>
11246
11247         * Added silc_server_save_channel_key into server.[ch] to save the
11248           received channel key in Channel Key payload processing. It is
11249           also used in JOIN command reply handling.
11250
11251           Equivalent function silc_client_save_channel_key added into
11252           client.[ch] into client library.
11253
11254         * Changed JOIN command reply to send information whether the channel
11255           was created or not (is existing already) and the channel key
11256           payload.  Changed protocol specs accordingly.
11257
11258         * Fixed bugs in WHOIS and IDENTIFY command reply sending when
11259           the request was sent by ID and not by nickname.  Crashed on
11260           NULL dereference.
11261
11262 Sat Dec 23 21:55:07 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11263
11264         * Fixed a bug in Client library.  IDENTIFY and WHOIS reply functions
11265           now correctly save the received data.
11266
11267         * silc_server_free_sock_user_data now notifies routers in the
11268           network about entities leaving the network.
11269
11270           At the same time implemented functions silc_server_remove_id
11271           and silc_server_send_remove_id to receive and send REMOVE_ID
11272           packets.  The packet is used to notify routers in the network
11273           about leaving entities.  The ID removed will become invalid in
11274           the network.
11275
11276         * Added function silc_idlist_del_server into server. Removes and
11277           free's server entry from ID list.
11278
11279         * silc_server_private_message function now checks, if we are router,
11280           that the destination ID really is valid ID, naturally.
11281
11282         * In router when NEW_ID packet is received (for new client) the
11283           hash of the Client ID is saved in the ID Cache but the
11284           client->nickname is set to NULL, instead of putting the hash
11285           to it as well.
11286
11287           IDENTIFY command now also checks that client->nickname must be
11288           valid. If it is not if will request the data from the server who
11289           owns the client.  Added new function
11290           silc_server_command_identify_check.
11291
11292         * Added silc_command_set_command into lib/silccore/silcommand.[ch]
11293           to set the command to already allocated Command Payload.
11294
11295         * Tested private message sending in router environment with two
11296           routers, two servers and two clients.  Fixed minor bugs and now
11297           it works fine.
11298
11299         * Fixed segfault from client's NAMES command. Used to crash if
11300           not on any channel.
11301
11302         * Forwarded packets must not be routed even if it is not destined
11303           to the receiver.  Changed server code comply with this.
11304
11305 Sun Dec 17 14:40:08 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11306
11307         * Added `require_reverse_mapping' boolean value to ServerParams
11308           structure. If TRUE (not default) the server will require that
11309           the connecting host has fully qualified domain name.
11310
11311           If the reverse mapping is not required and hostname could not be
11312           found the IP address is used as hostname.
11313
11314 Sat Dec 16 17:39:54 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11315
11316         * Implemented version string checking to both client and server.
11317           The check is incomplete currently due to the abnormal version
11318           strings used in development version of SILC.
11319
11320         * Changed all command functions in server to use the new
11321           CHECK_ARGS macro.
11322
11323 Fri Dec 15 15:55:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11324
11325         * Changed char *data to unsigned char *data in ID Cache system to
11326           support binary data as ID Cache data. Changed code to support
11327           binary data in lib/silccore/idcache.c.
11328
11329         * Renamed silc_server_packet_relay_command_reply to
11330           silc_server_command_reply as it is normal packet receiving
11331           function. Rewrote the function to accept command replys for
11332           servers and not only for clients.
11333
11334         * Mark remote router always as registered server if we are connecting
11335           to it.  Otherwise, commands sent by the router to us are ignored.
11336
11337         * All ID List find routines now returns the ID Cache Entry pointer
11338           as well if requested.
11339
11340         * WHOIS command works now in router environment, tested with two
11341           routers, two servers and two clients.
11342
11343         * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
11344           in router environment (as it is almost equivalent to WHOIS) but
11345           hasn't been tested thoroughly.  Added new functions:
11346
11347           silc_server_command_identify_parse
11348           silc_server_command_identify_send_reply
11349           silc_server_command_identify_from_client
11350           silc_server_command_identify_from_server
11351
11352         * Disabled route cache adding because adding two different ID's with
11353           same IP replaces the old cache entry thus giving wrong route.
11354           The entry->router->connection is always the fastest route anyway
11355           so route cache may not be needed.  Of course, new routes maybe
11356           established after receiving the ID when the entry->router->connection
11357           might not be anymore the most optimal.
11358
11359 Thu Dec 14 15:55:35 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11360
11361         * Add route cache for received ID for fast routing.
11362
11363         * Added silc_server_packet_route to route received packet on router
11364           that is not destined to us.
11365
11366         * Renamed silc_server_get_route to silc_server_route_get.
11367
11368         * Added id_string and id_string_len fields into SilcServer to
11369           include encoded ServerID for fast comparing without excess
11370           encoding of the ID's.
11371
11372         * Cleaned up WHOIS command on server side. Added following static
11373           functions:
11374
11375           silc_server_command_whois_parse
11376           silc_server_command_whois_check
11377           silc_server_command_whois_send_reply
11378           silc_server_command_whois_from_client
11379           silc_server_command_whois_from_server
11380
11381         * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
11382           arguments in command replies. All command functions should be
11383           updated to use this macro.
11384
11385 Sun Dec 10 23:52:00 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11386
11387         * Minor typo fixes on command reply handling on server.
11388
11389 Tue Nov 28 11:05:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11390
11391         * Added silc_server_command_add_to_channel internal routine to add
11392           the client to the channel after router has created the channel and
11393           sent command reply to the server.
11394
11395         * Added generic silc_server_send_command to send any command from
11396           server.
11397
11398         * Use static buffer with ID rendering instead of duplicating data.
11399
11400 Mon Nov 27 21:39:40 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11401
11402         * Fixed a channel user mode bug when joining to a channel server gave
11403           everybody channel founder rights, oops.
11404
11405         * We mark ourselves as the router of the incoming server connection
11406           if we are router ourselves.  This way we can check in some packet
11407           sending functions whether it is locally connected server.  For
11408           incoming router connections we put NULL.
11409
11410         * For router sending packets locally means now always sending the
11411           packet cell wide; to local clients and local servers.  For normal
11412           server sending packet locally means sending it to only local
11413           clients.
11414
11415         * Fixed the JOIN command to really work in router environment.  If the
11416           channel is created it is always created by the router.  Router is
11417           also responsible of making the initial joining to the channel,
11418           sending JOIN notify to the sending server and distributing
11419           NEW_CHANNEL and NEW_CHANNEL_USER packets.  Hence, if the channel
11420           does not exist server doesn't do anything else but forward the
11421           command to the router which performs everything.
11422
11423         * Added silc_server_send_channel_key function to send the Channel Key
11424           payload.
11425
11426         * Added silc_server_create_channel_key to create new channel key.  The
11427           channel key is now re-generated everytime someone joins or leaves
11428           a channel, as protocol dictates.  Note: channel->key_len is the
11429           key length in bits.
11430
11431 Wed Nov 22 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11432
11433         * Splitted server.[ch] finally.  Created now packet_send.[ch] and
11434           packet_receive.[ch] to separate packet sending and receiving
11435           routines.  The server.[ch] now includes everything else including
11436           actual packet processing (writing and reading data) and other
11437           server issues.
11438
11439           Renamed silc_server_private_message_send_internal to
11440           silc_server_send_private_message.  The routine is still though
11441           used only to relay private messages as server does not send
11442           private messages itself.
11443
11444           Renamed silc_server_new_channel to silc_server_create_new_channel
11445           and added new function sicl_server_new_channel that handles the
11446           incoming New Channel packet.  Added also new sending function
11447           silc_server_send_new_channel to send New Channel Payload.
11448
11449         * Added new function silc_server_notify to process incoming notify
11450           packet to the server/router. Server may then relay the notify
11451           to clients if needed.
11452
11453         * Added new function silc_server_new_channel_user to process incoming
11454           New Channel User packet.  Router will redistribute the packet and
11455           send JOIN notify to its local clients and locally connected servers
11456           if needed.  Normal server will send JOIN notify to its local client
11457           on same channel when received this packet.  Added also corresponding
11458           sending function silc_server_send_new_channel_user to sent the
11459           payload.
11460
11461         * Added boolean route argument to send_notif_to_channel and
11462           packet_send_to_channel functions to attempt to route the packet
11463           if it is TRUE and send only locally if it is FALSE.
11464
11465 Tue Nov 21 19:49:31 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11466
11467         * silc_server_replace_id now broadcasts the received replace ID
11468           packet if it is not broadcast packet already. The router must
11469           broadcast to inform other routers about changed ID.
11470
11471         * Added backpointer to server's router into SilcServer context in
11472           silcd/server_internal.h.
11473
11474         * Fixed silc_server_packet_broadcast to send correct broadcast
11475           packets.
11476
11477         * The channel key is now distributed to the local client as soon
11478           as it is received from the router (in router environment) so that
11479           no other packet may be sent for the channel until client has
11480           received the key.
11481
11482         * silc_server_remove_channel_user now broadcasts the received
11483           Remove Channel User packet if it is not broadcast packet already.
11484           The router must broadcast to inform other routers about removed
11485           channel user.
11486
11487         * Added users field into SilcPacketContext that is a reference count
11488           of the context.  One can increase the reference count by calling
11489           silc_packet_context_dup which is now changed to just increase the
11490           reference count instead of duplicating the data.  The reference
11491           count is decresed by calling silc_packet_context_free that will
11492           free the data after the reference count hits zero.
11493
11494           For now on the packet context and everything allocated into it
11495           (including the raw packet from network) must be freed by calling
11496           the new silc_packet_context_free function.  Added also new function
11497           silc_packet_context_alloc that must be used now to allocate the
11498           context.  This also means that if a routine is asynchronous from
11499           silc_[client/server]_packet_parse_type the packet context must
11500           be duplicated by calling silc_packet_context_dup.  Otherwise it
11501           gets free'd after silc_[client/server]_packet_parse_type returns.
11502           Also, one must remember that if packet is duplicated then its
11503           reference count must be decresed by calling the free function as
11504           many times as it was duplicated.
11505
11506         * Changed SilcBuffer field from protocol contexts to SilcPacketContext
11507           from both client and server.
11508
11509 Mon Nov 20 23:47:03 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11510
11511         * Made joining to a channel working in router environment.
11512
11513         * Cleaned up JOIN command on server side and create function
11514           silc_server_command_join_channel internal routine to make the
11515           joining happen.
11516
11517 Thu Nov  9 21:12:39 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11518
11519         * Changed silc_command_pending list to SilcDList.  Also, added
11520           `ident' field to SilcServerCommandPending structure to identify
11521           the reply and to call correct callback.
11522
11523           Added silc_server_command_pending_check function to replace the
11524           corresnponding macro.  The silc_command_pending list is not
11525           extern anymore.
11526
11527         * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
11528           to set identifier to previously allocated Command Payload.  It
11529           is used to set identifier for command when resending Command
11530           Payload.
11531
11532         * Added silc_command_payload_encode_payload to encode Command
11533           Payload buffer from SilcCommandPayload structure.
11534
11535         * Added silc_argument_payload_encode_payload to encode Argument
11536           payload buffer from SilcArgumentPayload structure.
11537
11538 Wed Nov  8 21:03:28 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11539
11540         * Changed WHOIS command to support router connection on server side.
11541           The whois request is always sent to router unless the server is
11542           standalone server.  After server has received the reply from the
11543           router will it send the reply to the client.
11544
11545         * Added silc_server_packet_broadcast into silcd/server.[ch] to
11546           broadcast received broadcast packet.  The function is used only
11547           by router.  The broadcast packet is always sent to the router's
11548           primary route.
11549
11550         * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
11551           render given ID to printable string, for log files for example.
11552
11553 Tue Nov  7 22:14:19 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11554
11555         * Made basic router to router connections working.  At least they
11556           can now connect to each other but nothing really works the way
11557           they are supposed - yet.
11558
11559         * Added new initiator token to RouterConnection configuration
11560           file in silcd/serverconfig.[ch].  It is used to tell whether we
11561           are the initiator to the remote router or whether we'll expect
11562           the other end to connect.
11563
11564         * Moved registering of listener task to silc_server_init, hence
11565           the server starts listenning as soon as it is run, even if it
11566           does not have connections to other routers.  Let's see how well
11567           this will work.
11568
11569         * Changed default connection retry timeouts for more suitable in
11570           silcd/server.h.
11571
11572         * Removed cipher and such arguments from silc_idlist_add_client
11573           and silc_idlist_add_server prototypes from silcd/idlist.[ch].
11574           Added new function silc_idlist_add_data to add the keys and stuff
11575           to any ID entry.
11576
11577         * Added SilcIDListData structure and added it to SilcClientEntry
11578           and SilcServerEntry as their first field in the structure.  This
11579           way we can explicitly cast the ID entries to the SilcIDListData
11580           structure and get common data for the entries.  In past, we had
11581           to first check what type of connection it is and then cast it to
11582           correct ID entry type.  Now, we can directly cast the opaque
11583           pointer to the SilcIDListData (no matter what ID entry it actually
11584           is) and get the data needed.
11585
11586 Mon Nov  6 21:56:12 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11587
11588         * Wow, found a bug in scheduler.  The scheduler uninitialized itself
11589           in some circumstances even if threre were timeout tasks, though not
11590           IO tasks, but tasks anyway.  Now fixed.
11591
11592         * Defined SilcServerConnection structure to hold connection specific
11593           stuff about directly connected servers and routers.  The definition
11594           is currently in silcd/server_internal.h.  I thought about having
11595           a bit more important role fro this struct but for now it is used
11596           only when connecting to other server (or router actually).
11597
11598         * Added connecting retry support in server when connecting to
11599           router(s).  The retry feature implement exponential backoff
11600           algorithm.  Also, added SilcServerParams structure to hold default
11601           parameters for server.  For now, it include these retry settings
11602           and are hard coded.  After server is moded to be as Silc Server
11603           Library this structure will be more important.
11604
11605 Sun Nov  5 22:28:44 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11606
11607         * Changed client librarys channel->clients table to SilcList and
11608           changed code accordingly.
11609
11610 Thu Nov  2 16:28:01 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11611
11612         * Changed client's channel table to SilcList and changed code
11613           accordingly.  Also changed SilcChannelClientEntry to include back-
11614           pointer to the channel so that client entry can use that structure
11615           as list as well and we have fast cross-reference to the channel.
11616           This change dramatically decreased the complexity of channel
11617           handling with client entry and vice versa (removed one extra
11618           loop when searching for channel entry from many functions).
11619
11620         * Changed server->sim from table to SilcDList and changed code
11621           accordingly.
11622
11623         * NAMES command can now be used from user interface.  It will show
11624           the user list on the channel, neatly.
11625
11626         * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
11627           Code now saves realname of the user if it becomes available.
11628
11629         * Renamed configure.in to configure.in.pre and made ./prepare
11630           script to automatically add correct version string to
11631           configure.in which it creates from configure.in.pre.
11632
11633 Wed Nov  1 17:21:26 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11634
11635         * NAMES command reply now shows users mode with the nickname when
11636           joining to channel.
11637
11638         * Moved silc_client_ch[u]mode[_char] functions from
11639           silc/clientutil.[ch] to lib/silcclient/client.[ch].  Though, that
11640           place sucks, they are utility functions and should be in some
11641           other file.
11642
11643         * Fixed some unsigned int's to unsigned short's.  Patch by cras.
11644
11645         * Fixed contrib/getopt*.[ch] to not require config.h.  Patch by
11646           cras.
11647
11648 Tue Oct 31 20:10:37 EET 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11649
11650         * Updated README.
11651
11652         * Added TRQ (efficient deque and list library) into lib/trq.  This is
11653           a very good list library that is currently used in the SILC.  Defined
11654           SilcList API over the library because I didn't like the API very
11655           much.  See lib/trq/silclist.h for the API and examples of how to
11656           use the API.  Fixed various places in the code to use the new
11657           SilcList API. The SilcList is meant for lists that has a structure
11658           already defined as a list.  It is not suitable to add just some
11659           context to the list (in TRQ, the context is the list actually).
11660
11661           So, I defined SilcDList that can be used for the purpose where
11662           predefined list structure does not exit.  This can be used as
11663           such list.  Now some context just can be added to the SilcDList.
11664           Currently this list is not used in the SILC just yet, though there
11665           are a lot places where this can replace dynamically allocated
11666           tables and I will fix these places, later, to use SilcDList.
11667           See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
11668           and use TRQ internally).
11669
11670           Also fixed some annoying warning messages that the original TRQ
11671           code generated.  Also minor changes to TRQ's Makefile.in.
11672
11673         * Added support for querying by Client ID to both WHOIS and
11674           IDENTIFY commands into server, as required by the protocol.
11675
11676         * Removed method function pointers from SilcBuffer structure. They
11677           weren't used to anything and just increased the context size for
11678           no good reason.  This change also made silc_buffer_alloc and
11679           silc_buffer_free functions inline functions.
11680
11681         * Disabled command flooding detection support until it's fixed so
11682           that it accepts commands in but does not execute them more than once
11683           in two seconds.
11684
11685         * Added silc_net_localhost(), to return local hostname, into
11686           lib/silcutil/silcnet.[ch].  Also added client->hostname pointer
11687           that must be initialized before calling silc_client_init.
11688
11689         * Added new function: silc_server_send_notify_on_channels to send
11690           notify messages to all channels client has joined.  It is assured
11691           that the message is sent only once per client.
11692
11693         * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
11694           lib/silcutil/silcutil.[ch] as silc_format function.  The new
11695           function is generic and is used by server as well, not only by
11696           the logging routines.
11697
11698         * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
11699           the provided version string was not acceptable.  Added new function:
11700           silc_ske_check_version into lib/silcske/silcske.h.  The function
11701           must be implemented by the application (client or server) and it
11702           does not reside in the SKE library.  The function checks the version
11703           string remote end sent.
11704
11705         * Added back pointers (to opaque context and to SilcSocketConnection)
11706           into SilcPacketContext structure into lib/silccore/silcpacket.h.
11707
11708         * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
11709           duplicate packet context structure.
11710
11711         * Changed `notify' client operation to send same arguments as client
11712           receives from server except for ID's.  ID's are mapped to correct
11713           ID entry and that is returned.  Also, if channel entry is not sent
11714           by server but the notify is for channel the channel entry is sent
11715           to application (otherwise application doesn't know that it is for
11716           channel (library gets it from packet's Destination ID)).
11717
11718         * Added silc_client_remove_from_channels into client library to
11719           remove a client from all channels it has joined to.  Used when
11720           received SIGNOFF notify from server.  Added also new function
11721           silc_client_replace_from_channels to replace old ID entry with
11722           new ID entry on all channels.  Used when received NICK_CHANGE
11723           notify from server.
11724
11725         * Fixed ID Cache list handling in silc_idlist_get_client in
11726           lib/silcclient/idlist.c.  Also, added silc_idlist_get_client_by_id
11727           to get (or query) client by ID.
11728
11729         * Updated TODO list.
11730
11731         * Added connection authentication status message defined by the
11732           protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
11733           support for these into the code in client and server side.
11734
11735         * Added generic function silc_client_send_command to send any command
11736           with variable argument list.  Application should use this function
11737           to send commands if the command functions provided by the library
11738           does not suite for the application's user interface needs.
11739
11740         * Added new `failure' client operation.  Application is notified about
11741           received failure packet if client is executing a protocol.  In this
11742           case the protocol's execution has failed.
11743
11744         * Added SKE's end notify to send the SKE_SUCCESS notify message that
11745           is required by the protocol.
11746
11747         * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
11748           packet from remote.  SILC_PROTOCOL_STATE_ERROR indicates local
11749           error at our end.
11750
11751         * Added status flag to SilcSKE object to indicate realtime status
11752           of the SKE protocol.
11753
11754         * Application receives now exactly same command reply arguments as
11755           the library receives from server.  However, if ID is received the
11756           corresponding ID entry is returned to the application (eg. Client
11757           ID is mapped to correct SilcClientEntry entry and that is returned).
11758           Changed command_reply client operation due to this change.
11759
11760         * Changed all ID's in commands and in command replys as ID Payloads.
11761           Change affected both client and server side codes.
11762
11763           All ID's sent in SILC network (with execption of ID's in SILC
11764           Packet header) are sent in ID Payload to support variable length
11765           ID's.
11766
11767         * Server now notifies nick changes and notifies all clients on
11768           the channels about the new nickname (about the new Client ID,
11769           actually).
11770
11771         * Implemented CMODE command to change channel modes. Supports all
11772           channel modes defined by the protocol specs except ban and invite
11773           lists. (Also, private channel key mode is supported but support for
11774           setting private channel key in client is missing, thus, this mode
11775           has no effect on client side (except that server requires that the
11776           client uses private channel key and normal channel traffic does not
11777           work anymore)).
11778
11779           Also, invite mode works per se, but INVITE command does not work
11780           yet correctly, so you can set channel as invite only channel but
11781           inviting clients to the channel does not work (it is yet to be
11782           thought what's the best way to do it).
11783
11784         * Added new command SILC_COMMAND_CUMODE to change user mode on the
11785           channel.  Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
11786           Implemented CUMODE command to change user's mode on the channel.
11787           Supports all modes defined by the protocol specs.
11788
11789         * Added NAMES command reply to return users modes on the channel.
11790
11791         * Removed unnecessary and slow ciphers from lib/silccrypt.
11792
11793         * Set SO_KEEPALIVE option to connection sockets by default.
11794
11795         * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
11796
11797         * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE.  Also,
11798           redefined the Notify Payload into protocol specs.
11799
11800         * Added silc_id_payload_parse_id to get ID directly from raw
11801           ID payload data.
11802
11803 Mon Oct  9 20:57:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11804
11805         * Changed SILC_COMMAND_IDENTIFY in protocol specification to
11806           accept searching by Client ID as well.
11807
11808         * Added support for LEAVE and SIGNOFF notify types in client library.
11809
11810         * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
11811           to parse ID Payload from raw data.
11812
11813 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11814
11815         * Added flags parameter into silc_ske_assemble_security_properties
11816           function in lib/silcske/silcske.[ch].
11817
11818         * Changed notify client operation to fit better for notify messages
11819           sent by server.  The notify payload received from server is now
11820           passed to the application (after parsing it to SilcNotifyPayload).
11821           It is application's responsibility to retrieve the arguments
11822           from the payload and show the message the way it wants.  The message
11823           sent by server is implementation specific.
11824
11825         * Changed public keys to comply with the protocol specification.
11826           Old public keys are not supported anymore and are not compatible.
11827
11828         * Removed nickname from Channel Payload as the latest draft removed
11829           it.  The client must resolve the nickname from the NAMES command
11830           reply received when it joined the channel.
11831
11832           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
11833
11834 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11835
11836         * Fixed some errors in protocol specification drafts.
11837
11838         * Created lib/silccore/silcnotify.c to implement Notify Payload
11839           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
11840           generic payloads described by protocol specifications.  The file
11841           includes implementations for ID Payload and Argument Payload.
11842
11843         * Changed Command Payload implementation to use the new Argument
11844           Payload.  Changed command_xxxx_payload to command_payload_xxxx
11845           to comply with SILC coding conventions.
11846
11847         * Added suppport for Argument Payload handling in Notify Payload
11848           implementation as protocol requires it.  Added the new support
11849           into server and client lib as well.
11850
11851 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11852
11853         * Added support for multiple nicknames on same channel.  [n] is
11854           added locally to the nickname if there are more than one same
11855           nicknames on the channel.
11856
11857         * Server now sends all nicknames that matched WHOIS request.
11858           Client also shows the list received from server.
11859
11860         * Added TOPIC command to client side.  User can now set and show
11861           current topic on channel.
11862
11863         * Added MOTD command to client and server.  Also, server sends the
11864           motd when client connects to the server.
11865
11866         * Changed version strings to comply ISO 8601.
11867
11868 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11869
11870         * Fixed protocol error handling in client library.  It should now
11871           cope even if the SKE fails for some reason.
11872
11873         * Made new protocol specification drafts for submitting to IETF.
11874
11875         * Implemented TOPIC command to server in silcd/command.c.
11876
11877         * Added two new notify types into lib/silccore/silcnotify.h:
11878           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
11879           notify nickname change and topic setting/change on a channel.
11880
11881         * API change of command_reply operation in client library.  The
11882           application gets now the status type received from server as well.
11883
11884 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11885
11886         * Removed the function just added to lib/silcutil/silcschedule.[ch].
11887
11888         * Cras fixed and optimized the packet handling even further and
11889           it should work now.  Minor change to the prototype of function
11890           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
11891
11892 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11893
11894         * Added new function into lib/silcutil/silcschedule.[ch]:
11895           silc_schedule_with_fd to select() a specified fd.  The function
11896           returns after timeout expires or data arrives or goes.  The
11897           function is used by packet routines to wait that all data is
11898           received from network.
11899
11900         * Fixed data reading from network in lib/silccore/silcpacket.c.
11901           The code now assures that all data is read from the fd and then
11902           continues packet processing.  This was a bug fix since the code
11903           used to drop some data in some circumstances.
11904
11905         * Added new function into lib/silcclient/client.[ch]:
11906           silc_client_start_key_exchange to start key exchange after
11907           connection has been established to server.  The code internally
11908           now uses this funtion but its main purpose was to provide it
11909           for applications that perform their own connecting.  After
11910           application has created a connection it merely calls this
11911           function to start the key exchange between client and server.
11912           The library takes care of everything else after that.
11913
11914           Updated also lib/silcclient/README to explain the usage of
11915           this new function.
11916
11917         * Do not send to application information that connection has
11918           been established.  Application gets notified it by connect
11919           operation anyway.
11920
11921 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11922
11923         * Applied cras's patch to add silc_schedule_one function.  The
11924           function runs scheduler once and returns.
11925
11926         * Fixed the scheduler after cras messed it up.  The timeout
11927           handling works now as it's supposed to work.
11928
11929         * Added into lib/silccore/ silcnotify.h to include notify
11930           message types support.  Changed silc_server_send_notify*
11931           functions, in server.[ch], to support those new notify types.
11932           Added the support for the notify types into client library,
11933           as well.  Added new notify client operation into ops.h in
11934           lib/silcclient/.
11935
11936         * Changed silc_server_packet_send_to_channel to send normal
11937           packets instead of just channel message packets.  The function
11938           is now used to send the notify packets to channels.  It is not
11939           used to send channel message packets anymore, as server never
11940           sends them anymore.
11941
11942         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
11943           va_arg()s as it seems to require it nowadays.  I guess, if SILC
11944           is compiled with older va_arg() the new code should work anyway.
11945
11946 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
11947
11948         * Splitted core library.  Core library (lib/silccore) includes
11949           now only SILC protocol specific core (and common) components.
11950           Created new utility library (lib/silcutil) that includes more
11951           generic purpose stuff.  The stuff for util library was taken
11952           from the old core library.  This was minor and easy split.
11953
11954         * Created SILC Client Library (lib/silcclient) that includes
11955           implementation of the SILC client without user interface.  This
11956           was major move from silc/ directory.  The code has been changed
11957           so that it is transparent towards the user interface.  The
11958           silc/ directory includes now the same user interface as before
11959           and it uses the new client library.  Read lib/silcclient/README.
11960           Basicly, the client library performs everything else related
11961           to SILC except user interface handling.  Also, configuration
11962           files are considered to be part of user interface and library
11963           does not handle them.
11964
11965           This change also changed a lot of structures, function naming etc.
11966           Most important change was that SilcClientWindow object was
11967           renamed to SilcClientConnection in the client library.  Created
11968           also new file lib/silcclient/ops.h.  Also added new files
11969           silc/local_command.[ch] and silc/client_ops.[ch].
11970
11971           All these changes were made to make it easier for user interface
11972           designers to create what ever user interface for the SILC client
11973           they want.
11974
11975           It is also expected that the server will be moved to lib
11976           directory as well and SILC Server Library will be created;
11977           sometimes in the future.
11978
11979         * Removed Local commands from lib/silccore/silccommand.h as
11980           they are application specific and new client library does not
11981           handle any of those anymore.
11982
11983         * Several functions moved to lib/silcutil/silcutilc.[ch] from
11984           old client implementation in silc/.
11985
11986         * Added support for callback functions in SILC_LOG_* macros.
11987           Application can now set its own callbacks that will be called
11988           instead of using the default functions that will always print
11989           the debug messages to stderr (or stdout).  Also, debugging can
11990           now be disabled by setting silc_debug to FALSE and re-enabled by
11991           setting it to TRUE.  Note, that logging will still work even
11992           if debugging is disabled.
11993
11994           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
11995           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
11996           silc_log_reset_debug_callbacks.
11997
11998         * To enable debugging in silc client one must give now -d
11999           option on command line.
12000
12001         * Changed silc_schedule_init to automatically allocate task queues
12002           if they are not allocated before calling it.
12003
12004 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12005
12006         * Added GMP 3.1 into math library.
12007
12008 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12009
12010         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
12011           a channel in SILC network.  The packet is used by servers and
12012           routers to notify other routers that user has left a channel.
12013           This little feature was missing until now.  Added the feature
12014           to protocol specification as well.
12015
12016           Added functions: silc_server_send_remove_channel_user and
12017           silc_server_remove_channel_user into server.[ch].
12018
12019         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
12020           lib/silccore/silcpacket.h.  However, they are not implemented
12021           yet.
12022
12023 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12024
12025         * Fixed joining to a channel and sending channel messages
12026           between server and router.  The channel message sending should
12027           now work inside a cell.
12028
12029 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12030
12031         * Fixed the private message sending between server and router.
12032           The private message sending should now work inside a cell.
12033
12034         * Added silc_server_replace_id into server.[ch] to replace
12035           existing ID in the SILC network.
12036
12037         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
12038           and silc_idlist_replace_server_id into idlist.[ch] in server.
12039
12040 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12041
12042         * Fixed the server to server connections.  Server can again now
12043           connect to router.  Router to router connections probably does
12044           not work just yet.
12045
12046 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12047
12048         * Added dynamic protocol registering support.  Now protocols can
12049           registered and unregistered on the fly.  Patch by cras.
12050
12051 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12052
12053         * Added lib/contrib directory to hold routines that some platforms
12054           don't have but are needed by SILC.
12055
12056         * Added getopt.c, getopt1.c and getopt.h from GNU C library
12057           into lin/contrib to provide getopt() and getopt_long() for
12058           those who don't have it.
12059
12060 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12061
12062         * Added AWAY command to client.  When away message is set and
12063           client receives a private message packet the client automatically
12064           replies to the sender with the away message.
12065
12066         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
12067           bug seemed to be the cause of recent problems when compiling
12068           with gcc-2.95.
12069
12070         * Added version detection support to SKE protocol specification
12071           and added the new changes to the SKE implementation as well.
12072           There were other minor changes in the SKE protocol as well.
12073
12074           Many changes in lib/silcske/silcske.[ch] and in
12075           lib/silcske/payload.[ch].
12076
12077         * Added ^U functionality, clear input line.  Patch from cras.
12078
12079 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12080
12081         * Mainly small bugfixes on core library.  Fixed some debugging
12082           logging and buffer overflow in silclog.c.
12083
12084         * Updated config.sub and config.guess on the distribution tree.
12085
12086 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12087
12088         * Added command lagging support in server. Client may execute
12089           commands now only once in two seconds.
12090
12091 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12092
12093         * Optimized packet reception. MAC computation and checking is now
12094           also more optimized.  A lot previously duplicated code is now
12095           used as generic by both client and server.
12096
12097         * Fixed key pair generation in clientutil.c
12098
12099 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12100
12101         * Added into lib/silccore/silcbufutil.[ch] new function;
12102           silc_buffer_realloc.
12103
12104         * Moved generic packet sending/encryption functions to
12105           lib/silccore/silcpacket.[ch] from client and server.  Some
12106           rewriting of the functions.
12107
12108         * Moved all generic packet reception/decryption functions to
12109           lib/silccore/silcpacket.[ch] from client and server.  The
12110           packet processing is now much cleaner in both client and server.
12111           These were major changes in both client and server.
12112
12113         * Created many common functions in server to do packet sending.
12114           Previously code were duplicated a lot, this has been removed
12115           with these changes.
12116
12117 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12118
12119         * Rewrote major parts of the ID cache system.  Don't know
12120           whether it is better now or not but at least the API is more
12121           cleaner now.
12122
12123         * Major rewrite on ID cache stuff on client because of the ID
12124           cache API changes.  Added idlist.c to client.
12125
12126         * Also major rewrite on ID cache stuff on server as well.
12127           Major rewrite of idlist.[ch]. SilcXXXList's are now named
12128           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
12129           in hand, instead they are all put into the ID cache system now.
12130           All server_idlist_* routines uses ID cache now instead of
12131           traversing its own lists (those lists does not exist anymore).
12132           SilcIDList though still exists.  Also, SilcXXXEntry's are
12133           now pointers.
12134
12135 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12136
12137         * Finally made the SKE implementation compliant to the protocol
12138           specification.  All mp integers are now binary encoded as
12139           opposed being HEX encoded.
12140
12141         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
12142           from binary data.
12143
12144         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
12145           functions: silc_[encode/decode]_pem.  Also added function
12146           silc_encode_pem_file to PEM encode with newlines ('\n') for
12147           saving into a file.
12148
12149         * SILC public keys are now encoded either PEM or binary.  Same
12150           option is for private keys as well.  By default private keys
12151           are binary encoded and public keys PEM encoded.  Silly HEX
12152           encoding were removed.
12153
12154         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
12155           function to create fingerprints.
12156
12157         * Fixed a bug in SHA1; does not change the original data anymore.
12158
12159         * Partly implemented INFO command on client and server side.
12160           Fixed CLEAR command.  Changes to SERVER command; show current
12161           server(s) when giving command without arguments.  Added
12162           VERSION command to client.
12163
12164         * Added check to server that unregistered connections cannot
12165           execute commands (unless it is specificly allowed).
12166
12167 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12168
12169         * Fixed screen refresh.
12170
12171         * Fixed channel joining bug from client.  On some circumstances
12172           client tried to join to a channel it had already joined.
12173
12174         * Added public key verification process into client's protocol.c.
12175           The client now verifies the public key from user and saves
12176           it into ~./silc/serverkeys/ directory.
12177
12178           Added into: clientutil.[ch]: silc_client_verify_server_key.
12179
12180         * Changed SKE protocol's silc_ske_initiator_finish function
12181           to accept callback function that verifies the received public
12182           key.  Removed old silc_ske_verify_public_key function.
12183
12184 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12185
12186         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
12187           silc_pkcs_private_key[_data]_set.
12188
12189         * Made the password and public authentication more cleaner in
12190           server's protocol.c.
12191
12192         * Removed historic and obsolete protocol `channel_auth' from
12193           both client and server.
12194
12195         * Removed wrong way of sending command status messages from
12196           server to client in server's command.c.  The old way violated
12197           protocol specification.
12198
12199           Changes to silccore/silccommand.[ch]: removed
12200           silc_command_encode_status_payload -> not needed anymore,
12201           changed silc_command_encode_payload_va to accept extra
12202           argument on variable argument list.  The argument type must
12203           now be provided to the function.  Also, added new function:
12204           silc_command_encode_reply_payload_va which is same as
12205           normal command_encode_payload_va except command status type
12206           is provided as extra argument.
12207
12208 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12209
12210         * Added ~./silc directory handling.  The directory includes the
12211           public and private keys for the client.
12212
12213           Added silc_client_check_silc_dir, silc_client_create_identifier
12214           and silc_client_load_keys.
12215
12216         * Implemented SILC protocol compliant public key.  Added public
12217           and private key saving to and loading from files.
12218
12219           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
12220           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
12221           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
12222           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
12223           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
12224
12225           Implemented: silc_pkcs_save_[public/private]_key[_data] and
12226           silc_pkcs_load_[public/private]_key.
12227
12228 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12229
12230         * Added silc_server_get_route (route.[ch]) to get connection
12231           data for the fastest route for given ID.
12232
12233         * Implemented INVITE command on client and server.  The command
12234           were re-defined in the SILC Protocol Specification and the
12235           implementation now complies with the specification.
12236
12237         * Implemented PING command on client and server.
12238
12239         * Implemented NAMES command on client and server.  The server side
12240           supports currently only normal server not router server yet.
12241           Some changes to NAMES definition in SILC protocol specification.
12242
12243 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12244
12245         * Implemented LEAVE command on client and server.
12246
12247         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
12248           again.  This change was made to the protocol as well.  Server
12249           should not violate the protocol specification anymore.
12250
12251 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
12252
12253         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
12254           was tested.  SOCKS4 was not but should work anyway.