1 Wed Nov 12 11:34:56 EET 2003 Pekka Riikonen <priikone@silcnet.org>
3 * Fixed file transmission accepting in client library to not
4 start the negotiation if user hasn't accepted the transfer,
5 instead create new session for resent transfer. Affected
6 file lib/silcclient/client_ftp.c.
8 * Show the session ID in the file transmision list. Remove
9 session from list that failed to transfer. Switch the current
10 session automatically after transmission, and in errors, to new
11 session if other sessions exists in the transfer list. Affected
12 files are irssi/src/silc/core/silc-servers.c,
13 irssi/src/fe-common/silc/modfule-formats.c.
15 Mon Nov 10 14:41:40 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
17 * Fixed MIME header parsing for the hopefully last time. Affected
18 file lib/silcutil/silcstrutil.c
20 Mon Nov 10 13:03:46 EET 2003 Pekka Riikonen <priikone@silcnet.org>
22 * Rewrote the PKCS#1 routines. Added lib/silccrypt/silcpkcs1.[ch].
24 * The SILC RNG is now gauranteed to return non-zero random
25 values. Affected files are lib/silccrypt/silcrng.[ch].
27 Sun Nov 9 20:44:56 EET 2003 Pekka Riikonen <priikone@silcnet.org>
29 * Fixed nickname formatting when changing only case of the
30 nickname. Affected file lib/silcclient/idlist.c.
32 Sun Nov 9 19:33:59 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
34 * Fixed a memory leak and incorrect printing of the "appears as"
35 message. Affected file irssi/src/silc/core/client_ops.c
37 Sun Nov 9 17:45:11 EET 2003 Pekka Riikonen <priikone@silcnet.org>
39 * Added CRT (Chinese Remainder Theorem) supported RSA
40 private keys and private key operations. This significantly
41 increases private key operation efficiency. No compatibility
42 issues with new or old private keys. Affected files are
43 lib/silccrypt/rsa.[ch], rsa_internal.h and pkcs1.c.
45 Sat Nov 8 13:08:53 EET 2003 Pekka Riikonen <priikone@silcnet.org>
47 * Fixed GCC-3.3.2 related compilation warnings from the
50 Fri Nov 7 23:01:47 EET 2003 Pekka Riikonen <priikone@silcnet.org>
52 * Removed RC6 from distributions.
54 Fri Nov 7 19:38:42 EET 2003 Pekka Riikonen <priikone@silcnet.org>
56 * Added some better comments to lib/silccrypt/silcpkcs.h,
57 optimized some routines in lib/silccrypt/silcpkcs.c.
58 Added test_silcpkcs into lib/silccrypt/tests/.
60 * Fixed silc_rng_global_init to actually init the global RNG
61 if RNG wasn't provided for it. Affected file is
62 lib/silccrypt/silrng.c.
64 Thu Nov 6 21:08:28 EET 2003 Pekka Riikonen <priikone@silcnet.org>
66 * Added silc_hash_table_find_by_context_ext. Affected files
67 lib/silcutil/silchashtable.[ch].
69 * Save the public key on normal server in WHOIS command reply
70 from attributes, if present, and add it to public key hash
71 table. Fixes WHOIS resolving by public key on normal server.
73 Optimized the attributes resolving on normal server to not
74 resolve if we resolved them already from router.
76 Affected files are silcd/server_query.c, command_reply.c.
78 Wed Nov 5 19:36:30 CET 2003 Patrik Weiskircher <pat@icore.at>
80 * Added support for whois using attributes.
81 Affected files silcd/command_reply.c, silcd/packet_receive.c,
82 silcd/server.c, silcd/server_internal.h, silcd/server_query.c,
85 * Added support for whois using public key attribute to /WHOIS i
86 client command. Affected files irssi/docs/help/in/whois.in,
87 irssi/src/silc/core/silc-servers.c, lib/silcclient/command.c
89 Wed Nov 5 23:37:36 EET 2003 Pekka Riikonen <priikone@silcnet.org>
91 * Fixed UMODE setting in server when the client has anonymous
92 mode set. The mode setting was not working. Affected file
95 Mon Nov 2 11:36:08 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
97 * Fixed some bugs and typos related to sending split messages.
98 Print notification when sending messages with /MMSG. Affected
99 files irssi/scripts/silc-mime.pl, irssi/src/silc/core/client_ops.c
101 Fri Oct 31 12:33:59 EET 2003 Pekka Riikonen <priikone@silcnet.org>
103 * Optimized the socket referencing in packet routines, client
104 library and server. Affected files are lib/silccore/silcpacket.c,
105 lib/silcclient/client.c and silcd/server.c.
107 * If silc_socket_set_qos is given with NULL arguments the QoS is
108 reset from the socket. Affected files are
109 lib/silcutil/silcsockconn.[ch].
111 Thu Oct 30 21:23:24 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
113 * Add a /LISTKEYS command which lists the locally cached
114 client and server keys. Affected files
115 irssi/src/fe-common/module-formats.[ch],
116 irssi/src/silc/core/silc-{channels,servers}.c
117 irssi/docs/help/in/listkeys.in
119 Thu Oct 30 20:23:40 EET 2003 Pekka Riikonen <priikone@silcnet.org>
121 * Check that packet queue purging was successful. Affected
122 files lib/silcclient/client.c and silcd/packet_send.c. Related
123 to MAC failed errors.
125 * Do not clear the inbuf even if it is empty if QoS was applied
126 to it. Otherwise the QoS data is cleared and MAC failed error
127 will occur. Affected file lib/silccore/silcpacket.c.
129 * Use the rekey period time as rekey protocol timeout value.
130 If the rekey does not succeed during the rekey period there's
131 something very wrong, and we most likely end up with wrong keys,
132 do graceful reconnect then. Affected file silcd/server.c.
134 * Take reference of the socket in the parser context, as it's
135 possible to have the parsers in queue after the socket is
136 disconnected and this may cause crash. Affected files are
137 lib/silccore/silcpacket.c, lib/silcclient/client.c and
140 Thu Oct 30 17:01:01 EET 2003 Pekka Riikonen <priikone@silcnet.org>
142 * Fixed KICK command reply sending, it sent to replies.
143 Affected file silcd/command.c.
145 Wed Oct 30 14:06:52 CET 2003 Jochen Eisinger <jochen@penguin-breeder.org>
147 * Finish the silc-mime.pl script. It now supports MIME type
148 guessing using magic files, signing data messages, executing
149 MIME handlers in background. Affected files
150 irssi/scripts/silc-mime.pl and irssi/docs/help/in/mmsg.in
152 * Changed MIME signal handler to make things easier for the perl
153 script. Affected files irssi/src/silc/core/client_ops.c,
154 silc-servers.c, and irssi/docs/signals.txt
156 * Cleaned up the silc_mime_parse function and fixed detection
157 of wrapped header lines. Affected file lib/silcutil/silcstrutil.c
159 Sun Oct 26 21:19:02 EET 2003 Pekka Riikonen <priikone@silcnet.org>
161 * Resolve the IP for file transfer listener from the connection
162 socket. Affected file lib/silcclient/client_ftp.c.
164 * Accept NULL hostname parameter in the functions
165 silc_net_check_[local|remote]_by_socket. Do not reverse lookup
166 if hostname is not wanted.
168 Fri Oct 24 21:24:12 CEST 2003 Jochen Eisinger <jochen@penguin-breeder.org>
170 * Fixed race condition between silc_client_init and
171 my_silc_scheduler. Affected file irssi/src/silc/core/silc-core.c
173 Fri Oct 24 16:43:40 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
175 * Fixed file transfer connection closing when SIGNOFF for
176 the client is received from server. Affected file is
177 lib/silcclient/client_ftp.c.
179 Tue Oct 21 13:35:57 CEST 2003 Pekka Riikonen <priikone@silcnet.org>
181 * Check for disconnected socket in QUIT callback. Affected
182 file silcd/command.c.
184 Thu Oct 21 09:43:17 CEST 2003 Jochen Eisinger <jochen@penguin-breeder.org>
186 * Modified the MIME parsing to allow \n and \r\n as delimiters.
187 Affected files lib/silcutil/silcstrutil.c
189 * Cleaned up the escape/unescape functions for correctness and
190 speed. Affected file irssi/src/silc/core/client_ops.c
192 * Removed handling for data messages with Content-Type: text/*,
193 moved parsing of MIME headers to the signal handler, added
194 support for signing and verifying data messages. Affected
195 files are irssi/docs/signals.txt, irssi/src/silc/core/client_ops.c,
196 irssi/src/silc/core/silc-{servers,channels}.c
198 * Added a perl script for handling data messages based on
199 information read from Mailcap files. New file
200 irssi/scripts/silc-mime.pl
202 Mon Oct 20 16:08:22 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
204 * Added new SILC_MESSAGE_FLAG_ACK that can be used to
205 acknowledge recepetion of a message to the sender. Updated
208 Sat Oct 18 11:55:33 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
210 * Unregister channel key saving callback when deleting channel.
211 Affected file lib/silcclient/idlist.c.
213 * Do not remove the client from channels in NOTIFY_TYPE_SIGNOFF
214 before calling notify client operation. Affected file is
215 lib/silcclient/client_notify.c.
217 * Unregister QoS tasks when deleting the socket connection.
218 Affected files lib/silcutil/silcsockconn.[ch],
219 unix/silcunixsockconn.c.
221 * Implemented latest presence-attrs draft changes. Affected
222 files lib/silccore/silcattrs.h and
223 irssi/src/silc/core/silc-queries.c.
225 Tue Oct 14 18:24:53 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
227 * Save old channel keys in list to allow more rapid change
228 of channel keys if server for some reason does that. This
229 avoids loosing so many channel messages due to not having
230 key to decrypt. Affected file lib/silcclient/silcclient.h,
231 idlist.c and client_channel.c.
233 Mon Oct 13 21:37:47 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
235 * Continued backup router tests and fixes. Affected files
236 silcd/server_backup, server_util.c, server.c. See TODO.
238 Sun Oct 12 19:58:18 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
240 * Fixed SERVER_SIGNOFF handling in servers. The client
241 was removed from wrong list thus not removing the client
242 at all. Affected file silcd/packet_receive.c.
244 * Do not execute rekey protocol for disabled connections as
245 it would never go through. Affected file silcd/server.c.
247 * Added timeout for rekey protocol to catch if the protocol
248 never executes successfully. Affected files silcd/server.c
251 Sat Oct 11 15:39:22 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
253 * Abandon packet processing for disconnected sockets. Check
254 this always after calling packet processing callback.
255 Affected file lib/silccore/silcpacket.c.
257 * Fixed double registration disconnection code in server.
258 Closed wrong connection. Affected file silcd/packet_receive.c.
260 Fri Oct 10 16:27:12 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
262 * On normal server reconnect to primary during resuming 4
263 times, then give up. Affected file silcd/server_backup.c.
265 * If during reconnecting to routers we notice we have router
266 connection but no primary router set, the server is in desync.
267 Reconnect to primary to restore network. Affected file
270 * Assure that only one protocol is exeucting at the same time.
271 Added checks for all protocols. Affected files are
272 silcd/server.c and server_backup.c.
274 Thu Oct 9 20:24:09 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
276 * Check that a string is not already part on invite/ban
277 string when processing it. Affected file silcd/server_util.c.
279 Thu Oct 9 12:06:40 CEST 2003 Pekka Riikonen <priikone@silcnet.org>
281 * Fixed the CUMODE_CHANGE for founder mode changes to comply
282 with 1.2 version of the protocol. Affected file is
283 silcd/packet_receive.c.
285 Wed Oct 8 19:41:15 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
287 * ERR_BAD_PASSWORD now returns the Channel ID of the channel
288 where the passphrase was given. Affected file is
291 Wed Oct 8 09:32:12 CEST 2003 Pekka Riikonen <priikone@silcnet.org>
293 * INVITE and BAN notifys are now delivered from routers to
294 servers (but not clients) on the channel. Updated specs and
295 code. Affected files silcd/packet_[send|receive].[ch],
296 command.c, server.c and server_util.c.
298 * Implemented INVITE and BAN announcing. Affected files are
299 silcd/server.[ch], server_util.c.
301 * Implemented SilcStatus error type argument returning in
302 command reply error in server. Affected file silcd/command.c.
304 * Implemented SilcStatus argument returning in comand reply
305 in client library. The command_reply client operation now
306 returns error specific arguments as well. Affected files
307 are lib/silcclient/command_reply.[ch], client_resume.c,
308 lib/silccore/silcstatus.[ch].
310 Sun Oct 5 20:22:08 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
312 * Backup router protocol version 1.2 implemented. Testing still
313 required. Affected files in silcd/server_backup.[ch], server.c,
314 packet_receive.c and server_internal.h.
316 Sun Oct 5 12:36:37 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
318 * silc_client_send_[channel|private]_message now return TRUE
319 or FALSE. Affected file lib/silcclien/client_channel.c and
322 Thu Oct 2 17:03:09 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
324 * Check for explicit nickname in INVITE and BAN processing
325 during join as well (and don't expect only wildcards in
326 invite/ban strings). Affected file silcd/command.c.
328 * Fixed the INVITE and BAN by public key. The public key saved
329 is the PK payload (as specified) not the raw data. Affected
330 file silcd/server_util.c.
332 Wed Oct 1 20:29:06 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
334 * UTF-8 text message support for actions and notices in SILC
335 Client. Affected file irssi/src/silc/core/client_ops.c.
337 * silc_get_username and silc_get_real_name now returns sensible
338 data on Win32. Patch by Toni Willberg. Affected file is
339 lib/silcutil/win32/silcwin32util.c.
341 Sun Aug 24 23:35:19 CEST 2003 Jochen Eisinger <c0ffee@penguin-breeder.org>
343 * Provide a signal handler to send MIME encoded messages and emit
344 a signal when a MIME encoded message is received. Also document
345 the signals for usage with the perl interface.
347 A sample perl script will be supplied at a later point.
349 Affected files are irssi/docs/signals.txt,
350 irssi/src/silc/core/client_ops.[ch],
351 irssi/src/silc/core/silc-{channels,servers}.c
353 Sun Aug 24 12:58:30 CEST 2003 Jochen Eisinger <c0ffee@penguin-breeder.org>
355 * Use SILC_COMMAND_PING to estimate the round-trip time to the
356 server. Use this time to display a lag and disconnect when it
357 exceeds a specified limit.
359 Affected files are irssi/src/silc/core/silc-{lag,core}.c.
361 Mon Aug 11 17:14:17 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
363 * Remove the channel auth list in normal server if router
364 encofrces its list during connecting. Send notify to channel
365 to remove the mode to remove the list. Affected files are
366 silcd/server_util.c and silcd/packet_receive.c.
368 Wed Aug 6 14:52:04 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
370 * Added support for channel public keys. Updated protocol specs
371 and implemented it. Affected files are
372 silcd/command.c, command_reply.c, lib/silcclient/command.c,
373 lib/silcclient/command_reply.c.
375 Wed Jul 23 12:17:01 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
377 * Ignore SIGXFSZ and SIGXCPU signals in server. They can
378 terminate the process on Linux. Affected file silcd/silcd.c.
380 Mon Jun 2 19:13:27 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
382 * Check for NULL buffer in silc_buffer_clear. Affected file
383 is lib/silcutil/silcbuffer.h.
385 * Simplified the backup router protocol by removing the _GLOBAL
386 types. Updated protocol specs and the code. Affected files
387 are silcd/server_backup.[ch].
389 Thu Apr 24 19:50:25 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
391 * Deny '@' and '!' from nicknames since they are reserved
392 by the SILC_COMMAND_INVITE and SILC_COMMAND_BAN commands.
393 Updated protocol specs and the code.
395 Affected files are silcd/server_util.[ch].
397 Wed Apr 9 18:51:59 EEST 2003 Pekka Riikonen <priikone@silcnet.org>
399 * Fixed stack overflow in Irssi SILC client. Affected
400 file irssi/src/silc/core/client_ops.c.
402 * Check that Host is set in ServerConnection and RouterConnection
403 in silcd.conf. Affected file silcd/serverconfig.c.
405 * Fixed crash in server with protocol completion callbacks,
406 namely rekey and backup resuming protocols. Affected files
407 are silcd/server_backup.c and silcd/server.c.
409 * Fixed rekey protocol to not restart if it is started already.
410 Affected files are lib/silcclient/client.c and
413 Mon Mar 17 18:35:24 EET 2003 Pekka Riikonen <priikone@silcnet.org>
415 * Rewrote SilcList, affected file lib/silcutil/silc*list.h.
417 * Fixed EOF handling in SILC Config, affected file
418 lib/silcutil/silcconfig.c.
420 * Fixed buffer overflows in lib/silcutil/silcstrutil.c.
422 * Fixed RESOLVING flag handling in JOIN notify and other
423 notifys to handle the resolvings correctly in client library.
424 Affected file lib/silcclient/client_notify.c.
426 * Do not send full INVITE and BAN lists in INVITE and BAN
427 notifys, only the changed information. Affected file
430 * Fixed INVITE notify sending in INVITE command, send it
431 only when needed. Affected file silcd/command.c.
433 * Handle the founder key change properly in CMODE_CHANGE
434 notify. Bug #122. Affected file silcd/packet_receive.c.
436 Sun Mar 9 16:29:20 EET 2003 Pekka Riikonen <priikone@silcnet.org>
438 * Remove the mark for output (mark it only for input) after
439 purging outgoing queue. Prevents the "Error in select()"
440 floods. Affected file silcd/packet_send.c.
442 * Fixed incorrect connection deletion from client library
443 after calling "connect" client operation. Could cause
444 crashes for example during reconnect timeouts. Affected
445 files are lib/silcclient/client.c and
446 irssi/src/silc/core/client_ops.c.
448 * Check server private key file permissions before starting
449 the server. Affected file silcd/serverconfig.c.
451 Tue Feb 4 22:53:26 EET 2003 Pekka Riikonen <priikone@silcnet.org>
453 * NULL terminate allocated string in silc_buffer_strformat.
454 Affected file lib/silcutil/silcbuffmt.c.
456 * Rewrote the invite/ban list string handling in server to
457 use SilcBuffer instead. Affected files are silcd/command.c
458 and silcd/server_util.c.
460 Mon Feb 3 14:43:52 CET 2003 Pekka Riikonen <priikone@silcnet.org>
462 * Fixed double free in CMODE command when setting new HMAC
463 for channel. Affected file silcd/command.c.
465 * Added couple of missing memset's to zero sensitive memory.
466 Affected files silcd/command.c, lib/silcclient/command.c.
468 Sun Jan 26 12:20:30 EET 2003 Pekka Riikonen <priikone@silcnet.org>
470 * Fixed a double free in INVITE command error handling in
471 server. Affected file silcd/command.c.
473 * Added macros SILC_SWAB_[16|32] to swab byte order of
474 16-bit and 32-bit unsigned integers. Affected file
475 lib/silcutil/silctypes.h.
477 * Use the SILC_SWAB_16 instead of htons() in server when
478 handling ports since the ports in structures are always
479 in little-endian order (regardless of platform). Affected
480 file silcd/serverid.c and silcd/server_backup.c.
482 Tue Jan 21 17:18:04 EET 2003 Pekka Riikonen <priikone@silcnet.org>
484 * Send DISCONNECT in close admin command in server. Affected
485 file silcd/command.c.
487 * Check whether we are already connecting to a remote router
488 (in addition of checking whether we are already connected)
489 before creating new connection. Affected file silcd/server.c.
491 Thu Jan 16 18:47:00 EET 2003 Pekka Riikonen <priikone@silcnet.org>
493 * Added better compiler and compiler flags checking in
496 * Check that socket is valid after QoS is applied to data.
497 Affected file lib/silcutil/unix/silcunixsockconn.c.
499 * Make sure the socket connecetion is not closed to early
500 when closing connection in server. Also make sure the
501 connection is always closed after error in a protocol.
502 Affected file silcd/server.c.
504 Wed Jan 15 11:03:36 CET 2003 Pekka Riikonen <priikone@silcnet.org>
506 * Removed --session and --dummy options from Irssi SILC Client.
507 -d option is available only if --enable-debug was given.
508 Affected files are irssi/src/silc/core/silc-core,
509 irssi/src/core/session.c and irssi/src/fe-text/silc.c.
511 Tue Jan 14 12:25:09 CET 2003 Pekka Riikonen <priikone@silcnet.org>
513 * Added silc_buffer_steal to steal the data from the buffer.
514 Affected file lib/silcutil/silcbuffer.h.
516 Sat Jan 11 18:16:29 CET 2003 Giovanni Giacobbi <giovanni@giacobbi.net>
518 * Fixed server crash with double Primary block in config file.
520 Fixed also various memory leaks around the config file
521 parser. Affected files lib/silcutil/silcconfig.c,
522 silcd/serverconfig.c.
524 * Changed my nickname (Johnny Mnemonic) to my real name, this
525 means that bugs introduced by him were actually introduced
528 Tue Jan 7 21:58:53 CET 2003 Jochen Eisinger <c0ffee@penguin-breeder.org>
530 * Don't display "foo appears as foo\nYou're now known as foo"
531 messages. Affected file irssi/src/silc/core/client_ops.c
533 Tue Jan 7 20:08:15 EET 2003 Pekka Riikonen <priikone@silcnet.org>
535 * Fixed error handling of invalid client entry when calling
536 commands in server. Fixes a crash. Affected file
539 Thu Dec 26 14:19:29 EET 2002 Pekka Riikonen <priikone@silcnet.org>
541 * Added some sanity checks in server for correctness of the
542 server configuration. Affected file silcd/serverconfig.c.
544 Fri Dec 20 10:47:59 CET 2002 Pekka Riikonen <priikone@silcnet.org>
546 * Prevent endless resolving of user informations in USERS
547 command by checking the command reply status correctly.
548 Affected file lib/silcclient/command_reply.c.
550 Tue Dec 17 10:05:00 CET 2002 Pekka Riikonen <priikone@silcnet.org>
552 * Fixed file writing on WIN32 to use O_BINARY flag. Affected
553 file is lib/silcutil/silcfileutil.c. A patch by Matthew
554 Aldous <Matthew@Aldous.com>.
556 * Added better implementation using CriticalSection of
557 SilcMutex on WIN32. A patch by Mikko Lähteenmäki
558 <mikko.lahteenmaki@pikabaana.net>.
560 * Added some Winsock WIN32 compatiblity defines into
561 includes/silcwin32.h.
563 Mon Dec 16 19:33:05 EET 2002 Pekka Riikonen <priikone@silcnet.org>
565 * Fixed double free in async host lookup code. Affected file
566 lib/silcutil/silcsockconn.c.
568 * On backup router handle now the SERVER_SIGNOFF from router
569 for local connected servers too, and close the connections.
571 Do not process them as normally signing off servers when they
572 really signoff by sending EOF fe, but always assume that
573 router sends the SERVER_SIGNOFF.
575 Affected files silcd/server.c and silcd/packet_receive.c.
577 * Fixed socket unsetting when closing connections. Affected
578 files silcd/server.c and silcd/packet_send.c.
580 * Do not print the nickname in SERVER_SIGNOFF if we do not
581 have it. Prevents asserts in Irssi core. It is possible we
582 don't have the nick if it was just being resolved when server
583 signoff. Affected file irssi/src/silc/core/client_ops.c.
585 Thu Dec 12 23:22:50 EET 2002 Pekka Riikonen <priikone@silcnet.org>
587 * Fixed autonick crashbug in client library. Affected file
588 lib/silcclient/client.c.
590 * Fixed Unix implementation of SilcMutex to really assert if
591 the mutex is locked/unlcoked already. Affected file
592 lib/silcutil/unix/silcunixmutex.c.
594 * Fixed locking in silc_schedule_uninit. It didn't lock
595 when dispatching timeout tasks. Affected file is
596 lib/silcutil/silcschedule.c.
598 * Changed Win32 implementation of SilcThread to use modern
599 Win32 interface. Affected file is
600 lib/silcutil/win32/silcwin32thread.c A patch by Mikko L.
602 Thu Dec 12 12:06:59 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
604 * Don't print signed messages when sending failed. Affected files
605 irssi/src/silc/core/silc-[servers.c/commands.h]
607 * Send adquate signal when founding a channel by joing it. Affect
608 file irssi/src/silc/core/client_ops.c
610 Wed Dec 11 21:46:19 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
612 * Fix theme abstracts parsing. Affected files irssi/default.theme,
613 irssi/src/fe-common/core/themes.c
615 Wed Dec 11 20:20:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
617 * Fixed close command to use the port correctly when closing
618 server connections. Affected file silcd/idlist.c.
620 * Check for NULL outbuf in silc_socket_write. It is possible
621 that it is NULL is some odd case. Affected files are
622 lib/silcutil/[unix/win32]/silc[unix/win32]sockconn.c.
624 * Do not call final protocol callback for backup router
625 resuming protocol when closing connection. It is closed
626 by timeout in case of error. Affected file silcd/server.c.
628 * Backup reconnect to router if backup resuming protocol
629 failed. Affected file silcd/server_backup.c.
631 Wed Dec 11 10:01:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
633 * Fixed double free in SKE library error hadling when signature
634 error occurred. Affected file lib/silcske/silcske.c.
636 * Save the fingerprint to new SilcClientEntry after changing
637 nickname. Affected file lib/silcclient/client_notify.c.
639 * Print SIGNOFF in Irssi SILC client only if the nickname is
640 known. Prevents asserts in Irssi core. It is possible we
641 don't have the nick if it was just being resolved when it
642 quit. Affected file irssi/src/silc/core/client_ops.c.
644 Tue Dec 10 21:47:56 EET 2002 Pekka Riikonen <priikone@silcnet.org>
646 * Fixed double free in invite list adding code when adding
647 invite strings. Affected file silcd/server_util.c.
649 Fri Dec 6 17:40:24 EET 2002 Pekka Riikonen <priikone@silcnet.org>
651 * More log printing during backup router protocol. Affected
652 file silcd/server_backup.c.
654 * Removed backwards support for old private key file format.
655 Affected file lib/silccrypt/silcpkcs.c.
657 * Removed backwards support for not-so-strict decryption length
658 check, it's strict now. Affected lib/silccrypt/silccipher.c.
660 * GETKEY to update the client entrys fingerprint too.
661 Affected file lib/silcclient/command_reply.c.
663 * Added --without-libtoolfix for package builders using weird
664 wrappers around libtool (BSD at least).
666 Thu Dec 5 22:29:46 EET 2002 Pekka Riikonen <priikone@silcnet.org>
668 * Fixed backup router bugs: When backup resumes router and
669 receives a CHANNEL_MESSAGE packet the backup must not act
670 as router since the packet header decryption would be
671 different. Also, when relaying packets to channel, do
672 not re-encrypt packets on backup that came from the primary
673 since the connection isn't really router-router connection.
674 Affected files silcd/server.c, silcd/packet_send.c.
676 * Added checks in encryption/decryption that encryption/decryption
677 length sent as argument really is multiple by block size. Helps
678 catching really weird bugs like the above backup router bugs
679 when packets are being decrypted in wrong way. Affected files
680 lib/silccore/silcpacket.c, and lib/silccrypt/silccipher.c.
682 * Fixed padding generation in private key file encryption.
683 Affected file lib/silccrypt/silcpkcs.c.
685 Thu Dec 5 16:35:23 EET 2002 Pekka Riikonen <priikone@silcnet.org>
687 * Added ignore_message_signatures setting which can be used
688 to ignore signatures in messages. Affected files are
689 irssi/src/silc/core/client_ops.c, silc-core.c.
691 * Fixed the libtoolfix to use command line options instead of
692 environment variables. They didn't work as expected. Now,
693 the libtool is fully run-time configurable.
695 Wed Dec 4 21:08:52 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
697 * Verify signature payload for signed messages. Affected files
698 irssi/src/silc/core/client_ops.h, irssi/src/silc/core/silc-servers.c,
699 irssi/src/silc/core/silc-core.h
701 * Display signature verification result in public and private
702 messages using theme abstracts. See irssi/default.theme for
703 examples on their usage. Affected files
704 irssi/default.theme, irssi/src/fe-common/silc/fe-messages.h,
705 irssi/src/fe-common/silc/module-formats.[ch],
706 irssi/src/fe-common/silc/fe-common-silc.c,
707 irssi/src/fe-common/silc/Makefile.am
708 irssi/src/fe-common/core/fe-messages.[ch]
710 * Fixed bugs in Irssi's theme parsing. Affected files
711 irssi/src/fe-common/core/themes.c
713 Wed Dec 4 18:29:13 EET 2002 Pekka Riikonen <priikone@silcnet.org>
715 * Calculate the correct length for signed messages before
716 encrypting, it must be multiple by block size. Affected
717 file lib/silccore/silcmessage.c.
719 * silc_message_signed_get_public_key returns now both
720 decoded and encoded public key. Affected files are
721 lib/silccore/silcmessage.[ch].
723 * Added libtoolfix script that makes the libtool more generic
724 and configurable in run-time. Now we can specify in run-time
725 if what kind of libraries we want to create, regardless of
726 configuration. SIMs are now creates even if --disable-shared
727 was explicitly given.
729 Tue Dec 3 23:26:55 EET 2002 Pekka Riikonen <priikone@silcnet.org>
731 * Fixed founder key sending in CMODE command in client.
732 Affected file lib/silcclient/command.c.
734 * Fixed CUMODE founder authentication in server to not check
735 for client's public key since it's not supposed to do that.
736 Affected file silcd/command.c.
738 Tue Dec 3 12:02:41 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
740 * Set realname and hostname in NICK_REC records. Affected file
741 irssi/src/silc/core/silc-nicklist.c
743 Mon Dec 2 20:50:20 EET 2002 Pekka Riikonen <priikone@silcnet.org>
745 * Remove 1.0 protocol backwards compat code from client
748 * Added more reliable check for whether nickname did change
749 or not, or whether only Client ID changed in NICK_CHANGE
750 notify. Affected file lib/silcclient/client_notify.c.
751 Fixes bug in '@' character handling in a nickname.
753 * Added support for automatically parsing signature from
754 the message payload. Added new function
755 silc_message_get_signature to return the payload to
756 application. Affected files lib/silccore/silcmessage.[ch].
758 * Changed the private_message and channel_message client
759 operations to deliver the SilcMessagePayload to the
760 application too. Application can use it fe. to get the
761 signature from the message for verification. Affected
762 file lib/silcclient/silcclient.h, client_channel.c and
765 * Redefined the signed payload for message payloads.
766 Updated protocol specs and implemented.
768 Mon Dec 2 16:28:29 EET 2002 Pekka Riikonen <priikone@silcnet.org>
770 * Fixed wrong invite and ban list handling in server command
771 reply. Affected files are silcd/command_reply.c,
772 silcd/server_util.[ch].
774 Sun Dec 1 20:48:17 EET 2002 Pekka Riikonen <priikone@silcnet.org>
776 * Fixed CMODE setting in server when founder mode was set.
777 Affected file silcd/command.c. Bug #95.
779 * Added support to setting specific public key in CMODE in
780 Irssi SILC client. Affected file lib/silcclient/command.c.
782 * Added support to use specific public key in CUMODE in
783 Irssi SILC Client. Affected file lib/silcclient/command.c.
785 * Added support for inviting and banning by public key in
786 Irssi SILC client. Affected file lib/silcclient/command.c.
788 * Fixed fingerprint/babbleprint showing in invite and ban
789 list command replys. Affected file is
790 irssi/src/silc/core/client_ops.c.
792 Sun Dec 1 16:32:03 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
794 * Format CMODE +c and +h to display both the mode and the argument
796 Sun Dec 1 18:17:22 EET 2002 Pekka Riikonen <priikone@silcnet.org>
798 * Added test vectors and test programs for SHA-1, MD5,
799 HMAC-SHA1 and HMAC-MD5. New tests are located in
800 lib/silccrypt/tests/. Fixed also argument decoding bug in
801 MD5 implementation. Affected file lib/silccrypt/md5.c.
803 * Changed the channel private key and private message key
804 generation (with static keys) to use SHA1 instead of MD5,
805 as SHA1 is the mandatory hash function in SILC. Affected
806 file lib/silcclient/client_[channel/prvmsg].c.
808 * Changed the private key file encryption to use SHA1 instead
809 of MD5. Added support for the old generation and added
810 automatic change of the key (to be removed later). Affected
811 files lib/silccrypt/silcpkcs.c.
813 Sat Nov 30 19:07:52 EET 2002 Pekka Riikonen <priikone@silcnet.org>
815 * Load only files with .pub suffix in PublicKeyDir. Affected
816 file silcd/serverconfig.c.
818 Sat Nov 30 14:29:34 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
820 * Extended the SILC_SERVER_LOG_ERROR macro to all available logging
821 channels. Affected files silcd/silcd.c, silcd/server.h.
823 * Added the config directive PublicKeyDir for the client block.
824 Affected files doc/exampe_silcd.conf.in, silcd/serverconfig.[ch].
826 Sat Nov 30 09:30:55 CET 2002 Pekka Riikonen <priikone@silcnet.org>
828 * Merged Toni's irssi/silc.conf patch.
830 * ROBODoc cleanup patch to lib/silccrypt/silcpkcs.h by johnny.
832 * Max alloc tests in allocation routines. Affected file
833 lib/silcutil/silcmemory.c.
835 Fri Nov 29 23:44:29 EET 2002 Pekka Riikonen <priikone@silcnet.org>
837 * Fixed a typo in resuming code that fixed detach/resume code
838 in server. Bug #93. Affected file silcd/packet_receive.c.
840 Thu Nov 28 17:17:11 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
842 * Do reverse lookups for server when /connecting. Affected files
843 irssi/silc.conf, irssi/src/core/servers.c, irssi/src/core/network.c,
844 irssi/src/core/net-nonblock.*
846 Thu Nov 28 16:19:18 CET 2002 Pekka Riikonen <priikone@silcnet.org>
848 * Added library versioning for shared libraries. Affected
849 files configure.in.pre and lib/Makefile.am.pre.
851 Wed Nov 27 21:51:52 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
853 * Display INVITE and BAN lists as specified by SILC 1.2
855 Wed Nov 27 16:01:11 CET 2002 Pekka Riikonen <priikone@silcnet.org>
857 * Do not send invite list back unless asked (when sending
858 no arguments) or when list was modified. Affected file
861 * Remove client from invite list in KILLED notify and in
862 KILL command. Affected file silcd/command.c and
865 * Fixed bugs in invite list handling in INVITE command.
866 Affected files silcd/command.c and silcd/server_util.c.
868 * Merged with Irssi 0.8.6.
870 * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
871 Affected file irssi/src/fe-text/silc.c.
873 Mon Nov 25 18:21:43 EET 2002 Pekka Riikonen <priikone@silcnet.org>
875 * The silc_argument_get_[first/next] now return the argument
876 type to caller. Added silc_argument_payload_encode_one.
878 Affected files are lib/silccore/silcargument.[ch].
880 * Added support for the SILC 1.2 INVITE command and new
881 invite lists to server. Affected files are silcd/command.c,
882 silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
884 * Added support for the SILC 1.2 BAN command and new
885 ban lists to server. Affected files are silcd/command.c,
886 silcd/server_util.[ch] and silcd/packet_[receive/send].[ch].
888 * Added support to client sending new INVITE command. Affected
889 file is lib/silcclient/command.c.
891 * Added support to client sending new BAN command. Affected
892 file is lib/silcclient/command.c.
894 * Added support for removing client from invite list when kicked
895 from channel, as SILC 1.2 dictates. Affected files are
896 silcd/packet_receive.c and silcd/command.c.
898 Sun Nov 24 18:26:42 EET 2002 Pekka Riikonen <priikone@silcnet.org>
900 * If iv argument to silc_cipher_[encrypt/decrypt] is NULL, use
901 automatically the cipher's internal IV. Affected files
902 lib/silccrypt/silccipher.[ch].
904 * Assure the RESUME_CLIENT packet is not sent to twice to
905 backup router if the detached client was originated from
906 the backup. Affected file silcd/server.c. Bug #76.
908 * Changed silc_sim_symname to not allocate memory. Affected
909 file lib/silcsim/silcsimutil.c.
911 * Fixed memory leaks with SIMs in server. Affected files
912 silcd/serverconfig.c, silcd/server.c.
914 * Fixed channel key distribution after resuming detached
915 client. Affected files silcd/packet_receive.c.
917 * Fixed channel's global_user boolean checking after detaching.
918 Check it after changing the owner of the client not before.
919 Affected file silcd/packet_receive.c.
921 * Fixed few double frees from client library. Fixes at least
922 Bug #81, possibly others too.
924 * UTF-8 decode topics also in JOIN command reply and TOPIC_SET
925 notifys in Irssi SILC Client. Affected file is
926 irssi/src/silc/core/client_ops.c. Bug #82.
928 * Applied Ville Räsänen's manual page and --mandir bugfix
929 patch. Affected files are configure.in.pre and Makefile.am.pre.
932 Fri Nov 22 18:34:20 EET 2002 Pekka Riikonen <priikone@silcnet.org>
934 * Added support to backup router protocol for backup to tell
935 normal server that it cannot use the backup router as primary
936 because the primary isn't really down. Updated protocol
939 * Added support for primary router to tell backup router that
940 resuming is not possible because the backup really isn't primary
941 in the cell. For example if backup disconnected itself the
942 resuming is not allowed since the primary really did not
943 go down. Updated protocol specs.
945 * Removed MARS from crypto library.
947 * Defined the CTR mode and Randomized CBC mode in SILC. The
948 CTR mode is RECOMMENDED now in specification. Defined also
949 Serpent cipher as optional cipher. Updated the protocol specs.
951 Thu Nov 21 12:43:28 EET 2002 Pekka Riikonen <priikone@silcnet.org>
953 * Added support for inviting/banning by IP/MASK, public key,
954 and explicit Client ID. Redefined the command and notify
955 types to allow easier forwards support for other methods
956 of inviting/banning. Updated protocol specs.
958 * Remove the client from channel's invite lists if the client
959 is kicked or killed. Updated protocol specs.
961 * Unified the Channel Message Payload and Private Message
962 into one Message Payload. Updated protocol specs and
965 Tue Nov 19 22:30:56 EET 2002 Pekka Riikonen <priikone@silcnet.org>
967 * Don't wait for EOF after socket error has occurred, but
968 close the connection. Affected file is silcd/server.c.
970 Mon Nov 18 18:58:26 EET 2002 Pekka Riikonen <priikone@silcnet.org>
972 * Added support for setting FOUNDER mode on channel with
973 specific public key which can be set with CMODE command.
974 Updated protocol specs and implemented in client and server.
976 * Fixed the Irssi SILC client to correctly shutdown the client
977 library to avoid memory leaks. Affected files are
978 irssi/src/silc/core/silc-core.c and silc-servers.c.
980 * Deprecated the No Reply flag in SKE protocol and introduced
981 "IV Included" flag which can be used to indicate that the IV
982 is included in the ciphertext. This makes it possible to use
983 SILC on unreliable transport, such as UDP which may cause
984 packet reordering and losses. Updated protocol specs, did
987 Sun Nov 17 15:50:57 EET 2002 Pekka Riikonen <priikone@silcnet.org>
989 * Fixed the MPI implementation of silc_mp_sizeinbase to return
990 < 32 bit values in correct size. Affected file is
991 lib/silcmath/mp_mpi.c.
993 Sat Nov 16 13:14:45 EET 2002 Pekka Riikonen <priikone@silcnet.org>
995 * Fixed the KE Start Payload parsing to check that mandatory
996 fields are present. Affected file lib/silcske/payload.c.
998 * Fixed compilation warnigs in Irssi SILC Client. Affected
999 files are irssi/src/silc/core/silc-query.c. client_ops.c.
1001 Thu Nov 14 19:33:28 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1003 * Print "nick now appears as newnick" and update Irssi's nicklist
1004 when you change your nick to "nick". Closes #62
1006 * Never format your own nick. Closes #63
1008 Thu Nov 14 09:44:54 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1010 * SILC_UMODE_GONE changes are now propagated correctly to the
1011 Irssi client. Closes #54
1013 Tue Nov 12 19:42:18 CET 2002 Jochen Eisinger <c0ffee@penguin-breeder.org>
1015 * Fixed example in /HELP KEY
1017 * Added expando $j which expands to current SILC Client version
1019 Tue Nov 12 19:46:39 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1021 * Fixed public key decoding in crypto library.
1023 * Added better error printing to SKE library.
1025 Tue Nov 12 08:50:12 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1027 * Fixed NICK command to not crash if nickname was not sent.
1029 Mon Nov 11 19:32:00 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1031 * Added Encrypt-Then-MAC order to SILC packet MAC generation.
1032 Deprecated the old Encrypt-And-MAC order. Updated protocol
1033 specs and implemented.
1035 * Added Encrypt-Then-MAC order to Channel Message Payload MAC
1036 generation. Updated specs and implemented.
1038 Sun Nov 10 12:20:56 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1040 * Added support for rekey before 2^32 sequence number wraps.
1041 Affected files in server and client library.
1043 * Padding must be at least 8 bytes now. Implemented and updated
1046 * Compute maximum padding for authentication packets to make
1047 passphrase approximation attacks impossible. Affected files
1048 in client library and in server.
1050 * Fixed PING command sending in client library and handling in
1051 server. The server ID must be ID Payload, not raw ID data.
1052 Affected files in server and client library.
1054 * Defined that all public keys sent in commands and notify
1055 payloads are actually Public Key Payloads not raw public key
1056 data. Updated protocol specs and implemented.
1058 * Updated protocol version to 1.2. Updated specs and code.
1060 * Added ERR_UNSUPPORTED_PUBLIC_KEY and ERR_OPERATION_ALLOWED
1061 status types. Updated specs and the code.
1063 * Added support for normal client to kill its own entries from
1064 the network. Updated protocol specs and the code.
1066 * Defined the SILC_MESSAGE_FLAG_SIGNED. Updated protocol specs
1067 and added initial implementation.
1069 * Added MAC field to the Private Message Payload to protect
1070 against chosen ciphertext attacks. Updated the protocol specs
1073 * Added idle and signon fields to the ATTRIBUTE_SERVICE
1074 attribute to indicate the user's current idle and signon time
1075 of a service. Updated protocol specs and implemented.
1077 Thu Nov 7 19:21:10 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1079 * Added "do_not_bind" argument to silc_client_file_send what
1080 can be used to not bind locally but assume the file receiver
1081 provides the point of connect. Usefull when sender is behind
1082 NAT device. Affected file lib/silcclient/silcclient.h and
1085 * Added -no-listener option to FILE SEND command in Irssi SILC
1086 client. Affected file irssi/src/silc/core/silc-servers.c.
1087 Renamed FILE RECEIVE to FILE ACCEPT.
1089 * Confirm passphrase for private key encryption in
1090 silc_create_key_pair and silc_change_private_key_passphrase.
1091 Affected files are lib/silcutil/silcapputil.c.
1093 Thu Nov 7 10:05:28 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1095 * Move silc_client_packet_send back to internal, added
1096 silc_client_send_packet, a bit simpler function for application.
1097 Affected files lib/silcclient/silcclient.h, client.c and
1100 * Moved the SilcClientEntry, SilcChannelEntry and
1101 SilcServerEntry to silcclient.h to be public and documented
1102 them for application. Affected files are
1103 lib/silcclient/silcclient.h and idlist.h.
1105 Wed Nov 6 17:18:13 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1107 * Fixed manual page installation patch by Ville Räsänen.
1108 USERS help page fix patch by Ville Räsänen
1110 * Changed the silc_client_command_call interface to make
1111 the command call simpler for the application. The library
1112 now handles the command line parsing, command finding and
1113 execution. Application only needs to call the function
1114 with the command line. Affected files are
1115 lib/silcclient/silcclient.h, command.[ch].
1117 * Fixed silc_get_input to NULL-terminate the returned input.
1118 Affected file lib/silcutil/silcutil.c.
1120 * Resolve the client's public key in JOIN command if the
1121 founder auth data is being requested but we don't know the
1122 client's public key. Affected file silcd/command.c.
1125 Mon Nov 4 16:02:59 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1127 * Print notify for server opers when backup router comes
1128 online. Affected file silcd/server.c.
1130 * Fixed the INVITE command to send the invite list in
1131 command reply. Affected file silcd/command_reply.c.
1133 * Fixed MOTD command reply sending. Affected file
1136 * UTF-8 decode the topic in TOPIC command reply and LIST
1137 command reply in Irssi SILC client. Affected file is
1138 irssi/src/silc/core/client_ops.c.
1140 Sun Nov 3 17:59:15 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1142 * Fixed the INVITE command to not crash Irssi SILC client
1143 when given without nickname argument. AFfected file
1144 irssi/src/silc/core/client_ops.c.
1146 * Fixed double free in WHOIS query on normal server when
1147 forwarding query to router. Affected file is
1148 silcd/server_query.c.
1150 * Fixed WATCH command reply handling on normal server which
1151 was missing altogether. Affected file silcd/command_reply.c.
1154 Sun Nov 3 00:42:05 EET 2002 Mika Boström <bostik@lut.fi>
1156 * Added man-pages for silc(1), silcd(8) and silcd.conf(5).
1157 Included yodl sources for each of these. Also modified
1158 Makefile.am prototype to install these files to proper
1159 locations. Updated CREDITS. Affected file Makefile.am.pre,
1160 new files doc/*.yo, doc/silc.1, doc/silcd.conf.5,
1163 Sat Nov 2 21:26:56 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1165 * Added support for encrypted private key files. Now
1166 passphrase must be provided when new key pair is created
1167 (can be empty though), and prompted when loading the
1168 private key. Added support for loading the old-style
1169 non-encrypted private keys as well. Affected files
1170 lib/silccrypt/silcpkcs.[ch], Irssi SILC client and
1173 * Fixed silc_get_input to accept input on all terminals.
1174 Affected file lib/silcutil/silcutil.c.
1176 * Moved the Irssi SILC client key loading and other stuff
1177 to be called after the arguments and UI is initialized.
1178 Affected file irssi/src/silc/core/silc-core.c. Bug #31.
1180 * Added -P option to Irssi SILC client which can be used
1181 to change the passphrase of the private key. Affected
1182 file irssi/src/silc/core/silc-core.c.
1184 * Added silc_change_private_key_passphrase apputil routine
1185 to lib/silcutil/silcapputil.[ch].
1187 Sat Nov 2 12:53:09 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1189 * Fixed connection closing in client library to not crash.
1190 Moved the connection freeing totally to function
1191 silc_clinet_del_connection. Affected file
1192 lib/silcclinet/client.c.
1194 Fri Nov 1 18:57:02 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1196 * Changed includes/silcincludes.h to silcincludes.h.in to
1197 include configuration specific information. The silcdefs.h
1198 is not included in to installation anymore (it's only
1199 compilation time header).
1201 Fri Nov 1 10:30:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1203 * Moved the SilcClient and SilcClientConnection from client.h
1204 to the public lib/silcclient/silcclient.h. Changed the
1207 Thu Oct 31 22:44:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1209 * If version string in silc_clinet_alloc is NULL the library
1210 puts it automatically. Affected file lib/silcclient/client.c.
1212 * Changed the version strings from variables to #define's
1213 in includes/silcversion.h.
1215 Wed Oct 30 16:17:30 CET 2002 Pekka Riikonen <priikone@silcnet.org>
1217 * Added shared library complation support.
1219 Tue Oct 29 21:48:55 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1221 * Added lib/silcutil/silcapputil.[ch] for application
1222 utility functions. It includes routines for applications'
1223 convenience. Added silc_create_key_pair, silc_show_public_key
1224 and silc_load_key_pair functions.
1226 Tue Oct 29 17:36:44 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1228 * Send RESUME_CLIENT packet from router to backup routers
1229 to in resuming. Affected file silcd/packet_receive.c.
1231 Mon Oct 28 21:23:39 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1233 * In IDENTIFY command parsing, send all other IDs except
1234 Client IDs explicitly to router for resolving on normal
1235 server. Also check that ID received in WHOIS command is
1236 always Client ID, others are not allowed. Affected file
1237 silcd/server_query.c.
1239 * Merged latest changes from irssi.org CVS.
1241 Sun Oct 27 11:44:32 EET 2002 Pekka Riikonen <priikone@silcnet.org>
1243 * Merged c0ffee's /set heartbeat patch to Irssi SILC client.
1244 Affected files irssi/src/silc/core/silc-core, silc-server.c.
1246 * Fixed the heartbeat sending in Irssi SILC client. Moved
1247 the silc_client_packet_send to silcclient.h for application
1248 usage. Affected files lib/silcclient/client_internal.h
1249 lib/silcclient/silcclient.h.
1251 * Fixed a bug in query resolving in server. Used wrong
1252 variable in a for loop and crashed. Affected file is
1253 silcd/server_query.c.
1255 * Server constructs requested attributes only to locally
1256 connected clients. Affected file silcd/server_query.c.
1259 * Fixed a bug when sending resolving from router to server
1260 with requested attributes. The constructed WHOIS command
1261 was incorrect. Affected file silcd/server_query.c.
1264 * Fixed Requested Attributes saving in WHOIS command reply.
1265 The length of the data buffer must be saved too. Affected
1266 file silcd/command_reply.c.
1268 * Update the client entry's servername after detaching is
1269 over. Affected file silcd/packet_receive.c. Bug #37.
1271 * Resolve incomplete client entrys in CUMODE_CHANGE and
1272 CMODE_CHANGE notifys. Affected file is
1273 lib/silcclient/client_notify.c. Bug #42.
1275 Thu Oct 24 12:22:35 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1277 * Fixed channel key packet processing bug on backup router
1278 during backup resuming protocol. Affected file is
1279 silcd/packet_receive.c.
1281 * Fixed memory leaks in server. Affected files are
1282 silcd/server.c and silcd/packet_receive.c.
1284 * Fixed packet decryption problem when backup router encrypted
1285 channel message with wrong key during backup resuming
1286 protocol. Affected file silcd/packet_send.c.
1288 * ROBODoc documented lib/silccrypt/silccipher.h. A patch by
1289 Toni Willberg (toniw@iki.fi)
1291 * Changed the SilcCipher context to be private. Changed the
1292 silc_cipher_get_iv to just return pointer to the IV. Added
1293 silc_cipher_get_name to return the name of the cipher.
1294 Fixed code all around to support these changes. Affected
1295 files are lib/silccrypt/silccipher.[ch], client library and
1298 Wed Oct 23 19:01:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1300 * Fixed unaligned access in lib/silccore/silcattrs.c.
1302 * Fixed libtool linking in lib/silcsim/Makefile.am.
1304 * Fixed services attribute printing. Affected files is
1305 irssi/src/silc/core/silc-queries.c.
1307 Wed Oct 23 09:51:04 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1309 * Fixed a crashbug in incoming server accepting. Affected
1310 file silcd/server.c.
1312 Tue Oct 22 13:02:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1314 * Added automatically generated index to Toolkit Reference
1317 * Added support for Postscript Toolkit Reference Manual.
1319 Mon Oct 21 21:30:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1321 * Merged DISCONNECT fix, and autoconn port fix from Irssi
1324 Sun Oct 20 19:54:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1326 * Added 'send_events' boolean argument to the function
1327 silc_schedule_set_listen_fd which sends the set events to
1328 the application explicitly if set to TRUE. Default action
1329 should be FALSE. Affected file lib/silcutil/silcschedule.[ch],
1330 lib/silcclient/client_internal.h and silcd/server_internal.h.
1332 * Added silc_compare_timeval to determine which time values
1333 is smaller. Affected file lib/silcutil/silcutil.[ch].
1335 * Added sort-of "Quality of Service" (QoS) support to
1336 SilcSocketConnection. Data reception can be controlled with
1337 rate limit per second and/or read data length limit.
1338 Added silc_socket_set_qos. Affected files are
1339 lib/silcutil/silcsockconn.[ch] and unix/silcunixsockconn.c.
1341 * Added the QoS configuration to SILC Server configuration
1342 file. Affected files are silcd/serverconfig.[ch] and
1345 Sun Oct 20 14:12:24 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1347 * Merged with irssi.org CVS.
1349 * Failed OPER and SILCOPER authentications are now logged.
1350 Affected file silcd/command.c. Bugs #25.
1352 Sat Oct 19 13:32:15 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1354 * ROBODoc documented lib/silcutil/silcbuffer.h and
1355 lib/silcutil/silcdlist.h. Patch by Ville Räsänen
1356 <ville.rasanen@iki.fi>.
1358 Fri Oct 18 10:51:04 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1360 * Added support for auto-passphrase authentication from the
1361 config file during connecting which was not implemented
1362 yet. Affected file irssi/src/silc/core/client_ops.c.
1364 * Fixed a bug in authentication protocol failure handling which
1365 was processing wrong callback context. Affected files
1366 are lib/silcclient/client.c and protocol.c.
1368 * Fixed the /ATTR allow off to actually work. Affected file
1369 is irssi/src/silc/core/silc-queries.c.
1371 * Fixed the /ATTR -del to work. Affected file is
1372 irssi/src/silc/core/silc-queries.c.
1374 Thu Oct 17 23:45:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1376 * Fixed string formatting crashbug in lib/silccore/silcattrs.c.
1378 * Fixed mask attribute adding in Irssi SILC client. Affected
1379 file irssi/src/silc/core/silc-queries.c.
1381 Thu Oct 17 16:40:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1383 * Added support for saving the requested attributes in
1384 WHOIS to directory. Affected file is
1385 irssi/src/silc/core/silc-queries.c.
1387 Wed Oct 16 17:40:56 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1389 * Added support for parsing VCard fields that do not have
1390 the TYPE= for types. Affected file lib/silcutil/silcvcard.c.
1392 * Fixed a double free bug in hash table foreach function
1393 if the entry was deleted in the foreach callback. Affected
1394 file lib/silcutil/silchashtable.c.
1396 Tue Oct 15 18:05:24 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1398 * Added silc_attribute_get_verify_data to return the signature
1399 verification data for either user digital signature or
1400 server digital signature in Requested Attributes. Affected
1401 files are lib/silccore/silcattrs.[ch].
1403 * Added silc_vcard_alloc which is used to allocated dynamic
1404 SilcVCard context. The silc_vcard_free now checks whether
1405 the context is dynamically allocated or not. Affected files
1406 are lib/silcutil/silcvcard.[ch].
1408 Mon Oct 14 17:55:44 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1410 * Periodically remove the NOATTR status from client entry
1411 so that the client may take the attributes in use even after
1412 server has resolved them unsuccessfully earlier. Affected
1413 file silcd/server_query.c and idlist.h.
1415 * Moved sha1hash and md5hash from client->internal to
1416 SilcClient for application usage. Affected files are
1417 lib/silcclient/client.h and client_internal.h.
1419 * Fixed attribute encoding and decoding bugs. Affected
1420 files lib/silccore/silcattrs.[ch].
1422 * Added ATTR command to Irssi SILC Client which is used to
1423 manage user's Requested Attributes sending and values for
1424 WHOIS command. Affected files around Irssi SILC client.
1426 Mon Oct 14 14:33:54 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1428 * Added silc_buffer_strformat which can be used to format
1429 strings into a buffer which size is automatically increased.
1430 Affected file lib/silcutil/silcbuffmt.[ch].
1432 * Added implementation of VCard (RFC 2426) which can be used
1433 as part of Requested Attributes in WHOIS command. Affected
1434 file lib/silcutil/silcvcard.[ch].
1436 Fri Oct 11 23:52:17 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1438 * Some strncat -> silc_strncat changes our the core and
1441 * Added SILC_SKE_STATUS_SIGNATURE_ERROR and OUT_OF_MEMORY
1442 errors. Added better error printing to SKE library.
1443 Affected files lib/silcske/silcske.c, silcske_status.h and
1446 * Save the PKCS key length even if only private key is set to
1447 SilcPKCS. Affected file lib/silccrypt/silcpkcs.[ch] and rsa.c.
1449 * Fixed the usage of silc_pkcs_get_key_len since it returns the
1450 length in bits not in bytes. Affected files are
1451 lib/silcske/silcske.c, lib/silccore/silcauth.c and
1452 silcd/server_query.c.
1454 Wed Oct 9 17:22:57 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1456 * Added silc_attribute_payload_encode_data to directly encode
1457 the data into the attributes buffer. Renamed function
1458 silc_attribute_payload_parse_list to silc_attribute_payload_parse.
1459 Affected files are lib/silccore/silcattrs.[ch].
1461 * silc_hash_table_find_foreach calls the foreach function now
1462 once even if the nothing was found with context set to NULL.
1463 Affected file lib/silcutil/silchashtable.[ch].
1465 * Remove the RESOLVING flag from client entry after received
1466 the Requested Attributes from the client. Fixed memory leak
1467 in client entry freeing. Affected files silcd/server_query.c
1470 * Added Requested Attributes support into SILC Client Library.
1471 It is not able to send requested attributes in WHOIS command,
1472 and also receive and process requested attributes. Added
1473 silc_client_attribute_[add|del] and silc_client_attributes_get
1474 functions. Added also `ignore_requested_attributes' to the
1475 SilcClientParams to not use attributes in client. Affected
1476 files are lib/silcclient/command.c, client_attrs.[ch],
1477 silcclient.h, client_internal and client.[ch].
1479 * Changed the silc_client_get_client_by_id to support Requested
1480 Attributes, it takes them as argument now. Affected file
1481 is lib/silcclient/silcclient.h, and idlist.c.
1483 * Added -details option to WHOIS command in Irssi SILC Client
1484 to support the requested attributes. By default it requests
1485 all attributes. Affected file lib/silcclient/command.c and
1486 irssi/doc/help/in/whois.in.
1488 Tue Oct 8 17:58:28 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1490 * Add also SERVICE attribute for server-constructed attribute
1491 data. Also digitally sign the attributes and add
1492 SERVER_DIGITAL_SIGNATURE attribute. Affected file is
1493 silcd/server_query.c.
1495 Mon Oct 7 18:25:35 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1497 * Changed the silc_attribute_payload_encode to support list
1498 of attributes (function may be called several times to add
1499 a new attribute). Removed the silc_attribute_payload_encode_list
1500 function. The encoding function now also automatically encodes
1501 the data, so the caller does not need to do that. Affected
1502 files lib/silccore/silcattrs.[ch].
1504 * Added support for replying on behalf of the user to the
1505 Requested Attributes in WHOIS command in the server. Affected
1506 file silcd/server_query.c.
1508 * SILC_NOT_IMPLEMENTED macro use SILC_LOG_INFO now instead of
1509 SILC_LOG_DEBUG. Affected file lib/silcutil/silclog.h.
1511 Sun Oct 6 16:48:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1513 * Don't swtich to become primary router if we are backup if
1514 decryption error has occurred. Affected file silcd/server.c.
1516 * Fixed a bug in backup router IP address comparison in
1517 silc_server_backup_get.
1519 Save now also the port of the server/router and use that
1520 in comparison as well. Affected file silcd/server_backup.c.
1522 * Normal server now reconnects to backup router automatically
1523 if connection is lost to it. Affected file silcd/server.c.
1525 Thu Sep 26 13:51:02 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1527 * If packet processing fails (like integrity check fails)
1528 the connection is closed now. Affected files are
1529 lib/silccore/silcpacket.c and silcd/server.c.
1531 Mon Sep 23 10:59:39 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1533 * Fixed double free in RSA public key set function
1534 silc_rsa_set_public_key. Affected file lib/silccrypt/rsa.c.
1537 Sun Sep 22 14:54:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1539 * Rewrote WHOIS, WHOWAS and IDENTIFY commands in the server.
1540 Added server_query.[ch] which provides one interface for
1541 querying information using all three commands.
1543 * Changed all "typedef unsigned char" in core library to
1544 "typedef SilcUInt8".
1546 Sat Sep 21 21:36:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1548 * Added silc_strncat into lib/silcutil/silcstrutil.[ch].
1550 * Renamed silc_server_get_client_resolve to
1551 silc_server_query_resolve and moved to server_query.[ch].
1553 Wed Sep 18 18:28:04 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1555 * Resumed client packet handling from server put the resumed
1556 client on wrong list on router and caused the client not
1557 be present on the network anymore. Now fixed to put the
1558 client to correct list. Affected file silcd/packet_receive.c.
1560 Wed Sep 18 15:13:48 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
1562 * Various cleanup in error message output in config parsing code
1563 and in server init code. Fixed error log files containing
1564 too many newlines ('\n') in some situations. Affected files are
1565 silcd/serverconfig.c, silcd/silcd.c, and silcd/server.c.
1567 Wed Sep 18 10:51:23 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1569 * Use the reverse lookupped hostname in client internals
1570 instead of one user provided us as remote server name.
1571 Affected file lib/silcclient/client.c.
1573 Mon Sep 16 12:02:54 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1575 * Added 'app_context' to silc_schedule_init. It is an
1576 application specific context that is delivered to application
1577 in task callback functions. Affected files are
1578 lib/silcutil/silcutil.[ch].
1580 * The hb_context in SilcSocketConnection is not freed
1581 automatically anymore (application must free it). Freeing
1582 it automatic is inconsistent. Affected files are
1583 lib/silcutil/silcsockconn.[ch].
1585 Sun Sep 15 22:16:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1587 * Added support for removing explicitly added client connections
1588 in rehash and closing the client connections if they were
1589 unconfigured in the rehash. Affected file silcd/server.c.
1591 * Added support for aborting automatically pending commands
1592 that never receives the reply (to avoid memory leaks).
1593 Added also silc_server_command_pending_timed to set the
1594 specific timeout for pending command. Affected files are
1595 silcd/command[_reply].[ch].
1597 * Added SILC_STATUS_ERR_TIMEDOUT status. Updated protocol
1598 specs and lib/silccore/silcstatus.h.
1600 Sun Sep 15 12:25:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1602 * Changed the silc_get_time to accept time value as argument
1603 or if zero is sent return current local time. Affected
1604 file lib/silcutil/silcutil.[ch].
1606 * Added STATS command to client library and Irssi SILC client.
1607 Patch provided by Ville Räsänen <ville.rasanen@iki.fi>.
1609 Wed Sep 11 09:22:00 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1611 * Assure that channel key is set before sending it. May
1612 crash server otherwise. Affected file silcd/packet_send.c.
1614 Tue Sep 10 09:50:08 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1616 * Assure that endless loop cannot happen with detached client
1617 resolving on normal server. Added idlist status
1618 SILC_IDLIST_STATUS_RESUME_RES. Affected files are
1619 silcd/idlist.h and silcd/packet_receive.c.
1621 Mon Sep 9 12:18:18 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1623 * Incoming file transfer request cannot use same session as
1624 the sending session. This can happen when sending file to
1625 yourself. Crashed the client on quit. Affected file
1626 lib/silcclient/client_ftp.c. Bug #24.
1628 Sun Sep 8 18:39:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1630 * Implemented the draft-riikonen-precense-attrs draft and
1631 the Attribute Payload into the lib/silccore/silcattrs.[ch].
1633 Sun Sep 8 13:13:44 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1635 * Distribute the SERVER_SIGNOFF notify also to local backup
1636 routers from the primary router. The backup router may not
1637 have the signing of local server directly connected and need
1638 to know about the signoff. Affected file silcd/server_util.c.
1640 * Use the primary router as the origin of the locally connected
1641 server when it is disconnecting from the backup router since
1642 that's where it really is coming from. Now the clients from
1643 the disconnecting server are removed correctly and "shadow"
1644 clients are not left to the backup router. Affected file
1647 Sat Sep 7 22:26:50 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1649 * If normal server is standalone and found existing but disabled
1650 channel, do not re-create the channel since it creates
1651 duplicate same channels. Affected file silcd/server.c.
1653 * Added anonymous client connections support to server. New
1654 "anonymous" configuration option to ConnectionParams section
1655 added. If set to true, the username and hostname information
1656 of the client will be scrambled and anonymous user mode is
1657 set automatically to the user. Affected files are
1658 silcd/serverconfig.[ch], silcd/packet_receive.c and server.c.
1660 Sat Sep 7 16:02:09 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1662 * In JOIN notify handling, mark that the cache entry of the
1663 client cannot be expired. Can cause crashes on normal
1664 server (asserts client->channels). Affected file is
1665 silcd/packet_receive.c.
1667 * From now on distribution versions are used as protocol versions
1668 instead of by default using the Toolkit base version as protocol
1669 version. Affected file prepare.
1671 * Do not set the locally resolved hostname for local client
1672 entry but take what server sends. This way the real hostname
1673 is showed in WHOIS for yourself. Affected file is
1674 lib/silcclient/idlist.c and lib/silcclient/client.c.
1676 * Resolve local info with IDENTIFY when connecting to server.y
1678 Sat Sep 7 14:22:43 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1680 * Rewritten check for POSIX threads. Use --with-pthreads[=DIR]
1681 for implied search (not needed on platforms which has native
1682 pthreads library). Use --without-pthreads to disable threads.
1683 Affected file is configure.in.pre
1685 * Fixed --with-iconv on platforms which need to bypass (broken)
1686 native iconv(). Affected file is configure.in.pre
1688 Sat Sep 7 15:08:13 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1690 * Moved -C option parsing in Irssi SILC client at same time
1691 as other options. The UI was initialized earlier and caused
1692 problems on command line. Bug #16. Affected file is
1693 irssi/src/silc/core/silc-core.c.
1695 Mon Sep 2 23:00:30 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
1697 * Added global variable silc_log_timestamp that tells silclog
1698 wether to print or not the timestamp in the logging files.
1699 Affected file lib/silcutil/silclog.[ch].
1701 * Added silcd configuration option Timestamp in the Logging
1702 section. Affected file silcd/serverconfig.[ch],
1703 doc/example_silcd.conf.in.
1705 Fri Aug 30 08:57:33 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1707 * Fixed fingerprint checking to check for entirely empty
1708 fingerprint instead of two first bytes when determining
1709 if it is set. Bug #18. Affected file silcd/command.c.
1711 * Fixed duplicate PKCS name registering to not allow it.
1712 Bugs #17. Affected file lib/silccrypt/silcpkcs.c.
1714 Sun Aug 25 08:02:04 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1716 * Conditionalize non-gcc compiler optimizations for various
1717 platforms, enable those commented out. Cleanups.
1718 Affected file lib/silcmath/mpi/configure.in
1720 Sat Aug 24 15:11:32 EEST 2002 Timo Sirainen <tss@iki.fi>
1722 * silc_rng_exec_command() left zombie processes if command
1723 didn't generate any output. Affected file
1724 lib/silccrypt/silcrng.c
1726 Fri Aug 23 22:05:44 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1728 * Rewrote iconv checking, introduce --with-iconv for systems
1729 which rely on libiconv. Check if iconv() provided by libc
1730 is good enough, otherwise demand libiconv. Affected file
1733 Fri Aug 23 07:10:52 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1735 * Search for ldopen() also in libc. This enables SIM support
1736 on *BSD systems. Based on patch from Alex Zepeda. Affected
1737 file configure.in.pre
1739 Sun Aug 18 04:44:30 CEST 2002 Lubomir Sedlacik <salo@silcnet.org>
1741 * Don't call AM_CONDITIONAL conditonally for SILC_THREADS.
1742 This fixes prepare on *BSD systems. Affected file
1745 Sun Aug 4 15:55:40 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1747 * More fixed for not having purge timeout for global clients
1748 that are on channel. Affected files silcd/command_reply.c
1751 * Fixed the rekey protocol to work with backup router connections.
1752 Rekey packets are now allowed on disabled connections as
1753 well. Affected files silcd/packet_send.c and server.c.
1755 * Do not switch to be as backup router when shutting down and
1756 closing the primary connection. Affected file silcd/server.c.
1758 * Fixed memory leaks in backup router deleting. Added
1759 silc_server_backup_free to free all data during shutdown of
1760 server. Affected files silcd/server_backup.[ch].
1762 Sun Jul 14 21:33:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1764 * Do not process commands if the sock->user_data is NULL.
1765 Affected file silcd/command.c.
1767 Tue Jul 9 19:03:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1769 * Fixed buffer overflow and security problems (loosing bits
1770 in CFB encryption) in SILC RNG. Problems reported by
1771 Markku-Juhani O. Saarinen <mjos@saturn.tcs.hut.fi>.
1773 Sun Jul 7 13:10:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1775 * Added yet more checks that client is not expired on global
1776 list if it is on channels. Affected file is
1777 silcd/command_reply.c.
1779 Sat Jul 6 11:45:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1781 * Merged c0ffee's MIME signal patch which adds support for
1782 sending also MIME messages in Irssi SILC Client, and handling
1783 received MIME messages in a signal (and perhaps doing something
1784 to non-textual MIME messages).
1786 Sun Jun 30 01:30:22 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1788 * Fixed pending command deletion in server and client library
1789 to check the whole list instead of breaking after first found.
1790 The affected files are silcd/command.[ch] and
1791 lib/silcclient/command.[ch].
1793 Sat Jun 29 17:40:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1795 * Return NO_SUCH_CHANNEL error in USERS for channel that is
1796 secret or private, otherwise it's possible to find out
1797 whether a secret channel exists or not. Affected file
1800 * If CMODE change fails during the mode setting, assure that
1801 the old mode mask is set for the channel back. Affected
1802 file silcd/command.c.
1804 * Fixed passphrase saving on +a channel on normal server
1805 after successful JOIN command. Affected file silcd/command.c.
1807 Fri Jun 28 11:53:25 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1809 * Remove server/router operator privileges in DETACH command,
1810 since it's possible to resume to server where these
1811 privileges would not be allowed for the client. Affected
1812 file silcd/command.c.
1814 * Do not set to wait for backup in rehash of the server.
1815 Affected file silcd/server.c.
1817 * Do not check listener sockets when counting how many
1818 socket connections we have. Affected file is
1819 silcd/server_util.c.
1821 * Do not announce disconnected clients that are remaining
1822 in history (for WHOWAS). This is because SIGNOFF notify
1823 for these has been sent earlier already. Affected file
1826 Thu Jun 27 20:07:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1828 * Buffer overflow with CUMODE command's mode->mode character
1829 conversion. Reported by Ville Räsänen. Affected file
1830 lib/silcutil/silcutil.c.
1832 Thu Jun 27 16:54:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1834 * Allow heartbeat packets to go disabled connections anyway.
1835 Affected files silcd/server.c and silcd/packet_send.c.
1837 * Do not broadcast New Channel packets with List flag set
1838 in the packet to backup routers. The router must check
1839 for the correctness of the packets before sending them.
1840 It is possible that router will have enforce Channel ID
1841 change and this would cause desync in the backup router.
1842 Affected file silcd/packet_receive.c.
1844 * Remove SILC_PACKET_FLAG_LIST from the temp packets that
1845 are handled in list parsing. They are not list packets
1846 anymore. Affected file silcd/packet_receive.c.
1848 Thu Jun 27 11:27:07 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
1850 * Stop waiting for backup router through the timeout, not
1851 directly after backup router has arrived. Affected file
1854 * Do not re-create channel keys and send them when removing
1855 clients in server shutdown. Affected files are
1856 silcd/server_internal.h and silcd/server_util.c.
1858 * Notify distribution to backup routers was missing from
1859 the silc_server_send_notify_dest function which caused
1860 desyncing problems with backup router. Affected file is
1861 silcd/packet_send.c.
1863 * The client's channel removing was working wrong on
1864 backup router. It assumed that it doesn't know global
1865 information but backup router does know. For this reason
1866 it could remove channel when it wasn't supposed to do that.
1867 Affected file silcd/server.c and silcd/server_util.c.
1869 Wed Jun 26 15:14:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1871 * Stop for a couple seconds after badkup router has become
1872 primary router. Affected file silcd/server.c.
1874 * Added silc_server_remove_servers_by_server, which is used
1875 to remove servers originated from some other server. Also
1876 clients of those servers can be removed too. Affected file
1877 silcd/server_util.[ch].
1879 * When removing clients after a server has signed of remove
1880 also all servers behind that server (unless they are known
1881 to be available locally), and send SERVER_SIGNOFF for each
1882 of the server separately. Also the signed off clients are
1883 sent now separately per signed off server. The affected files
1884 are silcd/server.c and silcd/server_util.[ch].
1886 * All servers added with silc_idlist_add_server must always
1887 have both "router" and "connection" pointers set. Otherwise,
1888 bad server entries may be left around in the cache.
1889 Affected file silcd/command_reply.c.
1891 * Do not create the channel key in NEW_CHANNEL packet
1892 processing if the channel is empty. Affected file
1893 silcd/packet_receive.c.
1895 * Completed backup router support for standalone routers.
1896 Supports also servers in the cell that do not use the backup
1899 Wed Jun 26 10:38:11 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1901 * Fixed a bug in silc_string_regexify which did not add '^'
1902 at the start of each string, and thus the matching was
1903 not explicit. For example ban list iikone@*!*@* would
1904 match also "priikone", which is wrong, it would have to be
1905 *iikone@*!*@* to match also "priikone". Affected
1906 file lib/silcutil/unix/silcunixutil.c.
1908 Tue Jun 25 18:47:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1910 * Enable all local server connections before updating client
1911 caches when we've become backup router. Otherwise, signoff
1912 packets may not reach the clients. Affected files are
1913 silcd/server.c and silcd/server_util.[ch].
1915 * Fixed a bug in version string parsing which could crash
1916 the program with specially formatted version string.
1917 Bug reported and patch provided by Ville Räsänen. Affected
1918 file lib/silcutil/silcutil.c.
1920 * Handle the disconnection immediately when DISCONNECT
1921 packet is received in server. Affected file silcd/server.c.
1923 * Primary router now waits a short time (10 seconds) for
1924 backup router connection before accepting any other
1925 connection (except local). Affected file silcd/server.c,
1928 * Fixed a crash in client libary in NICK_CHANGE notify when
1929 NICK_CHANGE arrived for client entry we are resolving
1930 currently. Affected file lib/silcclient/client_notify.c.
1932 * Call the sconn->callback completion even if error had
1933 occurred. Start reconnecting always if connection to
1934 primary router fails during backup router protocol.
1935 Affected files silcd/server.c and server_backup.c.
1937 Mon Jun 24 17:47:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1939 * Added functions silc_server_send_opers and
1940 silc_server_send_opers_notify to send packets stricly
1941 to operators. Added macro SILC_SERVER_SEND_OPERS macro
1942 to send variable argument notify to operators.
1943 Affected files silcd/packet_send.[ch] and silcd/server.h.
1945 * Removed UMODE rights checking with UMODE_CHANGE notify.
1946 Affected file silcd/packet_receive.c.
1948 * Server/router operator now receives notify when network
1949 switches to backup router and when it resumes the use of
1950 primary router. Affected file silcd/server.c and
1951 silcd/server_backup.c.
1953 * Fixed the updating of client information after backup
1954 resuming protocol is over; update all except local clients
1955 to the new primary router. The affected file is
1956 silcd/server_util.c.
1958 * Added support for closing active connections in rehash
1959 that were unconfigured by the user. Supports currently
1960 closing server and router connections. Affected file
1963 * Rewrote some SILC_LOG_DEBUG's in silcd/server_backup.c.
1965 Sun Jun 23 17:32:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1967 * Don't do SILC_STRING_LANGUAGE encoding if the outbuffer
1968 is NULL since seems that on some platforms NULL is allowed
1969 and on some it's not. Fallback encoding is used instead.
1970 Affected file lib/silcutil/silcstrutil.c.
1972 * Fixed statistics updating for incoming server connection
1973 which could cause problems when re-connecting. Affected
1974 file silcd/server.c.
1976 * Preliminary backup router support for standalone router
1977 added. Affected files in silcd/.
1979 * Mark server connections in backup router disabled before
1980 and after backup protocol. Affected file is
1981 silcd/server_backup.c.
1983 * Added support for reconnecting to remote server connection
1984 even if the protocol fails, and if the configuration wants
1985 us to keep trying to connect anyway.
1987 Server connection is not allowed to backup router if
1988 backup router does not have connection to primary router yet.
1990 Affected file is silcd/server.c.
1992 Sat Jun 22 21:34:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
1994 * Added silc_client_udpate_server function to update changed
1995 server info. Affected file lib/silcclient/idlist.[ch].
1997 * Added check for server entries that are being resolved when
1998 notify is received. If being resolved, handle the received
1999 notify only after it's resolved so that all notifys are
2000 handled in same order as received from the server.
2002 Added similar resolver check to channel entries. Every
2003 notify that cause resolving of any information that affects
2004 channel entry marks the channel entry in waiting state.
2005 After whatever resolving is over the waiters are signalled
2006 and only then the notifys are handled in the same order
2007 as delivered from the server.
2009 Affected files are lib/silcclient/idlist.[ch], and
2012 * Fixed KILLED notify handling in normal server. Affected
2013 file silcd/packet_receive.c.
2015 * Added SILC_IDLIST_STATUS_LOCAL which indicates that entry
2016 is locally connected, or was locally connected (but may
2017 be detached and connection is not active). Added also
2018 SILC_IS_LOCAL for checking this status. Affected files
2019 silcd/idlist.h, silcd/packet_receive.c, silcd/server_util.c,
2020 silcd/server.c and silcd/server_internal.h.
2022 Sat Jun 22 17:06:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2024 * Don't send or handle TOPIC_SET if topic is already set and
2025 is same as being set. Affected files silcd/command.c and
2026 silcd/packet_receive.c.
2028 * Fixed CMODE change rights checking to work correctly when
2029 removing modes by operator. Affected file is
2030 silcd/server_util.c.
2032 * Fixed some handling with New Channel packet in router and
2033 fixed some CMODE_CHANGE notify handling in server and router.
2034 Affected file is silcd/packet_receive.c.
2036 * Changed "disconnect" client operation to include the
2037 reason of the disconnection and optional disconnection
2038 message. Affected file lib/silcclient/silcclient.h.
2040 * Made the compilation of lib/contrib/ stuff conditional.
2041 Affected files configure.in.pre, lib/contrib/Makefile.am.
2043 Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2045 * All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
2046 to the sender of the notify too, to avoid situation where two
2047 notifys are in the network at the same time going to oppsite
2048 directions. Affected file silcd/packet_receice.c.
2050 Fri Jun 21 10:00:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2052 * Delete the client from channel even if the cilent->id is
2053 NULL. It was possible that client was deleted without
2054 removing from channels (theoretically at least). Affected
2055 file silcd/server.c and silcd/server_util.c.
2057 * Free the client data too when resuming is not successful.
2058 Affected file silcd/packet_receive.c.
2060 * Merged some code from c0ffee's silc-plugin. Affected files
2061 irssi/src/silc/core/silc-channels.c and silc-expandos.c.
2063 * Added SILC_PRIMARY_ROUTE and SILC_BROADXAST macros to
2064 silcd/server_internal.h. SILC_PRIMARY_ROUTE Returns pointer
2065 to the primary router connection, the other one returns
2066 TRUE if packet must be broadcasted to network.
2068 * All notifys that are destined to primary router (to network)
2069 are now automatically sent to backup routers even if the
2070 router is standalone (and has backup router). Affected files
2073 * Added --without-irssi and --without-silcd configuration
2074 options for disabling the compilation of these applications.
2075 Affected file configure.in.pre and prepare.
2077 Thu Jun 20 13:48:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2079 * Implemented SILC_STRING_BMP and SILC_STRING_UNIVERSAL for
2080 UTF-8 encoding and decoding. Added also new encodings
2081 SILC_STRING_BMP_LSB and SILC_STRING_UNIVERSAL_LSB.
2083 Added also SILC_STRING_LANGUAGE which is language and charset
2084 specific encoder and decoer for those platforms that support
2085 iconv(). It can convert the UTF-8 to and from the locale
2086 specific character set.
2088 Affected file lib/silcutil/silcstrutil.[ch].
2090 * Added macro SILC_NOT_IMPLEMENTED to lib/silcutil/silclog.h.
2092 * Added function silc_get_command_name to the file
2093 lib/silcutil/silcutil.[ch].
2095 * Improved the server debug output a bit. Affected files are
2098 Wed Jun 19 17:46:31 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2100 * Save the channel passphrase when received succesful JOIN
2101 command reply from router, on normal server. Otherwise
2102 joinig +a channels from normal server is not possible.
2103 Affected file silcd/command.c.
2105 * Fixed a bug in TOPIC_SET notify handling. The notifier
2106 may be other than client too, like server or channel.
2107 It expected it to always be only client and ignored the
2108 notify. Affected file silcd/packet_recieve.c.
2110 * Removed some (unnecessary) debug printing from
2111 lib/silccore/silcid.c and lib/silccore/silcargument.c.
2113 * Do not force CMODE_CHANGE when server is announcing new
2116 Router announces stuff only after server reannounces channel
2117 after CHANNEL_CHANGE notify.
2119 These fixes optimizes the announcing procedure, and perhaps
2120 fixes some problems too. Affected file silcd/packet_receive.c.
2122 * Fixed SERVER_SIGNOFF sending to local clients. It was
2123 totally broken and sent the notify to all local clients,
2124 instead of only to those that was on same channel as the
2125 signing off clients. Affected file silcd/server_util.c.
2127 * Added -D option to server. It can be used to give debug
2128 level. The levels are from 0 - 99, and are predefined for
2129 smooth server debugging. (see silcd.c for the predefined
2130 levels). Affected file silcd/server.c.
2132 Wed Jun 19 16:01:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2134 * Fixed a bug in Irssi SILC client to close the connection
2135 properly when disconnecting from server. Affected file
2136 irssi/src/silc/core/client_ops.c.
2138 Tue Jun 18 17:14:52 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2140 * When authenticating as founder during JOIN command, check
2141 that the one authenticating becomes the only founder on the
2142 channel. Affected file silcd/command.c.
2144 * Better checking for founder mode setting when CUMODE_CHANGE
2145 notify is received. Affected file silcd/packet_receive.c.
2147 * Close all connections when shutting down the server by sending
2148 DISCONNECT packet. Close all listeners too when shutting
2149 down the server. Affected file silcd/server.c.
2151 * Handle DISCONNECT packet correctly in client library by
2152 calling the "disconnect" client operation. Affected file
2153 lib/silcclient/client.c.
2155 * Handle local errors correctly during resuming. Affected
2156 file lib/silcclient/client.c.
2158 Tue Jun 18 10:26:27 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2160 * The log file is not dupped internally anymore in
2161 lib/silcutil/silclog.c. Fixed memory leaks too.
2163 * The scheduler now dispatches all pending timeout tasks
2164 when it is uninitialized with silc_schedule_uninit.
2165 Affected file lib/silcutil/silcschedule.c.
2167 Mon Jun 17 21:30:55 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2169 * Added --enable-stack-trace option to configure. Added
2170 memory allocation stack trace support. Added files
2171 lib/silcutil/stacktrace.[ch]. Affected files are
2172 lib/silcutil/silcmemory.[ch].
2174 * Fixed memory leaks from libraries and server. Affected
2175 files around the tree.
2177 * Reverted back a fix made to CUMODE which broke it.
2178 Affected file silcd/command.c.
2180 Sun Jun 16 11:49:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2182 * Added SILC_MESSAGE_FLAG_UTF8 to the protocol specs and the
2183 core library, and implemented it. All textual messages SHOULD
2184 use this flag and the message MUST be UTF-8 encoded.
2185 All text messages sent by Irssi SILC client are now UTF-8
2186 encoded (regardless whether the terminal supports UTF-8 or not).
2187 Affected files are lib/silccore/silcchannel.h,
2188 irssi/src/silc/core/silc-servers.c, silc-channels.c and
2191 Sat Jun 15 18:23:39 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2193 * Added lots of new statistics updating that was missing from
2194 the server and router code. Affected files in silcd/.
2196 * Sending SIGUSR1 signal to server now dumps the current
2197 server statistics into /tmp directory. Affected file is
2200 * ROBODoc documented the lib/silccrypt/silchash.h. Improved
2201 the SILC Hash Interface also. Added new functions
2202 silc_hash_get_name, silc_hash_init, silc_hash_update and
2203 silc_hash_final. Affected file lib/silccrypt/silchash.c.
2205 Sat Jun 15 12:09:14 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2207 * Added some better info printing for client during connecting.
2208 Affected file silcd/server_util.c.
2210 * Implemented the SILC_CHANNEL_UMODE_QUIET mode that can be used
2211 to silence a user on a channel. Affected files are
2212 lib/silcclient/client_channel.c, irssi/src/silc/core/client_ops.c,
2213 irssi/src/fe-common/silc/module-formats.[ch], silcd/command.c
2214 and silcd/packet_receive.c.
2216 * Fixed a fatal bug in handling of malformed command payload.
2217 Affected file silcd/command.c.
2219 * Fixed a double free when announcing channel users to router.
2220 Affected file silcd/server.c.
2222 * After successful authentication to channel founder mode, check
2223 that there isn't anyone else with founder mode on the channel.
2224 The one that authenticated will become founder and anyone
2225 else is demoted. Affected file silcd/command.c.
2227 * Added error printing of any error that has occurred during
2228 any command in client library. Affected file is
2229 irssi/src/silc/core/client_ops.c.
2231 * Removed some error printing from the client library and left
2232 it for the application to worry (from the error status it
2233 receives in 'command' client operation. Affected file is
2234 lib/silcclient/command.c.
2236 Fri Jun 14 22:59:02 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2238 * Added new status types KEY_AGREEMENT_ALREADY_STARTED and
2239 KEY_AGREEMENT_SELF_DENIED to lib/silcclient/silcclient.h.
2240 Starting key agreement with itself is denied. Affected file
2241 is lib/silcclient/client_keyagr.c.
2243 * Fixed some error checkings from the SFTP library which caused
2244 misbehaviour. Affected files are lib/silcsftp/sftp_client.c
2245 and lib/silcsftp/sftp_util.c.
2247 * Added new "debug" and "debug_string" settings to Irssi SILC
2248 client which can be used to print runtime debugging on the
2249 Irssi's screen. Available when compiled with --enable-debug
2250 option. Affected file irssi/src/silc/core/silc-core.c.
2252 Tue Jun 11 16:36:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2254 * Fixed a missing variadic parameter in a function call that
2255 caused server crash when a non-allowed connection arrived.
2256 Reported by Richard Becker. Affected file silcd/server.c.
2258 Mon Jun 10 16:29:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2260 * Added WATCH list sending to backup routers from router.
2261 The WATCH command is sent by the router to the backup
2262 router. Affected file silcd/command.c.
2264 * Mark the backup_router flag for RouterConnection entry
2265 if the backup router stuff is defined in the config file.
2266 Affected file silcd/serverconfig.c.
2268 * Fixed some backup data sending around the code to work better
2269 if the router is standalone router. Not all places were fixed.
2270 Affected file silcd/packet_receive.c, silcd/packet_send.c,
2273 * Fixed the router connecting when connecting to multiple
2274 routers. It ignored every other router except the first
2275 one. Affected file silcd/server.c.
2277 Mon Jun 10 09:28:21 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2279 * Made the private key generation after expiration optional.
2280 If not created after expiration the old key will re-expire
2281 at a later time (and thus key pair is not necessary to
2282 change). Affected file irssi/src/silc/core/clientutil.c.
2284 Sun Jun 9 18:58:25 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2286 * The length arguments in bind() and connect() were wrong
2287 and fixed now to used SIZEOF_SOCKADDR in the
2288 lib/silcutil/unix/silcunixutil.c.
2290 Tue Jun 4 18:36:05 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2292 * Fixed detach timeout handling to use Client ID and not
2293 the actual client entry which may be freed in the callback.
2294 Affected file silcd/command.c.
2296 Thu May 30 15:53:45 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2298 * Merged c0ffee's multiple interface support patch.
2299 Affected files in silcd/.
2301 Wed May 29 18:08:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2303 * Cleanup keys properly. Affected file is
2304 irssi/src/silc/core/clientutil.c.
2306 Tue May 28 20:11:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2308 * Display the user mode on the status bar. Affected file
2309 irssi/src/silc/core/silc-expandos.c.
2311 Tue May 28 13:56:26 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2313 * If private message key is not set, but the flag is set in
2314 the packet, ignore the packet since it cannot be decrypted.
2315 Affected file lib/silcclient/client_prvmsg.c.
2317 Thu May 23 12:00:14 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2319 * When resuming client, remove the old client entry from
2320 the watcher list too. Affected file silcd/packet_receive.c.
2322 * Do not allow normal server to force founder mode away
2323 from router if the founder mode is already set. Affected
2324 file silcd/packet_receive.c.
2326 * Remove the client entry with watch notify types with short
2327 timeout, and not directly, so that other notifys can be
2328 retrieved too. Affected file lib/silcclient/client_notify.c.
2330 * Display notification about data messages that cannot be
2331 displayed. Affected files irssi/src/silc/core/client_ops.c,
2332 irssi/src/fe-common/silc/module-formats.[ch].
2334 Sun May 19 18:59:00 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2336 * Fixed the CHANNEL_CHANGE notify handling in client libary
2337 to not use freed memory. Affected file is
2338 lib/silcclient/client_notify.c.
2340 * Fixed CUMODE_CHANGE notify handling in server. Affected
2341 file silcd/packet_receive.c.
2343 * Fixed USERS command to support empty channels. Affected
2344 file silcd/command.c.
2346 Sat May 18 11:35:19 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2348 * Allow multiple identical pending commands to be registered
2349 in client library. Affected file is lib/silcclient/command.c.
2351 * Call the completion for resolving client information only
2352 after all resolvers has finished. This fixes a crash in
2353 the client. Added support for checking when the resolvers
2354 are finished. Affected file is lib/silcclient/idlist.c.
2356 * Wait by default 3 seconds before reconnecting to the server
2357 after being disconnected. Makes the /detach command a bit
2360 Fri May 17 17:23:45 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2362 * Check the watcher list before sending signoff notifys
2363 when closing client connection. Affected file is
2366 * Added better CMODE command rights checking. Affected file
2367 silcd/server_util.c.
2369 Fri May 17 08:33:41 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2371 * Fixed watcher list checking during server signoff. It
2372 crashed the server. Affected file silcd/server_util.c.
2374 * The JOIN command reply returns now the founder's public
2375 key. Affected file is silcd/command.c.
2377 * Announce the channel mode, and the mode properties with
2378 CMODE_CHANGE notify. Affected file silcd/server.c.
2380 * Mark new channels by default disabled, untill at least
2381 one user joins the channel. Affected file is
2382 silcd/packet_receive.c.
2384 Thu May 16 13:05:13 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2386 * The nickname argument to watch notify can be optional.
2387 Fixes a crash in server. Affected file silcd/packet_send.c.
2389 * Remove the client entry from cache if the WATCH notify type
2390 is KILLED, SERVER_SIGNOFF or SIGNOFF. Affected file is
2391 lib/silcclient/client_notify.c.
2393 * Check the watcher list before and after changing nickname
2394 when the NICK_CHANGE notify is received. Affected file is
2397 * Fixed a crash in OPER and SILCOPER command sending. Empty
2398 passphrase caused the crash. Affected file is
2399 lib/silcclient/command.c.
2401 Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2403 * Merged with Irssi CVS for Irssi SILC client.
2405 Tue May 14 19:37:48 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2407 * Completed the protocol specifications.
2409 Tue May 7 20:41:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2411 * Merged with Irssi CVS for Irssi SILC client.
2413 Tue May 7 11:07:16 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2415 * Added the founder's public key delivery to the
2416 CUMODE_CHANGE notify type as well. Updated the protocol
2417 specs and the code. Affected files are silcd/packet_send.[ch],
2418 silcd/packet_receive.c and silcd/command.c.
2420 Mon May 6 19:46:12 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2422 * Added silc_pkcs_public_key_copy function into the
2423 lib/silccrypt/silcpkcs.[ch].
2425 * Remove the `iv' from the SilcChannelEntry since we can
2426 live without it. Affected files are silcd/idlist.h and
2427 silcd/packet_receive.c.
2429 * Added support for sending the founder's public key in
2430 the CMODE_CHANGE notify packet in the server. Affected
2431 files are silcd/packet_send.[ch], silcd/packet_receive.c,
2432 silcd/command.c and silcd/server.c.
2434 * Changed the FOUNDER_AUTH authentication to use only
2435 public key authentication as defined by new protocol
2436 specs. Passphrase authentication with that mode cannot
2437 be used anymore. It is now possible to reclaim founder
2438 mode from any server in the network. Affected files are
2439 silcd/command.c, silcd/idlist.h and silcd/command_reply.c.
2441 * Added permanent channels support by making the channel
2442 permanent when FOUNDER_AUTH mode is set on the channel.
2443 The channel will not be destroyed even if channel is empty
2444 when that mode is set. Protocol TODO #17. Affected
2445 files are silcd/server.[ch], server_util.[ch],
2446 silcd/command.c, silcd/packet_receive.c and
2447 lib/silcclient/command.c.
2449 Fri May 3 18:36:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2451 * Added reference counter to the command reply context in
2452 the client library. Affected files are
2453 lib/silcclient/command_reply.[ch].
2455 Fri May 3 11:37:10 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2457 * Fixed rekey protocol with PFS in the client library.
2458 Affected file is lib/silcclient/protocol.c.
2460 * Added support for list of errors in client library
2461 command reply handling. Affected file is
2462 lib/silcclient/command_reply.c.
2464 * Defined that the WHOIS and IDENTIFY commands can send
2465 list of errors. Updated the protocol specs. Protocol
2468 * Added support for sending list of errors to WHOIS and
2469 IDENTIFY commands in server. Added support for receiving
2470 list of errors in server. Affected files are
2471 silcd/command.c and silcd/command_reply.c.
2473 * Fixed client info resolving on LEAVE command in client
2474 library to not crash. Affected file is
2475 lib/silcclient/client_notify.c.
2477 Thu May 2 08:45:11 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2479 * Defined that the NICK command replies with thew changed
2480 nickname too, to make the nickname changing simpler at
2481 the client's end. Updated protocol specs and the code
2482 in client and server. Affected files are
2483 silcd/command.c, lib/silcclient/command_reply.c and
2484 lib/silcclient/command.c.
2486 Mon Apr 29 20:10:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2488 * Added `Compressed' packet flag to indicate that the packet
2489 payload is compressed by the sender. Updated the protocol
2490 specs and the core library. The compression still is not
2491 implemented in the sources. Affected file is
2492 lib/silccore/silcpacket.h.
2494 Mon Apr 29 09:48:12 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2496 * Remove pending command callbacks also if the connection
2497 to the server is destroyed. Affected file is
2498 lib/silcclient/client.c.
2500 Sat Apr 27 19:52:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2502 * Added new QUIET channel user mode that can be used to
2503 quiet a user in a channel. Updated the protocol specs but
2504 it wasn't implemented yet. Protocol TODO #27. Affected
2505 file is lib/silccore/silcmode.h.
2507 Mon Apr 22 09:09:44 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2509 * Added BLOCK_INVITE user mode to be able to block incoming
2510 invite notifications. Protoocol TODO #26. Affected files
2511 are lib/silccore/silcmode.h, lib/silcclient/command.c and
2514 * SILC Publickey fields MUST be UTF-8 encoded now. Updated
2515 the protocol specs and the code. Affected file is
2516 lib/silccrypt/silcpkcs.c.
2518 Sun Apr 21 19:44:38 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2520 * Disconnect Payload includes now the status type. Updated
2521 the protocol specs and the code. Protocol TODO #25.
2522 Affected files are silcd/server.c, lib/silcclient/client.c.
2524 * Added NOT_AUTHENTICATED, BAD_SERVER_ID, INCOMPLETE_INFORMATION,
2525 KEY_EXCHANGE_FAILED and BAD_VERSION error status types.
2526 Moved the silc_client_command_status_messages table to the
2527 lib/silcutil/silcutil.c and added new funtion
2528 silc_get_status_message, which deprecates function
2529 silc_client_status_message. Affected files are
2530 lib/silccore/silcstatus.h, lib/silcclient/command_reply.[ch],
2531 lib/silcutil/silcutil.[ch].
2533 Fri Apr 19 17:35:15 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2535 * Defined that the nickname hash in Client ID MUST be from
2536 lowercase nickname. This effectively changes nicknames in
2537 SILC to case-insensitive. Updated the protocol specs and
2538 the code. Affected files are lib/silcutil/silcutil.[ch],
2539 silcd/serverid.c, and silcd/idlist.c.
2541 * Added new channel user modes BLOCK_MESSAGES_USERS and
2542 BLOCK_MESSAGES_ROBOTS. Updated the protocol specs and the
2543 code. Affected files are lib/silccore/silcmode.h,
2544 lib/silcclient/command.c, and silcd/packet_send.c.
2546 * Added new error status ERR_RESOURCE_LIMIT. Updated protocol
2547 specs and code. Affected file lib/silccore/silcstatus.h.
2549 * Added support for watch list. It is possible to add nicknames
2550 to be watched, and when they come to network, leave network
2551 or user mode changes the watcher will be notified of this
2552 change. Added SILC_COMMAND_WATCH command, added new
2553 notify type SILC_NOTIFY_TYPE_WATCH to deliver the watch
2554 notifications. Updated the protocol specs and implemented
2555 this to library, client and server. Protocol TODO #21.
2556 Affected files are lib/silccore/silccomand.h,
2557 lib/silccore/silcnotify.h, lib/silcclient/command[_reply].[ch],
2558 silcd/command[_reply].[ch], lib/silcclient/client_notify.c,
2559 silcd/packet_send.[ch], silcd/packet_receive.c, and
2560 irssi/src/silc/core/client_ops.c.
2562 * Added user mode SILC_UMODE_REJECT_WATCHING to reject
2563 somebody watching you. Updated the protocol specs and the
2564 code. Affected files are lib/silccore/silcmode.h, and
2565 lib/silcclient/command.c.
2567 Fri Apr 19 09:02:20 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2569 * Added service support to SILC protocol. Added new command
2570 SILC_COMMAND_SERVICE. Updated the protocol specs and the
2571 core library. Services are not implemented in server or
2572 client for now. Protocol TODO #20. Affected files are
2573 lib/silccore/silcstatus.h, lib/silccore/silccommand.h.
2575 * Added SilcStatus argument to `command' client operation
2576 to return the error status when command sending fails
2577 locally. Changed all command in client library to return
2578 correct command status. Affected files are
2579 lib/silcclient/command.c, lib/silcclient/silcclient.h and
2580 irssi/src/silc/core/client_ops.c.
2582 Thu Apr 18 14:09:51 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2584 * Added silc_mime_parse function to parse MIME headers.
2585 Affected files are lib/silcutil/silcstruti.[ch].
2587 * Added MIME header parsing in Irssi SILC Client. It displays
2588 all textual MIME objects, others it ignores. Affected file
2589 is irssi/src/silc/core/clien_ops.c.
2591 Wed Apr 17 22:07:59 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2593 * Fixed a bug in the pid writing function, which couldn't be
2594 written in a root-owned directory.
2596 Tue Apr 16 09:34:40 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2598 * Defined that channel message to unknown Channel ID must
2599 cause SILC_NOTIFY_TYPE_ERROR notify message to the sender.
2600 Updated the protocol specs and the code in server. The
2601 affected file is silcd/packet_receive.c.
2603 Mon Apr 15 19:57:57 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2605 * Added new notify type SILC_NOTIFY_TYPE_ERROR and specified
2606 that it is used to send error notifys if error occurs during
2607 some SILC packet processing, except commands. The error
2608 types are same as for command reply types. Defined that
2609 if private message is sent to unknown Client ID the error
2610 is sent in SILC_NOTIFY_TYPE_ERROR instead of command reply.
2611 Updated the protocol specs and code. Affected files are
2612 lib/silccore/silcnotify.h, added lib/silccore/silcstatus.h,
2613 lib/silcclient/client_notify.c, silcd/packet_receive.c,
2614 and irssi/src/silc/core/client_ops.c. Renamed the
2615 SilcCommandStatus to SilcStatus.
2617 * Defined the use of extra WHOIS attributes in WHOIS command.
2618 The <Requested Attributes> (defined in a separate document)
2619 can be used to request additional information about user
2620 not returned by standard WHOIS command. Defined that server
2621 can send WHOIS command directly to client. Client provides
2622 the requested attributes to the server. Updated the protocol
2623 specs. Protocol TODO #4. Implementation is not done yet
2624 (Protocol TODO #24).
2626 * Renamed function silc_client_command_status_message to
2627 silc_client_status_message. Affected files are
2628 lib/silcclient/command_reply.[ch].
2630 Sun Apr 14 21:13:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2632 * Changed the WHOIS, IDENTIFY and WHOWAS count arguments to
2633 32 bit integers. Updated the protcol specs and the code.
2634 Affected files are silcd/command.c and
2635 lib/silcclient/command.c.
2637 Sun Apr 14 19:49:02 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2639 * Fixed a bug in library where sending a bogus authentication
2640 payload would lead to a crash. Affected file is
2641 lib/silccore/silcauth.c.
2643 Sat Apr 13 13:09:24 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2645 * Added detach_disabled and detach_timeout server config
2646 options to the server. Affected files silcd/serverconfig.[ch],
2647 silcd/command.c and silcd/packet_receive.c.
2649 Fri Apr 12 20:09:08 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2651 * Added resolve_cmd_ident field to the SilcClientEntry structure
2652 too so that if the entry is for example being resolved so
2653 another command may attach to the same pending command reply
2654 without requiring to resolve the same entry again. Added
2655 support for adding multiple pending commands for one
2656 command idenfier. Affected files lib/silcclient/command.[ch],
2657 lib/silcclient/command_reply.[ch], lib/silcclient/idlist.h.
2659 Fri Apr 12 10:17:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2661 * Defined that server receives WHOIS command reply for private
2662 and secret channels too. Updated protocol specs and the
2663 code in server. Affected file silcd/command.c.
2665 * Defined <channel user mode list> argument to WHOIS command
2666 reply for returning user modes on the channels. The
2667 channel list now doesn't include the user mode anymore but the
2668 actual channel mode. Updated protocol specs and the code in
2669 client and server. Affected files are silcd/command_reply.c,
2670 silcd/command.c, silcd/server.c, irssi/src/silc/core/client_ops.c,
2671 and lib/silcclient/command_reply.c.
2673 * Save the channels list in WHOIS command reply in normal server
2674 so that WHOIS always shows joined channels also in normal
2675 server and not just on router. Affected file is
2676 silcd/command_reply.c.
2678 Thu Apr 11 22:29:33 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2680 * Defined that server receives USERS command reply for private
2681 and secret channels too. Updated protocol specs and the
2682 code in server. Affected file silcd/command.c.
2684 Thu Apr 11 16:32:08 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2686 * Changed the UMODE's mode mask argument to be optional. If
2687 not provided then the command merely returns the current mode
2688 mask to the client. Updated protocol specs and the server.
2689 Affected file is silcd/command.c.
2691 * Added SILC session detachment/resuming support. It is possible
2692 to detach by closing the network connection and then re-connect
2693 and resume to the old client session. Added DETACHED user
2694 mode that server will set for detached client. Added new
2695 packet RESUME_CLIENT which is used to perform the resuming
2696 process. Added DETACH command. Updated the protocol specs,
2697 core library, client and server. Protocol TODO #22. Very
2698 many affected files around the tree.
2700 Wed Apr 10 16:32:01 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2702 * Changed the CMODE's mode mask argument to be optional. If
2703 not provided then the command merely returns the current mode
2704 mask to the client. Updated protocol specs and the server.
2705 Affected file is silcd/command.c.
2707 * Changed the Killer's Client ID in KILLED notify to be just
2708 any ID payload since router server is allowed to kill as well.
2709 Updated protocol specs, client libary and server. Affected
2710 files are lib/silcclient/client_notify.c, silcd/packet_receive.c,
2711 and irssi/src/silc/core/client_ops.c.
2713 Tue Apr 9 17:15:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2715 * Added new user modes ANONYMOUS for special anonymous servers
2716 that may set the mode for client, and BLOCK_PRIVMSG which
2717 client may set to block incoming private messages unless the
2718 Private Message Key flag is set (using private keys to protect
2719 private messages). Updated protocol specs and code in client
2720 and server and core library. Protocol TODO #23. Affected
2721 files are lib/silccore/silcmode.h, silcd/server.[ch],
2722 irssi/src/silc/core/client_ops.c, silcd/packet_receive.c,
2723 irssi/docs/help/in/umode.in, lib/silcclient/command.c.
2725 * Added new channel user mode BLOCK_MESSAGES which the client
2726 may set to itself to tell server not send channel messages.
2727 Other packets such as channel key packets are still sent.
2728 Protocol TODO #23. Updated the protocol specs, client and
2729 server. Affected files are lib/silccore/silcmode.h,
2730 irssi/docs/help/in/cumode.in, lib/silcclient/command.c,
2731 lib/silcutil/silcutil.c, silcd/command.c, and
2732 silcd/packet_send.c.
2734 Mon Apr 8 23:57:32 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2736 * Redefined the Status Payload to include now two 8 bit fields,
2737 instead of one 16 bit field. This now makes it possible to
2738 send list of errors. Updated the protocol specs and the code
2739 in core library, client library and server. Protocol TODO #1.
2740 Affected files are lib/silccore/silccommand.[ch],
2741 lib/silcclient/command_reply.[ch], silcd/command.c,
2742 silcd/command_reply.c and silcd/packet_receive.[ch].
2744 Mon Apr 8 19:57:40 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2746 * Added config parse status SILC_CONFIG_EPRINTLINE, this status
2747 must be handled by the application and should tell the application
2748 that an error message was already printed, and it should print the
2749 config coords (line, filename, ...). Affected files are
2750 silcd/serverconfig.c, lib/silcutil/silcconfig.[ch].
2752 * Added local macro SILC_SERVER_CONFIG_ALLOCTMP to make the
2753 server config parsing code more readable.
2755 Fixed a bug in the fetch_logging() config callback.
2757 Affected files is silcd/serverconfig.c.
2759 * Drop root privileges when started in foreground. Don't drop them
2760 if debugging also. Affected file is silcd/silcd.c.
2762 Mon Apr 8 17:00:41 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2764 * Added more IM-like features by introducing new user modes
2765 for setting various presence information. Added new modes:
2766 INDISPOSED, BUSY, PAGE, HYPER and ROBOT. Updated protocol
2767 specs and code. Protocol TODO #19. Affected files are
2768 lib/silccore/silcmode.h, irssi/src/silc/core/client_ops.c,
2769 irssi/docs/help/in/umode.in and lib/silcclient/command.c.
2771 Sun Apr 7 17:07:59 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2773 * Added STATS command to the protocol after all, to return
2774 various statistical information about the network. It can
2775 be used by clients to retrieve statistical information, and
2776 servers may use it to to fetch cell and network wide
2777 statistics from router. Updated the protocol specs and
2778 implemented it to the server. Protocol TODO #16.
2779 Affected files are lib/silccore/silccommand, silcd/command.[ch],
2780 silcd/command_reply.[ch].
2782 Sat Apr 6 17:08:58 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2784 * The LIST command reply in client libary now adds new channel
2785 entry if the returned channel doesn't exist yet in cache,
2786 and returns the channel entry to the application in the
2787 command_reply client operation. Affected file is
2788 lib/silcclient/command_reply.c.
2790 * Changed the channel message payload's MAC generation to
2791 include the IV in the MAC as well. This way all relevant
2792 parts of the channel message payload are authenticated also
2793 with the channel message MAC (and not only by packet MAC).
2794 Causes incompatibility with 1.0 protocol. Protocol TODO #7.
2795 Affected file is lib/silccore/silcchannel.c.
2797 * Fixed the SKE to save the remote version, since the
2798 silc_ske_parse_version mistakenly checked wrong version,
2799 after it replaced the start payload. Affected files are
2800 lib/silcske/silcske.[ch].
2802 Fri Apr 5 16:03:03 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2804 * Splitted lib/silcutil/silcutil.h into silcstrutil.h for
2805 string utility functions. Added there also new functions
2806 silc_utf8_[encode/decode/valid] for UTF-8 string encoding.
2807 Affected files lib/silcutil/silcstrutil.[ch].
2809 * Renamed silc_*_pem functions to silc_pem_* functions. Affected
2810 files are lib/silcutil/silcstrutil.[ch].
2812 * Defined that the security property fields in SKE SHOULD be
2813 UTF-8 encoded, defined that version string MUST be US-ASCII
2814 encoded, defined that passphrases sent in connection
2815 authentication protocol MUST be UTF-8 encoded. Implemented
2816 these to the client and server. Defined also that other
2817 passphrases sent in the protocol MUST be UTF-8 encoded.
2818 Affected files are lib/silcske/silcske.c,
2819 lib/silcclient/protocol.c, silcd/protocol.c,
2820 silcd/serverconfig.c, and lib/silccore/silcauth.c.
2822 * Changed the silc_client_close_connection interface to not
2823 need the SilcSocketConnection which should not be visible
2824 to application. Affected files are lib/silcclient/client.c
2825 and lib/silcclient/silcclient.h.
2827 * Rewrote the text for Private Message Key Payload in the
2828 protocol specification. Protocol TODO #11.
2830 Wed Apr 3 16:24:51 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
2832 * Upgraded the protocol version to 1.1, updated protocol specs
2835 * Added the nickname as new argument to NICK_CHANGE notify and
2836 added it to protocol specs and implemented it to client and
2837 server. Protocol TODO #3. Affected files are silcd/idlist.[ch],
2838 silcd/command.c, silcd/packet_receive.c, packet_send.[ch], and
2839 lib/silcclient/client_notify.c.
2841 * Added the killer's client ID to the KILLED notify and added
2842 it to protocol specs and implemented it to client and server.
2843 Protocol TODO #13. Affected files are silcd/command.c,
2844 silcd/packet_receive.c, packet_send.[ch],
2845 lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
2846 The killer's client entry is now returned to application in
2847 the `notify' client operation.
2849 * Fixed the Max Argument fields that had too large value set
2850 in the protocol specs. Protocol TODO #14.
2852 * Added the LEAVE command reply to return the ID of parted
2853 channel. Updated protocol specs and implemented it to the
2854 client and server. Protocol TODO #15. Affected files are
2855 silcd/command.c, lib/silcclient/command_reply.c. The channel
2856 entry is now returned to application in the `command_reply'
2859 * Rewrote the version SKE version checking in client libary
2860 and in server to use the silc_parse_version_string. Affected
2861 files are lib/silcclient/protocol.c, silcd/protocol.c.
2863 * Added SILC_STATUS_ERR_NO_CHANNEL_FOPRIV error status to few
2864 commands that was missing it, and updated protocol specs and
2865 the server implementation. Protocol TODO #10. The affected
2866 file is silcd/command.c.
2868 * Defined new message flags SILC_MESSAGE_FLAG_REPLY to be
2869 generic reply to a generic request (REQUEST flag), and
2870 SILC_MESSAGE_FLAG_DATA to send any kind of data in a generic
2871 way. A draft-riikonen-silc-flags-payloads-00.txt is written
2872 to define the payload for DATA flag. Added the flags to
2873 the implementation. Protocol TODO #9. Affected file is
2874 lib/silccore/silcchannel.h.
2876 Changed the client library to return the message length
2877 to application as well in the channel_message and private_message
2878 client operations. Affected files are
2879 lib/silcclient/client_prvmsg, lib/silcclient/client_channel.c,
2880 lib/silcclient/silcclient.h, irssi/src/silc/core/client_ops.c,
2881 and lib/silcclient/client_ops_example.c.
2883 * Added two new channel modes: SILC_CMODE_SILENCE_USERS
2884 and SILC_CMODE_SILENCE_OPERS which can be used to moderate
2885 the channel. Updated protocol specs and impelemented this
2886 to client and server. Protocol TODO #6. Affected files are
2887 silcd/packet_receive.c, server_util.c, lib/silcclient/command.c,
2888 lib/silcclient/client_channel.c, lib/silccore/silcmode.h.
2890 Added new options m and M to CMODE command in Irssi SILC
2891 client to set these modes.
2893 * Deprecated all administrative commands from SILC protocol
2894 since they are highly implementation specific commands.
2895 Updated protocol specs. Moved the old commands in
2896 implementations to private range of command types. Affected
2897 files are silcd/command.c, lib/silcclient/command.c and
2898 lib/silcclient/command_reply.c. Protocol TODO #8.
2900 * Fixed a bug in server where sending unknown command crashes
2901 the server. Affected file silcd/command.c.
2903 Wed Apr 3 09:57:47 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2905 * Added SILC_PROTOCOLVERSION macro to check protocol version
2906 of a socket connection. The affected file is
2907 lib/silcutil/silcsockconn.h.
2909 * Added better error logging in rekey protocol. Affected file
2912 * Do not check public key types in SKE during rekey. Affected
2913 file lib/silcske/payload.c.
2915 * Fixed the rekey protocol with PFS, which was totally broken.
2916 Affected file silcd/protocol.c.
2918 Tue Apr 2 14:55:06 CEST 2002 Pekka Riikonen <priikone@silcnet.org>
2920 * Some client implementations quit network by doing first LEAVE
2921 and then immediately SIGNOFF (like Bombyx). We now do check
2922 after a short time after LEAVE notify and check whether the
2923 client is still valid after LEAVE, and if not we remove it from
2924 cache. Affected file is lib/silcclient/client_notify.c.
2926 Tue Apr 2 13:39:04 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2928 * Merged version 1.1.4 of zlib. Even if it not currently in use,
2929 it's good not to have security holes here.
2931 * Fixed a negative refcount situtuation for the config context.
2932 Affected file is silcd/serverconfig.c.
2934 Mon Apr 1 20:15:10 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
2936 * ROBOdoc documented lib/silcutil/silcutil.h.
2938 Sat Mar 30 21:06:45 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2940 * Optimized even more the SilcPacketContext structure. Now
2941 totally saved 16 bytes of memory per context after optimization.
2942 Affected files are lib/silccore/silcpacket.[ch].
2944 * Made strict checks for valid SILC IDs. Affected file is
2945 lib/silccore/silcid.c.
2947 Sat Mar 30 18:15:55 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2949 * Changed the object argument for silc_cipher_register,
2950 silc_hash_register, silc_hmac_register and silc_pkcs_register
2951 to const. Affected files are lib/silccrypt/silccipher.[ch],
2952 silchash.[ch], silchmac.[ch] and silcpkcs.[ch].
2954 * Changed the silc_get_username and silc_get_real_name to
2955 never fail. Affected file lib/silcutil/unix/silcunixutil.c.
2957 * Fixed the Irssi SILC Client to use the silc_get_username and
2958 silc_get_real_name insted of glib routines since the glib
2959 routines only corrupt stack. Fixes the Irssi SILC to work in
2960 Cygwin. Affected file irssi/src/silc/core/silc-core.c.
2962 * Fixed the Irssi to not use g_get_home_dir since it crashes
2963 or returns garbage on cygwin and corrupts stack. Added function
2964 get_home_dir to Irssi routines. Affected files are
2965 irssi/src/core/misc.[ch] and irssi/src/core/core.c.
2967 Fri Mar 29 21:55:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2969 * Made some structure optimizations. SFTP memory FS MemFSEntry
2970 entry structure. Optimized SilcTask structure. Optimized
2971 SilcPacketContext structure.
2973 Affected files lib/silcsftp/sftp_fs_memory.c,
2974 lib/silcutil/silcschedule.c, lib/silccore/silcpacket.h.
2976 Fri Mar 29 10:41:07 EET 2002 Pekka Riikonen <priikone@silcnet.org>
2978 * And yet again reverted back the config thing since Johnny
2979 screwed it up. Affected file silcd/serverconfig.[ch], server.c,
2982 * Fixed memory leaks from config object. Affected files are
2983 silcd/serverconfig.[ch].
2985 * Added support for adding new connections to the server in rehash.
2986 After rehash they take effect.
2988 Added support for changing the maximum allowed connections in
2989 rehash. The number can grow but going smaller is not supported.
2991 Added function silc_server_num_sockets_by_remote to the
2992 silcd/server_util.[ch].
2994 Affected files are silcd/server.c, and silcd/serverconfig.[ch].
2996 Fri Mar 29 03:26:12 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
2998 * Added preliminary checking during config parsing for a valid
2999 public/private key and removed further checks in the code.
3000 Affected files are silcd/serverconfig.[ch], server.c.
3002 * Moved functions silc_server_drop() and silc_server_daemonise()
3003 from server.c to silcd.c since they are stricly related to
3004 the application activity.
3006 * Reverted a small part of the automatic ref/unref since
3007 it caused a double unref in some situations. Affected
3008 files are silcd/silcd.[ch], server.c, serverconfig.c.
3010 * Added some .cvsignore files in the lib directory.
3012 Thu Mar 28 22:51:15 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3014 * Fixed silc_net_gethostbyaddr to correctly resolve by
3015 address. Affected file lib/silcutil/silcnet.c.
3017 * Fixed the notify relaying to client. The HMAC to be used
3018 with relayed packets ws wrong and caused decryption failure
3019 at the client end. Affected file is silcd/packet_receive.c.
3021 Thu Mar 28 19:02:05 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3023 * Created new branch silc_protocol_1_0_branch.
3025 * Reverted the silc_log_quick change in lib/silcutil/silclog.c.
3027 * Changed the silc_server_config_* routines to be SilcServer
3028 independent. They are now officially application specific code
3029 and not part of generic server implementation. Affected files
3030 are silcd/serverconfig.[ch], silcd/silcd.c, silcd/server.c.
3032 Thu Mar 28 17:01:43 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3034 * Added automatic referencing of config context in the
3035 silc_server_config_alloc, and automatic unreferencing in the
3036 silc_server_config_destroy. Affected files are
3037 silcd/serverconfig.[ch], silcd/silcd.c.
3039 * Fixed the silc_log_quick handling in the logging routines.
3040 It didn't log quickly when it was TRUE. Affected file is
3041 lib/silcutil/silclog.c. Also the flush delay was set even
3042 if it was 0 in config file. Affected file is
3043 silcd/serverconfig.c.
3045 * Added support for changing key pair of the server in rehash.
3046 Affected file silcd/server.c.
3048 Thu Mar 28 12:17:21 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3050 * Fixed the TOPIC_SET notify to not cras. It changed the topic
3051 too early, before getting the channel entry. Affected file
3052 is silcd/packet_receive.c.
3054 Thu Mar 28 09:58:16 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
3056 * Added functions silc_server_config_[ref/unref], these are used
3057 to prevent that the config object is destroyed.
3059 No longer directly affect global variables silc_log_quick and
3060 silc_log_delay, they are first cached inside the config object
3061 and then applied with silc_server_config_setlogfiles().
3063 silc_server_config_set_defaults() is now internal to
3064 serverconfig.c, there are no reasons to show this internal stuff
3067 Affected files are silcd/serverconfig.[ch].
3069 * Added macro SILC_SERVER_LOG_STDERR(), this should replace most
3070 fprintf's to stderr, since some code may be executed again after
3071 the server went into the background. Affected files are
3074 * Added rehash support. Added function silc_server_rehash() that
3075 will perform all the basic tasks of the rehashing procedure.
3077 * Added command line option `-x, --hexdump'. This will enable the
3078 SILC_LOG_HEXDUMP calls that are no longer enabled with `--debug'.
3079 The option `--hexdump' implies `--debug'.
3081 * Fixed a bad bug in the logging APIs (silcutil library) where
3082 the application would crash after calling silc_log_reset_all().
3084 Wed Mar 27 19:43:16 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3086 * Fixed the KICKED notify handling in client library to
3087 correctly remove the channel and all entries from the
3088 channel when I was kicked. This bug crashed the client.
3090 Fixed yet another but in KICKED notify handling to remove
3091 the kicked client correctly from the channel.
3093 Affected file is lib/silcclient/client_notify.c.
3095 * Fixed a minor bug in looking up correct client entry
3096 in KICKED notify in server. Affected file is
3097 silcd/packet_receive.c.
3099 * Fixed the lib/silcmath/Makefile.am to include the MPI and GMP
3100 sources correctly to distribution. Fixes --with-gmp option.
3102 * Removed the manual rehashing from ID Cache, and changed it
3103 to use the SILC Hash Table's auto rehash feature. Affected
3104 file is lib/silccore/silcidcache.c.
3106 Wed Mar 27 00:07:11 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3108 * Fixed a bug in the silc_client_nickname_format function that
3109 handles the multiple same nickname formatting. Two clients
3110 with same nickname caused problems after the first one left
3111 and rejoined. It didn't format the nickname correctly.
3112 Affected file is lib/silcclient/idlist.c.
3114 Tue Mar 26 19:33:03 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3116 * Don't change the topic if olod topic is same as new one.
3117 Affected file is silcd/packet_receive.c.
3119 Mon Mar 25 21:11:35 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3121 * Added cross-reference support to the SILC Documentation
3122 generator. All types across all HTML files are now cross-
3123 referenced. Affected files util/robodoc/generator.c and
3124 scripts/silcdoc/silcdoc.
3126 * Added file lib/silcutil/silctypes.h to include all the
3127 arithmetic type definitions and some macros. Removed
3128 includes/bitmove.h and moved macros to silctypes.h.
3130 Mon Mar 25 17:19:46 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3132 * Merged bugfixes for Irssi SILC client from irssi.org CVS.
3134 Sun Mar 24 11:21:04 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3136 * Added `type' argument to silc_id_payload_parse_id function which
3137 now returns the type of the ID to the sent pointer. Affected
3138 file is lib/silccore/silcid.[ch].
3140 * Added check for CMODE_CHANGE notify type that mode change is
3141 allowed by the sender. Affected file silcd/packet_receive.c.
3143 * Added check for CUMODE_CHANGE notify type that mode change is
3144 allowed by the sender. Affected file silcd/packet_receive.c.
3145 Added the ID type as CUMODE_CHANGE notify type as argument
3146 to the `notify' client operation. Affected files are
3147 lib/silcclient/client_notify.c, irssi/src/silc/core/client_ops.c.
3149 * Added function silc_client_add_server to the client library.
3150 Added support for resolving also channel and server info when
3151 received unknown entity in notify packet. Affected files are
3152 lib/silcclient/idlist.[ch], lib/silcclient/client_notify.c.
3154 * Added function silc_command_get_status to return the command
3155 status from the command reply's argument payload. Affected files
3156 are lib/silccore/silccommand.[ch].
3158 * Added check for KICKED notify type that the kicking is
3159 allowed by the client. Affected file silcd/packet_receive.c.
3161 * Created function silc_get_input which can be used to get input
3162 (echo on or off) from user on command line. Affected files are
3163 lib/silcutil/silcutil.[ch].
3165 Sat Mar 23 09:51:26 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3167 * Optimized silc_server_packet_relay_to_channel function.
3168 Added new function silc_channel_message_payload_encrypt which
3169 can be called directly if channel message payload needs to
3170 be encrypted and is already encoded (no need to call _encode
3171 function). Packet relaying is now done by router without any
3172 extra memory allocations. Affected files are
3173 lib/silccore/silcchanel.[ch], silcd/packet_receive.c and
3174 silcd/packet_send.c.
3176 * Fixed the INVITE notify handling. It took wrong arguments
3177 as invite list and invite delete. Affected file is
3178 silcd/packet_receive.c.
3180 * Added check for TOPIC_SET notify type that the topic change is
3181 allowed by the client. Affected file silcd/packet_receive.c.
3183 * Added check for INVITE notify type that inviting is allowed by
3184 the client. Affected file silcd/packet_receive.c.
3186 * Changed the silc_server_client_on_channel to return the
3187 SilcChannelClientEntry as well. Moved the function
3188 silc_server_check_cmode_rights to server_util.[ch].
3189 Affected files are silcd/server_util.[ch], silcd/command.c.
3191 * Added function silc_server_check_umode_rights to check whether
3192 changing client's user mode is allowed. Added check for
3193 UMODE_CHANGE notify type that the umode change is allowed
3194 by the client. Affected files are silcd/server_util.[ch],
3195 silcd/packet_receive.c and silcd/command.c.
3197 Fri Mar 22 12:25:58 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3199 * Fixed the SILC_PACKET_MAX_ID_LEN to actually be the max
3200 ID length. It ignored that ID can be IPv6 based as well.
3201 Affected file lib/silccore/silcpacket.h.
3203 * Fixed the silc_id_id2str and silc_id_str2id to take the
3204 IPv6 address offset's into consideration. Affecte file is
3205 lib/silccore/silcid.c.
3207 Thu Mar 21 20:44:13 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3209 * Fixed the internal Unix scheduler functions to check for
3210 NULL context they may receive. The affected file is
3211 lib/silcutil/unix/silcunixschedule.c.
3213 Thu Mar 21 19:12:22 EET 2002 Timo Sirainen <tss@iki.fi>
3215 * Changed hardcoded ~/.silc paths to use get_irssi_dir() so you
3216 can specify different directory with --home command line
3217 parameter. Affected files irssi/src/silc/core/client_ops.c,
3220 * SILC-specific commands aren't now executed if the active server
3221 isn't of SILC-type, so there won't be problems with having
3222 IRC and SILC protocol support in same client. Affected files
3223 irssi/src/silc/core/silc-channels.c, silc-servers.c,
3226 Wed Mar 20 11:06:57 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3228 * Improved the signal support in SILC Schedule. Added new
3229 function silc_schedule_signal_call which is used by application
3230 to mark a signal to be called. It is now safe to perform
3231 any kind of tasks in signal callbacks since it is guaranteed
3232 that the application specified signal callback is called
3233 after the signal is over. Affected files are
3234 lib/silcutil/silcschedule.[ch], lib/silcutil/*/silc*schedule.c.
3236 Tue Mar 19 20:42:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3238 * Added `name' field to SilcChannelPrivateKey to represent
3239 application given name for the key. Moved also the context from
3240 lib/silcclient/idlist.h into lib/silcclient/silcclient.h.
3241 Added the `name' argument also to the function
3242 silc_client_add_channel_private_key.
3244 Added function silc_client_current_channel_private_key to set the
3245 current channel private key in use.
3247 Added "change" command to KEY command which can be used to change
3248 the current channel private key. Bound the command also to
3249 alt+K (Alt+Shift+k).
3251 Also affected files lib/silcclient/client_channel.c,
3252 irssi/src/docs/help/in/key.in, irssi/src/silc/core/silc-channel.c.
3254 Tue Mar 19 16:32:43 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3256 * Added silc_rng_get_byte_fast function in to the
3257 lib/silccrypt/silcrng.[ch].
3259 * Changed the interface of silc_packet_assemble and the
3260 silc_packet_send_prepare. If silc_packet_assmble is now
3261 called the application does not call silc_packet_send_prepare
3262 because the library will call it automatically. These
3263 interfaces now also return a reference to the outgoing buffer
3264 which includes the assembled packet, which the application can
3265 use to encrypt the packet.
3267 Affected files are lib/silccore/silcpacket.[ch],
3268 lib/silcclient/client.c, client_channel.c client_prvmsg.c,
3269 silcd/packet_send.c, server_backup.c and packet_receive.c.
3271 * Fixed a packet sending bug on very high load, where outgoing
3272 packet queue wasn't handled correctly and packets got corrupted.
3273 Affected files are lib/silcutil/*/silc*sockconn.c,
3274 lib/silcclient/client.c and silcd/server.c.
3276 Mon Mar 18 21:00:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3278 * Added macro SILC_PACKET_DATALEN which can be used during
3279 packet assembling to check whether the data to be added to
3280 the packet will fit to SILC_PACKET_MAX_LEN. If not the data
3281 len is truncated until it fits it.
3283 Added checks for maximum length of channel message payload and
3284 private message payload also.
3286 Added checks for maximum packet length in server and in
3289 Affected files are lib/silccore/silcpacket.h, silcd/packet_send.c,
3290 lib/silcclient/client.c, lib/silccore/silcchannel.c and
3291 lib/silccore/silcprivate.c, lib/silcclient/client_channel.c and
3292 lib/silcclient/client_prvmsg.c.
3294 Mon Mar 18 14:54:42 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3296 * Added silc_server_packet_queue_purge call to the
3297 silc_server_disconnect_remote to assure that all data in the
3298 queue before disconnecting is sent to the network. Affected
3299 file silcd/server.c.
3301 Sun Mar 17 19:26:16 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3303 * Added the deleting of server's own ID cache entry to the
3304 silc_server_free function. Free also everything else that
3305 has been allocated in silc_server_init. The affected file
3308 Sun Mar 17 15:44:56 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3310 * Added functions silc_parse_version_string, silc_version_to_num,
3311 and silc_ske_parse_version to parse SILC protocol style version
3312 strings. Affected files lib/silcutil/silcutil.[ch] and
3313 lib/silcske/silcske.[ch].
3315 * Added new configuration params: version_protocol, version_software
3316 and version_software_vendor to specify what version the remote
3317 host must at least be to be able to connect to server. The vendor
3318 string can be regex matched too. Added new function
3319 silc_server_connection_allowed to check maximum number of allowed
3320 connections, and allowed versions for incoming connections.
3321 Affected files are silcd/server.c, server_util.[ch] and
3324 Sun Mar 17 10:24:50 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3326 * Added preliminary support for signals in scheduler. The
3327 signals we care about are now blocked always when the scheduler
3328 is locked. This way we can synchronise the use of signal with
3329 scheduler. It is guaranteed that when signal occurs the scheduler
3330 is not locked, and thus new tasks can be safely added to the
3333 Renamed silc_schedule_wakeup_init and silc_schedule_wakeup_uninit
3334 to silc_schedule_internal_init and silc_schedule_internal_uninit.
3335 Added new platform specific routines
3336 silc_schedule_internal_signals_[un]block and
3337 silc_schedule_internal_signal_[un]register.
3339 Added new functions to SILC Schedule API:
3340 silc_schedule_signal_[un]register. Each signal that application
3341 is going to use should be registered to the scheduler.
3343 Affected files are lib/silcutil/silcschedule.[ch],
3344 lib/silcutil/*/silc*schedule.c.
3346 Sat Mar 16 22:39:23 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3348 * Check for unauthenticated client and server in the
3349 silc_server_new_client and silc_server_new_server functions.
3350 Affected file silcd/packet_receive.c.
3352 * Added function silc_string_is_ascii to check whether given
3353 string is 7-bit ASCII string. Affected files are
3354 lib/silcutil/silcutil.[ch].
3356 * Added function silc_id_is_valid_server_id into the
3357 silcd/serverid.c and added checking for valid Server ID's in
3358 silc_server_new_server. The Server ID must always be based
3359 on the server's public IP address.
3361 * Added logging of DISCONNECT packet message in the server.
3362 Affected file silcd/server.c.
3364 Sat Mar 16 18:04:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3366 * Changed all library interfaces that use Global RNG to also
3367 accept SilcRng as argument. Affected files are
3368 lib/silcclient/command.c, lib/silccore/silcauth.[ch],
3369 lib/silccore/silcchanel.[ch], lib/silcclient/client_channel.c,
3370 silcd/packet_send.c, lib/silccore/silcprivate.[ch],
3371 lib/silcmath/silcprimegen.c, lib/silcmath/silcmath.h, and
3372 lib/silccrypt/rsa.c.
3374 * Added function silc_pkcs_generate_key to the
3375 lib/silccrypt/silcpkcs.[ch] for applications so that they
3376 don't need to do pkcs->pkcs->init calls anymore.
3378 * Remove SilcSocketConnection from the SFTP API since it really
3379 wasn't needed there. The application has the information
3380 saved in its contexts anyway and the SFTP layer doesn't need
3381 know about it. Affected files lib/silcsft/silcsftp.h and
3382 lib/silcsftp/sftp_[server/client].c.
3384 * Rewrote the SILC SIM (modules) interface in lib/silcsim.[ch].
3385 The SilcSimContext is not SilcSim.
3387 * Fixed possible buffer overflows in silc_id_render in the
3388 lib/silcutil/silcutil.c.
3390 * On EPOC the global crypto module lists are not used at all
3391 in the crypto library. Added support for using the constant
3392 algorithm list on EPOC. Affected files are
3393 lib/silccrypt/silccipher.c, silchash.c, silchmac.c and
3396 * Fixed the handling of third parameter of KICKED notify, since
3397 it was mistakenly updated to SILC Protocol 1.0 even though it
3398 is to be included in 1.1. Since it is not in 1.0 it is not
3399 mandatory, and this fix now handles it only if it is provided,
3400 and it is not error if it is not provided. Affected file
3401 lib/silcclient/client_notify.c.
3403 Sat Mar 16 09:07:27 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3405 * Handled CHANNEL_CHANGE notify (ignore it) in Irssi SILC
3406 client. Affected file irssi/src/silc/core/client_ops.c.
3408 * Merged with Irssi 0.8.4 from irssi.org CVS.
3410 Thu Mar 14 12:53:57 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3412 * Check for valid socket connection in client entries before
3413 sending any messages. Fixes a crash, but doesn't fix some
3414 other underlaying bug that is lurking there. Affected
3415 file silcd/packet_send.c.
3417 Thu Mar 14 13:38:12 EET 2002 Timo Sirainen <tss@iki.fi>
3419 * $usermode, $cumode and $cumode_space expandos shouldn't do
3420 anything with non-SILC server records. Affected file
3421 irssi/src/silc/core/silc-expandos.c
3423 Wed Mar 13 21:38:26 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3425 * Fixed the silc_net_check_[host/local]_by_sock to support
3426 IPv6 bound sockets as well. Now they can return IPv6 addresses
3427 as well. Affected file lib/silcutil/silcnet.c.
3429 * Fixed silc_net_addr2bin to correctly convert IPv6 addresses.
3430 Affected lib/silcutil/unix/silcunixnet.c.
3432 * Fixed ID rendering (at least on some platforms, not NetBSD)
3433 for IPv6 addresses. Affected file lib/silcutil/silcutil.c.
3435 Tue Mar 12 17:58:59 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3437 * Added silc_hash_public_key and silc_hash_public_key_compare
3438 functions to be used with SilcHashTable. They can be used to
3439 hash public keys and compare public keys in hash table. Affected
3440 file lib/silcutil/silcutil.[ch].
3442 * Added support for specifying multiple public keys for Client
3443 connection section in server configuration file. This makes it
3444 possible to accept multiple public keys from same host, or to
3445 make a section that accepts any incoming host, and have the
3446 accepted public keys listed in the section.
3448 Added functions silc_sever_[find/get]_public_key, added the
3449 support for this actually to all connection sections but only
3450 the Client section is currently allowed to specify multiple
3453 Affected files are silcd/server.c, server_internal.h,
3454 command.c, protocol.c, server_util.[ch], packet_receive.c.
3456 Mon Mar 11 23:37:38 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3458 * Merged Irssi 0.8.2 from irssi.org CVS.
3460 Sun Mar 10 23:34:48 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
3462 * If silc_debug is TRUE, also output standard logging messages
3463 to stderr with the debug output.
3465 Made silc_log_reset_all() flushing all channels before returning.
3466 Also fixed some documentation typos.
3468 Affected files are lib/silcutil/silclog.[ch].
3470 Sun Mar 10 20:07:49 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3472 * Fixed the server to check correctly the amount of connections
3473 from single host, by checking also the type of the connection.
3474 Fixed also the comparison of number of connections and number
3475 of allowed connections. Affected files are silcd/server.c,
3478 Fri Mar 8 17:16:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3480 * Fixed the USERS command reply to save the user's mode on the
3481 channel as well. Fixed JOIN command reply to check whether a
3482 client is on channel already and not join it twice. Affected
3483 file lib/silcclient/command_reply.c.
3485 * Added new file silc-expandos.c into irssi/silc/core/ to return
3486 various stuff for various signal for the statusbar etc. updating.
3487 Now Irssi SILC client prints channel user modes etc. on the
3490 * The user mode (like server/router operator changes) is now shown
3491 on the Irssi SILC client's statusbar. The affected files are
3492 irssi/src/silc/core/client_ops.c, silc-expandos.c.
3494 Thu Mar 7 19:21:22 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3496 * Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
3497 to SILC_SCHEDULE_[UN]LOCK macros.
3499 * Added more error printing to logs in server code. Affected
3500 files silcd/server.c and silcd/protocol.c.
3502 * Fixed -S option parsing in Irssi SILC Client. Affected file
3503 irssi/src/silc/core/silc-core.c.
3505 * Added silc_buffer_alloc_size function. Affected file is
3506 lib/silcutil/silcbuffer.h.
3508 Tue Mar 5 14:37:27 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3510 * Changed all silc_[hash|hmac|cipher|pkcs]_default tables to
3511 constants. Affected files in
3512 lib/silccrypt/silcpkcs.[ch], silchash.[ch], silchmac.[ch] and
3515 * Changed the internal SFTP Memory FS table to const. Affected
3516 file lib/silcsftp/sftp_fs_memory.c.
3518 Sun Mar 3 18:37:13 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3520 * Fixed the buffer formatting and unformatting routines to
3521 check the size of 64 bits types with sizeof(). Affected
3522 file is lib/silcutil/silcbuffmt.c.
3524 Mon Feb 25 17:19:05 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3526 * Removed 0.6.x backwards support.
3528 Sun Feb 24 12:53:25 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3530 * Changed all integer type names:
3531 [u]int[8/16/32/64] -> Silc[UInt/Int][8/16/32/64]. This is
3532 to avoid collisions with other libraries using same type names
3535 Sat Feb 23 20:31:43 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3537 * Added `prefer_ipv6' argument to the functions
3538 silc_net_gethostbyname[_async]. If it is TRUE it will return
3539 IPv6 address over IPv4. If FALSE IPv4 address is returned
3540 even if IPv6 address was found. Affected files
3541 lib/silcutil/silcnet.[ch].
3543 * Added support silc_net_create_connection[_async] to fallback
3544 to IPv4 address if IPv6 address could not be used (like if
3545 it doesn't work on a specific system). Affected file in
3546 lib/silcutil/unix/silcunixnet.c.
3548 Sat Feb 23 15:20:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3550 * Added silc_schedule_reinit function to do the enlarging
3551 of the max tasks handling capabilities of the scheduler.
3552 Affected files lib/silcutil/silcschedule.[ch].
3554 Wed Feb 20 20:41:01 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3556 * Added automatic extern "C" { ... } for C++ compilers so the
3557 application does not need to define them. Affected file
3558 includes/silcincludes.h.
3560 * Renamed lib/silcclient/silcapi.h to silcclient.h as the
3561 old name went against naming convention. Applications now
3562 include "silcclient.h" instead of "clientlibincludes.h".
3563 Removed includes/clientlibincludes.h, it is redundant now.
3565 * Renamed includes/version.h to silcversion.h.
3567 * Added really preliminary support for OS/2 into the util
3568 library. Only thread & mutex API is implemented, others
3569 are still to be implemented. Created the lib/silcutil/os2/
3570 directory. Created also file includes/silcos2.h.
3572 Wed Feb 20 18:48:49 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3574 * Added preliminary BeOS support into the util library.
3575 Created lib/silcutil/beos/, and implemented all the needed
3576 functions to support SILC on BeOS. Created also file
3577 includes/silcbeos.h.
3579 Mon Feb 18 15:49:22 EET 2002 Timo Sirainen <tss@iki.fi>
3581 * Added proper initializations to silc's irssi code, so it's
3582 now possible to load it as module. Affected files
3583 irssi/src/silc/core/silc-core.c,
3584 fe-common/silc/fe-common-silc-core.[ch] and fe-text/silc.c
3586 Sun Feb 17 19:02:56 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3588 * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
3591 * Fixed the silcdoc document generator to correct generate
3592 docs from all kinds of filenames. Affected files are
3593 util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
3595 * ROBOdoc documented lib/silcutil/silcmemory.h.
3596 Added also new function silc_memdup.
3598 * Removed lib/silcutil/silcbufutil.h and moved those routines
3599 to the lib/silcutil/silcbuffer.h.
3601 Sun Feb 17 15:52:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3603 * Added `user_count' to the SilcChannelEntry which now tells the
3604 number of users on the channel. The user count is now saved
3605 in normal server of global channels as well. Affected files
3606 silcd/server.c, idlist.h, packet_receive.c and command.c.
3608 * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
3609 include file utility functions.
3611 * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
3612 instead of calling directly OS routines.
3614 * Fixed NICK change printing in Irssi SILC Client. Fixed
3615 KICKED notify printing in Irssi SILC Client. Affected file
3616 irssi/src/silc/core/client_ops.c.
3618 * Fixed a NICK change bug in client library, to not recreate the
3619 client_entry->channels hash table everytime nick is changed.
3620 Affected file lib/silcclient/client.c.
3622 Sun Feb 17 10:10:14 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3624 * ROBOdoc documented the lib/silcske/silcske.h, and improved
3625 the SKE interface a bit.
3627 * Fixed padding problem in PKCS#1. The padding was not actually
3628 random since the random number generator was used incorrectly.
3629 This security bug affects only when encrypting with PKCS#1, and
3630 it is not currently used at all in SILC. SILC only use signing
3631 with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
3633 Sat Feb 16 13:44:24 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3635 * Rewrote the notify handling in Irssi SILC client to not call
3636 the events as signals. Fixes problems with Perl support.
3637 Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
3639 * Send the auto-nicking NICK command in client library with
3640 little timeout after connecting. The affected file is
3641 lib/silcclient/client.c.
3643 * Added following new config file settings:
3644 channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
3645 key_exchange_timeout, conn_auth_timeout, connections_max,
3648 Implemented all the new config settings handling in the server.
3650 Optimized the use of SKE Mutual flag usage. Use it only
3651 if connection authentication protocol is not based in public
3654 Renamed all SilcServerConfigSection* to SilcServerConfig*
3655 to have a bit shorter names.
3657 Affected files silcd/serverconfig.[ch], server.[ch], and
3660 Sat Feb 16 02:46:43 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
3662 * Cleaned up the listening sockets code, preparing for the rehash
3663 support. Affected file is silcd/server.c.
3665 * Fixed some output messages. Affected files are silcd/silcd.c,
3668 Fri Feb 15 19:10:20 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3670 * Create lib/doc/silcrng_intro.html document as introduction
3671 to SILC RNG. ROBOdoc documented lib/silccrypt/silcrng.h.
3673 Fri Feb 15 13:23:03 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
3675 * Fixes to the silcd config template. Affected file is
3676 doc/example_silcd.conf.in.
3678 * Removed type casts from silc_calloc(), conforming to the
3679 CodingStyle. Affected file is lib/silcutil/silcconfig.c.
3681 * Removed param_name member from client, server, and router
3682 section structs, now identifying the param directly.
3684 Added CONFIG_FREE_AUTH macro in config file parsing.
3686 Affected files are silcd/serverconfig.[ch].
3688 Fri Feb 15 12:24:08 EET 2002 Timo Sirainen <tss@iki.fi>
3690 * Fixed command line parameter handling. All SILC initialization
3691 is now done in silc_core_init() which also fixes autoconnecting
3694 Affected files irssi/src/silc/core/silc-core.c,
3695 irssi/src/fe-text/silc.c.
3697 Thu Feb 14 22:03:58 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3699 * Added new configuration options and blocks:
3700 keepalive_secs, reconnect_count, reconnect_interval,
3701 reconnect_interval_max, reconnect_keep_trying and
3702 require_reverser_lookup. Added ConnectionParam block, and
3703 implemented the connection parameters when connecting as
3704 initiator and when accepting connections as responder.
3706 Added CONFIG_IS_DOUBLE macro in config file parsing, to check
3707 whether given configuration value has been given already.
3709 Affected files silcd/serverconfig.[c], server.[c].
3711 * Splitted the doc/example_silcd.conf.in. Separated the crypto
3712 algorithm parts and created new file silcalgs.conf, that
3713 is now included from the example_silcd.conf.in.
3715 * Optimized the silc_server_connect_to_router_second to take
3716 the connection configuration object from the SilcServerConnection
3717 object instead of finding it during the connecting phase.
3718 Added the configuration object to SilcServerConnection struct.
3719 Affected files silcd/server_internal.h, server.c.
3721 Thu Feb 14 16:02:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3723 * Add the client on channel after it was resolved at the
3724 channel message receiving, and it was not already on the
3725 channel. Affected file lib/silcclient/client_channel.c.
3727 Wed Feb 13 23:16:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3729 * Fixed the public key authentication to allocate always the
3730 destination signature buffer instead of using static buffer.
3731 Affected file silcd/protocol.c.
3733 Wed Feb 13 20:51:13 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3735 * Unified the serverconfig.[ch]'s helper function interface.
3736 Affected file silcd/serverconfig.[ch].
3738 * Removed doc/example_silc.conf.in since it is redundant.
3739 The make install will now install irssi/silc.conf file.
3741 * Added new Passphrase and Publickey authentication methods to
3742 config file, allowing both public key and passphrase based
3743 authentication to be set at the same time.
3745 Added `prefer_passphrase_auth' setting in config file which
3746 can be used to set to prefer passwd auth if both passwd and
3747 public key is set. If not set, public key is preferred.
3748 This has effect only when being initiator (responder will try
3751 Added support for authentication with passphrase and public key
3752 at the same time. The passphrase is tried first always since
3753 it is faster to check.
3755 Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
3757 Wed Feb 13 12:46:25 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
3759 * Merged the new SILC Config library, with the server parsing
3760 support. Read the header file silcconfig.h or the toolkit
3761 documentation for the news. Affected files are
3762 doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
3763 silcd/command.c silcd/packet_receive.c silcd/packet_send.c
3764 silcd/protocol.c silcd/server.c silcd/server_backup.c
3765 silcd/serverconfig.[ch] silcd/silcd.c.
3767 * Fixed some silclog documentation. Affected file is
3768 lib/silcutil/silclog.h.
3770 Sun Feb 10 18:11:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3772 * The silc_cipher_register, silc_hash_register and
3773 silc_hmac_register now checks if the object to be registered
3774 is registered already. Affected files are
3775 lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
3777 Sun Feb 10 15:48:38 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3779 * Merged new irssi from irssi.org's CVS, the version 0.7.99.
3781 Sat Feb 9 14:54:33 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3783 * Allow zero length channel messages inside the Channel Message
3784 Payload. Affected file lib/silccore/silcchannel.c.
3786 * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
3787 as header filenames.
3789 * Removed lib/silcclient/README and created HTML file
3790 lib/silcclient/silcclient_using.html, which is now included
3791 as part of Toolkit documentation.
3793 Thu Feb 7 10:12:25 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3795 * Fixed CUMODE_CHANGE notify handling to change the mode of
3796 correct client. Affected file lib/silcclient/client_notify.c.
3798 * Make silc_rng_alloc fail if it cannot allocate the sha1
3799 hash algorithm. Affected file lib/silccrypt/silcrng.c.
3801 Sun Feb 3 17:20:52 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3803 * Fixed the file transfer's key agreement payload to include
3804 zero port also if the hostname is NULL because it could not
3807 Call file transfer monitor callback now also if error occurs
3808 during key agreement protocol.
3810 Changed the silc_client_file_send interface to return the
3811 SilcClientFileError instead of session id. The session ID
3812 is returned into pointer provided as argument.
3814 Check that the file exists locally before sending the
3815 file transfer request at all.
3817 Affected file lib/silcclient/client_ftp.c, silcapi.h.
3819 * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
3820 error than can occur while key agreement protocol. Affected
3821 file lib/silcclient/silcapi.h.
3823 * Fixed the event_mode CMODE handler to not crash when mode
3824 is changed and +k mode is set in the channel. Affected file
3825 irssi/src/silc/core/silc-channels.c.
3827 * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
3828 SILC_LOG_WARNING to give out Warning and not Error. Affected
3829 file lib/silcutil/silclog.c.
3831 * Fixed the channel message payload decryption in the function
3832 silc_channel_message_payload_decrypt to not modify the original
3833 buffer before it is verified that the message decrypted
3834 correctly. Otherwise, next time it is called with correct
3835 channel key it won't encrypt since the payload is corrupted.
3836 Affected file lib/silccore/silcchannel.c.
3838 Sun Feb 3 11:46:12 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3840 * Do not constantly resize the window. A fix patch by cras.
3841 Affected file irssi/src/fe-text/screen.c.
3843 Sat Feb 2 16:54:18 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3845 * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
3846 Affected file lib/silcutil/silcnet.c.
3848 Fri Feb 1 22:33:11 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3850 * Fixed a bug in hash table internal routine for traversing
3851 the table with foreach callback. The current entry may
3852 become invalid in the callback but it was referenced after
3853 the callback returned.
3855 Do not allow auto rehashing of hash table during the
3856 silc_hash_table_foreach operation, for same reasons as it is
3857 not allowed for SilcHashTableList. Affected files are
3858 lib/silcutil/silchashtable.[ch].
3860 Fri Feb 1 14:55:00 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3862 * Defined DLLAPI into silcincludes.h and silcwin32.h for
3863 Win32 DLL. extern's in header files are now declared with
3866 Thu Jan 31 23:34:33 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3868 * Fixed private message handling. It used some old code that
3869 caused the client to crash. Affecte file is
3870 lib/silcclient/client_prvmsg.c.
3872 Thu Jan 31 19:06:22 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3874 * Added function silc_client_add_channel,
3875 silc_client_replace_channel_id, and removed functions
3876 silc_client_new_channel_id and silc_idlist_get_channel_by_id
3877 from client library.
3879 * Added cross reference of the joined channels to the
3880 SilcClientEntry, and changed the SilcChannelEntry's
3881 users list to SilcHashTable. The affected files are
3882 lib/silcclient/idlist.[ch].
3884 * Fixed a bug in hash table tarversing. While the hash table
3885 is traversed with SilcHashTableList the table must not be
3886 rehashed. It is now guaranteed that auto rehashable tables
3887 are not rehashed while tarversing the list. Also defined that
3888 silc_hash_table_rehash must not be called while tarversing
3889 the table. Added function silc_hash_table_list_reset that must
3890 be called after the tarversing is over. The affected files are
3891 lib/silcutil/silchashtable.[ch].
3893 * Changed all hash table traversing to call the new
3894 silc_hash_table_list_reset in server and in client library.
3896 * Added function silc_client_on_channel to return the
3897 SilcChannelUser entry if the specified client entry is joined
3898 on the specified channel. This is exported to application as
3899 well. Affected files lib/silcclient/client_channel.c, silcapi.h.
3901 Wed Jan 30 19:14:31 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3903 * Fixed founder regaining problem with JOIN command on normal
3904 server. The notify for mode change must be sent always and
3905 not only if !cmd->pending. Affected file silcd/command.c.
3907 * Fixed the WHOWAS command's reply sending to support the
3908 lists correctly. Affected file silcd/command.c.
3910 Wed Jan 30 11:11:47 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3912 * When sending JOIN command to router for processing the
3913 sender's old command identifier was not saved back to the
3914 sender's command context, fixed now. The affected file is
3917 * Create the key in JOIN command of the router did not return
3918 the channel key, added check for this. Affected file is
3921 * Fixed a channel ID update bug in JOIN command reply. Do
3922 not directly upgrade the ID but call the function
3923 silc_idlist_replace_channel_id if the ID was changed.
3924 Affected file silcd/command_reply.c.
3926 * Fixed memory leaks from command calling if it would fail.
3927 Affected file silcd/command.c.
3929 Tue Jan 29 19:49:31 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3931 * Applied patches from cras:
3933 Memory leak fixes around libaries, irssi window resize fix,
3934 new silclist.h and silcdlist.h, all extern inline changed to
3937 * Removed dotconf from lib/dotconf, not needed anymore.
3939 * Removed TRQ from lib/trq, not needed anymore.
3941 * Do more frequent heartbeats (5 minutes instead of 10 minutes)
3942 with server connections. Later this will be configurable
3943 in config file after new config file is done. Affected file
3946 Tue Jan 29 10:35:03 CET 2002 Pekka Riikonen <priikone@silcnet.org>
3948 * Fixed a crash in server related to channel announcements.
3949 Affected file silcd/server.c.
3951 Mon Jan 28 17:49:42 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3953 * Fixed memory leaks in silc_server_create_new_channel*
3954 functions. Affected file silcd/server.c.
3956 * Fixed the CHANNEL_CHANGE notify to re-announce the channel
3957 which ID was changed. This way the router will send the
3958 user list for the channel again, and server won't be in
3959 desync in some rare circumstances. Affected file is
3960 silcd/packet_receive.c.
3962 Sun Jan 27 21:04:19 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3964 * Check for NULL socket pointer in the function
3965 silc_server_packet_send_to_channel_real. Affected file
3966 silcd/packet_send.c.
3968 * Fixed the BAN notify handling to correctly remove ban
3969 list. Affected file silcd/packet_receive.c.
3971 Sat Jan 26 23:01:03 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3973 * Fixed some header addition to Toolkit distribution in
3974 lib/silcutil/Makefile.am and lib/trq/Makefile.am.
3976 * Added lib/silcclient/client_ops_example.h as an template
3977 file for application programmers to quickly start using
3978 the SilcClientOperation functions in their application.
3979 Updated the lib/silcclient/README as well to tell about this
3980 nice file made available.
3982 Sat Jan 26 10:45:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3984 * Call silc_server_remove_from_channels when removing client
3985 entry when NO_SUCH_CLIENT_ID was received. Affected file
3986 is silcd/command_reply.c.
3988 Fri Jan 25 19:12:36 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3990 * Added server & router operator statistics updating. Affected
3991 file silcd/packet_receive.c and silcd/command.c.
3993 * Fixed the SERVER_SIGNOFF notify handling on normal server
3994 not to save the history information for clients. Same was
3995 fixed earlier in remove_clients_by_server function, but not
3996 here. Affected file silcd/packet_receive.c.
3998 * Raised the default connection-retry count from 4 to 7 in
3999 server. Affected file silcd/server.h.
4001 * Cancel any possible reconnect timeouts when we start the
4002 key exchange. Affected file silcd/server.c.
4004 * Do not reconnect on connection failure when SCONNECT was
4005 given. Affected files silcd/server.[ch].
4007 Tue Jan 22 18:19:36 EET 2002 Pekka Riikonen <priikone@silcnet.org>
4009 * Removed assert()'s from the lib/silcclient/client_keyagr.c.
4011 * Fixed the NICK command to always give the unformatted
4012 nickname to the one giving the NICK command. If unformatted
4013 nickname is cached already it will be formatted and the
4014 local entry will always get the unformatted nickname.
4015 Affected file lib/silcclient/idlist.c.
4017 * Fixed some double frees from client library commands.
4018 Affected file is lib/silcclient/command.c.
4020 * Fixed CUMODE command in server to assure that no one can
4021 change founder's mode than the founder itself, there was a
4022 little bug. Affected file silcd/command.c.
4024 Mon Jan 21 19:07:53 EET 2002 Pekka Riikonen <priikone@silcnet.org>
4026 * Removed the SilcClientCommandDestructor from the client
4027 libary, it is not needed anymore. Affected files are
4028 lib/silcclient/silcapi.h, command[_reply].[ch],
4029 client_notify, idlist.c.
4031 * Fixed GETKEY command to first resolve client, and then
4032 resolve the server only if the client was not found, instead
4033 of resolving both at the same time. Affected file is
4034 lib/silcclient/command.c.
4036 * Added silc_client_start_key_exchange_cb and lookup the
4037 remote hostname and IP address before starting the key
4038 exchange with server. The affected file is
4039 lib/silcclient/client.c.
4041 * The server's public key is now saved using the IP address
4042 of the server and not the servername for the filename.
4043 The hostname public key filename is checked as an fall back
4044 method if the IP address based filename is not found.
4046 Fixed the GETKEY command to save the fetched server key
4047 in correct filename.
4049 Print the remote server's hostname now when new key is
4050 received during connection process. Affected file is
4051 irssi/src/silc/core/client_ops.c.
4053 * Return always our own public key to the client if it asks
4054 for it with GETKEY command. Affected file silcd/command.c.
4056 * Removed the use_auto_addr variable from default config
4057 file since it was in wrong section. Affected file is
4060 * Fixed TOPIC_CHANGE notification to not route it when it
4061 was sent using silc_server_send_notify_to_channel function.
4062 Affected file silcd/command.c.
4064 * Fixed silc_server_send_notify_kicked to send the kicker's
4065 Client ID also, it was missing. Affected files are
4066 silcd/command.c, silcd/packet_send.[ch].
4068 Thu Jan 17 18:59:11 EET 2002 Pekka Riikonen <priikone@silcnet.org>
4070 * Do not save client history information in SERVER_SIGNOFF.
4071 Fixes the bug in normal server that it does not detect
4072 the client becoming valid after the server becomes back
4073 online. Affected file silcd/server_util.c.
4075 * Added `sock_error' field into the SilcSocketConnection
4076 context. When error occurs during socket operation (read
4077 or write) the error is saved. Added also new function
4078 silc_socket_get_error to return human readable socket error
4079 message. Affected files are lib/silcutil/silcsockconn.[ch],
4080 lib/silcutil/unix/silcunixsockconn.c, and
4081 lib/silcutil/win32/silcwin32sockconn.c.
4083 * The server now prints the socket error message in the
4084 signoff for client. Affected file silcd/server.c.
4086 * Fixed the `created' channel information sending from router
4087 to server in JOIN command. Checks now whether the channel
4088 really was created or not and set it according that.
4090 Fixed the JOIN command to use the client entry's current
4091 ID during the joining procedure instead of the one it sent
4092 in the command (it is checked though), since it can change
4093 between the packet processing and command processing, and
4094 would just case unnecessary pain in the client end. Affected
4095 file silcd/command.c.
4097 * Fixed a channel key payload sending to use correct channel
4098 ID when the server was forced to change the channel's ID by
4099 router. Router sent the key payload with the old Channel ID.
4100 Affected file silcd/packet_receive.c.
4102 Wed Jan 16 22:26:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
4104 * Call silc_server_save_channel_key only if the key payload
4105 was provided in the JOIN command's command reply. Affected
4106 file silcd/command_reply.c.
4108 Tue Jan 15 18:49:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
4110 * Fixed silc_mp_sizeinbase to return the value correctly with
4111 MPI. Affected file lib/silcmath/mp_mpi.c.
4113 * Fixed the stop_server signal to correctly stop the scheduler
4114 and gracefully stop the server when SIGTERM or SIGINT signals
4115 are received. Affected file silcd/silcd.c.
4117 Mon Jan 7 23:38:19 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
4119 * Simple handling of TERM and HUP signals. Also added some log
4120 flushing call around. Affected file is
4123 * Fixed small bugs in silclog.c. Now buffering output will take
4124 effect after 10 seconds since startup: This will ensure that
4125 no important startup messages are lost. Also output redirection
4126 will preserve original format ([Date] [Type] message).
4127 Affected file is lib/silcutil/silclog.c.
4129 * Added two options to the config file, in the logging section:
4130 quicklogs:<yes/no>: and flushdelay:<seconds>:. Affected files
4131 lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
4133 Sun Jan 6 12:49:40 EET 2002 Pekka Riikonen <priikone@silcnet.org>
4135 * Do not print the warning about log files not being initialized
4136 more than once to avoid excess logging. Affected file is
4137 lib/silcutil/silclog.c.
4139 * Fixed the SIM compilation in lib/silcsim/Makefile.am. Fixed
4140 the SIM copying in make install in Makefile.am.pre.
4142 Sun Jan 6 01:10:21 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
4144 * Rewritten silclog APIs. Globally interesting changes follows:
4145 silc_log_set_files() changed to silc_log_set_file().
4146 silc_log_set_callbacks() changed to silc_log_set_callback().
4147 ROBOdoc documented silclog header file.
4148 SilcLogCb now returns bool to wether inihibit the default
4149 handler or not (to keep the old behaviour return always TRUE).
4150 The new APIs should also fix the problem of the
4151 silcd_error.log file that was written in the current directory.
4154 Log files streams will remain opened after silc_log_set_file()
4155 call, means less CPU usage notably on high traffic servers.
4156 File streams are now full buffered, and flushed to the disk
4157 every 5 minutes, lesses HD activity and CPU usage.
4158 Messages can be redirected, allowing admins to configure
4159 one single logfile for all server messages.
4160 the silc_log_quick global variable to activate fast-logging.
4161 Affected files lib/silcutil/silclog.[ch]
4163 * Changed some code to conform new silclog APIs. Affected
4164 files are doc/example_silcd.conf.in, silcd/server.c
4165 irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
4168 * Fixed a memory leak that could occur in some situations.
4169 Affected file silcd/serverconfig.c.
4171 Sat Jan 5 13:37:29 EET 2002 Pekka Riikonen <priikone@silcnet.org>
4173 * Added the silc_client_del_client to remove the client from
4174 all channels as well. Affected file lib/silcclient/idlist.c.
4176 * Fixed the client library to correctly remove the client
4177 from all channels when the client entry is being destroyed.
4178 Affected file lib/silcclient/client_notify.c, command.c.
4180 * Added auto-nicking support to the client library. If the
4181 applicatio now sets client->nickname it will be sent to the
4182 server after connecting by the library. This way for example
4183 SILCNICK (or IRCNICK) environment variables will have effect
4184 and always change the nickname automatically to whatever
4185 it is wanted. Affected file lib/silcclient/client.[ch].
4187 * Renamed silc_server_command_bad_chars to the
4188 silc_server_name_bad_chars and moved it to the
4189 silcd/server_util.[ch]. Added also new function
4190 silc_server_name_modify_bad to return nickname that
4191 includes bad characters as new nickname without those
4192 bad characters. This check and modify is now used in
4193 silc_server_new_client when the username is initially set
4194 as nickname, so it must be checked to be valid nickname.
4195 Affected file silcd/packet_receive.c.
4197 * The nickname length is now taken from the packet for real
4198 and not trusted to strlen() since it clearly can return
4199 wrong length for nickname including bad characters. This
4200 also applies to channel names. Affected file silcd/command.c.
4202 * Removed the lib/silcsilm/modules directory. Modules are now
4203 compiled into the lib/silcsim. Fixed the copying of the
4204 modules to follow symbolic links in Makefile.am.pre.
4206 Wed Jan 2 18:56:21 EET 2002 Pekka Riikonen <priikone@silcnet.org>
4208 * Fixed silc_string_regexify list creation. Fixes bugs with
4209 BAN and INVITE commands in server. The affected file is
4210 lib/silcutil/unix/silcunixutil.c.
4212 Sun Dec 30 13:41:34 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4214 * Removed the command destructor entirely from the server's
4215 command and command reply routines. It is not needed, and
4216 its usage was buggy and caused crashes. Affected files are
4217 silcd/command[_reply].[ch].
4219 Fri Dec 28 12:43:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4221 * Cancel protocol and NULL sock->protocol if timeout
4222 occurred during protocol. Affected file silcd/server.c.
4224 * Cancel protocol timeouts always before calling the final
4225 callback, to assure that after final callback is called
4226 no other state will be called for the protocol anymore.
4227 Affected file silcd/protocol.c.
4229 * Print error log if incoming connection configuration could
4230 not be found. Affected file silcd/server.c.
4232 * Fixed JOIN command to correctly save the founder mode
4233 to the client on normal SILC server, when the channel
4234 was created by the router. Affected file silcd/command.c.
4236 * Fixed LIST command (hopefully) to send correct reply
4237 packets. Affected file silcd/command.c.
4239 Thu Dec 20 16:14:52 CET 2001 Pekka Riikonen <priikone@silcnet.org>
4241 * The silc_packet_receive_process now returns FALSE if the
4242 read data was invalid packet, and TRUE if it was ok.
4244 The server now checks that if unauthenticated connection
4245 sends data and its processing fails the server will close
4246 the connection since it could be a malicious flooder.
4248 Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
4250 Wed Dec 19 21:31:25 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4252 * Make sure the warning about error opening a log file is
4253 printed only once and not everytime it fails (produces
4254 too much useless log). Affected file lib/silcutil/silclog.c.
4256 Wed Dec 19 18:21:51 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
4258 * Made the silc_server_daemonise() function more readable.
4259 Affected file silcd/server.c.
4261 * Pid file is now optional, the user may comment it out from
4262 the config file. Removed define SILC_SERVER_PID_FILE, we
4263 don't need a default any longer. Affected file
4264 configure.in.pre, lib/Makefile.am.pre.
4266 * Make some use of the pid file. The server now dies at startup
4267 if it detects a valid pid file on his path. The server would
4268 die anyway in this circumstance, because of the bind() failure.
4269 Affected file silcd/silcd.c.
4271 * No longer compiling lib/dotconf.
4273 Mon Dec 17 18:24:27 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4275 * Fixed JOIN command parsing not to crash. Affected file
4276 lib/silcclient/command.c.
4278 * Fied the NICK_CHANGE notify to add the new client entry
4279 even it is resolved. This removes an <[unknown]> nick
4280 thingy bug in the client. Affected file is
4281 lib/silcclient/client_notify.c.
4283 * Do not try to allocate 0 bytes (efence does not like it)
4284 in lib/silccore/silccomand.c when encoding payload.
4286 * Do not take IRCNICK as nickname in Irssi SILC client since
4287 it is not possible to set nickname before hand connecting
4288 the server (TODO has an entry about adding auto-nicking
4291 * Changed the silc_server_command_pending to check whether
4292 there already exists an pending entry with the specified
4293 command, command identifier and pending callback. This is
4294 to fix IDENTIFY and WHOIS related crashes that may register
4295 multiple pending commands with same identifier. Affected
4296 file silcd/command.c.
4298 * Fixed the server to reconnect to the router even if it
4299 was already reconnecting and EOF was received. This to
4300 fix a possibility that the server wouldn't ever try to
4301 auto-reconnect to the router. Affected file silcd/server.c.
4303 Sat Dec 15 20:31:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4305 * Fixed the server's password authentication to use the
4306 length of the locally saved password, and not the one
4307 sent in the packet. Affected file silcd/protocol.c.
4309 * Fixed same password authentication problem in the
4310 Authentication Payload handling routines in
4311 lib/silccore/silcauth.c.
4313 * Yet another password authentication problem fixed with
4314 channel password handling in silcd/command.c.
4316 Mon Dec 10 19:57:40 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4318 * If first character of string in silc_parse_userfqdn is '@'
4319 then do not parse it. Affected file is
4320 lib/silcutil/silcutil.c.
4322 Sun Dec 9 22:18:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4324 * Fixed minor bug in IDENTIFY command reply sending, which
4325 caused various weird problems during JOIN when it was
4326 resolving names for users. Affected file silcd/command.c.
4328 Sun Dec 9 19:18:41 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4330 * Fixed the IDENTIFY command reply sending to chech better valid
4331 clients. It was possible to send incomplete list of replies.
4332 Affected file silcd/command.c.
4334 Sat Dec 8 15:58:31 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4336 * Added silc_client_command[s]_[un]register functions now to
4337 dynamically register the commands in client library. Removed
4338 the static table of commands. This allows the client library
4339 to call commands without causing the application to know about
4340 what commands library has called.
4342 Removed the INFO command reply kludge to detect when the command
4343 was called by library. Now library use its own command reply
4344 function for INFO command.
4346 Added function silc_client_command_call to call a command.
4347 Application can use it to call command, not access the structure
4350 Now all commands that are sent by the client library (not
4351 explicitly sent by application) use own command reply functions.
4353 Affected files around lib/silcclient/ and in
4354 irssi/src/silc/core/.
4356 * Fixed the WHOIS command reply sending to chech better valid
4357 clients. It was possible to send incomplete list of replies.
4359 Fixed the WHOIS and IDENTIFY to send the request to router
4360 if normal server did not do it and did not find any results.
4362 Affected file silcd/command.c.
4364 Thu Dec 6 17:21:06 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4366 * Moved the internal data from SilcClient context into its
4367 own file, not accesible to application. Affected files
4368 lib/silcclient/client.h and lib/silcclient/client_internal.h,
4369 and other files in client library.
4371 Thu Dec 6 10:37:55 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4373 * Added doc/examples installation target in Makefile.am.pre.
4376 Tue Dec 4 17:43:19 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4378 * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
4379 commands the found client entry will be removed from the
4380 cache, after notifying application about the error. Affected
4381 file lib/silcclient/command_reply.c.
4383 * Changed the /MSG to check for exact nickname user gave, and
4384 not let `nick' match `nick@host' if it is only one found. Now,
4385 user must type the exact nickname (like nick@host2) even if
4386 there are no more than one same nicks found. This is to avoid
4387 a possibility of sending nickname to wrong nickname since
4388 `nick' could match `nick@host'. Affected file is
4389 irssi/src/core/silc-servers.c.
4391 Mon Dec 3 18:49:45 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4393 * Do not print "you are now server operator" or similar when
4394 giving /away command. Affected files are
4395 irssi/src/silc/core/client_ops.c, silc-servers.h.
4397 * Made the silc_server_command_pending_error_check to send
4398 the same command reply payload it received back to the
4399 original sender of the command. This way all arguments
4400 that was received by the server will be received by the
4401 client too. Affected file silcd/command.c.
4403 * Added the silc_idcache_add to return the created cache entry
4404 to a pointer. Affected file lib/silccore/silcidcache.[ch].
4406 * Add global clients to expire if they are not on any channel.
4407 This is because normal server will never know if they signoff
4408 if they are not on any channel. The cache expiry will take
4409 case of these entries. This is done by normal servers only.
4410 The affected files are silcd/command_reply.c,
4411 silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
4413 * If server receives invalid ID notification for WHOIS or
4414 IDENTIFY and the ID exists in the lists, it is removed.
4415 Affected file silcd/command_reply.c.
4417 * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
4418 in client then client entry that it matches is searched and
4419 the nickname is printed on the screen for user. Affected
4420 file irssi/src/silc/core/client_ops.c.
4422 Mon Dec 3 11:56:59 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4424 * Use cache entry expire time in the LIST command reply to
4425 purge old entries from the cache after the LIST command
4426 reply has been received. This way we don't have non-existent
4427 entries in the cache for too long. Affected file is
4428 silcd/command_reply.c.
4430 Sun Dec 2 23:29:07 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4432 * If we are normal server, and we've not resolved client info
4433 in WHOIS or IDENTIFY from router, and it is global client,
4434 we'll check whether it is on some channel. If it is not
4435 then we cannot be sure about its validity and will resolve it
4436 from router. Fixes a bug in WHOIS and IDENTIFY. Affected
4437 file silcd/command.c.
4439 * Search channel by name (if possible) rather than by ID
4440 in IDENTIFY command's command reply. Affected file is
4441 silcd/command_reply.c.
4443 Sun Dec 2 13:48:46 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4445 * Distribute to the channel passphrase in CMODE_CHANGE notify.
4446 Updated specs and implemented it. Affected file silcd/command.c,
4447 silcd/packet_send.c and silcd/packet_receive.c.
4449 * Implemented the <founder auth> payload handling in the JOIN
4450 command. If provided all conditions for channel joining
4451 except requirement to provide correct passphrase can be
4452 overrided by the channel founder. Updated the protocol specs.
4453 Affected file silcd/command.c.
4455 Added support for founder auth in JOIN command in client
4456 library. Fixed the parsing of the JOIN command now to support
4457 all options as they should be. The affected file is
4458 lib/silcclient/command.c.
4460 * Optimized the WHOIS and IDENTIFY commands to send the request
4461 to router only if it includes nicknames or other names. If
4462 they include only IDs then check the local cache first before
4463 routing. Affected file is silcd/command.c.
4465 * Added channels topic announcements. Affected file is
4466 silcd/packet_receive.c and silcd/server.c.
4468 * Fixed the silc_server_send_notify_topic_set to really destine
4469 the packet to channel. Affected file silcd/packet_send.c.
4471 * Fixed a crash in CHANNEL_CHANGE notify handling in the client
4472 library. Affected file lib/silcclient/client_notify.c.
4474 * Added UMODE announcements. Affected file silcd/server.c.
4476 Sat Dec 1 12:52:39 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4478 * Memory leak fixes in:
4480 lib/silcutil/silcsockconn.c
4481 lib/silcske/silcske.c
4482 lib/silcske/groups.c
4484 lib/silccrypt/silcpkcs.c
4485 lib/silccore/silccommand.c
4486 lib/silccore/silcidcache.c
4491 * ROBOdoc documented the lib/silcske/groups.h file and a
4492 bit changed the interface for better.
4494 Thu Nov 29 22:12:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
4496 * Update the client entry context in the ID cache after
4497 nick change. Affected file lib/silcclient/command.c.
4498 Fixes the CUMODE command when regaining founder privileges,
4499 and a little WHOIS problem.
4501 * Fixed silc_net_gethostbyname to correctly call the
4502 inet_ntop. Affected file lib/silcutil/silcnet.c.
4504 Thu Nov 29 19:31:23 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
4506 * Added IPv6 support checking to the configure.in.pre, added
4507 also --enable-ipv6 option to override the check. Affected
4508 file configure.in.pre.
4510 * The silc_thread_create now calls the start function
4511 directly if threads support is not compiled in. Removes
4512 ugly #ifdef's from generic code. Affected files are
4513 lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
4515 * Added silc_net_gethostby[name/addr]_async to asynchronously
4516 resolve. Affected files are lib/silcutil/silcnet.[ch].
4518 * Added support for rendering IPv6 based server, client and
4519 channel IDs. Affected file lib/silcutil/silcutil.c.
4521 * Added support for creating IPv6 based server IDs. Affected
4522 file is silcd/serverid.c.
4524 Wed Nov 28 23:46:09 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
4526 * Added silc_net_gethostby[addr/name] into the
4527 lib/silcutil/silcnet.[ch]. Added IPv6 support to Unix network
4528 routines. Added silc_net_is_ip[4/6]. Affected file is
4529 lib/silcutil/unix/silcunixnet.c. All routines that take
4530 address as argument now supports both IPv4 and IPv6 addresses.
4532 Mon Nov 26 18:09:48 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
4534 * Fixed LIST command reply sending in server. Affected file
4537 * Server now sends the kicker's client ID in the KICK notify
4538 to the kicked client. Affected file silcd/command.c.
4540 * The client library now parses the kickers client ID and
4541 UI displays it. Affected files lib/silcclient/client_notify.c
4542 and irssi/src/silc/core/silc-channels.c, module-formats.c.
4544 * Made all payload parsing function prototypes consistent.
4545 They all take now const unsigned char * and uint32 pair as
4546 the payload data instead of SilcBuffer. Changes all around
4547 the source tree. Other unsigned char* -> const unsigned char*
4548 changes around the tree as well.
4550 * Optimized SFTP client and server packet sending not to
4551 allocate new buffer for each packet but to recycle the
4552 first allocated buffer. Affected files are
4553 lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
4555 * Optimized the SFTP client to use SilcList instead of
4556 SilcDList for requests, because it is faster. Affected file
4557 is lib/silcsftp/sftp_client.c.
4559 * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
4560 into lib/silccore/silcid.[ch].
4562 Renamed silcpayload.[ch] into silcargument.[ch].
4564 Mon Nov 26 15:01:53 CET 2001 Pekka Riikonen <priikone@silcnet.org>
4566 * If client entry is deleted with active key agreement
4567 session, abort the session.
4569 The silc_client_abort_key_agreement now calls the completion
4570 callback with new SILC_KEY_AGREEMENT_ABORTED status.
4572 Affected file lib/silcclient/silcapi.h, client_keyagr.c and
4575 Sun Nov 25 18:01:45 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4577 * Don't use __restrict in older GCC's. Affected file is
4578 lib/silcmath/mpi/mpi-priv.h. A patch by salo.
4580 * silc_net_localhost now attempts to reverse lookup the
4581 IP/hostname. Affected file lib/silcutil/silcnet.c.
4583 * Defined <founder auth> argument to the SILC_COMMAND_JOIN
4584 command. It can be used to gain founder privileges at
4585 the same time when joining the channel.
4587 Defined that the SILC_NOTIFY_TYPE_KICKED send the
4588 kicker's client ID as well. Updated protocol specs.
4590 Defined that the server must send SILC_COMMAND_IDENTIFY
4591 command reply with error status to client who sent
4592 private message with invalid client ID.
4594 Updated the protocol specification.
4596 * Added silc_server_send_command_reply to send any
4597 command reply. Affected file silcd/packet_send.[ch].
4599 * Added silc_id_payload_encode_data to encode ID payload
4600 from raw ID data. Affected file lib/silccore/silcpayload.[ch].
4602 * The server now send IDENTIFY command reply with error
4603 status if client ID in private message is invalid. Affected
4604 file silcd/packet_receive.c.
4606 * Save the server key file with server's IP address in
4607 the filename instead of hostname. The affected file is
4608 irssi/src/silc/core/client_ops.c.
4610 Sat Nov 24 20:08:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4612 * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
4615 * Added libtool support for compiling shared objects in
4616 lib/silcsim. Affected file configure.in.pre and
4617 lib/silcsim/Makefile.am. Original patch by cras.
4619 Fri Nov 23 23:30:59 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4621 * Pid file configuration, and server's config file fixes
4622 patch by toma. Updated CREDITS file.
4624 Sun Nov 18 01:34:41 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4626 * Fixed silc_client_channel_message to not try to decrypt
4627 the message twice if it resolved the destination client
4628 information. This could cause of dropping one channel
4629 message. Affected file lib/silcclient/client_channel.c.
4631 Wed Nov 14 23:44:56 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4633 * Added silc_client_run_one into lib/silcclient/silcapi.h and
4634 lib/silcclient/client.c. This function is used when the SILC
4635 Client is run under some other scheduler, or event loop or
4636 main loop. On GUI applications, for example this may be
4637 desired to used to run the client under the GUI application's
4638 main loop. Typically the GUI application would register an
4639 idle task that calls this function multiple times in a second
4640 to quickly process the SILC specific data.
4642 Wed Nov 14 19:16:52 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
4644 * Fixed silc_server_drop() for dropping the supplementary
4645 groups as well, this could cause a security hole on some
4648 Wed Nov 14 16:22:25 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4650 * __pid_t -> pid_t in lib/silccrypt/silcrng.c. A patch by
4653 * Write PID file after dropping privileges. Added -F option
4654 to run server on foreground. A patch by debolaz.
4655 Affected files silcd/server.c, silcd/silcd.c.
4657 * Fixed MOTD to return the MOTD file server name. Affected
4658 file silcd/command.c.
4660 * Added INFO command reply handling to the Irssi SILC Client.
4661 Affected file irssi/src/silc/core/client_ops.c.
4663 Wed Nov 14 00:18:08 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4665 * Fixed the silc_idcache_list_* routines to really support
4666 the dynamic list. Fixes a crash. Affected file is
4667 lib/silccore/silcidcache.c.
4669 * Fixed the LIST command reply to really call LIST command's
4670 pending callbacks. Affected file silcd/command_reply.c.
4672 Tue Nov 13 00:49:17 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4674 * Update conn->local_entry->nickname after giving NICK
4675 command. Affected file lib/silcclient/command.c.
4677 Sun Nov 11 23:43:02 PST 2001 Brian Costello <bc@wpfr.org>
4679 * Added the [pid] option to the silcd configuration file
4681 Affected files: serverconfig.[ch] and silcd.c
4683 Sun Nov 11 23:56:39 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4685 * Save fingerprint in WHOIS command reply in server.
4686 Affected file silcd/command_reply.c.
4688 * Fixed NICK commands pending callback registration.
4689 Affected file lib/silcclient/command.c.
4691 Sun Nov 11 10:49:10 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4693 * Use ++server->cmd_ident when sending commands in server,
4694 instead of random number. Affected file silcd/command.c.
4696 * Fixed GETKEY command reply to call actually GETKEY pending
4697 command callbacks. Affected file silcd/command_reply.c.
4699 * A bit stricter check for nicknames. Check for same nickname
4700 in NICK command also. Affected file silcd/command.c.
4702 * Do not call INFO command everytime client ID changes, only
4703 during first connecting. Affected file lib/silcclient/client.c.
4705 * Set the new nickname only after successful command reply for
4706 NICK command is returned by server. Affected file
4707 lib/silcclient/command.c.
4709 * Remove nicknames from nicklist during server_signoff notify.
4710 Should fix /NAMES bit more. The affected file is
4711 irssi/src/silc/core/silc-channels.c.
4713 * Added `fingerprint' field to the SilcIDListData in the
4714 silcd/idlist.h to hold the fingerprint of the client's
4717 Send the fingerprint of the client's public key in WHOIS
4720 Affected files silcd/command.c, and silcd/idlist.[ch].
4722 * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
4723 create fingerprint from given data.
4725 * Show the fingerprint of the client's public key in WHOIS.
4726 Affected files irssi/src/module-formats.[ch] and
4727 irssi/src/silc/core/client_ops.c.
4729 * Format the multiple same nicknames also during JOIN and
4730 NICK_CHANGE notifys. Affected file is
4731 lib/silcclient/client_notify.c.
4733 * Do not print error on screen for invalid private message
4734 payload since it can come if someone is sending private
4735 messages with wrong key. Affected file
4736 lib/silccore/silcprivate.c.
4738 * Fixed multiple concurrent /PING crash. Affected file
4739 lib/silcclient/command.c.
4741 * Changed the wrong ID encoding. All IP addresses must be
4742 in MSB first order in encoded format. They were encoded
4743 wrong and was in LSB format. Affected files are
4744 silcd/serverid.c, lib/silcutil/silcutil.c.
4746 * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
4748 * Call the `connect' client operation through the scheduler
4749 in case of error. Affected file lib/silcclient/client.c.
4751 * Call the `failure' client operation even if the error
4752 occurred locally during a protocol. Affected file is
4753 lib/silcclient/protocol.c.
4755 * Added support of sending LIST command to router from normal
4756 server. This way normal server can get list of all channels
4757 in the network too. Fixed the channel list sending in the
4758 server too. Affected files are silcd/command.c, and
4759 silcd/command_reply.[ch].
4761 * Added silc_server_update_channels_by_server and
4762 silc_server_remove_channels_by_server. They are used during
4763 disconnection of primary router and in backup router protocol.
4764 Affected file silcd/server_util.[ch], silcd/server.c and
4765 silcd/server_backup.c.
4767 * Fixed channel adding to global list in IDENTIFY command
4768 reply in server. Affected file silcd/command_reply.c.
4770 Sat Nov 10 21:39:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4772 * If the incoming packet type is REKEY or REKEY_DONE process
4773 that packet always synchronously. Fixes yet another MAC
4774 failed error on slow (dialup) connections. Affected file
4775 lib/silcclient/client.c and silcd/server.c.
4777 Thu Nov 8 22:21:09 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4779 * Call check_version SKE callback for initiator too. Affected
4780 file lib/silcske/silcske.c.
4782 * Implemented fix for security hole found in the SKE that was
4783 fixed in the specification few days back; the initiator's
4784 public key is now added to the HASH value computation.
4785 Added backwards support for the old way of doing it too, for
4786 old clients and old servers. Affected file is
4787 lib/silcske/silcske.c.
4789 * Enabled mutual authentication by default in SKE. If initiator
4790 is not providing mutual authentication the responder will
4791 force it. This will provide the proof of posession of the
4792 private key for responder. The affected files are
4793 lib/silcclient/protocol.c and silcd/protocol.c.
4795 * Do not cache anymore the server's public key during SKE.
4796 We do mutual authentication so the proof of posession of
4797 private key is done, and if the server is authenticated in
4798 conn auth protocol with public key we must have the public
4799 key already. Affected file silcd/protocol.c.
4801 * Added new global debug variable: silc_debug_hexdump. If
4802 it is set to TRUE SILC_LOG_HEXDUMP will be printed. Affected
4803 file lib/silcutil/silclog.[ch].
4805 * Fixed compilation warning due to char * -> const char *.
4806 Affected files lib/silcutil/silcnet.h, and
4807 lib/silccore/silcauth.[ch].
4809 Wed Nov 7 20:43:03 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4811 * Fixed CMODE command when new channel key was created. If
4812 the creation failed the old key was removed. Next time giving
4813 same command would crash the server since the old key was
4814 freed already. Affected file silcd/command.c.
4816 * Fixed the silc_server_announce_get_channels to not crash
4817 on reconnect. Affected file silcd/server.c.
4819 Wed Nov 7 17:15:07 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4821 * Added silc_log_set_debug_string function to set a regex
4822 string to match for debug output. Only the function names,
4823 or filenames matching the given debug string is actually
4824 printed. This way it is possible to filter out those debug
4825 strings that user is not interested in.
4827 Fixed a bug in silc_string_regexify.
4829 Affected files lib/silcutil/silclog.[ch], and
4830 lib/silcutil/unix/silcunixutil.c.
4832 * Changed the -d options in both server and Irssi SILC client
4833 to take the debug string as argument. Affected files
4834 silcd/silcd.c and irssi/src/silc/core/silc-core.c.
4836 Tue Nov 6 21:31:54 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4838 * Added silc_hash_babbleprint to create a Bubble Babble
4839 Encoded fingerprint. The encoding is developed by Antti
4840 Huima (draft-huima-babble-01.txt), and it creates human
4841 readable strings out of binary data. Affected file
4842 lib/silccrypt/silchash.[ch].
4844 * Print the babble print now in addition of fingerprint as well
4845 in Irssi SILC client. Affected files are
4846 irssi/src/fe-common/silc/module-formats.[ch],
4847 irssi/src/fe-common/silc/core/client_ops.c.
4849 Sun Nov 4 23:37:28 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4851 * Fixed a security problem found in SKE. The initiator's
4852 public key too is now added to the HASH hash value creation
4853 which is signed by the responder to create the SIGN value.
4854 This will prevent anyone in the middle to lie to the responder
4855 about the initiator's public key. If this is done now, the
4856 man in the middle will get caught. Updated the protocol
4859 Sun Nov 4 11:43:53 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4861 * Better installation directory handling. Configure module
4862 paths and other paths automatically to example_silc* files
4863 in doc/. A patch by toma.
4865 * Fixed compiler warning from MPI library, and from SILC RNG.
4868 * Added SILC_SERVER_PID_FILE to define the pid file for server.
4869 It can be configured with ./configure. A patch by toma.
4871 Sat Nov 3 23:48:23 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4873 * Find correct make to use in prepare-clean. A patch by
4874 toma. Affected file prepare-clean.
4876 Sat Nov 3 22:04:00 PST 2001 Brian Costello <bc@mksecure.com>
4878 * Added irssi variables use_auto_addr, auto_bind_ip,
4879 auto_bind_port and auto_public_ip.
4881 * Changed the interface for silc_client_send_key_agreement
4882 in lib/silcclient/silcapi.h
4886 irssi/src/silc/core/silc-core.c
4888 lib/silcclient/silcapi.h
4889 irssi/src/silc/core/silc-channels.c
4890 lib/silcclient/client_keyagr.c
4893 Sat Nov 3 17:48:55 EET 2001 Pekka Riikonen <priikone@silcnet.org>
4895 * Added silc_pkcs_public_key_compare to compare two
4896 public keys. Affected file lib/silccrypt/silcpkcs.[ch].
4898 * Check that the client who set the founder mode on the
4899 channel is the same client that is giving the founder
4900 mode to itself. It is done by comparing the saved public
4901 key (it is saved even in the authentication is passphrase).
4902 Affected file silcd/command.c.
4904 Fri Nov 2 18:52:08 EST 2001 Pekka Riikonen <priikone@silcnet.org>
4906 * Do not process packet for disconnected socket connection.
4907 Affected file lib/silccore/silcpacket.c.
4909 * Process the DISCONNECT packet through scheduler in the
4910 client library. Affected file lib/silcclient/client.c.
4912 * Fixed the silc_client_packet_parse to not to increase
4913 the packet sequence number if the conn->sock and the
4914 current socket connection is not same. This can happen
4915 for example during key agreement when the conn includes
4916 multiple socket connections (listeners). Affected file
4917 lib/silcclient/client.c.
4919 * The sender of the file transfer request now provides also
4920 the pointer (listener) for the key exchange protocol. If
4921 the listener cannot be created then it sends empty key
4922 agreement and lets the receiver provide the listener.
4924 Added `local_ip' and `local_port' arguments to the
4925 silc_client_file_send. If they are provided they are used,
4926 if not then it will attempt to find local IP address, if
4927 not found or bind fails then the remote client will provide
4930 Affected files are lib/silcclient/client_ftp.c and
4931 lib/silcclient/silcapi.h.
4933 * Extended the FILE SEND command to support defining the
4934 local IP and port for key exchange listener. They are
4935 optional. Affected file irssi/src/silc/core/silc-servers.c.
4937 Thu Nov 1 22:10:07 EST 2001 Pekka Riikonen <priikone@silcnet.org>
4939 * Defined to WHOIS command reply the sending of fingerprint
4940 of the client's public key (if the proof of posession of the
4941 corresponding private key is verified by the server).
4942 Updated to the protocol specification.
4944 * Added support of receiving the client's public key's
4945 fingerprint in command reply in client library. Affected
4946 file is lib/silcclient/command_reply.c, and
4947 lib/silcclient/idlist.[ch].
4949 Thu Nov 1 18:06:12 EST 2001 Pekka Riikonen <priikone@silcnet.org>
4951 * Do not send over 128 chars long nickname to the server
4952 in NICK command. Affected file lib/silcclient/command.c.
4954 * Do not send over 256 chars long channel names to the server
4955 in JOIN command. Affected file lib/silcclient/command.c.
4957 Tue Oct 30 22:48:59 EST 2001 Pekka Riikonen <priikone@silcnet.org>
4959 * Assure that silc_server_close_connection cannot be called
4960 twice for same socket context. Affected file is
4963 Tue Oct 30 16:58:14 EST 2001 Pekka Riikonen <priikone@silcnet.org>
4965 * Send error message to application if opening file for
4966 writing during file transfer fails. Affected file is
4967 lib/silcclient/client_ftp.c.
4969 Remove all file transfer sessions for a client that we're
4970 removing from ID cache.
4972 Affected file is lib/silcclient/client_ftp.c.
4974 * Fixed silc_net_addr2bin to return correct address. Affected
4975 file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
4977 * Fixed file transfer session removing on signoff notify.
4978 Affected file irssi/src/silc/core/silc-servers.c.
4980 * Added the SilcClientFileError to be returned in the monitor
4981 callback. Added NO_SUCH_FILE and PERMISSION_DENIED errors.
4982 Affected file lib/silcclient/silcapi.h.
4984 Mon Oct 29 17:43:04 EST 2001 Pekka Riikonen <priikone@silcnet.org>
4986 * Fixed a crash in silc_client_ftp_free_sessions and
4987 silc_client_ftp_session_free_client. Affected file
4988 lib/silcclient/client_ftp.c.
4990 * Added `disabled' field in the SilcChannelEntry in the server
4991 to indicate if the server entry is disabled. Affected file
4992 silcd/idlist.h, silcd/command[_reply].c.
4994 * SILC server adds now /var/run/silcd.pid everytime it is
4995 started. Affected file silcd/silcd.c.
4997 * Added silc_server_packet_send_clients to send a packet to
4998 the provided table of client entries. Affected file
4999 silcd/packet_send.[ch].
5001 * Fixed a crash in client resolving in client_prvmsg.c in
5002 client library. Affected file lib/silcclient/client_prvmsg.c.
5004 * Do not actually remove the client directly from ID cache
5005 during SERVER_SIGNOFF, but invalidate it. This way we
5006 preserve the WHOWAS info for the client. Affected file
5007 silcd/server_util.c.
5009 * Fixed SERVER_SIGNOFF notify handling in the server. The
5010 server is now able to process incoming SERVER_SIGNOFF notify
5011 for a server that it doesn't even know about. It will remove
5012 the clients provided in the notify. Affected file
5013 silcd/packet_receive.c.
5015 * Check for partial packet in data queue after every packet that
5016 was found from the queue. Return and wait for more data if
5017 there is partial data in queue. Affected file is
5018 lib/silccore/silcpacket.c.
5020 Sun Oct 28 18:46:27 EST 2001 Pekka Riikonen <priikone@silcnet.org>
5022 * Added SilcClietFileError enum to indicate error in
5023 file transfer. Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
5024 and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
5025 Affected files lib/silcclient/silcapi.h and
5026 lib/silcclient/client_ftp.c.
5028 * Check that newsize in silc_buffer_realloc is larger than
5029 the old buffer's size. Affected file lib/silcutil/silcbufutil.h.
5031 * Added better monitor of file transfers. It now monitors
5032 key agreement protocol during the file transfer too. Added
5033 error reporting too. Affected files
5034 irssi/src/silc/core/silc-servers.c,
5035 irssi/src/fe-common/silc/module-formats.[ch].
5037 * Wrote a help file for FILE command.
5039 * Added silc_rng_global_get_byte_fast to get not-so-secure
5040 random data as fast as possible. Random data is read from
5041 /dev/urandom if available and from the SILC RNG if not
5042 available. It is used in padding generation. Affected file
5043 lib/silccrypt/silcrng.[ch].
5045 * All packets in client library are now processed synchronously.
5046 Optimized packet processing a lot. Affected file
5047 lib/silcclient/client.c.
5049 * All server connection packets are processing synchronously
5050 now in server, to optimize packet processing. Affected file
5053 * Include files are installed now only in Toolkit distribution
5054 if make install is given. Affected files: all Makefile.am's.
5056 Thu Oct 25 22:44:06 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5058 * Assure that silc_client_notify_by_server_resolve does not
5059 resolve the client information multiple times. If it cannot
5060 be found by the first it cannot be found at all. Affected
5061 file lib/silcclient/client_notify.c.
5063 * Fixed WHOWAS command reply calling. Affected file
5064 lib/silcclient/command_reply.c.
5066 * Removed all references to silc_idlist_get_client from the
5067 Irssi SILC client since that call is internal call used by
5068 the library. The Irssi SILC client will use now client
5069 retrieval functions found in silcapi.h.
5071 * Fixed a bug in resolving nickname info before sending
5072 private message. It used freed memory. Affected file
5073 irssi/src/silc/core/silc-servers.c.
5075 Thu Oct 25 19:04:49 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5077 * Assure my_channels statistics cannot go negative in server.
5078 Affected files silcd/server.c, silcd/server_util.c.
5080 Wed Oct 24 19:53:05 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5082 * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
5084 Tue Oct 23 13:51:19 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5086 * Win32 Toolkit changes. Affected files
5087 win32/silc.dsw, win32/libsilc/libsilc.def,
5088 win32/libsilcclient/libsilc.def,
5089 lib/silcutil/silcutil.c, and
5090 lib/sftp/sftp_fs_memory.c.
5092 Mon Oct 22 16:35:05 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5094 * Added silc_net_localip to return local host's IP address.
5095 Affected file lib/silcutil/silcnet.[ch].
5097 * If key exchange or rekey protocol is active for a connection
5098 parse all packets syncronously since there might be packets
5099 in packet queue that we are not able to process without first
5100 processing packets before them. Affected file silcd/server,
5101 lib/silcclient/client.c.
5103 * SilcPacketParserCallback now returns TRUE or FALSE to indicate
5104 whether library should continue processing the packet.
5105 Affected file lib/silccore/silcpacket.h.
5107 * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
5108 SilcSFTPMonitorData to SFTP server to monitor various
5109 SFTP client requests. Affected file lib/silcsftp/silcsftp.h,
5110 lib/silcsftp/sftp_server.c.
5112 * Added silc_file_size to return file size. Affected file
5113 lib/silcutil/silcutil.[ch].
5115 * Implemented the file transfer support for the client library.
5116 Added preliminary support for simple client to client one-file
5117 transmission. Affected file lib/silcclient/client_ftp.c,
5118 lib/silccilent/client.[ch].
5120 * Added new local command FILE to the Irssi SILC Client.
5121 It is used to perform the file transfer. It has subcommands
5122 SEND, RECEIVE, SHOW and CLOSE. Affected files
5123 irssi/src/silc/core/client_ops.c,
5124 irssi/src/silc/core/silc-server.[ch].
5126 Mon Oct 22 12:50:08 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5128 * Relay the SILC_PACKET_FTP in the server. Affected files
5129 silcd/server.c and silcd/packet_receive.c.
5131 Sun Oct 21 20:21:02 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5133 * Renamed silc_file_read and silc_file_write to functions
5134 silc_file_readfile and silc_file_writefile. Added function
5135 silc_file_open and silc_file_close. Affected files
5136 lib/silcutil/silcutil.[ch].
5138 Thu Oct 18 20:58:13 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5140 * Resolve the client info when received private message or
5141 channel message for a client which nickname we don't know.
5142 Affected files lib/silcclient/client_prvmsg.c and
5143 lib/silcclient/client_channel.c.
5145 * Do not crash in /KEY if client is not connected. Affected
5146 file irssi/src/silc/core/silc-channels.c.
5148 * Added SilcClientStatus field to the SilcClientEntry in the
5149 lib/silcclient/idlist.h.
5151 Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
5152 is incomplete and is being resolved, it won't be resolved
5155 Make sure also that USERS command reply does not resolve
5156 twice information. Affected file is
5157 lib/silcclient/command_reply.c.
5159 Make sure that silc_client_get_clients_by_list does not
5160 resolve twice same information.
5162 * Check for valid client->id in the silc_server_free_client_data.
5163 Affected file silcd/server.c.
5165 * Fixed /GETKEY nick@server not to crash if the server entry
5166 is not found. Affected file lib/silcclient/command.c.
5168 * Fixed the silc_server_check_cmode_rights to check the
5169 requested modes correctly. Affected file silcd/command.c.
5171 Thu Oct 18 12:10:22 CEST 2001 Pekka Riikonen <priikone@silcnet.org>
5173 * Better checks for non-printable chars in nick added.
5174 Affected file silcd/command.c.
5176 Thu Oct 18 09:18:58 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5178 * Call the silc_server_udpate_servers_by_server in the
5179 primary router that comes back online in the backup resuming
5180 protocol. Otherwise it routes packets wrong. Affected file
5181 silcd/server_util.[ch], silcd/server_backup.c.
5183 Wed Oct 17 16:51:18 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5185 * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
5186 lib/silcutil/silcbuffmt.[ch].
5188 * Redefined the SILC packet header to include the padding
5189 length. Affected file lib/silccore/silcpacket.[ch].
5191 * Added SILC_PACKET_PADLEN_MAX macro to return the padding
5192 length for maximum padding up to 128 bytes). Affected
5193 file lib/silccore/silcpacket.h.
5195 * Removed all backwards support for old 0.5.x MAC thingies.
5196 The SILC packet header change makes it impossible to be
5197 backwards compatible.
5199 * Send the ENDING packet with timeout in the backup resuming
5200 protocol. This is to assure that all routers has connected
5201 to the primary router. Affected file silcd/server_backup.c.
5203 * Changed the RNG to take the first IV from random data. It
5204 used to take it from zero actually. Changed the RNG also
5205 to use /dev/urandom during session. /dev/random is used
5206 in initialization. Affected file lib/silccrypt/silcrng.[ch].
5208 Tue Oct 16 20:45:49 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5210 * Changed the SILC packet header to have the first two bytes
5211 (the packet length) encrypted. Affected files aroung the
5212 code tree, lib/silccore/silcpacket.[ch]. Removed the
5213 SilcPacketCheckDecrypt callback. It is not needed anymore
5214 since the silc_packet_receive_process will determine now
5215 whether the packet is normal or special.
5217 * Implemented the unidirectional MAC keys. Affected files
5218 lib/silcske/silcske.c, silcd/protocol.c and
5219 lib/silcclient/protocol.c.
5221 * Implemented the packet sequence number to the MAC computation.
5222 Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
5223 silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
5224 lib/silcclient/protocol.c.
5226 Mon Oct 15 17:42:55 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5228 * Allow backup router to announce servers. All servers
5229 announced by backup router are added to the global list
5230 automatically. Update hte server's socket to our primary
5231 router also when backup router announces a server.
5232 Affected file silcd/packet_receive.c.
5234 * Do not update the client->router in the function
5235 silc_server_udpate_clients_by_server if the client is on
5236 global list. We might fail to find any specific server
5237 for locally connected clients and local cell clients. They
5238 should still use the `from' and not `to' as client->router.
5239 This fixes backup router resuming protocol. Affected file
5240 silcd/server_util.c.
5242 * Decrease channel statistics count only if the channel
5243 deletion worked. Affected files are silcd/server.c and
5244 silcd/server_util.c.
5246 * Added silc_server_update_servers_by_server to update origin
5247 of all server entries. Used during backup router protocol.
5248 Affected files silcd/server_util.[ch], silcd/server.c. and
5249 silcd/backup_router.c.
5251 * ROBODoc documented the lib/silccrypt/silchmac.h. Added new
5252 function silc_hmac_init, silc_hmac_update, silc_hmac_final,
5253 silc_hmac_get_hash and silc_hmac_get_name. Affected file
5254 lib/silccrypt/silchmac.c.
5256 Sun Oct 14 18:28:22 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5258 * Assure that router cannot reroute the same channel message
5259 to the sender. Affected file silcd/packet_receive.c.
5261 Sat Oct 13 12:46:18 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5263 * Made better checks that the channel message is not sent
5264 to the router it came from. Affected file is
5265 silcd/packet_send.c. Fixed memory leak too.
5267 * Announce informations for incoming router connection, but
5268 only after checking if it is replaced by backup router.
5269 Affected file silcd/packet_receive.c.
5271 Fri Oct 12 18:37:24 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5273 * Fixed the backup resuming protocol to work in multiple
5274 router environment. Affected file silcd/server_backup.c.
5276 * Route packet only to one router in the function
5277 silc_server_packet_send_to_channel. Affected file is
5278 silcd/packet_send.c.
5280 * Fixed silc_server_send_notify_dest to set the broadcast
5281 flag. Fixed the silc_server_send_notify_topic to actually
5282 send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
5283 Affected file silcd/packet_send.c.
5285 * Changed the SFTP Filesystem interface. Changed the
5286 SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
5287 the filesystem operation function. The SilcSFTPFilesystem
5288 is now a context that is allocated by all filesystem allocation
5289 functions and it already includes the operations structure
5290 and filesystem specific context. It is given as argument
5291 now to the silc_sftp_server_start. This made the interface
5292 a bit cleaner. Affected file lib/silcsftp/silcsftp[_fs].h,
5293 lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
5295 Thu Oct 11 22:19:26 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5297 * Changed the backup router adding and getting interfaces
5298 in the server. The router that will be replaced by the
5299 specified backup router is now sent as argument. Affected
5300 files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
5303 * Added silc_net_addr2bin_ne to return the binary form of
5304 the IP address in network byte order. Affected files
5305 lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
5307 Thu Oct 11 12:14:19 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5309 * Check for existing server ID in silc_server_new_server
5310 and in silc_server_connect_to_router_final and remove the
5311 old entry if it exists. Affected file silcd/packet_receive.c,
5314 * Send the channel message always to only one router, either
5315 in upstream or downstream. Affected file is
5316 silcd/packet_send.c.
5318 Tue Oct 9 17:45:43 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5320 * Wrote the definition of the backup resuming protocol to the
5321 protocol specification.
5323 * Removed one redundant channel key generation from normal
5324 server during joining procedure. Removed one redundant
5325 channel key sending from server to router during joining
5326 procedure. Affected file silcd/command.c.
5328 * Made minor bugfixes to the backup router resuming protocol.
5329 Affected file silcd/server_backup.c, server.c.
5331 Mon Oct 8 16:47:42 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5333 * Added --disable-asm configuration option. Affected files
5334 configure.in.pre, lib/silcmath/mpi/configure.in. A patch
5337 * Implemented the backup resuming protocol that is used to
5338 resume the primary router position in the cell after the
5339 primary router comes back online. Affected files
5340 silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
5341 and silcd/server_util.[ch].
5343 Sun Oct 7 12:29:25 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5345 * Sleep two (2) seconds after sending QUIT command to server.
5346 Affected file lib/silcclient/command.c.
5348 * Assure that if outgoing data buffer is pending do not force
5349 send any data. Affected file silcd/packet_send.c.
5351 * Assure that if outgoing data buffer is pending do not force
5352 send any data. Affected file lib/silcclient/client.c.
5354 * Implemented the backup router support when the primary router
5355 goes down. The servers and routers can now use the backup
5356 router as new primary router without loosing connectivity.
5358 Sat Oct 6 21:18:54 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5360 * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
5361 in the server to indicate disabled entry. All data read
5362 from the connection will be ignored and no data is sent
5363 for entry that is disabled. Affected files are
5364 silcd/idlist.h, silcd/server.c.
5366 Fri Oct 5 00:03:29 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5368 * Created SFTP client and server test programs in the
5369 lib/silcsftp/tests directory.
5371 Wed Oct 3 23:31:42 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
5373 * Implemented memory filesystem (virtual filesystem) for
5374 SFTP server. Affected file lib/silcsftp/silcsftp_fs.h,
5377 Sun Sep 30 22:10:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5379 * Implemented the SFTP (SSH File Transfer Protocol) to the
5380 lib/silcsftp. It includes SFTP client and SFTP server
5383 Sun Sep 30 10:35:44 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5385 * Moved lib/silccore/silcprotocol.[ch] to the
5386 lib/silcutil library.
5388 * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
5389 take variable argument list pointer as argument. Affected
5390 file lib/silcutil/silcbuffmt.[ch].
5392 * Added silc_buffer_set function that is used to set data
5393 to a SilcBuffer that is not allocated at all (SilcBufferStruct).
5394 Affected file lib/silcutil/silcbuffer.h.
5396 * Changed various routines in the core library to use the new
5397 silc_buffer_set instead of allocating new buffer only for
5400 * Added 64-bit value formatting and unformatting support to the
5401 silc_buffer_[un]format routines. Affected file is
5402 lib/silcutil/silcbuffmt.[ch].
5404 Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
5405 to includes/bitmove.h.
5407 Fri Sep 28 21:30:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5409 * Fixed channel user mode saving in client library. Affected
5410 file lib/silcclient/command[_reply].c.
5412 Thu Sep 27 22:52:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5414 * Defined the file transfer to the SILC Protocol. Added
5415 new packet type SILC_PACKET_FTP and defined File Transfer
5416 Payload. The mandatory file transfer protocol is SFTP
5417 (SSH File Transfer Protocol). Affected file in addition
5418 of the internet draft is lib/silccore/silcpacket.h.
5420 * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
5421 packet SILC_PACKET_RESUME_ROUTER instead. The new packet
5422 is used as part of backup router protocol when the primary
5423 router of the cell is back online and wishes to resume
5424 the position as primary router.
5426 * Redefined the MAC generation keys in the protocol. The
5427 same key is not used anymore in both direction. Both
5428 direction will now use different keys for sending and
5429 receiving. This fixes a potential security flaw. This
5430 change causes incompatibilities in the protocol.
5432 * Redefined also the MAC computation from the packet.
5433 An packet sequence number is now added to the MAC
5434 computation. This prevents possible replay attacks against
5435 the protocol. This change too causes incompatibilities
5438 Added `sequence' field to the SilcPacketContext to hold
5439 the current sequence number for the packet.
5441 Wed Sep 26 20:15:22 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5443 * Added `created' field to the SilcIDListData in the file
5444 silcd/idlist.h to indicate the time when the entry was
5447 * Added `created' field to the SilcChannelEntry too. Affected
5448 file silcd/idlist.h.
5450 * Added `creation_time' aguments to all the announcement functions
5451 in the server. If it is provided then only the entries that
5452 was created after the provided time frame are actually
5453 announced. Affected file silcd/server.[ch].
5455 * The protocol says that the Channel ID's IP address must be
5456 based on the router's IP address. Added check for this in
5457 the silc_server_new_channel when processing incoming New Channel
5458 Payload. Affected file silcd/packet_receive.c.
5460 * Print out the correct version with --version in SILC client.
5461 Affected file irssi/src/silc/core/silc-core.c.
5463 Mon Sep 24 17:19:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5465 * Fixed WHOWAS command to check for completnes of the client
5466 entry always, not just when the command is coming from client.
5467 Affected file silcd/command.c.
5469 * Added new function silc_server_packet_queue_purge to purge the
5470 outgoing data queue to the network. After the function returns
5471 it is guaranteed that the outgoing packet queue is empty.
5472 Affected file silcd/packet_send.[ch].
5474 * Purge the outgoing packet queue in the rekey protocol's final
5475 callback to assure that all rekey packets go to the network
5476 before quitting the protocol. Affected file silcd/server.c.
5478 * Added silc_client_packet_queue_parse as similar function as
5479 in server to the client library. The affected file is
5480 lib/silcclient/client.c.
5482 Sun Sep 23 15:15:53 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5484 * Splitted silcd/server.c and created silcd/server_util.[ch]
5485 for utility functions.
5487 * Added new socket flag SILC_SF_DISABLED to indicate that the
5488 connection is open but nothing can be sent to or received from
5489 the connection. Affected file lib/silcutil/silsockconn.[ch].
5490 The checking for disabled socket is checked in the low level
5491 silc_socket_write and silc_socket_read functions.
5493 Thu Sep 20 23:11:28 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5495 * Allow only nicknames and channel names that fits into the
5496 7-bit unsigned char ASCII set. Affected file silcd/command.c.
5498 Thu Sep 20 18:04:12 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5500 * When processing JOIN command reply in server check that if
5501 the channel exists in our global list we'll move it the local
5502 list. Affected file silcd/command_reply.c.
5504 * Fixed the check whether client is joined on the channel already
5505 in JOIN command. Affected file lib/silcclient/command.c.
5507 * Fixed the JOIN command reply to check whether the channel
5508 already exists. Affected file lib/silcclient/command_reply.c.
5510 Wed Sep 19 22:58:32 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5512 * Added silc_ske_status_string to map the SKE error numbers
5513 to readable strings. The affected files are
5514 lib/silcske/silcske[_status].[ch].
5516 Tue Sep 18 22:50:41 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5518 * Do not show the private channels on the WHOIS channel list
5519 as it is not allowed by the protocol. The affected file is
5522 Sun Sep 16 12:32:58 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5524 * Assure that the packet length digged from the actual packet
5525 is something sensible in the silc_packet_decrypt_rest_special
5526 in lib/silccrypt/silcpacket.c.
5528 * Free and NULL the allocated pointer in silc_hmac_alloc if
5529 the HMAC allocation fails. The affected file is
5530 lib/silccrypt/silchmac.c.
5532 * Print the selected security properties to the log files in
5533 the server. Affected file silcd/protocol.c.
5535 * Add SKE's reference counter even if calling the completion
5536 callback manually. Otherwise it goes negative, although it
5537 does not cause any problems. The affected file is
5538 lib/silcske/silcske.c.
5540 * Remove the client entry with short timeout after giving the
5541 KILL command. Affected file lib/silcclient/command.c.
5543 * Fixed to send error reply in WHOIS and IDENTIFY commands in
5544 case all found clients are already disconnected (WHOWAS would
5545 found them) in the server. Affected file silcd/command.c.
5547 * Update the last_receive (time of last data received) to be
5548 updated only when received private or channel message so that
5549 the idle time showed in WHOIS makes more sense.
5551 * Added boolean field `valid' in to the SilcClientEntry in the
5552 client library to indicate whether the entry is valid or not.
5553 This fixes the nickname change bug on channel when changing
5554 the nickname to be same than the old (like nick to Nick) the
5555 nickname formatter doesn't set the new nick anymore to Nick@host.
5556 Affected file lib/silcclient/idlist.[ch].
5558 * Now actually fixed the nickname changing on disconnection.
5559 Added new function silc_change_nick to the Irssi SILC Client.
5560 Affected file irssi/src/silc/core/client_ops.c,
5561 irssi/src/silc/core/silc-nicklist.[ch].
5563 Sat Sep 15 13:29:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5565 * Check that the public key exists in the GETKEY command before
5566 trying to encode it. Affected file silcd/command.c.
5568 * Print some notifications on received public keys with GETKEY
5569 command in the Irssi SILC Client. Affected files are
5570 irssi/src/fe-common/silc/module-formats.[ch],
5571 irssi/src/silc/core/client_ops.c.
5573 * Use IDENTIFY command to resolve the server information in the
5574 GETKEY command instead of INFO command. Affected file
5575 lib/silcclient/command.c.
5577 * All command reply functions in the client library now calls
5578 the pending command reply callbacks even if an error has
5579 occurred. The server has done this a long time and now it was
5580 time to move the client library to this as well. Now all
5581 errors can be delivered back to the pending command reply
5582 callbacks if necessary. Affected files are
5583 lib/silcclient/command[_reply].[ch].
5585 * Change the nickname on disconnection back to the username
5586 because in reconnect the server will enforce it to it anyway.
5587 Affected file irssi/src/silc/core/silc-servers.c.
5589 * Fixed a config file parsing bug in the Irssi SILC client.
5590 Affected file irssi/src/silc/core/clientconfig.c.
5592 Thu Sep 13 23:11:18 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5594 * When printing the channel mode on JOIN, verify that the
5595 channel key and channel's HMAC are valid. Affected file
5596 irssi/src/silc/core/client_ops.c.
5598 Thu Sep 13 20:24:52 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5600 * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
5601 SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
5602 lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
5604 * Removed channel key rekey task deleting from the function
5605 silc_server_save_channel_key. Affected file silcd/server.c.
5606 Added explicit timeout task context instead that is used to
5607 delete the task if we are registering a new task before the
5608 new task has elapsed.
5610 * When channel key rekey occurs the client library now saves
5611 the old channel key for a short period of time (10 seconds) and
5612 is able to use it in case some is still sending channel
5613 messages encrypted with the old key after the rekey. Affected
5614 file lib/silcclient/[idlist.h|client_channel.c].
5616 Sun Sep 9 15:49:16 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5618 * Added check to the silc_server_new_id_real to not accept
5619 new ID if it is the sender's own ID. Affected file is
5620 silcd/packet_receive.c.
5622 * Assure that we do not announce ourself or the one we've
5623 sending our announcements when we're router and are announcing
5624 servers to our primary router. Affected file silcd/server.c.
5626 * Fixed silc_server_command_identify_check_client to assemble
5627 correct WHOIS packet. It send corrupted WHOIS packet and
5628 caused problem with router to router connections. Affected
5629 file silcd/command.c.
5631 Fixed also silc_server_command_whois_check the same way
5632 as for the IDENTIFY command.
5634 * Added new SilcIDListStatus to the server in the SilcIDListData
5635 structure. The status now includes the current status of
5636 the entry (like registered, resolved etc.). Affected file
5637 silcd/idlist.[ch]. Defined a bunch of different status types
5638 as well. This replaced the old boolean registered field as well.
5640 Added resolve_cmd_ident field to the SilcClientEntry structure
5641 too so that if the entry is for example being resolved so
5642 another command may attach to the same pending command reply
5643 without requiring to resolve the same entry again. This concept
5644 should optimize the WHOIS and the IDENTIFY resolving under
5645 heavy load by taking away unnecessary resolving for entries
5646 that are being resolved already.
5648 Added support for adding multiple pending commands for one
5649 command idenfier. Affected file silcd/command[_reply].[ch].
5651 * Fixed WHOIS and IDENTIFY save to remove the cache entry
5652 before deleting the data. Otherwise the hash table will have
5653 freed data in comparison functions. Affected file is
5654 silcd/command_reply.c.
5656 * Fixed silc_idlist_replace_client_id to add the new entry to
5657 the cache with NULL nickname. Otherwise there will be invalid
5658 memory as the nickname after the nickname is freed. Affected
5659 file silcd/packet_receive.c.
5661 * Fixed the silc_idlist_get_clients_by_hash. The entries was
5662 saved into wrong slots because the previous number of entries
5663 was not taken into account. Affected file silcd/idlist.c.
5664 Fixed same thing in silc_idlist_get_clients_by_nickname too.
5666 * If we are router and we receive JOIN notify to a channel that
5667 does not have any users then notified client is marked as the
5668 channel founder, as it is it. The affected file is
5669 silcd/packet_receive.c
5671 * Added to the extended hash table API's table_del_*ext functions
5672 the destructor as argument too, so that the caller can decide
5673 which destructor to use or whether to use destructor at all.
5674 Affected file lib/silcutil/silchashtable.[ch].
5676 * Fixed ID Cache purging. It actually deleted the entries from
5677 the hash table after the data was freed. The hash table ended
5678 up comparing freed memory. The affected file is
5679 lib/silccore/silcidcache.c.
5681 Sat Sep 8 10:22:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5683 * Fixed Irssi SILC client's KILL command's HELP syntax.
5685 * The USERS command now resolves the detailed user information
5686 if the userinfo field is missing. Affected file is
5687 lib/silcclient/command_reply.c.
5689 * Do not print error in silc_file_read if the read file does
5690 not exist. Just silently return NULL. Affected file is
5691 lib/silcutil/silcutil.c.
5693 * Fixed the silc_log_output to not wine about NULL filename
5694 and to not create some bogus " " filename. Affected file is
5695 lib/silcutil/silclog.c.
5697 Fri Sep 7 22:16:38 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5699 * Fixed various printing bugs on the user interface in the
5700 Irssi SILC Client. Minor changes that were forgotten from
5703 Fri Sep 7 17:28:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5705 * Fixed the configure.in.pre and the compilation and distribution
5706 environment to support the new autoconf 2.52. That version is
5707 now required to compile the CVS trunk.
5709 Thu Sep 6 12:47:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5711 * Renamed function silc_parse_nickname to silc_parse_userfqdn
5712 to generally parse user@fqdn format strings. Affected file
5713 lib/silcutil/silcutil.c.
5715 * Added nickname_format and nickname_force_format fields to the
5716 SilcClientParams structure. The first one defines the format
5717 for the nicknames that the library will enforce if the receives
5718 multiple same nicknames. The second one is boolean value and
5719 can be used to force the library to always enforce the format
5720 to the nicknames regardles whether there are multiple nicknames
5721 or not. This configurable formatting was employed to flexibly
5722 support accessing multiple nicknames from the user interface.
5723 The userinterface can now set the nicknames to what ever format
5724 they prefer. Affected file lib/silcclient/silcapi.h.
5726 Added function silc_client_nickname_format to the file
5727 lib/silcclient/idlist.c. It performs the nickname formatting.
5729 Added new field `hostname´ to the SilcClientEntry context.
5730 It holds the hostname of the client. Affected file is
5731 lib/silcclient/idlist.h.
5733 * Irssi SILC Client sets the nicknames in nick@hostn format.
5734 Fe. priikone@otaku, priikone@otaku2 etc. Affected file
5735 irssi/src/silc/core/silc-core.c.
5737 The WHOIS printing now also shows both the real nickname and
5738 the formatted nickname so that user knows how to access the
5739 user if there are multiple same nicknames cached. Affected
5740 file irssi/src/silc/core/client_ops.c. Changed the WHOIS
5741 printing formatting too to take the hostname now as a separate
5742 argument. The Affected file is
5743 irssi/src/fe-common/silc/modules-formats.[ch].
5745 * Changed the silc_client_get_clients_local to accept the formatted
5746 nickname as argument. It accepts the real nickname too but the
5747 formatted nickname can be used to find the true entry from
5748 multiple entries. Affected file lib/silcclient/silcapi.h and
5749 lib/silcclient/idlist.c.
5751 * Added nickname_format_parse field to the SilcClientParams.
5752 It is a callback function provided by the application to parse
5753 the nickname out of the formatted nickname string. The library
5754 calls it to get the nickname from the formatted string. Since
5755 the application generally knows better the format of the nickname
5756 string it parses it instead of the library, even though library
5757 encodes the formatted string. If the callback function is not
5758 provided then the library will use the string as is. The
5759 affected file is lib/silcclient/silcapi.h.
5761 * All the nickname strings passed to the client library in
5762 commands are now expected to be formatted nickname strings.
5763 If the command does not support the formatted nickname string
5764 it will assume that the sent string is the actual nickname.
5765 Affected file lib/silcclient/command.c.
5767 Tue Sep 4 22:31:28 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5769 * Added public key authentication support to OPER and SILCOPER
5770 commands in the client library. Affected file is
5771 lib/silcclient/command.c.
5773 Tue Sep 4 12:39:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5775 * Changed the get_auth_methdod client operation to be asynchronous.
5776 It can be async if the application resolves the authentication
5777 method from the server during the negotiation. Added new
5778 SilcGetAuthMeth completion callback that the application will
5779 call after resolving the authentication method.
5781 Added function silc_client_request_authentication_method that
5782 the application can use to resolve the authentication method
5783 from the server. Added also SilcConnectionAuthRequest callback
5784 that the library will call after the server has replied. The
5785 application can call this function if it does not know the
5786 current authentication method.
5788 Affected files are lib/silcclient/client.c and
5789 lib/silcclient/silcapi.h.
5791 * The Irssi SILC client now automatically resolves the authentication
5792 method incase any configuration information is not present (and
5793 currently there never is). The affected file is
5794 irssi/src/silc/core/client_ops.c.
5796 * Fixed public key authentication from the client library.
5797 Affected file lib/silcclient/protocol.c. Changed also the
5798 protocol specification about the public key authentication in
5799 the connection authentication protocol. The actual data to be
5800 signed is now computed with a hash function before signing.
5802 * Fixed the public key authentication from the server as well.
5803 Affected file silcd/protocol.c.
5805 * Removed the mlock()'s from the memory allocation routines.
5806 Affected file lib/silcutil/silcmemory.c. The ./configure does
5807 not check anymore for the mlock(). Affected file is
5810 * Fixed USERS command in server to allow the execution of the
5811 command for private and secret channels if the client sending
5812 the command is on the channel. Affected file silcd/command.c.
5814 * Fixed silc_client_get_clients_local to return the clients
5815 count correctly. It could return wrong value. Affected file
5816 lib/silcclient/idlist.c.
5818 Mon Sep 3 20:09:59 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5820 * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
5821 types. The assembler optimizations seemed not to like 64-bit
5822 data types. The assmebler optimizations thus are now enabled
5823 also for BSD systems as opposed to only enable them for Linux.
5825 * Do not check for threads at all on BSD systems. Affected
5826 file configure.in.pre.
5828 * Removed -n and -h options from the Irssi SILC Client since
5829 they are not used in silc.
5831 * Fixed the prime generation to assure that the first digit
5832 of the generated random number is not zero since our conversion
5833 routines does not like number strings that starts with zero
5834 digit. If zero digit is seen the random number is regenerated.
5835 This caused some corrupted RSA keys when the zero first digit
5836 was met. Affected file lib/silcmath/silcprimegen.c.
5838 Sun Sep 2 17:17:24 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5840 * Fixed WIN32 configuration in the ./configure script.
5841 Fixed to include xti.h on environments that has it.
5842 Patches by Carsten Ilchmann and andrew.
5844 Sat Sep 1 00:29:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5846 * Changed the silc_id_create_client_id to be collision
5847 resistant. It is now assured that there cannot be created
5848 two same client ID's. I suspect that some weird bugs in
5849 the server were actually caused by duplicate Client IDs.
5850 Affected file silcd/serverid.[ch]. A router receiving
5851 new ID now also assures and informs the sending server
5852 if the ID caused collision.
5854 * Changed the silc_id_create_channel_id to also assure that
5855 there are no collisions.
5857 Wed Aug 29 17:55:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5859 * Statement about ignoring the Mutual Authentication flag when
5860 performing rekey with PFS was a bit misleading. It is ignored
5861 if it was set in the initial negotiation, it cannot be even
5862 set in the rekey. Fixed in the ke-auth draft. Started the
5863 new versions of the protocol drafts in the doc/.
5865 Sun Aug 26 14:59:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5867 * Fixed a bug in silc_client_command_identify_save when saving
5868 new channel information. The channel name was no duplicated
5869 and caused crash on exit. Affected file is
5870 lib/silcclient/command_reply.c.
5872 Fri Aug 17 23:07:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5874 * Fixed the getkey command handling in the server. Send just
5875 empty OK reply to the sender if the key could not be fetched
5876 (but everything else was ok, like the key just was not available).
5877 Changed the public key parameter to optional in the protocol
5878 specs so that empty OK reply can be sent. Affected file
5881 Added a message to Irssi SILC client to tell to user if the
5882 server did not return a public key.
5884 Tue Aug 14 07:29:27 CEST 2001 Pekka Riikonen <priikone@silcnet.org>
5886 * Fixed a channel key regeneration bug. It registered new
5887 timeout tasks exponentially until all system resources were
5888 used. Affected file silcd/server.c.
5890 Sun Aug 12 20:48:14 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5892 * Added the SILC Document generator to the scripts/silcdoc.
5893 It can be used to generate the Toolkit Reference Manual out
5894 of the source tree. Internally it will also use the RoboDoc
5895 generator now imported in util/robodoc.
5897 Sun Aug 12 12:28:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5899 * Added couple of return's in rekey protocol if error orccurred
5900 during the protocol. The execution must be terminated.
5901 Affected file silcd/protocol.c. Also, terminate the protocol
5902 always with timeout.
5904 Sat Aug 11 12:36:02 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5906 * The client's Client ID was created initally from the wrong
5907 nickname (it could have been in format nick@host) in the
5908 silc_server_new_client. Affected file silcd/packet_receive.c
5910 Sat Aug 11 00:29:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5912 * Added some SILC_LOG_ERROR's to various error conditions
5913 if client could not be added to ID cache. Affected files
5914 silcd/packet_receive.c and silcd/server.c.
5916 * When client's sock->user_data is freed, NULL also the
5917 client->router and client->connection pointers. Added check
5918 for these pointers being NULL to various places around the
5919 code. Affected file silcd/server.c.
5921 * Added client->data.registered == TRUE checks to various
5922 places around the code to assure that unregistered client's
5923 are not handled when it is not allowed. Affected file
5926 * Added `bool registered' fields to all
5927 silc_idlist_[server|client]_get_* routines to indicate whether
5928 the fetched client needs to be registered or not. Affected
5929 file silcd/idlist.[ch].
5931 * Add your own entry as registered to the ID cache in the
5932 server. Affected file server.c.
5934 * Fixed a bug in silc_server_new_server. The SilcServer was
5935 set as the new server's context instead of SilcServerEntry.
5936 This naturally caused some weird bugs.
5938 * Added "updated" field the SilcChannelEntry which indicates
5939 the time since the channel entry was last accessed. This
5940 can be used to determine whether it is necessary to
5941 announce the channel after backup resuming protocol.
5942 Affected files silcd/idlist.[ch].
5944 Thu Aug 9 18:28:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5946 * Do not delete the channel rekey task when adding it
5947 for in silc_server_create_channel_key.
5949 * Changed the silc_server_create_channel_key to return
5950 TRUE or FALSE to indicate the success of the channel key
5953 Thu Jul 26 11:32:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5955 * Fixed MSVC++ project files and added missing files to
5956 Makefiles under win32/.
5958 Wed Jul 25 18:43:54 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5960 * Do not add TCP_NODELAY flag if the operating system
5961 does not have it defined. Affected files are
5962 lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
5964 * Fixed buffer overflow from Irssi SILC Client. Affected
5965 file irssi/src/fe-common/core/themes.c.
5967 * Fixed double free in client library in the file
5968 lib/silcclient/client.c when disconnecting from server.
5970 * Applied double free patch from cras to Irssi SILC client.
5971 Affected files irssi/src/core/[modules/expandos].c
5973 * Fixed the disconnection handling to Irssi SILC Client.
5974 The application must call silc_client_close_connection
5975 in ops->connect client operation in case of failure of
5976 the connection. Affected file is
5977 irssi/src/silc/core/client_ops.c.
5979 * Do not set sock->protocol to NULL in the function
5980 silc_client_close_connection after executing the protocol's
5981 final callback since the sock might not be valid anymore.
5982 Affected file lib/silcclient/client.c.
5984 Wed Jul 25 16:04:35 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5986 * Do not enable SILC_THREADS if the linking with libpthread
5987 did not happen. Affected file configure.in.pre.
5989 * Added notion to protocol specification that server must
5990 verify the sent authentication payload with CMODE when
5991 setting the channel founder key. Implemented it to the
5992 server. Affected file silcd/command.c.
5994 Mon Jul 23 18:31:43 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
5996 * Added _EXTRA_DIST SILC distribution variable to the
5997 distributions file. It is used to conditionally add extra
5998 files or directories to the specific distribution. Affected
5999 files ./prepare, Makefile.am.pre and distributions.
6001 Removed the `_' from the start of the distribution names.
6004 * Added README.WIN32 for instructions to compile the Toolkit
6007 Mon Jul 23 10:12:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6009 * Fixed a double free in disconnection in the server. Affected
6010 file is silcd/server.c.
6012 * Fixed the lib/silcske/groups.c to work now also with GMP
6013 MP library. The string conversion did not work when using
6014 specific base and the base is indicated in the string as well.
6016 * Created win32/ directory which now includes MSVC++ specific
6017 stuff so that toolkit (DLLs) may be compiled with MSVC++.
6018 It will appear only in the toolkit distribution
6020 Sun Jul 22 19:40:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6022 * Changed the key material distribution function in case when
6023 the hash output is too short. The data is now concatenated
6024 a bit differently than it used to. Made the change to the
6025 SKE protocol specification.
6027 * Added better GMP detection to configure.in.pre. A patch
6030 Fri Jul 20 13:16:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6032 * Fixed a minor bug in SKE that might cause some problem on
6033 some platforms. Affected file lib/silcske/silcske.c.
6035 * Added the cookie checking for initiator in the SKE. It checks
6036 that the responder returns the sent cookie unmodified. The
6037 affected file is lib/silcske/silcske.c. Added new SKE
6038 error type INVALID_COOKIE that can be sent during the
6039 negotiation. Fixed some memory leaks as well.
6041 * Added the "invalid cookie" error message to Irssi SILC client's
6044 Thu Jul 19 21:44:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6046 * Added `task_max' field to the SilcClientParams to indicate
6047 the maximum tasks the scheduler can handle. If set to zero,
6048 default values are used. Affected file lib/silcclient/silcapi.h.
6050 * Fixed memory leaks in silc_client_close_connection. Affected
6051 file lib/silcclient/client.c.
6053 * Added silc_client_del_client_entry to client library to free
6054 all memory of given client entry. Affected file is
6055 lib/silcclient/idlist.[ch].
6057 * Added new functions silc_client_del_channel and
6058 silc_client_del_server to delete channel and server entries.
6059 Affected file lib/silcclient/[silcapi.h/idlist.c].
6061 * Removed silc_client_del_client_by_id from silcapi.h.
6063 * Fixed the INFO command to return the server's own info
6064 correctly when querying by Server ID. Affected file is
6067 Thu Jul 19 14:47:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6069 * Removed the non-blocking settings in WIN32 code in the
6070 silc_sock_[read/write] and added SleepEx instead. Affected
6071 file lib/silcutil/win32/silcwin32sockconn.c. The availability
6072 of input data is now checked with FIONREAD and ioctlsocket.
6074 Wed Jul 18 18:34:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6076 * Call silc_schedule_task_del_by_context in the
6077 silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
6078 Affected file lib/silccore/silcprotocol.c.
6080 * Call silc_protocol_cancel for active protocols in the
6081 silc_server_close_connection if the funtion
6082 silc_server_free_sock_user_data has not been called.
6083 Affected file silcd/server.c.
6085 * Generic tasks cannot be deleted using the del_by_fd
6086 task deleting function since generic tasks does not match
6087 any specific fd. Affected file lib/silcutil/silcschedule.[ch].
6089 * Added a notion to SILCOPER help file that the SILCOPER works
6090 only on router server, not on normal server.
6092 Wed Jul 18 09:40:04 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6094 * Added for WIN32 support for the new scheduler as well.
6095 Affected file lib/silcutil/win32/silcwin32schedule.c.
6097 * Fixed the SHA1 implementation to work on various platforms.
6099 Tue Jul 17 23:04:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6101 * Rewrote the SILC Scheduler entirely. Removed the old SILC Task
6102 API. It is part of the scheduler now. Everything else is
6103 as previously but some functions has changed their names.
6104 Checkout the lib/silcutil/silcschedule.h for the interface.
6105 Updated all applications to use the new interface. Affected
6106 files are lib/silcutil/silcschedule.[ch].
6108 Tue Jul 17 16:53:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6110 * Found a bug in the SKE implementation. The HASH value,
6111 specified by the protocol, was not computed correctly. The
6112 public key of the responder was not added to the computation
6113 even though it is mandatory. Affected file lib/silcske/silcske.c.
6114 This unfortunately causes incompatibilities with older
6115 clients and servers.
6117 * Added WIN32 specific network init and uninit functions:
6118 silc_net_win32_init and silc_net_win32_uninit to init and uninit
6119 the Winsock2. Affected file lib/silcutil/silcnet.h and
6120 lib/silcutil/win32/silcwin32net.c.
6122 * Set the socket always to nonblocking mode on WIN32 after
6123 reading data or writing data. Affected file is
6124 lib/silcutil/win32/silcwin32sockconn.c.
6126 Mon Jul 16 22:55:26 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6128 * Fixed various compilation problems under WIN32. Affected
6129 files lib/silcutil/win32/silcwin32thread.c and
6130 lib/silcutil/win32/silcwin32schedule.c.
6132 * Removed all _internal.h #includes from public header
6133 files. Internal headers must never be included from
6136 Removed also the lib/silcske/payload_internal.h file.
6138 * All include files that may be needed (public and some others
6139 included by the public headers) by application developers are
6140 now copied to the ./includes directory. It does not copy any
6141 internal headers. Affected file Makefile.defines.pre and all
6142 Makefile.am's under lib/ and subdirs.
6144 Thu Jul 12 17:49:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6146 * Do not change the ~/.silc directory's permissions automatically.
6147 Affected file irssi/src/silc/core/clientutil.c.
6149 Thu Jul 12 10:18:40 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6151 * Do not cancel the protocol in silc_server_close_connection
6152 it might cause recursion. Now cancelled in the function
6153 silc_server_free_sock_user_data. Affected file silcd/server.c.
6155 * Fixed the silc_server_remove_clients_by_server to regenerate
6156 the channel keys correctly finally. Added also new function
6157 silc_server_remove_clients_channels to actually do it.
6158 Affected file silcd/server.c.
6160 * Fixed the silc_server_new_channel to not crash by giving
6161 wrong router to the new channel. Affected file is
6162 silcd/packet_receive.c.
6164 Wed Jul 11 18:31:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6166 * Added SilcClientParams structure to the lib/silcclient/silcapi.h
6167 which is given as argument to the silc_client_alloc now.
6168 It can be used to configure the client and set various parameters
6169 that affect the function of the client.
6171 * The USERS command in server did not check whether the channel
6172 is private or secret. Affected file silcd/command.c.
6174 * Added new argument to the USERS command in protocol specification.
6175 The USERS command now can take the channel name as argument
6176 as well. Added support for this in client and server and
6177 updated the protocol specs.
6179 * Completed the GETKEY command in client. It can be now used
6180 to fetch also servers public key not only some clients.
6181 Affected files lib/silcclient/command[_reply].c.
6183 * Added silc_client_get_server to return server entry by the
6184 server name. Affected files lib/silcclient/silcapi.h and
6187 * Redefined the IDENTIFY command in protocol specification to be
6188 more generic. It now can be used to query information about
6189 any entity in the SILC Network, including clients, servers and
6190 channels. The query may be based either the entity's name
6191 or the ID. Added support for this in both client and server.
6193 Affected files silcd/command.c and lib/silcclient/command.c
6194 and command_reply.c.
6196 * Optimized the WHOIS and WHOWAS commands in the server. Removed
6197 the _from_client and _from_server functions. Affected file
6200 * Added silc_client_get_channel_by_id_resolve to the file
6201 lib/silcclient/silcapi.h to resolve channel information by
6202 its ID. Added also silc_client_get_channel_by_id that
6203 does not resolve it from the server.
6205 Tue Jul 10 18:05:38 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6207 * Added SilcServerEntry context into the client library
6208 to represent one server. The INFO command now allocates
6209 these to save the resolved server info. For now on the
6210 client library will also keep information about servers,
6211 connected and resolved with INFO.
6213 The INFO command now allocates the SilcServerEntry context
6214 and saves the server info there. The COMMAND_REPLY in
6215 the INFO now returns the parameters to application in
6216 same order as defined in the protocol specification.
6218 The entries are cached in the client->server_cache.
6220 * The INFO command is now issued after received the Client ID
6221 from the server. Affected file lib/silcclient/client.c.
6223 * The CMODE_CHANGE notify may now return also an SilcServerEntry
6224 to the application as the mode changer might be server.
6225 It is guaranteed that NULL is not returned anymore to the
6226 application. Affected file lib/silcclient/client_notify.c.
6228 The ID Type is now also passed to the application so that
6229 it can check whether the returned entry is SilcClientEntry
6232 Added new function silc_client_get_server_by_id to return
6233 the server entry by ID. Affected files are the
6234 lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
6236 * Do not create the channel in the Irssi SILC Client when issuing
6237 the JOIN command but when received the sucessful JOIN command
6238 reply. Otherwise the channel might get created even though we
6239 could not join it. The Affected file is
6240 irssi/src/silc/core/[silc-channels.c/client_ops.c].
6242 * Fixed a channel joining bug in router. The router must also
6243 check the channel modes, invite and ban lists etc. when serving
6244 the JOIN command sent by normal server. Affected file is
6245 silcd/command.c. The router now resolves the client's
6246 information from the server who sent the JOIN command if it
6247 does not know it, and processes the JOIN command only after
6250 * Changed the SilcCommandCb to take new argument; void *context2.
6251 Affected file lib/silccore/silccommand.h
6253 The second argument in the command callbacks in the server now
6254 includes the SilcServerCommandReplyContext if the command was
6255 called as pending command callback from the command reply.
6256 Otherwise it is NULL. When called as pending the status of the
6257 command reply will be checked and if it was erronous the
6258 error will be sent to the original sender of the command.
6259 This way the client always receives the error messages even
6260 though the server was actually the one who received the error
6261 when it resent the command to router, for example. Affected
6262 files silcd/command[_reply].[ch].
6264 * Fixed sending WHOWAS command's error message to client if
6265 the requested client could not be found. It was missing.
6268 * Changed the CMODE and CUMODE commands reply arguments in the
6269 protocol specification. The Channel ID is now sent in both
6270 of the commands to identify the channel. Implemented this
6271 new feature to the client and server. Affected files
6272 lib/silcclient/command_reply.c and silcd/command.c.
6274 * Made better checks for invite and ban lists in the JOIN
6275 command in server. Affected file silcd/command.c.
6277 Mon Jul 9 18:28:34 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6279 * The server now performs the incoming host IP/DNS lookup
6280 using the silc_socket_host_lookup and thus does not block
6281 the server anymore. Affected file silcd/server.c.
6283 * Completed the multi-thread support for SILC Scheduler in
6284 the lib/silcutil/silcschedule.c.
6286 * Fixed the configure.in.pre to detect the pthread correctly
6289 * Fixed a deadlock in silc_task_queue_wakeup in the file
6290 lib/silcutil/silctask.c.
6292 Mon Jul 9 13:40:03 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6294 * Added new function silc_schedule_wakeup that is used in
6295 multi-threaded environment to wakeup the main thread's
6296 schduler. It needs to be used when a thread adds a new task
6297 or removes a task from task queues. After waking up, the
6298 scheduler will detect the task queue changes. If threads
6299 support is not compiled in this function has no effect.
6300 Implemented the wakeup mechanism to both Unix and WIN32
6301 systems. Affected files are lib/silcutil/silcschedule.[ch],
6302 lib/silcutil/unix/silcunixschedule.c and the
6303 lib/silcutil/win32/silcwin32schedule.c.
6305 * Added new function silc_task_queue_wakeup to wakeup the
6306 scheduler by the specified task queue. Affected file
6307 lib/silcutil/silctask.[ch].
6309 * The silc_socket_host_lookup_start now wakes up the scheduler
6310 after adding the timeout task. Affected file is
6311 lib/silcutil/silcsockconn.c.
6313 * The silc_socket_host_lookup is synchronous now if the threads
6314 support is not compiled in. However, the callback is still
6315 called asyncronously through the scheduler, anyway. Affected
6316 file lib/silcutil/silcsockconn.c.
6318 Mon Jul 9 00:24:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6320 * Added new function silc_socket_host_lookup to perform
6321 asynchronous IP and FQDN lookups for the socket connection.
6322 Affected files lib/silcutil/silcsockconn.[ch].
6324 Sun Jul 8 18:44:53 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6326 * Added SILC_MUTEX_DEFINE to define the mutex on environments
6327 that may or may not compile the mutex support in.
6329 Changed the silc_mutex_alloc interface. It allocates the
6330 mutex now to the sent pointer and returns TRUE or FALSE.
6332 Affected file lib/silcutil/silcmutex.h.
6334 * Wrote the SILC Task Queue interface to support multi-threads.
6335 Affected file lib/silcutil/silctask.[ch].
6337 * Wrote the SILC Scheduler to support multi-threads. Affected
6338 file lib/silcutil/silcschedule.c.
6340 Sun Jul 8 11:16:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6342 * Implemented the SILC Mutex API and SILC Thread API for WIN32
6343 in lib/silcutil/win32/.
6345 Sun Jul 8 00:18:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6347 * Defined SILC Mutex API and SILC Thread API and implemented
6348 them for Unix. Affected files are
6349 lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
6350 lib/silcutil/unix/silcunixmutex.c and
6351 lib/silcutil/unix/silcunixthread.c.
6353 Sat Jul 7 14:40:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6355 * Fixed the silc_server_remove_clients_by_server's channel
6356 key re-generation. The hash table handling was incorrect
6357 and would not work with many channels. Affected file is
6360 * Fixed some memory leaks around the server code.
6362 * Rewrote the silc_server_get_users_on_channel to support IPv6
6363 based Client ID's. Affected file silcd/server.c.
6365 * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
6366 specification. However, a separate document must be written
6367 to define the detailed signing procedure and the payload
6368 associated with the flag. Defined the flag to the
6369 lib/silccore/silcchannel.h as well.
6371 Fri Jul 6 18:26:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6373 * Changed the dynamic tables to static size tables in the
6374 lib/silccrypt/silchmac.c.
6376 * Removed GCC dependencies from the code. A patch by cras.
6378 Fri Jul 6 09:39:35 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6380 * Do not show the error "Error receiving packet bla bla"
6381 in server if it really was not an error (-2 means that reading
6382 is pending). Affected file silcd/server.c.
6384 Thu Jul 5 21:22:32 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6386 * Fixed a possible crash in silc_server_remove_clients_by_server
6387 in silcd/server.c. Fixed there also some memory leaks.
6389 * Fixed the silc_idlist_replace_client_id. It could replace
6390 wrong key in the hash table. Affected file silcd/idlist.c.
6392 * Do not check whether there are global users on the channel
6393 if the channel->global_users is FALSE. Affected functions
6394 silc_server_remove_from_one_channel and
6395 silc_server_remove_from_channels in silcd/server.c. Also,
6396 do not check if the removed client is local as we can be
6397 sure that global client was not removed from the channel
6398 and checking for global users is not needed.
6400 * The silc_server_remove_clients_by_server now re-generates
6401 the channel keys correctly for those channels that had
6402 clients removed from them. Affected file silcd/server.c.
6404 Tue Jul 3 11:39:20 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6406 * Found the reason of random crashes in the server. We weren't
6407 ignoring the SIGPIPE signal (which can be sent in write())
6408 and it crashed the server. Affected file silcd/silcd.c.
6410 Fri Jun 29 20:05:25 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6412 * Assure that sock->user_data is not NULL in the function
6413 silc_server_packet_send in silcd/packet_send.c.
6415 * Disconnect the remote connection if it could not be added
6416 to any ID lists in the server. The affected file is
6419 * Check in silc_server_packet_send[_real/dest] that the
6420 socket is not disconnecting and ignore the data if it is.
6421 Affected file silcd/packet_send.c.
6423 * Define inline to __inline on native WIN32 compilation.
6424 Affected file includes/silcwin32.h.
6426 * Added some explicit type casts for inline code since MSVC
6427 require them. Affected files lib/silcutil/silcbuffer.h,
6428 lib/trq/silcdlist.h and lib/trq/silclist.h.
6430 * Print warning in log files from now on if the packet
6431 decryption fails. Affected file silcd/server.c.
6433 Thu Jun 28 21:30:39 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6435 * Changed the `say' client operation's interface to accept
6436 new `type' argument to indicate the type of the message sent
6437 by the library. The application may filter the library's
6438 messages according the type. The affected file is the
6439 lib/silcclient/silcapi.h.
6441 * Added two new functions to lib/silcclient/silcapi.h:
6442 silc_client_del_client and silc_client_del_client_by_id.
6443 Affected file lib/silcclient/idlist.c.
6445 * Moved the clientincludes.h from includes/ to silc/ and
6446 serverincludes.h from includes/ to silcd/.
6448 * The modes for the CMODE and CUMODE are now passed as
6449 uint32 for application with COMMAND_REPLY. The affected
6450 file is lib/silcclient/command_reply.c.
6452 Wed Jun 27 22:24:47 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6454 * /WHOIS without arguments shows client's own information.
6455 Affected file lib/silcclient/command.c.
6457 * Changed PING to not accept any arguments. The specs
6458 says that client can ping only the connected server so
6459 requiring an argument is not needed. Affected file is
6460 lib/silcclient/command.c.
6462 Wed Jun 27 00:10:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6464 * Fixed a fatal bug in private message sending and reception
6465 encryption and decryption when using private message keys.
6466 The implementation was incorrect and did not follow the
6467 specification. It causd that some of the message were
6468 lost since it did not use the sending and receiving keys
6469 as the protocol suggests. This has been fixed and will cause
6470 incompatibilities with older clients when sending private
6471 message encrypted with private message keys. Affected files
6472 lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
6473 and various other in Irssi SILC Client.
6475 Added `responder' boolean argument to the functions
6476 silc_client_add_private_message_key[_ske] to indicate when
6477 the key is added as responder or initiator of the key
6480 Tue Jun 26 19:23:07 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6482 * Removed the silc_ske_check_version function and created
6483 a SilcSKECheckVersion callback. Added also a function
6484 silc_ske_set_callbacks that is now used to set all SKE
6485 callbacks. The callback functions are not given to
6486 the SKE functions anymore, but this function is used to
6489 * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
6491 * Added `silc_version' argument to the silc_client_alloc
6492 to define the version of the application for the library.
6493 The library will use the version string to compare it
6494 against the remote host's (usually a server) version
6495 string. Affected file lib/silcclient/silcapi.h
6497 * Added the KE protocol context to Key Agreement context
6498 in client library so that we can abort the SKE if it
6499 is in process when we get timeout. Affected file is
6500 lib/silcclient/client_keyagr.c.
6502 * Do not resolve the client ID forever if it returns in the
6503 first time that such client does not exist. This was done
6504 for example with private message. Affected file is
6505 lib/silcclient/client_prvmsg.c.
6507 Mon Jun 25 21:42:51 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6509 * Do not add regex.h for WIN32. The affected file
6510 includes/silcincludes.h.
6512 * Added WIN32 DLL generation to lib/Makefile.am.pre. It might
6513 not work yet 100%. It generates the DLL's automatically
6514 when compiling with --with-win32 under cygwin.
6516 Sun Jun 24 19:49:23 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6518 * lib/contrib/regex.c is not compiled on WIN32.
6520 * Added silc_net_get_socket_opt function to the
6521 lib/silcutil/silcnet.h.
6523 * Added includes/silcwin32.h for WIN32 specific includes
6526 * Do not use ptime structure or any of the posix process
6527 functions on WIN32 in lib/silccrypt/silrng.c.
6529 * Added silc_gettimeofday to provide generic function
6530 for struct timeval on all platforms. Added the function
6531 to lib/silcutil/silcutil.h.
6533 Sun Jun 24 12:19:52 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6535 * Moved the lib/silccore/silcsockconn.[ch] to the utility
6536 library as they clearly belong there. As a plus side we
6537 can make the actual socket connection routines platform
6540 Added also new generic function silc_socket_read and
6541 silc_socket_write (that used to be silc_packet_[read/write].
6542 The implementation of these are platform specific.
6544 * Added WIN32 specific routines of silc_socket_[read/write]
6545 to lib/silcutil/win32/silcwin32sockconn.c.
6547 Sat Jun 23 16:01:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6549 * Added preliminary support for native WIN32 compilation under
6550 cygwin (using the -mno-cygwin option for GCC) to the
6551 ./configure.in.pre. The --with-win32 now prepares the
6552 compilation for native WIN32.
6554 * Rewrote the SILC Scheduler interface in the file
6555 lib/silcutil/silcschedule.h. The scheduler is now context
6556 based and does not have anymore any global static scheduler.
6557 Moved the Unix scheduler to the lib/silcutil/unix/ directory
6558 and created lib/silcutil/win32 directory for WIN32 based
6561 * Added Unix specific network routines to the
6562 lib/silcutil/unix/silcunixnet.c and the old
6563 lib/silcutil/silcnet.c includes now only generic routines.
6565 Added WIN32 specific network routines to the
6566 lib/silcutil/win32/silcwin32net.c.
6568 * Added Unix specific utility functions from the
6569 lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
6571 * Added WIN32 SILC Scheduler to the file
6572 lib/silcutil/win32/silcwin32schedule.c. The code is of course
6575 Fri Jun 22 10:44:14 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
6577 * Do not handle JOIN notify in the server if the target client
6578 is not registered (idata->registered == FALSE). The affected
6579 file is silcd/packet_receive.c.
6581 * Update the nickrec->founder in event_cumode in the Irssi SILC
6582 client. Affected file irssi/src/silc/core/silc-channels.c.
6584 * Fixed the CUMODE_CHANGE notify handling in the server when
6585 server and router are announcing their clients on channels.
6586 Now the mode changes are saved and notified correctly. The
6587 affected file is /silcd/packet_receive.c.
6589 * Fixed silc_idlit_replace_[server/client/channel]_id functions.
6590 They really did not replace the cache entry in the ID Cache.
6591 Now they do that. Affected file silcd/idlist.c.
6593 * Fixed the KICK notify handling in the Irssi SILC client to
6594 update the channel records so that the kicked client does not
6595 appear to be on the channel. The affected file is
6596 irssi/src/silc/core/silc-channels.c.
6598 * Always update the conn->current_channel when executing command
6599 on a channel. Affected file irssi/src/silc/core/silc-servers.c.
6601 * Fixed the KILL notify handling in Irssi SILC client to remove
6602 the killed client on all channels.
6604 Thu Jun 21 17:10:08 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6606 * Fixed the silc_parse_command_line to remove extra spaces
6607 from the start and end of the arguments. Affected file is
6608 lib/silcutil/silcutil.c.
6610 * Cancel and free any active protocol in the function
6611 silc_server_close_connection. Affected file silcd/server.c.
6613 * Cancel and free any active protocol in the function
6614 silc_client_close_connction. Affected file is
6615 lib/silcclient/client.c.
6617 * Do not execute the KILL command for clients that are in
6618 history (ie. they are not in the network). Affected file is
6621 * Fixed KILL notify handling, client does not crash anymore.
6622 Affected file irssi/src/silc/core/silc-channels.c.
6624 * Reduced the default packet buffer size from 2048 to 1024 in
6625 lib/silccore/silcpacket.c.
6627 * Added SILC_SKE_STATUS_FREED SKE status type and a reference
6628 counter to the SKE context that is incresed when the SKE library
6629 performs async operation outside the library. If the outside
6630 process frees the SKE context and FREED status will be set
6631 and the library will detect after the sync operation that the
6632 libary is freed. The affected files are
6633 lib/silcske/silcske[_status].[ch].
6635 * Resolve the client entry information in the function
6636 silc_client_channel_message to assure that NULL pointer is not
6637 passed as client entry to the application. */
6639 * Fixed the task timeout calculation to assure that there is
6640 never negative timeouts. The affected file is
6641 lib/silcutil/silcschedule.c.
6643 * Fixed the channel user mode notification sending in server.
6644 It was sent point-to-point to the router (or to server by router)
6645 but it needs to be destined to a channel. The routines now
6646 supports sending the channel user mode notifys to the channels
6647 when announcing clients and channels. Affected files are
6648 silcd/server.c and silcd/packet_receive.c.
6650 * Fixed the CHANNEL_CHANGE notify handling in the client libary.
6651 It did not actually replace the old channel entry in the cache.
6652 Affected file lib/silcclient/client_notify.c.
6654 Tue Jun 19 22:10:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6656 * Fixed a possible crash in silc_packet_send_prepare. It now
6657 assures always that there is enough space in the buffer and
6658 at the tail area of the buffer (for MAC).
6660 Fixed the inbound buffer reallocation in silc_packet_read.
6661 It was old code and did not handle the reallocation correctly.
6664 The affected file is lib/silccore/silcpacket.c.
6666 * Fixed buffer overflow in silc_parse_nickname in the file
6667 lib/silcutil/silcutil.c.
6669 Tue Jun 19 13:40:09 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6671 * make install generates new server keys only if there is not
6674 Mon Jun 18 18:49:07 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6676 * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
6677 Added check that if the NOREPLY is set then we will not send
6678 the away message. This avoids infinite loop of away messages
6679 if both clients are away. The affected file is
6680 lib/silcclient/client_prvmsg.c.
6682 * Fixed client crash if /NICK was given without arguments.
6683 Affected file lib/silcclient/command.c.
6685 * Server does not send the invite list in INVITE command back
6686 to the client if the list was not altered. Added this notion
6687 to the protocol spec as well. Affected file silcd/command.c.
6689 Fixed possible crash in INVITE command by checking the
6690 value of silc_server_get_client_route command.
6692 * Fixed the INVITE notify type handling. The arguments are now
6693 taken in correct order and client does not crash. The affected
6694 file is irssi/src/silc/core/silc-channels.c.
6696 Removed the "Inviting xxx to channel" message from the
6697 client library away and let the application handle it.
6698 Affected file lib/silcclient/command.c. Added that message
6699 to Irssi SILC client's message formats.
6701 * Fixed CMODE command crash in client. It now checks the
6702 amount of arguments correctly and does not crash. The affected
6703 file is lib/silcclient/command.c.
6705 * Do not create new channel automatically in silc_channels_join
6706 but check whether the channel by that name already exists.
6707 Affected file irssi/silc/core/silc-channels.c.
6709 * Do not send the SERVER_SIGNOFF to router if the disconnected
6710 entity was the router. Affected file silcd/server.c.
6712 * Added the handling of the SERVER_SIGNOFF notify to the Irssi
6713 SILC client as it was missing from there.
6715 Added the handling of the KICK notify to the Irssi SILC client
6716 as it was missing. Added "you have been kicked" message to
6717 Irssi SILC client's message modules formats.
6719 Added the handing of the KILL notify to the Irssi SILC client
6720 as it was missing. Added the kill message module formats
6723 The affected file is irssi/src/silc/core/silc-channels.c.
6725 * The router did not save the channel mode the server announced.
6726 Affected file silcd/packet_receive.c.
6728 * Fixed a possible crash in INFO command in server. If the
6729 server did not provide the server info it crashed. Affected
6730 file silcd/command.c.
6732 Sun Jun 17 15:26:05 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6734 * Fixed the GETKEY command in the server to check also the
6735 global list. Otherwise the GETKEY would not work correctly
6736 in normal SILC server. Affected file silcd/command.c.
6738 Sat Jun 16 18:00:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6740 * Fixed GETKEY crash, it crashed if the command did not succseed.
6742 Tue Jun 12 21:36:18 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6744 * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
6745 is now real and not just an macro interface to GMP.
6747 Removed the entire GMP from the source tree and imported new
6748 NSS MPI library instead. Reason for removing GMP is that it is
6749 extremely large and compiles extremely slow. The NSS MPI
6750 is only a few files and compiles in less than 10 seconds.
6751 The speed is also about the same as GMP. The MPI is imported
6752 to lib/silcmath/mpi.
6754 If the system has GMP installed we will still use the GMP.
6755 If it is not then the NSS MPI will be compiled.
6757 Mon Jun 11 18:07:24 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6759 * Merged a long nickname (127 characters long) crash bugfix from
6760 Irssi CVS tree. Affected file irssi/src/core/misc.c.
6762 * Merged a freed memory reference bugfix from Irssi CVS tree.
6763 Affected file irssi/src/core/commands.c.
6765 Sun Jun 10 16:08:35 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6767 * Added the server's public key sving and verification to the
6768 server when performing the SKE. This was missing and the
6769 remote server's (or router's) public key was accepted without
6770 checking whether we have it previously or trust it at all.
6771 Affected file silcd/protocol.c.
6773 Sat Jun 9 20:17:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6775 * Check in the silc_server_timeout_remote if protocol is active
6776 and make sure that the protocol's final callback is called so
6777 that all memory if freed. Affected file silcd/server.c.
6779 Sat Jun 9 12:51:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6781 * silc_server_whois_send_reply crashed the server if the nickname
6782 was 127 characters long. Affected file silcd/command.c.
6784 Thu Jun 7 16:29:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6786 * Added sanity check to the silc_server_new_client. If the hostname
6787 is provided inside username then check that the provided hostname
6788 really is the same as the resolved one. If the hostname was not
6789 resolved then check it from the public key. Affected file is
6790 silcd/packet_receive.c.
6792 * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
6793 if the server disconnected us and the connection is not valid
6794 anymore. Affected file irssi/src/silc/core/silc-channels.c.
6796 * Moved the silc_client_[chmode|chumode|chumode_char] away from
6797 the library to the lib/silcutil/silcutil.[ch].
6799 Thu Jun 7 08:57:16 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6801 * Close log file after open. Affected file
6802 lib/silcutil/silclog.c.
6804 * Check whether sock == NULL in silc_client_send_packet and return
6805 if it is. Affected file lib/silcclient/silcclient.c.
6807 * Check rec->entry == NULL in the Irssi SILC Client before
6808 sending the channel message. Affecte file is
6809 irssi/src/silc/core/silc-servers.c.
6811 Tue Jun 5 08:08:21 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6813 * Merged a splitted window bugfix from Irssi CVS tree. The
6814 affected file is irssi/src/fe-text/textbuffer-view.c.
6816 * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
6817 It did not print nickname.
6819 * Improved the distributions system a bit.
6821 Mon Jun 4 17:57:16 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6823 * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
6824 irssi/src/fe-text/gui-window.c.
6826 * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
6827 to in-active server. The affected file is
6828 irssi/src/silc/core/client_ops.c.
6830 * Resolve the client in USERS command reply if the entry does
6831 not have username resolved. The affected file is
6832 lib/silcclient/command_reply.c. Also, changed the IDENTIFY
6833 command to WHOIS command to really resolve stuff. The USERS
6834 is not used any more in any critical section so WHOIS can
6835 be used even though it might be slower than IDENTIFY.
6837 * Changed the lib/silcutil/silchashtable.h header to ROBODoc
6840 Sun Jun 3 14:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6842 * Changed the protocol API a bit more consistent in the
6843 lib/silccore/silcprotocol.[ch].
6845 * Changed the following headers to ROBODoc format:
6847 lib/silccore/silcpayload.h
6848 lib/silccore/silcprotocol.h
6849 lib/silccore/silcsockconn.h
6851 All core library headers are now formatted.
6853 Sat Jun 2 10:45:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6855 * Fixed a bug in Irssi SILC client; do not show that you are
6856 server/router operator if you really are not. Affected file is
6857 irssi/src/silc/core/client_ops.c.
6859 * Renamed silc_command_free_payload to silc_command_payload_free.
6860 Affected file lib/silccore/silccommand.h
6862 * Added silcmath.h to include the prototoypes of various routines
6863 in the lib/silcmath. Removed the old modinv.h, mpbin.h and
6866 * Changed the following headers to ROBODoc format:
6868 lib/silccore/silcchannel.h
6869 lib/silccore/silccommand.h
6870 lib/silccore/silcid.h
6871 lib/silccore/silcidcache.h
6872 lib/silccore/silcmode.h
6873 lib/silccore/silcnotify.h
6874 lib/silccore/silcpacket.h
6875 lib/silcmath/silcmath.h
6877 Fri Jun 1 22:19:37 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6879 * Added checking to the server code not to start the server if
6880 ciphers and stuff are not configured properly. Affected files
6881 silcd/serverconfig.[h] and silcd/server.c.
6883 * Changed the layout of the header files of the public interfaces
6884 in the SILC libraries. The new layout supports ROBODoc
6885 documentation tool (and some others) so that it is easy to create
6886 a library reference manual. All the other headers and source
6887 code must still follow the CodingStyle document. Also source
6888 code must not include these ROBODoc stuffs, only the headers.
6889 Furthermore, all public interface headers must now be named
6890 by using `silc' prefix, example: silcapi.h, silccipher.h.
6891 Some files were renamed due to this. All the other headers
6892 must not be used as public interfaces. I will update the
6893 CodingStyle document later. Changed following headers, so far:
6895 lib/silcclient/silcapi.h
6896 lib/silccore/silcauth.h
6897 lib/silccore/silcprivate.h
6898 lib/silccrypt/silcdh.h
6900 Fri Jun 1 10:28:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6904 * Removed silc_client_packet_send_flush from the client library
6905 as it is not needed. Affected file lib/silcclient/client.[ch].
6907 * Added printing of message of unresolved authentication method
6908 to the Irssi SILC client. Added it to the module formats.
6909 Removed the same message from the client library.
6911 Thu May 31 13:57:33 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6913 * Added new distribution feature, DISTLABEL. Every distribution
6914 can define own preprocessor label that can be used in the
6915 source code. For example: #ifdef SILC_DIST_CLIENT. Affected
6916 file distributions, acconfig.h.pre and prepare.
6918 Tue May 29 22:16:40 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6920 * Added Makefile.defines_int to include the actual definitions
6921 for Makefile.defines.in. Tested the new distribution system,
6922 created distributions and tested installation.
6924 * Added AWAY message printing to the Irssi SILC client. Added
6925 the messages to the irssi/src/fe-common/silc/module-formats.[ch].
6927 * Added SCONNECT command to call the SILC's CONNECT command.
6928 Cannot use CONNECT directly since Irssi uses that internally.
6929 Affected file irssi/src/silc/core/silc-servers.c.
6931 Added ACTION local command. It is same as ME command but takes
6932 the channel as mandatory argument.
6934 Rewrote some of the Irssi's help files to suite for SILC
6937 Mon May 28 19:05:22 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6939 * Added Makefile.defines[.in] that should for now on be included
6940 in all Makefile.am file in the source tree. That file includes
6941 all common compilation definitions for SILC source tree.
6943 Mon May 28 10:30:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6945 * Minor changes to the ./prepare script to change the package
6946 name according the distribution name to the configure.in.
6948 Sun May 27 22:24:57 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6950 * Created new distribution system. Added file `distributions'
6951 that defines all the distributions that can be created out of
6952 the SILC source tree. The ./prepare script now reads that
6953 file to determine how to prepare the distributions. The
6954 first argument to the ./prepare is the name of the distribution
6955 and second is the version of the distribution. If given
6956 without arguments it creates the default (toolkit) distribution
6957 with the default version (defined in ./prepare).
6959 All Makefile.am files that are subject to the distributions
6960 are now named as Makefile.am.pre. These are ./Makefile.am
6961 and lib/Makefile.am. Others may be changed later.
6963 Sun May 27 15:57:17 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6965 * Added invite list, ban list, some key management and connection
6966 error message printing to module formats in the Irssi SILC client.
6968 * Added new silc_client_set_away_message to set the away message
6969 that is back to the person who sent private message. The
6970 affected file lib/silcclient/silcapi.h and the
6971 lib/silcclient/client_prvmsg.c.
6973 Sun May 27 12:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6975 * Fixed the private message sending in the Irssi SILC client,
6976 added local command KEY to the Irssi SILC client.
6978 Added key management and key agreement message formats to the
6979 irssi/src/fe-common/silc/module-formats.[ch].
6981 Added USERS (alias WHO) printing, server/router operator
6982 indication and LIST command printing to the module formats.
6984 Sat May 26 17:43:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6986 * Fixed channel joining notify handling, cumode notify handling
6987 from Irssi SILC client.
6989 * Added SILC specific module-formats to the Irssi SILC client so
6990 that SILC specific message hilighting, colors etc is possible.
6991 Affected file irssi/src/fe-common/silc/module-formats.[ch].
6993 Added channel mode, channel user mode, actions, notices,
6994 whois and whowas printing to the the module-formats.c.
6996 * Fixed a bug in channel deletion in the server. The channel
6997 is not left to the cache even if the channel founder auth mode
6998 is set when there are no users anymore on the channel. Affected
6999 file silcd/server.c.
7001 * The silc_net_localhost now resolves the entire hostname including
7002 the domain name. Affected file lib/silcutil/silcnet.c.
7004 Sat May 26 12:13:37 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7006 * Changed the ask_passphrase client operation to be ascynchronous.
7007 It has now a completion callback and a context that the
7008 application must call after it has got the passphrase from
7009 the user. Affected files lib/silcclient/silcapi.h,
7010 lib/silcclient/protocol.c, lib/silcclient/command.c and
7013 Added SilcAskPassphrase callback that the application calls
7014 to deliver the passphrase to the library.
7016 * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
7017 The public key verification and especially a certificate
7018 verification is asynchronous procedure.
7020 Added new SILC_SKE_STATUS_PENDING status to indicate the
7021 request is pending and a callback will be called to finalize
7024 Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
7025 indicate that remote end did not send its public key (or
7026 certificate), even though we require it. Added check for this
7027 condition in the SKE. This was a security bug, now fixed.
7029 Defined new SilcSKEVerifyCbCompletion callback that is called
7030 when the verification process is completed.
7032 The affected files lib/silcske/silcske_status.h and
7033 lib/silcske/silcske.[ch].
7035 * Changed the verify_public_key client operation to be async
7036 as well. Defined SilcVerifyPublicKey callback that is used to
7037 indicate the success of the public key verification process.
7039 Changed the server and client to use the new async client
7042 * Changed the Irssi SILC client's internal scheduler to be called
7043 twice as many times as it used to be. As a result the client
7044 should be a bit faster now. Affected file is
7045 irssi/src/silc/core/silc-core.c.
7047 * Added support to Irssi SILC client of asynchronous public key
7048 verification and passphrase inquiry. Affected file is
7049 irssi/src/silc/core/silc-core.c.
7051 Fri May 25 14:38:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7053 * Do not say "You have left channel %s" in client library.
7054 Moved it to the application. Affected files are
7055 lib/silcclient/command.c and silc/client_ops.c.
7057 * Fixed silc_client_get_clients. Command context was not
7058 duplicated and was freed memory in the callback. Affected
7059 file lib/silcclient/idlist.c.
7061 * Do not say "you are now talking..." on JOIN command in the
7062 client library. The appliation must handle it.
7064 * Do not say ".. changed topic to" in command reply in the
7065 client libary. The application must handle it.
7067 * Fixed TOPIC command sending in the client library.
7069 * Fixed a memory leak in silc_client_command_free in the file
7070 lib/silcclient/command.c.
7072 Thu May 24 19:08:55 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7074 * Imported a modified version of Irssi client to the source tree.
7075 The Irssi will be used to create a new client called
7076 Irssi SILC. Imported to irssi/.
7078 Added silc_core_init_finish function to the Irssi. Affected
7079 file irssi/configure.in.
7081 A lot changes in the Makefile.ams around the irssi tree.
7083 Tue May 22 22:23:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7085 * Do not rehash if the new size is same as the old size of the
7086 hash table, in the silc_hash_table_rehash*. The affected file
7087 lib/silcutil/silchashtable.c.
7089 * Replaced hash_table_del_by_context calls from the server
7090 (when channel->user_list and client->channels) to the
7091 hash_table_del as it is sufficient and faster.
7093 Tue May 22 17:27:16 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7095 * Added silc_hash_table_list, silc_hash_table_get and the
7096 SilcHashTableList structure to provide an alternative way to
7097 traverse the hash table. The affected files are
7098 lib/silcutil/silchashtable.[ch].
7100 * Changed the server's idlist routines to use the hash table
7101 routines to optimize the code.
7103 Mon May 21 21:46:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7105 * Replaced the client entry's `channel' list and channel entry's
7106 `user_list' list to hash tables for optimized lookup. Changed
7107 the code to use the hash table interface around the code.
7108 Affected file lib/silcd/idlist.[ch].
7110 * Added `auto_rehash' boolean argument to the function
7111 silc_hash_table_alloc to indicate whether the hash table should
7112 auto-rehash when it thinks is appropriate time. It will
7113 increase the hash table size if the there is twice as much
7114 entries in the table than the size of the table, and will
7115 decrease the size if there are twice as less entries than
7116 the size of the table.
7118 Mon May 21 09:51:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7120 * Fixed silc_xxx_get_supported to not crash at some circumstances.
7122 Sun May 20 13:45:58 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7124 * silc_idcache_purge_by_context deletes the entry now by context
7125 as it is supposed to do. Affected file lib/silccore/idcache.c.
7127 * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
7128 client is not anymore valid (WHOWAS givens the info) and not
7129 the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
7131 Sat May 19 16:30:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7133 * Removed the `data' and `data_len' arguments from the ID Cache
7134 interfaces and added `name' argument. ID Cache does not handle
7135 anymore the binary data only a names associated with given ID.
7137 * When hashing a Client ID with silc_hash_id the entire ID is
7138 not hashed anymore, instead only the hash of the Client ID is
7139 hashed. This way we can access the Client ID from the cache
7140 with Client ID but with the hash of the ID (which is a hash of
7141 the nickname) as well without any difference in performance.
7143 Added also silc_idcache_find_by_id_one_ext to do one on one
7144 searching when we have the actual ID. Added also function
7145 silc_hash_client_id_compare. The affected files are
7146 lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
7148 * When hashing the name associated with a ID it is always done
7149 in lowercase. This way we can access the cache without worrying
7150 about case-sensitivity, even though, for example nicknames are
7153 * Fixed a bug in server with channel message sending. It put
7154 wrong ID type as destination ID. The affected file
7155 silcd/packet_send.c.
7157 * silc_idcache_del_by_context now deletes from all hash tables
7158 by context. Affected file lib/silccore/idcache.c.
7160 Fri May 18 17:42:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7162 * Changed the client library to use the new ID Cache interface.
7163 Changes around the source tree.
7165 * Added silc_hash_table_rehash_ext to rehash with specific
7166 hash function. Affected file lib/silcutil/silchashtable.[ch].
7168 * Added silc_hash_string_compare to compare two strings in the
7169 hash table. Affected file lib/silcutil/silcutil.[ch].
7171 Fri May 18 11:18:45 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7173 * Added new function silc_idcache_del_by_context into the
7174 lib/silccore/idcache.[ch].
7176 * Changed the server's ID list routines to use the new ID Cache
7177 interface. Changes around the source tree.
7179 Fri May 18 08:35:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7181 * Added silc_hash_table_del[_by_context]_ext functions in to the
7182 lib/silcutil/silchashtable.[ch].
7184 Removed silc_hash_table_find_all* routines and added new
7185 silc_hash_table_find_foreach to replace them.
7187 Added silc_hash_table_replace_ext function as extended
7188 replacing function. Separated the simple hash table interface
7189 from the extended hash table interface in the file
7190 lib/silcutil/silchashtable.h.
7192 * Fixed minor bugs and changed it to use some of the new
7193 hash table functions in lib/silccore/idcache.c
7195 Thu May 17 18:15:12 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7197 * Added new function silc_hash_table_find_all to return all keys
7198 in the hash table by the specified key. As the hash table is
7199 collision resistant it also makes it possible to have several
7200 duplicate keys in the hash table. This function may be used to
7201 find all of the keys from the hash.
7203 Added user_context arguments to the SilcHashFunction,
7204 SilcHashCompare and SilcHashDestructor to deliver user specified
7207 Added new fuctions silc_hash_table_find[_all]_ext to do
7208 extended lookup with specified hash and compare functions and
7209 specified user contexts.
7211 Added new function silc_hash_table_add_ext to add the key
7212 with specified hash function and user context.
7214 Added new function silc_hash_table_foreach to traverse all
7215 entrys in the hash table. Added SilcHashForeach callback
7218 Added new function silc_hash_table_del_by_context to delete
7219 the entry only if the context associated with the key matches.
7221 Affected files are lib/silcutil/silchashtable.[ch].
7223 * Removed silc_hash_[server/client/channel]_id and added just
7224 silc_hash_id to the lib/silcutil/silcutil.[ch]. Added also
7225 silc_hash_id_compare to compare two ID's using as the hash table
7226 comparison function. Added also silc_hash_data to hash
7227 binary data and silc_hash_data_compare to compare it.
7229 * Removed silc_idlist_find_client_by_hash as it is not needed
7230 anymore. Affected file silcd/idlist.[ch].
7232 * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
7233 to use internally the SilcHashTable. The new ID Cache is a lot
7234 faster than the old one. Some of the ID Cache interface was also
7235 rewritten and obsolete and stupid functions were removed.
7237 Wed May 16 23:03:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7239 * Added entry_count field to the SilcHashTable to keep the number
7240 of the entries in the table. Implemented the function
7241 silc_hash_table_rehash. Added new function
7242 silc_hash_table_count. Affected file lib/silcutil/silchashtable.c.
7244 Fixed a minor bug in silc_hash_table_free.
7246 * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
7247 silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
7248 into the lib/silcutil/silcutil.[ch].
7250 Wed May 16 20:02:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7252 * Implemented a collision resistant hash table into the
7253 lib/silcutil/silchashtable[ch]. See the header and the source
7254 for the SilcHashTable API.
7256 Tue May 15 22:05:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7258 * Merged dotconf version 1.0.2 into lib/dotconf.
7260 Sun May 13 19:32:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7262 * Do not compile anything in lib/silcsim/* if the SIM support
7263 is not enabled. The tree should now compile without problems
7266 Thu May 10 22:49:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7268 * Compiled the SILC under cygwin. Compiled and tested briefly
7269 without problems. More tests needed. The SIMs didn't compile
7272 * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
7274 * Fixed possible crash in silc_get_username in the
7275 lib/silcutil/silcutil.c.
7277 Tue May 8 09:04:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7279 * Fixed a va_arg in silc/client_ops.c.
7281 * Oops, RC5 routines were named AES and caused some problems
7282 when not using SIM's. Affected file lib/silccrypt/rc5.c.
7284 Sun May 6 13:59:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7286 * Added new SilcIDIP structure into the lib/silccore/id.h and
7287 replaced the old `ip' fields from all SILC ID's to that type.
7288 This is a step towards IPv6 support.
7290 The silc_id_get_len takes now the ID as an extra argument.
7291 The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
7292 both IPv4 and IPv6 based ID's.
7294 The affected files are lib/silccore/id.[ch] and other files
7295 around the tree using these routines.
7297 * Removed the ID length arguments in server from various
7298 silc_server_send_notify_* routines -> they are not needed
7301 Sat May 5 13:56:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7303 * Fixed memory leak in silc_encode_pem_file in the file
7304 lib/silcutil/silcutil.c.
7306 Thu May 3 21:23:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7308 * Check minor version as well in the SKE. Affected files are
7309 silcd/protocol.c and lib/silcclient/protocol.c.
7311 * Added --identifier option to the server so that an identifier
7312 can be when creating the public key for the server. Affected
7313 file is silcd/silcd.c.
7315 * Fixed minor decoding bug in silc_pkcs_decode_identifier in
7316 lib/silccrypt/silcpkcs.c.
7318 Wed May 2 20:50:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7320 * Register default ciphers and stuff when using -C option with
7321 the server. Affected file sildc/silcd.c.
7323 * Put back the servers public key filename format, it is better
7324 than the new one. For now, the client keys are saved with the
7325 new filename format. The affected file silc/client_ops.c.
7327 * Implemented the Cipher API for the rest of the ciphers that
7328 did not implement it or implemented it the wrong way.
7330 Wed May 2 13:31:26 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7332 * Register default ciphers and stuff when using the -S option
7333 in the client. Affected file silc/silc.c. Same also when
7334 creating new key pair with -C option.
7336 Tue May 1 14:18:13 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7338 * Fixed the silc_verify_public_key client operation function to
7339 save the public keys differently. The fingerprint is now
7340 used as filename and not the hostname. This way also the
7341 client keys are saved uniquely and not with hostnames. The
7342 affected file is silc/client_ops.c.
7344 * Trimmed the silc_hash_fingerprint function to remove extra
7345 whitespaces from the end of the fingerprint. The affected
7346 file is lib/silccrypt/silchash.c.
7350 * Added silc_cipher_register_default function to register all
7351 default ciphers. It can be used when configuration files
7352 does not exist and the application does not want any specific
7353 ciphers in any specific order.
7355 The SilcDList is now used as silc_cipher_list dynamically
7356 allocated cipher list. Removed the static list all together
7357 and now all ciphers must be allocated to the dynamic list.
7358 The silc_cipher_alloc routine was changed to check only the
7361 All silc_cipher_* routines that used to return int returns
7364 The affected files lib/silccrypt/silccrypt.[ch].
7366 * The same thing was done to silc_hash_* as for silc_cipher_*
7367 routines. Affected files lib/silccrypt/silchash.[ch].
7369 * The same thing was done to silc_pkcs_* as for silc_cipher_*
7370 routines. Affected files lib/silccrypt/silcpkcs.[ch].
7371 Added also silc_pkcs_[un]register[_default] functions.
7372 Removed the data_context from the PKCS API.
7374 * Added silc_hmac_register_default function to register default
7375 hmacs. Affected files lib/silccrypt/silchmac.[ch]. Added also
7376 SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
7377 to unregister all hmacs at once.
7379 * Register the default ciphers, hash functions, PKCSs and HMACs
7380 if client's configuration file does not exist. The affected
7383 * The client did not load the hash functions from the SIM
7384 modules at all. Added support for this. Affected file is
7385 silc/clientconfig.c.
7387 * When decoding public key with silc_pkcs_public_key_decode, check
7388 the supported algorithm only if PKCS are registered. Affected
7389 file lib/silccrypt/silcpkcs.c. The same was done with the
7390 silc_pkcs_private_key_decode.
7392 * Fixed the SILC List routines to keep the list always in order.
7393 It used to change the list's order when traversing the list but
7394 not it preserves the order. Affected file lib/trq/silclist.h.
7396 Mon Apr 30 17:29:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7398 * Added the client library to use the SilcSocketConnection's
7399 reference counter (by silc_socket_dup) to prevent the bug that
7400 the socket object may be freed underneath async operation.
7402 * The name resolv library checking fixes in the configure.in.pre.
7405 * Created new version of the protocol drafts for future
7406 development. The -03 drafts are the ones that will be changed
7407 in the trunk now and the -02 will remain as they are.
7409 * Send list of CUMODE notifys to the router when announcing
7410 the channel users to the router. Affected file silcd/server.c.
7411 If the router receiving channel founder CUMODE for a channel
7412 that already has channel founder it will send CUMODE notify
7413 to the sender to remove the channel founder rights from the
7414 announced client. Affected file silcd/packet_receive.c.
7416 * The CUMODE notify may now use Server ID as well as the entity
7417 who changes the mode. Updated protocool specs.
7419 * Updated INSTALL and README files.
7421 Sun Apr 29 23:17:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7423 * New web pages in the http://silc.pspt.fi. The pages was
7428 Sun Apr 29 13:33:41 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7430 * Implemented the [DenyConnectin] config section in the server.
7431 Added silc_server_config_denied_conn to check whether incoming
7432 connection is denied. Affected file silcd/serverconfig.[ch].
7434 * Do not check the ports when checking the incoming configuration
7435 data if the port is 0, meaning any. Affected file is
7436 silcd/serverconfig.c.
7438 Fri Apr 20 18:58:43 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7440 * Fixed buffer overflow in silc_string_compare in the file
7441 lib/silcutil/silcutil.c.
7443 * Fixed double free in silc_server_command_leave in the file
7446 Fri Apr 20 14:00:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7448 * Fixed the version checking in the server. Affected file is
7451 Thu Apr 19 19:52:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7453 * Fixed the configuration data fetching when accepting new
7454 connections in the server. Affected file silcd/server.c.
7456 Thu Apr 19 11:40:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7458 * Added `sender_entry' argument to the function
7459 silc_server_packet_relay_to_channel so that we can check
7460 whether some destination actually belongs to the same route
7461 the sender belongs (ie, we must not resend the packet to the
7462 sender). Affected file silcd/packet_send.[ch].
7464 * Added `servername' field to the SilcClientEntry in the server
7465 to hold the name of the server where client is from. Affected
7466 file is silcd/idlist.h.
7468 Wed Apr 18 22:19:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7470 * Moved the channel message encrypting in the router betwen
7471 router connections from silc_server_channel_message to the
7472 silc_server_packet_relay_to_channel since we want to check
7473 whether we have anybody channel before encrypting anything.
7474 Affected files silcd/packet_[receive/send].c.
7476 Tue Apr 17 21:18:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7478 * Fixed the [AdminConnection] server config section to support
7479 multiple entries. Affected file silcd/serverconfig.c.
7481 * Added support into the server to check the validity of the
7482 incoming connection before executing any KE or authentication
7485 * The connection configuration is now saved to the KE and
7486 connection auth protocol contexts and not fetched anymore in
7487 the protocol. Affected files silcd/server.c, silcd/protocol.[ch].
7489 * The local hosts listenning address and port is also resolved
7490 now when starting the server. We want to have the socket object
7491 to include the real address and port for the listener. Added
7492 new function silc_net_check_local_by_sock into the files
7493 lib/silcutil/silcnet.[ch].
7495 * Fixed a broadcast bug in server -> do not broadcast if we
7498 * Fixed a routing bug. Do not route broadcast packets ever.
7499 Broadcast packets must be processed always and not routed since
7500 they may be destined to some other host than yourself and thus
7501 would get routed without no good reason. Affected file is
7504 * Added function silc_server_config_is_primary_route to check
7505 whether primary router connection has been configured (a router
7506 configuration that we are initiating). If there is not, we
7507 will assume that there is only two routers in the SILC network
7508 and we will use the incoming router connection as our primary
7509 route. Affected files silcd/serverconfig.[ch], silcd/server.c.
7511 * Changed the order of the broadcasting. Broadcast _after_ the
7512 packet has been processed not before. Affected file is
7515 * Fixed a [ClientConnection] parsing bug. The port was never
7516 parsed correctly thus resulting to port 0. Affected file
7517 silcd/serverconfig.c.
7519 * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
7520 argument and did not set the broadcast packet flag. Affected
7521 file silcd/packet_send.c. Fixed same bug in the function
7522 silc_server_send_notify as well.
7524 * If we receive NEW_ID packet for our own ID in the server, ignore
7527 Mon Apr 16 12:10:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7531 * Removed the nickname from the Private Message Payload.
7532 Updated the code and the protocol specs.
7534 * Updated protocol specs for submitting to the IETF.
7536 * Tweaked the Random Number Generator a bit. Affected file
7537 lib/silccrypt/silcrng.c. Exported a new function
7538 silc_rng_[global]_add_noise which can be used to add more
7541 Sat Apr 14 16:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7543 * Do not parse packets with different timeout when protocol
7544 is active -> may cause problem with rekey. Affected file
7547 * When server receives signoff notify it must not create
7548 new channel key if the client is on any channels since the
7549 sender of the signoff notify will create it.
7551 Fri Apr 13 17:12:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7553 * Added printing of error messages during SKE protocol from the
7554 failure packet sent by server during SKE. Affected file
7557 * Removed the client's failure_callback handling with timeout
7558 and handle it immediately when received.
7560 * The SKE library returned wrong type in SUCCESS and FAILURE
7561 packets. They must be 32 bit MSB not 16 bit MSB.
7563 Fri Apr 13 00:09:08 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7565 * Ok, rewrote the logic of the re-key and now it seems to work.
7566 I tested it on high traffic with frequent re-keys without
7567 problems. Added hmac_receive (and renamed hmac to hmac_send)
7568 in SilcClientConnection in lib/silcclient/client.h and
7569 in SilcIDListData in silcd/idlist.h. Also, removed the
7570 SilcPacketParserContext's cipher and hmac fields as they are
7571 not needed anymore and actually caused some problems when
7572 the ciphers and hmac's changed underneath the packet parser.
7574 Thu Apr 12 14:42:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7576 * If re-key protocol is active then process the incoming packets
7577 synchronously since we must assure that icoming packets encrypted
7578 with the old key is processed before the new keys is set to
7579 use. This is true other packets than for REKEY packets.
7580 Affected file silcd/server.c. The same was done to client library
7581 as well, affected file lib/silcclient/client.c.
7583 Thu Apr 12 12:01:52 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7585 * Fixed bug in client and server to accept the force send if
7586 the packet is send from silc_[server/client]_packet_process
7587 function. Otherwise the packets are never delivered, oops.
7589 Wed Apr 11 22:10:15 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7591 * Disable force sending of packets when REKEY protocol is active.
7592 We must assure that no packet is sent directly when rekey is
7593 performed. All packets must be sent through packet queue.
7594 Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
7595 SILC_CLIENT_IS_REKEY to lib/silcclient/client.h. Affected
7596 function is silc_[server/client]_packet_send_real to check
7599 * Replaced the SIM paths from example config files to
7600 /usr/local/modules. Also, make install creates now
7601 /usr/local/silc/logs directory to hold all the SILC server
7604 Wed Apr 11 16:59:59 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7606 * Made the configure.in.pre work on Solaris. Patch by salo.
7608 * Made all ciphers compatible with non-x86 machines. Defined
7609 CBC mode macros into lib/silccrypt/ciphers_def.h.
7611 Tue Apr 10 20:32:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7613 * Fixed the make install.
7615 Tue Apr 10 16:20:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7617 * When MAC computation fails the silc_packet_decrypt returned 0
7618 even though it was supposed to return -1. Fixed this. The
7619 affected file is lib/silccore/silcpacket.c.
7621 * Do not replace the config files in /etc/silc (in make install)
7622 if they already exist. Affected file ./Makefile.am.
7624 * Do not send re-key packets immediately but through packet queue.
7625 Affected file silcd/protocol.c and lib/silcclient/protocol.c.
7627 * Changed silc_net_check_host_by_sock to return FALSE if the
7628 IP/DNS could not be resolved. Though, it returns the IP address
7629 now even if it could not resolve it (but returns also FALSE).
7630 Affected file lib/silcutil/silcnet.[ch].
7632 Mon Apr 9 21:54:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7634 * Added silc_pkcs_decode_identifier to decode the public key's
7635 identifier. Affected file lib/silccrypt/silpkcs.[ch].
7636 Added also silc_pkcs_free_identifier. Added also new context
7637 SilcPublicKeyIdentifier.
7639 * Added -S option to the silc client. It is used to dump the
7640 contents of the specified public key file.
7642 * Changed the PKCS api to return the public key length when
7643 setting the public key.
7645 * Fixed a fatal bug in the public and private key file loading.
7646 Affected file lib/silccrypt/silcpkcs.c.
7648 * Execute the packet parsing for client with zero (0) timeout
7649 if the protocol is active. Affected file silcd/server.c.
7651 Sun Apr 8 19:30:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7653 * Made the key generation options to the silcd program. Added
7654 -C option, equivalent to client's option.
7656 * Added new [ServerKeys] config section to the server. It
7657 configures the server's public and private key.
7659 * Defined generic Public Key Payload into the protocol
7660 specification to send specific type of public keys and
7663 * Defined new command SILC_COMMAND_GETKEY to fetch a client's
7664 public key or certificate.
7666 * Implemented the GETKEY command to the server and to the
7667 client library and on user interface.
7669 Sun Apr 8 01:37:21 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7671 * Made preliminary `make install' work.
7673 Thu Apr 5 17:42:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7675 * Added SilcServerRekey context into silcd/idlist.h.
7677 * Added the PFS support as defined in the specification to the
7678 SKE protocol. Affected files lib/silcske/*.c.
7680 * Added `ske_group' field to the SilcServerRekey context to hold
7681 the number of the SKE group that is used with PFS in re-key.
7682 Affected file silcd/idlist.h.
7684 * Added PFS re-key support to the server. Affected file is
7687 * Added silc_protocol_cancel to cancel execution of the next
7688 state of the protocol. Affected file is
7689 lib/silccore/silcprotocol.[ch].
7691 * Added the re-key support with and without PFS to the client
7692 library. Re-key is performed once in an hour, by default.
7694 Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
7695 Added silc_client_rekey_callback and silc_client_rekey_final.
7696 Affected files are lib/silcclient/protocol.[ch] and
7697 lib/silcclient/client.[ch].
7699 * Removed the `hmac_key' and `hmac_key_len' fields from the
7700 SilcClientConnection structure; not needed. Affected file is
7701 lib/silcclient/client.h.
7705 Wed Apr 4 16:32:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7707 * Do not ask whether user wants to use the negotiated private key
7708 for private messages, just use it. Affected file is
7709 silc/local_command.c.
7711 * Added `send_enc_key' and `enc_key_len' fields to the
7712 SilcIDListData structure since they are needed in the re-key
7713 phase. Affected file is silcd/idlist.[ch].
7715 * Implemented the simple re-key protocol into the server.
7716 Affected files silcd/server.c and silcd/protocol.[ch]. The
7717 re-key will be performed once in an hour, by default.
7719 Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
7720 Added silc_server_rekey, silc_server_rekey_callback and
7721 silc_server_rekey_final.
7723 * Removed Tunneled flag from the protocol. Updated the code
7724 and the specifications.
7726 * Adde `pfs' field to the SilcIDListData to indicate whether
7727 the PFS is to be performed in the re-key. Affected file is
7730 Tue Apr 3 21:52:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7732 * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
7733 int64 of at least the xintXX size. If void * is less that 4
7734 bytes uint32 * will be used. Defined bool as boolean.
7736 * Changed _ALL_ unsigned long and unsigned int to uint32,
7737 unsgined short to uint16 in the source tree.
7739 * Fixed a fatal bug in silc_server_remove_clients_by_server. Do
7740 not handle clients that has entry->data.registered == FALSE.
7741 They are not in the network anymore. Affected file is
7744 Tue Apr 3 16:39:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7746 * Implemented the sending of the SERVER_SIGNOFF notify in the
7747 server. Affected file is silcd/server.c.
7749 * Added silc_server_send_notify_args into silcd/packet_send.[ch].
7750 Added also silc_notify_payload_encode_args into the
7751 lib/silccore/silcnotify.[ch].
7753 * Implemented ther SERVER_SIGNOFF notify handling in the server.
7754 Affected file silcd/packet_receive.c.
7756 * Implemented the SERVER_SIGNOFF notify handling in the client
7757 library. Affected file lib/silcclient/client_notify.c. Also,
7758 implemnted the printing of the SERVER_SIGNOFF info to the
7759 application. Affected file silc/client_ops.c.
7761 * The silc_idlist_del_server now returns TRUE or FALSE to indicate
7762 if the deleting was successful. Affected file silcd/idlist.[ch].
7764 * Added support for public key authentication in the connection
7765 authentication protocol in the client library. Affected file
7766 lib/silcclient/protocol.c.
7768 * Changed the server's silc_idlist_get_clients_by_* interface
7769 to support already allocated array so that new entries may be
7770 added to pre-allocated array. Affected file silcd/idlist.[ch].
7771 This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
7772 and command replies.
7774 * All command reply functions in the server now calls the
7775 pending command callback even if error occured. This way the
7776 error will be delivered to the client as well. Affected files
7777 silcd/command.c and silcd/command_reply.c.
7779 * Fixed INFO command to return local server's info if no server
7780 was provided. Affected file lib/silcclient/command.c.
7782 * Removed RESTART command for good. Updated the code and the
7785 * Rewrote parts of the task system. It is a bit simpler now.
7786 Removed unsued task priorities. The affected files are
7787 lib/silcutil/silctask.[ch].
7789 Mon Apr 2 20:02:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7791 * Moved the USERS printing from the library to the application.
7792 Affected files lib/silcclient/command.c and silc/client_ops.c.
7794 Mon Apr 2 13:13:23 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7798 * Added channel key re-key support. The re-key is perfomed
7799 only by the router and is done once in an hour. Added `rekey'
7800 field to the SilcChannelEntry in the server. Affected files
7801 silcd/server.c and silcd/idlist.h.
7803 * Added silc_task_unregister_by_context into the file
7804 lib/silcutil/silctask.[ch].
7806 Sun Apr 1 19:49:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7808 * Added SILC_UMODE_GONE mode to indicate when the client is not
7809 present in the SILC network. Added also support to the local
7810 command AWAY that will set this mode. Added support of showing
7811 "xxx is gone" in WHOIS command. The USERS command shows the
7812 gone status as well.
7814 * Fixed setting server and router operator privileges in the
7815 server's UMODE command. Affected file silcd/command.c.
7817 * Merged the SKE KE1 and KE2 payloads into one payload. The
7818 new KE payload is equivalent to the old KE2 payload.
7820 Cleaned up the SKE Start Payload parsing. It now uses the
7821 simple buffer unformatting to do the parsing. A lot faster
7824 Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
7825 to the SKE that is used to indicate whether both of the SKE
7826 parties should perform authentication. By default only the
7827 responder performs authentication. By setting this flag also
7828 the initiator must do authentication. By default it is unset
7829 since in normal SKE case, client to server connection, only
7830 the responder should do authentication. When doing SKE between
7831 two clients both should perform authentication. Updated the
7832 code and the protocol specs.
7834 * A little fix to IDENTIFY command in the server. Search the
7835 client first by hash not nickname. Affected file is
7838 * Fixed the silc_client_close_connection to support closing
7839 the client to client connections wihtout deleting too much
7840 data. Affected file lib/silcclient/client.c.
7842 * Fixed a fatal bug in server and client; if KE1 or KE2 packets
7843 are received if protocol used to be active but is not anymore
7844 the application would crash due to NULL pointer dereference.
7845 Affected files silcd/server.c and lib/silcclient/client.c.
7847 * Added `hash' field to the SilcClientConnection to include
7848 the hash function negotiated in the SKE protocol.
7850 * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
7851 to set the channel founder authentication data. A client can
7852 claim the founder rights later by providing the authentication
7853 data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
7854 This way the channel founder can regain the channel founder
7855 privileges even it is left the channel. This works only on
7856 local server and the client must be connected to the same
7857 server to be able to regain the founder rights. Updated the
7858 protocol specs accordingly.
7860 Added support to the CMODE command in the client to set the
7861 founder auth data. Read the README to see how to set it.
7863 Added support to the CUMODE command to claim the founder
7864 rights. Read the README to see how to do it.
7866 Added support for the founder authentication to the Channel
7867 Entry in the server. Affected file silcd/idlist.h.
7869 Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
7870 server's CMODE command. Affected file silcd/command.c.
7872 * Added the following new functions into lib/silccore/silcauth.[ch]:
7873 silc_auth_get_method and silc_auth_get_data.
7875 * The server now saves the remote hosts public key to the
7876 SilcIDListData pointer. Affected file silcd/protocol.c.
7878 * The normal server now does not remove the channel entry from
7879 the cache if the founder authentication data is set. It used
7880 to remove it if the founder was the last one on the channel on
7881 the server and left the channel. The auth data is saved and
7882 if the channel is re-joined later the old entry is used with
7883 the old auth data. Affected files silcd/command_reply.c and
7886 * Removed the `pkcs' field from the SilcIDListData structure
7887 in the server; it is not used. Affected file silcd/idlist.h.
7889 Sat Mar 31 15:38:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7891 * Fixed packet processing on slow links. Partial packets were
7892 never re-processed because the incoming data buffer was cleared
7893 by the application. Application must not directly clear the
7894 sock->inbuf, the packet processing routines handle it. Fixed
7895 this in client library and in server.
7897 Fri Mar 30 16:35:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7899 * Fixed the WHOIS and IDENTIFY send reply function to really
7900 check whether to send list or just one entry. Affected file
7903 * Cleaned up the LEAVE command's channel key distribution. The
7904 affected file silcd/command.c.
7906 * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
7907 can enforce the channel mode as well. In that case the ID
7908 includes the ID of the server. The code now enforces the
7909 mode change if the router have different mode than the server.
7911 * The notify client operation with CMODE_CHANGE notify can now
7912 return NULL client_entry pointer if the CMODE was not changed
7913 by client. Application must check for this.
7915 * Added <Server ID> argument to INFO command to support server
7916 info fetching by Server ID.
7918 * Added silc_server_announce_get_channel_users to get assembled
7919 packets of channel users of the specified channel. Affected
7920 file silcd/server.[ch].
7922 * Fixed bug in CHANNEL_CHANGE notify in the server. The new ID
7923 was freed underneath the ID Cache.
7925 * Re-announce clients when the server received CHANNEL_CHANGE
7926 notify from the router. Affected file silcd/packet_send.c.
7928 Thu Mar 29 19:10:28 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7930 * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
7931 crashed since it did not handle the fact that there is no cipher
7932 called "3" and didn't check the error condition. Now fixed.
7934 * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
7935 flag. It can be used to send message requests.
7937 Thu Mar 29 12:26:25 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7939 * Implemented the RESTART command in the client.
7941 * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
7942 notice type messages. Added notice printing to the user
7945 * The channel keys are not re-generated if the channel's mode
7946 is PRIVKEY, ie private key on the channel exists. Affected
7947 files silcd/server.c and silcd/command.c.
7949 * Fixed a little bug in channel message delivery when channel
7950 private keys are set in the server. Affected file is
7951 silcd/packet_send.c.
7953 * Changed the setting on channel->on_channel = TRUE from the
7954 silc_client_save_channel_key to the JOIN command reply. The
7955 key payload is not received if the private channel key is set.
7956 Affected file lib/silcclient/command_reply.c and the
7957 lib/silcclient/client_channel.c.
7959 * When the CMODE_CHANGE notify is sent and the channel private
7960 key mode is removed the channel key must be re-generated in
7961 other cells as well. Added this support for the router in the
7962 silcd/packet_receive.c.
7964 * Added new local command NOTICE to send notice message on
7965 channel. Affected file silc/local_command.[ch].
7967 Wed Mar 28 23:55:54 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7969 * Added new local command ME to the client. It is used to send
7970 message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
7971 some action. Affected file silc/local_command.[ch].
7973 * Changed channel_message and private_message client operations
7974 to deliver the message flags to the application. Added also
7975 the `flags' arguments to the silc_client_send_channel_message
7976 and silc_client_send_private_message functions. Affected file
7979 Wed Mar 28 20:50:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
7981 * Redefined the Private Message Payload to support private message
7982 keys and to support the new private message flags. Updated
7983 the protocol specs. Flags makes it possible to have for example
7984 CTCP style messages.
7986 * Added new type SilcPrivateMessagePayload and defined an API
7987 for it in the lib/silcclient/silcprivate.[ch].
7989 * Tested private message private keys successfully. Tested the
7990 private message key set, unset and list commands with the new
7993 * Redefined the Channel Message Payload to include the channel
7994 message flags (equal with private message flags) to support
7995 for example CTCP style messages.
7997 * Defined some of the message (for channel and private message)
7998 flags. Updated the protocol specs and added the flags to the
7999 lib/silccore/silcchannel.h. The type is SilcMessageFlags.
8001 Wed Mar 28 15:52:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8003 * Added SilcKeyAgreementStatus type to the key agreement routines
8004 to indicate the current status and error if one occured.
8005 The status types are defined in the lib/silcclient/silcapi.h.
8007 * Added new local command KEY that is used to set and unset private
8008 keys for channels, set and unset private keys for private messages
8009 with remote clients and to send key agreement requests and
8010 negotiate the key agreement protocol with remote client. The
8011 key agreement is supported only to negotiate private message keys,
8012 it currently cannot be used to negotiate private keys for channels,
8013 as it is not convenient for that purpose.
8015 * Fixed a minor pending callback setting bug in the function
8016 silc_client_get_client_by_id_resolve, now the function works.
8017 Affected file lib/silcclient/idlist.c.
8019 * Added function silc_net_get_local_port to get local bound
8020 port by socket. Added to lib/silcutil/silcnet.[ch].
8022 * Added `sockets' and `sockets_count' fields to the SilcClient
8023 object. They hold the sockets of the listenning sockets in
8024 the client. Listenning sockets may be for example the key
8025 agreement server. Affected file lib/silcclient/client.[ch].
8026 Added functions the silc_client_add_socket and the
8027 silc_client_del_socket. They are exported to the application
8030 * Added ~./silc/clientkeys to support other client's public keys.
8032 * Renamed verify_server_key client operation to verify_public_key
8033 and added one argument to indicate the type of the connection
8034 (server, client etc.).
8036 Tue Mar 27 22:22:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8038 * Added silc_server_connection_auth_request to handle the
8039 incoming CONNECTION_AUTH_REQUEST packet. Affected file is
8040 silcd/packet_receive.[ch].
8042 * Added silc_server_send_connection_auth_request into the
8043 silcd/packet_send.c to send the connection auth request packet.
8045 * Cleaned up the silcd/protocol.c a bit and fixed some memory
8048 * Fixed the public key authentication in responder side in the
8049 server. The `auth_data' pointer includes the SilcPublicKey
8050 not the path to the public key. Affected file silcd/protocol.c.
8052 * Implemented the public key authentication in the initiator side
8053 in the server. Affected file silcd/protocol.c.
8055 * Removed the [RedirectClient] config section from the server
8056 configuration. Is not needed and I don't want to implement it.
8058 Tue Mar 27 12:49:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8060 * Cleaned up the CMODE command in the server. It now works
8061 correctly and supports all the modes defined in the protocol.
8062 Affected file is silcd/command.c.
8064 * Added `hmac_name' field to the SilcChannelEntry in the server
8065 to hold the default HMAC of the channel. It can be set when
8066 creating the channel (with JOIN command). Affected files
8069 * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
8070 type to indicate the change of the current cipher and hmac
8071 on the channel. Client can safely ignore the <cipher> argument
8072 (if it chooses to do so) since the CHANNEL_KEY packet will
8073 force the channel key change anyway. The <hmac> argument is
8074 important since the client is responsible of setting the new
8075 HMAC and the hmac key into use.
8077 * Fixed the CMODE command in the client library as well.
8079 * Tested CMODE command in router environment successfully.
8081 Mon Mar 26 14:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8083 * Show the version of the remote client (or server) when connecting
8084 to the server. It is logged to the log file. Affected file
8085 is silcd/protocol.c.
8087 * Fixed the KILLED notify handling in the client library. The
8088 client must be removed from all channels when receiving the
8091 Also, do not remove the client entry when giving the KILL
8092 command but when the KILLED notify is received.
8094 * Removed silc_idlist_find_client_by_nickname from the server.
8095 Not needed anymore. Affected files silcd/idlist.[ch].
8097 * Implemented the CHANNEL_CHANGE notify type handling to the
8098 server. Affected file silcd/server.c.
8102 Mon Mar 26 12:11:14 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8104 * Added silc_server_send_notify_invite to send the INVITE
8105 notify between routers.
8107 * Implemented the INVITE command correctly to the server.
8109 * Implemented the INVITE notify type handling in the server.
8111 * Implemented the INVITE command to the client library and on the
8114 Sun Mar 25 20:27:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8116 * Added function silc_server_get_client_resolve to find the
8117 client entry by ID from all ID lists and then resolve it
8118 (using WHOIS) if it cannot be found. Affected file is
8121 Sun Mar 25 13:52:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8123 * Implemented the BAN command to the client library.
8125 * The JOIN command in the server now checks the invite list
8128 * Changed the silc_command_reply_payload_encode_va and the
8129 silc_command_payload_encode_va to support that if argument is
8130 NULL it ignores and checks the next argument. Affected file
8131 lib/silccore/silccommand.c.
8133 * Added silc_server_send_notify_ban to send the BAN notify
8134 type between routers.
8136 * Chaned the silc_notify_payload_encode to support that if
8137 argument is NULL it ignores and checks the next argument.
8138 Affected file lib/silccore/silcnotify.c.
8140 * Tested ban lists in router environment successfully.
8142 Sat Mar 24 14:47:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8144 * Implemented BAN command to the server, in silcd/command.[ch].
8146 * Removed the BAN and INVITE_LIST modes from the CMODE command
8149 * Added function silc_string_match to regex match two strings.
8150 Affected files lib/silcutil/silcutil.[ch].
8152 Fri Mar 23 22:02:40 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8154 * Redefined parts of the SilcChannelEntry in the server to support
8155 the new ban and invite lists.
8157 Fri Mar 23 16:25:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8159 * Redefined the INVITE command. The same command can be used to
8160 invite individuals to the channel but also to manage the invite
8161 list of the channel (to add to and remove from the invite list).
8162 Updated the protocol specs.
8164 * Added new command SILC_COMMAND_BAN that can be used to manage
8165 the ban list of the channel. Updated the protocol specs.
8167 * Removed the channel modes: the SILC_CMODE_BAN and the
8168 SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
8169 in the CMODE command. The equivalent features are now available
8170 using INVITE and BAN commands. Updated the protocol specs.
8172 * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
8173 in the network about change in the current ban list. The notify
8174 type is not used by the client.
8176 * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
8177 support the invite lists.
8179 Thu Mar 22 22:52:23 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8181 * Added new function silc_string_regexify that converts string
8182 including wildcard characters into regex string that can
8183 be used by the GNU regex library. Added into the file
8184 lib/silcutil/silcutil.[ch].
8186 Added silc_string_regex_combine to combine to regex strings
8187 into one so that they can be used as one regex string by
8188 the GNU regex library. Added into the file
8189 lib/silcutil/silcutil.[ch].
8191 Added silc_string_regex_match to match two strings. It returns
8192 TRUE if the strings match. Added into lib/silcutil/silcutil.[ch].
8194 Thu Mar 22 15:29:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8196 * Imported GNU regex to the soruce tree into lib/contrib.
8197 Fixed some compiler warning from the regex.c.
8199 Wed Mar 21 15:27:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8201 * Fixed MOTD command in the server to work in router environment.
8203 * Fixed the MOTD command in the client library to support
8204 the server argument in the command.
8206 * Added `nickname_len' argument to the silc_idlist_add_client
8207 in the server, as the `nickname' argument may be binary data
8210 * Added silc_idlist_get_channels to return all channels from
8213 * Implemented LIST command to the server. Affected file is
8216 * Implemented the LIST command to the client library and on the
8219 * Added [<user count>] argument to the LIST command reply.
8220 With private channels the user count is not shown.
8222 * Updated TODO and README.
8224 Tue Mar 20 21:05:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8226 * The client entry's data.registered must be TRUE even with
8227 global client entry on global client list. The data.registered
8228 is used to check whether the client is anymore in the network,
8229 for example with WHOWAS command so it must be valid.
8231 * Fixed the WHOWAS command in the server. It now actually works
8232 in router environment. Added function into silcd/command_reply.c
8233 silc_server_command_reply_whowas_save.
8235 * Added silc_idlist_purge function to the silcd/idlist.c
8236 to periodically purge the ID Cache.
8238 * Fixed INFO command in the server. It works now in router
8239 environment. Added <server name> argument to the INFO command
8240 reply. Updated the protocol specs.
8242 * Fixed minor bug in silc_idcache_purge to not purge if the
8243 expire value is zero.
8245 * Fixed various bugs in WHOIS and IDENTIFY command handling as
8246 they were buggy because of the WHOWAS information.
8248 * Fixed local command MSG to handle the async resolving of
8249 the remote client properly. It used to fail the first MSG.
8250 Affected file silc/local_command.c.
8252 * Added `data_len' field to SilcIDCache context.
8254 Tue Mar 20 16:29:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8256 * Update TODO. Todo in commands in the server.
8258 Tue Mar 20 15:45:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8260 * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
8261 used by routers as broadcast packet to inform other routers
8262 about the changed user mode.
8264 Implemented the notify handling in the server. Affected file is
8265 silcd/packet_receive.c. Added the function
8266 silc_server_send_notify_umode to the silcd/packet_send.[ch].
8268 * Added new generic Channel Payload and deprecated the New Channel
8269 Payload. The New Channel Payload is now the generic Channel
8272 * Added new argument `mode' to the silc_server_send_new_channel
8273 as it is required in the Channel Payload now.
8275 * Renamed the SilcChannelPayload to SilcChannelMessagePayload
8276 and created a new and real SilChannelPayload to represent the
8277 new generic Channel Payload. Implemented the encode/decode
8278 for Channel Payload. Affected file lib/silccore/silcchannel.[ch].
8280 * Added silc_server_get_client_channel_list to return the list
8281 of channels the client has joined for WHOIS command reply.
8282 Affected file silcd/server.[ch].
8284 * Implemented the channel list sending in the WHOIS command reply
8285 in server and in the client.
8287 Implemented the channel list displaying on the user interface
8288 as well. Affected file silc/client_ops.c.
8290 * Added silc_channel_payload_parse_list to parse list of Channel
8291 Payloads. It returns SilcDList list of SilcChannelPayloads.
8292 Client for example can use this function to parse the list of
8293 channels it receives in the WHOIS command reply. The caller
8294 must free the list by calling silc_channel_payload_list_free.
8295 Affected files lib/silccore/silcchannel.[ch].
8297 Mon Mar 19 21:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8299 * Added one new argument <user mode> to the WHOIS command reply
8300 to return the mode of the user in SILC. Updated the protocol
8303 Implemented it to the server and client.
8305 Mon Mar 19 18:43:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8307 * Fixed the mode printing on the user interface on joining.
8308 Affected file silc/client_ops.c.
8310 * Implemented the UMODE command and user modes in general to the
8311 client library and to the user interface.
8313 * Implemented the UMODE command to the server.
8315 * The server now sends UNKNOWN_COMMAND error status if client sends
8316 unknown command. Affected file silcd/command.c.
8318 * All server commands now handle the command identifier the right
8319 way when sending the command reply to the client. The client can
8320 use to identify the command replies with the identifier.
8322 Mon Mar 19 16:13:07 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8324 * Added silc_server_get_client_route to resolve the route to
8325 the client indicated by the client ID. Affected file is
8328 * Added silc_server_relay_packet as general function to relay
8329 packet to arbitrary destination. This deprecates functions
8330 like _send_private_message_key, _relay_notify etc. Affected
8331 file is silcd/packet_send.[ch].
8333 Removed silc_server_send_key_agreement,
8334 silc_server_send_private_message_key and
8335 silc_server_packet_relay_notify functions from the file
8336 silcd/packet_send.[ch].
8340 * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
8341 server. Affected file silcd/packet_receive.[ch].
8343 * Implemented the KILL command to the client. Implemented the
8344 SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
8345 Affected files lib/silcclient/command[_reply].c and
8346 lib/silcclient/client_notify.c. Implemented the KILL notify
8347 printing in the user inteface.
8349 * Fixed a lot silc_parse_nick memory leaks from the client
8350 library in the file lib/silcclient/command.c.
8352 * Changed the silc_server_send_notify_on_channels's `sender'
8353 argument from SilcSocketConnection to SilcClientEntry to
8354 check the sender as entry and not as connection object and not
8355 to send to the client provided as argument. The affected file
8356 is silcd/packet_send.[ch].
8358 * The notify packets that are destined directly to the client used
8359 to not to be processed by the server. Now changed that and the
8360 server processes all notify packets. After relaying the packet
8361 to the client the notify packet is processed in the server.
8363 * The silc_server_free_client_data now checks whether there is
8364 pending outgoing traffic for the client and purges the data to
8365 the network before removing the client entry.
8367 Sun Mar 18 21:02:47 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8369 * Added SILC_NOTIFY_TYPE_KILLED notify type. It is sent when
8370 an client is killed from the SILC Network. Updated the protocol
8373 Added new function silc_server_send_notify_killed to the
8374 silcd/packet_send.[ch].
8376 * Added function silc_server_packet_relay_notify to relay notify
8377 packets that are destined directly to a client. In this case
8378 the server does not process the notify packets but merely relays
8379 it to the client. Affected file silcd/packet_send.[ch].
8381 Added also silc_server_packet_process_relay_notify to check
8382 whereto relay the notify. Affected file is
8383 silcd/packet_receive.[ch].
8385 * Implemented the KILL command to the server.
8389 * Added the backup schema desgined last fall to the protocol
8390 specs for everyone to see. The specification is in the
8391 *-spec-xx.txt draft and the packet type definitions for the
8392 backup routers is in *-pp-xx.txt draft. Thusly, added also
8393 new packet type SILC_PACKET_CELL_ROUTERS.
8395 * A big security problem in the implementation discovered. The
8396 signoff of an client did not cause new channel key generation
8397 which it of course should've done. The channel keys must be
8398 always re-generated when client leaves (or signoffs) the channel.
8399 The silc_server_remove_from_channels funtion now handles
8400 the channel key re-generation.
8402 * Added `sender' argument to the silc_server_send_notify_on_channels
8403 to not to send the client provided as argument. Affected file
8404 silcd/packet_send.[ch].
8406 Fri Mar 16 15:52:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8408 * Implemented OPER and SILCOPER commands into the server and
8411 * Added silc_auth_verify and silc_auth_verify_data to verify
8412 the authentication directly from the authentication payload.
8413 It supports verifying both passphrase and public key based
8414 authentication. Affected file lib/silccore/silcauth.[ch].
8416 * Added `hash' field to the SilcIDListData structure. It is the
8417 hash negotiated in the SKE protocol. Affected file is
8420 * Slight redesigning of the SilcAuthPayload handling routines.
8421 Do not send SilcPKCS but SilcPublicKey as argument.
8423 * Implemented the public key authentication support to the
8424 serverconfig. The public key is loaded from the provided path
8425 and saved as authentication data to void * pointer. Thus,
8426 changed the unsigned char *auth_data to void *auth_data;
8428 * Fixed SHUTDOWN command to send the reply before the server
8429 is shutdown. :) Affected file silcd/command.c.
8431 * Fixed fatal bug in CONNECT command. The hostname was invalid
8432 memory and server crashed. Affected file silcd/command.c.
8434 * Fixed fatal bug in CLOSE command. The server_entry became
8435 invalid but was referenced later in the command. Affected file
8438 Thu Mar 15 12:46:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8440 * Fixed fatal bug in failure packet handling. Server ignored
8441 the failure and thus crashed when it came.
8445 Wed Mar 14 20:37:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8447 * Added new SILC_CF_LAG_STRICT command flag that strictly forces
8448 that the command may be executed only once in (about) 2 seconds.
8449 The old SILC_CF_LAG flag is same but allows command bursts up
8450 to five before limiting.
8452 Added the support for CF_LAG and CF_LAG_STRICT flags to the
8453 server code. Various commands now includes the CF_LAG_STRICT
8454 flag to disallow any kind of miss-use of the command.
8456 * Fixed the silc_buffer_unformat to not to allocate any data
8457 if the length of the data is zero. It used to allocate the
8458 length + 1. Affected file lib/silcutil/silcbuffmt.c.
8460 Wed Mar 14 16:10:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8462 * Changed the format of AdminConnection configuration section
8463 in the server. Added username of the admin to the format.
8464 Affected files silcd/serverconfig.[ch].
8466 Added silc_server_config_find_admin into silcd/serverconfig.[ch]
8467 to return admin configuration data by host, username and/or
8470 Wed Mar 14 13:18:16 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8472 * Implemented WHOWAS command to the server. Added the functions:
8474 silc_server_command_whowas_parse,
8475 silc_server_command_whowas_send_reply,
8476 silc_server_command_whowas_from_client and
8477 silc_server_command_whowas_from_server
8479 * Added <Client ID> argument to the WHOWAS command reply. Updated
8480 the protocol specs accordingly.
8482 * Implemented WHOWAS command and command_reply to the client
8485 Implemented the WHOWAS printing on the user interface.
8487 Tue Mar 13 22:17:34 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8489 * Added new argument to the WHOWAS command reply, the real name.
8490 It is an optional argument. Updated the protocol specs.
8492 * Added SilcIDCacheDestructor callback that is registered when
8493 the SilcIDCache is allocated. The callback is called when
8494 an cache entry in the ID Cache expires, or is purged from the
8495 cache. Added into lib/silccore/idcache.[ch].
8497 Added silc_idlist_client_destructor to the silcd/idlist.[ch]
8498 to destruct the client entries when the cache entry expires.
8499 Other ID Cache's in server and in the client library ignores
8502 * If the ID Cache entry's `expire' field is zero then the entry
8503 never expires. Added boolean `expire' argument to the
8504 silc_idcache_add function in the lib/silccore/idcache.[ch].
8505 If it is TRUE the default expiry value is used.
8507 * Added silc_server_free_client_data_timeout that is registered
8508 when client disconnects. By default for 5 minutes we preserve
8509 the client entry for history - for WHOWAS command.
8511 Tue Mar 13 13:26:18 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8513 * Added support to the server to enforce that commands are not
8514 executed more than once in 2 seconds. If server receives
8515 commands from client more frequently, timeout is registered
8516 to process the commands. Affected file silcd/command.c.
8517 Added new function silc_server_command_process_timeout.
8519 * Changed NICK_NOTIFY handling in client library to check that
8520 if the client's nickname was changed, so there is no need to
8521 resolve anything from the server.
8523 * Removed error printing from the WHOIS and IDENTIFY commands.
8524 If error occurs then it is ignored silently in the client library.
8525 The application, however, may map the received error to
8526 human readable error string. The application currently maps
8527 the NO_SUCH_NICKNAME error to string.
8529 * Made the command status message public to the application. Moved
8530 them from lib/silcclient/command_reply.c to
8531 lib/silcclient/command_reply.h. The application can map the
8532 received command status to the string with the
8533 silc_client_command_status_message function.
8535 * Added check to the server to check that client's ID is same
8536 as the Source ID in the packet the client sent. They must
8539 Tue Mar 13 12:49:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8541 * Added dist-bzip hook to the Makefile.am to make bzip2
8542 compressed distributions.
8544 Mon Mar 12 18:43:38 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8546 * Server now enforces the maximum length for the nickname and
8547 the channel as protocol specification dictates. 128 bytes for
8548 nickname and 256 bytes for channel name.
8550 * Moved the WHOIS printing to the application. The client libary
8551 does not print out the WHOIS information anymore, the application
8552 must do it. Renamed silc_client_command_reply_whois_print to
8553 the silc_client_command_reply_whois_save.
8555 The client's idle time is also sent to the application now, and
8556 the idle is shown on screen.
8558 * Added silc_client_command_reply_identify_save to save the
8559 received IDENTIFY entries.
8561 * Do not check for channel private keys in message sending and
8562 reception if the channel does not have the PRIVKEY mode set.
8563 Affected file lib/silclient/client_channel.c.
8565 Sun Mar 11 20:25:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8567 * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
8568 just surfaced after chaning the JOIN procedure.
8570 Sun Mar 11 14:59:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8572 * Added silc_client_get_clients_by_list to get client entries
8573 from Client ID list, that is returned for example by JOIN
8574 and USERS command replies. The application should use this
8575 function for example when JOIN command reply is received to
8576 resolve the clients already on the channel (library does not
8577 do that anymore as USERS command reply is not used in the JOIN
8578 procedure anymore). Affected files lib/silcclient/silcapi.h and
8579 lib/silcclient/idlist.c.
8581 * JOIN command reply and USERS command reply returns now SilcBuffer
8582 pointers instead of unsigned char pointers when returning
8583 the client list and mode list.
8585 * Added <Client ID> argument to the JOIN command reply, mainly
8586 for the server to identify for which client the command was
8587 originally sent. Updated protocol specs accordingly.
8589 * Added SilcDlist private_key pointer to the SilcChannelEntry
8590 in the client to support the channel private keys. Affected
8591 file is lib/silcclient/idlist.h.
8593 * Added SilcChannelPrivateKey argument to the function
8594 silc_client_send_channel_message so that application can choose
8595 to use specific private ke if it wants to. If it is not provided,
8596 the normal channel key is used, unless private keys are set.
8597 In this case the first (key that was added first) is used
8598 as the encryption key.
8600 * Implemented the support for channel private key handling.
8601 Implemented the following functions:
8603 silc_client_add_channel_private_key,
8604 silc_client_del_channel_private_keys,
8605 silc_client_del_channel_private_key,
8606 silc_client_list_channel_private_keys and
8607 silc_client_free_channel_private_keys
8609 Affected file lib/silcclient/client_channel.c.
8611 * Added the support for the private keys in the channel message
8612 sending and encryption and in the message reception and
8613 decryption. Affected funtions are
8614 silc_client_send_channel_message and silc_client_channel_message.
8616 Sat Mar 10 21:36:22 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8618 * Added SKE's key verify callback to the client library's
8619 KE protocol context. Affected files lib/silcclient/protocol.[ch].
8621 * Removed the statement that server (or router) must send USERS
8622 command reply when joining to the channel so that the client
8623 knows who are on the channel. Instead, the client list and
8624 client's mode list is now sent in the JOIN command reply to the
8625 client who joined channel. This is better solution.
8627 * Added function silc_server_get_users_on_channel and function
8628 silc_server_save_users_on_channel to the silcd/server.[ch].
8630 * Removed function silc_server_command_send_users from the
8633 * Do not show topic on the client library anymore. The topic is
8634 sent in the command reply notify to the application and the
8635 application must show the topic now.
8637 Sat Mar 10 00:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8639 * Added client searching by nickname hash into the IDENTIFY and
8640 WHOIS commands in the server as they were clearly missing from
8641 them. Affected file is silcd/command.c.
8643 * Fixed a bug in private message receiving in the client library.
8644 The remote ID was freed and it wasn't supposed, now it is
8647 Fri Mar 9 12:40:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8649 * Minor fix to the channel payload; allocate the data area, as it
8650 needs to be of specific length.
8652 * If the key agreement port is zero then the operating
8653 system will define the bound port. Affected files are
8654 lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
8656 * Added new function silc_channel_payload_decrypt into the file
8657 lib/silccore/silcchannel.[ch].
8659 * Moved the channel message etc, check from silc_packet_decrypt
8660 to applications. The library calls now a generic
8661 SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
8662 when the packet is either normal or special. This was done to
8663 allow more wide range of checking that was not allowed when
8664 the code was in library. Now applications can do virtually any
8665 checks to the packet and return to the library the decision how
8666 the packet should be processed. Affected files are
8667 lib/silccore/silcpacket.[ch].
8669 Added silc_server_packet_decrypt_check to the server and
8670 silc_client_packet_decrypt_check to the client library.
8672 * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
8673 to send with specified source and destination information.
8675 * Channel message delivery between routers was broken after the
8676 channel key distribution was fixed earlier. The channel key
8677 was used be to distributed to other routers as well which is not
8678 allowed by the protocol. Now this is fixed and channel keys
8679 really are cell specific and the channel message delivery between
8680 routers comply with the protocol specification.
8682 * Fixed various commands in server to check also the global list
8683 for the channel entry and not just the local list. The affected
8684 file silcd/command.c.
8686 Thu Mar 8 21:39:03 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8688 * Added assert()s to buffer formatting and unformatting routines
8689 to assert (if --enable-debug) when error occurs. Affected
8690 file: lib/silcutil/silcbuffmt.c.
8692 * Changed to auto-reconnect to check whether the remote host is
8693 router and register the re-connect timeout if it is. It used
8694 to check that whether we are normal server, but router must do
8695 auto-reconnect with another router as well. Affected file
8698 * Removed the [<key len>] option from CMODE command as the cipher
8699 name decides the key length, nowadays. See the defined ciphers
8700 from the protocol specification.
8702 * Added [<hmac>] option to the CMODE command to define the HMAC
8703 for the channel. Added SILC_CMODE_HMAC channel mode.
8705 * Added [<hmac>] option for the JOIN command so that user can
8706 select which HMAC is used to compute the MACs of the channel
8709 * Added Hmac field to the Channel Message Payload. The integrity
8710 of plaintext channel messages are now protected by computing
8711 MAC of the message and attaching the MAC to the payload. The
8712 MAC is encrypted. Now, it is clear that this causes some
8713 overhead to the size of the packet but rationale for this is that
8714 now the receiver can verify whether the channel message decrypted
8715 correctly and also when private keys are set for the channel the
8716 receiver can decrypt the packet with several keys and check from
8717 the MAC which key decrypted the message correctly.
8719 * Added silc_cipher_encrypt and silc_cipher_decrypt into the
8720 lib/silccrypt/silccipher.[ch].
8722 * Added silc_hash_len to return the digest length into the
8723 lib/silcrypt/silchash.[ch].
8725 * Rewrote parts of Silc Channel Payload interface in the
8726 lib/silccore/silcchannel.[ch]. The encode function now also
8727 encrypts the packet and parse function decrypts it.
8729 Wed Mar 7 20:58:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8731 * Fixed a minor formatting bug in the SKE's key material processing.
8732 It actually might have processed the keys wrong way resulting
8735 * Redefined the mandatory HMAC algorithms and added new algorithms.
8736 Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
8737 and hmac-md5 truncated to 96 bits. The mandatory is now
8738 hmac-sha1-96. Rest are optional (including the one that used
8739 to be mandatory). Rationale for this is that the truncated HMAC
8740 length is sufficient from security point of view and can actually
8741 make the attack against the HMAC harder. Also, the truncated
8742 HMAC causes less overhead to the packets. See the RFC2104 for
8745 * Added new [hmac] configuration section. The SKE used to use
8746 the hash names (md5 and sha1) in the SKE proposal as HMCAS which
8747 is of course wrong. The official names that must be proposed in
8748 the SKE are the ones defined in the protocol specification
8749 (hmac-sha1-96 for example). The user can configure any hmac
8750 using any hash function configured in the [hash] section. At
8751 least, the mandatory must be configured.
8753 Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
8755 * Added HMAC list to the SKE proposal list. It has now both
8756 hash algorithm list and HMAC list. This makes the protocol
8757 incompatible with previous versions. The SKE now seems to work
8758 the way it is supposed to work, for the first time actually.
8760 * Defined plain Hash algorithms to the protocol specification.
8763 Tue Mar 6 15:36:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8765 * Implemented support for key agreement packets into the server.
8766 Added functions silc_server_key_agreement and
8767 silc_server_send_key_agreement. Other than these functions,
8768 server has nothing to do with this packet.
8770 * Added support for private message key packets into the server.
8771 Added functions silc_server_private_message_key and
8772 silc_server_send_private_message_key.
8776 * Changed the silc_[client|server]_protocol_ke_set_keys to be
8777 called in the protocol's final callback instead in the END
8778 protocol state. This makes a little more sense and in the same
8779 time in client we can use the same protocol routines for normal
8780 key exchange and to key agreement packet handling as well.
8782 * Added to both client's and server's KE protocol context the
8783 SilcSKEKeyMaterial pointer to save the key material. We will
8784 bring the key material to the protocol's final callback by doing
8785 this. The final callback must free the key material.
8787 * Added SKE's packet_send callback into client's KE protocol
8788 context so that the caller can choose what packet sending function
8789 is used. This way we can use different packet sending when
8790 doing normal SKE when doing key agreement packet handling (in
8791 the key agreement packet handling we do not want to encrypt
8794 * Implemented the responder side of the key agreement routines
8795 in the client. The client can now bind to specified port and
8796 accept incoming key negotiation. The key material is passed
8797 to the application after the protocol is over.
8799 * Implemented the processing of incoming Key Agreement packet
8800 in the client. Added function silc_client_key_agreement to
8803 * Implemented the intiator side of the key agreement routines
8804 in the client. The client can now initiate key agreement with
8805 another remote client. The key material is passed to the
8806 application after the protocol is over.
8808 * Created client_keyagr.c to include all the key agreement
8811 * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
8812 SILC_TASK_CALLBACK except that it is not static.
8814 * Created client_notify.c and moved the Notify packet handling
8815 from the client.[ch] into that file.
8817 * Created client_prvmsg.c and moved all private message and
8818 private message key routines from the client.[ch] into that file.
8820 * Create client_channel.c and moved all channel message and
8821 channel private key routines from the client.[ch] into that file.
8823 * Changed silc_client_get_client_by_id_resolve to resolve with
8824 WHOIS command instead of IDENTIFY command, in the file
8825 lib/silclient/idlist.c.
8827 Mon Mar 5 18:39:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8829 * Implemented the SKE's responder side to the Client library.
8831 * When FAILURE is received to the protocol do not trust it
8832 blindly. Register a timeout to wait whether the remote closes
8833 the connection as it should do it, only after that process the
8834 actual failure. This was changed to both client and server.
8836 * Added client_internal.h to include some of the structures
8837 there instead of client.h in lib/silcclient/.
8839 * Added function silc_task_unregister_by_callback to unregister
8840 timeouts by the callback function.
8842 Sat Mar 3 19:15:43 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8844 * Some "Incomplete WHOIS info" errors has been appearing on the
8845 log files. Took away the entry->userinfo check from WHOIS
8846 reply sending. The entry->userinfo is now " " if client did not
8847 provide one. I thought this was fixed earlier but something
8848 is wrong still. Let's see if the error still appears.
8850 Wed Feb 28 20:56:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8852 * Fixed a minor bug in the login when the channel key is
8853 re-generated in the server. It used to generate the key in
8854 wrong order and thus caused problems in the channel traffic.
8856 * Fixed a minor bug in channel key distsribution after
8857 KICK command. The key was not sent to the router even though
8860 Tue Feb 27 20:24:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8862 * Added silc_ske_process_key_material_data as generic routine
8863 to process any key material as the SILC protocol dictates. The
8864 function is used by the actual SKE library but can be used by
8865 applications as well. This relates to the private message keys
8866 and the channel private keys since they must be processed the
8867 same way the normal SILC session keys. The protocol dictates
8868 this. Affected files: lib/silcske/silcske.[ch].
8870 Added also silc_ske_free_key_material to free the
8871 SilcSKEKeyMaterial structure.
8873 * Defined silc_cipher_set_key function to set the key for
8874 cipher without using the object's method function. The affected
8875 files: lib/silccrypt/silccipher.[ch].
8877 * Implemented silc silc_client_add_private_message_key,
8878 silc_client_add_private_message_key_ske,
8879 silc_client_del_private_message_key,
8880 silc_client_list_private_message_keys and
8881 silc_client_free_private_message_keys functions in the
8884 Added functions silc_client_send_private_message_key to send
8885 the Private Message Key payload and silc_client_private_message_key
8886 to handle incoming Private Message Key payload.
8888 * Added Cipher field to the Private Message Key payload to set
8889 the cipher to be used. If ignored, the default cipher defined
8890 in the SILC protocol (aes-256-cbc) is used.
8892 Tue Feb 27 13:30:52 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8894 * Removed lib/silcclient/ops.h file.
8896 Redefined parts of the SILC Client Library API. Created new
8897 file silcapi.h that deprecates the ops.h file and defines the
8898 published Client Library API. Defined also private message key
8899 API and channel private key API into the file.
8901 This is the file that the application must include from the
8902 SILC Client Library. Other files need not be included by
8903 the application anymore.
8905 * Added new key_agreement client operation callback and also
8906 defined the Key Agreement library API for the application.
8908 Tue Feb 27 11:28:31 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8910 * Added new packet type: SILC_PACKET_KEY_AGREEMENT. This packet
8911 is used by clients to request key negotiation between another
8912 client in the SILC network. If the negotiation is started it
8913 is performed using the SKE protocol. The result of the
8914 negotiation, the secret key material, can be used for example
8915 as private message key.
8917 Implemented the Key Agreement payload into the files
8918 lib/silccore/silauth.[ch].
8920 Mon Feb 26 12:13:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8922 * Redefined ciphers for the SILC protocol. Added some new ciphers
8923 and defined the key lengths for the algorithms. Changed the
8924 code accordingly. The default key length is now 256 bits.
8926 * Fixed SKE key distribution function silc_ske_process_key_material
8927 when the key length is more than 128 bits. The default key
8928 length in SILC is now 256 bits.
8930 * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
8931 to indicate unsupported algorithm.
8933 * Renamed rijndael.c to aes.c and all functions as well.
8935 * Fixed a long standing channel key setting bug in client library.
8936 Weird that it has never surfaced before.
8938 * Fixed bug in channel deletion. If the entire channel is removed
8939 then it must also delete the references of the channel entry
8940 from the client's channel list as the client's channel entry and
8941 the channel's client entry share same memory.
8943 Sun Feb 25 20:47:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8945 * Implemented CONNECT and SHUTDOWN commands in the client.
8947 * Implemented CLOSE command to the client.
8949 * Added the function silc_idlist_find_server_by_name into the
8950 files silcd/idlist.[ch].
8952 Added the function silc_idlist_find_server_by_conn into the
8953 files silcd/idlist.[ch].
8955 Sat Feb 24 23:45:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8957 * DIE command was renamed to SHUTDOWN. Updated the both code
8960 * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
8961 SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
8963 * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
8966 * Added function silc_server_create_connection function to create
8967 connection to remote router. My server implementation actually
8968 does not allow router to connect to normal server (it expects
8969 that normal server always initiates the connection to the router)
8970 so the CONNECT command is only good for connecting to another
8973 Sat Feb 24 16:03:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8975 * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
8976 or some other client was kicked from the channel.
8978 Implemented the handling of the notify type to both client
8981 Implemented silc_server_send_notify_kicked to send the KICKED
8982 notify. It is used to send it to the server's primary router.
8984 * Implemented the KICK command into server and client.
8986 * Added `query' argument to the silc_idlist_get_client function
8987 to indicate whether to query the client from server or not if
8990 * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
8991 to indicate that the client is not channel founder.
8995 Sat Feb 24 00:00:55 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
8997 * Removed the rng context from SilcPacketContext structure and
8998 changed that the packet routine uses the Global RNG API.
9000 Fri Feb 23 11:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9002 * Added support for quit message that client can "leave" on the
9003 channel when it quits the SILC. It is ditributed inside the
9004 SILC_NOTIFY_TYPE_SIGNOFF notify type.
9006 Added silc_server_free_client_data that will take the
9007 signoff message as argument.
9009 * Changed SKE routines to use the silc_pkcs_sign/verify routines.
9011 Thu Feb 22 23:05:36 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9013 * Updated parts of the protocol specification to keep it up
9016 Thu Feb 22 15:08:20 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9018 * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
9019 payloads in one packet.
9021 * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
9022 NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST. List packets
9023 use now the new List flag.
9025 * Also deprecated the following packet types: REPLACE_ID,
9026 NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
9028 * Added list support for Notify packet in server.
9030 * Added silc_server_send_notify_channel_change to send the
9031 CHANNEL_CHANGE notify type to replace channel ID's. Deprecates
9032 the silc_server_send_replace_id.
9034 * Added silc_server_send_notify_nick_change to send the
9035 NICK_CHANGE notify type. Deprecates the function
9036 silc_server_send_replace_id.
9038 * Added silc_server_send_notify_join to send the JOIN notify type.
9039 Deprecates the function silc_server_send_new_channel_user.
9041 * Added silc_server_send_notify_leave to send LEAVE notify type.
9042 Deprecates the function silc_server_send_remove_channel_user.
9044 * Added silc_server_send_notify_cmode and
9045 silc_server_send_notify_cumode to send CMODE and CUMODE notify
9046 types. Deprecates the silc_server_send_set_mode function.
9048 * Added SERVER_SIGNOFF notify type to indicate that server has
9049 quit. This means that all clients on the channel from that
9050 server will drop. This can be also used when netsplit happens.
9052 Deprecated REMOVE_ID packet type since it is not needed anymore
9055 Added silc_server_send_notify_server_signoff to send the
9056 SERVER_SIGNOFF notify type. Deprecates the function
9057 silc_server_send_remove_id.
9059 Added also silc_server_send_notify_signoff to send the
9060 SIGNOFF notify type.
9062 * Employed the PKCS #1. It is the mandatory way to do RSA in the
9063 SILC protocol from this day on. Changed the protocol
9064 specification as well.
9066 * Added silc_server_send_notify_topic_set to send TOPIC_SET
9067 notify type. It is used between routers to notify about
9068 topic changes on a channel.
9070 * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
9073 * Partly updated the protocol specification to comply with the
9074 changes now made. It is still though a bit outdated.
9076 * The JOIN notify type now takes one extra argument <Channel ID>.
9077 The packet used to be destined to the channel but now the
9078 JOIN type may be sent as list thus it is impossible to
9079 destine it to any specific channel. By adding this argument
9080 it is again possible.
9082 Wed Feb 21 22:39:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9084 * Added CREDITS file. The CHANGES and CREDITS file will appear
9085 in the distribution as well.
9087 Wed Feb 21 14:17:04 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9089 * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
9090 types in the server's silcd/packet_receive.c.
9092 * Implemented CMODE and CUMODE to work in router environment.
9094 * Fixed minor encoding and decoding buglet from the
9095 lib/silccore/silcmode.c.
9097 * Fixed buffer overflow from lib/silcclient/command.c in USERS
9100 Wed Feb 21 12:44:00 EET 2001 Mika Boström <bostik@lut.fi>
9102 * Changed all SilcConfigServer* and silc_config_server* to
9103 SilcServerConfig* and silc_server_config*, respectively.
9106 Wed Feb 21 00:10:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9108 * Associated the ID (client or server ID) to the Authentication
9109 Payload to avoid any possibility of forging. Updated the
9110 protocol specification and the code accordingly.
9112 Tue Feb 20 14:14:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9114 * The RSA key length is now save to the RsaKey context in the
9115 key generation process in lib/silccrypt/rsa.c. The key length
9116 is now used to figure out the maximum size of the block allowed
9117 to be encrypted/signed.
9119 * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch]. It
9120 is equivalent to the silc_mp_mp2bin but does not allocate any
9123 * Changed silc_mp_mp2bin API to take length argument. If it is
9124 non-zero then the buffer is allocated that large. If zero, then
9125 the size is approximated using silc_mp_sizeinbase, which however
9128 * Created Global RNG API which is global RNG that application can
9129 initialize. After initializing, any routine anywhere in the
9130 code (including library) can use RNG without allocating a new
9131 RNG object. This was done to allow this sort of use of the
9132 RNG in code that has no chance to allocate RNG object. All
9133 applications currently allocate this and many routines in the
9134 library use this. Affected file lib/silccrypt/silcrng.[ch].
9136 * Removed the RNG kludge from lib/silcmath/primegen.c and changed
9137 it to use the Global RNG API.
9139 * Defined Authentication Payload into protocol specification that
9140 is used during SILC session to authenticate entities. It is
9141 used for example by client to authenticate itself to the server
9142 to obtain server operator privileges.
9144 Implemented this payload into the lib/silccore/silcauth.[ch].
9145 Implemented also routines for public key based authentication
9146 as the new protocol specification dictates.
9148 Moved definitions of different authentication methods from
9149 lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
9151 * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
9152 silc_pkcs_verify and silc_pkcs_sign_with_hash and
9153 silc_pkcs_verify_with_hash functions into the file
9154 lib/silccrypt/silcpkcs.[ch].
9156 Mon Feb 19 19:59:28 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9158 * The client entry's userinfo pointer must be always valid.
9159 Otherwise the [<unknown>] bug will surface beacuse the WHOIS
9160 will fail since it requires the userinfo. Now, the userinfo
9161 is allocated as "" if actual userinfo does not exist. Actually,
9162 it must exist and it is totally Ok to drop client connections
9163 that does not announce the userinfo. However, we will make
9164 this workaround for now.
9166 * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
9167 to return the remote port by socket.
9169 Mon Feb 19 14:26:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9171 * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
9172 SILC_SERVER_PENDING_EXEC and added an new macro
9173 SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
9174 data or when error occurs while processing the pending command.
9176 Added new argument `destructor' into silc_server_command_pending
9177 and to the SilcServerCommandPending object. This destructor is
9178 now called after calling the pending callback or if error occurs
9179 immediately. If error occurs the actual pending callback won't
9180 be called at all - only the destructor. The destructor may be
9181 NULL if destructor is not needed.
9183 All this applies for client library code as well. Similar
9184 changes were made there as well for the pending commands.
9186 In the client, the application must now allocate the
9187 SilcClientCommandContext with the silc_client_command_alloc
9190 * Added reference counter to the SilcServerCommandContext. Added
9191 function silc_server_command_alloc and silc_server_command_dup
9194 Same type of functions added to the client library for the same
9197 * Removed the cmd_ident from IDListData away since it is now
9198 global for all connections. It is the command identifier used
9199 in command sending and with pending commands. The affected file
9202 * Added reference counter to the SilcSocketConnection objecet to
9203 indicate the usage count of the object. The object won't be
9204 freed untill the reference counter hits zero. Currently only
9205 server uses this, and client ignores it. The client must be
9206 set to use this too later. The affected files are
9207 lib/silccore/silcsockconn.[ch]. Added also the function
9208 silc_socket_dup to increase the reference counter.
9210 This was mainly added because it is possible that the socket
9211 is removed underneath of pending command or other async
9212 operation. Now it won't be free'd and proper DISCONNECTING
9213 flags, etc. can be set to avoid sending data to connection that
9214 is not valid anymore.
9216 * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
9217 the connection. After that it sets SILC_SET_DISCONNECTED.
9218 It is, however, possible that the socket data is not still freed.
9219 The silc_server_packet_process now checks that data is not
9220 read or written to connection that is DISCONNECTED. The socket
9221 get's freed when the reference counter hits zero.
9223 Mon Feb 19 00:50:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9225 * Changed the client operation API: channel_message operation's
9226 `sender' is now the client entry of the sender, not the nickname
9227 and the `channel' is the channel entry, not the channel name.
9229 In the private_message operation the `sender' is now also the
9230 client entry of the sender not the nickname.
9232 Affected file is lib/silcclient/ops.h and all applications
9233 using the client operations.
9235 Sat Feb 17 22:11:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9237 * Moved the calling of ops->connect() from connect_to_server_final
9238 into receive_new_id functin since that is the point when the
9239 client is actually allowed to send traffic to network. The
9240 affected file is lib/silcclient/client.c.
9242 Sat Feb 17 13:15:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9244 * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
9245 NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
9246 (if needs broadcasting) instead of broadcasting the packets one
9247 by one which would make a burst in the network traffic.
9249 * Added `broadcast' argument to the functions in silcd/server.[ch]
9250 silc_server_create_new_channel[_with_id] to indicate whether
9251 to send New Channel packet to primary router.
9253 Sat Feb 17 01:06:44 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9255 * Added new function into the silcd/server.[ch] files:
9256 silc_server_create_new_channel_with_id to create new channel with
9257 already existing Channel ID.
9259 * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
9260 lib/silccore/silcpacket.h. This packet is used t send list of
9261 Set Mode payloads inside one packet. Server uses this to set
9262 the modes for the channels and clients on those channels, that it
9263 announced to the router when it connected to it. The protocol
9264 specification has been updated accordingly.
9266 * The silc_server_new_channel did not handle the packet coming
9267 from normal server as it normally does not send that. However,
9268 when it announces its channels it does send it. Implemented
9269 the support for that.
9271 * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
9272 into the file lib/silccore/id.h.
9274 Fri Feb 16 23:57:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9276 * Fixed memory leaks in the functions silc_idlist_del_client,
9277 silc_idlist_del_channel and silc_idlist_del_server in the file
9278 silcd/idlist.c. All of those leaked like a sieve.
9280 * Fixed some small memory leaks in the client's function
9281 silc_client_notify_by_server.
9283 * Added functions into silcd/server.c: silc_server_announce_clients,
9284 silc_server_announce_channels and silc_server_announce_server.
9285 These functions are used by normal and router server to announce
9286 to its primary router about clients, channels and servers (when
9287 router) that we own. This is done after we've connected to the
9290 These functions effectively implements the following packet types:
9291 SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
9292 and SILC_PACKET_NEW_ID_LIST.
9294 * Added new functions into the silcd/packet_receive.[ch]:
9295 silc_server_new_id_list, silc_server_new_channel_list and
9296 silc_server_new_channel_user_list to handle the incoming
9297 NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
9299 * Added support of changing Channel ID in the function
9300 silc_server_replace_id. If the server that announces a channel
9301 to the router already exists in the router (with same name but
9302 with different Channel ID), router is responsible to send
9303 Replace ID packet to the server and force the server to change
9304 the Channel ID to the one router has.
9306 * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
9307 client that the Channel ID has been changed by the router. The
9308 normal server sends this to the client. Client must start using
9309 the new Channel ID as the channel's ID.
9311 Implemented handling of this new type into lib/silcclient/client.c
9312 into the function silc_client_notify_by_server.
9314 * Added new function silc_idlist_replace_channel_id into the files
9315 silcd/idlist.[ch] to replace the Channel ID.
9317 Fri Feb 16 14:14:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9319 * Call silc_server_command_identify_check always when processing
9320 the IDENTIFY command in silcd/command.c
9322 Thu Feb 15 20:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9324 * Added new packet type SILC_PACKET_HEARTBEAT that is used to
9325 send keepalive packets. The packet can be sent by clients,
9326 servers and routers.
9328 Added function silc_socket_set_heartbeat into the file
9329 lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
9330 If not set, the heartbeat is not performed. The actual
9331 heartbeat is implemented in the low level socket connection
9332 library. However, application is responsible of actually
9335 Added silc_server_send_heartbeat to send the actual heartbeat
9336 packet into silcd/packet_send.[ch]. Server now performs
9337 keepalive with all connections.
9339 * Added silc_task_get_first function into lib/silcutil/silctask.c
9340 to return the timeout task with shortest timeout. There was a bug
9341 in task unregistration that caused problems. TODO has been
9342 updated to include that task system must be rewritten.
9344 * The client library will now resolve the client information when
9345 receiving JOIN notify from server for client that we know but
9346 have incomplete information.
9348 * Rewrote parts of silc_server_remove_from_channels and
9349 silc_server_remove_from_one_channel as they did not remove the
9350 channel in some circumstances even though they should've.
9352 * Encryption problem encountered in server:
9354 The LEAVE command used to send the Channel Key packet to the
9355 router immediately after generating it. However, the code
9356 had earlier sent Remove Channel user packet but not immediately,
9357 ie. it was put to queue. The order of packets in the router
9358 was that Channel Key packet was first and Remove Channel User
9359 packet was second, even though they were encrypted in the
9360 reverse order. For this reason, MAC check failed. Now, this
9361 is fixed by not sending the Channel Key packet immediately but
9362 putting it to queue. However, this is more fundamental problem:
9363 packets that are in queue should actually not be encrypted
9364 because packets that are sent immediately gets encrypted
9365 actually with wrong IV (and thus MAC check fails). So, packets
9366 that are in queue should be encrypted when they are sent to
9367 the wire and not when they put to the queue.
9369 However, the problem is that the current system has not been
9370 designed to work that way. Instead, the packet is encrypted
9371 as soon as possible and left to the queue. The queue is then
9372 just purged into wire. There won't be any fixes for this
9373 any time soon. So, the current semantic for packet sending
9376 o If you send packet to remote host and do not force the send
9377 (the packet will be in queue) then all subsequent packets to the
9378 same remote host must also be put to the queue. Only after the
9379 queue has been purged is it safe again to force the packet
9382 o If you send all packets immediately then it safe to send
9383 any of subsequent packets through the queue, however, after
9384 the first packet is put to queue then any subsequent packets
9385 must also be put to the queue.
9387 Follow these rules and everything works fine.
9389 Thu Feb 15 14:24:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9391 * Added new function silc_server_remove_clients_by_server to
9392 remove all client entries from ID list when the server connection
9393 is lost. In this case it is also important to invalidate all
9394 client entires as they hold the invalid server entry. This
9395 fixes fatal bug when server has lost connection and will reconnect
9398 Wed Feb 14 16:03:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9400 * Made some sanity checks to silc_server_daemonise like to check
9401 whether the requested user and group actually exists.
9403 * Added sanity check to SKE's silc_ske_responder_finish to check
9404 that the public and private key actually is valid.
9406 * Invalidate the client's nickname when receiving Replace ID
9407 packet and the Client ID is being replaced. This means that the
9408 server will query the nickname if someone needs it (client)
9411 * Sort the ID Cache in client library when the ID Cache data
9412 has changed (needs sorting).
9414 * Do not allow for SILC client to create several connections to
9415 several servers. The client does not support windows right now
9416 and generating multiple connections causes weird behaviour.
9418 Irssi-silc client does support windows and can handle several
9419 connections without problems, see: www.irssi.org and SILC plugin.
9421 * Fixed some places where client was added to the IDList. The
9422 rule of thumb is following (in order to get everything right):
9423 If the client is directly connected local client then the
9424 `connection' argument must be set and `router' argument must be
9425 NULL to silc_idlist_add_client function. If the client is not
9426 directly connected client then the `router' argument must
9427 bet set and the `connection' argument must be NULL to the
9428 silc_idlist_add_client function.
9430 * The funtion silc_server_packet_send_local_channel actually did
9431 not check whether the client was locally connected or not. It
9432 does that now. Fixed a bug related to LEAVE command.
9434 * Fixed Remove Channel User payload parsing bug in server's
9435 silcd/packet_receive.c. Fixed a bug related to LEAVE command.
9437 * The server's silc_server_save_channel_key now checks also the
9438 global ID list for the channel as it might not be in the local
9439 list. Fixed a bug related to LEAVE command.
9441 * Is this the end of the [<unknown>] buglet that has been lurking
9442 around for a long time? A little for loop fix in server's
9443 silc_server_command_whois_parse that is used by both IDENTIFY
9444 and WHOIS command. At least, this was a clear bug and a cause
9445 of one type of [<unknown>] buglet.
9447 * WHOIS and IDENTIFY commands call the function
9448 silc_server_command_[whois/identify]_check function even if
9449 we are not router server.
9451 Tue Feb 13 19:55:59 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9453 * Added --with-gmp configuration option. If set the GMP
9454 is always compiled in the SILC source tree. If not set then
9455 it is checked whether the system has the GMP3 installed. If
9456 it has then the GMP won't be compiled (the system's headers
9457 and library is used), if it doesn't have it then the GMP is
9458 compiled in the SILC source tree.
9460 Mon Feb 12 11:20:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9462 * Changed RSA private exponent generation to what PKCS #1
9463 suggests. We try to find the smallest possible d by doing
9464 modinv(e, lcm(phi)) instead of modinv(e, phi). Note: this is
9465 not security fix but optimization.
9467 Sun Feb 11 18:19:51 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9469 * Added new config entry [Identity] to fork the server and run
9470 it as specific user and group. A patch from Bostik.
9472 * Imported Dotconf configuration library into lib/dotconf.
9473 This will be used to create the SILC configuration files later.
9474 It will appear in the distsribution after this commit.
9476 Sat Feb 10 21:13:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9478 * A big code auditing weekend happening. Auditing code for
9479 obvious mistakes, bugs and errors. Also, removing any code
9482 Removed files for being obsolete:
9484 o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
9485 inline in the file lib/silcutil/silcbuffer.h)
9487 o lib/silcutil/silcbufutil.c (the header has inline versions)
9489 Changed code to fix possible error conditions:
9491 o The buffer formatting routines now check that the destination
9492 buffer really has enough space to add the data. This applies for
9493 both buffer formatting and unformatting
9494 (lib/silcutil/silcbuffmt.[ch]). Also, the entire buffer
9495 unformatting was changed to accomodate following rules:
9496 XXX_*STRING_ALLOC will allocate space for the data into the pointer
9497 sent to the function while XXX_*STRING will not allocate or copy
9498 the data into the buffer. Instead it sets the pointer from the
9499 buffer into the pointer sent as argument (XXX_*STRING used to
9500 require that the pointer must be allocated already). This change
9501 makes this whole thing a bit more consistent and more optimized
9502 (note that the data returned in the unformatting with XXX_*STRING
9503 must not be freed now). The routines return now -1 on error.
9505 o Tried to find all code that use buffer_format and buffer_unformat
9506 and added return value checking to prevent formatting and
9507 especially unformatting errors and possible subsequent fatal
9510 o Changed ske->x and ske->KEY to mallocated pointers in
9511 lib/silcske/silcske.h. Fixed possible data and memory leak.
9513 o Added return value checking to all *_parse* functions. Fixed
9514 many memory leaks as well.
9516 o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
9517 so that buffer overflows would not happen. All code now also
9518 checks the return value as it can fail.
9520 Mon Feb 5 20:08:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9522 * Added reconnection support to server if the normal server looses
9523 its connection to the router (for example if router is rebooted).
9524 The server performs normal reconnection strategy implemented
9525 to the server. Affected file silcd/server.c.
9527 Sun Feb 4 13:18:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9529 * Added new packet type SILC_PACKET_SET_MODE that is used to
9530 distribute the information about changed modes (for clients,
9531 channels and clients channel modes) to all routers in the
9532 network. Updated the protocol specification accordingly.
9534 Added functions into silcd/packet_send.c and
9535 silcd/packet_receive.c: silc_server_send_set_mode,
9536 silc_server_set_mode.
9538 Added new files silcmode.[ch] into lib/silccore that implements
9539 the encoding and decoding of Set Mode Payload. Added new type
9540 SilcSetModePayload. Moved the definitions of different modes
9541 from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
9543 Sat Feb 3 15:44:54 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9545 * Oops, a little mistake in server's connection authentication
9546 protocol. The protocol is not ended with FAILURE but with
9547 SUCCESS if the authentication is Ok. :) Affected file is
9550 * Implemented NICK_CHANGE notify handling in server in the file
9551 silcd/packet_receive.c The NICK_CHANGE notify is distributed to
9552 the local clients on the channel. After the changing nickname
9553 in router environment snhould work and the [<unknown>] nickname
9554 should appear no more.
9556 The silc_server_replace_id function that receives the Replace ID
9557 payload now sends the NICK_CHANGE notify type also in the file
9558 silcd/packet_receive.c
9560 * Changed WHOIS and IDENTIFY command to support the maximum amount
9561 of arguments defined in protocol specs (3328 arguments). This
9562 fixed a bug that caused problems when there were more than three
9565 Fri Feb 2 11:42:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9567 * Added extra parameter, command identifier, to the
9568 silc_client_send_command so that explicit command identifier
9571 Changed that ID list routines uses specific command identifier
9572 when sending WHOIS/IDENTIFY requests to the server so that they
9573 can be identified when the reply comes back.
9575 Affected files lib/silcclient/command.[ch],
9576 lib/silcclient/client.c and lib/silcclient/idlist.[ch].
9578 * Added `sender' argument to silc_server_packet_send_to_channel
9579 to indicaet the sender who originally sent the packet to us
9580 that we are now re-sending. Ignored if NULL. Affected file
9581 silcd/packet_send.[ch].
9583 * Added some server statistics support in silcd/server_internal.h
9584 SilcServerStatistics structure and around the server code. Also
9585 send some nice statistics information when client is connecting
9588 Thu Feb 1 23:31:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9590 * Fixed channel ID decoding in server's JOIN command reply in
9591 silcd/command_reply.c
9593 * Fixed braodcasting of replace ID payload to not to send it if
9594 we are standalone server in silcd/packet_receive.c.
9596 * Fixed all channel message sending routines to not to send
9597 packets to clients that has router set, since they are routed
9598 separately in the same function earlier. Affects file
9599 silcd/packet_send.c and all channel packet sending functions.
9601 * In USERS reply, res_argv[i] are not allocated, the table
9602 is allocated. Thus changed that free the table, not its
9605 * In server's whois_check and identify_check if the client is
9606 locally connected do not send any WHOIS commands - they are not
9609 Thu Feb 1 21:32:27 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9611 * Fixed some minor bugs in client when sending WHOIS command. The
9612 arguments was in wrong order.
9614 * Removed statis function add_to_channel from server in
9615 silcd/command.c that was previously used with the joining but
9618 * Tested USERS command in router environment successfully with two
9619 routers, two servers and two clients.
9621 Thu Feb 1 00:54:26 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9623 * Reorganized the USERS command and command reply in client library
9624 in lib/silcclient/command.c and lib/silcclient/command_reply.c.
9625 When the command is given by user we register a pending command
9626 callback that will reprocess the command after the reply has been
9627 received from the server. When reprocessing the packet we then
9628 display the information. Thus, the USERS information is displayed
9629 now in the command callback instead of in the command reply
9630 callback. The processing of the command is same as previously
9631 when server has sent the command reply in the JOINing process.
9633 * Added to USERS command in silcd/command_reply.c to join the client,
9634 we didn't use to know about, to the channel after we've created
9635 a client entry for it. Also, for clienet we did know already still
9636 check whether it is on the channel or not and add it if not.
9638 * Removed silc_server_command_join_notify as the function and its
9641 Tue Jan 30 22:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9643 * Changed the client's pending command handling to the same as the
9644 server's pending command handling. It is also now possible to
9645 execute command reply functions from other command reply
9646 function as the function callbacks for commands and command
9647 replies are one and same. The pending commands are not static
9648 list anymore, it is mallocated SilcDList in lib/silcclient/client.h
9649 in client connection context. Thus, pending commands are server
9650 connection specific as it is convenient.
9652 Changed the function silc_client_command_pending and
9653 silc_client_command_pending_del and added new function
9654 silc_client_command_pending_check. Removed the
9655 SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
9658 * Added cmd_ident, current command identifier, to the client
9659 connection context in lib/silcclient/client.h to keep track on
9660 command identifiers used in command sending. Client's command reply
9661 function handling now supports the mandatory command identifiers.
9663 * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
9664 funtions in client to fully support pending command callbacks.
9666 * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
9667 as one of the arguments to the application in the command reply
9670 * NOTE: The FORWARDED flag is depracated. It used to be depracated
9671 before first releasing SILC but came back. Now it is removed again
9672 and should come back nomore. The FORWARDED flag was used only
9673 by the JOINing procedure by forwarding the command packet to router.
9674 Now, the JOINing procedure has been changed to more generic (due
9675 to various router environment issues) and FORWARDED is not needed
9676 anymore for anything. The protocol specification is yet to be
9679 Now, removed silc_server_packet_forward from server and the flag
9680 SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
9682 Tue Jan 30 00:05:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9684 * Renamed NAMES command to USERS command. The NAMES was named that
9685 due to historical reasons. Now it is renamed. Also, rewrote
9686 parts of the USERS command. The nickname list is not sent anymore
9687 by the server. Only Client ID and mode lists are sent in the USERS
9688 command. Changed this also to the protocol specification.
9690 The client now resolves the names and stuff after it receives
9691 the USERS list from the server when joining to the channel.
9693 * WHOIS and IDENTIFY commands has been changed to support multiple
9694 Client ID's per command. One can now search for multiple users
9695 in the network by sending only one WHOIS or IDENTIFY command.
9696 Changed the code and the protocol specifications.
9698 * Removed silc_server_command_identify_parse and changed that IDENTIFY
9699 uses silc_server_command_whois_parse to parse the request. */
9701 * If normal server, do not parse the WHOIS and IDENTIFY requests
9702 before sending it to the router. Saves some time.
9704 Sun Jan 28 16:19:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9706 * Fixed JOIN command on client library. Wrong number of arguments
9707 used to crash the client.
9709 * Added silc_server_channel_has_global function to check whether
9710 channel has global users or not.
9712 * Added silc_server_channel_has_local function to check whether channel
9713 has locally connected clients on the channel.
9715 * The silc_server_remove_from_one_channel now checks whether the
9716 channel has global users or not after given client was removed from
9717 the channel. It also checks whether the channel has local clients
9718 on the channel anymore. If it does not have then the channel entry
9719 is removed as it is not needed anymore.
9721 * The silc_server_notify now checks on JOIN notify whether the joining
9722 client is one of locally connected or global. If it is global then
9723 the channel has now global users on the channel and that is marked
9724 to the channel entry. Also, it now saves the global client to
9725 global list who is joining and JOINs it to the channel. This is
9726 for normal server, that is.
9728 Changed silc_server_send_notify_on_channel,
9729 silc_server_packet_relay_to_channel and
9730 silc_server_packet_send_to_channel check if we are normal server
9731 and client has router set (ie. global client) do not send the
9732 message to that client, as it is already routed to our router.
9734 * Implemented LEAVE notify type handling in silc_server_notify
9737 * Tested LEAVE command in router environment successfully. Tested
9738 with two routers, two servers and two clients.
9742 * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
9744 * Implemented SIGNOFF notify type handling in silc_server_notify
9747 * silc_server_remove_id now removes the client entry from all channels
9748 it has joined and thusly sends SIGNOFF notify type.
9750 * Rewrote the NAMES list generation in server by removing two excess
9751 loops. The lists are created now inside one loop.
9753 Sat Jan 27 22:34:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9755 * silc_server_remove_channel_user checks now also global list
9756 for channel and client.
9758 * silc_server_new_channel_user checks now both local and global
9759 list for channel and client. Fixed a bug in client id decoding.
9760 Used to decode wrong buffer.
9762 * silc_server_channel_message checks now both local and global
9763 list for channel entry.
9765 * Tested channel joining (hence JOIN) in router environment
9766 successfully. Tested with two routers, two servers and two
9769 * Tested channel message sending in router environment successfully.
9771 Thu Jan 11 03:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
9773 * Added silc_server_save_channel_key into server.[ch] to save the
9774 received channel key in Channel Key payload processing. It is
9775 also used in JOIN command reply handling.
9777 Equivalent function silc_client_save_channel_key added into
9778 client.[ch] into client library.
9780 * Changed JOIN command reply to send information whether the channel
9781 was created or not (is existing already) and the channel key
9782 payload. Changed protocol specs accordingly.
9784 * Fixed bugs in WHOIS and IDENTIFY command reply sending when
9785 the request was sent by ID and not by nickname. Crashed on
9788 Sat Dec 23 21:55:07 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9790 * Fixed a bug in Client library. IDENTIFY and WHOIS reply functions
9791 now correctly save the received data.
9793 * silc_server_free_sock_user_data now notifies routers in the
9794 network about entities leaving the network.
9796 At the same time implemented functions silc_server_remove_id
9797 and silc_server_send_remove_id to receive and send REMOVE_ID
9798 packets. The packet is used to notify routers in the network
9799 about leaving entities. The ID removed will become invalid in
9802 * Added function silc_idlist_del_server into server. Removes and
9803 free's server entry from ID list.
9805 * silc_server_private_message function now checks, if we are router,
9806 that the destination ID really is valid ID, naturally.
9808 * In router when NEW_ID packet is received (for new client) the
9809 hash of the Client ID is saved in the ID Cache but the
9810 client->nickname is set to NULL, instead of putting the hash
9813 IDENTIFY command now also checks that client->nickname must be
9814 valid. If it is not if will request the data from the server who
9815 owns the client. Added new function
9816 silc_server_command_identify_check.
9818 * Added silc_command_set_command into lib/silccore/silcommand.[ch]
9819 to set the command to already allocated Command Payload.
9821 * Tested private message sending in router environment with two
9822 routers, two servers and two clients. Fixed minor bugs and now
9825 * Fixed segfault from client's NAMES command. Used to crash if
9828 * Forwarded packets must not be routed even if it is not destined
9829 to the receiver. Changed server code comply with this.
9831 Sun Dec 17 14:40:08 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9833 * Added `require_reverse_mapping' boolean value to ServerParams
9834 structure. If TRUE (not default) the server will require that
9835 the connecting host has fully qualified domain name.
9837 If the reverse mapping is not required and hostname could not be
9838 found the IP address is used as hostname.
9840 Sat Dec 16 17:39:54 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9842 * Implemented version string checking to both client and server.
9843 The check is incomplete currently due to the abnormal version
9844 strings used in development version of SILC.
9846 * Changed all command functions in server to use the new
9849 Fri Dec 15 15:55:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9851 * Changed char *data to unsigned char *data in ID Cache system to
9852 support binary data as ID Cache data. Changed code to support
9853 binary data in lib/silccore/idcache.c.
9855 * Renamed silc_server_packet_relay_command_reply to
9856 silc_server_command_reply as it is normal packet receiving
9857 function. Rewrote the function to accept command replys for
9858 servers and not only for clients.
9860 * Mark remote router always as registered server if we are connecting
9861 to it. Otherwise, commands sent by the router to us are ignored.
9863 * All ID List find routines now returns the ID Cache Entry pointer
9864 as well if requested.
9866 * WHOIS command works now in router environment, tested with two
9867 routers, two servers and two clients.
9869 * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
9870 in router environment (as it is almost equivalent to WHOIS) but
9871 hasn't been tested thoroughly. Added new functions:
9873 silc_server_command_identify_parse
9874 silc_server_command_identify_send_reply
9875 silc_server_command_identify_from_client
9876 silc_server_command_identify_from_server
9878 * Disabled route cache adding because adding two different ID's with
9879 same IP replaces the old cache entry thus giving wrong route.
9880 The entry->router->connection is always the fastest route anyway
9881 so route cache may not be needed. Of course, new routes maybe
9882 established after receiving the ID when the entry->router->connection
9883 might not be anymore the most optimal.
9885 Thu Dec 14 15:55:35 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9887 * Add route cache for received ID for fast routing.
9889 * Added silc_server_packet_route to route received packet on router
9890 that is not destined to us.
9892 * Renamed silc_server_get_route to silc_server_route_get.
9894 * Added id_string and id_string_len fields into SilcServer to
9895 include encoded ServerID for fast comparing without excess
9896 encoding of the ID's.
9898 * Cleaned up WHOIS command on server side. Added following static
9901 silc_server_command_whois_parse
9902 silc_server_command_whois_check
9903 silc_server_command_whois_send_reply
9904 silc_server_command_whois_from_client
9905 silc_server_command_whois_from_server
9907 * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
9908 arguments in command replies. All command functions should be
9909 updated to use this macro.
9911 Sun Dec 10 23:52:00 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9913 * Minor typo fixes on command reply handling on server.
9915 Tue Nov 28 11:05:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9917 * Added silc_server_command_add_to_channel internal routine to add
9918 the client to the channel after router has created the channel and
9919 sent command reply to the server.
9921 * Added generic silc_server_send_command to send any command from
9924 * Use static buffer with ID rendering instead of duplicating data.
9926 Mon Nov 27 21:39:40 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9928 * Fixed a channel user mode bug when joining to a channel server gave
9929 everybody channel founder rights, oops.
9931 * We mark ourselves as the router of the incoming server connection
9932 if we are router ourselves. This way we can check in some packet
9933 sending functions whether it is locally connected server. For
9934 incoming router connections we put NULL.
9936 * For router sending packets locally means now always sending the
9937 packet cell wide; to local clients and local servers. For normal
9938 server sending packet locally means sending it to only local
9941 * Fixed the JOIN command to really work in router environment. If the
9942 channel is created it is always created by the router. Router is
9943 also responsible of making the initial joining to the channel,
9944 sending JOIN notify to the sending server and distributing
9945 NEW_CHANNEL and NEW_CHANNEL_USER packets. Hence, if the channel
9946 does not exist server doesn't do anything else but forward the
9947 command to the router which performs everything.
9949 * Added silc_server_send_channel_key function to send the Channel Key
9952 * Added silc_server_create_channel_key to create new channel key. The
9953 channel key is now re-generated everytime someone joins or leaves
9954 a channel, as protocol dictates. Note: channel->key_len is the
9957 Wed Nov 22 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9959 * Splitted server.[ch] finally. Created now packet_send.[ch] and
9960 packet_receive.[ch] to separate packet sending and receiving
9961 routines. The server.[ch] now includes everything else including
9962 actual packet processing (writing and reading data) and other
9965 Renamed silc_server_private_message_send_internal to
9966 silc_server_send_private_message. The routine is still though
9967 used only to relay private messages as server does not send
9968 private messages itself.
9970 Renamed silc_server_new_channel to silc_server_create_new_channel
9971 and added new function sicl_server_new_channel that handles the
9972 incoming New Channel packet. Added also new sending function
9973 silc_server_send_new_channel to send New Channel Payload.
9975 * Added new function silc_server_notify to process incoming notify
9976 packet to the server/router. Server may then relay the notify
9977 to clients if needed.
9979 * Added new function silc_server_new_channel_user to process incoming
9980 New Channel User packet. Router will redistribute the packet and
9981 send JOIN notify to its local clients and locally connected servers
9982 if needed. Normal server will send JOIN notify to its local client
9983 on same channel when received this packet. Added also corresponding
9984 sending function silc_server_send_new_channel_user to sent the
9987 * Added boolean route argument to send_notif_to_channel and
9988 packet_send_to_channel functions to attempt to route the packet
9989 if it is TRUE and send only locally if it is FALSE.
9991 Tue Nov 21 19:49:31 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
9993 * silc_server_replace_id now broadcasts the received replace ID
9994 packet if it is not broadcast packet already. The router must
9995 broadcast to inform other routers about changed ID.
9997 * Added backpointer to server's router into SilcServer context in
9998 silcd/server_internal.h.
10000 * Fixed silc_server_packet_broadcast to send correct broadcast
10003 * The channel key is now distributed to the local client as soon
10004 as it is received from the router (in router environment) so that
10005 no other packet may be sent for the channel until client has
10008 * silc_server_remove_channel_user now broadcasts the received
10009 Remove Channel User packet if it is not broadcast packet already.
10010 The router must broadcast to inform other routers about removed
10013 * Added users field into SilcPacketContext that is a reference count
10014 of the context. One can increase the reference count by calling
10015 silc_packet_context_dup which is now changed to just increase the
10016 reference count instead of duplicating the data. The reference
10017 count is decresed by calling silc_packet_context_free that will
10018 free the data after the reference count hits zero.
10020 For now on the packet context and everything allocated into it
10021 (including the raw packet from network) must be freed by calling
10022 the new silc_packet_context_free function. Added also new function
10023 silc_packet_context_alloc that must be used now to allocate the
10024 context. This also means that if a routine is asynchronous from
10025 silc_[client/server]_packet_parse_type the packet context must
10026 be duplicated by calling silc_packet_context_dup. Otherwise it
10027 gets free'd after silc_[client/server]_packet_parse_type returns.
10028 Also, one must remember that if packet is duplicated then its
10029 reference count must be decresed by calling the free function as
10030 many times as it was duplicated.
10032 * Changed SilcBuffer field from protocol contexts to SilcPacketContext
10033 from both client and server.
10035 Mon Nov 20 23:47:03 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10037 * Made joining to a channel working in router environment.
10039 * Cleaned up JOIN command on server side and create function
10040 silc_server_command_join_channel internal routine to make the
10043 Thu Nov 9 21:12:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10045 * Changed silc_command_pending list to SilcDList. Also, added
10046 `ident' field to SilcServerCommandPending structure to identify
10047 the reply and to call correct callback.
10049 Added silc_server_command_pending_check function to replace the
10050 corresnponding macro. The silc_command_pending list is not
10053 * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
10054 to set identifier to previously allocated Command Payload. It
10055 is used to set identifier for command when resending Command
10058 * Added silc_command_payload_encode_payload to encode Command
10059 Payload buffer from SilcCommandPayload structure.
10061 * Added silc_argument_payload_encode_payload to encode Argument
10062 payload buffer from SilcArgumentPayload structure.
10064 Wed Nov 8 21:03:28 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10066 * Changed WHOIS command to support router connection on server side.
10067 The whois request is always sent to router unless the server is
10068 standalone server. After server has received the reply from the
10069 router will it send the reply to the client.
10071 * Added silc_server_packet_broadcast into silcd/server.[ch] to
10072 broadcast received broadcast packet. The function is used only
10073 by router. The broadcast packet is always sent to the router's
10076 * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
10077 render given ID to printable string, for log files for example.
10079 Tue Nov 7 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10081 * Made basic router to router connections working. At least they
10082 can now connect to each other but nothing really works the way
10083 they are supposed - yet.
10085 * Added new initiator token to RouterConnection configuration
10086 file in silcd/serverconfig.[ch]. It is used to tell whether we
10087 are the initiator to the remote router or whether we'll expect
10088 the other end to connect.
10090 * Moved registering of listener task to silc_server_init, hence
10091 the server starts listenning as soon as it is run, even if it
10092 does not have connections to other routers. Let's see how well
10095 * Changed default connection retry timeouts for more suitable in
10098 * Removed cipher and such arguments from silc_idlist_add_client
10099 and silc_idlist_add_server prototypes from silcd/idlist.[ch].
10100 Added new function silc_idlist_add_data to add the keys and stuff
10103 * Added SilcIDListData structure and added it to SilcClientEntry
10104 and SilcServerEntry as their first field in the structure. This
10105 way we can explicitly cast the ID entries to the SilcIDListData
10106 structure and get common data for the entries. In past, we had
10107 to first check what type of connection it is and then cast it to
10108 correct ID entry type. Now, we can directly cast the opaque
10109 pointer to the SilcIDListData (no matter what ID entry it actually
10110 is) and get the data needed.
10112 Mon Nov 6 21:56:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10114 * Wow, found a bug in scheduler. The scheduler uninitialized itself
10115 in some circumstances even if threre were timeout tasks, though not
10116 IO tasks, but tasks anyway. Now fixed.
10118 * Defined SilcServerConnection structure to hold connection specific
10119 stuff about directly connected servers and routers. The definition
10120 is currently in silcd/server_internal.h. I thought about having
10121 a bit more important role fro this struct but for now it is used
10122 only when connecting to other server (or router actually).
10124 * Added connecting retry support in server when connecting to
10125 router(s). The retry feature implement exponential backoff
10126 algorithm. Also, added SilcServerParams structure to hold default
10127 parameters for server. For now, it include these retry settings
10128 and are hard coded. After server is moded to be as Silc Server
10129 Library this structure will be more important.
10131 Sun Nov 5 22:28:44 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10133 * Changed client librarys channel->clients table to SilcList and
10134 changed code accordingly.
10136 Thu Nov 2 16:28:01 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10138 * Changed client's channel table to SilcList and changed code
10139 accordingly. Also changed SilcChannelClientEntry to include back-
10140 pointer to the channel so that client entry can use that structure
10141 as list as well and we have fast cross-reference to the channel.
10142 This change dramatically decreased the complexity of channel
10143 handling with client entry and vice versa (removed one extra
10144 loop when searching for channel entry from many functions).
10146 * Changed server->sim from table to SilcDList and changed code
10149 * NAMES command can now be used from user interface. It will show
10150 the user list on the channel, neatly.
10152 * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
10153 Code now saves realname of the user if it becomes available.
10155 * Renamed configure.in to configure.in.pre and made ./prepare
10156 script to automatically add correct version string to
10157 configure.in which it creates from configure.in.pre.
10159 Wed Nov 1 17:21:26 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10161 * NAMES command reply now shows users mode with the nickname when
10162 joining to channel.
10164 * Moved silc_client_ch[u]mode[_char] functions from
10165 silc/clientutil.[ch] to lib/silcclient/client.[ch]. Though, that
10166 place sucks, they are utility functions and should be in some
10169 * Fixed some unsigned int's to unsigned short's. Patch by cras.
10171 * Fixed contrib/getopt*.[ch] to not require config.h. Patch by
10174 Tue Oct 31 20:10:37 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10178 * Added TRQ (efficient deque and list library) into lib/trq. This is
10179 a very good list library that is currently used in the SILC. Defined
10180 SilcList API over the library because I didn't like the API very
10181 much. See lib/trq/silclist.h for the API and examples of how to
10182 use the API. Fixed various places in the code to use the new
10183 SilcList API. The SilcList is meant for lists that has a structure
10184 already defined as a list. It is not suitable to add just some
10185 context to the list (in TRQ, the context is the list actually).
10187 So, I defined SilcDList that can be used for the purpose where
10188 predefined list structure does not exit. This can be used as
10189 such list. Now some context just can be added to the SilcDList.
10190 Currently this list is not used in the SILC just yet, though there
10191 are a lot places where this can replace dynamically allocated
10192 tables and I will fix these places, later, to use SilcDList.
10193 See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
10194 and use TRQ internally).
10196 Also fixed some annoying warning messages that the original TRQ
10197 code generated. Also minor changes to TRQ's Makefile.in.
10199 * Added support for querying by Client ID to both WHOIS and
10200 IDENTIFY commands into server, as required by the protocol.
10202 * Removed method function pointers from SilcBuffer structure. They
10203 weren't used to anything and just increased the context size for
10204 no good reason. This change also made silc_buffer_alloc and
10205 silc_buffer_free functions inline functions.
10207 * Disabled command flooding detection support until it's fixed so
10208 that it accepts commands in but does not execute them more than once
10211 * Added silc_net_localhost(), to return local hostname, into
10212 lib/silcutil/silcnet.[ch]. Also added client->hostname pointer
10213 that must be initialized before calling silc_client_init.
10215 * Added new function: silc_server_send_notify_on_channels to send
10216 notify messages to all channels client has joined. It is assured
10217 that the message is sent only once per client.
10219 * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
10220 lib/silcutil/silcutil.[ch] as silc_format function. The new
10221 function is generic and is used by server as well, not only by
10222 the logging routines.
10224 * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
10225 the provided version string was not acceptable. Added new function:
10226 silc_ske_check_version into lib/silcske/silcske.h. The function
10227 must be implemented by the application (client or server) and it
10228 does not reside in the SKE library. The function checks the version
10229 string remote end sent.
10231 * Added back pointers (to opaque context and to SilcSocketConnection)
10232 into SilcPacketContext structure into lib/silccore/silcpacket.h.
10234 * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
10235 duplicate packet context structure.
10237 * Changed `notify' client operation to send same arguments as client
10238 receives from server except for ID's. ID's are mapped to correct
10239 ID entry and that is returned. Also, if channel entry is not sent
10240 by server but the notify is for channel the channel entry is sent
10241 to application (otherwise application doesn't know that it is for
10242 channel (library gets it from packet's Destination ID)).
10244 * Added silc_client_remove_from_channels into client library to
10245 remove a client from all channels it has joined to. Used when
10246 received SIGNOFF notify from server. Added also new function
10247 silc_client_replace_from_channels to replace old ID entry with
10248 new ID entry on all channels. Used when received NICK_CHANGE
10249 notify from server.
10251 * Fixed ID Cache list handling in silc_idlist_get_client in
10252 lib/silcclient/idlist.c. Also, added silc_idlist_get_client_by_id
10253 to get (or query) client by ID.
10255 * Updated TODO list.
10257 * Added connection authentication status message defined by the
10258 protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
10259 support for these into the code in client and server side.
10261 * Added generic function silc_client_send_command to send any command
10262 with variable argument list. Application should use this function
10263 to send commands if the command functions provided by the library
10264 does not suite for the application's user interface needs.
10266 * Added new `failure' client operation. Application is notified about
10267 received failure packet if client is executing a protocol. In this
10268 case the protocol's execution has failed.
10270 * Added SKE's end notify to send the SKE_SUCCESS notify message that
10271 is required by the protocol.
10273 * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
10274 packet from remote. SILC_PROTOCOL_STATE_ERROR indicates local
10277 * Added status flag to SilcSKE object to indicate realtime status
10278 of the SKE protocol.
10280 * Application receives now exactly same command reply arguments as
10281 the library receives from server. However, if ID is received the
10282 corresponding ID entry is returned to the application (eg. Client
10283 ID is mapped to correct SilcClientEntry entry and that is returned).
10284 Changed command_reply client operation due to this change.
10286 * Changed all ID's in commands and in command replys as ID Payloads.
10287 Change affected both client and server side codes.
10289 All ID's sent in SILC network (with execption of ID's in SILC
10290 Packet header) are sent in ID Payload to support variable length
10293 * Server now notifies nick changes and notifies all clients on
10294 the channels about the new nickname (about the new Client ID,
10297 * Implemented CMODE command to change channel modes. Supports all
10298 channel modes defined by the protocol specs except ban and invite
10299 lists. (Also, private channel key mode is supported but support for
10300 setting private channel key in client is missing, thus, this mode
10301 has no effect on client side (except that server requires that the
10302 client uses private channel key and normal channel traffic does not
10305 Also, invite mode works per se, but INVITE command does not work
10306 yet correctly, so you can set channel as invite only channel but
10307 inviting clients to the channel does not work (it is yet to be
10308 thought what's the best way to do it).
10310 * Added new command SILC_COMMAND_CUMODE to change user mode on the
10311 channel. Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
10312 Implemented CUMODE command to change user's mode on the channel.
10313 Supports all modes defined by the protocol specs.
10315 * Added NAMES command reply to return users modes on the channel.
10317 * Removed unnecessary and slow ciphers from lib/silccrypt.
10319 * Set SO_KEEPALIVE option to connection sockets by default.
10321 * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
10323 * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE. Also,
10324 redefined the Notify Payload into protocol specs.
10326 * Added silc_id_payload_parse_id to get ID directly from raw
10329 Mon Oct 9 20:57:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10331 * Changed SILC_COMMAND_IDENTIFY in protocol specification to
10332 accept searching by Client ID as well.
10334 * Added support for LEAVE and SIGNOFF notify types in client library.
10336 * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
10337 to parse ID Payload from raw data.
10339 Sun Oct 8 19:33:08 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10341 * Added flags parameter into silc_ske_assemble_security_properties
10342 function in lib/silcske/silcske.[ch].
10344 * Changed notify client operation to fit better for notify messages
10345 sent by server. The notify payload received from server is now
10346 passed to the application (after parsing it to SilcNotifyPayload).
10347 It is application's responsibility to retrieve the arguments
10348 from the payload and show the message the way it wants. The message
10349 sent by server is implementation specific.
10351 * Changed public keys to comply with the protocol specification.
10352 Old public keys are not supported anymore and are not compatible.
10354 * Removed nickname from Channel Payload as the latest draft removed
10355 it. The client must resolve the nickname from the NAMES command
10356 reply received when it joined the channel.
10358 Also, changed all channel_xxxx_payload to channel_payload_xxxx.
10360 Sat Oct 7 21:55:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10362 * Fixed some errors in protocol specification drafts.
10364 * Created lib/silccore/silcnotify.c to implement Notify Payload
10365 encoding and decoding, lib/silccore/silcpayload.[ch] to implement
10366 generic payloads described by protocol specifications. The file
10367 includes implementations for ID Payload and Argument Payload.
10369 * Changed Command Payload implementation to use the new Argument
10370 Payload. Changed command_xxxx_payload to command_payload_xxxx
10371 to comply with SILC coding conventions.
10373 * Added suppport for Argument Payload handling in Notify Payload
10374 implementation as protocol requires it. Added the new support
10375 into server and client lib as well.
10377 Thu Oct 5 21:16:28 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10379 * Added support for multiple nicknames on same channel. [n] is
10380 added locally to the nickname if there are more than one same
10381 nicknames on the channel.
10383 * Server now sends all nicknames that matched WHOIS request.
10384 Client also shows the list received from server.
10386 * Added TOPIC command to client side. User can now set and show
10387 current topic on channel.
10389 * Added MOTD command to client and server. Also, server sends the
10390 motd when client connects to the server.
10392 * Changed version strings to comply ISO 8601.
10394 Wed Oct 4 23:29:06 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10396 * Fixed protocol error handling in client library. It should now
10397 cope even if the SKE fails for some reason.
10399 * Made new protocol specification drafts for submitting to IETF.
10401 * Implemented TOPIC command to server in silcd/command.c.
10403 * Added two new notify types into lib/silccore/silcnotify.h:
10404 SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
10405 notify nickname change and topic setting/change on a channel.
10407 * API change of command_reply operation in client library. The
10408 application gets now the status type received from server as well.
10410 Sat Sep 30 16:57:42 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10412 * Removed the function just added to lib/silcutil/silcschedule.[ch].
10414 * Cras fixed and optimized the packet handling even further and
10415 it should work now. Minor change to the prototype of function
10416 silc_packet_receive_process in lib/silccore/silcpacket.[ch].
10418 Sat Sep 30 08:48:47 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10420 * Added new function into lib/silcutil/silcschedule.[ch]:
10421 silc_schedule_with_fd to select() a specified fd. The function
10422 returns after timeout expires or data arrives or goes. The
10423 function is used by packet routines to wait that all data is
10424 received from network.
10426 * Fixed data reading from network in lib/silccore/silcpacket.c.
10427 The code now assures that all data is read from the fd and then
10428 continues packet processing. This was a bug fix since the code
10429 used to drop some data in some circumstances.
10431 * Added new function into lib/silcclient/client.[ch]:
10432 silc_client_start_key_exchange to start key exchange after
10433 connection has been established to server. The code internally
10434 now uses this funtion but its main purpose was to provide it
10435 for applications that perform their own connecting. After
10436 application has created a connection it merely calls this
10437 function to start the key exchange between client and server.
10438 The library takes care of everything else after that.
10440 Updated also lib/silcclient/README to explain the usage of
10443 * Do not send to application information that connection has
10444 been established. Application gets notified it by connect
10447 Thu Sep 28 23:40:19 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10449 * Applied cras's patch to add silc_schedule_one function. The
10450 function runs scheduler once and returns.
10452 * Fixed the scheduler after cras messed it up. The timeout
10453 handling works now as it's supposed to work.
10455 * Added into lib/silccore/ silcnotify.h to include notify
10456 message types support. Changed silc_server_send_notify*
10457 functions, in server.[ch], to support those new notify types.
10458 Added the support for the notify types into client library,
10459 as well. Added new notify client operation into ops.h in
10462 * Changed silc_server_packet_send_to_channel to send normal
10463 packets instead of just channel message packets. The function
10464 is now used to send the notify packets to channels. It is not
10465 used to send channel message packets anymore, as server never
10466 sends them anymore.
10468 * Added explicit casting into lib/silcutil/silcbuffmt.c to few
10469 va_arg()s as it seems to require it nowadays. I guess, if SILC
10470 is compiled with older va_arg() the new code should work anyway.
10472 Wed Sep 13 18:10:14 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10474 * Splitted core library. Core library (lib/silccore) includes
10475 now only SILC protocol specific core (and common) components.
10476 Created new utility library (lib/silcutil) that includes more
10477 generic purpose stuff. The stuff for util library was taken
10478 from the old core library. This was minor and easy split.
10480 * Created SILC Client Library (lib/silcclient) that includes
10481 implementation of the SILC client without user interface. This
10482 was major move from silc/ directory. The code has been changed
10483 so that it is transparent towards the user interface. The
10484 silc/ directory includes now the same user interface as before
10485 and it uses the new client library. Read lib/silcclient/README.
10486 Basicly, the client library performs everything else related
10487 to SILC except user interface handling. Also, configuration
10488 files are considered to be part of user interface and library
10489 does not handle them.
10491 This change also changed a lot of structures, function naming etc.
10492 Most important change was that SilcClientWindow object was
10493 renamed to SilcClientConnection in the client library. Created
10494 also new file lib/silcclient/ops.h. Also added new files
10495 silc/local_command.[ch] and silc/client_ops.[ch].
10497 All these changes were made to make it easier for user interface
10498 designers to create what ever user interface for the SILC client
10501 It is also expected that the server will be moved to lib
10502 directory as well and SILC Server Library will be created;
10503 sometimes in the future.
10505 * Removed Local commands from lib/silccore/silccommand.h as
10506 they are application specific and new client library does not
10507 handle any of those anymore.
10509 * Several functions moved to lib/silcutil/silcutilc.[ch] from
10510 old client implementation in silc/.
10512 * Added support for callback functions in SILC_LOG_* macros.
10513 Application can now set its own callbacks that will be called
10514 instead of using the default functions that will always print
10515 the debug messages to stderr (or stdout). Also, debugging can
10516 now be disabled by setting silc_debug to FALSE and re-enabled by
10517 setting it to TRUE. Note, that logging will still work even
10518 if debugging is disabled.
10520 New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
10521 silc_log_reset_callbacks, silc_log_set_debug_callbacks and
10522 silc_log_reset_debug_callbacks.
10524 * To enable debugging in silc client one must give now -d
10525 option on command line.
10527 * Changed silc_schedule_init to automatically allocate task queues
10528 if they are not allocated before calling it.
10530 Thu Sep 7 10:49:33 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10532 * Added GMP 3.1 into math library.
10534 Sun Aug 20 21:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10536 * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
10537 a channel in SILC network. The packet is used by servers and
10538 routers to notify other routers that user has left a channel.
10539 This little feature was missing until now. Added the feature
10540 to protocol specification as well.
10542 Added functions: silc_server_send_remove_channel_user and
10543 silc_server_remove_channel_user into server.[ch].
10545 * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
10546 lib/silccore/silcpacket.h. However, they are not implemented
10549 Sat Aug 19 23:04:16 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10551 * Fixed joining to a channel and sending channel messages
10552 between server and router. The channel message sending should
10553 now work inside a cell.
10555 Tue Jul 25 20:46:13 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10557 * Fixed the private message sending between server and router.
10558 The private message sending should now work inside a cell.
10560 * Added silc_server_replace_id into server.[ch] to replace
10561 existing ID in the SILC network.
10563 * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
10564 and silc_idlist_replace_server_id into idlist.[ch] in server.
10566 Mon Jul 24 18:33:31 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10568 * Fixed the server to server connections. Server can again now
10569 connect to router. Router to router connections probably does
10572 Thu Jul 20 13:15:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10574 * Added dynamic protocol registering support. Now protocols can
10575 registered and unregistered on the fly. Patch by cras.
10577 Wed Jul 19 19:08:46 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10579 * Added lib/contrib directory to hold routines that some platforms
10580 don't have but are needed by SILC.
10582 * Added getopt.c, getopt1.c and getopt.h from GNU C library
10583 into lin/contrib to provide getopt() and getopt_long() for
10584 those who don't have it.
10586 Tue Jul 18 20:41:20 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10588 * Added AWAY command to client. When away message is set and
10589 client receives a private message packet the client automatically
10590 replies to the sender with the away message.
10592 * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin. This
10593 bug seemed to be the cause of recent problems when compiling
10596 * Added version detection support to SKE protocol specification
10597 and added the new changes to the SKE implementation as well.
10598 There were other minor changes in the SKE protocol as well.
10600 Many changes in lib/silcske/silcske.[ch] and in
10601 lib/silcske/payload.[ch].
10603 * Added ^U functionality, clear input line. Patch from cras.
10605 Mon Jul 17 23:33:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10607 * Mainly small bugfixes on core library. Fixed some debugging
10608 logging and buffer overflow in silclog.c.
10610 * Updated config.sub and config.guess on the distribution tree.
10612 Sat Jul 15 15:33:48 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10614 * Added command lagging support in server. Client may execute
10615 commands now only once in two seconds.
10617 Thu Jul 13 22:10:21 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10619 * Optimized packet reception. MAC computation and checking is now
10620 also more optimized. A lot previously duplicated code is now
10621 used as generic by both client and server.
10623 * Fixed key pair generation in clientutil.c
10625 Wed Jul 12 18:28:07 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10627 * Added into lib/silccore/silcbufutil.[ch] new function;
10628 silc_buffer_realloc.
10630 * Moved generic packet sending/encryption functions to
10631 lib/silccore/silcpacket.[ch] from client and server. Some
10632 rewriting of the functions.
10634 * Moved all generic packet reception/decryption functions to
10635 lib/silccore/silcpacket.[ch] from client and server. The
10636 packet processing is now much cleaner in both client and server.
10637 These were major changes in both client and server.
10639 * Created many common functions in server to do packet sending.
10640 Previously code were duplicated a lot, this has been removed
10641 with these changes.
10643 Tue Jul 11 20:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10645 * Rewrote major parts of the ID cache system. Don't know
10646 whether it is better now or not but at least the API is more
10649 * Major rewrite on ID cache stuff on client because of the ID
10650 cache API changes. Added idlist.c to client.
10652 * Also major rewrite on ID cache stuff on server as well.
10653 Major rewrite of idlist.[ch]. SilcXXXList's are now named
10654 SilcXXXEntry's. We won't keep anymore idlist specific pointers
10655 in hand, instead they are all put into the ID cache system now.
10656 All server_idlist_* routines uses ID cache now instead of
10657 traversing its own lists (those lists does not exist anymore).
10658 SilcIDList though still exists. Also, SilcXXXEntry's are
10661 Sun Jul 9 15:19:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10663 * Finally made the SKE implementation compliant to the protocol
10664 specification. All mp integers are now binary encoded as
10665 opposed being HEX encoded.
10667 * Added lib/silcmath/mpbin.[ch]. Encoding mp intergers to and
10670 * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
10671 functions: silc_[encode/decode]_pem. Also added function
10672 silc_encode_pem_file to PEM encode with newlines ('\n') for
10673 saving into a file.
10675 * SILC public keys are now encoded either PEM or binary. Same
10676 option is for private keys as well. By default private keys
10677 are binary encoded and public keys PEM encoded. Silly HEX
10678 encoding were removed.
10680 * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
10681 function to create fingerprints.
10683 * Fixed a bug in SHA1; does not change the original data anymore.
10685 * Partly implemented INFO command on client and server side.
10686 Fixed CLEAR command. Changes to SERVER command; show current
10687 server(s) when giving command without arguments. Added
10688 VERSION command to client.
10690 * Added check to server that unregistered connections cannot
10691 execute commands (unless it is specificly allowed).
10693 Thu Jul 6 18:12:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10695 * Fixed screen refresh.
10697 * Fixed channel joining bug from client. On some circumstances
10698 client tried to join to a channel it had already joined.
10700 * Added public key verification process into client's protocol.c.
10701 The client now verifies the public key from user and saves
10702 it into ~./silc/serverkeys/ directory.
10704 Added into: clientutil.[ch]: silc_client_verify_server_key.
10706 * Changed SKE protocol's silc_ske_initiator_finish function
10707 to accept callback function that verifies the received public
10708 key. Removed old silc_ske_verify_public_key function.
10710 Wed Jul 5 19:19:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10712 * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
10713 silc_pkcs_private_key[_data]_set.
10715 * Made the password and public authentication more cleaner in
10716 server's protocol.c.
10718 * Removed historic and obsolete protocol `channel_auth' from
10719 both client and server.
10721 * Removed wrong way of sending command status messages from
10722 server to client in server's command.c. The old way violated
10723 protocol specification.
10725 Changes to silccore/silccommand.[ch]: removed
10726 silc_command_encode_status_payload -> not needed anymore,
10727 changed silc_command_encode_payload_va to accept extra
10728 argument on variable argument list. The argument type must
10729 now be provided to the function. Also, added new function:
10730 silc_command_encode_reply_payload_va which is same as
10731 normal command_encode_payload_va except command status type
10732 is provided as extra argument.
10734 Tue Jul 4 18:26:39 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10736 * Added ~./silc directory handling. The directory includes the
10737 public and private keys for the client.
10739 Added silc_client_check_silc_dir, silc_client_create_identifier
10740 and silc_client_load_keys.
10742 * Implemented SILC protocol compliant public key. Added public
10743 and private key saving to and loading from files.
10745 Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
10746 silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
10747 silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
10748 silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
10749 silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
10751 Implemented: silc_pkcs_save_[public/private]_key[_data] and
10752 silc_pkcs_load_[public/private]_key.
10754 Mon Jul 3 18:51:27 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10756 * Added silc_server_get_route (route.[ch]) to get connection
10757 data for the fastest route for given ID.
10759 * Implemented INVITE command on client and server. The command
10760 were re-defined in the SILC Protocol Specification and the
10761 implementation now complies with the specification.
10763 * Implemented PING command on client and server.
10765 * Implemented NAMES command on client and server. The server side
10766 supports currently only normal server not router server yet.
10767 Some changes to NAMES definition in SILC protocol specification.
10769 Sun Jul 2 18:23:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10771 * Implemented LEAVE command on client and server.
10773 * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
10774 again. This change was made to the protocol as well. Server
10775 should not violate the protocol specification anymore.
10777 Fri Jun 30 14:03:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
10779 * Added SOCKS4 and SOCKS5 support to SILC client. SOCKS5
10780 was tested. SOCKS4 was not but should work anyway.