1 Sun Feb 17 19:02:56 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3 * Merged latest Irssi (0.8.1) from the irssi.org's CVS into
6 * Fixed the silcdoc document generator to correct generate
7 docs from all kinds of filenames. Affected files are
8 util/robodoc/Source/generator.c, scripts/silcdoc/silcdoc
10 Sun Feb 17 15:52:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
12 * Added `user_count' to the SilcChannelEntry which now tells the
13 number of users on the channel. The user count is now saved
14 in normal server of global channels as well. Affected files
15 silcd/server.c, idlist.h, packet_receive.c and command.c.
17 * Splitted lib/silcutil/silcutil.[ch] into silcfileutil.[ch] to
18 include file utility functions.
20 * Fixed the lib/silcsftp/sftp_fs_memory.c to use silcutil routines
21 instead of calling directly OS routines.
23 * Fixed NICK change printing in Irssi SILC Client. Fixed
24 KICKED notify printing in Irssi SILC Client. Affected file
25 irssi/src/silc/core/client_ops.c.
27 * Fixed a NICK change bug in client library, to not recreate the
28 client_entry->channels hash table everytime nick is changed.
29 Affected file lib/silcclient/client.c.
31 Sun Feb 17 10:10:14 EET 2002 Pekka Riikonen <priikone@silcnet.org>
33 * ROBOdoc documented the lib/silcske/silcske.h, and improved
34 the SKE interface a bit.
36 * Fixed padding problem in PKCS#1. The padding was not actually
37 random since the random number generator was used incorrectly.
38 This security bug affects only when encrypting with PKCS#1, and
39 it is not currently used at all in SILC. SILC only use signing
40 with PKCS#1. Affected file lib/silccrypt/pkcs1.c.
42 Sat Feb 16 13:44:24 EET 2002 Pekka Riikonen <priikone@silcnet.org>
44 * Rewrote the notify handling in Irssi SILC client to not call
45 the events as signals. Fixes problems with Perl support.
46 Affected files irssi/src/silc/core/client_ops.c, silc-channels.c.
48 * Send the auto-nicking NICK command in client library with
49 little timeout after connecting. The affected file is
50 lib/silcclient/client.c.
52 * Added following new config file settings:
53 channel_rekey_secs, key_exchange_rekey, key_exchange_pfs,
54 key_exchange_timeout, conn_auth_timeout, connections_max,
57 Implemented all the new config settings handling in the server.
59 Optimized the use of SKE Mutual flag usage. Use it only
60 if connection authentication protocol is not based in public
63 Renamed all SilcServerConfigSection* to SilcServerConfig*
64 to have a bit shorter names.
66 Affected files silcd/serverconfig.[ch], server.[ch], and
69 Sat Feb 16 02:46:43 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
71 * Cleaned up the listening sockets code, preparing for the rehash
72 support. Affected file is silcd/server.c.
74 * Fixed some output messages. Affected files are silcd/silcd.c,
77 Fri Feb 15 19:10:20 EET 2002 Pekka Riikonen <priikone@silcnet.org>
79 * Create lib/doc/silcrng_intro.html document as introduction
80 to SILC RNG. ROBOdoc documented lib/silccrypt/silcrng.h.
82 Fri Feb 15 13:23:03 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
84 * Fixes to the silcd config template. Affected file is
85 doc/example_silcd.conf.in.
87 * Removed type casts from silc_calloc(), conforming to the
88 CodingStyle. Affected file is lib/silcutil/silcconfig.c.
90 * Removed param_name member from client, server, and router
91 section structs, now identifying the param directly.
93 Added CONFIG_FREE_AUTH macro in config file parsing.
95 Affected files are silcd/serverconfig.[ch].
97 Fri Feb 15 12:24:08 EET 2002 Timo Sirainen <tss@iki.fi>
99 * Fixed command line parameter handling. All SILC initialization
100 is now done in silc_core_init() which also fixes autoconnecting
103 Affected files irssi/src/silc/core/silc-core.c,
104 irssi/src/fe-text/silc.c.
106 Thu Feb 14 22:03:58 EET 2002 Pekka Riikonen <priikone@silcnet.org>
108 * Added new configuration options and blocks:
109 keepalive_secs, reconnect_count, reconnect_interval,
110 reconnect_interval_max, reconnect_keep_trying and
111 require_reverser_lookup. Added ConnectionParam block, and
112 implemented the connection parameters when connecting as
113 initiator and when accepting connections as responder.
115 Added CONFIG_IS_DOUBLE macro in config file parsing, to check
116 whether given configuration value has been given already.
118 Affected files silcd/serverconfig.[c], server.[c].
120 * Splitted the doc/example_silcd.conf.in. Separated the crypto
121 algorithm parts and created new file silcalgs.conf, that
122 is now included from the example_silcd.conf.in.
124 * Optimized the silc_server_connect_to_router_second to take
125 the connection configuration object from the SilcServerConnection
126 object instead of finding it during the connecting phase.
127 Added the configuration object to SilcServerConnection struct.
128 Affected files silcd/server_internal.h, server.c.
130 Thu Feb 14 16:02:26 CET 2002 Pekka Riikonen <priikone@silcnet.org>
132 * Add the client on channel after it was resolved at the
133 channel message receiving, and it was not already on the
134 channel. Affected file lib/silcclient/client_channel.c.
136 Wed Feb 13 23:16:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
138 * Fixed the public key authentication to allocate always the
139 destination signature buffer instead of using static buffer.
140 Affected file silcd/protocol.c.
142 Wed Feb 13 20:51:13 EET 2002 Pekka Riikonen <priikone@silcnet.org>
144 * Unified the serverconfig.[ch]'s helper function interface.
145 Affected file silcd/serverconfig.[ch].
147 * Removed doc/example_silc.conf.in since it is redundant.
148 The make install will now install irssi/silc.conf file.
150 * Added new Passphrase and Publickey authentication methods to
151 config file, allowing both public key and passphrase based
152 authentication to be set at the same time.
154 Added `prefer_passphrase_auth' setting in config file which
155 can be used to set to prefer passwd auth if both passwd and
156 public key is set. If not set, public key is preferred.
157 This has effect only when being initiator (responder will try
160 Added support for authentication with passphrase and public key
161 at the same time. The passphrase is tried first always since
162 it is faster to check.
164 Affected file silcd/serverconfig.[ch], server.c, protocol.[ch].
166 Wed Feb 13 12:46:25 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
168 * Merged the new SILC Config library, with the server parsing
169 support. Read the header file silcconfig.h or the toolkit
170 documentation for the news. Affected files are
171 doc/example_silcd.conf.in lib/silcutil/silcconfig.[ch]
172 silcd/command.c silcd/packet_receive.c silcd/packet_send.c
173 silcd/protocol.c silcd/server.c silcd/server_backup.c
174 silcd/serverconfig.[ch] silcd/silcd.c.
176 * Fixed some silclog documentation. Affected file is
177 lib/silcutil/silclog.h.
179 Sun Feb 10 18:11:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
181 * The silc_cipher_register, silc_hash_register and
182 silc_hmac_register now checks if the object to be registered
183 is registered already. Affected files are
184 lib/silccrypt/silccipher.c, silchash.c and silchmac.c.
186 Sun Feb 10 15:48:38 EET 2002 Pekka Riikonen <priikone@silcnet.org>
188 * Merged new irssi from irssi.org's CVS, the version 0.7.99.
190 Sat Feb 9 14:54:33 EET 2002 Pekka Riikonen <priikone@silcnet.org>
192 * Allow zero length channel messages inside the Channel Message
193 Payload. Affected file lib/silccore/silcchannel.c.
195 * Fixed scripts/silcdoc/silcdoc to support all kinds of filenames
198 * Removed lib/silcclient/README and created HTML file
199 lib/silcclient/silcclient_using.html, which is now included
200 as part of Toolkit documentation.
202 Thu Feb 7 10:12:25 CET 2002 Pekka Riikonen <priikone@silcnet.org>
204 * Fixed CUMODE_CHANGE notify handling to change the mode of
205 correct client. Affected file lib/silcclient/client_notify.c.
207 * Make silc_rng_alloc fail if it cannot allocate the sha1
208 hash algorithm. Affected file lib/silccrypt/silcrng.c.
210 Sun Feb 3 17:20:52 EET 2002 Pekka Riikonen <priikone@silcnet.org>
212 * Fixed the file transfer's key agreement payload to include
213 zero port also if the hostname is NULL because it could not
216 Call file transfer monitor callback now also if error occurs
217 during key agreement protocol.
219 Changed the silc_client_file_send interface to return the
220 SilcClientFileError instead of session id. The session ID
221 is returned into pointer provided as argument.
223 Check that the file exists locally before sending the
224 file transfer request at all.
226 Affected file lib/silcclient/client_ftp.c, silcapi.h.
228 * Added SILC_CLIENT_FILE_KEY_AGREEMENT_FAILED file transfer
229 error than can occur while key agreement protocol. Affected
230 file lib/silcclient/silcapi.h.
232 * Fixed the event_mode CMODE handler to not crash when mode
233 is changed and +k mode is set in the channel. Affected file
234 irssi/src/silc/core/silc-channels.c.
236 * Fixed SILC_LOG_ERROR to give out Error and not Warning, and
237 SILC_LOG_WARNING to give out Warning and not Error. Affected
238 file lib/silcutil/silclog.c.
240 * Fixed the channel message payload decryption in the function
241 silc_channel_message_payload_decrypt to not modify the original
242 buffer before it is verified that the message decrypted
243 correctly. Otherwise, next time it is called with correct
244 channel key it won't encrypt since the payload is corrupted.
245 Affected file lib/silccore/silcchannel.c.
247 Sun Feb 3 11:46:12 EET 2002 Pekka Riikonen <priikone@silcnet.org>
249 * Do not constantly resize the window. A fix patch by cras.
250 Affected file irssi/src/fe-text/screen.c.
252 Sat Feb 2 16:54:18 EET 2002 Pekka Riikonen <priikone@silcnet.org>
254 * Applied IPv6 fix patch from Jun-ichiro itojun Hagino.
255 Affected file lib/silcutil/silcnet.c.
257 Fri Feb 1 22:33:11 EET 2002 Pekka Riikonen <priikone@silcnet.org>
259 * Fixed a bug in hash table internal routine for traversing
260 the table with foreach callback. The current entry may
261 become invalid in the callback but it was referenced after
262 the callback returned.
264 Do not allow auto rehashing of hash table during the
265 silc_hash_table_foreach operation, for same reasons as it is
266 not allowed for SilcHashTableList. Affected files are
267 lib/silcutil/silchashtable.[ch].
269 Fri Feb 1 14:55:00 CET 2002 Pekka Riikonen <priikone@silcnet.org>
271 * Defined DLLAPI into silcincludes.h and silcwin32.h for
272 Win32 DLL. extern's in header files are now declared with
275 Thu Jan 31 23:34:33 EET 2002 Pekka Riikonen <priikone@silcnet.org>
277 * Fixed private message handling. It used some old code that
278 caused the client to crash. Affecte file is
279 lib/silcclient/client_prvmsg.c.
281 Thu Jan 31 19:06:22 EET 2002 Pekka Riikonen <priikone@silcnet.org>
283 * Added function silc_client_add_channel,
284 silc_client_replace_channel_id, and removed functions
285 silc_client_new_channel_id and silc_idlist_get_channel_by_id
288 * Added cross reference of the joined channels to the
289 SilcClientEntry, and changed the SilcChannelEntry's
290 users list to SilcHashTable. The affected files are
291 lib/silcclient/idlist.[ch].
293 * Fixed a bug in hash table tarversing. While the hash table
294 is traversed with SilcHashTableList the table must not be
295 rehashed. It is now guaranteed that auto rehashable tables
296 are not rehashed while tarversing the list. Also defined that
297 silc_hash_table_rehash must not be called while tarversing
298 the table. Added function silc_hash_table_list_reset that must
299 be called after the tarversing is over. The affected files are
300 lib/silcutil/silchashtable.[ch].
302 * Changed all hash table traversing to call the new
303 silc_hash_table_list_reset in server and in client library.
305 * Added function silc_client_on_channel to return the
306 SilcChannelUser entry if the specified client entry is joined
307 on the specified channel. This is exported to application as
308 well. Affected files lib/silcclient/client_channel.c, silcapi.h.
310 Wed Jan 30 19:14:31 EET 2002 Pekka Riikonen <priikone@silcnet.org>
312 * Fixed founder regaining problem with JOIN command on normal
313 server. The notify for mode change must be sent always and
314 not only if !cmd->pending. Affected file silcd/command.c.
316 * Fixed the WHOWAS command's reply sending to support the
317 lists correctly. Affected file silcd/command.c.
319 Wed Jan 30 11:11:47 CET 2002 Pekka Riikonen <priikone@silcnet.org>
321 * When sending JOIN command to router for processing the
322 sender's old command identifier was not saved back to the
323 sender's command context, fixed now. The affected file is
326 * Create the key in JOIN command of the router did not return
327 the channel key, added check for this. Affected file is
330 * Fixed a channel ID update bug in JOIN command reply. Do
331 not directly upgrade the ID but call the function
332 silc_idlist_replace_channel_id if the ID was changed.
333 Affected file silcd/command_reply.c.
335 * Fixed memory leaks from command calling if it would fail.
336 Affected file silcd/command.c.
338 Tue Jan 29 19:49:31 EET 2002 Pekka Riikonen <priikone@silcnet.org>
340 * Applied patches from cras:
342 Memory leak fixes around libaries, irssi window resize fix,
343 new silclist.h and silcdlist.h, all extern inline changed to
346 * Removed dotconf from lib/dotconf, not needed anymore.
348 * Removed TRQ from lib/trq, not needed anymore.
350 * Do more frequent heartbeats (5 minutes instead of 10 minutes)
351 with server connections. Later this will be configurable
352 in config file after new config file is done. Affected file
355 Tue Jan 29 10:35:03 CET 2002 Pekka Riikonen <priikone@silcnet.org>
357 * Fixed a crash in server related to channel announcements.
358 Affected file silcd/server.c.
360 Mon Jan 28 17:49:42 EET 2002 Pekka Riikonen <priikone@silcnet.org>
362 * Fixed memory leaks in silc_server_create_new_channel*
363 functions. Affected file silcd/server.c.
365 * Fixed the CHANNEL_CHANGE notify to re-announce the channel
366 which ID was changed. This way the router will send the
367 user list for the channel again, and server won't be in
368 desync in some rare circumstances. Affected file is
369 silcd/packet_receive.c.
371 Sun Jan 27 21:04:19 EET 2002 Pekka Riikonen <priikone@silcnet.org>
373 * Check for NULL socket pointer in the function
374 silc_server_packet_send_to_channel_real. Affected file
377 * Fixed the BAN notify handling to correctly remove ban
378 list. Affected file silcd/packet_receive.c.
380 Sat Jan 26 23:01:03 EET 2002 Pekka Riikonen <priikone@silcnet.org>
382 * Fixed some header addition to Toolkit distribution in
383 lib/silcutil/Makefile.am and lib/trq/Makefile.am.
385 * Added lib/silcclient/client_ops_example.h as an template
386 file for application programmers to quickly start using
387 the SilcClientOperation functions in their application.
388 Updated the lib/silcclient/README as well to tell about this
389 nice file made available.
391 Sat Jan 26 10:45:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
393 * Call silc_server_remove_from_channels when removing client
394 entry when NO_SUCH_CLIENT_ID was received. Affected file
395 is silcd/command_reply.c.
397 Fri Jan 25 19:12:36 EET 2002 Pekka Riikonen <priikone@silcnet.org>
399 * Added server & router operator statistics updating. Affected
400 file silcd/packet_receive.c and silcd/command.c.
402 * Fixed the SERVER_SIGNOFF notify handling on normal server
403 not to save the history information for clients. Same was
404 fixed earlier in remove_clients_by_server function, but not
405 here. Affected file silcd/packet_receive.c.
407 * Raised the default connection-retry count from 4 to 7 in
408 server. Affected file silcd/server.h.
410 * Cancel any possible reconnect timeouts when we start the
411 key exchange. Affected file silcd/server.c.
413 * Do not reconnect on connection failure when SCONNECT was
414 given. Affected files silcd/server.[ch].
416 Tue Jan 22 18:19:36 EET 2002 Pekka Riikonen <priikone@silcnet.org>
418 * Removed assert()'s from the lib/silcclient/client_keyagr.c.
420 * Fixed the NICK command to always give the unformatted
421 nickname to the one giving the NICK command. If unformatted
422 nickname is cached already it will be formatted and the
423 local entry will always get the unformatted nickname.
424 Affected file lib/silcclient/idlist.c.
426 * Fixed some double frees from client library commands.
427 Affected file is lib/silcclient/command.c.
429 * Fixed CUMODE command in server to assure that no one can
430 change founder's mode than the founder itself, there was a
431 little bug. Affected file silcd/command.c.
433 Mon Jan 21 19:07:53 EET 2002 Pekka Riikonen <priikone@silcnet.org>
435 * Removed the SilcClientCommandDestructor from the client
436 libary, it is not needed anymore. Affected files are
437 lib/silcclient/silcapi.h, command[_reply].[ch],
438 client_notify, idlist.c.
440 * Fixed GETKEY command to first resolve client, and then
441 resolve the server only if the client was not found, instead
442 of resolving both at the same time. Affected file is
443 lib/silcclient/command.c.
445 * Added silc_client_start_key_exchange_cb and lookup the
446 remote hostname and IP address before starting the key
447 exchange with server. The affected file is
448 lib/silcclient/client.c.
450 * The server's public key is now saved using the IP address
451 of the server and not the servername for the filename.
452 The hostname public key filename is checked as an fall back
453 method if the IP address based filename is not found.
455 Fixed the GETKEY command to save the fetched server key
458 Print the remote server's hostname now when new key is
459 received during connection process. Affected file is
460 irssi/src/silc/core/client_ops.c.
462 * Return always our own public key to the client if it asks
463 for it with GETKEY command. Affected file silcd/command.c.
465 * Removed the use_auto_addr variable from default config
466 file since it was in wrong section. Affected file is
469 * Fixed TOPIC_CHANGE notification to not route it when it
470 was sent using silc_server_send_notify_to_channel function.
471 Affected file silcd/command.c.
473 * Fixed silc_server_send_notify_kicked to send the kicker's
474 Client ID also, it was missing. Affected files are
475 silcd/command.c, silcd/packet_send.[ch].
477 Thu Jan 17 18:59:11 EET 2002 Pekka Riikonen <priikone@silcnet.org>
479 * Do not save client history information in SERVER_SIGNOFF.
480 Fixes the bug in normal server that it does not detect
481 the client becoming valid after the server becomes back
482 online. Affected file silcd/server_util.c.
484 * Added `sock_error' field into the SilcSocketConnection
485 context. When error occurs during socket operation (read
486 or write) the error is saved. Added also new function
487 silc_socket_get_error to return human readable socket error
488 message. Affected files are lib/silcutil/silcsockconn.[ch],
489 lib/silcutil/unix/silcunixsockconn.c, and
490 lib/silcutil/win32/silcwin32sockconn.c.
492 * The server now prints the socket error message in the
493 signoff for client. Affected file silcd/server.c.
495 * Fixed the `created' channel information sending from router
496 to server in JOIN command. Checks now whether the channel
497 really was created or not and set it according that.
499 Fixed the JOIN command to use the client entry's current
500 ID during the joining procedure instead of the one it sent
501 in the command (it is checked though), since it can change
502 between the packet processing and command processing, and
503 would just case unnecessary pain in the client end. Affected
504 file silcd/command.c.
506 * Fixed a channel key payload sending to use correct channel
507 ID when the server was forced to change the channel's ID by
508 router. Router sent the key payload with the old Channel ID.
509 Affected file silcd/packet_receive.c.
511 Wed Jan 16 22:26:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
513 * Call silc_server_save_channel_key only if the key payload
514 was provided in the JOIN command's command reply. Affected
515 file silcd/command_reply.c.
517 Tue Jan 15 18:49:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
519 * Fixed silc_mp_sizeinbase to return the value correctly with
520 MPI. Affected file lib/silcmath/mp_mpi.c.
522 * Fixed the stop_server signal to correctly stop the scheduler
523 and gracefully stop the server when SIGTERM or SIGINT signals
524 are received. Affected file silcd/silcd.c.
526 Mon Jan 7 23:38:19 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
528 * Simple handling of TERM and HUP signals. Also added some log
529 flushing call around. Affected file is
532 * Fixed small bugs in silclog.c. Now buffering output will take
533 effect after 10 seconds since startup: This will ensure that
534 no important startup messages are lost. Also output redirection
535 will preserve original format ([Date] [Type] message).
536 Affected file is lib/silcutil/silclog.c.
538 * Added two options to the config file, in the logging section:
539 quicklogs:<yes/no>: and flushdelay:<seconds>:. Affected files
540 lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
542 Sun Jan 6 12:49:40 EET 2002 Pekka Riikonen <priikone@silcnet.org>
544 * Do not print the warning about log files not being initialized
545 more than once to avoid excess logging. Affected file is
546 lib/silcutil/silclog.c.
548 * Fixed the SIM compilation in lib/silcsim/Makefile.am. Fixed
549 the SIM copying in make install in Makefile.am.pre.
551 Sun Jan 6 01:10:21 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
553 * Rewritten silclog APIs. Globally interesting changes follows:
554 silc_log_set_files() changed to silc_log_set_file().
555 silc_log_set_callbacks() changed to silc_log_set_callback().
556 ROBOdoc documented silclog header file.
557 SilcLogCb now returns bool to wether inihibit the default
558 handler or not (to keep the old behaviour return always TRUE).
559 The new APIs should also fix the problem of the
560 silcd_error.log file that was written in the current directory.
563 Log files streams will remain opened after silc_log_set_file()
564 call, means less CPU usage notably on high traffic servers.
565 File streams are now full buffered, and flushed to the disk
566 every 5 minutes, lesses HD activity and CPU usage.
567 Messages can be redirected, allowing admins to configure
568 one single logfile for all server messages.
569 the silc_log_quick global variable to activate fast-logging.
570 Affected files lib/silcutil/silclog.[ch]
572 * Changed some code to conform new silclog APIs. Affected
573 files are doc/example_silcd.conf.in, silcd/server.c
574 irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
577 * Fixed a memory leak that could occur in some situations.
578 Affected file silcd/serverconfig.c.
580 Sat Jan 5 13:37:29 EET 2002 Pekka Riikonen <priikone@silcnet.org>
582 * Added the silc_client_del_client to remove the client from
583 all channels as well. Affected file lib/silcclient/idlist.c.
585 * Fixed the client library to correctly remove the client
586 from all channels when the client entry is being destroyed.
587 Affected file lib/silcclient/client_notify.c, command.c.
589 * Added auto-nicking support to the client library. If the
590 applicatio now sets client->nickname it will be sent to the
591 server after connecting by the library. This way for example
592 SILCNICK (or IRCNICK) environment variables will have effect
593 and always change the nickname automatically to whatever
594 it is wanted. Affected file lib/silcclient/client.[ch].
596 * Renamed silc_server_command_bad_chars to the
597 silc_server_name_bad_chars and moved it to the
598 silcd/server_util.[ch]. Added also new function
599 silc_server_name_modify_bad to return nickname that
600 includes bad characters as new nickname without those
601 bad characters. This check and modify is now used in
602 silc_server_new_client when the username is initially set
603 as nickname, so it must be checked to be valid nickname.
604 Affected file silcd/packet_receive.c.
606 * The nickname length is now taken from the packet for real
607 and not trusted to strlen() since it clearly can return
608 wrong length for nickname including bad characters. This
609 also applies to channel names. Affected file silcd/command.c.
611 * Removed the lib/silcsilm/modules directory. Modules are now
612 compiled into the lib/silcsim. Fixed the copying of the
613 modules to follow symbolic links in Makefile.am.pre.
615 Wed Jan 2 18:56:21 EET 2002 Pekka Riikonen <priikone@silcnet.org>
617 * Fixed silc_string_regexify list creation. Fixes bugs with
618 BAN and INVITE commands in server. The affected file is
619 lib/silcutil/unix/silcunixutil.c.
621 Sun Dec 30 13:41:34 EET 2001 Pekka Riikonen <priikone@silcnet.org>
623 * Removed the command destructor entirely from the server's
624 command and command reply routines. It is not needed, and
625 its usage was buggy and caused crashes. Affected files are
626 silcd/command[_reply].[ch].
628 Fri Dec 28 12:43:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
630 * Cancel protocol and NULL sock->protocol if timeout
631 occurred during protocol. Affected file silcd/server.c.
633 * Cancel protocol timeouts always before calling the final
634 callback, to assure that after final callback is called
635 no other state will be called for the protocol anymore.
636 Affected file silcd/protocol.c.
638 * Print error log if incoming connection configuration could
639 not be found. Affected file silcd/server.c.
641 * Fixed JOIN command to correctly save the founder mode
642 to the client on normal SILC server, when the channel
643 was created by the router. Affected file silcd/command.c.
645 * Fixed LIST command (hopefully) to send correct reply
646 packets. Affected file silcd/command.c.
648 Thu Dec 20 16:14:52 CET 2001 Pekka Riikonen <priikone@silcnet.org>
650 * The silc_packet_receive_process now returns FALSE if the
651 read data was invalid packet, and TRUE if it was ok.
653 The server now checks that if unauthenticated connection
654 sends data and its processing fails the server will close
655 the connection since it could be a malicious flooder.
657 Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
659 Wed Dec 19 21:31:25 EET 2001 Pekka Riikonen <priikone@silcnet.org>
661 * Make sure the warning about error opening a log file is
662 printed only once and not everytime it fails (produces
663 too much useless log). Affected file lib/silcutil/silclog.c.
665 Wed Dec 19 18:21:51 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
667 * Made the silc_server_daemonise() function more readable.
668 Affected file silcd/server.c.
670 * Pid file is now optional, the user may comment it out from
671 the config file. Removed define SILC_SERVER_PID_FILE, we
672 don't need a default any longer. Affected file
673 configure.in.pre, lib/Makefile.am.pre.
675 * Make some use of the pid file. The server now dies at startup
676 if it detects a valid pid file on his path. The server would
677 die anyway in this circumstance, because of the bind() failure.
678 Affected file silcd/silcd.c.
680 * No longer compiling lib/dotconf.
682 Mon Dec 17 18:24:27 EET 2001 Pekka Riikonen <priikone@silcnet.org>
684 * Fixed JOIN command parsing not to crash. Affected file
685 lib/silcclient/command.c.
687 * Fied the NICK_CHANGE notify to add the new client entry
688 even it is resolved. This removes an <[unknown]> nick
689 thingy bug in the client. Affected file is
690 lib/silcclient/client_notify.c.
692 * Do not try to allocate 0 bytes (efence does not like it)
693 in lib/silccore/silccomand.c when encoding payload.
695 * Do not take IRCNICK as nickname in Irssi SILC client since
696 it is not possible to set nickname before hand connecting
697 the server (TODO has an entry about adding auto-nicking
700 * Changed the silc_server_command_pending to check whether
701 there already exists an pending entry with the specified
702 command, command identifier and pending callback. This is
703 to fix IDENTIFY and WHOIS related crashes that may register
704 multiple pending commands with same identifier. Affected
705 file silcd/command.c.
707 * Fixed the server to reconnect to the router even if it
708 was already reconnecting and EOF was received. This to
709 fix a possibility that the server wouldn't ever try to
710 auto-reconnect to the router. Affected file silcd/server.c.
712 Sat Dec 15 20:31:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>
714 * Fixed the server's password authentication to use the
715 length of the locally saved password, and not the one
716 sent in the packet. Affected file silcd/protocol.c.
718 * Fixed same password authentication problem in the
719 Authentication Payload handling routines in
720 lib/silccore/silcauth.c.
722 * Yet another password authentication problem fixed with
723 channel password handling in silcd/command.c.
725 Mon Dec 10 19:57:40 EET 2001 Pekka Riikonen <priikone@silcnet.org>
727 * If first character of string in silc_parse_userfqdn is '@'
728 then do not parse it. Affected file is
729 lib/silcutil/silcutil.c.
731 Sun Dec 9 22:18:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>
733 * Fixed minor bug in IDENTIFY command reply sending, which
734 caused various weird problems during JOIN when it was
735 resolving names for users. Affected file silcd/command.c.
737 Sun Dec 9 19:18:41 EET 2001 Pekka Riikonen <priikone@silcnet.org>
739 * Fixed the IDENTIFY command reply sending to chech better valid
740 clients. It was possible to send incomplete list of replies.
741 Affected file silcd/command.c.
743 Sat Dec 8 15:58:31 EET 2001 Pekka Riikonen <priikone@silcnet.org>
745 * Added silc_client_command[s]_[un]register functions now to
746 dynamically register the commands in client library. Removed
747 the static table of commands. This allows the client library
748 to call commands without causing the application to know about
749 what commands library has called.
751 Removed the INFO command reply kludge to detect when the command
752 was called by library. Now library use its own command reply
753 function for INFO command.
755 Added function silc_client_command_call to call a command.
756 Application can use it to call command, not access the structure
759 Now all commands that are sent by the client library (not
760 explicitly sent by application) use own command reply functions.
762 Affected files around lib/silcclient/ and in
763 irssi/src/silc/core/.
765 * Fixed the WHOIS command reply sending to chech better valid
766 clients. It was possible to send incomplete list of replies.
768 Fixed the WHOIS and IDENTIFY to send the request to router
769 if normal server did not do it and did not find any results.
771 Affected file silcd/command.c.
773 Thu Dec 6 17:21:06 EET 2001 Pekka Riikonen <priikone@silcnet.org>
775 * Moved the internal data from SilcClient context into its
776 own file, not accesible to application. Affected files
777 lib/silcclient/client.h and lib/silcclient/client_internal.h,
778 and other files in client library.
780 Thu Dec 6 10:37:55 EET 2001 Pekka Riikonen <priikone@silcnet.org>
782 * Added doc/examples installation target in Makefile.am.pre.
785 Tue Dec 4 17:43:19 EET 2001 Pekka Riikonen <priikone@silcnet.org>
787 * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
788 commands the found client entry will be removed from the
789 cache, after notifying application about the error. Affected
790 file lib/silcclient/command_reply.c.
792 * Changed the /MSG to check for exact nickname user gave, and
793 not let `nick' match `nick@host' if it is only one found. Now,
794 user must type the exact nickname (like nick@host2) even if
795 there are no more than one same nicks found. This is to avoid
796 a possibility of sending nickname to wrong nickname since
797 `nick' could match `nick@host'. Affected file is
798 irssi/src/core/silc-servers.c.
800 Mon Dec 3 18:49:45 EET 2001 Pekka Riikonen <priikone@silcnet.org>
802 * Do not print "you are now server operator" or similar when
803 giving /away command. Affected files are
804 irssi/src/silc/core/client_ops.c, silc-servers.h.
806 * Made the silc_server_command_pending_error_check to send
807 the same command reply payload it received back to the
808 original sender of the command. This way all arguments
809 that was received by the server will be received by the
810 client too. Affected file silcd/command.c.
812 * Added the silc_idcache_add to return the created cache entry
813 to a pointer. Affected file lib/silccore/silcidcache.[ch].
815 * Add global clients to expire if they are not on any channel.
816 This is because normal server will never know if they signoff
817 if they are not on any channel. The cache expiry will take
818 case of these entries. This is done by normal servers only.
819 The affected files are silcd/command_reply.c,
820 silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
822 * If server receives invalid ID notification for WHOIS or
823 IDENTIFY and the ID exists in the lists, it is removed.
824 Affected file silcd/command_reply.c.
826 * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
827 in client then client entry that it matches is searched and
828 the nickname is printed on the screen for user. Affected
829 file irssi/src/silc/core/client_ops.c.
831 Mon Dec 3 11:56:59 EET 2001 Pekka Riikonen <priikone@silcnet.org>
833 * Use cache entry expire time in the LIST command reply to
834 purge old entries from the cache after the LIST command
835 reply has been received. This way we don't have non-existent
836 entries in the cache for too long. Affected file is
837 silcd/command_reply.c.
839 Sun Dec 2 23:29:07 EET 2001 Pekka Riikonen <priikone@silcnet.org>
841 * If we are normal server, and we've not resolved client info
842 in WHOIS or IDENTIFY from router, and it is global client,
843 we'll check whether it is on some channel. If it is not
844 then we cannot be sure about its validity and will resolve it
845 from router. Fixes a bug in WHOIS and IDENTIFY. Affected
846 file silcd/command.c.
848 * Search channel by name (if possible) rather than by ID
849 in IDENTIFY command's command reply. Affected file is
850 silcd/command_reply.c.
852 Sun Dec 2 13:48:46 EET 2001 Pekka Riikonen <priikone@silcnet.org>
854 * Distribute to the channel passphrase in CMODE_CHANGE notify.
855 Updated specs and implemented it. Affected file silcd/command.c,
856 silcd/packet_send.c and silcd/packet_receive.c.
858 * Implemented the <founder auth> payload handling in the JOIN
859 command. If provided all conditions for channel joining
860 except requirement to provide correct passphrase can be
861 overrided by the channel founder. Updated the protocol specs.
862 Affected file silcd/command.c.
864 Added support for founder auth in JOIN command in client
865 library. Fixed the parsing of the JOIN command now to support
866 all options as they should be. The affected file is
867 lib/silcclient/command.c.
869 * Optimized the WHOIS and IDENTIFY commands to send the request
870 to router only if it includes nicknames or other names. If
871 they include only IDs then check the local cache first before
872 routing. Affected file is silcd/command.c.
874 * Added channels topic announcements. Affected file is
875 silcd/packet_receive.c and silcd/server.c.
877 * Fixed the silc_server_send_notify_topic_set to really destine
878 the packet to channel. Affected file silcd/packet_send.c.
880 * Fixed a crash in CHANNEL_CHANGE notify handling in the client
881 library. Affected file lib/silcclient/client_notify.c.
883 * Added UMODE announcements. Affected file silcd/server.c.
885 Sat Dec 1 12:52:39 EET 2001 Pekka Riikonen <priikone@silcnet.org>
887 * Memory leak fixes in:
889 lib/silcutil/silcsockconn.c
890 lib/silcske/silcske.c
893 lib/silccrypt/silcpkcs.c
894 lib/silccore/silccommand.c
895 lib/silccore/silcidcache.c
900 * ROBOdoc documented the lib/silcske/groups.h file and a
901 bit changed the interface for better.
903 Thu Nov 29 22:12:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
905 * Update the client entry context in the ID cache after
906 nick change. Affected file lib/silcclient/command.c.
907 Fixes the CUMODE command when regaining founder privileges,
908 and a little WHOIS problem.
910 * Fixed silc_net_gethostbyname to correctly call the
911 inet_ntop. Affected file lib/silcutil/silcnet.c.
913 Thu Nov 29 19:31:23 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
915 * Added IPv6 support checking to the configure.in.pre, added
916 also --enable-ipv6 option to override the check. Affected
917 file configure.in.pre.
919 * The silc_thread_create now calls the start function
920 directly if threads support is not compiled in. Removes
921 ugly #ifdef's from generic code. Affected files are
922 lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
924 * Added silc_net_gethostby[name/addr]_async to asynchronously
925 resolve. Affected files are lib/silcutil/silcnet.[ch].
927 * Added support for rendering IPv6 based server, client and
928 channel IDs. Affected file lib/silcutil/silcutil.c.
930 * Added support for creating IPv6 based server IDs. Affected
931 file is silcd/serverid.c.
933 Wed Nov 28 23:46:09 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
935 * Added silc_net_gethostby[addr/name] into the
936 lib/silcutil/silcnet.[ch]. Added IPv6 support to Unix network
937 routines. Added silc_net_is_ip[4/6]. Affected file is
938 lib/silcutil/unix/silcunixnet.c. All routines that take
939 address as argument now supports both IPv4 and IPv6 addresses.
941 Mon Nov 26 18:09:48 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
943 * Fixed LIST command reply sending in server. Affected file
946 * Server now sends the kicker's client ID in the KICK notify
947 to the kicked client. Affected file silcd/command.c.
949 * The client library now parses the kickers client ID and
950 UI displays it. Affected files lib/silcclient/client_notify.c
951 and irssi/src/silc/core/silc-channels.c, module-formats.c.
953 * Made all payload parsing function prototypes consistent.
954 They all take now const unsigned char * and uint32 pair as
955 the payload data instead of SilcBuffer. Changes all around
956 the source tree. Other unsigned char* -> const unsigned char*
957 changes around the tree as well.
959 * Optimized SFTP client and server packet sending not to
960 allocate new buffer for each packet but to recycle the
961 first allocated buffer. Affected files are
962 lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
964 * Optimized the SFTP client to use SilcList instead of
965 SilcDList for requests, because it is faster. Affected file
966 is lib/silcsftp/sftp_client.c.
968 * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
969 into lib/silccore/silcid.[ch].
971 Renamed silcpayload.[ch] into silcargument.[ch].
973 Mon Nov 26 15:01:53 CET 2001 Pekka Riikonen <priikone@silcnet.org>
975 * If client entry is deleted with active key agreement
976 session, abort the session.
978 The silc_client_abort_key_agreement now calls the completion
979 callback with new SILC_KEY_AGREEMENT_ABORTED status.
981 Affected file lib/silcclient/silcapi.h, client_keyagr.c and
984 Sun Nov 25 18:01:45 EET 2001 Pekka Riikonen <priikone@silcnet.org>
986 * Don't use __restrict in older GCC's. Affected file is
987 lib/silcmath/mpi/mpi-priv.h. A patch by salo.
989 * silc_net_localhost now attempts to reverse lookup the
990 IP/hostname. Affected file lib/silcutil/silcnet.c.
992 * Defined <founder auth> argument to the SILC_COMMAND_JOIN
993 command. It can be used to gain founder privileges at
994 the same time when joining the channel.
996 Defined that the SILC_NOTIFY_TYPE_KICKED send the
997 kicker's client ID as well. Updated protocol specs.
999 Defined that the server must send SILC_COMMAND_IDENTIFY
1000 command reply with error status to client who sent
1001 private message with invalid client ID.
1003 Updated the protocol specification.
1005 * Added silc_server_send_command_reply to send any
1006 command reply. Affected file silcd/packet_send.[ch].
1008 * Added silc_id_payload_encode_data to encode ID payload
1009 from raw ID data. Affected file lib/silccore/silcpayload.[ch].
1011 * The server now send IDENTIFY command reply with error
1012 status if client ID in private message is invalid. Affected
1013 file silcd/packet_receive.c.
1015 * Save the server key file with server's IP address in
1016 the filename instead of hostname. The affected file is
1017 irssi/src/silc/core/client_ops.c.
1019 Sat Nov 24 20:08:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1021 * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
1024 * Added libtool support for compiling shared objects in
1025 lib/silcsim. Affected file configure.in.pre and
1026 lib/silcsim/Makefile.am. Original patch by cras.
1028 Fri Nov 23 23:30:59 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1030 * Pid file configuration, and server's config file fixes
1031 patch by toma. Updated CREDITS file.
1033 Sun Nov 18 01:34:41 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1035 * Fixed silc_client_channel_message to not try to decrypt
1036 the message twice if it resolved the destination client
1037 information. This could cause of dropping one channel
1038 message. Affected file lib/silcclient/client_channel.c.
1040 Wed Nov 14 23:44:56 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1042 * Added silc_client_run_one into lib/silcclient/silcapi.h and
1043 lib/silcclient/client.c. This function is used when the SILC
1044 Client is run under some other scheduler, or event loop or
1045 main loop. On GUI applications, for example this may be
1046 desired to used to run the client under the GUI application's
1047 main loop. Typically the GUI application would register an
1048 idle task that calls this function multiple times in a second
1049 to quickly process the SILC specific data.
1051 Wed Nov 14 19:16:52 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
1053 * Fixed silc_server_drop() for dropping the supplementary
1054 groups as well, this could cause a security hole on some
1057 Wed Nov 14 16:22:25 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1059 * __pid_t -> pid_t in lib/silccrypt/silcrng.c. A patch by
1062 * Write PID file after dropping privileges. Added -F option
1063 to run server on foreground. A patch by debolaz.
1064 Affected files silcd/server.c, silcd/silcd.c.
1066 * Fixed MOTD to return the MOTD file server name. Affected
1067 file silcd/command.c.
1069 * Added INFO command reply handling to the Irssi SILC Client.
1070 Affected file irssi/src/silc/core/client_ops.c.
1072 Wed Nov 14 00:18:08 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1074 * Fixed the silc_idcache_list_* routines to really support
1075 the dynamic list. Fixes a crash. Affected file is
1076 lib/silccore/silcidcache.c.
1078 * Fixed the LIST command reply to really call LIST command's
1079 pending callbacks. Affected file silcd/command_reply.c.
1081 Tue Nov 13 00:49:17 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1083 * Update conn->local_entry->nickname after giving NICK
1084 command. Affected file lib/silcclient/command.c.
1086 Sun Nov 11 23:43:02 PST 2001 Brian Costello <bc@wpfr.org>
1088 * Added the [pid] option to the silcd configuration file
1090 Affected files: serverconfig.[ch] and silcd.c
1092 Sun Nov 11 23:56:39 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1094 * Save fingerprint in WHOIS command reply in server.
1095 Affected file silcd/command_reply.c.
1097 * Fixed NICK commands pending callback registration.
1098 Affected file lib/silcclient/command.c.
1100 Sun Nov 11 10:49:10 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1102 * Use ++server->cmd_ident when sending commands in server,
1103 instead of random number. Affected file silcd/command.c.
1105 * Fixed GETKEY command reply to call actually GETKEY pending
1106 command callbacks. Affected file silcd/command_reply.c.
1108 * A bit stricter check for nicknames. Check for same nickname
1109 in NICK command also. Affected file silcd/command.c.
1111 * Do not call INFO command everytime client ID changes, only
1112 during first connecting. Affected file lib/silcclient/client.c.
1114 * Set the new nickname only after successful command reply for
1115 NICK command is returned by server. Affected file
1116 lib/silcclient/command.c.
1118 * Remove nicknames from nicklist during server_signoff notify.
1119 Should fix /NAMES bit more. The affected file is
1120 irssi/src/silc/core/silc-channels.c.
1122 * Added `fingerprint' field to the SilcIDListData in the
1123 silcd/idlist.h to hold the fingerprint of the client's
1126 Send the fingerprint of the client's public key in WHOIS
1129 Affected files silcd/command.c, and silcd/idlist.[ch].
1131 * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
1132 create fingerprint from given data.
1134 * Show the fingerprint of the client's public key in WHOIS.
1135 Affected files irssi/src/module-formats.[ch] and
1136 irssi/src/silc/core/client_ops.c.
1138 * Format the multiple same nicknames also during JOIN and
1139 NICK_CHANGE notifys. Affected file is
1140 lib/silcclient/client_notify.c.
1142 * Do not print error on screen for invalid private message
1143 payload since it can come if someone is sending private
1144 messages with wrong key. Affected file
1145 lib/silccore/silcprivate.c.
1147 * Fixed multiple concurrent /PING crash. Affected file
1148 lib/silcclient/command.c.
1150 * Changed the wrong ID encoding. All IP addresses must be
1151 in MSB first order in encoded format. They were encoded
1152 wrong and was in LSB format. Affected files are
1153 silcd/serverid.c, lib/silcutil/silcutil.c.
1155 * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
1157 * Call the `connect' client operation through the scheduler
1158 in case of error. Affected file lib/silcclient/client.c.
1160 * Call the `failure' client operation even if the error
1161 occurred locally during a protocol. Affected file is
1162 lib/silcclient/protocol.c.
1164 * Added support of sending LIST command to router from normal
1165 server. This way normal server can get list of all channels
1166 in the network too. Fixed the channel list sending in the
1167 server too. Affected files are silcd/command.c, and
1168 silcd/command_reply.[ch].
1170 * Added silc_server_update_channels_by_server and
1171 silc_server_remove_channels_by_server. They are used during
1172 disconnection of primary router and in backup router protocol.
1173 Affected file silcd/server_util.[ch], silcd/server.c and
1174 silcd/server_backup.c.
1176 * Fixed channel adding to global list in IDENTIFY command
1177 reply in server. Affected file silcd/command_reply.c.
1179 Sat Nov 10 21:39:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1181 * If the incoming packet type is REKEY or REKEY_DONE process
1182 that packet always synchronously. Fixes yet another MAC
1183 failed error on slow (dialup) connections. Affected file
1184 lib/silcclient/client.c and silcd/server.c.
1186 Thu Nov 8 22:21:09 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1188 * Call check_version SKE callback for initiator too. Affected
1189 file lib/silcske/silcske.c.
1191 * Implemented fix for security hole found in the SKE that was
1192 fixed in the specification few days back; the initiator's
1193 public key is now added to the HASH value computation.
1194 Added backwards support for the old way of doing it too, for
1195 old clients and old servers. Affected file is
1196 lib/silcske/silcske.c.
1198 * Enabled mutual authentication by default in SKE. If initiator
1199 is not providing mutual authentication the responder will
1200 force it. This will provide the proof of posession of the
1201 private key for responder. The affected files are
1202 lib/silcclient/protocol.c and silcd/protocol.c.
1204 * Do not cache anymore the server's public key during SKE.
1205 We do mutual authentication so the proof of posession of
1206 private key is done, and if the server is authenticated in
1207 conn auth protocol with public key we must have the public
1208 key already. Affected file silcd/protocol.c.
1210 * Added new global debug variable: silc_debug_hexdump. If
1211 it is set to TRUE SILC_LOG_HEXDUMP will be printed. Affected
1212 file lib/silcutil/silclog.[ch].
1214 * Fixed compilation warning due to char * -> const char *.
1215 Affected files lib/silcutil/silcnet.h, and
1216 lib/silccore/silcauth.[ch].
1218 Wed Nov 7 20:43:03 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1220 * Fixed CMODE command when new channel key was created. If
1221 the creation failed the old key was removed. Next time giving
1222 same command would crash the server since the old key was
1223 freed already. Affected file silcd/command.c.
1225 * Fixed the silc_server_announce_get_channels to not crash
1226 on reconnect. Affected file silcd/server.c.
1228 Wed Nov 7 17:15:07 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1230 * Added silc_log_set_debug_string function to set a regex
1231 string to match for debug output. Only the function names,
1232 or filenames matching the given debug string is actually
1233 printed. This way it is possible to filter out those debug
1234 strings that user is not interested in.
1236 Fixed a bug in silc_string_regexify.
1238 Affected files lib/silcutil/silclog.[ch], and
1239 lib/silcutil/unix/silcunixutil.c.
1241 * Changed the -d options in both server and Irssi SILC client
1242 to take the debug string as argument. Affected files
1243 silcd/silcd.c and irssi/src/silc/core/silc-core.c.
1245 Tue Nov 6 21:31:54 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1247 * Added silc_hash_babbleprint to create a Bubble Babble
1248 Encoded fingerprint. The encoding is developed by Antti
1249 Huima (draft-huima-babble-01.txt), and it creates human
1250 readable strings out of binary data. Affected file
1251 lib/silccrypt/silchash.[ch].
1253 * Print the babble print now in addition of fingerprint as well
1254 in Irssi SILC client. Affected files are
1255 irssi/src/fe-common/silc/module-formats.[ch],
1256 irssi/src/fe-common/silc/core/client_ops.c.
1258 Sun Nov 4 23:37:28 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1260 * Fixed a security problem found in SKE. The initiator's
1261 public key too is now added to the HASH hash value creation
1262 which is signed by the responder to create the SIGN value.
1263 This will prevent anyone in the middle to lie to the responder
1264 about the initiator's public key. If this is done now, the
1265 man in the middle will get caught. Updated the protocol
1268 Sun Nov 4 11:43:53 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1270 * Better installation directory handling. Configure module
1271 paths and other paths automatically to example_silc* files
1272 in doc/. A patch by toma.
1274 * Fixed compiler warning from MPI library, and from SILC RNG.
1277 * Added SILC_SERVER_PID_FILE to define the pid file for server.
1278 It can be configured with ./configure. A patch by toma.
1280 Sat Nov 3 23:48:23 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1282 * Find correct make to use in prepare-clean. A patch by
1283 toma. Affected file prepare-clean.
1285 Sat Nov 3 22:04:00 PST 2001 Brian Costello <bc@mksecure.com>
1287 * Added irssi variables use_auto_addr, auto_bind_ip,
1288 auto_bind_port and auto_public_ip.
1290 * Changed the interface for silc_client_send_key_agreement
1291 in lib/silcclient/silcapi.h
1295 irssi/src/silc/core/silc-core.c
1297 lib/silcclient/silcapi.h
1298 irssi/src/silc/core/silc-channels.c
1299 lib/silcclient/client_keyagr.c
1302 Sat Nov 3 17:48:55 EET 2001 Pekka Riikonen <priikone@silcnet.org>
1304 * Added silc_pkcs_public_key_compare to compare two
1305 public keys. Affected file lib/silccrypt/silcpkcs.[ch].
1307 * Check that the client who set the founder mode on the
1308 channel is the same client that is giving the founder
1309 mode to itself. It is done by comparing the saved public
1310 key (it is saved even in the authentication is passphrase).
1311 Affected file silcd/command.c.
1313 Fri Nov 2 18:52:08 EST 2001 Pekka Riikonen <priikone@silcnet.org>
1315 * Do not process packet for disconnected socket connection.
1316 Affected file lib/silccore/silcpacket.c.
1318 * Process the DISCONNECT packet through scheduler in the
1319 client library. Affected file lib/silcclient/client.c.
1321 * Fixed the silc_client_packet_parse to not to increase
1322 the packet sequence number if the conn->sock and the
1323 current socket connection is not same. This can happen
1324 for example during key agreement when the conn includes
1325 multiple socket connections (listeners). Affected file
1326 lib/silcclient/client.c.
1328 * The sender of the file transfer request now provides also
1329 the pointer (listener) for the key exchange protocol. If
1330 the listener cannot be created then it sends empty key
1331 agreement and lets the receiver provide the listener.
1333 Added `local_ip' and `local_port' arguments to the
1334 silc_client_file_send. If they are provided they are used,
1335 if not then it will attempt to find local IP address, if
1336 not found or bind fails then the remote client will provide
1339 Affected files are lib/silcclient/client_ftp.c and
1340 lib/silcclient/silcapi.h.
1342 * Extended the FILE SEND command to support defining the
1343 local IP and port for key exchange listener. They are
1344 optional. Affected file irssi/src/silc/core/silc-servers.c.
1346 Thu Nov 1 22:10:07 EST 2001 Pekka Riikonen <priikone@silcnet.org>
1348 * Defined to WHOIS command reply the sending of fingerprint
1349 of the client's public key (if the proof of posession of the
1350 corresponding private key is verified by the server).
1351 Updated to the protocol specification.
1353 * Added support of receiving the client's public key's
1354 fingerprint in command reply in client library. Affected
1355 file is lib/silcclient/command_reply.c, and
1356 lib/silcclient/idlist.[ch].
1358 Thu Nov 1 18:06:12 EST 2001 Pekka Riikonen <priikone@silcnet.org>
1360 * Do not send over 128 chars long nickname to the server
1361 in NICK command. Affected file lib/silcclient/command.c.
1363 * Do not send over 256 chars long channel names to the server
1364 in JOIN command. Affected file lib/silcclient/command.c.
1366 Tue Oct 30 22:48:59 EST 2001 Pekka Riikonen <priikone@silcnet.org>
1368 * Assure that silc_server_close_connection cannot be called
1369 twice for same socket context. Affected file is
1372 Tue Oct 30 16:58:14 EST 2001 Pekka Riikonen <priikone@silcnet.org>
1374 * Send error message to application if opening file for
1375 writing during file transfer fails. Affected file is
1376 lib/silcclient/client_ftp.c.
1378 Remove all file transfer sessions for a client that we're
1379 removing from ID cache.
1381 Affected file is lib/silcclient/client_ftp.c.
1383 * Fixed silc_net_addr2bin to return correct address. Affected
1384 file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
1386 * Fixed file transfer session removing on signoff notify.
1387 Affected file irssi/src/silc/core/silc-servers.c.
1389 * Added the SilcClientFileError to be returned in the monitor
1390 callback. Added NO_SUCH_FILE and PERMISSION_DENIED errors.
1391 Affected file lib/silcclient/silcapi.h.
1393 Mon Oct 29 17:43:04 EST 2001 Pekka Riikonen <priikone@silcnet.org>
1395 * Fixed a crash in silc_client_ftp_free_sessions and
1396 silc_client_ftp_session_free_client. Affected file
1397 lib/silcclient/client_ftp.c.
1399 * Added `disabled' field in the SilcChannelEntry in the server
1400 to indicate if the server entry is disabled. Affected file
1401 silcd/idlist.h, silcd/command[_reply].c.
1403 * SILC server adds now /var/run/silcd.pid everytime it is
1404 started. Affected file silcd/silcd.c.
1406 * Added silc_server_packet_send_clients to send a packet to
1407 the provided table of client entries. Affected file
1408 silcd/packet_send.[ch].
1410 * Fixed a crash in client resolving in client_prvmsg.c in
1411 client library. Affected file lib/silcclient/client_prvmsg.c.
1413 * Do not actually remove the client directly from ID cache
1414 during SERVER_SIGNOFF, but invalidate it. This way we
1415 preserve the WHOWAS info for the client. Affected file
1416 silcd/server_util.c.
1418 * Fixed SERVER_SIGNOFF notify handling in the server. The
1419 server is now able to process incoming SERVER_SIGNOFF notify
1420 for a server that it doesn't even know about. It will remove
1421 the clients provided in the notify. Affected file
1422 silcd/packet_receive.c.
1424 * Check for partial packet in data queue after every packet that
1425 was found from the queue. Return and wait for more data if
1426 there is partial data in queue. Affected file is
1427 lib/silccore/silcpacket.c.
1429 Sun Oct 28 18:46:27 EST 2001 Pekka Riikonen <priikone@silcnet.org>
1431 * Added SilcClietFileError enum to indicate error in
1432 file transfer. Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
1433 and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
1434 Affected files lib/silcclient/silcapi.h and
1435 lib/silcclient/client_ftp.c.
1437 * Check that newsize in silc_buffer_realloc is larger than
1438 the old buffer's size. Affected file lib/silcutil/silcbufutil.h.
1440 * Added better monitor of file transfers. It now monitors
1441 key agreement protocol during the file transfer too. Added
1442 error reporting too. Affected files
1443 irssi/src/silc/core/silc-servers.c,
1444 irssi/src/fe-common/silc/module-formats.[ch].
1446 * Wrote a help file for FILE command.
1448 * Added silc_rng_global_get_byte_fast to get not-so-secure
1449 random data as fast as possible. Random data is read from
1450 /dev/urandom if available and from the SILC RNG if not
1451 available. It is used in padding generation. Affected file
1452 lib/silccrypt/silcrng.[ch].
1454 * All packets in client library are now processed synchronously.
1455 Optimized packet processing a lot. Affected file
1456 lib/silcclient/client.c.
1458 * All server connection packets are processing synchronously
1459 now in server, to optimize packet processing. Affected file
1462 * Include files are installed now only in Toolkit distribution
1463 if make install is given. Affected files: all Makefile.am's.
1465 Thu Oct 25 22:44:06 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1467 * Assure that silc_client_notify_by_server_resolve does not
1468 resolve the client information multiple times. If it cannot
1469 be found by the first it cannot be found at all. Affected
1470 file lib/silcclient/client_notify.c.
1472 * Fixed WHOWAS command reply calling. Affected file
1473 lib/silcclient/command_reply.c.
1475 * Removed all references to silc_idlist_get_client from the
1476 Irssi SILC client since that call is internal call used by
1477 the library. The Irssi SILC client will use now client
1478 retrieval functions found in silcapi.h.
1480 * Fixed a bug in resolving nickname info before sending
1481 private message. It used freed memory. Affected file
1482 irssi/src/silc/core/silc-servers.c.
1484 Thu Oct 25 19:04:49 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1486 * Assure my_channels statistics cannot go negative in server.
1487 Affected files silcd/server.c, silcd/server_util.c.
1489 Wed Oct 24 19:53:05 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1491 * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
1493 Tue Oct 23 13:51:19 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1495 * Win32 Toolkit changes. Affected files
1496 win32/silc.dsw, win32/libsilc/libsilc.def,
1497 win32/libsilcclient/libsilc.def,
1498 lib/silcutil/silcutil.c, and
1499 lib/sftp/sftp_fs_memory.c.
1501 Mon Oct 22 16:35:05 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1503 * Added silc_net_localip to return local host's IP address.
1504 Affected file lib/silcutil/silcnet.[ch].
1506 * If key exchange or rekey protocol is active for a connection
1507 parse all packets syncronously since there might be packets
1508 in packet queue that we are not able to process without first
1509 processing packets before them. Affected file silcd/server,
1510 lib/silcclient/client.c.
1512 * SilcPacketParserCallback now returns TRUE or FALSE to indicate
1513 whether library should continue processing the packet.
1514 Affected file lib/silccore/silcpacket.h.
1516 * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
1517 SilcSFTPMonitorData to SFTP server to monitor various
1518 SFTP client requests. Affected file lib/silcsftp/silcsftp.h,
1519 lib/silcsftp/sftp_server.c.
1521 * Added silc_file_size to return file size. Affected file
1522 lib/silcutil/silcutil.[ch].
1524 * Implemented the file transfer support for the client library.
1525 Added preliminary support for simple client to client one-file
1526 transmission. Affected file lib/silcclient/client_ftp.c,
1527 lib/silccilent/client.[ch].
1529 * Added new local command FILE to the Irssi SILC Client.
1530 It is used to perform the file transfer. It has subcommands
1531 SEND, RECEIVE, SHOW and CLOSE. Affected files
1532 irssi/src/silc/core/client_ops.c,
1533 irssi/src/silc/core/silc-server.[ch].
1535 Mon Oct 22 12:50:08 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1537 * Relay the SILC_PACKET_FTP in the server. Affected files
1538 silcd/server.c and silcd/packet_receive.c.
1540 Sun Oct 21 20:21:02 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1542 * Renamed silc_file_read and silc_file_write to functions
1543 silc_file_readfile and silc_file_writefile. Added function
1544 silc_file_open and silc_file_close. Affected files
1545 lib/silcutil/silcutil.[ch].
1547 Thu Oct 18 20:58:13 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1549 * Resolve the client info when received private message or
1550 channel message for a client which nickname we don't know.
1551 Affected files lib/silcclient/client_prvmsg.c and
1552 lib/silcclient/client_channel.c.
1554 * Do not crash in /KEY if client is not connected. Affected
1555 file irssi/src/silc/core/silc-channels.c.
1557 * Added SilcClientStatus field to the SilcClientEntry in the
1558 lib/silcclient/idlist.h.
1560 Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
1561 is incomplete and is being resolved, it won't be resolved
1564 Make sure also that USERS command reply does not resolve
1565 twice information. Affected file is
1566 lib/silcclient/command_reply.c.
1568 Make sure that silc_client_get_clients_by_list does not
1569 resolve twice same information.
1571 * Check for valid client->id in the silc_server_free_client_data.
1572 Affected file silcd/server.c.
1574 * Fixed /GETKEY nick@server not to crash if the server entry
1575 is not found. Affected file lib/silcclient/command.c.
1577 * Fixed the silc_server_check_cmode_rights to check the
1578 requested modes correctly. Affected file silcd/command.c.
1580 Thu Oct 18 12:10:22 CEST 2001 Pekka Riikonen <priikone@silcnet.org>
1582 * Better checks for non-printable chars in nick added.
1583 Affected file silcd/command.c.
1585 Thu Oct 18 09:18:58 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1587 * Call the silc_server_udpate_servers_by_server in the
1588 primary router that comes back online in the backup resuming
1589 protocol. Otherwise it routes packets wrong. Affected file
1590 silcd/server_util.[ch], silcd/server_backup.c.
1592 Wed Oct 17 16:51:18 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1594 * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
1595 lib/silcutil/silcbuffmt.[ch].
1597 * Redefined the SILC packet header to include the padding
1598 length. Affected file lib/silccore/silcpacket.[ch].
1600 * Added SILC_PACKET_PADLEN_MAX macro to return the padding
1601 length for maximum padding up to 128 bytes). Affected
1602 file lib/silccore/silcpacket.h.
1604 * Removed all backwards support for old 0.5.x MAC thingies.
1605 The SILC packet header change makes it impossible to be
1606 backwards compatible.
1608 * Send the ENDING packet with timeout in the backup resuming
1609 protocol. This is to assure that all routers has connected
1610 to the primary router. Affected file silcd/server_backup.c.
1612 * Changed the RNG to take the first IV from random data. It
1613 used to take it from zero actually. Changed the RNG also
1614 to use /dev/urandom during session. /dev/random is used
1615 in initialization. Affected file lib/silccrypt/silcrng.[ch].
1617 Tue Oct 16 20:45:49 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1619 * Changed the SILC packet header to have the first two bytes
1620 (the packet length) encrypted. Affected files aroung the
1621 code tree, lib/silccore/silcpacket.[ch]. Removed the
1622 SilcPacketCheckDecrypt callback. It is not needed anymore
1623 since the silc_packet_receive_process will determine now
1624 whether the packet is normal or special.
1626 * Implemented the unidirectional MAC keys. Affected files
1627 lib/silcske/silcske.c, silcd/protocol.c and
1628 lib/silcclient/protocol.c.
1630 * Implemented the packet sequence number to the MAC computation.
1631 Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
1632 silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
1633 lib/silcclient/protocol.c.
1635 Mon Oct 15 17:42:55 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1637 * Allow backup router to announce servers. All servers
1638 announced by backup router are added to the global list
1639 automatically. Update hte server's socket to our primary
1640 router also when backup router announces a server.
1641 Affected file silcd/packet_receive.c.
1643 * Do not update the client->router in the function
1644 silc_server_udpate_clients_by_server if the client is on
1645 global list. We might fail to find any specific server
1646 for locally connected clients and local cell clients. They
1647 should still use the `from' and not `to' as client->router.
1648 This fixes backup router resuming protocol. Affected file
1649 silcd/server_util.c.
1651 * Decrease channel statistics count only if the channel
1652 deletion worked. Affected files are silcd/server.c and
1653 silcd/server_util.c.
1655 * Added silc_server_update_servers_by_server to update origin
1656 of all server entries. Used during backup router protocol.
1657 Affected files silcd/server_util.[ch], silcd/server.c. and
1658 silcd/backup_router.c.
1660 * ROBODoc documented the lib/silccrypt/silchmac.h. Added new
1661 function silc_hmac_init, silc_hmac_update, silc_hmac_final,
1662 silc_hmac_get_hash and silc_hmac_get_name. Affected file
1663 lib/silccrypt/silchmac.c.
1665 Sun Oct 14 18:28:22 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1667 * Assure that router cannot reroute the same channel message
1668 to the sender. Affected file silcd/packet_receive.c.
1670 Sat Oct 13 12:46:18 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1672 * Made better checks that the channel message is not sent
1673 to the router it came from. Affected file is
1674 silcd/packet_send.c. Fixed memory leak too.
1676 * Announce informations for incoming router connection, but
1677 only after checking if it is replaced by backup router.
1678 Affected file silcd/packet_receive.c.
1680 Fri Oct 12 18:37:24 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1682 * Fixed the backup resuming protocol to work in multiple
1683 router environment. Affected file silcd/server_backup.c.
1685 * Route packet only to one router in the function
1686 silc_server_packet_send_to_channel. Affected file is
1687 silcd/packet_send.c.
1689 * Fixed silc_server_send_notify_dest to set the broadcast
1690 flag. Fixed the silc_server_send_notify_topic to actually
1691 send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
1692 Affected file silcd/packet_send.c.
1694 * Changed the SFTP Filesystem interface. Changed the
1695 SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
1696 the filesystem operation function. The SilcSFTPFilesystem
1697 is now a context that is allocated by all filesystem allocation
1698 functions and it already includes the operations structure
1699 and filesystem specific context. It is given as argument
1700 now to the silc_sftp_server_start. This made the interface
1701 a bit cleaner. Affected file lib/silcsftp/silcsftp[_fs].h,
1702 lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
1704 Thu Oct 11 22:19:26 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1706 * Changed the backup router adding and getting interfaces
1707 in the server. The router that will be replaced by the
1708 specified backup router is now sent as argument. Affected
1709 files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
1712 * Added silc_net_addr2bin_ne to return the binary form of
1713 the IP address in network byte order. Affected files
1714 lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
1716 Thu Oct 11 12:14:19 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1718 * Check for existing server ID in silc_server_new_server
1719 and in silc_server_connect_to_router_final and remove the
1720 old entry if it exists. Affected file silcd/packet_receive.c,
1723 * Send the channel message always to only one router, either
1724 in upstream or downstream. Affected file is
1725 silcd/packet_send.c.
1727 Tue Oct 9 17:45:43 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1729 * Wrote the definition of the backup resuming protocol to the
1730 protocol specification.
1732 * Removed one redundant channel key generation from normal
1733 server during joining procedure. Removed one redundant
1734 channel key sending from server to router during joining
1735 procedure. Affected file silcd/command.c.
1737 * Made minor bugfixes to the backup router resuming protocol.
1738 Affected file silcd/server_backup.c, server.c.
1740 Mon Oct 8 16:47:42 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1742 * Added --disable-asm configuration option. Affected files
1743 configure.in.pre, lib/silcmath/mpi/configure.in. A patch
1746 * Implemented the backup resuming protocol that is used to
1747 resume the primary router position in the cell after the
1748 primary router comes back online. Affected files
1749 silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
1750 and silcd/server_util.[ch].
1752 Sun Oct 7 12:29:25 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1754 * Sleep two (2) seconds after sending QUIT command to server.
1755 Affected file lib/silcclient/command.c.
1757 * Assure that if outgoing data buffer is pending do not force
1758 send any data. Affected file silcd/packet_send.c.
1760 * Assure that if outgoing data buffer is pending do not force
1761 send any data. Affected file lib/silcclient/client.c.
1763 * Implemented the backup router support when the primary router
1764 goes down. The servers and routers can now use the backup
1765 router as new primary router without loosing connectivity.
1767 Sat Oct 6 21:18:54 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1769 * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
1770 in the server to indicate disabled entry. All data read
1771 from the connection will be ignored and no data is sent
1772 for entry that is disabled. Affected files are
1773 silcd/idlist.h, silcd/server.c.
1775 Fri Oct 5 00:03:29 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1777 * Created SFTP client and server test programs in the
1778 lib/silcsftp/tests directory.
1780 Wed Oct 3 23:31:42 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1782 * Implemented memory filesystem (virtual filesystem) for
1783 SFTP server. Affected file lib/silcsftp/silcsftp_fs.h,
1786 Sun Sep 30 22:10:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1788 * Implemented the SFTP (SSH File Transfer Protocol) to the
1789 lib/silcsftp. It includes SFTP client and SFTP server
1792 Sun Sep 30 10:35:44 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1794 * Moved lib/silccore/silcprotocol.[ch] to the
1795 lib/silcutil library.
1797 * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
1798 take variable argument list pointer as argument. Affected
1799 file lib/silcutil/silcbuffmt.[ch].
1801 * Added silc_buffer_set function that is used to set data
1802 to a SilcBuffer that is not allocated at all (SilcBufferStruct).
1803 Affected file lib/silcutil/silcbuffer.h.
1805 * Changed various routines in the core library to use the new
1806 silc_buffer_set instead of allocating new buffer only for
1809 * Added 64-bit value formatting and unformatting support to the
1810 silc_buffer_[un]format routines. Affected file is
1811 lib/silcutil/silcbuffmt.[ch].
1813 Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
1814 to includes/bitmove.h.
1816 Fri Sep 28 21:30:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1818 * Fixed channel user mode saving in client library. Affected
1819 file lib/silcclient/command[_reply].c.
1821 Thu Sep 27 22:52:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1823 * Defined the file transfer to the SILC Protocol. Added
1824 new packet type SILC_PACKET_FTP and defined File Transfer
1825 Payload. The mandatory file transfer protocol is SFTP
1826 (SSH File Transfer Protocol). Affected file in addition
1827 of the internet draft is lib/silccore/silcpacket.h.
1829 * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
1830 packet SILC_PACKET_RESUME_ROUTER instead. The new packet
1831 is used as part of backup router protocol when the primary
1832 router of the cell is back online and wishes to resume
1833 the position as primary router.
1835 * Redefined the MAC generation keys in the protocol. The
1836 same key is not used anymore in both direction. Both
1837 direction will now use different keys for sending and
1838 receiving. This fixes a potential security flaw. This
1839 change causes incompatibilities in the protocol.
1841 * Redefined also the MAC computation from the packet.
1842 An packet sequence number is now added to the MAC
1843 computation. This prevents possible replay attacks against
1844 the protocol. This change too causes incompatibilities
1847 Added `sequence' field to the SilcPacketContext to hold
1848 the current sequence number for the packet.
1850 Wed Sep 26 20:15:22 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1852 * Added `created' field to the SilcIDListData in the file
1853 silcd/idlist.h to indicate the time when the entry was
1856 * Added `created' field to the SilcChannelEntry too. Affected
1857 file silcd/idlist.h.
1859 * Added `creation_time' aguments to all the announcement functions
1860 in the server. If it is provided then only the entries that
1861 was created after the provided time frame are actually
1862 announced. Affected file silcd/server.[ch].
1864 * The protocol says that the Channel ID's IP address must be
1865 based on the router's IP address. Added check for this in
1866 the silc_server_new_channel when processing incoming New Channel
1867 Payload. Affected file silcd/packet_receive.c.
1869 * Print out the correct version with --version in SILC client.
1870 Affected file irssi/src/silc/core/silc-core.c.
1872 Mon Sep 24 17:19:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1874 * Fixed WHOWAS command to check for completnes of the client
1875 entry always, not just when the command is coming from client.
1876 Affected file silcd/command.c.
1878 * Added new function silc_server_packet_queue_purge to purge the
1879 outgoing data queue to the network. After the function returns
1880 it is guaranteed that the outgoing packet queue is empty.
1881 Affected file silcd/packet_send.[ch].
1883 * Purge the outgoing packet queue in the rekey protocol's final
1884 callback to assure that all rekey packets go to the network
1885 before quitting the protocol. Affected file silcd/server.c.
1887 * Added silc_client_packet_queue_parse as similar function as
1888 in server to the client library. The affected file is
1889 lib/silcclient/client.c.
1891 Sun Sep 23 15:15:53 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1893 * Splitted silcd/server.c and created silcd/server_util.[ch]
1894 for utility functions.
1896 * Added new socket flag SILC_SF_DISABLED to indicate that the
1897 connection is open but nothing can be sent to or received from
1898 the connection. Affected file lib/silcutil/silsockconn.[ch].
1899 The checking for disabled socket is checked in the low level
1900 silc_socket_write and silc_socket_read functions.
1902 Thu Sep 20 23:11:28 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1904 * Allow only nicknames and channel names that fits into the
1905 7-bit unsigned char ASCII set. Affected file silcd/command.c.
1907 Thu Sep 20 18:04:12 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1909 * When processing JOIN command reply in server check that if
1910 the channel exists in our global list we'll move it the local
1911 list. Affected file silcd/command_reply.c.
1913 * Fixed the check whether client is joined on the channel already
1914 in JOIN command. Affected file lib/silcclient/command.c.
1916 * Fixed the JOIN command reply to check whether the channel
1917 already exists. Affected file lib/silcclient/command_reply.c.
1919 Wed Sep 19 22:58:32 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1921 * Added silc_ske_status_string to map the SKE error numbers
1922 to readable strings. The affected files are
1923 lib/silcske/silcske[_status].[ch].
1925 Tue Sep 18 22:50:41 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1927 * Do not show the private channels on the WHOIS channel list
1928 as it is not allowed by the protocol. The affected file is
1931 Sun Sep 16 12:32:58 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1933 * Assure that the packet length digged from the actual packet
1934 is something sensible in the silc_packet_decrypt_rest_special
1935 in lib/silccrypt/silcpacket.c.
1937 * Free and NULL the allocated pointer in silc_hmac_alloc if
1938 the HMAC allocation fails. The affected file is
1939 lib/silccrypt/silchmac.c.
1941 * Print the selected security properties to the log files in
1942 the server. Affected file silcd/protocol.c.
1944 * Add SKE's reference counter even if calling the completion
1945 callback manually. Otherwise it goes negative, although it
1946 does not cause any problems. The affected file is
1947 lib/silcske/silcske.c.
1949 * Remove the client entry with short timeout after giving the
1950 KILL command. Affected file lib/silcclient/command.c.
1952 * Fixed to send error reply in WHOIS and IDENTIFY commands in
1953 case all found clients are already disconnected (WHOWAS would
1954 found them) in the server. Affected file silcd/command.c.
1956 * Update the last_receive (time of last data received) to be
1957 updated only when received private or channel message so that
1958 the idle time showed in WHOIS makes more sense.
1960 * Added boolean field `valid' in to the SilcClientEntry in the
1961 client library to indicate whether the entry is valid or not.
1962 This fixes the nickname change bug on channel when changing
1963 the nickname to be same than the old (like nick to Nick) the
1964 nickname formatter doesn't set the new nick anymore to Nick@host.
1965 Affected file lib/silcclient/idlist.[ch].
1967 * Now actually fixed the nickname changing on disconnection.
1968 Added new function silc_change_nick to the Irssi SILC Client.
1969 Affected file irssi/src/silc/core/client_ops.c,
1970 irssi/src/silc/core/silc-nicklist.[ch].
1972 Sat Sep 15 13:29:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1974 * Check that the public key exists in the GETKEY command before
1975 trying to encode it. Affected file silcd/command.c.
1977 * Print some notifications on received public keys with GETKEY
1978 command in the Irssi SILC Client. Affected files are
1979 irssi/src/fe-common/silc/module-formats.[ch],
1980 irssi/src/silc/core/client_ops.c.
1982 * Use IDENTIFY command to resolve the server information in the
1983 GETKEY command instead of INFO command. Affected file
1984 lib/silcclient/command.c.
1986 * All command reply functions in the client library now calls
1987 the pending command reply callbacks even if an error has
1988 occurred. The server has done this a long time and now it was
1989 time to move the client library to this as well. Now all
1990 errors can be delivered back to the pending command reply
1991 callbacks if necessary. Affected files are
1992 lib/silcclient/command[_reply].[ch].
1994 * Change the nickname on disconnection back to the username
1995 because in reconnect the server will enforce it to it anyway.
1996 Affected file irssi/src/silc/core/silc-servers.c.
1998 * Fixed a config file parsing bug in the Irssi SILC client.
1999 Affected file irssi/src/silc/core/clientconfig.c.
2001 Thu Sep 13 23:11:18 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2003 * When printing the channel mode on JOIN, verify that the
2004 channel key and channel's HMAC are valid. Affected file
2005 irssi/src/silc/core/client_ops.c.
2007 Thu Sep 13 20:24:52 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2009 * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
2010 SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
2011 lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
2013 * Removed channel key rekey task deleting from the function
2014 silc_server_save_channel_key. Affected file silcd/server.c.
2015 Added explicit timeout task context instead that is used to
2016 delete the task if we are registering a new task before the
2017 new task has elapsed.
2019 * When channel key rekey occurs the client library now saves
2020 the old channel key for a short period of time (10 seconds) and
2021 is able to use it in case some is still sending channel
2022 messages encrypted with the old key after the rekey. Affected
2023 file lib/silcclient/[idlist.h|client_channel.c].
2025 Sun Sep 9 15:49:16 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2027 * Added check to the silc_server_new_id_real to not accept
2028 new ID if it is the sender's own ID. Affected file is
2029 silcd/packet_receive.c.
2031 * Assure that we do not announce ourself or the one we've
2032 sending our announcements when we're router and are announcing
2033 servers to our primary router. Affected file silcd/server.c.
2035 * Fixed silc_server_command_identify_check_client to assemble
2036 correct WHOIS packet. It send corrupted WHOIS packet and
2037 caused problem with router to router connections. Affected
2038 file silcd/command.c.
2040 Fixed also silc_server_command_whois_check the same way
2041 as for the IDENTIFY command.
2043 * Added new SilcIDListStatus to the server in the SilcIDListData
2044 structure. The status now includes the current status of
2045 the entry (like registered, resolved etc.). Affected file
2046 silcd/idlist.[ch]. Defined a bunch of different status types
2047 as well. This replaced the old boolean registered field as well.
2049 Added resolve_cmd_ident field to the SilcClientEntry structure
2050 too so that if the entry is for example being resolved so
2051 another command may attach to the same pending command reply
2052 without requiring to resolve the same entry again. This concept
2053 should optimize the WHOIS and the IDENTIFY resolving under
2054 heavy load by taking away unnecessary resolving for entries
2055 that are being resolved already.
2057 Added support for adding multiple pending commands for one
2058 command idenfier. Affected file silcd/command[_reply].[ch].
2060 * Fixed WHOIS and IDENTIFY save to remove the cache entry
2061 before deleting the data. Otherwise the hash table will have
2062 freed data in comparison functions. Affected file is
2063 silcd/command_reply.c.
2065 * Fixed silc_idlist_replace_client_id to add the new entry to
2066 the cache with NULL nickname. Otherwise there will be invalid
2067 memory as the nickname after the nickname is freed. Affected
2068 file silcd/packet_receive.c.
2070 * Fixed the silc_idlist_get_clients_by_hash. The entries was
2071 saved into wrong slots because the previous number of entries
2072 was not taken into account. Affected file silcd/idlist.c.
2073 Fixed same thing in silc_idlist_get_clients_by_nickname too.
2075 * If we are router and we receive JOIN notify to a channel that
2076 does not have any users then notified client is marked as the
2077 channel founder, as it is it. The affected file is
2078 silcd/packet_receive.c
2080 * Added to the extended hash table API's table_del_*ext functions
2081 the destructor as argument too, so that the caller can decide
2082 which destructor to use or whether to use destructor at all.
2083 Affected file lib/silcutil/silchashtable.[ch].
2085 * Fixed ID Cache purging. It actually deleted the entries from
2086 the hash table after the data was freed. The hash table ended
2087 up comparing freed memory. The affected file is
2088 lib/silccore/silcidcache.c.
2090 Sat Sep 8 10:22:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2092 * Fixed Irssi SILC client's KILL command's HELP syntax.
2094 * The USERS command now resolves the detailed user information
2095 if the userinfo field is missing. Affected file is
2096 lib/silcclient/command_reply.c.
2098 * Do not print error in silc_file_read if the read file does
2099 not exist. Just silently return NULL. Affected file is
2100 lib/silcutil/silcutil.c.
2102 * Fixed the silc_log_output to not wine about NULL filename
2103 and to not create some bogus " " filename. Affected file is
2104 lib/silcutil/silclog.c.
2106 Fri Sep 7 22:16:38 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2108 * Fixed various printing bugs on the user interface in the
2109 Irssi SILC Client. Minor changes that were forgotten from
2112 Fri Sep 7 17:28:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2114 * Fixed the configure.in.pre and the compilation and distribution
2115 environment to support the new autoconf 2.52. That version is
2116 now required to compile the CVS trunk.
2118 Thu Sep 6 12:47:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2120 * Renamed function silc_parse_nickname to silc_parse_userfqdn
2121 to generally parse user@fqdn format strings. Affected file
2122 lib/silcutil/silcutil.c.
2124 * Added nickname_format and nickname_force_format fields to the
2125 SilcClientParams structure. The first one defines the format
2126 for the nicknames that the library will enforce if the receives
2127 multiple same nicknames. The second one is boolean value and
2128 can be used to force the library to always enforce the format
2129 to the nicknames regardles whether there are multiple nicknames
2130 or not. This configurable formatting was employed to flexibly
2131 support accessing multiple nicknames from the user interface.
2132 The userinterface can now set the nicknames to what ever format
2133 they prefer. Affected file lib/silcclient/silcapi.h.
2135 Added function silc_client_nickname_format to the file
2136 lib/silcclient/idlist.c. It performs the nickname formatting.
2138 Added new field `hostname´ to the SilcClientEntry context.
2139 It holds the hostname of the client. Affected file is
2140 lib/silcclient/idlist.h.
2142 * Irssi SILC Client sets the nicknames in nick@hostn format.
2143 Fe. priikone@otaku, priikone@otaku2 etc. Affected file
2144 irssi/src/silc/core/silc-core.c.
2146 The WHOIS printing now also shows both the real nickname and
2147 the formatted nickname so that user knows how to access the
2148 user if there are multiple same nicknames cached. Affected
2149 file irssi/src/silc/core/client_ops.c. Changed the WHOIS
2150 printing formatting too to take the hostname now as a separate
2151 argument. The Affected file is
2152 irssi/src/fe-common/silc/modules-formats.[ch].
2154 * Changed the silc_client_get_clients_local to accept the formatted
2155 nickname as argument. It accepts the real nickname too but the
2156 formatted nickname can be used to find the true entry from
2157 multiple entries. Affected file lib/silcclient/silcapi.h and
2158 lib/silcclient/idlist.c.
2160 * Added nickname_format_parse field to the SilcClientParams.
2161 It is a callback function provided by the application to parse
2162 the nickname out of the formatted nickname string. The library
2163 calls it to get the nickname from the formatted string. Since
2164 the application generally knows better the format of the nickname
2165 string it parses it instead of the library, even though library
2166 encodes the formatted string. If the callback function is not
2167 provided then the library will use the string as is. The
2168 affected file is lib/silcclient/silcapi.h.
2170 * All the nickname strings passed to the client library in
2171 commands are now expected to be formatted nickname strings.
2172 If the command does not support the formatted nickname string
2173 it will assume that the sent string is the actual nickname.
2174 Affected file lib/silcclient/command.c.
2176 Tue Sep 4 22:31:28 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2178 * Added public key authentication support to OPER and SILCOPER
2179 commands in the client library. Affected file is
2180 lib/silcclient/command.c.
2182 Tue Sep 4 12:39:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2184 * Changed the get_auth_methdod client operation to be asynchronous.
2185 It can be async if the application resolves the authentication
2186 method from the server during the negotiation. Added new
2187 SilcGetAuthMeth completion callback that the application will
2188 call after resolving the authentication method.
2190 Added function silc_client_request_authentication_method that
2191 the application can use to resolve the authentication method
2192 from the server. Added also SilcConnectionAuthRequest callback
2193 that the library will call after the server has replied. The
2194 application can call this function if it does not know the
2195 current authentication method.
2197 Affected files are lib/silcclient/client.c and
2198 lib/silcclient/silcapi.h.
2200 * The Irssi SILC client now automatically resolves the authentication
2201 method incase any configuration information is not present (and
2202 currently there never is). The affected file is
2203 irssi/src/silc/core/client_ops.c.
2205 * Fixed public key authentication from the client library.
2206 Affected file lib/silcclient/protocol.c. Changed also the
2207 protocol specification about the public key authentication in
2208 the connection authentication protocol. The actual data to be
2209 signed is now computed with a hash function before signing.
2211 * Fixed the public key authentication from the server as well.
2212 Affected file silcd/protocol.c.
2214 * Removed the mlock()'s from the memory allocation routines.
2215 Affected file lib/silcutil/silcmemory.c. The ./configure does
2216 not check anymore for the mlock(). Affected file is
2219 * Fixed USERS command in server to allow the execution of the
2220 command for private and secret channels if the client sending
2221 the command is on the channel. Affected file silcd/command.c.
2223 * Fixed silc_client_get_clients_local to return the clients
2224 count correctly. It could return wrong value. Affected file
2225 lib/silcclient/idlist.c.
2227 Mon Sep 3 20:09:59 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2229 * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
2230 types. The assembler optimizations seemed not to like 64-bit
2231 data types. The assmebler optimizations thus are now enabled
2232 also for BSD systems as opposed to only enable them for Linux.
2234 * Do not check for threads at all on BSD systems. Affected
2235 file configure.in.pre.
2237 * Removed -n and -h options from the Irssi SILC Client since
2238 they are not used in silc.
2240 * Fixed the prime generation to assure that the first digit
2241 of the generated random number is not zero since our conversion
2242 routines does not like number strings that starts with zero
2243 digit. If zero digit is seen the random number is regenerated.
2244 This caused some corrupted RSA keys when the zero first digit
2245 was met. Affected file lib/silcmath/silcprimegen.c.
2247 Sun Sep 2 17:17:24 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2249 * Fixed WIN32 configuration in the ./configure script.
2250 Fixed to include xti.h on environments that has it.
2251 Patches by Carsten Ilchmann and andrew.
2253 Sat Sep 1 00:29:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2255 * Changed the silc_id_create_client_id to be collision
2256 resistant. It is now assured that there cannot be created
2257 two same client ID's. I suspect that some weird bugs in
2258 the server were actually caused by duplicate Client IDs.
2259 Affected file silcd/serverid.[ch]. A router receiving
2260 new ID now also assures and informs the sending server
2261 if the ID caused collision.
2263 * Changed the silc_id_create_channel_id to also assure that
2264 there are no collisions.
2266 Wed Aug 29 17:55:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2268 * Statement about ignoring the Mutual Authentication flag when
2269 performing rekey with PFS was a bit misleading. It is ignored
2270 if it was set in the initial negotiation, it cannot be even
2271 set in the rekey. Fixed in the ke-auth draft. Started the
2272 new versions of the protocol drafts in the doc/.
2274 Sun Aug 26 14:59:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2276 * Fixed a bug in silc_client_command_identify_save when saving
2277 new channel information. The channel name was no duplicated
2278 and caused crash on exit. Affected file is
2279 lib/silcclient/command_reply.c.
2281 Fri Aug 17 23:07:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2283 * Fixed the getkey command handling in the server. Send just
2284 empty OK reply to the sender if the key could not be fetched
2285 (but everything else was ok, like the key just was not available).
2286 Changed the public key parameter to optional in the protocol
2287 specs so that empty OK reply can be sent. Affected file
2290 Added a message to Irssi SILC client to tell to user if the
2291 server did not return a public key.
2293 Tue Aug 14 07:29:27 CEST 2001 Pekka Riikonen <priikone@silcnet.org>
2295 * Fixed a channel key regeneration bug. It registered new
2296 timeout tasks exponentially until all system resources were
2297 used. Affected file silcd/server.c.
2299 Sun Aug 12 20:48:14 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2301 * Added the SILC Document generator to the scripts/silcdoc.
2302 It can be used to generate the Toolkit Reference Manual out
2303 of the source tree. Internally it will also use the RoboDoc
2304 generator now imported in util/robodoc.
2306 Sun Aug 12 12:28:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2308 * Added couple of return's in rekey protocol if error orccurred
2309 during the protocol. The execution must be terminated.
2310 Affected file silcd/protocol.c. Also, terminate the protocol
2311 always with timeout.
2313 Sat Aug 11 12:36:02 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2315 * The client's Client ID was created initally from the wrong
2316 nickname (it could have been in format nick@host) in the
2317 silc_server_new_client. Affected file silcd/packet_receive.c
2319 Sat Aug 11 00:29:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2321 * Added some SILC_LOG_ERROR's to various error conditions
2322 if client could not be added to ID cache. Affected files
2323 silcd/packet_receive.c and silcd/server.c.
2325 * When client's sock->user_data is freed, NULL also the
2326 client->router and client->connection pointers. Added check
2327 for these pointers being NULL to various places around the
2328 code. Affected file silcd/server.c.
2330 * Added client->data.registered == TRUE checks to various
2331 places around the code to assure that unregistered client's
2332 are not handled when it is not allowed. Affected file
2335 * Added `bool registered' fields to all
2336 silc_idlist_[server|client]_get_* routines to indicate whether
2337 the fetched client needs to be registered or not. Affected
2338 file silcd/idlist.[ch].
2340 * Add your own entry as registered to the ID cache in the
2341 server. Affected file server.c.
2343 * Fixed a bug in silc_server_new_server. The SilcServer was
2344 set as the new server's context instead of SilcServerEntry.
2345 This naturally caused some weird bugs.
2347 Thu Aug 9 18:28:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2349 * Do not delete the channel rekey task when adding it
2350 for in silc_server_create_channel_key.
2352 * Changed the silc_server_create_channel_key to return
2353 TRUE or FALSE to indicate the success of the channel key
2356 Thu Jul 26 11:32:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2358 * Fixed MSVC++ project files and added missing files to
2359 Makefiles under win32/.
2361 Wed Jul 25 18:43:54 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2363 * Do not add TCP_NODELAY flag if the operating system
2364 does not have it defined. Affected files are
2365 lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
2367 * Fixed buffer overflow from Irssi SILC Client. Affected
2368 file irssi/src/fe-common/core/themes.c.
2370 * Fixed double free in client library in the file
2371 lib/silcclient/client.c when disconnecting from server.
2373 * Applied double free patch from cras to Irssi SILC client.
2374 Affected files irssi/src/core/[modules/expandos].c
2376 * Fixed the disconnection handling to Irssi SILC Client.
2377 The application must call silc_client_close_connection
2378 in ops->connect client operation in case of failure of
2379 the connection. Affected file is
2380 irssi/src/silc/core/client_ops.c.
2382 * Do not set sock->protocol to NULL in the function
2383 silc_client_close_connection after executing the protocol's
2384 final callback since the sock might not be valid anymore.
2385 Affected file lib/silcclient/client.c.
2387 Wed Jul 25 16:04:35 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2389 * Do not enable SILC_THREADS if the linking with libpthread
2390 did not happen. Affected file configure.in.pre.
2392 * Added notion to protocol specification that server must
2393 verify the sent authentication payload with CMODE when
2394 setting the channel founder key. Implemented it to the
2395 server. Affected file silcd/command.c.
2397 Mon Jul 23 18:31:43 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2399 * Added _EXTRA_DIST SILC distribution variable to the
2400 distributions file. It is used to conditionally add extra
2401 files or directories to the specific distribution. Affected
2402 files ./prepare, Makefile.am.pre and distributions.
2404 Removed the `_' from the start of the distribution names.
2407 * Added README.WIN32 for instructions to compile the Toolkit
2410 Mon Jul 23 10:12:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2412 * Fixed a double free in disconnection in the server. Affected
2413 file is silcd/server.c.
2415 * Fixed the lib/silcske/groups.c to work now also with GMP
2416 MP library. The string conversion did not work when using
2417 specific base and the base is indicated in the string as well.
2419 * Created win32/ directory which now includes MSVC++ specific
2420 stuff so that toolkit (DLLs) may be compiled with MSVC++.
2421 It will appear only in the toolkit distribution
2423 Sun Jul 22 19:40:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2425 * Changed the key material distribution function in case when
2426 the hash output is too short. The data is now concatenated
2427 a bit differently than it used to. Made the change to the
2428 SKE protocol specification.
2430 * Added better GMP detection to configure.in.pre. A patch
2433 Fri Jul 20 13:16:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2435 * Fixed a minor bug in SKE that might cause some problem on
2436 some platforms. Affected file lib/silcske/silcske.c.
2438 * Added the cookie checking for initiator in the SKE. It checks
2439 that the responder returns the sent cookie unmodified. The
2440 affected file is lib/silcske/silcske.c. Added new SKE
2441 error type INVALID_COOKIE that can be sent during the
2442 negotiation. Fixed some memory leaks as well.
2444 * Added the "invalid cookie" error message to Irssi SILC client's
2447 Thu Jul 19 21:44:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2449 * Added `task_max' field to the SilcClientParams to indicate
2450 the maximum tasks the scheduler can handle. If set to zero,
2451 default values are used. Affected file lib/silcclient/silcapi.h.
2453 * Fixed memory leaks in silc_client_close_connection. Affected
2454 file lib/silcclient/client.c.
2456 * Added silc_client_del_client_entry to client library to free
2457 all memory of given client entry. Affected file is
2458 lib/silcclient/idlist.[ch].
2460 * Added new functions silc_client_del_channel and
2461 silc_client_del_server to delete channel and server entries.
2462 Affected file lib/silcclient/[silcapi.h/idlist.c].
2464 * Removed silc_client_del_client_by_id from silcapi.h.
2466 * Fixed the INFO command to return the server's own info
2467 correctly when querying by Server ID. Affected file is
2470 Thu Jul 19 14:47:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2472 * Removed the non-blocking settings in WIN32 code in the
2473 silc_sock_[read/write] and added SleepEx instead. Affected
2474 file lib/silcutil/win32/silcwin32sockconn.c. The availability
2475 of input data is now checked with FIONREAD and ioctlsocket.
2477 Wed Jul 18 18:34:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2479 * Call silc_schedule_task_del_by_context in the
2480 silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
2481 Affected file lib/silccore/silcprotocol.c.
2483 * Call silc_protocol_cancel for active protocols in the
2484 silc_server_close_connection if the funtion
2485 silc_server_free_sock_user_data has not been called.
2486 Affected file silcd/server.c.
2488 * Generic tasks cannot be deleted using the del_by_fd
2489 task deleting function since generic tasks does not match
2490 any specific fd. Affected file lib/silcutil/silcschedule.[ch].
2492 * Added a notion to SILCOPER help file that the SILCOPER works
2493 only on router server, not on normal server.
2495 Wed Jul 18 09:40:04 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2497 * Added for WIN32 support for the new scheduler as well.
2498 Affected file lib/silcutil/win32/silcwin32schedule.c.
2500 * Fixed the SHA1 implementation to work on various platforms.
2502 Tue Jul 17 23:04:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2504 * Rewrote the SILC Scheduler entirely. Removed the old SILC Task
2505 API. It is part of the scheduler now. Everything else is
2506 as previously but some functions has changed their names.
2507 Checkout the lib/silcutil/silcschedule.h for the interface.
2508 Updated all applications to use the new interface. Affected
2509 files are lib/silcutil/silcschedule.[ch].
2511 Tue Jul 17 16:53:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2513 * Found a bug in the SKE implementation. The HASH value,
2514 specified by the protocol, was not computed correctly. The
2515 public key of the responder was not added to the computation
2516 even though it is mandatory. Affected file lib/silcske/silcske.c.
2517 This unfortunately causes incompatibilities with older
2518 clients and servers.
2520 * Added WIN32 specific network init and uninit functions:
2521 silc_net_win32_init and silc_net_win32_uninit to init and uninit
2522 the Winsock2. Affected file lib/silcutil/silcnet.h and
2523 lib/silcutil/win32/silcwin32net.c.
2525 * Set the socket always to nonblocking mode on WIN32 after
2526 reading data or writing data. Affected file is
2527 lib/silcutil/win32/silcwin32sockconn.c.
2529 Mon Jul 16 22:55:26 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2531 * Fixed various compilation problems under WIN32. Affected
2532 files lib/silcutil/win32/silcwin32thread.c and
2533 lib/silcutil/win32/silcwin32schedule.c.
2535 * Removed all _internal.h #includes from public header
2536 files. Internal headers must never be included from
2539 Removed also the lib/silcske/payload_internal.h file.
2541 * All include files that may be needed (public and some others
2542 included by the public headers) by application developers are
2543 now copied to the ./includes directory. It does not copy any
2544 internal headers. Affected file Makefile.defines.pre and all
2545 Makefile.am's under lib/ and subdirs.
2547 Thu Jul 12 17:49:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2549 * Do not change the ~/.silc directory's permissions automatically.
2550 Affected file irssi/src/silc/core/clientutil.c.
2552 Thu Jul 12 10:18:40 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2554 * Do not cancel the protocol in silc_server_close_connection
2555 it might cause recursion. Now cancelled in the function
2556 silc_server_free_sock_user_data. Affected file silcd/server.c.
2558 * Fixed the silc_server_remove_clients_by_server to regenerate
2559 the channel keys correctly finally. Added also new function
2560 silc_server_remove_clients_channels to actually do it.
2561 Affected file silcd/server.c.
2563 * Fixed the silc_server_new_channel to not crash by giving
2564 wrong router to the new channel. Affected file is
2565 silcd/packet_receive.c.
2567 Wed Jul 11 18:31:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2569 * Added SilcClientParams structure to the lib/silcclient/silcapi.h
2570 which is given as argument to the silc_client_alloc now.
2571 It can be used to configure the client and set various parameters
2572 that affect the function of the client.
2574 * The USERS command in server did not check whether the channel
2575 is private or secret. Affected file silcd/command.c.
2577 * Added new argument to the USERS command in protocol specification.
2578 The USERS command now can take the channel name as argument
2579 as well. Added support for this in client and server and
2580 updated the protocol specs.
2582 * Completed the GETKEY command in client. It can be now used
2583 to fetch also servers public key not only some clients.
2584 Affected files lib/silcclient/command[_reply].c.
2586 * Added silc_client_get_server to return server entry by the
2587 server name. Affected files lib/silcclient/silcapi.h and
2590 * Redefined the IDENTIFY command in protocol specification to be
2591 more generic. It now can be used to query information about
2592 any entity in the SILC Network, including clients, servers and
2593 channels. The query may be based either the entity's name
2594 or the ID. Added support for this in both client and server.
2596 Affected files silcd/command.c and lib/silcclient/command.c
2597 and command_reply.c.
2599 * Optimized the WHOIS and WHOWAS commands in the server. Removed
2600 the _from_client and _from_server functions. Affected file
2603 * Added silc_client_get_channel_by_id_resolve to the file
2604 lib/silcclient/silcapi.h to resolve channel information by
2605 its ID. Added also silc_client_get_channel_by_id that
2606 does not resolve it from the server.
2608 Tue Jul 10 18:05:38 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2610 * Added SilcServerEntry context into the client library
2611 to represent one server. The INFO command now allocates
2612 these to save the resolved server info. For now on the
2613 client library will also keep information about servers,
2614 connected and resolved with INFO.
2616 The INFO command now allocates the SilcServerEntry context
2617 and saves the server info there. The COMMAND_REPLY in
2618 the INFO now returns the parameters to application in
2619 same order as defined in the protocol specification.
2621 The entries are cached in the client->server_cache.
2623 * The INFO command is now issued after received the Client ID
2624 from the server. Affected file lib/silcclient/client.c.
2626 * The CMODE_CHANGE notify may now return also an SilcServerEntry
2627 to the application as the mode changer might be server.
2628 It is guaranteed that NULL is not returned anymore to the
2629 application. Affected file lib/silcclient/client_notify.c.
2631 The ID Type is now also passed to the application so that
2632 it can check whether the returned entry is SilcClientEntry
2635 Added new function silc_client_get_server_by_id to return
2636 the server entry by ID. Affected files are the
2637 lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
2639 * Do not create the channel in the Irssi SILC Client when issuing
2640 the JOIN command but when received the sucessful JOIN command
2641 reply. Otherwise the channel might get created even though we
2642 could not join it. The Affected file is
2643 irssi/src/silc/core/[silc-channels.c/client_ops.c].
2645 * Fixed a channel joining bug in router. The router must also
2646 check the channel modes, invite and ban lists etc. when serving
2647 the JOIN command sent by normal server. Affected file is
2648 silcd/command.c. The router now resolves the client's
2649 information from the server who sent the JOIN command if it
2650 does not know it, and processes the JOIN command only after
2653 * Changed the SilcCommandCb to take new argument; void *context2.
2654 Affected file lib/silccore/silccommand.h
2656 The second argument in the command callbacks in the server now
2657 includes the SilcServerCommandReplyContext if the command was
2658 called as pending command callback from the command reply.
2659 Otherwise it is NULL. When called as pending the status of the
2660 command reply will be checked and if it was erronous the
2661 error will be sent to the original sender of the command.
2662 This way the client always receives the error messages even
2663 though the server was actually the one who received the error
2664 when it resent the command to router, for example. Affected
2665 files silcd/command[_reply].[ch].
2667 * Fixed sending WHOWAS command's error message to client if
2668 the requested client could not be found. It was missing.
2671 * Changed the CMODE and CUMODE commands reply arguments in the
2672 protocol specification. The Channel ID is now sent in both
2673 of the commands to identify the channel. Implemented this
2674 new feature to the client and server. Affected files
2675 lib/silcclient/command_reply.c and silcd/command.c.
2677 * Made better checks for invite and ban lists in the JOIN
2678 command in server. Affected file silcd/command.c.
2680 Mon Jul 9 18:28:34 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2682 * The server now performs the incoming host IP/DNS lookup
2683 using the silc_socket_host_lookup and thus does not block
2684 the server anymore. Affected file silcd/server.c.
2686 * Completed the multi-thread support for SILC Scheduler in
2687 the lib/silcutil/silcschedule.c.
2689 * Fixed the configure.in.pre to detect the pthread correctly
2692 * Fixed a deadlock in silc_task_queue_wakeup in the file
2693 lib/silcutil/silctask.c.
2695 Mon Jul 9 13:40:03 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2697 * Added new function silc_schedule_wakeup that is used in
2698 multi-threaded environment to wakeup the main thread's
2699 schduler. It needs to be used when a thread adds a new task
2700 or removes a task from task queues. After waking up, the
2701 scheduler will detect the task queue changes. If threads
2702 support is not compiled in this function has no effect.
2703 Implemented the wakeup mechanism to both Unix and WIN32
2704 systems. Affected files are lib/silcutil/silcschedule.[ch],
2705 lib/silcutil/unix/silcunixschedule.c and the
2706 lib/silcutil/win32/silcwin32schedule.c.
2708 * Added new function silc_task_queue_wakeup to wakeup the
2709 scheduler by the specified task queue. Affected file
2710 lib/silcutil/silctask.[ch].
2712 * The silc_socket_host_lookup_start now wakes up the scheduler
2713 after adding the timeout task. Affected file is
2714 lib/silcutil/silcsockconn.c.
2716 * The silc_socket_host_lookup is synchronous now if the threads
2717 support is not compiled in. However, the callback is still
2718 called asyncronously through the scheduler, anyway. Affected
2719 file lib/silcutil/silcsockconn.c.
2721 Mon Jul 9 00:24:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2723 * Added new function silc_socket_host_lookup to perform
2724 asynchronous IP and FQDN lookups for the socket connection.
2725 Affected files lib/silcutil/silcsockconn.[ch].
2727 Sun Jul 8 18:44:53 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2729 * Added SILC_MUTEX_DEFINE to define the mutex on environments
2730 that may or may not compile the mutex support in.
2732 Changed the silc_mutex_alloc interface. It allocates the
2733 mutex now to the sent pointer and returns TRUE or FALSE.
2735 Affected file lib/silcutil/silcmutex.h.
2737 * Wrote the SILC Task Queue interface to support multi-threads.
2738 Affected file lib/silcutil/silctask.[ch].
2740 * Wrote the SILC Scheduler to support multi-threads. Affected
2741 file lib/silcutil/silcschedule.c.
2743 Sun Jul 8 11:16:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2745 * Implemented the SILC Mutex API and SILC Thread API for WIN32
2746 in lib/silcutil/win32/.
2748 Sun Jul 8 00:18:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2750 * Defined SILC Mutex API and SILC Thread API and implemented
2751 them for Unix. Affected files are
2752 lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
2753 lib/silcutil/unix/silcunixmutex.c and
2754 lib/silcutil/unix/silcunixthread.c.
2756 Sat Jul 7 14:40:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2758 * Fixed the silc_server_remove_clients_by_server's channel
2759 key re-generation. The hash table handling was incorrect
2760 and would not work with many channels. Affected file is
2763 * Fixed some memory leaks around the server code.
2765 * Rewrote the silc_server_get_users_on_channel to support IPv6
2766 based Client ID's. Affected file silcd/server.c.
2768 * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
2769 specification. However, a separate document must be written
2770 to define the detailed signing procedure and the payload
2771 associated with the flag. Defined the flag to the
2772 lib/silccore/silcchannel.h as well.
2774 Fri Jul 6 18:26:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2776 * Changed the dynamic tables to static size tables in the
2777 lib/silccrypt/silchmac.c.
2779 * Removed GCC dependencies from the code. A patch by cras.
2781 Fri Jul 6 09:39:35 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2783 * Do not show the error "Error receiving packet bla bla"
2784 in server if it really was not an error (-2 means that reading
2785 is pending). Affected file silcd/server.c.
2787 Thu Jul 5 21:22:32 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2789 * Fixed a possible crash in silc_server_remove_clients_by_server
2790 in silcd/server.c. Fixed there also some memory leaks.
2792 * Fixed the silc_idlist_replace_client_id. It could replace
2793 wrong key in the hash table. Affected file silcd/idlist.c.
2795 * Do not check whether there are global users on the channel
2796 if the channel->global_users is FALSE. Affected functions
2797 silc_server_remove_from_one_channel and
2798 silc_server_remove_from_channels in silcd/server.c. Also,
2799 do not check if the removed client is local as we can be
2800 sure that global client was not removed from the channel
2801 and checking for global users is not needed.
2803 * The silc_server_remove_clients_by_server now re-generates
2804 the channel keys correctly for those channels that had
2805 clients removed from them. Affected file silcd/server.c.
2807 Tue Jul 3 11:39:20 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2809 * Found the reason of random crashes in the server. We weren't
2810 ignoring the SIGPIPE signal (which can be sent in write())
2811 and it crashed the server. Affected file silcd/silcd.c.
2813 Fri Jun 29 20:05:25 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2815 * Assure that sock->user_data is not NULL in the function
2816 silc_server_packet_send in silcd/packet_send.c.
2818 * Disconnect the remote connection if it could not be added
2819 to any ID lists in the server. The affected file is
2822 * Check in silc_server_packet_send[_real/dest] that the
2823 socket is not disconnecting and ignore the data if it is.
2824 Affected file silcd/packet_send.c.
2826 * Define inline to __inline on native WIN32 compilation.
2827 Affected file includes/silcwin32.h.
2829 * Added some explicit type casts for inline code since MSVC
2830 require them. Affected files lib/silcutil/silcbuffer.h,
2831 lib/trq/silcdlist.h and lib/trq/silclist.h.
2833 * Print warning in log files from now on if the packet
2834 decryption fails. Affected file silcd/server.c.
2836 Thu Jun 28 21:30:39 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2838 * Changed the `say' client operation's interface to accept
2839 new `type' argument to indicate the type of the message sent
2840 by the library. The application may filter the library's
2841 messages according the type. The affected file is the
2842 lib/silcclient/silcapi.h.
2844 * Added two new functions to lib/silcclient/silcapi.h:
2845 silc_client_del_client and silc_client_del_client_by_id.
2846 Affected file lib/silcclient/idlist.c.
2848 * Moved the clientincludes.h from includes/ to silc/ and
2849 serverincludes.h from includes/ to silcd/.
2851 * The modes for the CMODE and CUMODE are now passed as
2852 uint32 for application with COMMAND_REPLY. The affected
2853 file is lib/silcclient/command_reply.c.
2855 Wed Jun 27 22:24:47 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2857 * /WHOIS without arguments shows client's own information.
2858 Affected file lib/silcclient/command.c.
2860 * Changed PING to not accept any arguments. The specs
2861 says that client can ping only the connected server so
2862 requiring an argument is not needed. Affected file is
2863 lib/silcclient/command.c.
2865 Wed Jun 27 00:10:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2867 * Fixed a fatal bug in private message sending and reception
2868 encryption and decryption when using private message keys.
2869 The implementation was incorrect and did not follow the
2870 specification. It causd that some of the message were
2871 lost since it did not use the sending and receiving keys
2872 as the protocol suggests. This has been fixed and will cause
2873 incompatibilities with older clients when sending private
2874 message encrypted with private message keys. Affected files
2875 lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
2876 and various other in Irssi SILC Client.
2878 Added `responder' boolean argument to the functions
2879 silc_client_add_private_message_key[_ske] to indicate when
2880 the key is added as responder or initiator of the key
2883 Tue Jun 26 19:23:07 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2885 * Removed the silc_ske_check_version function and created
2886 a SilcSKECheckVersion callback. Added also a function
2887 silc_ske_set_callbacks that is now used to set all SKE
2888 callbacks. The callback functions are not given to
2889 the SKE functions anymore, but this function is used to
2892 * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
2894 * Added `silc_version' argument to the silc_client_alloc
2895 to define the version of the application for the library.
2896 The library will use the version string to compare it
2897 against the remote host's (usually a server) version
2898 string. Affected file lib/silcclient/silcapi.h
2900 * Added the KE protocol context to Key Agreement context
2901 in client library so that we can abort the SKE if it
2902 is in process when we get timeout. Affected file is
2903 lib/silcclient/client_keyagr.c.
2905 * Do not resolve the client ID forever if it returns in the
2906 first time that such client does not exist. This was done
2907 for example with private message. Affected file is
2908 lib/silcclient/client_prvmsg.c.
2910 Mon Jun 25 21:42:51 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2912 * Do not add regex.h for WIN32. The affected file
2913 includes/silcincludes.h.
2915 * Added WIN32 DLL generation to lib/Makefile.am.pre. It might
2916 not work yet 100%. It generates the DLL's automatically
2917 when compiling with --with-win32 under cygwin.
2919 Sun Jun 24 19:49:23 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2921 * lib/contrib/regex.c is not compiled on WIN32.
2923 * Added silc_net_get_socket_opt function to the
2924 lib/silcutil/silcnet.h.
2926 * Added includes/silcwin32.h for WIN32 specific includes
2929 * Do not use ptime structure or any of the posix process
2930 functions on WIN32 in lib/silccrypt/silrng.c.
2932 * Added silc_gettimeofday to provide generic function
2933 for struct timeval on all platforms. Added the function
2934 to lib/silcutil/silcutil.h.
2936 Sun Jun 24 12:19:52 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2938 * Moved the lib/silccore/silcsockconn.[ch] to the utility
2939 library as they clearly belong there. As a plus side we
2940 can make the actual socket connection routines platform
2943 Added also new generic function silc_socket_read and
2944 silc_socket_write (that used to be silc_packet_[read/write].
2945 The implementation of these are platform specific.
2947 * Added WIN32 specific routines of silc_socket_[read/write]
2948 to lib/silcutil/win32/silcwin32sockconn.c.
2950 Sat Jun 23 16:01:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2952 * Added preliminary support for native WIN32 compilation under
2953 cygwin (using the -mno-cygwin option for GCC) to the
2954 ./configure.in.pre. The --with-win32 now prepares the
2955 compilation for native WIN32.
2957 * Rewrote the SILC Scheduler interface in the file
2958 lib/silcutil/silcschedule.h. The scheduler is now context
2959 based and does not have anymore any global static scheduler.
2960 Moved the Unix scheduler to the lib/silcutil/unix/ directory
2961 and created lib/silcutil/win32 directory for WIN32 based
2964 * Added Unix specific network routines to the
2965 lib/silcutil/unix/silcunixnet.c and the old
2966 lib/silcutil/silcnet.c includes now only generic routines.
2968 Added WIN32 specific network routines to the
2969 lib/silcutil/win32/silcwin32net.c.
2971 * Added Unix specific utility functions from the
2972 lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
2974 * Added WIN32 SILC Scheduler to the file
2975 lib/silcutil/win32/silcwin32schedule.c. The code is of course
2978 Fri Jun 22 10:44:14 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2980 * Do not handle JOIN notify in the server if the target client
2981 is not registered (idata->registered == FALSE). The affected
2982 file is silcd/packet_receive.c.
2984 * Update the nickrec->founder in event_cumode in the Irssi SILC
2985 client. Affected file irssi/src/silc/core/silc-channels.c.
2987 * Fixed the CUMODE_CHANGE notify handling in the server when
2988 server and router are announcing their clients on channels.
2989 Now the mode changes are saved and notified correctly. The
2990 affected file is /silcd/packet_receive.c.
2992 * Fixed silc_idlit_replace_[server/client/channel]_id functions.
2993 They really did not replace the cache entry in the ID Cache.
2994 Now they do that. Affected file silcd/idlist.c.
2996 * Fixed the KICK notify handling in the Irssi SILC client to
2997 update the channel records so that the kicked client does not
2998 appear to be on the channel. The affected file is
2999 irssi/src/silc/core/silc-channels.c.
3001 * Always update the conn->current_channel when executing command
3002 on a channel. Affected file irssi/src/silc/core/silc-servers.c.
3004 * Fixed the KILL notify handling in Irssi SILC client to remove
3005 the killed client on all channels.
3007 Thu Jun 21 17:10:08 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3009 * Fixed the silc_parse_command_line to remove extra spaces
3010 from the start and end of the arguments. Affected file is
3011 lib/silcutil/silcutil.c.
3013 * Cancel and free any active protocol in the function
3014 silc_server_close_connection. Affected file silcd/server.c.
3016 * Cancel and free any active protocol in the function
3017 silc_client_close_connction. Affected file is
3018 lib/silcclient/client.c.
3020 * Do not execute the KILL command for clients that are in
3021 history (ie. they are not in the network). Affected file is
3024 * Fixed KILL notify handling, client does not crash anymore.
3025 Affected file irssi/src/silc/core/silc-channels.c.
3027 * Reduced the default packet buffer size from 2048 to 1024 in
3028 lib/silccore/silcpacket.c.
3030 * Added SILC_SKE_STATUS_FREED SKE status type and a reference
3031 counter to the SKE context that is incresed when the SKE library
3032 performs async operation outside the library. If the outside
3033 process frees the SKE context and FREED status will be set
3034 and the library will detect after the sync operation that the
3035 libary is freed. The affected files are
3036 lib/silcske/silcske[_status].[ch].
3038 * Resolve the client entry information in the function
3039 silc_client_channel_message to assure that NULL pointer is not
3040 passed as client entry to the application. */
3042 * Fixed the task timeout calculation to assure that there is
3043 never negative timeouts. The affected file is
3044 lib/silcutil/silcschedule.c.
3046 * Fixed the channel user mode notification sending in server.
3047 It was sent point-to-point to the router (or to server by router)
3048 but it needs to be destined to a channel. The routines now
3049 supports sending the channel user mode notifys to the channels
3050 when announcing clients and channels. Affected files are
3051 silcd/server.c and silcd/packet_receive.c.
3053 * Fixed the CHANNEL_CHANGE notify handling in the client libary.
3054 It did not actually replace the old channel entry in the cache.
3055 Affected file lib/silcclient/client_notify.c.
3057 Tue Jun 19 22:10:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3059 * Fixed a possible crash in silc_packet_send_prepare. It now
3060 assures always that there is enough space in the buffer and
3061 at the tail area of the buffer (for MAC).
3063 Fixed the inbound buffer reallocation in silc_packet_read.
3064 It was old code and did not handle the reallocation correctly.
3067 The affected file is lib/silccore/silcpacket.c.
3069 * Fixed buffer overflow in silc_parse_nickname in the file
3070 lib/silcutil/silcutil.c.
3072 Tue Jun 19 13:40:09 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3074 * make install generates new server keys only if there is not
3077 Mon Jun 18 18:49:07 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3079 * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
3080 Added check that if the NOREPLY is set then we will not send
3081 the away message. This avoids infinite loop of away messages
3082 if both clients are away. The affected file is
3083 lib/silcclient/client_prvmsg.c.
3085 * Fixed client crash if /NICK was given without arguments.
3086 Affected file lib/silcclient/command.c.
3088 * Server does not send the invite list in INVITE command back
3089 to the client if the list was not altered. Added this notion
3090 to the protocol spec as well. Affected file silcd/command.c.
3092 Fixed possible crash in INVITE command by checking the
3093 value of silc_server_get_client_route command.
3095 * Fixed the INVITE notify type handling. The arguments are now
3096 taken in correct order and client does not crash. The affected
3097 file is irssi/src/silc/core/silc-channels.c.
3099 Removed the "Inviting xxx to channel" message from the
3100 client library away and let the application handle it.
3101 Affected file lib/silcclient/command.c. Added that message
3102 to Irssi SILC client's message formats.
3104 * Fixed CMODE command crash in client. It now checks the
3105 amount of arguments correctly and does not crash. The affected
3106 file is lib/silcclient/command.c.
3108 * Do not create new channel automatically in silc_channels_join
3109 but check whether the channel by that name already exists.
3110 Affected file irssi/silc/core/silc-channels.c.
3112 * Do not send the SERVER_SIGNOFF to router if the disconnected
3113 entity was the router. Affected file silcd/server.c.
3115 * Added the handling of the SERVER_SIGNOFF notify to the Irssi
3116 SILC client as it was missing from there.
3118 Added the handling of the KICK notify to the Irssi SILC client
3119 as it was missing. Added "you have been kicked" message to
3120 Irssi SILC client's message modules formats.
3122 Added the handing of the KILL notify to the Irssi SILC client
3123 as it was missing. Added the kill message module formats
3126 The affected file is irssi/src/silc/core/silc-channels.c.
3128 * The router did not save the channel mode the server announced.
3129 Affected file silcd/packet_receive.c.
3131 * Fixed a possible crash in INFO command in server. If the
3132 server did not provide the server info it crashed. Affected
3133 file silcd/command.c.
3135 Sun Jun 17 15:26:05 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3137 * Fixed the GETKEY command in the server to check also the
3138 global list. Otherwise the GETKEY would not work correctly
3139 in normal SILC server. Affected file silcd/command.c.
3141 Sat Jun 16 18:00:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3143 * Fixed GETKEY crash, it crashed if the command did not succseed.
3145 Tue Jun 12 21:36:18 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3147 * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
3148 is now real and not just an macro interface to GMP.
3150 Removed the entire GMP from the source tree and imported new
3151 NSS MPI library instead. Reason for removing GMP is that it is
3152 extremely large and compiles extremely slow. The NSS MPI
3153 is only a few files and compiles in less than 10 seconds.
3154 The speed is also about the same as GMP. The MPI is imported
3155 to lib/silcmath/mpi.
3157 If the system has GMP installed we will still use the GMP.
3158 If it is not then the NSS MPI will be compiled.
3160 Mon Jun 11 18:07:24 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3162 * Merged a long nickname (127 characters long) crash bugfix from
3163 Irssi CVS tree. Affected file irssi/src/core/misc.c.
3165 * Merged a freed memory reference bugfix from Irssi CVS tree.
3166 Affected file irssi/src/core/commands.c.
3168 Sun Jun 10 16:08:35 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3170 * Added the server's public key sving and verification to the
3171 server when performing the SKE. This was missing and the
3172 remote server's (or router's) public key was accepted without
3173 checking whether we have it previously or trust it at all.
3174 Affected file silcd/protocol.c.
3176 Sat Jun 9 20:17:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3178 * Check in the silc_server_timeout_remote if protocol is active
3179 and make sure that the protocol's final callback is called so
3180 that all memory if freed. Affected file silcd/server.c.
3182 Sat Jun 9 12:51:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3184 * silc_server_whois_send_reply crashed the server if the nickname
3185 was 127 characters long. Affected file silcd/command.c.
3187 Thu Jun 7 16:29:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3189 * Added sanity check to the silc_server_new_client. If the hostname
3190 is provided inside username then check that the provided hostname
3191 really is the same as the resolved one. If the hostname was not
3192 resolved then check it from the public key. Affected file is
3193 silcd/packet_receive.c.
3195 * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
3196 if the server disconnected us and the connection is not valid
3197 anymore. Affected file irssi/src/silc/core/silc-channels.c.
3199 * Moved the silc_client_[chmode|chumode|chumode_char] away from
3200 the library to the lib/silcutil/silcutil.[ch].
3202 Thu Jun 7 08:57:16 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3204 * Close log file after open. Affected file
3205 lib/silcutil/silclog.c.
3207 * Check whether sock == NULL in silc_client_send_packet and return
3208 if it is. Affected file lib/silcclient/silcclient.c.
3210 * Check rec->entry == NULL in the Irssi SILC Client before
3211 sending the channel message. Affecte file is
3212 irssi/src/silc/core/silc-servers.c.
3214 Tue Jun 5 08:08:21 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3216 * Merged a splitted window bugfix from Irssi CVS tree. The
3217 affected file is irssi/src/fe-text/textbuffer-view.c.
3219 * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
3220 It did not print nickname.
3222 * Improved the distributions system a bit.
3224 Mon Jun 4 17:57:16 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3226 * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
3227 irssi/src/fe-text/gui-window.c.
3229 * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
3230 to in-active server. The affected file is
3231 irssi/src/silc/core/client_ops.c.
3233 * Resolve the client in USERS command reply if the entry does
3234 not have username resolved. The affected file is
3235 lib/silcclient/command_reply.c. Also, changed the IDENTIFY
3236 command to WHOIS command to really resolve stuff. The USERS
3237 is not used any more in any critical section so WHOIS can
3238 be used even though it might be slower than IDENTIFY.
3240 * Changed the lib/silcutil/silchashtable.h header to ROBODoc
3243 Sun Jun 3 14:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3245 * Changed the protocol API a bit more consistent in the
3246 lib/silccore/silcprotocol.[ch].
3248 * Changed the following headers to ROBODoc format:
3250 lib/silccore/silcpayload.h
3251 lib/silccore/silcprotocol.h
3252 lib/silccore/silcsockconn.h
3254 All core library headers are now formatted.
3256 Sat Jun 2 10:45:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3258 * Fixed a bug in Irssi SILC client; do not show that you are
3259 server/router operator if you really are not. Affected file is
3260 irssi/src/silc/core/client_ops.c.
3262 * Renamed silc_command_free_payload to silc_command_payload_free.
3263 Affected file lib/silccore/silccommand.h
3265 * Added silcmath.h to include the prototoypes of various routines
3266 in the lib/silcmath. Removed the old modinv.h, mpbin.h and
3269 * Changed the following headers to ROBODoc format:
3271 lib/silccore/silcchannel.h
3272 lib/silccore/silccommand.h
3273 lib/silccore/silcid.h
3274 lib/silccore/silcidcache.h
3275 lib/silccore/silcmode.h
3276 lib/silccore/silcnotify.h
3277 lib/silccore/silcpacket.h
3278 lib/silcmath/silcmath.h
3280 Fri Jun 1 22:19:37 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3282 * Added checking to the server code not to start the server if
3283 ciphers and stuff are not configured properly. Affected files
3284 silcd/serverconfig.[h] and silcd/server.c.
3286 * Changed the layout of the header files of the public interfaces
3287 in the SILC libraries. The new layout supports ROBODoc
3288 documentation tool (and some others) so that it is easy to create
3289 a library reference manual. All the other headers and source
3290 code must still follow the CodingStyle document. Also source
3291 code must not include these ROBODoc stuffs, only the headers.
3292 Furthermore, all public interface headers must now be named
3293 by using `silc' prefix, example: silcapi.h, silccipher.h.
3294 Some files were renamed due to this. All the other headers
3295 must not be used as public interfaces. I will update the
3296 CodingStyle document later. Changed following headers, so far:
3298 lib/silcclient/silcapi.h
3299 lib/silccore/silcauth.h
3300 lib/silccore/silcprivate.h
3301 lib/silccrypt/silcdh.h
3303 Fri Jun 1 10:28:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3307 * Removed silc_client_packet_send_flush from the client library
3308 as it is not needed. Affected file lib/silcclient/client.[ch].
3310 * Added printing of message of unresolved authentication method
3311 to the Irssi SILC client. Added it to the module formats.
3312 Removed the same message from the client library.
3314 Thu May 31 13:57:33 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3316 * Added new distribution feature, DISTLABEL. Every distribution
3317 can define own preprocessor label that can be used in the
3318 source code. For example: #ifdef SILC_DIST_CLIENT. Affected
3319 file distributions, acconfig.h.pre and prepare.
3321 Tue May 29 22:16:40 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3323 * Added Makefile.defines_int to include the actual definitions
3324 for Makefile.defines.in. Tested the new distribution system,
3325 created distributions and tested installation.
3327 * Added AWAY message printing to the Irssi SILC client. Added
3328 the messages to the irssi/src/fe-common/silc/module-formats.[ch].
3330 * Added SCONNECT command to call the SILC's CONNECT command.
3331 Cannot use CONNECT directly since Irssi uses that internally.
3332 Affected file irssi/src/silc/core/silc-servers.c.
3334 Added ACTION local command. It is same as ME command but takes
3335 the channel as mandatory argument.
3337 Rewrote some of the Irssi's help files to suite for SILC
3340 Mon May 28 19:05:22 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3342 * Added Makefile.defines[.in] that should for now on be included
3343 in all Makefile.am file in the source tree. That file includes
3344 all common compilation definitions for SILC source tree.
3346 Mon May 28 10:30:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3348 * Minor changes to the ./prepare script to change the package
3349 name according the distribution name to the configure.in.
3351 Sun May 27 22:24:57 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3353 * Created new distribution system. Added file `distributions'
3354 that defines all the distributions that can be created out of
3355 the SILC source tree. The ./prepare script now reads that
3356 file to determine how to prepare the distributions. The
3357 first argument to the ./prepare is the name of the distribution
3358 and second is the version of the distribution. If given
3359 without arguments it creates the default (toolkit) distribution
3360 with the default version (defined in ./prepare).
3362 All Makefile.am files that are subject to the distributions
3363 are now named as Makefile.am.pre. These are ./Makefile.am
3364 and lib/Makefile.am. Others may be changed later.
3366 Sun May 27 15:57:17 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3368 * Added invite list, ban list, some key management and connection
3369 error message printing to module formats in the Irssi SILC client.
3371 * Added new silc_client_set_away_message to set the away message
3372 that is back to the person who sent private message. The
3373 affected file lib/silcclient/silcapi.h and the
3374 lib/silcclient/client_prvmsg.c.
3376 Sun May 27 12:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3378 * Fixed the private message sending in the Irssi SILC client,
3379 added local command KEY to the Irssi SILC client.
3381 Added key management and key agreement message formats to the
3382 irssi/src/fe-common/silc/module-formats.[ch].
3384 Added USERS (alias WHO) printing, server/router operator
3385 indication and LIST command printing to the module formats.
3387 Sat May 26 17:43:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3389 * Fixed channel joining notify handling, cumode notify handling
3390 from Irssi SILC client.
3392 * Added SILC specific module-formats to the Irssi SILC client so
3393 that SILC specific message hilighting, colors etc is possible.
3394 Affected file irssi/src/fe-common/silc/module-formats.[ch].
3396 Added channel mode, channel user mode, actions, notices,
3397 whois and whowas printing to the the module-formats.c.
3399 * Fixed a bug in channel deletion in the server. The channel
3400 is not left to the cache even if the channel founder auth mode
3401 is set when there are no users anymore on the channel. Affected
3402 file silcd/server.c.
3404 * The silc_net_localhost now resolves the entire hostname including
3405 the domain name. Affected file lib/silcutil/silcnet.c.
3407 Sat May 26 12:13:37 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3409 * Changed the ask_passphrase client operation to be ascynchronous.
3410 It has now a completion callback and a context that the
3411 application must call after it has got the passphrase from
3412 the user. Affected files lib/silcclient/silcapi.h,
3413 lib/silcclient/protocol.c, lib/silcclient/command.c and
3416 Added SilcAskPassphrase callback that the application calls
3417 to deliver the passphrase to the library.
3419 * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
3420 The public key verification and especially a certificate
3421 verification is asynchronous procedure.
3423 Added new SILC_SKE_STATUS_PENDING status to indicate the
3424 request is pending and a callback will be called to finalize
3427 Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
3428 indicate that remote end did not send its public key (or
3429 certificate), even though we require it. Added check for this
3430 condition in the SKE. This was a security bug, now fixed.
3432 Defined new SilcSKEVerifyCbCompletion callback that is called
3433 when the verification process is completed.
3435 The affected files lib/silcske/silcske_status.h and
3436 lib/silcske/silcske.[ch].
3438 * Changed the verify_public_key client operation to be async
3439 as well. Defined SilcVerifyPublicKey callback that is used to
3440 indicate the success of the public key verification process.
3442 Changed the server and client to use the new async client
3445 * Changed the Irssi SILC client's internal scheduler to be called
3446 twice as many times as it used to be. As a result the client
3447 should be a bit faster now. Affected file is
3448 irssi/src/silc/core/silc-core.c.
3450 * Added support to Irssi SILC client of asynchronous public key
3451 verification and passphrase inquiry. Affected file is
3452 irssi/src/silc/core/silc-core.c.
3454 Fri May 25 14:38:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3456 * Do not say "You have left channel %s" in client library.
3457 Moved it to the application. Affected files are
3458 lib/silcclient/command.c and silc/client_ops.c.
3460 * Fixed silc_client_get_clients. Command context was not
3461 duplicated and was freed memory in the callback. Affected
3462 file lib/silcclient/idlist.c.
3464 * Do not say "you are now talking..." on JOIN command in the
3465 client library. The appliation must handle it.
3467 * Do not say ".. changed topic to" in command reply in the
3468 client libary. The application must handle it.
3470 * Fixed TOPIC command sending in the client library.
3472 * Fixed a memory leak in silc_client_command_free in the file
3473 lib/silcclient/command.c.
3475 Thu May 24 19:08:55 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3477 * Imported a modified version of Irssi client to the source tree.
3478 The Irssi will be used to create a new client called
3479 Irssi SILC. Imported to irssi/.
3481 Added silc_core_init_finish function to the Irssi. Affected
3482 file irssi/configure.in.
3484 A lot changes in the Makefile.ams around the irssi tree.
3486 Tue May 22 22:23:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3488 * Do not rehash if the new size is same as the old size of the
3489 hash table, in the silc_hash_table_rehash*. The affected file
3490 lib/silcutil/silchashtable.c.
3492 * Replaced hash_table_del_by_context calls from the server
3493 (when channel->user_list and client->channels) to the
3494 hash_table_del as it is sufficient and faster.
3496 Tue May 22 17:27:16 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3498 * Added silc_hash_table_list, silc_hash_table_get and the
3499 SilcHashTableList structure to provide an alternative way to
3500 traverse the hash table. The affected files are
3501 lib/silcutil/silchashtable.[ch].
3503 * Changed the server's idlist routines to use the hash table
3504 routines to optimize the code.
3506 Mon May 21 21:46:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3508 * Replaced the client entry's `channel' list and channel entry's
3509 `user_list' list to hash tables for optimized lookup. Changed
3510 the code to use the hash table interface around the code.
3511 Affected file lib/silcd/idlist.[ch].
3513 * Added `auto_rehash' boolean argument to the function
3514 silc_hash_table_alloc to indicate whether the hash table should
3515 auto-rehash when it thinks is appropriate time. It will
3516 increase the hash table size if the there is twice as much
3517 entries in the table than the size of the table, and will
3518 decrease the size if there are twice as less entries than
3519 the size of the table.
3521 Mon May 21 09:51:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3523 * Fixed silc_xxx_get_supported to not crash at some circumstances.
3525 Sun May 20 13:45:58 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3527 * silc_idcache_purge_by_context deletes the entry now by context
3528 as it is supposed to do. Affected file lib/silccore/idcache.c.
3530 * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
3531 client is not anymore valid (WHOWAS givens the info) and not
3532 the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
3534 Sat May 19 16:30:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3536 * Removed the `data' and `data_len' arguments from the ID Cache
3537 interfaces and added `name' argument. ID Cache does not handle
3538 anymore the binary data only a names associated with given ID.
3540 * When hashing a Client ID with silc_hash_id the entire ID is
3541 not hashed anymore, instead only the hash of the Client ID is
3542 hashed. This way we can access the Client ID from the cache
3543 with Client ID but with the hash of the ID (which is a hash of
3544 the nickname) as well without any difference in performance.
3546 Added also silc_idcache_find_by_id_one_ext to do one on one
3547 searching when we have the actual ID. Added also function
3548 silc_hash_client_id_compare. The affected files are
3549 lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
3551 * When hashing the name associated with a ID it is always done
3552 in lowercase. This way we can access the cache without worrying
3553 about case-sensitivity, even though, for example nicknames are
3556 * Fixed a bug in server with channel message sending. It put
3557 wrong ID type as destination ID. The affected file
3558 silcd/packet_send.c.
3560 * silc_idcache_del_by_context now deletes from all hash tables
3561 by context. Affected file lib/silccore/idcache.c.
3563 Fri May 18 17:42:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3565 * Changed the client library to use the new ID Cache interface.
3566 Changes around the source tree.
3568 * Added silc_hash_table_rehash_ext to rehash with specific
3569 hash function. Affected file lib/silcutil/silchashtable.[ch].
3571 * Added silc_hash_string_compare to compare two strings in the
3572 hash table. Affected file lib/silcutil/silcutil.[ch].
3574 Fri May 18 11:18:45 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3576 * Added new function silc_idcache_del_by_context into the
3577 lib/silccore/idcache.[ch].
3579 * Changed the server's ID list routines to use the new ID Cache
3580 interface. Changes around the source tree.
3582 Fri May 18 08:35:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3584 * Added silc_hash_table_del[_by_context]_ext functions in to the
3585 lib/silcutil/silchashtable.[ch].
3587 Removed silc_hash_table_find_all* routines and added new
3588 silc_hash_table_find_foreach to replace them.
3590 Added silc_hash_table_replace_ext function as extended
3591 replacing function. Separated the simple hash table interface
3592 from the extended hash table interface in the file
3593 lib/silcutil/silchashtable.h.
3595 * Fixed minor bugs and changed it to use some of the new
3596 hash table functions in lib/silccore/idcache.c
3598 Thu May 17 18:15:12 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3600 * Added new function silc_hash_table_find_all to return all keys
3601 in the hash table by the specified key. As the hash table is
3602 collision resistant it also makes it possible to have several
3603 duplicate keys in the hash table. This function may be used to
3604 find all of the keys from the hash.
3606 Added user_context arguments to the SilcHashFunction,
3607 SilcHashCompare and SilcHashDestructor to deliver user specified
3610 Added new fuctions silc_hash_table_find[_all]_ext to do
3611 extended lookup with specified hash and compare functions and
3612 specified user contexts.
3614 Added new function silc_hash_table_add_ext to add the key
3615 with specified hash function and user context.
3617 Added new function silc_hash_table_foreach to traverse all
3618 entrys in the hash table. Added SilcHashForeach callback
3621 Added new function silc_hash_table_del_by_context to delete
3622 the entry only if the context associated with the key matches.
3624 Affected files are lib/silcutil/silchashtable.[ch].
3626 * Removed silc_hash_[server/client/channel]_id and added just
3627 silc_hash_id to the lib/silcutil/silcutil.[ch]. Added also
3628 silc_hash_id_compare to compare two ID's using as the hash table
3629 comparison function. Added also silc_hash_data to hash
3630 binary data and silc_hash_data_compare to compare it.
3632 * Removed silc_idlist_find_client_by_hash as it is not needed
3633 anymore. Affected file silcd/idlist.[ch].
3635 * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
3636 to use internally the SilcHashTable. The new ID Cache is a lot
3637 faster than the old one. Some of the ID Cache interface was also
3638 rewritten and obsolete and stupid functions were removed.
3640 Wed May 16 23:03:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3642 * Added entry_count field to the SilcHashTable to keep the number
3643 of the entries in the table. Implemented the function
3644 silc_hash_table_rehash. Added new function
3645 silc_hash_table_count. Affected file lib/silcutil/silchashtable.c.
3647 Fixed a minor bug in silc_hash_table_free.
3649 * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
3650 silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
3651 into the lib/silcutil/silcutil.[ch].
3653 Wed May 16 20:02:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3655 * Implemented a collision resistant hash table into the
3656 lib/silcutil/silchashtable[ch]. See the header and the source
3657 for the SilcHashTable API.
3659 Tue May 15 22:05:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3661 * Merged dotconf version 1.0.2 into lib/dotconf.
3663 Sun May 13 19:32:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3665 * Do not compile anything in lib/silcsim/* if the SIM support
3666 is not enabled. The tree should now compile without problems
3669 Thu May 10 22:49:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3671 * Compiled the SILC under cygwin. Compiled and tested briefly
3672 without problems. More tests needed. The SIMs didn't compile
3675 * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
3677 * Fixed possible crash in silc_get_username in the
3678 lib/silcutil/silcutil.c.
3680 Tue May 8 09:04:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3682 * Fixed a va_arg in silc/client_ops.c.
3684 * Oops, RC5 routines were named AES and caused some problems
3685 when not using SIM's. Affected file lib/silccrypt/rc5.c.
3687 Sun May 6 13:59:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3689 * Added new SilcIDIP structure into the lib/silccore/id.h and
3690 replaced the old `ip' fields from all SILC ID's to that type.
3691 This is a step towards IPv6 support.
3693 The silc_id_get_len takes now the ID as an extra argument.
3694 The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
3695 both IPv4 and IPv6 based ID's.
3697 The affected files are lib/silccore/id.[ch] and other files
3698 around the tree using these routines.
3700 * Removed the ID length arguments in server from various
3701 silc_server_send_notify_* routines -> they are not needed
3704 Sat May 5 13:56:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3706 * Fixed memory leak in silc_encode_pem_file in the file
3707 lib/silcutil/silcutil.c.
3709 Thu May 3 21:23:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3711 * Check minor version as well in the SKE. Affected files are
3712 silcd/protocol.c and lib/silcclient/protocol.c.
3714 * Added --identifier option to the server so that an identifier
3715 can be when creating the public key for the server. Affected
3716 file is silcd/silcd.c.
3718 * Fixed minor decoding bug in silc_pkcs_decode_identifier in
3719 lib/silccrypt/silcpkcs.c.
3721 Wed May 2 20:50:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3723 * Register default ciphers and stuff when using -C option with
3724 the server. Affected file sildc/silcd.c.
3726 * Put back the servers public key filename format, it is better
3727 than the new one. For now, the client keys are saved with the
3728 new filename format. The affected file silc/client_ops.c.
3730 * Implemented the Cipher API for the rest of the ciphers that
3731 did not implement it or implemented it the wrong way.
3733 Wed May 2 13:31:26 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3735 * Register default ciphers and stuff when using the -S option
3736 in the client. Affected file silc/silc.c. Same also when
3737 creating new key pair with -C option.
3739 Tue May 1 14:18:13 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3741 * Fixed the silc_verify_public_key client operation function to
3742 save the public keys differently. The fingerprint is now
3743 used as filename and not the hostname. This way also the
3744 client keys are saved uniquely and not with hostnames. The
3745 affected file is silc/client_ops.c.
3747 * Trimmed the silc_hash_fingerprint function to remove extra
3748 whitespaces from the end of the fingerprint. The affected
3749 file is lib/silccrypt/silchash.c.
3753 * Added silc_cipher_register_default function to register all
3754 default ciphers. It can be used when configuration files
3755 does not exist and the application does not want any specific
3756 ciphers in any specific order.
3758 The SilcDList is now used as silc_cipher_list dynamically
3759 allocated cipher list. Removed the static list all together
3760 and now all ciphers must be allocated to the dynamic list.
3761 The silc_cipher_alloc routine was changed to check only the
3764 All silc_cipher_* routines that used to return int returns
3767 The affected files lib/silccrypt/silccrypt.[ch].
3769 * The same thing was done to silc_hash_* as for silc_cipher_*
3770 routines. Affected files lib/silccrypt/silchash.[ch].
3772 * The same thing was done to silc_pkcs_* as for silc_cipher_*
3773 routines. Affected files lib/silccrypt/silcpkcs.[ch].
3774 Added also silc_pkcs_[un]register[_default] functions.
3775 Removed the data_context from the PKCS API.
3777 * Added silc_hmac_register_default function to register default
3778 hmacs. Affected files lib/silccrypt/silchmac.[ch]. Added also
3779 SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
3780 to unregister all hmacs at once.
3782 * Register the default ciphers, hash functions, PKCSs and HMACs
3783 if client's configuration file does not exist. The affected
3786 * The client did not load the hash functions from the SIM
3787 modules at all. Added support for this. Affected file is
3788 silc/clientconfig.c.
3790 * When decoding public key with silc_pkcs_public_key_decode, check
3791 the supported algorithm only if PKCS are registered. Affected
3792 file lib/silccrypt/silcpkcs.c. The same was done with the
3793 silc_pkcs_private_key_decode.
3795 * Fixed the SILC List routines to keep the list always in order.
3796 It used to change the list's order when traversing the list but
3797 not it preserves the order. Affected file lib/trq/silclist.h.
3799 Mon Apr 30 17:29:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3801 * Added the client library to use the SilcSocketConnection's
3802 reference counter (by silc_socket_dup) to prevent the bug that
3803 the socket object may be freed underneath async operation.
3805 * The name resolv library checking fixes in the configure.in.pre.
3808 * Created new version of the protocol drafts for future
3809 development. The -03 drafts are the ones that will be changed
3810 in the trunk now and the -02 will remain as they are.
3812 * Send list of CUMODE notifys to the router when announcing
3813 the channel users to the router. Affected file silcd/server.c.
3814 If the router receiving channel founder CUMODE for a channel
3815 that already has channel founder it will send CUMODE notify
3816 to the sender to remove the channel founder rights from the
3817 announced client. Affected file silcd/packet_receive.c.
3819 * The CUMODE notify may now use Server ID as well as the entity
3820 who changes the mode. Updated protocool specs.
3822 * Updated INSTALL and README files.
3824 Sun Apr 29 23:17:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3826 * New web pages in the http://silc.pspt.fi. The pages was
3831 Sun Apr 29 13:33:41 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3833 * Implemented the [DenyConnectin] config section in the server.
3834 Added silc_server_config_denied_conn to check whether incoming
3835 connection is denied. Affected file silcd/serverconfig.[ch].
3837 * Do not check the ports when checking the incoming configuration
3838 data if the port is 0, meaning any. Affected file is
3839 silcd/serverconfig.c.
3841 Fri Apr 20 18:58:43 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3843 * Fixed buffer overflow in silc_string_compare in the file
3844 lib/silcutil/silcutil.c.
3846 * Fixed double free in silc_server_command_leave in the file
3849 Fri Apr 20 14:00:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3851 * Fixed the version checking in the server. Affected file is
3854 Thu Apr 19 19:52:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3856 * Fixed the configuration data fetching when accepting new
3857 connections in the server. Affected file silcd/server.c.
3859 Thu Apr 19 11:40:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3861 * Added `sender_entry' argument to the function
3862 silc_server_packet_relay_to_channel so that we can check
3863 whether some destination actually belongs to the same route
3864 the sender belongs (ie, we must not resend the packet to the
3865 sender). Affected file silcd/packet_send.[ch].
3867 * Added `servername' field to the SilcClientEntry in the server
3868 to hold the name of the server where client is from. Affected
3869 file is silcd/idlist.h.
3871 Wed Apr 18 22:19:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3873 * Moved the channel message encrypting in the router betwen
3874 router connections from silc_server_channel_message to the
3875 silc_server_packet_relay_to_channel since we want to check
3876 whether we have anybody channel before encrypting anything.
3877 Affected files silcd/packet_[receive/send].c.
3879 Tue Apr 17 21:18:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3881 * Fixed the [AdminConnection] server config section to support
3882 multiple entries. Affected file silcd/serverconfig.c.
3884 * Added support into the server to check the validity of the
3885 incoming connection before executing any KE or authentication
3888 * The connection configuration is now saved to the KE and
3889 connection auth protocol contexts and not fetched anymore in
3890 the protocol. Affected files silcd/server.c, silcd/protocol.[ch].
3892 * The local hosts listenning address and port is also resolved
3893 now when starting the server. We want to have the socket object
3894 to include the real address and port for the listener. Added
3895 new function silc_net_check_local_by_sock into the files
3896 lib/silcutil/silcnet.[ch].
3898 * Fixed a broadcast bug in server -> do not broadcast if we
3901 * Fixed a routing bug. Do not route broadcast packets ever.
3902 Broadcast packets must be processed always and not routed since
3903 they may be destined to some other host than yourself and thus
3904 would get routed without no good reason. Affected file is
3907 * Added function silc_server_config_is_primary_route to check
3908 whether primary router connection has been configured (a router
3909 configuration that we are initiating). If there is not, we
3910 will assume that there is only two routers in the SILC network
3911 and we will use the incoming router connection as our primary
3912 route. Affected files silcd/serverconfig.[ch], silcd/server.c.
3914 * Changed the order of the broadcasting. Broadcast _after_ the
3915 packet has been processed not before. Affected file is
3918 * Fixed a [ClientConnection] parsing bug. The port was never
3919 parsed correctly thus resulting to port 0. Affected file
3920 silcd/serverconfig.c.
3922 * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
3923 argument and did not set the broadcast packet flag. Affected
3924 file silcd/packet_send.c. Fixed same bug in the function
3925 silc_server_send_notify as well.
3927 * If we receive NEW_ID packet for our own ID in the server, ignore
3930 Mon Apr 16 12:10:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3934 * Removed the nickname from the Private Message Payload.
3935 Updated the code and the protocol specs.
3937 * Updated protocol specs for submitting to the IETF.
3939 * Tweaked the Random Number Generator a bit. Affected file
3940 lib/silccrypt/silcrng.c. Exported a new function
3941 silc_rng_[global]_add_noise which can be used to add more
3944 Sat Apr 14 16:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3946 * Do not parse packets with different timeout when protocol
3947 is active -> may cause problem with rekey. Affected file
3950 * When server receives signoff notify it must not create
3951 new channel key if the client is on any channels since the
3952 sender of the signoff notify will create it.
3954 Fri Apr 13 17:12:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3956 * Added printing of error messages during SKE protocol from the
3957 failure packet sent by server during SKE. Affected file
3960 * Removed the client's failure_callback handling with timeout
3961 and handle it immediately when received.
3963 * The SKE library returned wrong type in SUCCESS and FAILURE
3964 packets. They must be 32 bit MSB not 16 bit MSB.
3966 Fri Apr 13 00:09:08 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3968 * Ok, rewrote the logic of the re-key and now it seems to work.
3969 I tested it on high traffic with frequent re-keys without
3970 problems. Added hmac_receive (and renamed hmac to hmac_send)
3971 in SilcClientConnection in lib/silcclient/client.h and
3972 in SilcIDListData in silcd/idlist.h. Also, removed the
3973 SilcPacketParserContext's cipher and hmac fields as they are
3974 not needed anymore and actually caused some problems when
3975 the ciphers and hmac's changed underneath the packet parser.
3977 Thu Apr 12 14:42:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3979 * If re-key protocol is active then process the incoming packets
3980 synchronously since we must assure that icoming packets encrypted
3981 with the old key is processed before the new keys is set to
3982 use. This is true other packets than for REKEY packets.
3983 Affected file silcd/server.c. The same was done to client library
3984 as well, affected file lib/silcclient/client.c.
3986 Thu Apr 12 12:01:52 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3988 * Fixed bug in client and server to accept the force send if
3989 the packet is send from silc_[server/client]_packet_process
3990 function. Otherwise the packets are never delivered, oops.
3992 Wed Apr 11 22:10:15 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3994 * Disable force sending of packets when REKEY protocol is active.
3995 We must assure that no packet is sent directly when rekey is
3996 performed. All packets must be sent through packet queue.
3997 Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
3998 SILC_CLIENT_IS_REKEY to lib/silcclient/client.h. Affected
3999 function is silc_[server/client]_packet_send_real to check
4002 * Replaced the SIM paths from example config files to
4003 /usr/local/modules. Also, make install creates now
4004 /usr/local/silc/logs directory to hold all the SILC server
4007 Wed Apr 11 16:59:59 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4009 * Made the configure.in.pre work on Solaris. Patch by salo.
4011 * Made all ciphers compatible with non-x86 machines. Defined
4012 CBC mode macros into lib/silccrypt/ciphers_def.h.
4014 Tue Apr 10 20:32:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4016 * Fixed the make install.
4018 Tue Apr 10 16:20:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4020 * When MAC computation fails the silc_packet_decrypt returned 0
4021 even though it was supposed to return -1. Fixed this. The
4022 affected file is lib/silccore/silcpacket.c.
4024 * Do not replace the config files in /etc/silc (in make install)
4025 if they already exist. Affected file ./Makefile.am.
4027 * Do not send re-key packets immediately but through packet queue.
4028 Affected file silcd/protocol.c and lib/silcclient/protocol.c.
4030 * Changed silc_net_check_host_by_sock to return FALSE if the
4031 IP/DNS could not be resolved. Though, it returns the IP address
4032 now even if it could not resolve it (but returns also FALSE).
4033 Affected file lib/silcutil/silcnet.[ch].
4035 Mon Apr 9 21:54:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4037 * Added silc_pkcs_decode_identifier to decode the public key's
4038 identifier. Affected file lib/silccrypt/silpkcs.[ch].
4039 Added also silc_pkcs_free_identifier. Added also new context
4040 SilcPublicKeyIdentifier.
4042 * Added -S option to the silc client. It is used to dump the
4043 contents of the specified public key file.
4045 * Changed the PKCS api to return the public key length when
4046 setting the public key.
4048 * Fixed a fatal bug in the public and private key file loading.
4049 Affected file lib/silccrypt/silcpkcs.c.
4051 * Execute the packet parsing for client with zero (0) timeout
4052 if the protocol is active. Affected file silcd/server.c.
4054 Sun Apr 8 19:30:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4056 * Made the key generation options to the silcd program. Added
4057 -C option, equivalent to client's option.
4059 * Added new [ServerKeys] config section to the server. It
4060 configures the server's public and private key.
4062 * Defined generic Public Key Payload into the protocol
4063 specification to send specific type of public keys and
4066 * Defined new command SILC_COMMAND_GETKEY to fetch a client's
4067 public key or certificate.
4069 * Implemented the GETKEY command to the server and to the
4070 client library and on user interface.
4072 Sun Apr 8 01:37:21 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4074 * Made preliminary `make install' work.
4076 Thu Apr 5 17:42:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4078 * Added SilcServerRekey context into silcd/idlist.h.
4080 * Added the PFS support as defined in the specification to the
4081 SKE protocol. Affected files lib/silcske/*.c.
4083 * Added `ske_group' field to the SilcServerRekey context to hold
4084 the number of the SKE group that is used with PFS in re-key.
4085 Affected file silcd/idlist.h.
4087 * Added PFS re-key support to the server. Affected file is
4090 * Added silc_protocol_cancel to cancel execution of the next
4091 state of the protocol. Affected file is
4092 lib/silccore/silcprotocol.[ch].
4094 * Added the re-key support with and without PFS to the client
4095 library. Re-key is performed once in an hour, by default.
4097 Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
4098 Added silc_client_rekey_callback and silc_client_rekey_final.
4099 Affected files are lib/silcclient/protocol.[ch] and
4100 lib/silcclient/client.[ch].
4102 * Removed the `hmac_key' and `hmac_key_len' fields from the
4103 SilcClientConnection structure; not needed. Affected file is
4104 lib/silcclient/client.h.
4108 Wed Apr 4 16:32:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4110 * Do not ask whether user wants to use the negotiated private key
4111 for private messages, just use it. Affected file is
4112 silc/local_command.c.
4114 * Added `send_enc_key' and `enc_key_len' fields to the
4115 SilcIDListData structure since they are needed in the re-key
4116 phase. Affected file is silcd/idlist.[ch].
4118 * Implemented the simple re-key protocol into the server.
4119 Affected files silcd/server.c and silcd/protocol.[ch]. The
4120 re-key will be performed once in an hour, by default.
4122 Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
4123 Added silc_server_rekey, silc_server_rekey_callback and
4124 silc_server_rekey_final.
4126 * Removed Tunneled flag from the protocol. Updated the code
4127 and the specifications.
4129 * Adde `pfs' field to the SilcIDListData to indicate whether
4130 the PFS is to be performed in the re-key. Affected file is
4133 Tue Apr 3 21:52:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4135 * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
4136 int64 of at least the xintXX size. If void * is less that 4
4137 bytes uint32 * will be used. Defined bool as boolean.
4139 * Changed _ALL_ unsigned long and unsigned int to uint32,
4140 unsgined short to uint16 in the source tree.
4142 * Fixed a fatal bug in silc_server_remove_clients_by_server. Do
4143 not handle clients that has entry->data.registered == FALSE.
4144 They are not in the network anymore. Affected file is
4147 Tue Apr 3 16:39:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4149 * Implemented the sending of the SERVER_SIGNOFF notify in the
4150 server. Affected file is silcd/server.c.
4152 * Added silc_server_send_notify_args into silcd/packet_send.[ch].
4153 Added also silc_notify_payload_encode_args into the
4154 lib/silccore/silcnotify.[ch].
4156 * Implemented ther SERVER_SIGNOFF notify handling in the server.
4157 Affected file silcd/packet_receive.c.
4159 * Implemented the SERVER_SIGNOFF notify handling in the client
4160 library. Affected file lib/silcclient/client_notify.c. Also,
4161 implemnted the printing of the SERVER_SIGNOFF info to the
4162 application. Affected file silc/client_ops.c.
4164 * The silc_idlist_del_server now returns TRUE or FALSE to indicate
4165 if the deleting was successful. Affected file silcd/idlist.[ch].
4167 * Added support for public key authentication in the connection
4168 authentication protocol in the client library. Affected file
4169 lib/silcclient/protocol.c.
4171 * Changed the server's silc_idlist_get_clients_by_* interface
4172 to support already allocated array so that new entries may be
4173 added to pre-allocated array. Affected file silcd/idlist.[ch].
4174 This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
4175 and command replies.
4177 * All command reply functions in the server now calls the
4178 pending command callback even if error occured. This way the
4179 error will be delivered to the client as well. Affected files
4180 silcd/command.c and silcd/command_reply.c.
4182 * Fixed INFO command to return local server's info if no server
4183 was provided. Affected file lib/silcclient/command.c.
4185 * Removed RESTART command for good. Updated the code and the
4188 * Rewrote parts of the task system. It is a bit simpler now.
4189 Removed unsued task priorities. The affected files are
4190 lib/silcutil/silctask.[ch].
4192 Mon Apr 2 20:02:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4194 * Moved the USERS printing from the library to the application.
4195 Affected files lib/silcclient/command.c and silc/client_ops.c.
4197 Mon Apr 2 13:13:23 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4201 * Added channel key re-key support. The re-key is perfomed
4202 only by the router and is done once in an hour. Added `rekey'
4203 field to the SilcChannelEntry in the server. Affected files
4204 silcd/server.c and silcd/idlist.h.
4206 * Added silc_task_unregister_by_context into the file
4207 lib/silcutil/silctask.[ch].
4209 Sun Apr 1 19:49:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4211 * Added SILC_UMODE_GONE mode to indicate when the client is not
4212 present in the SILC network. Added also support to the local
4213 command AWAY that will set this mode. Added support of showing
4214 "xxx is gone" in WHOIS command. The USERS command shows the
4215 gone status as well.
4217 * Fixed setting server and router operator privileges in the
4218 server's UMODE command. Affected file silcd/command.c.
4220 * Merged the SKE KE1 and KE2 payloads into one payload. The
4221 new KE payload is equivalent to the old KE2 payload.
4223 Cleaned up the SKE Start Payload parsing. It now uses the
4224 simple buffer unformatting to do the parsing. A lot faster
4227 Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
4228 to the SKE that is used to indicate whether both of the SKE
4229 parties should perform authentication. By default only the
4230 responder performs authentication. By setting this flag also
4231 the initiator must do authentication. By default it is unset
4232 since in normal SKE case, client to server connection, only
4233 the responder should do authentication. When doing SKE between
4234 two clients both should perform authentication. Updated the
4235 code and the protocol specs.
4237 * A little fix to IDENTIFY command in the server. Search the
4238 client first by hash not nickname. Affected file is
4241 * Fixed the silc_client_close_connection to support closing
4242 the client to client connections wihtout deleting too much
4243 data. Affected file lib/silcclient/client.c.
4245 * Fixed a fatal bug in server and client; if KE1 or KE2 packets
4246 are received if protocol used to be active but is not anymore
4247 the application would crash due to NULL pointer dereference.
4248 Affected files silcd/server.c and lib/silcclient/client.c.
4250 * Added `hash' field to the SilcClientConnection to include
4251 the hash function negotiated in the SKE protocol.
4253 * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
4254 to set the channel founder authentication data. A client can
4255 claim the founder rights later by providing the authentication
4256 data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
4257 This way the channel founder can regain the channel founder
4258 privileges even it is left the channel. This works only on
4259 local server and the client must be connected to the same
4260 server to be able to regain the founder rights. Updated the
4261 protocol specs accordingly.
4263 Added support to the CMODE command in the client to set the
4264 founder auth data. Read the README to see how to set it.
4266 Added support to the CUMODE command to claim the founder
4267 rights. Read the README to see how to do it.
4269 Added support for the founder authentication to the Channel
4270 Entry in the server. Affected file silcd/idlist.h.
4272 Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
4273 server's CMODE command. Affected file silcd/command.c.
4275 * Added the following new functions into lib/silccore/silcauth.[ch]:
4276 silc_auth_get_method and silc_auth_get_data.
4278 * The server now saves the remote hosts public key to the
4279 SilcIDListData pointer. Affected file silcd/protocol.c.
4281 * The normal server now does not remove the channel entry from
4282 the cache if the founder authentication data is set. It used
4283 to remove it if the founder was the last one on the channel on
4284 the server and left the channel. The auth data is saved and
4285 if the channel is re-joined later the old entry is used with
4286 the old auth data. Affected files silcd/command_reply.c and
4289 * Removed the `pkcs' field from the SilcIDListData structure
4290 in the server; it is not used. Affected file silcd/idlist.h.
4292 Sat Mar 31 15:38:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4294 * Fixed packet processing on slow links. Partial packets were
4295 never re-processed because the incoming data buffer was cleared
4296 by the application. Application must not directly clear the
4297 sock->inbuf, the packet processing routines handle it. Fixed
4298 this in client library and in server.
4300 Fri Mar 30 16:35:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4302 * Fixed the WHOIS and IDENTIFY send reply function to really
4303 check whether to send list or just one entry. Affected file
4306 * Cleaned up the LEAVE command's channel key distribution. The
4307 affected file silcd/command.c.
4309 * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
4310 can enforce the channel mode as well. In that case the ID
4311 includes the ID of the server. The code now enforces the
4312 mode change if the router have different mode than the server.
4314 * The notify client operation with CMODE_CHANGE notify can now
4315 return NULL client_entry pointer if the CMODE was not changed
4316 by client. Application must check for this.
4318 * Added <Server ID> argument to INFO command to support server
4319 info fetching by Server ID.
4321 * Added silc_server_announce_get_channel_users to get assembled
4322 packets of channel users of the specified channel. Affected
4323 file silcd/server.[ch].
4325 * Fixed bug in CHANNEL_CHANGE notify in the server. The new ID
4326 was freed underneath the ID Cache.
4328 * Re-announce clients when the server received CHANNEL_CHANGE
4329 notify from the router. Affected file silcd/packet_send.c.
4331 Thu Mar 29 19:10:28 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4333 * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
4334 crashed since it did not handle the fact that there is no cipher
4335 called "3" and didn't check the error condition. Now fixed.
4337 * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
4338 flag. It can be used to send message requests.
4340 Thu Mar 29 12:26:25 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4342 * Implemented the RESTART command in the client.
4344 * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
4345 notice type messages. Added notice printing to the user
4348 * The channel keys are not re-generated if the channel's mode
4349 is PRIVKEY, ie private key on the channel exists. Affected
4350 files silcd/server.c and silcd/command.c.
4352 * Fixed a little bug in channel message delivery when channel
4353 private keys are set in the server. Affected file is
4354 silcd/packet_send.c.
4356 * Changed the setting on channel->on_channel = TRUE from the
4357 silc_client_save_channel_key to the JOIN command reply. The
4358 key payload is not received if the private channel key is set.
4359 Affected file lib/silcclient/command_reply.c and the
4360 lib/silcclient/client_channel.c.
4362 * When the CMODE_CHANGE notify is sent and the channel private
4363 key mode is removed the channel key must be re-generated in
4364 other cells as well. Added this support for the router in the
4365 silcd/packet_receive.c.
4367 * Added new local command NOTICE to send notice message on
4368 channel. Affected file silc/local_command.[ch].
4370 Wed Mar 28 23:55:54 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4372 * Added new local command ME to the client. It is used to send
4373 message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
4374 some action. Affected file silc/local_command.[ch].
4376 * Changed channel_message and private_message client operations
4377 to deliver the message flags to the application. Added also
4378 the `flags' arguments to the silc_client_send_channel_message
4379 and silc_client_send_private_message functions. Affected file
4382 Wed Mar 28 20:50:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4384 * Redefined the Private Message Payload to support private message
4385 keys and to support the new private message flags. Updated
4386 the protocol specs. Flags makes it possible to have for example
4387 CTCP style messages.
4389 * Added new type SilcPrivateMessagePayload and defined an API
4390 for it in the lib/silcclient/silcprivate.[ch].
4392 * Tested private message private keys successfully. Tested the
4393 private message key set, unset and list commands with the new
4396 * Redefined the Channel Message Payload to include the channel
4397 message flags (equal with private message flags) to support
4398 for example CTCP style messages.
4400 * Defined some of the message (for channel and private message)
4401 flags. Updated the protocol specs and added the flags to the
4402 lib/silccore/silcchannel.h. The type is SilcMessageFlags.
4404 Wed Mar 28 15:52:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4406 * Added SilcKeyAgreementStatus type to the key agreement routines
4407 to indicate the current status and error if one occured.
4408 The status types are defined in the lib/silcclient/silcapi.h.
4410 * Added new local command KEY that is used to set and unset private
4411 keys for channels, set and unset private keys for private messages
4412 with remote clients and to send key agreement requests and
4413 negotiate the key agreement protocol with remote client. The
4414 key agreement is supported only to negotiate private message keys,
4415 it currently cannot be used to negotiate private keys for channels,
4416 as it is not convenient for that purpose.
4418 * Fixed a minor pending callback setting bug in the function
4419 silc_client_get_client_by_id_resolve, now the function works.
4420 Affected file lib/silcclient/idlist.c.
4422 * Added function silc_net_get_local_port to get local bound
4423 port by socket. Added to lib/silcutil/silcnet.[ch].
4425 * Added `sockets' and `sockets_count' fields to the SilcClient
4426 object. They hold the sockets of the listenning sockets in
4427 the client. Listenning sockets may be for example the key
4428 agreement server. Affected file lib/silcclient/client.[ch].
4429 Added functions the silc_client_add_socket and the
4430 silc_client_del_socket. They are exported to the application
4433 * Added ~./silc/clientkeys to support other client's public keys.
4435 * Renamed verify_server_key client operation to verify_public_key
4436 and added one argument to indicate the type of the connection
4437 (server, client etc.).
4439 Tue Mar 27 22:22:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4441 * Added silc_server_connection_auth_request to handle the
4442 incoming CONNECTION_AUTH_REQUEST packet. Affected file is
4443 silcd/packet_receive.[ch].
4445 * Added silc_server_send_connection_auth_request into the
4446 silcd/packet_send.c to send the connection auth request packet.
4448 * Cleaned up the silcd/protocol.c a bit and fixed some memory
4451 * Fixed the public key authentication in responder side in the
4452 server. The `auth_data' pointer includes the SilcPublicKey
4453 not the path to the public key. Affected file silcd/protocol.c.
4455 * Implemented the public key authentication in the initiator side
4456 in the server. Affected file silcd/protocol.c.
4458 * Removed the [RedirectClient] config section from the server
4459 configuration. Is not needed and I don't want to implement it.
4461 Tue Mar 27 12:49:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4463 * Cleaned up the CMODE command in the server. It now works
4464 correctly and supports all the modes defined in the protocol.
4465 Affected file is silcd/command.c.
4467 * Added `hmac_name' field to the SilcChannelEntry in the server
4468 to hold the default HMAC of the channel. It can be set when
4469 creating the channel (with JOIN command). Affected files
4472 * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
4473 type to indicate the change of the current cipher and hmac
4474 on the channel. Client can safely ignore the <cipher> argument
4475 (if it chooses to do so) since the CHANNEL_KEY packet will
4476 force the channel key change anyway. The <hmac> argument is
4477 important since the client is responsible of setting the new
4478 HMAC and the hmac key into use.
4480 * Fixed the CMODE command in the client library as well.
4482 * Tested CMODE command in router environment successfully.
4484 Mon Mar 26 14:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4486 * Show the version of the remote client (or server) when connecting
4487 to the server. It is logged to the log file. Affected file
4488 is silcd/protocol.c.
4490 * Fixed the KILLED notify handling in the client library. The
4491 client must be removed from all channels when receiving the
4494 Also, do not remove the client entry when giving the KILL
4495 command but when the KILLED notify is received.
4497 * Removed silc_idlist_find_client_by_nickname from the server.
4498 Not needed anymore. Affected files silcd/idlist.[ch].
4500 * Implemented the CHANNEL_CHANGE notify type handling to the
4501 server. Affected file silcd/server.c.
4505 Mon Mar 26 12:11:14 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4507 * Added silc_server_send_notify_invite to send the INVITE
4508 notify between routers.
4510 * Implemented the INVITE command correctly to the server.
4512 * Implemented the INVITE notify type handling in the server.
4514 * Implemented the INVITE command to the client library and on the
4517 Sun Mar 25 20:27:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4519 * Added function silc_server_get_client_resolve to find the
4520 client entry by ID from all ID lists and then resolve it
4521 (using WHOIS) if it cannot be found. Affected file is
4524 Sun Mar 25 13:52:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4526 * Implemented the BAN command to the client library.
4528 * The JOIN command in the server now checks the invite list
4531 * Changed the silc_command_reply_payload_encode_va and the
4532 silc_command_payload_encode_va to support that if argument is
4533 NULL it ignores and checks the next argument. Affected file
4534 lib/silccore/silccommand.c.
4536 * Added silc_server_send_notify_ban to send the BAN notify
4537 type between routers.
4539 * Chaned the silc_notify_payload_encode to support that if
4540 argument is NULL it ignores and checks the next argument.
4541 Affected file lib/silccore/silcnotify.c.
4543 * Tested ban lists in router environment successfully.
4545 Sat Mar 24 14:47:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4547 * Implemented BAN command to the server, in silcd/command.[ch].
4549 * Removed the BAN and INVITE_LIST modes from the CMODE command
4552 * Added function silc_string_match to regex match two strings.
4553 Affected files lib/silcutil/silcutil.[ch].
4555 Fri Mar 23 22:02:40 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4557 * Redefined parts of the SilcChannelEntry in the server to support
4558 the new ban and invite lists.
4560 Fri Mar 23 16:25:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4562 * Redefined the INVITE command. The same command can be used to
4563 invite individuals to the channel but also to manage the invite
4564 list of the channel (to add to and remove from the invite list).
4565 Updated the protocol specs.
4567 * Added new command SILC_COMMAND_BAN that can be used to manage
4568 the ban list of the channel. Updated the protocol specs.
4570 * Removed the channel modes: the SILC_CMODE_BAN and the
4571 SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
4572 in the CMODE command. The equivalent features are now available
4573 using INVITE and BAN commands. Updated the protocol specs.
4575 * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
4576 in the network about change in the current ban list. The notify
4577 type is not used by the client.
4579 * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
4580 support the invite lists.
4582 Thu Mar 22 22:52:23 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4584 * Added new function silc_string_regexify that converts string
4585 including wildcard characters into regex string that can
4586 be used by the GNU regex library. Added into the file
4587 lib/silcutil/silcutil.[ch].
4589 Added silc_string_regex_combine to combine to regex strings
4590 into one so that they can be used as one regex string by
4591 the GNU regex library. Added into the file
4592 lib/silcutil/silcutil.[ch].
4594 Added silc_string_regex_match to match two strings. It returns
4595 TRUE if the strings match. Added into lib/silcutil/silcutil.[ch].
4597 Thu Mar 22 15:29:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4599 * Imported GNU regex to the soruce tree into lib/contrib.
4600 Fixed some compiler warning from the regex.c.
4602 Wed Mar 21 15:27:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4604 * Fixed MOTD command in the server to work in router environment.
4606 * Fixed the MOTD command in the client library to support
4607 the server argument in the command.
4609 * Added `nickname_len' argument to the silc_idlist_add_client
4610 in the server, as the `nickname' argument may be binary data
4613 * Added silc_idlist_get_channels to return all channels from
4616 * Implemented LIST command to the server. Affected file is
4619 * Implemented the LIST command to the client library and on the
4622 * Added [<user count>] argument to the LIST command reply.
4623 With private channels the user count is not shown.
4625 * Updated TODO and README.
4627 Tue Mar 20 21:05:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4629 * The client entry's data.registered must be TRUE even with
4630 global client entry on global client list. The data.registered
4631 is used to check whether the client is anymore in the network,
4632 for example with WHOWAS command so it must be valid.
4634 * Fixed the WHOWAS command in the server. It now actually works
4635 in router environment. Added function into silcd/command_reply.c
4636 silc_server_command_reply_whowas_save.
4638 * Added silc_idlist_purge function to the silcd/idlist.c
4639 to periodically purge the ID Cache.
4641 * Fixed INFO command in the server. It works now in router
4642 environment. Added <server name> argument to the INFO command
4643 reply. Updated the protocol specs.
4645 * Fixed minor bug in silc_idcache_purge to not purge if the
4646 expire value is zero.
4648 * Fixed various bugs in WHOIS and IDENTIFY command handling as
4649 they were buggy because of the WHOWAS information.
4651 * Fixed local command MSG to handle the async resolving of
4652 the remote client properly. It used to fail the first MSG.
4653 Affected file silc/local_command.c.
4655 * Added `data_len' field to SilcIDCache context.
4657 Tue Mar 20 16:29:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4659 * Update TODO. Todo in commands in the server.
4661 Tue Mar 20 15:45:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4663 * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
4664 used by routers as broadcast packet to inform other routers
4665 about the changed user mode.
4667 Implemented the notify handling in the server. Affected file is
4668 silcd/packet_receive.c. Added the function
4669 silc_server_send_notify_umode to the silcd/packet_send.[ch].
4671 * Added new generic Channel Payload and deprecated the New Channel
4672 Payload. The New Channel Payload is now the generic Channel
4675 * Added new argument `mode' to the silc_server_send_new_channel
4676 as it is required in the Channel Payload now.
4678 * Renamed the SilcChannelPayload to SilcChannelMessagePayload
4679 and created a new and real SilChannelPayload to represent the
4680 new generic Channel Payload. Implemented the encode/decode
4681 for Channel Payload. Affected file lib/silccore/silcchannel.[ch].
4683 * Added silc_server_get_client_channel_list to return the list
4684 of channels the client has joined for WHOIS command reply.
4685 Affected file silcd/server.[ch].
4687 * Implemented the channel list sending in the WHOIS command reply
4688 in server and in the client.
4690 Implemented the channel list displaying on the user interface
4691 as well. Affected file silc/client_ops.c.
4693 * Added silc_channel_payload_parse_list to parse list of Channel
4694 Payloads. It returns SilcDList list of SilcChannelPayloads.
4695 Client for example can use this function to parse the list of
4696 channels it receives in the WHOIS command reply. The caller
4697 must free the list by calling silc_channel_payload_list_free.
4698 Affected files lib/silccore/silcchannel.[ch].
4700 Mon Mar 19 21:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4702 * Added one new argument <user mode> to the WHOIS command reply
4703 to return the mode of the user in SILC. Updated the protocol
4706 Implemented it to the server and client.
4708 Mon Mar 19 18:43:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4710 * Fixed the mode printing on the user interface on joining.
4711 Affected file silc/client_ops.c.
4713 * Implemented the UMODE command and user modes in general to the
4714 client library and to the user interface.
4716 * Implemented the UMODE command to the server.
4718 * The server now sends UNKNOWN_COMMAND error status if client sends
4719 unknown command. Affected file silcd/command.c.
4721 * All server commands now handle the command identifier the right
4722 way when sending the command reply to the client. The client can
4723 use to identify the command replies with the identifier.
4725 Mon Mar 19 16:13:07 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4727 * Added silc_server_get_client_route to resolve the route to
4728 the client indicated by the client ID. Affected file is
4731 * Added silc_server_relay_packet as general function to relay
4732 packet to arbitrary destination. This deprecates functions
4733 like _send_private_message_key, _relay_notify etc. Affected
4734 file is silcd/packet_send.[ch].
4736 Removed silc_server_send_key_agreement,
4737 silc_server_send_private_message_key and
4738 silc_server_packet_relay_notify functions from the file
4739 silcd/packet_send.[ch].
4743 * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
4744 server. Affected file silcd/packet_receive.[ch].
4746 * Implemented the KILL command to the client. Implemented the
4747 SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
4748 Affected files lib/silcclient/command[_reply].c and
4749 lib/silcclient/client_notify.c. Implemented the KILL notify
4750 printing in the user inteface.
4752 * Fixed a lot silc_parse_nick memory leaks from the client
4753 library in the file lib/silcclient/command.c.
4755 * Changed the silc_server_send_notify_on_channels's `sender'
4756 argument from SilcSocketConnection to SilcClientEntry to
4757 check the sender as entry and not as connection object and not
4758 to send to the client provided as argument. The affected file
4759 is silcd/packet_send.[ch].
4761 * The notify packets that are destined directly to the client used
4762 to not to be processed by the server. Now changed that and the
4763 server processes all notify packets. After relaying the packet
4764 to the client the notify packet is processed in the server.
4766 * The silc_server_free_client_data now checks whether there is
4767 pending outgoing traffic for the client and purges the data to
4768 the network before removing the client entry.
4770 Sun Mar 18 21:02:47 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4772 * Added SILC_NOTIFY_TYPE_KILLED notify type. It is sent when
4773 an client is killed from the SILC Network. Updated the protocol
4776 Added new function silc_server_send_notify_killed to the
4777 silcd/packet_send.[ch].
4779 * Added function silc_server_packet_relay_notify to relay notify
4780 packets that are destined directly to a client. In this case
4781 the server does not process the notify packets but merely relays
4782 it to the client. Affected file silcd/packet_send.[ch].
4784 Added also silc_server_packet_process_relay_notify to check
4785 whereto relay the notify. Affected file is
4786 silcd/packet_receive.[ch].
4788 * Implemented the KILL command to the server.
4792 * Added the backup schema desgined last fall to the protocol
4793 specs for everyone to see. The specification is in the
4794 *-spec-xx.txt draft and the packet type definitions for the
4795 backup routers is in *-pp-xx.txt draft. Thusly, added also
4796 new packet type SILC_PACKET_CELL_ROUTERS.
4798 * A big security problem in the implementation discovered. The
4799 signoff of an client did not cause new channel key generation
4800 which it of course should've done. The channel keys must be
4801 always re-generated when client leaves (or signoffs) the channel.
4802 The silc_server_remove_from_channels funtion now handles
4803 the channel key re-generation.
4805 * Added `sender' argument to the silc_server_send_notify_on_channels
4806 to not to send the client provided as argument. Affected file
4807 silcd/packet_send.[ch].
4809 Fri Mar 16 15:52:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4811 * Implemented OPER and SILCOPER commands into the server and
4814 * Added silc_auth_verify and silc_auth_verify_data to verify
4815 the authentication directly from the authentication payload.
4816 It supports verifying both passphrase and public key based
4817 authentication. Affected file lib/silccore/silcauth.[ch].
4819 * Added `hash' field to the SilcIDListData structure. It is the
4820 hash negotiated in the SKE protocol. Affected file is
4823 * Slight redesigning of the SilcAuthPayload handling routines.
4824 Do not send SilcPKCS but SilcPublicKey as argument.
4826 * Implemented the public key authentication support to the
4827 serverconfig. The public key is loaded from the provided path
4828 and saved as authentication data to void * pointer. Thus,
4829 changed the unsigned char *auth_data to void *auth_data;
4831 * Fixed SHUTDOWN command to send the reply before the server
4832 is shutdown. :) Affected file silcd/command.c.
4834 * Fixed fatal bug in CONNECT command. The hostname was invalid
4835 memory and server crashed. Affected file silcd/command.c.
4837 * Fixed fatal bug in CLOSE command. The server_entry became
4838 invalid but was referenced later in the command. Affected file
4841 Thu Mar 15 12:46:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4843 * Fixed fatal bug in failure packet handling. Server ignored
4844 the failure and thus crashed when it came.
4848 Wed Mar 14 20:37:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4850 * Added new SILC_CF_LAG_STRICT command flag that strictly forces
4851 that the command may be executed only once in (about) 2 seconds.
4852 The old SILC_CF_LAG flag is same but allows command bursts up
4853 to five before limiting.
4855 Added the support for CF_LAG and CF_LAG_STRICT flags to the
4856 server code. Various commands now includes the CF_LAG_STRICT
4857 flag to disallow any kind of miss-use of the command.
4859 * Fixed the silc_buffer_unformat to not to allocate any data
4860 if the length of the data is zero. It used to allocate the
4861 length + 1. Affected file lib/silcutil/silcbuffmt.c.
4863 Wed Mar 14 16:10:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4865 * Changed the format of AdminConnection configuration section
4866 in the server. Added username of the admin to the format.
4867 Affected files silcd/serverconfig.[ch].
4869 Added silc_server_config_find_admin into silcd/serverconfig.[ch]
4870 to return admin configuration data by host, username and/or
4873 Wed Mar 14 13:18:16 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4875 * Implemented WHOWAS command to the server. Added the functions:
4877 silc_server_command_whowas_parse,
4878 silc_server_command_whowas_send_reply,
4879 silc_server_command_whowas_from_client and
4880 silc_server_command_whowas_from_server
4882 * Added <Client ID> argument to the WHOWAS command reply. Updated
4883 the protocol specs accordingly.
4885 * Implemented WHOWAS command and command_reply to the client
4888 Implemented the WHOWAS printing on the user interface.
4890 Tue Mar 13 22:17:34 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4892 * Added new argument to the WHOWAS command reply, the real name.
4893 It is an optional argument. Updated the protocol specs.
4895 * Added SilcIDCacheDestructor callback that is registered when
4896 the SilcIDCache is allocated. The callback is called when
4897 an cache entry in the ID Cache expires, or is purged from the
4898 cache. Added into lib/silccore/idcache.[ch].
4900 Added silc_idlist_client_destructor to the silcd/idlist.[ch]
4901 to destruct the client entries when the cache entry expires.
4902 Other ID Cache's in server and in the client library ignores
4905 * If the ID Cache entry's `expire' field is zero then the entry
4906 never expires. Added boolean `expire' argument to the
4907 silc_idcache_add function in the lib/silccore/idcache.[ch].
4908 If it is TRUE the default expiry value is used.
4910 * Added silc_server_free_client_data_timeout that is registered
4911 when client disconnects. By default for 5 minutes we preserve
4912 the client entry for history - for WHOWAS command.
4914 Tue Mar 13 13:26:18 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4916 * Added support to the server to enforce that commands are not
4917 executed more than once in 2 seconds. If server receives
4918 commands from client more frequently, timeout is registered
4919 to process the commands. Affected file silcd/command.c.
4920 Added new function silc_server_command_process_timeout.
4922 * Changed NICK_NOTIFY handling in client library to check that
4923 if the client's nickname was changed, so there is no need to
4924 resolve anything from the server.
4926 * Removed error printing from the WHOIS and IDENTIFY commands.
4927 If error occurs then it is ignored silently in the client library.
4928 The application, however, may map the received error to
4929 human readable error string. The application currently maps
4930 the NO_SUCH_NICKNAME error to string.
4932 * Made the command status message public to the application. Moved
4933 them from lib/silcclient/command_reply.c to
4934 lib/silcclient/command_reply.h. The application can map the
4935 received command status to the string with the
4936 silc_client_command_status_message function.
4938 * Added check to the server to check that client's ID is same
4939 as the Source ID in the packet the client sent. They must
4942 Tue Mar 13 12:49:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4944 * Added dist-bzip hook to the Makefile.am to make bzip2
4945 compressed distributions.
4947 Mon Mar 12 18:43:38 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4949 * Server now enforces the maximum length for the nickname and
4950 the channel as protocol specification dictates. 128 bytes for
4951 nickname and 256 bytes for channel name.
4953 * Moved the WHOIS printing to the application. The client libary
4954 does not print out the WHOIS information anymore, the application
4955 must do it. Renamed silc_client_command_reply_whois_print to
4956 the silc_client_command_reply_whois_save.
4958 The client's idle time is also sent to the application now, and
4959 the idle is shown on screen.
4961 * Added silc_client_command_reply_identify_save to save the
4962 received IDENTIFY entries.
4964 * Do not check for channel private keys in message sending and
4965 reception if the channel does not have the PRIVKEY mode set.
4966 Affected file lib/silclient/client_channel.c.
4968 Sun Mar 11 20:25:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4970 * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
4971 just surfaced after chaning the JOIN procedure.
4973 Sun Mar 11 14:59:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4975 * Added silc_client_get_clients_by_list to get client entries
4976 from Client ID list, that is returned for example by JOIN
4977 and USERS command replies. The application should use this
4978 function for example when JOIN command reply is received to
4979 resolve the clients already on the channel (library does not
4980 do that anymore as USERS command reply is not used in the JOIN
4981 procedure anymore). Affected files lib/silcclient/silcapi.h and
4982 lib/silcclient/idlist.c.
4984 * JOIN command reply and USERS command reply returns now SilcBuffer
4985 pointers instead of unsigned char pointers when returning
4986 the client list and mode list.
4988 * Added <Client ID> argument to the JOIN command reply, mainly
4989 for the server to identify for which client the command was
4990 originally sent. Updated protocol specs accordingly.
4992 * Added SilcDlist private_key pointer to the SilcChannelEntry
4993 in the client to support the channel private keys. Affected
4994 file is lib/silcclient/idlist.h.
4996 * Added SilcChannelPrivateKey argument to the function
4997 silc_client_send_channel_message so that application can choose
4998 to use specific private ke if it wants to. If it is not provided,
4999 the normal channel key is used, unless private keys are set.
5000 In this case the first (key that was added first) is used
5001 as the encryption key.
5003 * Implemented the support for channel private key handling.
5004 Implemented the following functions:
5006 silc_client_add_channel_private_key,
5007 silc_client_del_channel_private_keys,
5008 silc_client_del_channel_private_key,
5009 silc_client_list_channel_private_keys and
5010 silc_client_free_channel_private_keys
5012 Affected file lib/silcclient/client_channel.c.
5014 * Added the support for the private keys in the channel message
5015 sending and encryption and in the message reception and
5016 decryption. Affected funtions are
5017 silc_client_send_channel_message and silc_client_channel_message.
5019 Sat Mar 10 21:36:22 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5021 * Added SKE's key verify callback to the client library's
5022 KE protocol context. Affected files lib/silcclient/protocol.[ch].
5024 * Removed the statement that server (or router) must send USERS
5025 command reply when joining to the channel so that the client
5026 knows who are on the channel. Instead, the client list and
5027 client's mode list is now sent in the JOIN command reply to the
5028 client who joined channel. This is better solution.
5030 * Added function silc_server_get_users_on_channel and function
5031 silc_server_save_users_on_channel to the silcd/server.[ch].
5033 * Removed function silc_server_command_send_users from the
5036 * Do not show topic on the client library anymore. The topic is
5037 sent in the command reply notify to the application and the
5038 application must show the topic now.
5040 Sat Mar 10 00:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5042 * Added client searching by nickname hash into the IDENTIFY and
5043 WHOIS commands in the server as they were clearly missing from
5044 them. Affected file is silcd/command.c.
5046 * Fixed a bug in private message receiving in the client library.
5047 The remote ID was freed and it wasn't supposed, now it is
5050 Fri Mar 9 12:40:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5052 * Minor fix to the channel payload; allocate the data area, as it
5053 needs to be of specific length.
5055 * If the key agreement port is zero then the operating
5056 system will define the bound port. Affected files are
5057 lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
5059 * Added new function silc_channel_payload_decrypt into the file
5060 lib/silccore/silcchannel.[ch].
5062 * Moved the channel message etc, check from silc_packet_decrypt
5063 to applications. The library calls now a generic
5064 SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
5065 when the packet is either normal or special. This was done to
5066 allow more wide range of checking that was not allowed when
5067 the code was in library. Now applications can do virtually any
5068 checks to the packet and return to the library the decision how
5069 the packet should be processed. Affected files are
5070 lib/silccore/silcpacket.[ch].
5072 Added silc_server_packet_decrypt_check to the server and
5073 silc_client_packet_decrypt_check to the client library.
5075 * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
5076 to send with specified source and destination information.
5078 * Channel message delivery between routers was broken after the
5079 channel key distribution was fixed earlier. The channel key
5080 was used be to distributed to other routers as well which is not
5081 allowed by the protocol. Now this is fixed and channel keys
5082 really are cell specific and the channel message delivery between
5083 routers comply with the protocol specification.
5085 * Fixed various commands in server to check also the global list
5086 for the channel entry and not just the local list. The affected
5087 file silcd/command.c.
5089 Thu Mar 8 21:39:03 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5091 * Added assert()s to buffer formatting and unformatting routines
5092 to assert (if --enable-debug) when error occurs. Affected
5093 file: lib/silcutil/silcbuffmt.c.
5095 * Changed to auto-reconnect to check whether the remote host is
5096 router and register the re-connect timeout if it is. It used
5097 to check that whether we are normal server, but router must do
5098 auto-reconnect with another router as well. Affected file
5101 * Removed the [<key len>] option from CMODE command as the cipher
5102 name decides the key length, nowadays. See the defined ciphers
5103 from the protocol specification.
5105 * Added [<hmac>] option to the CMODE command to define the HMAC
5106 for the channel. Added SILC_CMODE_HMAC channel mode.
5108 * Added [<hmac>] option for the JOIN command so that user can
5109 select which HMAC is used to compute the MACs of the channel
5112 * Added Hmac field to the Channel Message Payload. The integrity
5113 of plaintext channel messages are now protected by computing
5114 MAC of the message and attaching the MAC to the payload. The
5115 MAC is encrypted. Now, it is clear that this causes some
5116 overhead to the size of the packet but rationale for this is that
5117 now the receiver can verify whether the channel message decrypted
5118 correctly and also when private keys are set for the channel the
5119 receiver can decrypt the packet with several keys and check from
5120 the MAC which key decrypted the message correctly.
5122 * Added silc_cipher_encrypt and silc_cipher_decrypt into the
5123 lib/silccrypt/silccipher.[ch].
5125 * Added silc_hash_len to return the digest length into the
5126 lib/silcrypt/silchash.[ch].
5128 * Rewrote parts of Silc Channel Payload interface in the
5129 lib/silccore/silcchannel.[ch]. The encode function now also
5130 encrypts the packet and parse function decrypts it.
5132 Wed Mar 7 20:58:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5134 * Fixed a minor formatting bug in the SKE's key material processing.
5135 It actually might have processed the keys wrong way resulting
5138 * Redefined the mandatory HMAC algorithms and added new algorithms.
5139 Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
5140 and hmac-md5 truncated to 96 bits. The mandatory is now
5141 hmac-sha1-96. Rest are optional (including the one that used
5142 to be mandatory). Rationale for this is that the truncated HMAC
5143 length is sufficient from security point of view and can actually
5144 make the attack against the HMAC harder. Also, the truncated
5145 HMAC causes less overhead to the packets. See the RFC2104 for
5148 * Added new [hmac] configuration section. The SKE used to use
5149 the hash names (md5 and sha1) in the SKE proposal as HMCAS which
5150 is of course wrong. The official names that must be proposed in
5151 the SKE are the ones defined in the protocol specification
5152 (hmac-sha1-96 for example). The user can configure any hmac
5153 using any hash function configured in the [hash] section. At
5154 least, the mandatory must be configured.
5156 Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
5158 * Added HMAC list to the SKE proposal list. It has now both
5159 hash algorithm list and HMAC list. This makes the protocol
5160 incompatible with previous versions. The SKE now seems to work
5161 the way it is supposed to work, for the first time actually.
5163 * Defined plain Hash algorithms to the protocol specification.
5166 Tue Mar 6 15:36:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5168 * Implemented support for key agreement packets into the server.
5169 Added functions silc_server_key_agreement and
5170 silc_server_send_key_agreement. Other than these functions,
5171 server has nothing to do with this packet.
5173 * Added support for private message key packets into the server.
5174 Added functions silc_server_private_message_key and
5175 silc_server_send_private_message_key.
5179 * Changed the silc_[client|server]_protocol_ke_set_keys to be
5180 called in the protocol's final callback instead in the END
5181 protocol state. This makes a little more sense and in the same
5182 time in client we can use the same protocol routines for normal
5183 key exchange and to key agreement packet handling as well.
5185 * Added to both client's and server's KE protocol context the
5186 SilcSKEKeyMaterial pointer to save the key material. We will
5187 bring the key material to the protocol's final callback by doing
5188 this. The final callback must free the key material.
5190 * Added SKE's packet_send callback into client's KE protocol
5191 context so that the caller can choose what packet sending function
5192 is used. This way we can use different packet sending when
5193 doing normal SKE when doing key agreement packet handling (in
5194 the key agreement packet handling we do not want to encrypt
5197 * Implemented the responder side of the key agreement routines
5198 in the client. The client can now bind to specified port and
5199 accept incoming key negotiation. The key material is passed
5200 to the application after the protocol is over.
5202 * Implemented the processing of incoming Key Agreement packet
5203 in the client. Added function silc_client_key_agreement to
5206 * Implemented the intiator side of the key agreement routines
5207 in the client. The client can now initiate key agreement with
5208 another remote client. The key material is passed to the
5209 application after the protocol is over.
5211 * Created client_keyagr.c to include all the key agreement
5214 * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
5215 SILC_TASK_CALLBACK except that it is not static.
5217 * Created client_notify.c and moved the Notify packet handling
5218 from the client.[ch] into that file.
5220 * Created client_prvmsg.c and moved all private message and
5221 private message key routines from the client.[ch] into that file.
5223 * Create client_channel.c and moved all channel message and
5224 channel private key routines from the client.[ch] into that file.
5226 * Changed silc_client_get_client_by_id_resolve to resolve with
5227 WHOIS command instead of IDENTIFY command, in the file
5228 lib/silclient/idlist.c.
5230 Mon Mar 5 18:39:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5232 * Implemented the SKE's responder side to the Client library.
5234 * When FAILURE is received to the protocol do not trust it
5235 blindly. Register a timeout to wait whether the remote closes
5236 the connection as it should do it, only after that process the
5237 actual failure. This was changed to both client and server.
5239 * Added client_internal.h to include some of the structures
5240 there instead of client.h in lib/silcclient/.
5242 * Added function silc_task_unregister_by_callback to unregister
5243 timeouts by the callback function.
5245 Sat Mar 3 19:15:43 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5247 * Some "Incomplete WHOIS info" errors has been appearing on the
5248 log files. Took away the entry->userinfo check from WHOIS
5249 reply sending. The entry->userinfo is now " " if client did not
5250 provide one. I thought this was fixed earlier but something
5251 is wrong still. Let's see if the error still appears.
5253 Wed Feb 28 20:56:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5255 * Fixed a minor bug in the login when the channel key is
5256 re-generated in the server. It used to generate the key in
5257 wrong order and thus caused problems in the channel traffic.
5259 * Fixed a minor bug in channel key distsribution after
5260 KICK command. The key was not sent to the router even though
5263 Tue Feb 27 20:24:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5265 * Added silc_ske_process_key_material_data as generic routine
5266 to process any key material as the SILC protocol dictates. The
5267 function is used by the actual SKE library but can be used by
5268 applications as well. This relates to the private message keys
5269 and the channel private keys since they must be processed the
5270 same way the normal SILC session keys. The protocol dictates
5271 this. Affected files: lib/silcske/silcske.[ch].
5273 Added also silc_ske_free_key_material to free the
5274 SilcSKEKeyMaterial structure.
5276 * Defined silc_cipher_set_key function to set the key for
5277 cipher without using the object's method function. The affected
5278 files: lib/silccrypt/silccipher.[ch].
5280 * Implemented silc silc_client_add_private_message_key,
5281 silc_client_add_private_message_key_ske,
5282 silc_client_del_private_message_key,
5283 silc_client_list_private_message_keys and
5284 silc_client_free_private_message_keys functions in the
5287 Added functions silc_client_send_private_message_key to send
5288 the Private Message Key payload and silc_client_private_message_key
5289 to handle incoming Private Message Key payload.
5291 * Added Cipher field to the Private Message Key payload to set
5292 the cipher to be used. If ignored, the default cipher defined
5293 in the SILC protocol (aes-256-cbc) is used.
5295 Tue Feb 27 13:30:52 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5297 * Removed lib/silcclient/ops.h file.
5299 Redefined parts of the SILC Client Library API. Created new
5300 file silcapi.h that deprecates the ops.h file and defines the
5301 published Client Library API. Defined also private message key
5302 API and channel private key API into the file.
5304 This is the file that the application must include from the
5305 SILC Client Library. Other files need not be included by
5306 the application anymore.
5308 * Added new key_agreement client operation callback and also
5309 defined the Key Agreement library API for the application.
5311 Tue Feb 27 11:28:31 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5313 * Added new packet type: SILC_PACKET_KEY_AGREEMENT. This packet
5314 is used by clients to request key negotiation between another
5315 client in the SILC network. If the negotiation is started it
5316 is performed using the SKE protocol. The result of the
5317 negotiation, the secret key material, can be used for example
5318 as private message key.
5320 Implemented the Key Agreement payload into the files
5321 lib/silccore/silauth.[ch].
5323 Mon Feb 26 12:13:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5325 * Redefined ciphers for the SILC protocol. Added some new ciphers
5326 and defined the key lengths for the algorithms. Changed the
5327 code accordingly. The default key length is now 256 bits.
5329 * Fixed SKE key distribution function silc_ske_process_key_material
5330 when the key length is more than 128 bits. The default key
5331 length in SILC is now 256 bits.
5333 * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
5334 to indicate unsupported algorithm.
5336 * Renamed rijndael.c to aes.c and all functions as well.
5338 * Fixed a long standing channel key setting bug in client library.
5339 Weird that it has never surfaced before.
5341 * Fixed bug in channel deletion. If the entire channel is removed
5342 then it must also delete the references of the channel entry
5343 from the client's channel list as the client's channel entry and
5344 the channel's client entry share same memory.
5346 Sun Feb 25 20:47:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5348 * Implemented CONNECT and SHUTDOWN commands in the client.
5350 * Implemented CLOSE command to the client.
5352 * Added the function silc_idlist_find_server_by_name into the
5353 files silcd/idlist.[ch].
5355 Added the function silc_idlist_find_server_by_conn into the
5356 files silcd/idlist.[ch].
5358 Sat Feb 24 23:45:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5360 * DIE command was renamed to SHUTDOWN. Updated the both code
5363 * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
5364 SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
5366 * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
5369 * Added function silc_server_create_connection function to create
5370 connection to remote router. My server implementation actually
5371 does not allow router to connect to normal server (it expects
5372 that normal server always initiates the connection to the router)
5373 so the CONNECT command is only good for connecting to another
5376 Sat Feb 24 16:03:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5378 * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
5379 or some other client was kicked from the channel.
5381 Implemented the handling of the notify type to both client
5384 Implemented silc_server_send_notify_kicked to send the KICKED
5385 notify. It is used to send it to the server's primary router.
5387 * Implemented the KICK command into server and client.
5389 * Added `query' argument to the silc_idlist_get_client function
5390 to indicate whether to query the client from server or not if
5393 * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
5394 to indicate that the client is not channel founder.
5398 Sat Feb 24 00:00:55 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5400 * Removed the rng context from SilcPacketContext structure and
5401 changed that the packet routine uses the Global RNG API.
5403 Fri Feb 23 11:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5405 * Added support for quit message that client can "leave" on the
5406 channel when it quits the SILC. It is ditributed inside the
5407 SILC_NOTIFY_TYPE_SIGNOFF notify type.
5409 Added silc_server_free_client_data that will take the
5410 signoff message as argument.
5412 * Changed SKE routines to use the silc_pkcs_sign/verify routines.
5414 Thu Feb 22 23:05:36 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5416 * Updated parts of the protocol specification to keep it up
5419 Thu Feb 22 15:08:20 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5421 * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
5422 payloads in one packet.
5424 * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
5425 NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST. List packets
5426 use now the new List flag.
5428 * Also deprecated the following packet types: REPLACE_ID,
5429 NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
5431 * Added list support for Notify packet in server.
5433 * Added silc_server_send_notify_channel_change to send the
5434 CHANNEL_CHANGE notify type to replace channel ID's. Deprecates
5435 the silc_server_send_replace_id.
5437 * Added silc_server_send_notify_nick_change to send the
5438 NICK_CHANGE notify type. Deprecates the function
5439 silc_server_send_replace_id.
5441 * Added silc_server_send_notify_join to send the JOIN notify type.
5442 Deprecates the function silc_server_send_new_channel_user.
5444 * Added silc_server_send_notify_leave to send LEAVE notify type.
5445 Deprecates the function silc_server_send_remove_channel_user.
5447 * Added silc_server_send_notify_cmode and
5448 silc_server_send_notify_cumode to send CMODE and CUMODE notify
5449 types. Deprecates the silc_server_send_set_mode function.
5451 * Added SERVER_SIGNOFF notify type to indicate that server has
5452 quit. This means that all clients on the channel from that
5453 server will drop. This can be also used when netsplit happens.
5455 Deprecated REMOVE_ID packet type since it is not needed anymore
5458 Added silc_server_send_notify_server_signoff to send the
5459 SERVER_SIGNOFF notify type. Deprecates the function
5460 silc_server_send_remove_id.
5462 Added also silc_server_send_notify_signoff to send the
5463 SIGNOFF notify type.
5465 * Employed the PKCS #1. It is the mandatory way to do RSA in the
5466 SILC protocol from this day on. Changed the protocol
5467 specification as well.
5469 * Added silc_server_send_notify_topic_set to send TOPIC_SET
5470 notify type. It is used between routers to notify about
5471 topic changes on a channel.
5473 * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
5476 * Partly updated the protocol specification to comply with the
5477 changes now made. It is still though a bit outdated.
5479 * The JOIN notify type now takes one extra argument <Channel ID>.
5480 The packet used to be destined to the channel but now the
5481 JOIN type may be sent as list thus it is impossible to
5482 destine it to any specific channel. By adding this argument
5483 it is again possible.
5485 Wed Feb 21 22:39:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5487 * Added CREDITS file. The CHANGES and CREDITS file will appear
5488 in the distribution as well.
5490 Wed Feb 21 14:17:04 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5492 * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
5493 types in the server's silcd/packet_receive.c.
5495 * Implemented CMODE and CUMODE to work in router environment.
5497 * Fixed minor encoding and decoding buglet from the
5498 lib/silccore/silcmode.c.
5500 * Fixed buffer overflow from lib/silcclient/command.c in USERS
5503 Wed Feb 21 12:44:00 EET 2001 Mika Boström <bostik@lut.fi>
5505 * Changed all SilcConfigServer* and silc_config_server* to
5506 SilcServerConfig* and silc_server_config*, respectively.
5509 Wed Feb 21 00:10:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5511 * Associated the ID (client or server ID) to the Authentication
5512 Payload to avoid any possibility of forging. Updated the
5513 protocol specification and the code accordingly.
5515 Tue Feb 20 14:14:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5517 * The RSA key length is now save to the RsaKey context in the
5518 key generation process in lib/silccrypt/rsa.c. The key length
5519 is now used to figure out the maximum size of the block allowed
5520 to be encrypted/signed.
5522 * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch]. It
5523 is equivalent to the silc_mp_mp2bin but does not allocate any
5526 * Changed silc_mp_mp2bin API to take length argument. If it is
5527 non-zero then the buffer is allocated that large. If zero, then
5528 the size is approximated using silc_mp_sizeinbase, which however
5531 * Created Global RNG API which is global RNG that application can
5532 initialize. After initializing, any routine anywhere in the
5533 code (including library) can use RNG without allocating a new
5534 RNG object. This was done to allow this sort of use of the
5535 RNG in code that has no chance to allocate RNG object. All
5536 applications currently allocate this and many routines in the
5537 library use this. Affected file lib/silccrypt/silcrng.[ch].
5539 * Removed the RNG kludge from lib/silcmath/primegen.c and changed
5540 it to use the Global RNG API.
5542 * Defined Authentication Payload into protocol specification that
5543 is used during SILC session to authenticate entities. It is
5544 used for example by client to authenticate itself to the server
5545 to obtain server operator privileges.
5547 Implemented this payload into the lib/silccore/silcauth.[ch].
5548 Implemented also routines for public key based authentication
5549 as the new protocol specification dictates.
5551 Moved definitions of different authentication methods from
5552 lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
5554 * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
5555 silc_pkcs_verify and silc_pkcs_sign_with_hash and
5556 silc_pkcs_verify_with_hash functions into the file
5557 lib/silccrypt/silcpkcs.[ch].
5559 Mon Feb 19 19:59:28 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5561 * The client entry's userinfo pointer must be always valid.
5562 Otherwise the [<unknown>] bug will surface beacuse the WHOIS
5563 will fail since it requires the userinfo. Now, the userinfo
5564 is allocated as "" if actual userinfo does not exist. Actually,
5565 it must exist and it is totally Ok to drop client connections
5566 that does not announce the userinfo. However, we will make
5567 this workaround for now.
5569 * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
5570 to return the remote port by socket.
5572 Mon Feb 19 14:26:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5574 * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
5575 SILC_SERVER_PENDING_EXEC and added an new macro
5576 SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
5577 data or when error occurs while processing the pending command.
5579 Added new argument `destructor' into silc_server_command_pending
5580 and to the SilcServerCommandPending object. This destructor is
5581 now called after calling the pending callback or if error occurs
5582 immediately. If error occurs the actual pending callback won't
5583 be called at all - only the destructor. The destructor may be
5584 NULL if destructor is not needed.
5586 All this applies for client library code as well. Similar
5587 changes were made there as well for the pending commands.
5589 In the client, the application must now allocate the
5590 SilcClientCommandContext with the silc_client_command_alloc
5593 * Added reference counter to the SilcServerCommandContext. Added
5594 function silc_server_command_alloc and silc_server_command_dup
5597 Same type of functions added to the client library for the same
5600 * Removed the cmd_ident from IDListData away since it is now
5601 global for all connections. It is the command identifier used
5602 in command sending and with pending commands. The affected file
5605 * Added reference counter to the SilcSocketConnection objecet to
5606 indicate the usage count of the object. The object won't be
5607 freed untill the reference counter hits zero. Currently only
5608 server uses this, and client ignores it. The client must be
5609 set to use this too later. The affected files are
5610 lib/silccore/silcsockconn.[ch]. Added also the function
5611 silc_socket_dup to increase the reference counter.
5613 This was mainly added because it is possible that the socket
5614 is removed underneath of pending command or other async
5615 operation. Now it won't be free'd and proper DISCONNECTING
5616 flags, etc. can be set to avoid sending data to connection that
5617 is not valid anymore.
5619 * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
5620 the connection. After that it sets SILC_SET_DISCONNECTED.
5621 It is, however, possible that the socket data is not still freed.
5622 The silc_server_packet_process now checks that data is not
5623 read or written to connection that is DISCONNECTED. The socket
5624 get's freed when the reference counter hits zero.
5626 Mon Feb 19 00:50:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5628 * Changed the client operation API: channel_message operation's
5629 `sender' is now the client entry of the sender, not the nickname
5630 and the `channel' is the channel entry, not the channel name.
5632 In the private_message operation the `sender' is now also the
5633 client entry of the sender not the nickname.
5635 Affected file is lib/silcclient/ops.h and all applications
5636 using the client operations.
5638 Sat Feb 17 22:11:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5640 * Moved the calling of ops->connect() from connect_to_server_final
5641 into receive_new_id functin since that is the point when the
5642 client is actually allowed to send traffic to network. The
5643 affected file is lib/silcclient/client.c.
5645 Sat Feb 17 13:15:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5647 * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
5648 NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
5649 (if needs broadcasting) instead of broadcasting the packets one
5650 by one which would make a burst in the network traffic.
5652 * Added `broadcast' argument to the functions in silcd/server.[ch]
5653 silc_server_create_new_channel[_with_id] to indicate whether
5654 to send New Channel packet to primary router.
5656 Sat Feb 17 01:06:44 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5658 * Added new function into the silcd/server.[ch] files:
5659 silc_server_create_new_channel_with_id to create new channel with
5660 already existing Channel ID.
5662 * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
5663 lib/silccore/silcpacket.h. This packet is used t send list of
5664 Set Mode payloads inside one packet. Server uses this to set
5665 the modes for the channels and clients on those channels, that it
5666 announced to the router when it connected to it. The protocol
5667 specification has been updated accordingly.
5669 * The silc_server_new_channel did not handle the packet coming
5670 from normal server as it normally does not send that. However,
5671 when it announces its channels it does send it. Implemented
5672 the support for that.
5674 * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
5675 into the file lib/silccore/id.h.
5677 Fri Feb 16 23:57:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5679 * Fixed memory leaks in the functions silc_idlist_del_client,
5680 silc_idlist_del_channel and silc_idlist_del_server in the file
5681 silcd/idlist.c. All of those leaked like a sieve.
5683 * Fixed some small memory leaks in the client's function
5684 silc_client_notify_by_server.
5686 * Added functions into silcd/server.c: silc_server_announce_clients,
5687 silc_server_announce_channels and silc_server_announce_server.
5688 These functions are used by normal and router server to announce
5689 to its primary router about clients, channels and servers (when
5690 router) that we own. This is done after we've connected to the
5693 These functions effectively implements the following packet types:
5694 SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
5695 and SILC_PACKET_NEW_ID_LIST.
5697 * Added new functions into the silcd/packet_receive.[ch]:
5698 silc_server_new_id_list, silc_server_new_channel_list and
5699 silc_server_new_channel_user_list to handle the incoming
5700 NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
5702 * Added support of changing Channel ID in the function
5703 silc_server_replace_id. If the server that announces a channel
5704 to the router already exists in the router (with same name but
5705 with different Channel ID), router is responsible to send
5706 Replace ID packet to the server and force the server to change
5707 the Channel ID to the one router has.
5709 * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
5710 client that the Channel ID has been changed by the router. The
5711 normal server sends this to the client. Client must start using
5712 the new Channel ID as the channel's ID.
5714 Implemented handling of this new type into lib/silcclient/client.c
5715 into the function silc_client_notify_by_server.
5717 * Added new function silc_idlist_replace_channel_id into the files
5718 silcd/idlist.[ch] to replace the Channel ID.
5720 Fri Feb 16 14:14:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5722 * Call silc_server_command_identify_check always when processing
5723 the IDENTIFY command in silcd/command.c
5725 Thu Feb 15 20:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5727 * Added new packet type SILC_PACKET_HEARTBEAT that is used to
5728 send keepalive packets. The packet can be sent by clients,
5729 servers and routers.
5731 Added function silc_socket_set_heartbeat into the file
5732 lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
5733 If not set, the heartbeat is not performed. The actual
5734 heartbeat is implemented in the low level socket connection
5735 library. However, application is responsible of actually
5738 Added silc_server_send_heartbeat to send the actual heartbeat
5739 packet into silcd/packet_send.[ch]. Server now performs
5740 keepalive with all connections.
5742 * Added silc_task_get_first function into lib/silcutil/silctask.c
5743 to return the timeout task with shortest timeout. There was a bug
5744 in task unregistration that caused problems. TODO has been
5745 updated to include that task system must be rewritten.
5747 * The client library will now resolve the client information when
5748 receiving JOIN notify from server for client that we know but
5749 have incomplete information.
5751 * Rewrote parts of silc_server_remove_from_channels and
5752 silc_server_remove_from_one_channel as they did not remove the
5753 channel in some circumstances even though they should've.
5755 * Encryption problem encountered in server:
5757 The LEAVE command used to send the Channel Key packet to the
5758 router immediately after generating it. However, the code
5759 had earlier sent Remove Channel user packet but not immediately,
5760 ie. it was put to queue. The order of packets in the router
5761 was that Channel Key packet was first and Remove Channel User
5762 packet was second, even though they were encrypted in the
5763 reverse order. For this reason, MAC check failed. Now, this
5764 is fixed by not sending the Channel Key packet immediately but
5765 putting it to queue. However, this is more fundamental problem:
5766 packets that are in queue should actually not be encrypted
5767 because packets that are sent immediately gets encrypted
5768 actually with wrong IV (and thus MAC check fails). So, packets
5769 that are in queue should be encrypted when they are sent to
5770 the wire and not when they put to the queue.
5772 However, the problem is that the current system has not been
5773 designed to work that way. Instead, the packet is encrypted
5774 as soon as possible and left to the queue. The queue is then
5775 just purged into wire. There won't be any fixes for this
5776 any time soon. So, the current semantic for packet sending
5779 o If you send packet to remote host and do not force the send
5780 (the packet will be in queue) then all subsequent packets to the
5781 same remote host must also be put to the queue. Only after the
5782 queue has been purged is it safe again to force the packet
5785 o If you send all packets immediately then it safe to send
5786 any of subsequent packets through the queue, however, after
5787 the first packet is put to queue then any subsequent packets
5788 must also be put to the queue.
5790 Follow these rules and everything works fine.
5792 Thu Feb 15 14:24:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5794 * Added new function silc_server_remove_clients_by_server to
5795 remove all client entries from ID list when the server connection
5796 is lost. In this case it is also important to invalidate all
5797 client entires as they hold the invalid server entry. This
5798 fixes fatal bug when server has lost connection and will reconnect
5801 Wed Feb 14 16:03:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5803 * Made some sanity checks to silc_server_daemonise like to check
5804 whether the requested user and group actually exists.
5806 * Added sanity check to SKE's silc_ske_responder_finish to check
5807 that the public and private key actually is valid.
5809 * Invalidate the client's nickname when receiving Replace ID
5810 packet and the Client ID is being replaced. This means that the
5811 server will query the nickname if someone needs it (client)
5814 * Sort the ID Cache in client library when the ID Cache data
5815 has changed (needs sorting).
5817 * Do not allow for SILC client to create several connections to
5818 several servers. The client does not support windows right now
5819 and generating multiple connections causes weird behaviour.
5821 Irssi-silc client does support windows and can handle several
5822 connections without problems, see: www.irssi.org and SILC plugin.
5824 * Fixed some places where client was added to the IDList. The
5825 rule of thumb is following (in order to get everything right):
5826 If the client is directly connected local client then the
5827 `connection' argument must be set and `router' argument must be
5828 NULL to silc_idlist_add_client function. If the client is not
5829 directly connected client then the `router' argument must
5830 bet set and the `connection' argument must be NULL to the
5831 silc_idlist_add_client function.
5833 * The funtion silc_server_packet_send_local_channel actually did
5834 not check whether the client was locally connected or not. It
5835 does that now. Fixed a bug related to LEAVE command.
5837 * Fixed Remove Channel User payload parsing bug in server's
5838 silcd/packet_receive.c. Fixed a bug related to LEAVE command.
5840 * The server's silc_server_save_channel_key now checks also the
5841 global ID list for the channel as it might not be in the local
5842 list. Fixed a bug related to LEAVE command.
5844 * Is this the end of the [<unknown>] buglet that has been lurking
5845 around for a long time? A little for loop fix in server's
5846 silc_server_command_whois_parse that is used by both IDENTIFY
5847 and WHOIS command. At least, this was a clear bug and a cause
5848 of one type of [<unknown>] buglet.
5850 * WHOIS and IDENTIFY commands call the function
5851 silc_server_command_[whois/identify]_check function even if
5852 we are not router server.
5854 Tue Feb 13 19:55:59 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5856 * Added --with-gmp configuration option. If set the GMP
5857 is always compiled in the SILC source tree. If not set then
5858 it is checked whether the system has the GMP3 installed. If
5859 it has then the GMP won't be compiled (the system's headers
5860 and library is used), if it doesn't have it then the GMP is
5861 compiled in the SILC source tree.
5863 Mon Feb 12 11:20:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5865 * Changed RSA private exponent generation to what PKCS #1
5866 suggests. We try to find the smallest possible d by doing
5867 modinv(e, lcm(phi)) instead of modinv(e, phi). Note: this is
5868 not security fix but optimization.
5870 Sun Feb 11 18:19:51 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5872 * Added new config entry [Identity] to fork the server and run
5873 it as specific user and group. A patch from Bostik.
5875 * Imported Dotconf configuration library into lib/dotconf.
5876 This will be used to create the SILC configuration files later.
5877 It will appear in the distsribution after this commit.
5879 Sat Feb 10 21:13:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5881 * A big code auditing weekend happening. Auditing code for
5882 obvious mistakes, bugs and errors. Also, removing any code
5885 Removed files for being obsolete:
5887 o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
5888 inline in the file lib/silcutil/silcbuffer.h)
5890 o lib/silcutil/silcbufutil.c (the header has inline versions)
5892 Changed code to fix possible error conditions:
5894 o The buffer formatting routines now check that the destination
5895 buffer really has enough space to add the data. This applies for
5896 both buffer formatting and unformatting
5897 (lib/silcutil/silcbuffmt.[ch]). Also, the entire buffer
5898 unformatting was changed to accomodate following rules:
5899 XXX_*STRING_ALLOC will allocate space for the data into the pointer
5900 sent to the function while XXX_*STRING will not allocate or copy
5901 the data into the buffer. Instead it sets the pointer from the
5902 buffer into the pointer sent as argument (XXX_*STRING used to
5903 require that the pointer must be allocated already). This change
5904 makes this whole thing a bit more consistent and more optimized
5905 (note that the data returned in the unformatting with XXX_*STRING
5906 must not be freed now). The routines return now -1 on error.
5908 o Tried to find all code that use buffer_format and buffer_unformat
5909 and added return value checking to prevent formatting and
5910 especially unformatting errors and possible subsequent fatal
5913 o Changed ske->x and ske->KEY to mallocated pointers in
5914 lib/silcske/silcske.h. Fixed possible data and memory leak.
5916 o Added return value checking to all *_parse* functions. Fixed
5917 many memory leaks as well.
5919 o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
5920 so that buffer overflows would not happen. All code now also
5921 checks the return value as it can fail.
5923 Mon Feb 5 20:08:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5925 * Added reconnection support to server if the normal server looses
5926 its connection to the router (for example if router is rebooted).
5927 The server performs normal reconnection strategy implemented
5928 to the server. Affected file silcd/server.c.
5930 Sun Feb 4 13:18:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5932 * Added new packet type SILC_PACKET_SET_MODE that is used to
5933 distribute the information about changed modes (for clients,
5934 channels and clients channel modes) to all routers in the
5935 network. Updated the protocol specification accordingly.
5937 Added functions into silcd/packet_send.c and
5938 silcd/packet_receive.c: silc_server_send_set_mode,
5939 silc_server_set_mode.
5941 Added new files silcmode.[ch] into lib/silccore that implements
5942 the encoding and decoding of Set Mode Payload. Added new type
5943 SilcSetModePayload. Moved the definitions of different modes
5944 from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
5946 Sat Feb 3 15:44:54 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5948 * Oops, a little mistake in server's connection authentication
5949 protocol. The protocol is not ended with FAILURE but with
5950 SUCCESS if the authentication is Ok. :) Affected file is
5953 * Implemented NICK_CHANGE notify handling in server in the file
5954 silcd/packet_receive.c The NICK_CHANGE notify is distributed to
5955 the local clients on the channel. After the changing nickname
5956 in router environment snhould work and the [<unknown>] nickname
5957 should appear no more.
5959 The silc_server_replace_id function that receives the Replace ID
5960 payload now sends the NICK_CHANGE notify type also in the file
5961 silcd/packet_receive.c
5963 * Changed WHOIS and IDENTIFY command to support the maximum amount
5964 of arguments defined in protocol specs (3328 arguments). This
5965 fixed a bug that caused problems when there were more than three
5968 Fri Feb 2 11:42:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5970 * Added extra parameter, command identifier, to the
5971 silc_client_send_command so that explicit command identifier
5974 Changed that ID list routines uses specific command identifier
5975 when sending WHOIS/IDENTIFY requests to the server so that they
5976 can be identified when the reply comes back.
5978 Affected files lib/silcclient/command.[ch],
5979 lib/silcclient/client.c and lib/silcclient/idlist.[ch].
5981 * Added `sender' argument to silc_server_packet_send_to_channel
5982 to indicaet the sender who originally sent the packet to us
5983 that we are now re-sending. Ignored if NULL. Affected file
5984 silcd/packet_send.[ch].
5986 * Added some server statistics support in silcd/server_internal.h
5987 SilcServerStatistics structure and around the server code. Also
5988 send some nice statistics information when client is connecting
5991 Thu Feb 1 23:31:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5993 * Fixed channel ID decoding in server's JOIN command reply in
5994 silcd/command_reply.c
5996 * Fixed braodcasting of replace ID payload to not to send it if
5997 we are standalone server in silcd/packet_receive.c.
5999 * Fixed all channel message sending routines to not to send
6000 packets to clients that has router set, since they are routed
6001 separately in the same function earlier. Affects file
6002 silcd/packet_send.c and all channel packet sending functions.
6004 * In USERS reply, res_argv[i] are not allocated, the table
6005 is allocated. Thus changed that free the table, not its
6008 * In server's whois_check and identify_check if the client is
6009 locally connected do not send any WHOIS commands - they are not
6012 Thu Feb 1 21:32:27 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6014 * Fixed some minor bugs in client when sending WHOIS command. The
6015 arguments was in wrong order.
6017 * Removed statis function add_to_channel from server in
6018 silcd/command.c that was previously used with the joining but
6021 * Tested USERS command in router environment successfully with two
6022 routers, two servers and two clients.
6024 Thu Feb 1 00:54:26 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6026 * Reorganized the USERS command and command reply in client library
6027 in lib/silcclient/command.c and lib/silcclient/command_reply.c.
6028 When the command is given by user we register a pending command
6029 callback that will reprocess the command after the reply has been
6030 received from the server. When reprocessing the packet we then
6031 display the information. Thus, the USERS information is displayed
6032 now in the command callback instead of in the command reply
6033 callback. The processing of the command is same as previously
6034 when server has sent the command reply in the JOINing process.
6036 * Added to USERS command in silcd/command_reply.c to join the client,
6037 we didn't use to know about, to the channel after we've created
6038 a client entry for it. Also, for clienet we did know already still
6039 check whether it is on the channel or not and add it if not.
6041 * Removed silc_server_command_join_notify as the function and its
6044 Tue Jan 30 22:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6046 * Changed the client's pending command handling to the same as the
6047 server's pending command handling. It is also now possible to
6048 execute command reply functions from other command reply
6049 function as the function callbacks for commands and command
6050 replies are one and same. The pending commands are not static
6051 list anymore, it is mallocated SilcDList in lib/silcclient/client.h
6052 in client connection context. Thus, pending commands are server
6053 connection specific as it is convenient.
6055 Changed the function silc_client_command_pending and
6056 silc_client_command_pending_del and added new function
6057 silc_client_command_pending_check. Removed the
6058 SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
6061 * Added cmd_ident, current command identifier, to the client
6062 connection context in lib/silcclient/client.h to keep track on
6063 command identifiers used in command sending. Client's command reply
6064 function handling now supports the mandatory command identifiers.
6066 * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
6067 funtions in client to fully support pending command callbacks.
6069 * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
6070 as one of the arguments to the application in the command reply
6073 * NOTE: The FORWARDED flag is depracated. It used to be depracated
6074 before first releasing SILC but came back. Now it is removed again
6075 and should come back nomore. The FORWARDED flag was used only
6076 by the JOINing procedure by forwarding the command packet to router.
6077 Now, the JOINing procedure has been changed to more generic (due
6078 to various router environment issues) and FORWARDED is not needed
6079 anymore for anything. The protocol specification is yet to be
6082 Now, removed silc_server_packet_forward from server and the flag
6083 SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
6085 Tue Jan 30 00:05:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6087 * Renamed NAMES command to USERS command. The NAMES was named that
6088 due to historical reasons. Now it is renamed. Also, rewrote
6089 parts of the USERS command. The nickname list is not sent anymore
6090 by the server. Only Client ID and mode lists are sent in the USERS
6091 command. Changed this also to the protocol specification.
6093 The client now resolves the names and stuff after it receives
6094 the USERS list from the server when joining to the channel.
6096 * WHOIS and IDENTIFY commands has been changed to support multiple
6097 Client ID's per command. One can now search for multiple users
6098 in the network by sending only one WHOIS or IDENTIFY command.
6099 Changed the code and the protocol specifications.
6101 * Removed silc_server_command_identify_parse and changed that IDENTIFY
6102 uses silc_server_command_whois_parse to parse the request. */
6104 * If normal server, do not parse the WHOIS and IDENTIFY requests
6105 before sending it to the router. Saves some time.
6107 Sun Jan 28 16:19:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6109 * Fixed JOIN command on client library. Wrong number of arguments
6110 used to crash the client.
6112 * Added silc_server_channel_has_global function to check whether
6113 channel has global users or not.
6115 * Added silc_server_channel_has_local function to check whether channel
6116 has locally connected clients on the channel.
6118 * The silc_server_remove_from_one_channel now checks whether the
6119 channel has global users or not after given client was removed from
6120 the channel. It also checks whether the channel has local clients
6121 on the channel anymore. If it does not have then the channel entry
6122 is removed as it is not needed anymore.
6124 * The silc_server_notify now checks on JOIN notify whether the joining
6125 client is one of locally connected or global. If it is global then
6126 the channel has now global users on the channel and that is marked
6127 to the channel entry. Also, it now saves the global client to
6128 global list who is joining and JOINs it to the channel. This is
6129 for normal server, that is.
6131 Changed silc_server_send_notify_on_channel,
6132 silc_server_packet_relay_to_channel and
6133 silc_server_packet_send_to_channel check if we are normal server
6134 and client has router set (ie. global client) do not send the
6135 message to that client, as it is already routed to our router.
6137 * Implemented LEAVE notify type handling in silc_server_notify
6140 * Tested LEAVE command in router environment successfully. Tested
6141 with two routers, two servers and two clients.
6145 * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
6147 * Implemented SIGNOFF notify type handling in silc_server_notify
6150 * silc_server_remove_id now removes the client entry from all channels
6151 it has joined and thusly sends SIGNOFF notify type.
6153 * Rewrote the NAMES list generation in server by removing two excess
6154 loops. The lists are created now inside one loop.
6156 Sat Jan 27 22:34:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6158 * silc_server_remove_channel_user checks now also global list
6159 for channel and client.
6161 * silc_server_new_channel_user checks now both local and global
6162 list for channel and client. Fixed a bug in client id decoding.
6163 Used to decode wrong buffer.
6165 * silc_server_channel_message checks now both local and global
6166 list for channel entry.
6168 * Tested channel joining (hence JOIN) in router environment
6169 successfully. Tested with two routers, two servers and two
6172 * Tested channel message sending in router environment successfully.
6174 Thu Jan 11 03:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
6176 * Added silc_server_save_channel_key into server.[ch] to save the
6177 received channel key in Channel Key payload processing. It is
6178 also used in JOIN command reply handling.
6180 Equivalent function silc_client_save_channel_key added into
6181 client.[ch] into client library.
6183 * Changed JOIN command reply to send information whether the channel
6184 was created or not (is existing already) and the channel key
6185 payload. Changed protocol specs accordingly.
6187 * Fixed bugs in WHOIS and IDENTIFY command reply sending when
6188 the request was sent by ID and not by nickname. Crashed on
6191 Sat Dec 23 21:55:07 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6193 * Fixed a bug in Client library. IDENTIFY and WHOIS reply functions
6194 now correctly save the received data.
6196 * silc_server_free_sock_user_data now notifies routers in the
6197 network about entities leaving the network.
6199 At the same time implemented functions silc_server_remove_id
6200 and silc_server_send_remove_id to receive and send REMOVE_ID
6201 packets. The packet is used to notify routers in the network
6202 about leaving entities. The ID removed will become invalid in
6205 * Added function silc_idlist_del_server into server. Removes and
6206 free's server entry from ID list.
6208 * silc_server_private_message function now checks, if we are router,
6209 that the destination ID really is valid ID, naturally.
6211 * In router when NEW_ID packet is received (for new client) the
6212 hash of the Client ID is saved in the ID Cache but the
6213 client->nickname is set to NULL, instead of putting the hash
6216 IDENTIFY command now also checks that client->nickname must be
6217 valid. If it is not if will request the data from the server who
6218 owns the client. Added new function
6219 silc_server_command_identify_check.
6221 * Added silc_command_set_command into lib/silccore/silcommand.[ch]
6222 to set the command to already allocated Command Payload.
6224 * Tested private message sending in router environment with two
6225 routers, two servers and two clients. Fixed minor bugs and now
6228 * Fixed segfault from client's NAMES command. Used to crash if
6231 * Forwarded packets must not be routed even if it is not destined
6232 to the receiver. Changed server code comply with this.
6234 Sun Dec 17 14:40:08 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6236 * Added `require_reverse_mapping' boolean value to ServerParams
6237 structure. If TRUE (not default) the server will require that
6238 the connecting host has fully qualified domain name.
6240 If the reverse mapping is not required and hostname could not be
6241 found the IP address is used as hostname.
6243 Sat Dec 16 17:39:54 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6245 * Implemented version string checking to both client and server.
6246 The check is incomplete currently due to the abnormal version
6247 strings used in development version of SILC.
6249 * Changed all command functions in server to use the new
6252 Fri Dec 15 15:55:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6254 * Changed char *data to unsigned char *data in ID Cache system to
6255 support binary data as ID Cache data. Changed code to support
6256 binary data in lib/silccore/idcache.c.
6258 * Renamed silc_server_packet_relay_command_reply to
6259 silc_server_command_reply as it is normal packet receiving
6260 function. Rewrote the function to accept command replys for
6261 servers and not only for clients.
6263 * Mark remote router always as registered server if we are connecting
6264 to it. Otherwise, commands sent by the router to us are ignored.
6266 * All ID List find routines now returns the ID Cache Entry pointer
6267 as well if requested.
6269 * WHOIS command works now in router environment, tested with two
6270 routers, two servers and two clients.
6272 * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
6273 in router environment (as it is almost equivalent to WHOIS) but
6274 hasn't been tested thoroughly. Added new functions:
6276 silc_server_command_identify_parse
6277 silc_server_command_identify_send_reply
6278 silc_server_command_identify_from_client
6279 silc_server_command_identify_from_server
6281 * Disabled route cache adding because adding two different ID's with
6282 same IP replaces the old cache entry thus giving wrong route.
6283 The entry->router->connection is always the fastest route anyway
6284 so route cache may not be needed. Of course, new routes maybe
6285 established after receiving the ID when the entry->router->connection
6286 might not be anymore the most optimal.
6288 Thu Dec 14 15:55:35 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6290 * Add route cache for received ID for fast routing.
6292 * Added silc_server_packet_route to route received packet on router
6293 that is not destined to us.
6295 * Renamed silc_server_get_route to silc_server_route_get.
6297 * Added id_string and id_string_len fields into SilcServer to
6298 include encoded ServerID for fast comparing without excess
6299 encoding of the ID's.
6301 * Cleaned up WHOIS command on server side. Added following static
6304 silc_server_command_whois_parse
6305 silc_server_command_whois_check
6306 silc_server_command_whois_send_reply
6307 silc_server_command_whois_from_client
6308 silc_server_command_whois_from_server
6310 * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
6311 arguments in command replies. All command functions should be
6312 updated to use this macro.
6314 Sun Dec 10 23:52:00 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6316 * Minor typo fixes on command reply handling on server.
6318 Tue Nov 28 11:05:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6320 * Added silc_server_command_add_to_channel internal routine to add
6321 the client to the channel after router has created the channel and
6322 sent command reply to the server.
6324 * Added generic silc_server_send_command to send any command from
6327 * Use static buffer with ID rendering instead of duplicating data.
6329 Mon Nov 27 21:39:40 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6331 * Fixed a channel user mode bug when joining to a channel server gave
6332 everybody channel founder rights, oops.
6334 * We mark ourselves as the router of the incoming server connection
6335 if we are router ourselves. This way we can check in some packet
6336 sending functions whether it is locally connected server. For
6337 incoming router connections we put NULL.
6339 * For router sending packets locally means now always sending the
6340 packet cell wide; to local clients and local servers. For normal
6341 server sending packet locally means sending it to only local
6344 * Fixed the JOIN command to really work in router environment. If the
6345 channel is created it is always created by the router. Router is
6346 also responsible of making the initial joining to the channel,
6347 sending JOIN notify to the sending server and distributing
6348 NEW_CHANNEL and NEW_CHANNEL_USER packets. Hence, if the channel
6349 does not exist server doesn't do anything else but forward the
6350 command to the router which performs everything.
6352 * Added silc_server_send_channel_key function to send the Channel Key
6355 * Added silc_server_create_channel_key to create new channel key. The
6356 channel key is now re-generated everytime someone joins or leaves
6357 a channel, as protocol dictates. Note: channel->key_len is the
6360 Wed Nov 22 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6362 * Splitted server.[ch] finally. Created now packet_send.[ch] and
6363 packet_receive.[ch] to separate packet sending and receiving
6364 routines. The server.[ch] now includes everything else including
6365 actual packet processing (writing and reading data) and other
6368 Renamed silc_server_private_message_send_internal to
6369 silc_server_send_private_message. The routine is still though
6370 used only to relay private messages as server does not send
6371 private messages itself.
6373 Renamed silc_server_new_channel to silc_server_create_new_channel
6374 and added new function sicl_server_new_channel that handles the
6375 incoming New Channel packet. Added also new sending function
6376 silc_server_send_new_channel to send New Channel Payload.
6378 * Added new function silc_server_notify to process incoming notify
6379 packet to the server/router. Server may then relay the notify
6380 to clients if needed.
6382 * Added new function silc_server_new_channel_user to process incoming
6383 New Channel User packet. Router will redistribute the packet and
6384 send JOIN notify to its local clients and locally connected servers
6385 if needed. Normal server will send JOIN notify to its local client
6386 on same channel when received this packet. Added also corresponding
6387 sending function silc_server_send_new_channel_user to sent the
6390 * Added boolean route argument to send_notif_to_channel and
6391 packet_send_to_channel functions to attempt to route the packet
6392 if it is TRUE and send only locally if it is FALSE.
6394 Tue Nov 21 19:49:31 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6396 * silc_server_replace_id now broadcasts the received replace ID
6397 packet if it is not broadcast packet already. The router must
6398 broadcast to inform other routers about changed ID.
6400 * Added backpointer to server's router into SilcServer context in
6401 silcd/server_internal.h.
6403 * Fixed silc_server_packet_broadcast to send correct broadcast
6406 * The channel key is now distributed to the local client as soon
6407 as it is received from the router (in router environment) so that
6408 no other packet may be sent for the channel until client has
6411 * silc_server_remove_channel_user now broadcasts the received
6412 Remove Channel User packet if it is not broadcast packet already.
6413 The router must broadcast to inform other routers about removed
6416 * Added users field into SilcPacketContext that is a reference count
6417 of the context. One can increase the reference count by calling
6418 silc_packet_context_dup which is now changed to just increase the
6419 reference count instead of duplicating the data. The reference
6420 count is decresed by calling silc_packet_context_free that will
6421 free the data after the reference count hits zero.
6423 For now on the packet context and everything allocated into it
6424 (including the raw packet from network) must be freed by calling
6425 the new silc_packet_context_free function. Added also new function
6426 silc_packet_context_alloc that must be used now to allocate the
6427 context. This also means that if a routine is asynchronous from
6428 silc_[client/server]_packet_parse_type the packet context must
6429 be duplicated by calling silc_packet_context_dup. Otherwise it
6430 gets free'd after silc_[client/server]_packet_parse_type returns.
6431 Also, one must remember that if packet is duplicated then its
6432 reference count must be decresed by calling the free function as
6433 many times as it was duplicated.
6435 * Changed SilcBuffer field from protocol contexts to SilcPacketContext
6436 from both client and server.
6438 Mon Nov 20 23:47:03 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6440 * Made joining to a channel working in router environment.
6442 * Cleaned up JOIN command on server side and create function
6443 silc_server_command_join_channel internal routine to make the
6446 Thu Nov 9 21:12:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6448 * Changed silc_command_pending list to SilcDList. Also, added
6449 `ident' field to SilcServerCommandPending structure to identify
6450 the reply and to call correct callback.
6452 Added silc_server_command_pending_check function to replace the
6453 corresnponding macro. The silc_command_pending list is not
6456 * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
6457 to set identifier to previously allocated Command Payload. It
6458 is used to set identifier for command when resending Command
6461 * Added silc_command_payload_encode_payload to encode Command
6462 Payload buffer from SilcCommandPayload structure.
6464 * Added silc_argument_payload_encode_payload to encode Argument
6465 payload buffer from SilcArgumentPayload structure.
6467 Wed Nov 8 21:03:28 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6469 * Changed WHOIS command to support router connection on server side.
6470 The whois request is always sent to router unless the server is
6471 standalone server. After server has received the reply from the
6472 router will it send the reply to the client.
6474 * Added silc_server_packet_broadcast into silcd/server.[ch] to
6475 broadcast received broadcast packet. The function is used only
6476 by router. The broadcast packet is always sent to the router's
6479 * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
6480 render given ID to printable string, for log files for example.
6482 Tue Nov 7 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6484 * Made basic router to router connections working. At least they
6485 can now connect to each other but nothing really works the way
6486 they are supposed - yet.
6488 * Added new initiator token to RouterConnection configuration
6489 file in silcd/serverconfig.[ch]. It is used to tell whether we
6490 are the initiator to the remote router or whether we'll expect
6491 the other end to connect.
6493 * Moved registering of listener task to silc_server_init, hence
6494 the server starts listenning as soon as it is run, even if it
6495 does not have connections to other routers. Let's see how well
6498 * Changed default connection retry timeouts for more suitable in
6501 * Removed cipher and such arguments from silc_idlist_add_client
6502 and silc_idlist_add_server prototypes from silcd/idlist.[ch].
6503 Added new function silc_idlist_add_data to add the keys and stuff
6506 * Added SilcIDListData structure and added it to SilcClientEntry
6507 and SilcServerEntry as their first field in the structure. This
6508 way we can explicitly cast the ID entries to the SilcIDListData
6509 structure and get common data for the entries. In past, we had
6510 to first check what type of connection it is and then cast it to
6511 correct ID entry type. Now, we can directly cast the opaque
6512 pointer to the SilcIDListData (no matter what ID entry it actually
6513 is) and get the data needed.
6515 Mon Nov 6 21:56:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6517 * Wow, found a bug in scheduler. The scheduler uninitialized itself
6518 in some circumstances even if threre were timeout tasks, though not
6519 IO tasks, but tasks anyway. Now fixed.
6521 * Defined SilcServerConnection structure to hold connection specific
6522 stuff about directly connected servers and routers. The definition
6523 is currently in silcd/server_internal.h. I thought about having
6524 a bit more important role fro this struct but for now it is used
6525 only when connecting to other server (or router actually).
6527 * Added connecting retry support in server when connecting to
6528 router(s). The retry feature implement exponential backoff
6529 algorithm. Also, added SilcServerParams structure to hold default
6530 parameters for server. For now, it include these retry settings
6531 and are hard coded. After server is moded to be as Silc Server
6532 Library this structure will be more important.
6534 Sun Nov 5 22:28:44 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6536 * Changed client librarys channel->clients table to SilcList and
6537 changed code accordingly.
6539 Thu Nov 2 16:28:01 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6541 * Changed client's channel table to SilcList and changed code
6542 accordingly. Also changed SilcChannelClientEntry to include back-
6543 pointer to the channel so that client entry can use that structure
6544 as list as well and we have fast cross-reference to the channel.
6545 This change dramatically decreased the complexity of channel
6546 handling with client entry and vice versa (removed one extra
6547 loop when searching for channel entry from many functions).
6549 * Changed server->sim from table to SilcDList and changed code
6552 * NAMES command can now be used from user interface. It will show
6553 the user list on the channel, neatly.
6555 * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
6556 Code now saves realname of the user if it becomes available.
6558 * Renamed configure.in to configure.in.pre and made ./prepare
6559 script to automatically add correct version string to
6560 configure.in which it creates from configure.in.pre.
6562 Wed Nov 1 17:21:26 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6564 * NAMES command reply now shows users mode with the nickname when
6567 * Moved silc_client_ch[u]mode[_char] functions from
6568 silc/clientutil.[ch] to lib/silcclient/client.[ch]. Though, that
6569 place sucks, they are utility functions and should be in some
6572 * Fixed some unsigned int's to unsigned short's. Patch by cras.
6574 * Fixed contrib/getopt*.[ch] to not require config.h. Patch by
6577 Tue Oct 31 20:10:37 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6581 * Added TRQ (efficient deque and list library) into lib/trq. This is
6582 a very good list library that is currently used in the SILC. Defined
6583 SilcList API over the library because I didn't like the API very
6584 much. See lib/trq/silclist.h for the API and examples of how to
6585 use the API. Fixed various places in the code to use the new
6586 SilcList API. The SilcList is meant for lists that has a structure
6587 already defined as a list. It is not suitable to add just some
6588 context to the list (in TRQ, the context is the list actually).
6590 So, I defined SilcDList that can be used for the purpose where
6591 predefined list structure does not exit. This can be used as
6592 such list. Now some context just can be added to the SilcDList.
6593 Currently this list is not used in the SILC just yet, though there
6594 are a lot places where this can replace dynamically allocated
6595 tables and I will fix these places, later, to use SilcDList.
6596 See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
6597 and use TRQ internally).
6599 Also fixed some annoying warning messages that the original TRQ
6600 code generated. Also minor changes to TRQ's Makefile.in.
6602 * Added support for querying by Client ID to both WHOIS and
6603 IDENTIFY commands into server, as required by the protocol.
6605 * Removed method function pointers from SilcBuffer structure. They
6606 weren't used to anything and just increased the context size for
6607 no good reason. This change also made silc_buffer_alloc and
6608 silc_buffer_free functions inline functions.
6610 * Disabled command flooding detection support until it's fixed so
6611 that it accepts commands in but does not execute them more than once
6614 * Added silc_net_localhost(), to return local hostname, into
6615 lib/silcutil/silcnet.[ch]. Also added client->hostname pointer
6616 that must be initialized before calling silc_client_init.
6618 * Added new function: silc_server_send_notify_on_channels to send
6619 notify messages to all channels client has joined. It is assured
6620 that the message is sent only once per client.
6622 * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
6623 lib/silcutil/silcutil.[ch] as silc_format function. The new
6624 function is generic and is used by server as well, not only by
6625 the logging routines.
6627 * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
6628 the provided version string was not acceptable. Added new function:
6629 silc_ske_check_version into lib/silcske/silcske.h. The function
6630 must be implemented by the application (client or server) and it
6631 does not reside in the SKE library. The function checks the version
6632 string remote end sent.
6634 * Added back pointers (to opaque context and to SilcSocketConnection)
6635 into SilcPacketContext structure into lib/silccore/silcpacket.h.
6637 * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
6638 duplicate packet context structure.
6640 * Changed `notify' client operation to send same arguments as client
6641 receives from server except for ID's. ID's are mapped to correct
6642 ID entry and that is returned. Also, if channel entry is not sent
6643 by server but the notify is for channel the channel entry is sent
6644 to application (otherwise application doesn't know that it is for
6645 channel (library gets it from packet's Destination ID)).
6647 * Added silc_client_remove_from_channels into client library to
6648 remove a client from all channels it has joined to. Used when
6649 received SIGNOFF notify from server. Added also new function
6650 silc_client_replace_from_channels to replace old ID entry with
6651 new ID entry on all channels. Used when received NICK_CHANGE
6654 * Fixed ID Cache list handling in silc_idlist_get_client in
6655 lib/silcclient/idlist.c. Also, added silc_idlist_get_client_by_id
6656 to get (or query) client by ID.
6658 * Updated TODO list.
6660 * Added connection authentication status message defined by the
6661 protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
6662 support for these into the code in client and server side.
6664 * Added generic function silc_client_send_command to send any command
6665 with variable argument list. Application should use this function
6666 to send commands if the command functions provided by the library
6667 does not suite for the application's user interface needs.
6669 * Added new `failure' client operation. Application is notified about
6670 received failure packet if client is executing a protocol. In this
6671 case the protocol's execution has failed.
6673 * Added SKE's end notify to send the SKE_SUCCESS notify message that
6674 is required by the protocol.
6676 * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
6677 packet from remote. SILC_PROTOCOL_STATE_ERROR indicates local
6680 * Added status flag to SilcSKE object to indicate realtime status
6681 of the SKE protocol.
6683 * Application receives now exactly same command reply arguments as
6684 the library receives from server. However, if ID is received the
6685 corresponding ID entry is returned to the application (eg. Client
6686 ID is mapped to correct SilcClientEntry entry and that is returned).
6687 Changed command_reply client operation due to this change.
6689 * Changed all ID's in commands and in command replys as ID Payloads.
6690 Change affected both client and server side codes.
6692 All ID's sent in SILC network (with execption of ID's in SILC
6693 Packet header) are sent in ID Payload to support variable length
6696 * Server now notifies nick changes and notifies all clients on
6697 the channels about the new nickname (about the new Client ID,
6700 * Implemented CMODE command to change channel modes. Supports all
6701 channel modes defined by the protocol specs except ban and invite
6702 lists. (Also, private channel key mode is supported but support for
6703 setting private channel key in client is missing, thus, this mode
6704 has no effect on client side (except that server requires that the
6705 client uses private channel key and normal channel traffic does not
6708 Also, invite mode works per se, but INVITE command does not work
6709 yet correctly, so you can set channel as invite only channel but
6710 inviting clients to the channel does not work (it is yet to be
6711 thought what's the best way to do it).
6713 * Added new command SILC_COMMAND_CUMODE to change user mode on the
6714 channel. Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
6715 Implemented CUMODE command to change user's mode on the channel.
6716 Supports all modes defined by the protocol specs.
6718 * Added NAMES command reply to return users modes on the channel.
6720 * Removed unnecessary and slow ciphers from lib/silccrypt.
6722 * Set SO_KEEPALIVE option to connection sockets by default.
6724 * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
6726 * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE. Also,
6727 redefined the Notify Payload into protocol specs.
6729 * Added silc_id_payload_parse_id to get ID directly from raw
6732 Mon Oct 9 20:57:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6734 * Changed SILC_COMMAND_IDENTIFY in protocol specification to
6735 accept searching by Client ID as well.
6737 * Added support for LEAVE and SIGNOFF notify types in client library.
6739 * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
6740 to parse ID Payload from raw data.
6742 Sun Oct 8 19:33:08 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6744 * Added flags parameter into silc_ske_assemble_security_properties
6745 function in lib/silcske/silcske.[ch].
6747 * Changed notify client operation to fit better for notify messages
6748 sent by server. The notify payload received from server is now
6749 passed to the application (after parsing it to SilcNotifyPayload).
6750 It is application's responsibility to retrieve the arguments
6751 from the payload and show the message the way it wants. The message
6752 sent by server is implementation specific.
6754 * Changed public keys to comply with the protocol specification.
6755 Old public keys are not supported anymore and are not compatible.
6757 * Removed nickname from Channel Payload as the latest draft removed
6758 it. The client must resolve the nickname from the NAMES command
6759 reply received when it joined the channel.
6761 Also, changed all channel_xxxx_payload to channel_payload_xxxx.
6763 Sat Oct 7 21:55:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6765 * Fixed some errors in protocol specification drafts.
6767 * Created lib/silccore/silcnotify.c to implement Notify Payload
6768 encoding and decoding, lib/silccore/silcpayload.[ch] to implement
6769 generic payloads described by protocol specifications. The file
6770 includes implementations for ID Payload and Argument Payload.
6772 * Changed Command Payload implementation to use the new Argument
6773 Payload. Changed command_xxxx_payload to command_payload_xxxx
6774 to comply with SILC coding conventions.
6776 * Added suppport for Argument Payload handling in Notify Payload
6777 implementation as protocol requires it. Added the new support
6778 into server and client lib as well.
6780 Thu Oct 5 21:16:28 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6782 * Added support for multiple nicknames on same channel. [n] is
6783 added locally to the nickname if there are more than one same
6784 nicknames on the channel.
6786 * Server now sends all nicknames that matched WHOIS request.
6787 Client also shows the list received from server.
6789 * Added TOPIC command to client side. User can now set and show
6790 current topic on channel.
6792 * Added MOTD command to client and server. Also, server sends the
6793 motd when client connects to the server.
6795 * Changed version strings to comply ISO 8601.
6797 Wed Oct 4 23:29:06 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6799 * Fixed protocol error handling in client library. It should now
6800 cope even if the SKE fails for some reason.
6802 * Made new protocol specification drafts for submitting to IETF.
6804 * Implemented TOPIC command to server in silcd/command.c.
6806 * Added two new notify types into lib/silccore/silcnotify.h:
6807 SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
6808 notify nickname change and topic setting/change on a channel.
6810 * API change of command_reply operation in client library. The
6811 application gets now the status type received from server as well.
6813 Sat Sep 30 16:57:42 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6815 * Removed the function just added to lib/silcutil/silcschedule.[ch].
6817 * Cras fixed and optimized the packet handling even further and
6818 it should work now. Minor change to the prototype of function
6819 silc_packet_receive_process in lib/silccore/silcpacket.[ch].
6821 Sat Sep 30 08:48:47 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6823 * Added new function into lib/silcutil/silcschedule.[ch]:
6824 silc_schedule_with_fd to select() a specified fd. The function
6825 returns after timeout expires or data arrives or goes. The
6826 function is used by packet routines to wait that all data is
6827 received from network.
6829 * Fixed data reading from network in lib/silccore/silcpacket.c.
6830 The code now assures that all data is read from the fd and then
6831 continues packet processing. This was a bug fix since the code
6832 used to drop some data in some circumstances.
6834 * Added new function into lib/silcclient/client.[ch]:
6835 silc_client_start_key_exchange to start key exchange after
6836 connection has been established to server. The code internally
6837 now uses this funtion but its main purpose was to provide it
6838 for applications that perform their own connecting. After
6839 application has created a connection it merely calls this
6840 function to start the key exchange between client and server.
6841 The library takes care of everything else after that.
6843 Updated also lib/silcclient/README to explain the usage of
6846 * Do not send to application information that connection has
6847 been established. Application gets notified it by connect
6850 Thu Sep 28 23:40:19 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6852 * Applied cras's patch to add silc_schedule_one function. The
6853 function runs scheduler once and returns.
6855 * Fixed the scheduler after cras messed it up. The timeout
6856 handling works now as it's supposed to work.
6858 * Added into lib/silccore/ silcnotify.h to include notify
6859 message types support. Changed silc_server_send_notify*
6860 functions, in server.[ch], to support those new notify types.
6861 Added the support for the notify types into client library,
6862 as well. Added new notify client operation into ops.h in
6865 * Changed silc_server_packet_send_to_channel to send normal
6866 packets instead of just channel message packets. The function
6867 is now used to send the notify packets to channels. It is not
6868 used to send channel message packets anymore, as server never
6871 * Added explicit casting into lib/silcutil/silcbuffmt.c to few
6872 va_arg()s as it seems to require it nowadays. I guess, if SILC
6873 is compiled with older va_arg() the new code should work anyway.
6875 Wed Sep 13 18:10:14 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6877 * Splitted core library. Core library (lib/silccore) includes
6878 now only SILC protocol specific core (and common) components.
6879 Created new utility library (lib/silcutil) that includes more
6880 generic purpose stuff. The stuff for util library was taken
6881 from the old core library. This was minor and easy split.
6883 * Created SILC Client Library (lib/silcclient) that includes
6884 implementation of the SILC client without user interface. This
6885 was major move from silc/ directory. The code has been changed
6886 so that it is transparent towards the user interface. The
6887 silc/ directory includes now the same user interface as before
6888 and it uses the new client library. Read lib/silcclient/README.
6889 Basicly, the client library performs everything else related
6890 to SILC except user interface handling. Also, configuration
6891 files are considered to be part of user interface and library
6892 does not handle them.
6894 This change also changed a lot of structures, function naming etc.
6895 Most important change was that SilcClientWindow object was
6896 renamed to SilcClientConnection in the client library. Created
6897 also new file lib/silcclient/ops.h. Also added new files
6898 silc/local_command.[ch] and silc/client_ops.[ch].
6900 All these changes were made to make it easier for user interface
6901 designers to create what ever user interface for the SILC client
6904 It is also expected that the server will be moved to lib
6905 directory as well and SILC Server Library will be created;
6906 sometimes in the future.
6908 * Removed Local commands from lib/silccore/silccommand.h as
6909 they are application specific and new client library does not
6910 handle any of those anymore.
6912 * Several functions moved to lib/silcutil/silcutilc.[ch] from
6913 old client implementation in silc/.
6915 * Added support for callback functions in SILC_LOG_* macros.
6916 Application can now set its own callbacks that will be called
6917 instead of using the default functions that will always print
6918 the debug messages to stderr (or stdout). Also, debugging can
6919 now be disabled by setting silc_debug to FALSE and re-enabled by
6920 setting it to TRUE. Note, that logging will still work even
6921 if debugging is disabled.
6923 New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
6924 silc_log_reset_callbacks, silc_log_set_debug_callbacks and
6925 silc_log_reset_debug_callbacks.
6927 * To enable debugging in silc client one must give now -d
6928 option on command line.
6930 * Changed silc_schedule_init to automatically allocate task queues
6931 if they are not allocated before calling it.
6933 Thu Sep 7 10:49:33 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6935 * Added GMP 3.1 into math library.
6937 Sun Aug 20 21:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6939 * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
6940 a channel in SILC network. The packet is used by servers and
6941 routers to notify other routers that user has left a channel.
6942 This little feature was missing until now. Added the feature
6943 to protocol specification as well.
6945 Added functions: silc_server_send_remove_channel_user and
6946 silc_server_remove_channel_user into server.[ch].
6948 * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
6949 lib/silccore/silcpacket.h. However, they are not implemented
6952 Sat Aug 19 23:04:16 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6954 * Fixed joining to a channel and sending channel messages
6955 between server and router. The channel message sending should
6956 now work inside a cell.
6958 Tue Jul 25 20:46:13 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6960 * Fixed the private message sending between server and router.
6961 The private message sending should now work inside a cell.
6963 * Added silc_server_replace_id into server.[ch] to replace
6964 existing ID in the SILC network.
6966 * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
6967 and silc_idlist_replace_server_id into idlist.[ch] in server.
6969 Mon Jul 24 18:33:31 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6971 * Fixed the server to server connections. Server can again now
6972 connect to router. Router to router connections probably does
6975 Thu Jul 20 13:15:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6977 * Added dynamic protocol registering support. Now protocols can
6978 registered and unregistered on the fly. Patch by cras.
6980 Wed Jul 19 19:08:46 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6982 * Added lib/contrib directory to hold routines that some platforms
6983 don't have but are needed by SILC.
6985 * Added getopt.c, getopt1.c and getopt.h from GNU C library
6986 into lin/contrib to provide getopt() and getopt_long() for
6987 those who don't have it.
6989 Tue Jul 18 20:41:20 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6991 * Added AWAY command to client. When away message is set and
6992 client receives a private message packet the client automatically
6993 replies to the sender with the away message.
6995 * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin. This
6996 bug seemed to be the cause of recent problems when compiling
6999 * Added version detection support to SKE protocol specification
7000 and added the new changes to the SKE implementation as well.
7001 There were other minor changes in the SKE protocol as well.
7003 Many changes in lib/silcske/silcske.[ch] and in
7004 lib/silcske/payload.[ch].
7006 * Added ^U functionality, clear input line. Patch from cras.
7008 Mon Jul 17 23:33:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7010 * Mainly small bugfixes on core library. Fixed some debugging
7011 logging and buffer overflow in silclog.c.
7013 * Updated config.sub and config.guess on the distribution tree.
7015 Sat Jul 15 15:33:48 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7017 * Added command lagging support in server. Client may execute
7018 commands now only once in two seconds.
7020 Thu Jul 13 22:10:21 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7022 * Optimized packet reception. MAC computation and checking is now
7023 also more optimized. A lot previously duplicated code is now
7024 used as generic by both client and server.
7026 * Fixed key pair generation in clientutil.c
7028 Wed Jul 12 18:28:07 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7030 * Added into lib/silccore/silcbufutil.[ch] new function;
7031 silc_buffer_realloc.
7033 * Moved generic packet sending/encryption functions to
7034 lib/silccore/silcpacket.[ch] from client and server. Some
7035 rewriting of the functions.
7037 * Moved all generic packet reception/decryption functions to
7038 lib/silccore/silcpacket.[ch] from client and server. The
7039 packet processing is now much cleaner in both client and server.
7040 These were major changes in both client and server.
7042 * Created many common functions in server to do packet sending.
7043 Previously code were duplicated a lot, this has been removed
7046 Tue Jul 11 20:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7048 * Rewrote major parts of the ID cache system. Don't know
7049 whether it is better now or not but at least the API is more
7052 * Major rewrite on ID cache stuff on client because of the ID
7053 cache API changes. Added idlist.c to client.
7055 * Also major rewrite on ID cache stuff on server as well.
7056 Major rewrite of idlist.[ch]. SilcXXXList's are now named
7057 SilcXXXEntry's. We won't keep anymore idlist specific pointers
7058 in hand, instead they are all put into the ID cache system now.
7059 All server_idlist_* routines uses ID cache now instead of
7060 traversing its own lists (those lists does not exist anymore).
7061 SilcIDList though still exists. Also, SilcXXXEntry's are
7064 Sun Jul 9 15:19:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7066 * Finally made the SKE implementation compliant to the protocol
7067 specification. All mp integers are now binary encoded as
7068 opposed being HEX encoded.
7070 * Added lib/silcmath/mpbin.[ch]. Encoding mp intergers to and
7073 * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
7074 functions: silc_[encode/decode]_pem. Also added function
7075 silc_encode_pem_file to PEM encode with newlines ('\n') for
7078 * SILC public keys are now encoded either PEM or binary. Same
7079 option is for private keys as well. By default private keys
7080 are binary encoded and public keys PEM encoded. Silly HEX
7081 encoding were removed.
7083 * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
7084 function to create fingerprints.
7086 * Fixed a bug in SHA1; does not change the original data anymore.
7088 * Partly implemented INFO command on client and server side.
7089 Fixed CLEAR command. Changes to SERVER command; show current
7090 server(s) when giving command without arguments. Added
7091 VERSION command to client.
7093 * Added check to server that unregistered connections cannot
7094 execute commands (unless it is specificly allowed).
7096 Thu Jul 6 18:12:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7098 * Fixed screen refresh.
7100 * Fixed channel joining bug from client. On some circumstances
7101 client tried to join to a channel it had already joined.
7103 * Added public key verification process into client's protocol.c.
7104 The client now verifies the public key from user and saves
7105 it into ~./silc/serverkeys/ directory.
7107 Added into: clientutil.[ch]: silc_client_verify_server_key.
7109 * Changed SKE protocol's silc_ske_initiator_finish function
7110 to accept callback function that verifies the received public
7111 key. Removed old silc_ske_verify_public_key function.
7113 Wed Jul 5 19:19:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7115 * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
7116 silc_pkcs_private_key[_data]_set.
7118 * Made the password and public authentication more cleaner in
7119 server's protocol.c.
7121 * Removed historic and obsolete protocol `channel_auth' from
7122 both client and server.
7124 * Removed wrong way of sending command status messages from
7125 server to client in server's command.c. The old way violated
7126 protocol specification.
7128 Changes to silccore/silccommand.[ch]: removed
7129 silc_command_encode_status_payload -> not needed anymore,
7130 changed silc_command_encode_payload_va to accept extra
7131 argument on variable argument list. The argument type must
7132 now be provided to the function. Also, added new function:
7133 silc_command_encode_reply_payload_va which is same as
7134 normal command_encode_payload_va except command status type
7135 is provided as extra argument.
7137 Tue Jul 4 18:26:39 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7139 * Added ~./silc directory handling. The directory includes the
7140 public and private keys for the client.
7142 Added silc_client_check_silc_dir, silc_client_create_identifier
7143 and silc_client_load_keys.
7145 * Implemented SILC protocol compliant public key. Added public
7146 and private key saving to and loading from files.
7148 Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
7149 silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
7150 silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
7151 silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
7152 silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
7154 Implemented: silc_pkcs_save_[public/private]_key[_data] and
7155 silc_pkcs_load_[public/private]_key.
7157 Mon Jul 3 18:51:27 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7159 * Added silc_server_get_route (route.[ch]) to get connection
7160 data for the fastest route for given ID.
7162 * Implemented INVITE command on client and server. The command
7163 were re-defined in the SILC Protocol Specification and the
7164 implementation now complies with the specification.
7166 * Implemented PING command on client and server.
7168 * Implemented NAMES command on client and server. The server side
7169 supports currently only normal server not router server yet.
7170 Some changes to NAMES definition in SILC protocol specification.
7172 Sun Jul 2 18:23:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7174 * Implemented LEAVE command on client and server.
7176 * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
7177 again. This change was made to the protocol as well. Server
7178 should not violate the protocol specification anymore.
7180 Fri Jun 30 14:03:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
7182 * Added SOCKS4 and SOCKS5 support to SILC client. SOCKS5
7183 was tested. SOCKS4 was not but should work anyway.