1 Fri Jan 25 19:12:36 EET 2002 Pekka Riikonen <priikone@silcnet.org>
3 * Added server & router operator statistics updating. Affected
4 file silcd/packet_receive.c and silcd/command.c.
6 * Fixed the SERVER_SIGNOFF notify handling on normal server
7 not to save the history information for clients. Same was
8 fixed earlier in remove_clients_by_server function, but not
9 here. Affected file silcd/packet_receive.c.
11 * Raised the default connection-retry count from 4 to 7 in
12 server. Affected file silcd/server.h.
14 * Cancel any possible reconnect timeouts when we start the
15 key exchange. Affected file silcd/server.c.
17 * Do not reconnect on connection failure when SCONNECT was
18 given. Affected files silcd/server.[ch].
20 Tue Jan 22 18:19:36 EET 2002 Pekka Riikonen <priikone@silcnet.org>
22 * Removed assert()'s from the lib/silcclient/client_keyagr.c.
24 * Fixed the NICK command to always give the unformatted
25 nickname to the one giving the NICK command. If unformatted
26 nickname is cached already it will be formatted and the
27 local entry will always get the unformatted nickname.
28 Affected file lib/silcclient/idlist.c.
30 * Fixed some double frees from client library commands.
31 Affected file is lib/silcclient/command.c.
33 * Fixed CUMODE command in server to assure that no one can
34 change founder's mode than the founder itself, there was a
35 little bug. Affected file silcd/command.c.
37 Mon Jan 21 19:07:53 EET 2002 Pekka Riikonen <priikone@silcnet.org>
39 * Removed the SilcClientCommandDestructor from the client
40 libary, it is not needed anymore. Affected files are
41 lib/silcclient/silcapi.h, command[_reply].[ch],
42 client_notify, idlist.c.
44 * Fixed GETKEY command to first resolve client, and then
45 resolve the server only if the client was not found, instead
46 of resolving both at the same time. Affected file is
47 lib/silcclient/command.c.
49 * Added silc_client_start_key_exchange_cb and lookup the
50 remote hostname and IP address before starting the key
51 exchange with server. The affected file is
52 lib/silcclient/client.c.
54 * The server's public key is now saved using the IP address
55 of the server and not the servername for the filename.
56 The hostname public key filename is checked as an fall back
57 method if the IP address based filename is not found.
59 Fixed the GETKEY command to save the fetched server key
62 Print the remote server's hostname now when new key is
63 received during connection process. Affected file is
64 irssi/src/silc/core/client_ops.c.
66 * Return always our own public key to the client if it asks
67 for it with GETKEY command. Affected file silcd/command.c.
69 * Removed the use_auto_addr variable from default config
70 file since it was in wrong section. Affected file is
73 * Fixed TOPIC_CHANGE notification to not route it when it
74 was sent using silc_server_send_notify_to_channel function.
75 Affected file silcd/command.c.
77 * Fixed silc_server_send_notify_kicked to send the kicker's
78 Client ID also, it was missing. Affected files are
79 silcd/command.c, silcd/packet_send.[ch].
81 Thu Jan 17 18:59:11 EET 2002 Pekka Riikonen <priikone@silcnet.org>
83 * Do not save client history information in SERVER_SIGNOFF.
84 Fixes the bug in normal server that it does not detect
85 the client becoming valid after the server becomes back
86 online. Affected file silcd/server_util.c.
88 * Added `sock_error' field into the SilcSocketConnection
89 context. When error occurs during socket operation (read
90 or write) the error is saved. Added also new function
91 silc_socket_get_error to return human readable socket error
92 message. Affected files are lib/silcutil/silcsockconn.[ch],
93 lib/silcutil/unix/silcunixsockconn.c, and
94 lib/silcutil/win32/silcwin32sockconn.c.
96 * The server now prints the socket error message in the
97 signoff for client. Affected file silcd/server.c.
99 * Fixed the `created' channel information sending from router
100 to server in JOIN command. Checks now whether the channel
101 really was created or not and set it according that.
103 Fixed the JOIN command to use the client entry's current
104 ID during the joining procedure instead of the one it sent
105 in the command (it is checked though), since it can change
106 between the packet processing and command processing, and
107 would just case unnecessary pain in the client end. Affected
108 file silcd/command.c.
110 * Fixed a channel key payload sending to use correct channel
111 ID when the server was forced to change the channel's ID by
112 router. Router sent the key payload with the old Channel ID.
113 Affected file silcd/packet_receive.c.
115 Wed Jan 16 22:26:30 EET 2002 Pekka Riikonen <priikone@silcnet.org>
117 * Call silc_server_save_channel_key only if the key payload
118 was provided in the JOIN command's command reply. Affected
119 file silcd/command_reply.c.
121 Tue Jan 15 18:49:41 EET 2002 Pekka Riikonen <priikone@silcnet.org>
123 * Fixed silc_mp_sizeinbase to return the value correctly with
124 MPI. Affected file lib/silcmath/mp_mpi.c.
126 * Fixed the stop_server signal to correctly stop the scheduler
127 and gracefully stop the server when SIGTERM or SIGINT signals
128 are received. Affected file silcd/silcd.c.
130 Mon Jan 7 23:38:19 CET 2002 Johnny Mnemonic <johnny@themnemonic.org>
132 * Simple handling of TERM and HUP signals. Also added some log
133 flushing call around. Affected file is
136 * Fixed small bugs in silclog.c. Now buffering output will take
137 effect after 10 seconds since startup: This will ensure that
138 no important startup messages are lost. Also output redirection
139 will preserve original format ([Date] [Type] message).
140 Affected file is lib/silcutil/silclog.c.
142 * Added two options to the config file, in the logging section:
143 quicklogs:<yes/no>: and flushdelay:<seconds>:. Affected files
144 lib/silcutil/silclog.[ch], silcd/serverconfig.[ch].
146 Sun Jan 6 12:49:40 EET 2002 Pekka Riikonen <priikone@silcnet.org>
148 * Do not print the warning about log files not being initialized
149 more than once to avoid excess logging. Affected file is
150 lib/silcutil/silclog.c.
152 * Fixed the SIM compilation in lib/silcsim/Makefile.am. Fixed
153 the SIM copying in make install in Makefile.am.pre.
155 Sun Jan 6 01:10:21 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
157 * Rewritten silclog APIs. Globally interesting changes follows:
158 silc_log_set_files() changed to silc_log_set_file().
159 silc_log_set_callbacks() changed to silc_log_set_callback().
160 ROBOdoc documented silclog header file.
161 SilcLogCb now returns bool to wether inihibit the default
162 handler or not (to keep the old behaviour return always TRUE).
163 The new APIs should also fix the problem of the
164 silcd_error.log file that was written in the current directory.
167 Log files streams will remain opened after silc_log_set_file()
168 call, means less CPU usage notably on high traffic servers.
169 File streams are now full buffered, and flushed to the disk
170 every 5 minutes, lesses HD activity and CPU usage.
171 Messages can be redirected, allowing admins to configure
172 one single logfile for all server messages.
173 the silc_log_quick global variable to activate fast-logging.
174 Affected files lib/silcutil/silclog.[ch]
176 * Changed some code to conform new silclog APIs. Affected
177 files are doc/example_silcd.conf.in, silcd/server.c
178 irssi/src/silc/core/silc-core.c, silcd/serverconfig.[ch],
181 * Fixed a memory leak that could occur in some situations.
182 Affected file silcd/serverconfig.c.
184 Sat Jan 5 13:37:29 EET 2002 Pekka Riikonen <priikone@silcnet.org>
186 * Added the silc_client_del_client to remove the client from
187 all channels as well. Affected file lib/silcclient/idlist.c.
189 * Fixed the client library to correctly remove the client
190 from all channels when the client entry is being destroyed.
191 Affected file lib/silcclient/client_notify.c, command.c.
193 * Added auto-nicking support to the client library. If the
194 applicatio now sets client->nickname it will be sent to the
195 server after connecting by the library. This way for example
196 SILCNICK (or IRCNICK) environment variables will have effect
197 and always change the nickname automatically to whatever
198 it is wanted. Affected file lib/silcclient/client.[ch].
200 * Renamed silc_server_command_bad_chars to the
201 silc_server_name_bad_chars and moved it to the
202 silcd/server_util.[ch]. Added also new function
203 silc_server_name_modify_bad to return nickname that
204 includes bad characters as new nickname without those
205 bad characters. This check and modify is now used in
206 silc_server_new_client when the username is initially set
207 as nickname, so it must be checked to be valid nickname.
208 Affected file silcd/packet_receive.c.
210 * The nickname length is now taken from the packet for real
211 and not trusted to strlen() since it clearly can return
212 wrong length for nickname including bad characters. This
213 also applies to channel names. Affected file silcd/command.c.
215 * Removed the lib/silcsilm/modules directory. Modules are now
216 compiled into the lib/silcsim. Fixed the copying of the
217 modules to follow symbolic links in Makefile.am.pre.
219 Wed Jan 2 18:56:21 EET 2002 Pekka Riikonen <priikone@silcnet.org>
221 * Fixed silc_string_regexify list creation. Fixes bugs with
222 BAN and INVITE commands in server. The affected file is
223 lib/silcutil/unix/silcunixutil.c.
225 Sun Dec 30 13:41:34 EET 2001 Pekka Riikonen <priikone@silcnet.org>
227 * Removed the command destructor entirely from the server's
228 command and command reply routines. It is not needed, and
229 its usage was buggy and caused crashes. Affected files are
230 silcd/command[_reply].[ch].
232 Fri Dec 28 12:43:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
234 * Cancel protocol and NULL sock->protocol if timeout
235 occurred during protocol. Affected file silcd/server.c.
237 * Cancel protocol timeouts always before calling the final
238 callback, to assure that after final callback is called
239 no other state will be called for the protocol anymore.
240 Affected file silcd/protocol.c.
242 * Print error log if incoming connection configuration could
243 not be found. Affected file silcd/server.c.
245 * Fixed JOIN command to correctly save the founder mode
246 to the client on normal SILC server, when the channel
247 was created by the router. Affected file silcd/command.c.
249 * Fixed LIST command (hopefully) to send correct reply
250 packets. Affected file silcd/command.c.
252 Thu Dec 20 16:14:52 CET 2001 Pekka Riikonen <priikone@silcnet.org>
254 * The silc_packet_receive_process now returns FALSE if the
255 read data was invalid packet, and TRUE if it was ok.
257 The server now checks that if unauthenticated connection
258 sends data and its processing fails the server will close
259 the connection since it could be a malicious flooder.
261 Affected files lib/silccore/silcpacket.[ch], silcd/server.c.
263 Wed Dec 19 21:31:25 EET 2001 Pekka Riikonen <priikone@silcnet.org>
265 * Make sure the warning about error opening a log file is
266 printed only once and not everytime it fails (produces
267 too much useless log). Affected file lib/silcutil/silclog.c.
269 Wed Dec 19 18:21:51 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
271 * Made the silc_server_daemonise() function more readable.
272 Affected file silcd/server.c.
274 * Pid file is now optional, the user may comment it out from
275 the config file. Removed define SILC_SERVER_PID_FILE, we
276 don't need a default any longer. Affected file
277 configure.in.pre, lib/Makefile.am.pre.
279 * Make some use of the pid file. The server now dies at startup
280 if it detects a valid pid file on his path. The server would
281 die anyway in this circumstance, because of the bind() failure.
282 Affected file silcd/silcd.c.
284 * No longer compiling lib/dotconf.
286 Mon Dec 17 18:24:27 EET 2001 Pekka Riikonen <priikone@silcnet.org>
288 * Fixed JOIN command parsing not to crash. Affected file
289 lib/silcclient/command.c.
291 * Fied the NICK_CHANGE notify to add the new client entry
292 even it is resolved. This removes an <[unknown]> nick
293 thingy bug in the client. Affected file is
294 lib/silcclient/client_notify.c.
296 * Do not try to allocate 0 bytes (efence does not like it)
297 in lib/silccore/silccomand.c when encoding payload.
299 * Do not take IRCNICK as nickname in Irssi SILC client since
300 it is not possible to set nickname before hand connecting
301 the server (TODO has an entry about adding auto-nicking
304 * Changed the silc_server_command_pending to check whether
305 there already exists an pending entry with the specified
306 command, command identifier and pending callback. This is
307 to fix IDENTIFY and WHOIS related crashes that may register
308 multiple pending commands with same identifier. Affected
309 file silcd/command.c.
311 * Fixed the server to reconnect to the router even if it
312 was already reconnecting and EOF was received. This to
313 fix a possibility that the server wouldn't ever try to
314 auto-reconnect to the router. Affected file silcd/server.c.
316 Sat Dec 15 20:31:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>
318 * Fixed the server's password authentication to use the
319 length of the locally saved password, and not the one
320 sent in the packet. Affected file silcd/protocol.c.
322 * Fixed same password authentication problem in the
323 Authentication Payload handling routines in
324 lib/silccore/silcauth.c.
326 * Yet another password authentication problem fixed with
327 channel password handling in silcd/command.c.
329 Mon Dec 10 19:57:40 EET 2001 Pekka Riikonen <priikone@silcnet.org>
331 * If first character of string in silc_parse_userfqdn is '@'
332 then do not parse it. Affected file is
333 lib/silcutil/silcutil.c.
335 Sun Dec 9 22:18:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>
337 * Fixed minor bug in IDENTIFY command reply sending, which
338 caused various weird problems during JOIN when it was
339 resolving names for users. Affected file silcd/command.c.
341 Sun Dec 9 19:18:41 EET 2001 Pekka Riikonen <priikone@silcnet.org>
343 * Fixed the IDENTIFY command reply sending to chech better valid
344 clients. It was possible to send incomplete list of replies.
345 Affected file silcd/command.c.
347 Sat Dec 8 15:58:31 EET 2001 Pekka Riikonen <priikone@silcnet.org>
349 * Added silc_client_command[s]_[un]register functions now to
350 dynamically register the commands in client library. Removed
351 the static table of commands. This allows the client library
352 to call commands without causing the application to know about
353 what commands library has called.
355 Removed the INFO command reply kludge to detect when the command
356 was called by library. Now library use its own command reply
357 function for INFO command.
359 Added function silc_client_command_call to call a command.
360 Application can use it to call command, not access the structure
363 Now all commands that are sent by the client library (not
364 explicitly sent by application) use own command reply functions.
366 Affected files around lib/silcclient/ and in
367 irssi/src/silc/core/.
369 * Fixed the WHOIS command reply sending to chech better valid
370 clients. It was possible to send incomplete list of replies.
372 Fixed the WHOIS and IDENTIFY to send the request to router
373 if normal server did not do it and did not find any results.
375 Affected file silcd/command.c.
377 Thu Dec 6 17:21:06 EET 2001 Pekka Riikonen <priikone@silcnet.org>
379 * Moved the internal data from SilcClient context into its
380 own file, not accesible to application. Affected files
381 lib/silcclient/client.h and lib/silcclient/client_internal.h,
382 and other files in client library.
384 Thu Dec 6 10:37:55 EET 2001 Pekka Riikonen <priikone@silcnet.org>
386 * Added doc/examples installation target in Makefile.am.pre.
389 Tue Dec 4 17:43:19 EET 2001 Pekka Riikonen <priikone@silcnet.org>
391 * If NO_SUCH_CLIENT_ID notify is received for WHOIS or IDENTIFY
392 commands the found client entry will be removed from the
393 cache, after notifying application about the error. Affected
394 file lib/silcclient/command_reply.c.
396 * Changed the /MSG to check for exact nickname user gave, and
397 not let `nick' match `nick@host' if it is only one found. Now,
398 user must type the exact nickname (like nick@host2) even if
399 there are no more than one same nicks found. This is to avoid
400 a possibility of sending nickname to wrong nickname since
401 `nick' could match `nick@host'. Affected file is
402 irssi/src/core/silc-servers.c.
404 Mon Dec 3 18:49:45 EET 2001 Pekka Riikonen <priikone@silcnet.org>
406 * Do not print "you are now server operator" or similar when
407 giving /away command. Affected files are
408 irssi/src/silc/core/client_ops.c, silc-servers.h.
410 * Made the silc_server_command_pending_error_check to send
411 the same command reply payload it received back to the
412 original sender of the command. This way all arguments
413 that was received by the server will be received by the
414 client too. Affected file silcd/command.c.
416 * Added the silc_idcache_add to return the created cache entry
417 to a pointer. Affected file lib/silccore/silcidcache.[ch].
419 * Add global clients to expire if they are not on any channel.
420 This is because normal server will never know if they signoff
421 if they are not on any channel. The cache expiry will take
422 case of these entries. This is done by normal servers only.
423 The affected files are silcd/command_reply.c,
424 silcd/idlist.[ch], silcd/server and silcd/packet_receive.c.
426 * If server receives invalid ID notification for WHOIS or
427 IDENTIFY and the ID exists in the lists, it is removed.
428 Affected file silcd/command_reply.c.
430 * If NO_SUCH_CLIENT_ID is received for WHOIS or IDENTIFY command
431 in client then client entry that it matches is searched and
432 the nickname is printed on the screen for user. Affected
433 file irssi/src/silc/core/client_ops.c.
435 Mon Dec 3 11:56:59 EET 2001 Pekka Riikonen <priikone@silcnet.org>
437 * Use cache entry expire time in the LIST command reply to
438 purge old entries from the cache after the LIST command
439 reply has been received. This way we don't have non-existent
440 entries in the cache for too long. Affected file is
441 silcd/command_reply.c.
443 Sun Dec 2 23:29:07 EET 2001 Pekka Riikonen <priikone@silcnet.org>
445 * If we are normal server, and we've not resolved client info
446 in WHOIS or IDENTIFY from router, and it is global client,
447 we'll check whether it is on some channel. If it is not
448 then we cannot be sure about its validity and will resolve it
449 from router. Fixes a bug in WHOIS and IDENTIFY. Affected
450 file silcd/command.c.
452 * Search channel by name (if possible) rather than by ID
453 in IDENTIFY command's command reply. Affected file is
454 silcd/command_reply.c.
456 Sun Dec 2 13:48:46 EET 2001 Pekka Riikonen <priikone@silcnet.org>
458 * Distribute to the channel passphrase in CMODE_CHANGE notify.
459 Updated specs and implemented it. Affected file silcd/command.c,
460 silcd/packet_send.c and silcd/packet_receive.c.
462 * Implemented the <founder auth> payload handling in the JOIN
463 command. If provided all conditions for channel joining
464 except requirement to provide correct passphrase can be
465 overrided by the channel founder. Updated the protocol specs.
466 Affected file silcd/command.c.
468 Added support for founder auth in JOIN command in client
469 library. Fixed the parsing of the JOIN command now to support
470 all options as they should be. The affected file is
471 lib/silcclient/command.c.
473 * Optimized the WHOIS and IDENTIFY commands to send the request
474 to router only if it includes nicknames or other names. If
475 they include only IDs then check the local cache first before
476 routing. Affected file is silcd/command.c.
478 * Added channels topic announcements. Affected file is
479 silcd/packet_receive.c and silcd/server.c.
481 * Fixed the silc_server_send_notify_topic_set to really destine
482 the packet to channel. Affected file silcd/packet_send.c.
484 * Fixed a crash in CHANNEL_CHANGE notify handling in the client
485 library. Affected file lib/silcclient/client_notify.c.
487 * Added UMODE announcements. Affected file silcd/server.c.
489 Sat Dec 1 12:52:39 EET 2001 Pekka Riikonen <priikone@silcnet.org>
491 * Memory leak fixes in:
493 lib/silcutil/silcsockconn.c
494 lib/silcske/silcske.c
497 lib/silccrypt/silcpkcs.c
498 lib/silccore/silccommand.c
499 lib/silccore/silcidcache.c
504 * ROBOdoc documented the lib/silcske/groups.h file and a
505 bit changed the interface for better.
507 Thu Nov 29 22:12:50 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
509 * Update the client entry context in the ID cache after
510 nick change. Affected file lib/silcclient/command.c.
511 Fixes the CUMODE command when regaining founder privileges,
512 and a little WHOIS problem.
514 * Fixed silc_net_gethostbyname to correctly call the
515 inet_ntop. Affected file lib/silcutil/silcnet.c.
517 Thu Nov 29 19:31:23 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
519 * Added IPv6 support checking to the configure.in.pre, added
520 also --enable-ipv6 option to override the check. Affected
521 file configure.in.pre.
523 * The silc_thread_create now calls the start function
524 directly if threads support is not compiled in. Removes
525 ugly #ifdef's from generic code. Affected files are
526 lib/silcutil/unix/silcunixthread, win32/silcwin32thread.c.
528 * Added silc_net_gethostby[name/addr]_async to asynchronously
529 resolve. Affected files are lib/silcutil/silcnet.[ch].
531 * Added support for rendering IPv6 based server, client and
532 channel IDs. Affected file lib/silcutil/silcutil.c.
534 * Added support for creating IPv6 based server IDs. Affected
535 file is silcd/serverid.c.
537 Wed Nov 28 23:46:09 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
539 * Added silc_net_gethostby[addr/name] into the
540 lib/silcutil/silcnet.[ch]. Added IPv6 support to Unix network
541 routines. Added silc_net_is_ip[4/6]. Affected file is
542 lib/silcutil/unix/silcunixnet.c. All routines that take
543 address as argument now supports both IPv4 and IPv6 addresses.
545 Mon Nov 26 18:09:48 EET 2001 Pekka Riikonen <priikone@silcnet.org>'
547 * Fixed LIST command reply sending in server. Affected file
550 * Server now sends the kicker's client ID in the KICK notify
551 to the kicked client. Affected file silcd/command.c.
553 * The client library now parses the kickers client ID and
554 UI displays it. Affected files lib/silcclient/client_notify.c
555 and irssi/src/silc/core/silc-channels.c, module-formats.c.
557 * Made all payload parsing function prototypes consistent.
558 They all take now const unsigned char * and uint32 pair as
559 the payload data instead of SilcBuffer. Changes all around
560 the source tree. Other unsigned char* -> const unsigned char*
561 changes around the tree as well.
563 * Optimized SFTP client and server packet sending not to
564 allocate new buffer for each packet but to recycle the
565 first allocated buffer. Affected files are
566 lib/silcsftp/sftp_client.c, sftp_server.c, sftp_util.[ch].
568 * Optimized the SFTP client to use SilcList instead of
569 SilcDList for requests, because it is faster. Affected file
570 is lib/silcsftp/sftp_client.c.
572 * Moved the ID Payload routines from lib/silccore/silcpayload.[ch]
573 into lib/silccore/silcid.[ch].
575 Renamed silcpayload.[ch] into silcargument.[ch].
577 Mon Nov 26 15:01:53 CET 2001 Pekka Riikonen <priikone@silcnet.org>
579 * If client entry is deleted with active key agreement
580 session, abort the session.
582 The silc_client_abort_key_agreement now calls the completion
583 callback with new SILC_KEY_AGREEMENT_ABORTED status.
585 Affected file lib/silcclient/silcapi.h, client_keyagr.c and
588 Sun Nov 25 18:01:45 EET 2001 Pekka Riikonen <priikone@silcnet.org>
590 * Don't use __restrict in older GCC's. Affected file is
591 lib/silcmath/mpi/mpi-priv.h. A patch by salo.
593 * silc_net_localhost now attempts to reverse lookup the
594 IP/hostname. Affected file lib/silcutil/silcnet.c.
596 * Defined <founder auth> argument to the SILC_COMMAND_JOIN
597 command. It can be used to gain founder privileges at
598 the same time when joining the channel.
600 Defined that the SILC_NOTIFY_TYPE_KICKED send the
601 kicker's client ID as well. Updated protocol specs.
603 Defined that the server must send SILC_COMMAND_IDENTIFY
604 command reply with error status to client who sent
605 private message with invalid client ID.
607 Updated the protocol specification.
609 * Added silc_server_send_command_reply to send any
610 command reply. Affected file silcd/packet_send.[ch].
612 * Added silc_id_payload_encode_data to encode ID payload
613 from raw ID data. Affected file lib/silccore/silcpayload.[ch].
615 * The server now send IDENTIFY command reply with error
616 status if client ID in private message is invalid. Affected
617 file silcd/packet_receive.c.
619 * Save the server key file with server's IP address in
620 the filename instead of hostname. The affected file is
621 irssi/src/silc/core/client_ops.c.
623 Sat Nov 24 20:08:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
625 * Typo fixes in irssi/src/fe-common/silc/module-formats.c.
628 * Added libtool support for compiling shared objects in
629 lib/silcsim. Affected file configure.in.pre and
630 lib/silcsim/Makefile.am. Original patch by cras.
632 Fri Nov 23 23:30:59 EET 2001 Pekka Riikonen <priikone@silcnet.org>
634 * Pid file configuration, and server's config file fixes
635 patch by toma. Updated CREDITS file.
637 Sun Nov 18 01:34:41 EET 2001 Pekka Riikonen <priikone@silcnet.org>
639 * Fixed silc_client_channel_message to not try to decrypt
640 the message twice if it resolved the destination client
641 information. This could cause of dropping one channel
642 message. Affected file lib/silcclient/client_channel.c.
644 Wed Nov 14 23:44:56 EET 2001 Pekka Riikonen <priikone@silcnet.org>
646 * Added silc_client_run_one into lib/silcclient/silcapi.h and
647 lib/silcclient/client.c. This function is used when the SILC
648 Client is run under some other scheduler, or event loop or
649 main loop. On GUI applications, for example this may be
650 desired to used to run the client under the GUI application's
651 main loop. Typically the GUI application would register an
652 idle task that calls this function multiple times in a second
653 to quickly process the SILC specific data.
655 Wed Nov 14 19:16:52 CET 2001 Johnny Mnemonic <johnny@themnemonic.org>
657 * Fixed silc_server_drop() for dropping the supplementary
658 groups as well, this could cause a security hole on some
661 Wed Nov 14 16:22:25 EET 2001 Pekka Riikonen <priikone@silcnet.org>
663 * __pid_t -> pid_t in lib/silccrypt/silcrng.c. A patch by
666 * Write PID file after dropping privileges. Added -F option
667 to run server on foreground. A patch by debolaz.
668 Affected files silcd/server.c, silcd/silcd.c.
670 * Fixed MOTD to return the MOTD file server name. Affected
671 file silcd/command.c.
673 * Added INFO command reply handling to the Irssi SILC Client.
674 Affected file irssi/src/silc/core/client_ops.c.
676 Wed Nov 14 00:18:08 EET 2001 Pekka Riikonen <priikone@silcnet.org>
678 * Fixed the silc_idcache_list_* routines to really support
679 the dynamic list. Fixes a crash. Affected file is
680 lib/silccore/silcidcache.c.
682 * Fixed the LIST command reply to really call LIST command's
683 pending callbacks. Affected file silcd/command_reply.c.
685 Tue Nov 13 00:49:17 EET 2001 Pekka Riikonen <priikone@silcnet.org>
687 * Update conn->local_entry->nickname after giving NICK
688 command. Affected file lib/silcclient/command.c.
690 Sun Nov 11 23:43:02 PST 2001 Brian Costello <bc@wpfr.org>
692 * Added the [pid] option to the silcd configuration file
694 Affected files: serverconfig.[ch] and silcd.c
696 Sun Nov 11 23:56:39 EET 2001 Pekka Riikonen <priikone@silcnet.org>
698 * Save fingerprint in WHOIS command reply in server.
699 Affected file silcd/command_reply.c.
701 * Fixed NICK commands pending callback registration.
702 Affected file lib/silcclient/command.c.
704 Sun Nov 11 10:49:10 EET 2001 Pekka Riikonen <priikone@silcnet.org>
706 * Use ++server->cmd_ident when sending commands in server,
707 instead of random number. Affected file silcd/command.c.
709 * Fixed GETKEY command reply to call actually GETKEY pending
710 command callbacks. Affected file silcd/command_reply.c.
712 * A bit stricter check for nicknames. Check for same nickname
713 in NICK command also. Affected file silcd/command.c.
715 * Do not call INFO command everytime client ID changes, only
716 during first connecting. Affected file lib/silcclient/client.c.
718 * Set the new nickname only after successful command reply for
719 NICK command is returned by server. Affected file
720 lib/silcclient/command.c.
722 * Remove nicknames from nicklist during server_signoff notify.
723 Should fix /NAMES bit more. The affected file is
724 irssi/src/silc/core/silc-channels.c.
726 * Added `fingerprint' field to the SilcIDListData in the
727 silcd/idlist.h to hold the fingerprint of the client's
730 Send the fingerprint of the client's public key in WHOIS
733 Affected files silcd/command.c, and silcd/idlist.[ch].
735 * Added silc_fingerprint into lib/silcutil/silcutil.[ch] to
736 create fingerprint from given data.
738 * Show the fingerprint of the client's public key in WHOIS.
739 Affected files irssi/src/module-formats.[ch] and
740 irssi/src/silc/core/client_ops.c.
742 * Format the multiple same nicknames also during JOIN and
743 NICK_CHANGE notifys. Affected file is
744 lib/silcclient/client_notify.c.
746 * Do not print error on screen for invalid private message
747 payload since it can come if someone is sending private
748 messages with wrong key. Affected file
749 lib/silccore/silcprivate.c.
751 * Fixed multiple concurrent /PING crash. Affected file
752 lib/silcclient/command.c.
754 * Changed the wrong ID encoding. All IP addresses must be
755 in MSB first order in encoded format. They were encoded
756 wrong and was in LSB format. Affected files are
757 silcd/serverid.c, lib/silcutil/silcutil.c.
759 * Remove silc_net_addr2bin_ne from lib/silcutil/silcnet.[ch].
761 * Call the `connect' client operation through the scheduler
762 in case of error. Affected file lib/silcclient/client.c.
764 * Call the `failure' client operation even if the error
765 occurred locally during a protocol. Affected file is
766 lib/silcclient/protocol.c.
768 * Added support of sending LIST command to router from normal
769 server. This way normal server can get list of all channels
770 in the network too. Fixed the channel list sending in the
771 server too. Affected files are silcd/command.c, and
772 silcd/command_reply.[ch].
774 * Added silc_server_update_channels_by_server and
775 silc_server_remove_channels_by_server. They are used during
776 disconnection of primary router and in backup router protocol.
777 Affected file silcd/server_util.[ch], silcd/server.c and
778 silcd/server_backup.c.
780 * Fixed channel adding to global list in IDENTIFY command
781 reply in server. Affected file silcd/command_reply.c.
783 Sat Nov 10 21:39:22 EET 2001 Pekka Riikonen <priikone@silcnet.org>
785 * If the incoming packet type is REKEY or REKEY_DONE process
786 that packet always synchronously. Fixes yet another MAC
787 failed error on slow (dialup) connections. Affected file
788 lib/silcclient/client.c and silcd/server.c.
790 Thu Nov 8 22:21:09 EET 2001 Pekka Riikonen <priikone@silcnet.org>
792 * Call check_version SKE callback for initiator too. Affected
793 file lib/silcske/silcske.c.
795 * Implemented fix for security hole found in the SKE that was
796 fixed in the specification few days back; the initiator's
797 public key is now added to the HASH value computation.
798 Added backwards support for the old way of doing it too, for
799 old clients and old servers. Affected file is
800 lib/silcske/silcske.c.
802 * Enabled mutual authentication by default in SKE. If initiator
803 is not providing mutual authentication the responder will
804 force it. This will provide the proof of posession of the
805 private key for responder. The affected files are
806 lib/silcclient/protocol.c and silcd/protocol.c.
808 * Do not cache anymore the server's public key during SKE.
809 We do mutual authentication so the proof of posession of
810 private key is done, and if the server is authenticated in
811 conn auth protocol with public key we must have the public
812 key already. Affected file silcd/protocol.c.
814 * Added new global debug variable: silc_debug_hexdump. If
815 it is set to TRUE SILC_LOG_HEXDUMP will be printed. Affected
816 file lib/silcutil/silclog.[ch].
818 * Fixed compilation warning due to char * -> const char *.
819 Affected files lib/silcutil/silcnet.h, and
820 lib/silccore/silcauth.[ch].
822 Wed Nov 7 20:43:03 EET 2001 Pekka Riikonen <priikone@silcnet.org>
824 * Fixed CMODE command when new channel key was created. If
825 the creation failed the old key was removed. Next time giving
826 same command would crash the server since the old key was
827 freed already. Affected file silcd/command.c.
829 * Fixed the silc_server_announce_get_channels to not crash
830 on reconnect. Affected file silcd/server.c.
832 Wed Nov 7 17:15:07 EET 2001 Pekka Riikonen <priikone@silcnet.org>
834 * Added silc_log_set_debug_string function to set a regex
835 string to match for debug output. Only the function names,
836 or filenames matching the given debug string is actually
837 printed. This way it is possible to filter out those debug
838 strings that user is not interested in.
840 Fixed a bug in silc_string_regexify.
842 Affected files lib/silcutil/silclog.[ch], and
843 lib/silcutil/unix/silcunixutil.c.
845 * Changed the -d options in both server and Irssi SILC client
846 to take the debug string as argument. Affected files
847 silcd/silcd.c and irssi/src/silc/core/silc-core.c.
849 Tue Nov 6 21:31:54 EET 2001 Pekka Riikonen <priikone@silcnet.org>
851 * Added silc_hash_babbleprint to create a Bubble Babble
852 Encoded fingerprint. The encoding is developed by Antti
853 Huima (draft-huima-babble-01.txt), and it creates human
854 readable strings out of binary data. Affected file
855 lib/silccrypt/silchash.[ch].
857 * Print the babble print now in addition of fingerprint as well
858 in Irssi SILC client. Affected files are
859 irssi/src/fe-common/silc/module-formats.[ch],
860 irssi/src/fe-common/silc/core/client_ops.c.
862 Sun Nov 4 23:37:28 EET 2001 Pekka Riikonen <priikone@silcnet.org>
864 * Fixed a security problem found in SKE. The initiator's
865 public key too is now added to the HASH hash value creation
866 which is signed by the responder to create the SIGN value.
867 This will prevent anyone in the middle to lie to the responder
868 about the initiator's public key. If this is done now, the
869 man in the middle will get caught. Updated the protocol
872 Sun Nov 4 11:43:53 EET 2001 Pekka Riikonen <priikone@silcnet.org>
874 * Better installation directory handling. Configure module
875 paths and other paths automatically to example_silc* files
876 in doc/. A patch by toma.
878 * Fixed compiler warning from MPI library, and from SILC RNG.
881 * Added SILC_SERVER_PID_FILE to define the pid file for server.
882 It can be configured with ./configure. A patch by toma.
884 Sat Nov 3 23:48:23 EET 2001 Pekka Riikonen <priikone@silcnet.org>
886 * Find correct make to use in prepare-clean. A patch by
887 toma. Affected file prepare-clean.
889 Sat Nov 3 22:04:00 PST 2001 Brian Costello <bc@mksecure.com>
891 * Added irssi variables use_auto_addr, auto_bind_ip,
892 auto_bind_port and auto_public_ip.
894 * Changed the interface for silc_client_send_key_agreement
895 in lib/silcclient/silcapi.h
899 irssi/src/silc/core/silc-core.c
901 lib/silcclient/silcapi.h
902 irssi/src/silc/core/silc-channels.c
903 lib/silcclient/client_keyagr.c
906 Sat Nov 3 17:48:55 EET 2001 Pekka Riikonen <priikone@silcnet.org>
908 * Added silc_pkcs_public_key_compare to compare two
909 public keys. Affected file lib/silccrypt/silcpkcs.[ch].
911 * Check that the client who set the founder mode on the
912 channel is the same client that is giving the founder
913 mode to itself. It is done by comparing the saved public
914 key (it is saved even in the authentication is passphrase).
915 Affected file silcd/command.c.
917 Fri Nov 2 18:52:08 EST 2001 Pekka Riikonen <priikone@silcnet.org>
919 * Do not process packet for disconnected socket connection.
920 Affected file lib/silccore/silcpacket.c.
922 * Process the DISCONNECT packet through scheduler in the
923 client library. Affected file lib/silcclient/client.c.
925 * Fixed the silc_client_packet_parse to not to increase
926 the packet sequence number if the conn->sock and the
927 current socket connection is not same. This can happen
928 for example during key agreement when the conn includes
929 multiple socket connections (listeners). Affected file
930 lib/silcclient/client.c.
932 * The sender of the file transfer request now provides also
933 the pointer (listener) for the key exchange protocol. If
934 the listener cannot be created then it sends empty key
935 agreement and lets the receiver provide the listener.
937 Added `local_ip' and `local_port' arguments to the
938 silc_client_file_send. If they are provided they are used,
939 if not then it will attempt to find local IP address, if
940 not found or bind fails then the remote client will provide
943 Affected files are lib/silcclient/client_ftp.c and
944 lib/silcclient/silcapi.h.
946 * Extended the FILE SEND command to support defining the
947 local IP and port for key exchange listener. They are
948 optional. Affected file irssi/src/silc/core/silc-servers.c.
950 Thu Nov 1 22:10:07 EST 2001 Pekka Riikonen <priikone@silcnet.org>
952 * Defined to WHOIS command reply the sending of fingerprint
953 of the client's public key (if the proof of posession of the
954 corresponding private key is verified by the server).
955 Updated to the protocol specification.
957 * Added support of receiving the client's public key's
958 fingerprint in command reply in client library. Affected
959 file is lib/silcclient/command_reply.c, and
960 lib/silcclient/idlist.[ch].
962 Thu Nov 1 18:06:12 EST 2001 Pekka Riikonen <priikone@silcnet.org>
964 * Do not send over 128 chars long nickname to the server
965 in NICK command. Affected file lib/silcclient/command.c.
967 * Do not send over 256 chars long channel names to the server
968 in JOIN command. Affected file lib/silcclient/command.c.
970 Tue Oct 30 22:48:59 EST 2001 Pekka Riikonen <priikone@silcnet.org>
972 * Assure that silc_server_close_connection cannot be called
973 twice for same socket context. Affected file is
976 Tue Oct 30 16:58:14 EST 2001 Pekka Riikonen <priikone@silcnet.org>
978 * Send error message to application if opening file for
979 writing during file transfer fails. Affected file is
980 lib/silcclient/client_ftp.c.
982 Remove all file transfer sessions for a client that we're
983 removing from ID cache.
985 Affected file is lib/silcclient/client_ftp.c.
987 * Fixed silc_net_addr2bin to return correct address. Affected
988 file lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
990 * Fixed file transfer session removing on signoff notify.
991 Affected file irssi/src/silc/core/silc-servers.c.
993 * Added the SilcClientFileError to be returned in the monitor
994 callback. Added NO_SUCH_FILE and PERMISSION_DENIED errors.
995 Affected file lib/silcclient/silcapi.h.
997 Mon Oct 29 17:43:04 EST 2001 Pekka Riikonen <priikone@silcnet.org>
999 * Fixed a crash in silc_client_ftp_free_sessions and
1000 silc_client_ftp_session_free_client. Affected file
1001 lib/silcclient/client_ftp.c.
1003 * Added `disabled' field in the SilcChannelEntry in the server
1004 to indicate if the server entry is disabled. Affected file
1005 silcd/idlist.h, silcd/command[_reply].c.
1007 * SILC server adds now /var/run/silcd.pid everytime it is
1008 started. Affected file silcd/silcd.c.
1010 * Added silc_server_packet_send_clients to send a packet to
1011 the provided table of client entries. Affected file
1012 silcd/packet_send.[ch].
1014 * Fixed a crash in client resolving in client_prvmsg.c in
1015 client library. Affected file lib/silcclient/client_prvmsg.c.
1017 * Do not actually remove the client directly from ID cache
1018 during SERVER_SIGNOFF, but invalidate it. This way we
1019 preserve the WHOWAS info for the client. Affected file
1020 silcd/server_util.c.
1022 * Fixed SERVER_SIGNOFF notify handling in the server. The
1023 server is now able to process incoming SERVER_SIGNOFF notify
1024 for a server that it doesn't even know about. It will remove
1025 the clients provided in the notify. Affected file
1026 silcd/packet_receive.c.
1028 * Check for partial packet in data queue after every packet that
1029 was found from the queue. Return and wait for more data if
1030 there is partial data in queue. Affected file is
1031 lib/silccore/silcpacket.c.
1033 Sun Oct 28 18:46:27 EST 2001 Pekka Riikonen <priikone@silcnet.org>
1035 * Added SilcClietFileError enum to indicate error in
1036 file transfer. Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
1037 and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
1038 Affected files lib/silcclient/silcapi.h and
1039 lib/silcclient/client_ftp.c.
1041 * Check that newsize in silc_buffer_realloc is larger than
1042 the old buffer's size. Affected file lib/silcutil/silcbufutil.h.
1044 * Added better monitor of file transfers. It now monitors
1045 key agreement protocol during the file transfer too. Added
1046 error reporting too. Affected files
1047 irssi/src/silc/core/silc-servers.c,
1048 irssi/src/fe-common/silc/module-formats.[ch].
1050 * Wrote a help file for FILE command.
1052 * Added silc_rng_global_get_byte_fast to get not-so-secure
1053 random data as fast as possible. Random data is read from
1054 /dev/urandom if available and from the SILC RNG if not
1055 available. It is used in padding generation. Affected file
1056 lib/silccrypt/silcrng.[ch].
1058 * All packets in client library are now processed synchronously.
1059 Optimized packet processing a lot. Affected file
1060 lib/silcclient/client.c.
1062 * All server connection packets are processing synchronously
1063 now in server, to optimize packet processing. Affected file
1066 * Include files are installed now only in Toolkit distribution
1067 if make install is given. Affected files: all Makefile.am's.
1069 Thu Oct 25 22:44:06 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1071 * Assure that silc_client_notify_by_server_resolve does not
1072 resolve the client information multiple times. If it cannot
1073 be found by the first it cannot be found at all. Affected
1074 file lib/silcclient/client_notify.c.
1076 * Fixed WHOWAS command reply calling. Affected file
1077 lib/silcclient/command_reply.c.
1079 * Removed all references to silc_idlist_get_client from the
1080 Irssi SILC client since that call is internal call used by
1081 the library. The Irssi SILC client will use now client
1082 retrieval functions found in silcapi.h.
1084 * Fixed a bug in resolving nickname info before sending
1085 private message. It used freed memory. Affected file
1086 irssi/src/silc/core/silc-servers.c.
1088 Thu Oct 25 19:04:49 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1090 * Assure my_channels statistics cannot go negative in server.
1091 Affected files silcd/server.c, silcd/server_util.c.
1093 Wed Oct 24 19:53:05 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1095 * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
1097 Tue Oct 23 13:51:19 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1099 * Win32 Toolkit changes. Affected files
1100 win32/silc.dsw, win32/libsilc/libsilc.def,
1101 win32/libsilcclient/libsilc.def,
1102 lib/silcutil/silcutil.c, and
1103 lib/sftp/sftp_fs_memory.c.
1105 Mon Oct 22 16:35:05 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1107 * Added silc_net_localip to return local host's IP address.
1108 Affected file lib/silcutil/silcnet.[ch].
1110 * If key exchange or rekey protocol is active for a connection
1111 parse all packets syncronously since there might be packets
1112 in packet queue that we are not able to process without first
1113 processing packets before them. Affected file silcd/server,
1114 lib/silcclient/client.c.
1116 * SilcPacketParserCallback now returns TRUE or FALSE to indicate
1117 whether library should continue processing the packet.
1118 Affected file lib/silccore/silcpacket.h.
1120 * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
1121 SilcSFTPMonitorData to SFTP server to monitor various
1122 SFTP client requests. Affected file lib/silcsftp/silcsftp.h,
1123 lib/silcsftp/sftp_server.c.
1125 * Added silc_file_size to return file size. Affected file
1126 lib/silcutil/silcutil.[ch].
1128 * Implemented the file transfer support for the client library.
1129 Added preliminary support for simple client to client one-file
1130 transmission. Affected file lib/silcclient/client_ftp.c,
1131 lib/silccilent/client.[ch].
1133 * Added new local command FILE to the Irssi SILC Client.
1134 It is used to perform the file transfer. It has subcommands
1135 SEND, RECEIVE, SHOW and CLOSE. Affected files
1136 irssi/src/silc/core/client_ops.c,
1137 irssi/src/silc/core/silc-server.[ch].
1139 Mon Oct 22 12:50:08 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1141 * Relay the SILC_PACKET_FTP in the server. Affected files
1142 silcd/server.c and silcd/packet_receive.c.
1144 Sun Oct 21 20:21:02 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1146 * Renamed silc_file_read and silc_file_write to functions
1147 silc_file_readfile and silc_file_writefile. Added function
1148 silc_file_open and silc_file_close. Affected files
1149 lib/silcutil/silcutil.[ch].
1151 Thu Oct 18 20:58:13 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1153 * Resolve the client info when received private message or
1154 channel message for a client which nickname we don't know.
1155 Affected files lib/silcclient/client_prvmsg.c and
1156 lib/silcclient/client_channel.c.
1158 * Do not crash in /KEY if client is not connected. Affected
1159 file irssi/src/silc/core/silc-channels.c.
1161 * Added SilcClientStatus field to the SilcClientEntry in the
1162 lib/silcclient/idlist.h.
1164 Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
1165 is incomplete and is being resolved, it won't be resolved
1168 Make sure also that USERS command reply does not resolve
1169 twice information. Affected file is
1170 lib/silcclient/command_reply.c.
1172 Make sure that silc_client_get_clients_by_list does not
1173 resolve twice same information.
1175 * Check for valid client->id in the silc_server_free_client_data.
1176 Affected file silcd/server.c.
1178 * Fixed /GETKEY nick@server not to crash if the server entry
1179 is not found. Affected file lib/silcclient/command.c.
1181 * Fixed the silc_server_check_cmode_rights to check the
1182 requested modes correctly. Affected file silcd/command.c.
1184 Thu Oct 18 12:10:22 CEST 2001 Pekka Riikonen <priikone@silcnet.org>
1186 * Better checks for non-printable chars in nick added.
1187 Affected file silcd/command.c.
1189 Thu Oct 18 09:18:58 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1191 * Call the silc_server_udpate_servers_by_server in the
1192 primary router that comes back online in the backup resuming
1193 protocol. Otherwise it routes packets wrong. Affected file
1194 silcd/server_util.[ch], silcd/server_backup.c.
1196 Wed Oct 17 16:51:18 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1198 * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
1199 lib/silcutil/silcbuffmt.[ch].
1201 * Redefined the SILC packet header to include the padding
1202 length. Affected file lib/silccore/silcpacket.[ch].
1204 * Added SILC_PACKET_PADLEN_MAX macro to return the padding
1205 length for maximum padding up to 128 bytes). Affected
1206 file lib/silccore/silcpacket.h.
1208 * Removed all backwards support for old 0.5.x MAC thingies.
1209 The SILC packet header change makes it impossible to be
1210 backwards compatible.
1212 * Send the ENDING packet with timeout in the backup resuming
1213 protocol. This is to assure that all routers has connected
1214 to the primary router. Affected file silcd/server_backup.c.
1216 * Changed the RNG to take the first IV from random data. It
1217 used to take it from zero actually. Changed the RNG also
1218 to use /dev/urandom during session. /dev/random is used
1219 in initialization. Affected file lib/silccrypt/silcrng.[ch].
1221 Tue Oct 16 20:45:49 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1223 * Changed the SILC packet header to have the first two bytes
1224 (the packet length) encrypted. Affected files aroung the
1225 code tree, lib/silccore/silcpacket.[ch]. Removed the
1226 SilcPacketCheckDecrypt callback. It is not needed anymore
1227 since the silc_packet_receive_process will determine now
1228 whether the packet is normal or special.
1230 * Implemented the unidirectional MAC keys. Affected files
1231 lib/silcske/silcske.c, silcd/protocol.c and
1232 lib/silcclient/protocol.c.
1234 * Implemented the packet sequence number to the MAC computation.
1235 Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
1236 silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
1237 lib/silcclient/protocol.c.
1239 Mon Oct 15 17:42:55 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1241 * Allow backup router to announce servers. All servers
1242 announced by backup router are added to the global list
1243 automatically. Update hte server's socket to our primary
1244 router also when backup router announces a server.
1245 Affected file silcd/packet_receive.c.
1247 * Do not update the client->router in the function
1248 silc_server_udpate_clients_by_server if the client is on
1249 global list. We might fail to find any specific server
1250 for locally connected clients and local cell clients. They
1251 should still use the `from' and not `to' as client->router.
1252 This fixes backup router resuming protocol. Affected file
1253 silcd/server_util.c.
1255 * Decrease channel statistics count only if the channel
1256 deletion worked. Affected files are silcd/server.c and
1257 silcd/server_util.c.
1259 * Added silc_server_update_servers_by_server to update origin
1260 of all server entries. Used during backup router protocol.
1261 Affected files silcd/server_util.[ch], silcd/server.c. and
1262 silcd/backup_router.c.
1264 * ROBODoc documented the lib/silccrypt/silchmac.h. Added new
1265 function silc_hmac_init, silc_hmac_update, silc_hmac_final,
1266 silc_hmac_get_hash and silc_hmac_get_name. Affected file
1267 lib/silccrypt/silchmac.c.
1269 Sun Oct 14 18:28:22 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1271 * Assure that router cannot reroute the same channel message
1272 to the sender. Affected file silcd/packet_receive.c.
1274 Sat Oct 13 12:46:18 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1276 * Made better checks that the channel message is not sent
1277 to the router it came from. Affected file is
1278 silcd/packet_send.c. Fixed memory leak too.
1280 * Announce informations for incoming router connection, but
1281 only after checking if it is replaced by backup router.
1282 Affected file silcd/packet_receive.c.
1284 Fri Oct 12 18:37:24 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1286 * Fixed the backup resuming protocol to work in multiple
1287 router environment. Affected file silcd/server_backup.c.
1289 * Route packet only to one router in the function
1290 silc_server_packet_send_to_channel. Affected file is
1291 silcd/packet_send.c.
1293 * Fixed silc_server_send_notify_dest to set the broadcast
1294 flag. Fixed the silc_server_send_notify_topic to actually
1295 send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
1296 Affected file silcd/packet_send.c.
1298 * Changed the SFTP Filesystem interface. Changed the
1299 SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
1300 the filesystem operation function. The SilcSFTPFilesystem
1301 is now a context that is allocated by all filesystem allocation
1302 functions and it already includes the operations structure
1303 and filesystem specific context. It is given as argument
1304 now to the silc_sftp_server_start. This made the interface
1305 a bit cleaner. Affected file lib/silcsftp/silcsftp[_fs].h,
1306 lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
1308 Thu Oct 11 22:19:26 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1310 * Changed the backup router adding and getting interfaces
1311 in the server. The router that will be replaced by the
1312 specified backup router is now sent as argument. Affected
1313 files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
1316 * Added silc_net_addr2bin_ne to return the binary form of
1317 the IP address in network byte order. Affected files
1318 lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
1320 Thu Oct 11 12:14:19 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1322 * Check for existing server ID in silc_server_new_server
1323 and in silc_server_connect_to_router_final and remove the
1324 old entry if it exists. Affected file silcd/packet_receive.c,
1327 * Send the channel message always to only one router, either
1328 in upstream or downstream. Affected file is
1329 silcd/packet_send.c.
1331 Tue Oct 9 17:45:43 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1333 * Wrote the definition of the backup resuming protocol to the
1334 protocol specification.
1336 * Removed one redundant channel key generation from normal
1337 server during joining procedure. Removed one redundant
1338 channel key sending from server to router during joining
1339 procedure. Affected file silcd/command.c.
1341 * Made minor bugfixes to the backup router resuming protocol.
1342 Affected file silcd/server_backup.c, server.c.
1344 Mon Oct 8 16:47:42 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1346 * Added --disable-asm configuration option. Affected files
1347 configure.in.pre, lib/silcmath/mpi/configure.in. A patch
1350 * Implemented the backup resuming protocol that is used to
1351 resume the primary router position in the cell after the
1352 primary router comes back online. Affected files
1353 silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
1354 and silcd/server_util.[ch].
1356 Sun Oct 7 12:29:25 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1358 * Sleep two (2) seconds after sending QUIT command to server.
1359 Affected file lib/silcclient/command.c.
1361 * Assure that if outgoing data buffer is pending do not force
1362 send any data. Affected file silcd/packet_send.c.
1364 * Assure that if outgoing data buffer is pending do not force
1365 send any data. Affected file lib/silcclient/client.c.
1367 * Implemented the backup router support when the primary router
1368 goes down. The servers and routers can now use the backup
1369 router as new primary router without loosing connectivity.
1371 Sat Oct 6 21:18:54 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1373 * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
1374 in the server to indicate disabled entry. All data read
1375 from the connection will be ignored and no data is sent
1376 for entry that is disabled. Affected files are
1377 silcd/idlist.h, silcd/server.c.
1379 Fri Oct 5 00:03:29 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1381 * Created SFTP client and server test programs in the
1382 lib/silcsftp/tests directory.
1384 Wed Oct 3 23:31:42 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
1386 * Implemented memory filesystem (virtual filesystem) for
1387 SFTP server. Affected file lib/silcsftp/silcsftp_fs.h,
1390 Sun Sep 30 22:10:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1392 * Implemented the SFTP (SSH File Transfer Protocol) to the
1393 lib/silcsftp. It includes SFTP client and SFTP server
1396 Sun Sep 30 10:35:44 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1398 * Moved lib/silccore/silcprotocol.[ch] to the
1399 lib/silcutil library.
1401 * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
1402 take variable argument list pointer as argument. Affected
1403 file lib/silcutil/silcbuffmt.[ch].
1405 * Added silc_buffer_set function that is used to set data
1406 to a SilcBuffer that is not allocated at all (SilcBufferStruct).
1407 Affected file lib/silcutil/silcbuffer.h.
1409 * Changed various routines in the core library to use the new
1410 silc_buffer_set instead of allocating new buffer only for
1413 * Added 64-bit value formatting and unformatting support to the
1414 silc_buffer_[un]format routines. Affected file is
1415 lib/silcutil/silcbuffmt.[ch].
1417 Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
1418 to includes/bitmove.h.
1420 Fri Sep 28 21:30:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1422 * Fixed channel user mode saving in client library. Affected
1423 file lib/silcclient/command[_reply].c.
1425 Thu Sep 27 22:52:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1427 * Defined the file transfer to the SILC Protocol. Added
1428 new packet type SILC_PACKET_FTP and defined File Transfer
1429 Payload. The mandatory file transfer protocol is SFTP
1430 (SSH File Transfer Protocol). Affected file in addition
1431 of the internet draft is lib/silccore/silcpacket.h.
1433 * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
1434 packet SILC_PACKET_RESUME_ROUTER instead. The new packet
1435 is used as part of backup router protocol when the primary
1436 router of the cell is back online and wishes to resume
1437 the position as primary router.
1439 * Redefined the MAC generation keys in the protocol. The
1440 same key is not used anymore in both direction. Both
1441 direction will now use different keys for sending and
1442 receiving. This fixes a potential security flaw. This
1443 change causes incompatibilities in the protocol.
1445 * Redefined also the MAC computation from the packet.
1446 An packet sequence number is now added to the MAC
1447 computation. This prevents possible replay attacks against
1448 the protocol. This change too causes incompatibilities
1451 Added `sequence' field to the SilcPacketContext to hold
1452 the current sequence number for the packet.
1454 Wed Sep 26 20:15:22 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1456 * Added `created' field to the SilcIDListData in the file
1457 silcd/idlist.h to indicate the time when the entry was
1460 * Added `created' field to the SilcChannelEntry too. Affected
1461 file silcd/idlist.h.
1463 * Added `creation_time' aguments to all the announcement functions
1464 in the server. If it is provided then only the entries that
1465 was created after the provided time frame are actually
1466 announced. Affected file silcd/server.[ch].
1468 * The protocol says that the Channel ID's IP address must be
1469 based on the router's IP address. Added check for this in
1470 the silc_server_new_channel when processing incoming New Channel
1471 Payload. Affected file silcd/packet_receive.c.
1473 * Print out the correct version with --version in SILC client.
1474 Affected file irssi/src/silc/core/silc-core.c.
1476 Mon Sep 24 17:19:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1478 * Fixed WHOWAS command to check for completnes of the client
1479 entry always, not just when the command is coming from client.
1480 Affected file silcd/command.c.
1482 * Added new function silc_server_packet_queue_purge to purge the
1483 outgoing data queue to the network. After the function returns
1484 it is guaranteed that the outgoing packet queue is empty.
1485 Affected file silcd/packet_send.[ch].
1487 * Purge the outgoing packet queue in the rekey protocol's final
1488 callback to assure that all rekey packets go to the network
1489 before quitting the protocol. Affected file silcd/server.c.
1491 * Added silc_client_packet_queue_parse as similar function as
1492 in server to the client library. The affected file is
1493 lib/silcclient/client.c.
1495 Sun Sep 23 15:15:53 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1497 * Splitted silcd/server.c and created silcd/server_util.[ch]
1498 for utility functions.
1500 * Added new socket flag SILC_SF_DISABLED to indicate that the
1501 connection is open but nothing can be sent to or received from
1502 the connection. Affected file lib/silcutil/silsockconn.[ch].
1503 The checking for disabled socket is checked in the low level
1504 silc_socket_write and silc_socket_read functions.
1506 Thu Sep 20 23:11:28 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1508 * Allow only nicknames and channel names that fits into the
1509 7-bit unsigned char ASCII set. Affected file silcd/command.c.
1511 Thu Sep 20 18:04:12 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1513 * When processing JOIN command reply in server check that if
1514 the channel exists in our global list we'll move it the local
1515 list. Affected file silcd/command_reply.c.
1517 * Fixed the check whether client is joined on the channel already
1518 in JOIN command. Affected file lib/silcclient/command.c.
1520 * Fixed the JOIN command reply to check whether the channel
1521 already exists. Affected file lib/silcclient/command_reply.c.
1523 Wed Sep 19 22:58:32 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1525 * Added silc_ske_status_string to map the SKE error numbers
1526 to readable strings. The affected files are
1527 lib/silcske/silcske[_status].[ch].
1529 Tue Sep 18 22:50:41 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1531 * Do not show the private channels on the WHOIS channel list
1532 as it is not allowed by the protocol. The affected file is
1535 Sun Sep 16 12:32:58 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1537 * Assure that the packet length digged from the actual packet
1538 is something sensible in the silc_packet_decrypt_rest_special
1539 in lib/silccrypt/silcpacket.c.
1541 * Free and NULL the allocated pointer in silc_hmac_alloc if
1542 the HMAC allocation fails. The affected file is
1543 lib/silccrypt/silchmac.c.
1545 * Print the selected security properties to the log files in
1546 the server. Affected file silcd/protocol.c.
1548 * Add SKE's reference counter even if calling the completion
1549 callback manually. Otherwise it goes negative, although it
1550 does not cause any problems. The affected file is
1551 lib/silcske/silcske.c.
1553 * Remove the client entry with short timeout after giving the
1554 KILL command. Affected file lib/silcclient/command.c.
1556 * Fixed to send error reply in WHOIS and IDENTIFY commands in
1557 case all found clients are already disconnected (WHOWAS would
1558 found them) in the server. Affected file silcd/command.c.
1560 * Update the last_receive (time of last data received) to be
1561 updated only when received private or channel message so that
1562 the idle time showed in WHOIS makes more sense.
1564 * Added boolean field `valid' in to the SilcClientEntry in the
1565 client library to indicate whether the entry is valid or not.
1566 This fixes the nickname change bug on channel when changing
1567 the nickname to be same than the old (like nick to Nick) the
1568 nickname formatter doesn't set the new nick anymore to Nick@host.
1569 Affected file lib/silcclient/idlist.[ch].
1571 * Now actually fixed the nickname changing on disconnection.
1572 Added new function silc_change_nick to the Irssi SILC Client.
1573 Affected file irssi/src/silc/core/client_ops.c,
1574 irssi/src/silc/core/silc-nicklist.[ch].
1576 Sat Sep 15 13:29:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1578 * Check that the public key exists in the GETKEY command before
1579 trying to encode it. Affected file silcd/command.c.
1581 * Print some notifications on received public keys with GETKEY
1582 command in the Irssi SILC Client. Affected files are
1583 irssi/src/fe-common/silc/module-formats.[ch],
1584 irssi/src/silc/core/client_ops.c.
1586 * Use IDENTIFY command to resolve the server information in the
1587 GETKEY command instead of INFO command. Affected file
1588 lib/silcclient/command.c.
1590 * All command reply functions in the client library now calls
1591 the pending command reply callbacks even if an error has
1592 occurred. The server has done this a long time and now it was
1593 time to move the client library to this as well. Now all
1594 errors can be delivered back to the pending command reply
1595 callbacks if necessary. Affected files are
1596 lib/silcclient/command[_reply].[ch].
1598 * Change the nickname on disconnection back to the username
1599 because in reconnect the server will enforce it to it anyway.
1600 Affected file irssi/src/silc/core/silc-servers.c.
1602 * Fixed a config file parsing bug in the Irssi SILC client.
1603 Affected file irssi/src/silc/core/clientconfig.c.
1605 Thu Sep 13 23:11:18 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1607 * When printing the channel mode on JOIN, verify that the
1608 channel key and channel's HMAC are valid. Affected file
1609 irssi/src/silc/core/client_ops.c.
1611 Thu Sep 13 20:24:52 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1613 * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
1614 SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
1615 lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
1617 * Removed channel key rekey task deleting from the function
1618 silc_server_save_channel_key. Affected file silcd/server.c.
1619 Added explicit timeout task context instead that is used to
1620 delete the task if we are registering a new task before the
1621 new task has elapsed.
1623 * When channel key rekey occurs the client library now saves
1624 the old channel key for a short period of time (10 seconds) and
1625 is able to use it in case some is still sending channel
1626 messages encrypted with the old key after the rekey. Affected
1627 file lib/silcclient/[idlist.h|client_channel.c].
1629 Sun Sep 9 15:49:16 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1631 * Added check to the silc_server_new_id_real to not accept
1632 new ID if it is the sender's own ID. Affected file is
1633 silcd/packet_receive.c.
1635 * Assure that we do not announce ourself or the one we've
1636 sending our announcements when we're router and are announcing
1637 servers to our primary router. Affected file silcd/server.c.
1639 * Fixed silc_server_command_identify_check_client to assemble
1640 correct WHOIS packet. It send corrupted WHOIS packet and
1641 caused problem with router to router connections. Affected
1642 file silcd/command.c.
1644 Fixed also silc_server_command_whois_check the same way
1645 as for the IDENTIFY command.
1647 * Added new SilcIDListStatus to the server in the SilcIDListData
1648 structure. The status now includes the current status of
1649 the entry (like registered, resolved etc.). Affected file
1650 silcd/idlist.[ch]. Defined a bunch of different status types
1651 as well. This replaced the old boolean registered field as well.
1653 Added resolve_cmd_ident field to the SilcClientEntry structure
1654 too so that if the entry is for example being resolved so
1655 another command may attach to the same pending command reply
1656 without requiring to resolve the same entry again. This concept
1657 should optimize the WHOIS and the IDENTIFY resolving under
1658 heavy load by taking away unnecessary resolving for entries
1659 that are being resolved already.
1661 Added support for adding multiple pending commands for one
1662 command idenfier. Affected file silcd/command[_reply].[ch].
1664 * Fixed WHOIS and IDENTIFY save to remove the cache entry
1665 before deleting the data. Otherwise the hash table will have
1666 freed data in comparison functions. Affected file is
1667 silcd/command_reply.c.
1669 * Fixed silc_idlist_replace_client_id to add the new entry to
1670 the cache with NULL nickname. Otherwise there will be invalid
1671 memory as the nickname after the nickname is freed. Affected
1672 file silcd/packet_receive.c.
1674 * Fixed the silc_idlist_get_clients_by_hash. The entries was
1675 saved into wrong slots because the previous number of entries
1676 was not taken into account. Affected file silcd/idlist.c.
1677 Fixed same thing in silc_idlist_get_clients_by_nickname too.
1679 * If we are router and we receive JOIN notify to a channel that
1680 does not have any users then notified client is marked as the
1681 channel founder, as it is it. The affected file is
1682 silcd/packet_receive.c
1684 * Added to the extended hash table API's table_del_*ext functions
1685 the destructor as argument too, so that the caller can decide
1686 which destructor to use or whether to use destructor at all.
1687 Affected file lib/silcutil/silchashtable.[ch].
1689 * Fixed ID Cache purging. It actually deleted the entries from
1690 the hash table after the data was freed. The hash table ended
1691 up comparing freed memory. The affected file is
1692 lib/silccore/silcidcache.c.
1694 Sat Sep 8 10:22:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1696 * Fixed Irssi SILC client's KILL command's HELP syntax.
1698 * The USERS command now resolves the detailed user information
1699 if the userinfo field is missing. Affected file is
1700 lib/silcclient/command_reply.c.
1702 * Do not print error in silc_file_read if the read file does
1703 not exist. Just silently return NULL. Affected file is
1704 lib/silcutil/silcutil.c.
1706 * Fixed the silc_log_output to not wine about NULL filename
1707 and to not create some bogus " " filename. Affected file is
1708 lib/silcutil/silclog.c.
1710 Fri Sep 7 22:16:38 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1712 * Fixed various printing bugs on the user interface in the
1713 Irssi SILC Client. Minor changes that were forgotten from
1716 Fri Sep 7 17:28:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1718 * Fixed the configure.in.pre and the compilation and distribution
1719 environment to support the new autoconf 2.52. That version is
1720 now required to compile the CVS trunk.
1722 Thu Sep 6 12:47:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1724 * Renamed function silc_parse_nickname to silc_parse_userfqdn
1725 to generally parse user@fqdn format strings. Affected file
1726 lib/silcutil/silcutil.c.
1728 * Added nickname_format and nickname_force_format fields to the
1729 SilcClientParams structure. The first one defines the format
1730 for the nicknames that the library will enforce if the receives
1731 multiple same nicknames. The second one is boolean value and
1732 can be used to force the library to always enforce the format
1733 to the nicknames regardles whether there are multiple nicknames
1734 or not. This configurable formatting was employed to flexibly
1735 support accessing multiple nicknames from the user interface.
1736 The userinterface can now set the nicknames to what ever format
1737 they prefer. Affected file lib/silcclient/silcapi.h.
1739 Added function silc_client_nickname_format to the file
1740 lib/silcclient/idlist.c. It performs the nickname formatting.
1742 Added new field `hostname´ to the SilcClientEntry context.
1743 It holds the hostname of the client. Affected file is
1744 lib/silcclient/idlist.h.
1746 * Irssi SILC Client sets the nicknames in nick@hostn format.
1747 Fe. priikone@otaku, priikone@otaku2 etc. Affected file
1748 irssi/src/silc/core/silc-core.c.
1750 The WHOIS printing now also shows both the real nickname and
1751 the formatted nickname so that user knows how to access the
1752 user if there are multiple same nicknames cached. Affected
1753 file irssi/src/silc/core/client_ops.c. Changed the WHOIS
1754 printing formatting too to take the hostname now as a separate
1755 argument. The Affected file is
1756 irssi/src/fe-common/silc/modules-formats.[ch].
1758 * Changed the silc_client_get_clients_local to accept the formatted
1759 nickname as argument. It accepts the real nickname too but the
1760 formatted nickname can be used to find the true entry from
1761 multiple entries. Affected file lib/silcclient/silcapi.h and
1762 lib/silcclient/idlist.c.
1764 * Added nickname_format_parse field to the SilcClientParams.
1765 It is a callback function provided by the application to parse
1766 the nickname out of the formatted nickname string. The library
1767 calls it to get the nickname from the formatted string. Since
1768 the application generally knows better the format of the nickname
1769 string it parses it instead of the library, even though library
1770 encodes the formatted string. If the callback function is not
1771 provided then the library will use the string as is. The
1772 affected file is lib/silcclient/silcapi.h.
1774 * All the nickname strings passed to the client library in
1775 commands are now expected to be formatted nickname strings.
1776 If the command does not support the formatted nickname string
1777 it will assume that the sent string is the actual nickname.
1778 Affected file lib/silcclient/command.c.
1780 Tue Sep 4 22:31:28 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1782 * Added public key authentication support to OPER and SILCOPER
1783 commands in the client library. Affected file is
1784 lib/silcclient/command.c.
1786 Tue Sep 4 12:39:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1788 * Changed the get_auth_methdod client operation to be asynchronous.
1789 It can be async if the application resolves the authentication
1790 method from the server during the negotiation. Added new
1791 SilcGetAuthMeth completion callback that the application will
1792 call after resolving the authentication method.
1794 Added function silc_client_request_authentication_method that
1795 the application can use to resolve the authentication method
1796 from the server. Added also SilcConnectionAuthRequest callback
1797 that the library will call after the server has replied. The
1798 application can call this function if it does not know the
1799 current authentication method.
1801 Affected files are lib/silcclient/client.c and
1802 lib/silcclient/silcapi.h.
1804 * The Irssi SILC client now automatically resolves the authentication
1805 method incase any configuration information is not present (and
1806 currently there never is). The affected file is
1807 irssi/src/silc/core/client_ops.c.
1809 * Fixed public key authentication from the client library.
1810 Affected file lib/silcclient/protocol.c. Changed also the
1811 protocol specification about the public key authentication in
1812 the connection authentication protocol. The actual data to be
1813 signed is now computed with a hash function before signing.
1815 * Fixed the public key authentication from the server as well.
1816 Affected file silcd/protocol.c.
1818 * Removed the mlock()'s from the memory allocation routines.
1819 Affected file lib/silcutil/silcmemory.c. The ./configure does
1820 not check anymore for the mlock(). Affected file is
1823 * Fixed USERS command in server to allow the execution of the
1824 command for private and secret channels if the client sending
1825 the command is on the channel. Affected file silcd/command.c.
1827 * Fixed silc_client_get_clients_local to return the clients
1828 count correctly. It could return wrong value. Affected file
1829 lib/silcclient/idlist.c.
1831 Mon Sep 3 20:09:59 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1833 * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
1834 types. The assembler optimizations seemed not to like 64-bit
1835 data types. The assmebler optimizations thus are now enabled
1836 also for BSD systems as opposed to only enable them for Linux.
1838 * Do not check for threads at all on BSD systems. Affected
1839 file configure.in.pre.
1841 * Removed -n and -h options from the Irssi SILC Client since
1842 they are not used in silc.
1844 * Fixed the prime generation to assure that the first digit
1845 of the generated random number is not zero since our conversion
1846 routines does not like number strings that starts with zero
1847 digit. If zero digit is seen the random number is regenerated.
1848 This caused some corrupted RSA keys when the zero first digit
1849 was met. Affected file lib/silcmath/silcprimegen.c.
1851 Sun Sep 2 17:17:24 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1853 * Fixed WIN32 configuration in the ./configure script.
1854 Fixed to include xti.h on environments that has it.
1855 Patches by Carsten Ilchmann and andrew.
1857 Sat Sep 1 00:29:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1859 * Changed the silc_id_create_client_id to be collision
1860 resistant. It is now assured that there cannot be created
1861 two same client ID's. I suspect that some weird bugs in
1862 the server were actually caused by duplicate Client IDs.
1863 Affected file silcd/serverid.[ch]. A router receiving
1864 new ID now also assures and informs the sending server
1865 if the ID caused collision.
1867 * Changed the silc_id_create_channel_id to also assure that
1868 there are no collisions.
1870 Wed Aug 29 17:55:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1872 * Statement about ignoring the Mutual Authentication flag when
1873 performing rekey with PFS was a bit misleading. It is ignored
1874 if it was set in the initial negotiation, it cannot be even
1875 set in the rekey. Fixed in the ke-auth draft. Started the
1876 new versions of the protocol drafts in the doc/.
1878 Sun Aug 26 14:59:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1880 * Fixed a bug in silc_client_command_identify_save when saving
1881 new channel information. The channel name was no duplicated
1882 and caused crash on exit. Affected file is
1883 lib/silcclient/command_reply.c.
1885 Fri Aug 17 23:07:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1887 * Fixed the getkey command handling in the server. Send just
1888 empty OK reply to the sender if the key could not be fetched
1889 (but everything else was ok, like the key just was not available).
1890 Changed the public key parameter to optional in the protocol
1891 specs so that empty OK reply can be sent. Affected file
1894 Added a message to Irssi SILC client to tell to user if the
1895 server did not return a public key.
1897 Tue Aug 14 07:29:27 CEST 2001 Pekka Riikonen <priikone@silcnet.org>
1899 * Fixed a channel key regeneration bug. It registered new
1900 timeout tasks exponentially until all system resources were
1901 used. Affected file silcd/server.c.
1903 Sun Aug 12 20:48:14 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1905 * Added the SILC Document generator to the scripts/silcdoc.
1906 It can be used to generate the Toolkit Reference Manual out
1907 of the source tree. Internally it will also use the RoboDoc
1908 generator now imported in util/robodoc.
1910 Sun Aug 12 12:28:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1912 * Added couple of return's in rekey protocol if error orccurred
1913 during the protocol. The execution must be terminated.
1914 Affected file silcd/protocol.c. Also, terminate the protocol
1915 always with timeout.
1917 Sat Aug 11 12:36:02 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1919 * The client's Client ID was created initally from the wrong
1920 nickname (it could have been in format nick@host) in the
1921 silc_server_new_client. Affected file silcd/packet_receive.c
1923 Sat Aug 11 00:29:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1925 * Added some SILC_LOG_ERROR's to various error conditions
1926 if client could not be added to ID cache. Affected files
1927 silcd/packet_receive.c and silcd/server.c.
1929 * When client's sock->user_data is freed, NULL also the
1930 client->router and client->connection pointers. Added check
1931 for these pointers being NULL to various places around the
1932 code. Affected file silcd/server.c.
1934 * Added client->data.registered == TRUE checks to various
1935 places around the code to assure that unregistered client's
1936 are not handled when it is not allowed. Affected file
1939 * Added `bool registered' fields to all
1940 silc_idlist_[server|client]_get_* routines to indicate whether
1941 the fetched client needs to be registered or not. Affected
1942 file silcd/idlist.[ch].
1944 * Add your own entry as registered to the ID cache in the
1945 server. Affected file server.c.
1947 * Fixed a bug in silc_server_new_server. The SilcServer was
1948 set as the new server's context instead of SilcServerEntry.
1949 This naturally caused some weird bugs.
1951 Thu Aug 9 18:28:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1953 * Do not delete the channel rekey task when adding it
1954 for in silc_server_create_channel_key.
1956 * Changed the silc_server_create_channel_key to return
1957 TRUE or FALSE to indicate the success of the channel key
1960 Thu Jul 26 11:32:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1962 * Fixed MSVC++ project files and added missing files to
1963 Makefiles under win32/.
1965 Wed Jul 25 18:43:54 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1967 * Do not add TCP_NODELAY flag if the operating system
1968 does not have it defined. Affected files are
1969 lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
1971 * Fixed buffer overflow from Irssi SILC Client. Affected
1972 file irssi/src/fe-common/core/themes.c.
1974 * Fixed double free in client library in the file
1975 lib/silcclient/client.c when disconnecting from server.
1977 * Applied double free patch from cras to Irssi SILC client.
1978 Affected files irssi/src/core/[modules/expandos].c
1980 * Fixed the disconnection handling to Irssi SILC Client.
1981 The application must call silc_client_close_connection
1982 in ops->connect client operation in case of failure of
1983 the connection. Affected file is
1984 irssi/src/silc/core/client_ops.c.
1986 * Do not set sock->protocol to NULL in the function
1987 silc_client_close_connection after executing the protocol's
1988 final callback since the sock might not be valid anymore.
1989 Affected file lib/silcclient/client.c.
1991 Wed Jul 25 16:04:35 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1993 * Do not enable SILC_THREADS if the linking with libpthread
1994 did not happen. Affected file configure.in.pre.
1996 * Added notion to protocol specification that server must
1997 verify the sent authentication payload with CMODE when
1998 setting the channel founder key. Implemented it to the
1999 server. Affected file silcd/command.c.
2001 Mon Jul 23 18:31:43 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2003 * Added _EXTRA_DIST SILC distribution variable to the
2004 distributions file. It is used to conditionally add extra
2005 files or directories to the specific distribution. Affected
2006 files ./prepare, Makefile.am.pre and distributions.
2008 Removed the `_' from the start of the distribution names.
2011 * Added README.WIN32 for instructions to compile the Toolkit
2014 Mon Jul 23 10:12:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2016 * Fixed a double free in disconnection in the server. Affected
2017 file is silcd/server.c.
2019 * Fixed the lib/silcske/groups.c to work now also with GMP
2020 MP library. The string conversion did not work when using
2021 specific base and the base is indicated in the string as well.
2023 * Created win32/ directory which now includes MSVC++ specific
2024 stuff so that toolkit (DLLs) may be compiled with MSVC++.
2025 It will appear only in the toolkit distribution
2027 Sun Jul 22 19:40:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2029 * Changed the key material distribution function in case when
2030 the hash output is too short. The data is now concatenated
2031 a bit differently than it used to. Made the change to the
2032 SKE protocol specification.
2034 * Added better GMP detection to configure.in.pre. A patch
2037 Fri Jul 20 13:16:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2039 * Fixed a minor bug in SKE that might cause some problem on
2040 some platforms. Affected file lib/silcske/silcske.c.
2042 * Added the cookie checking for initiator in the SKE. It checks
2043 that the responder returns the sent cookie unmodified. The
2044 affected file is lib/silcske/silcske.c. Added new SKE
2045 error type INVALID_COOKIE that can be sent during the
2046 negotiation. Fixed some memory leaks as well.
2048 * Added the "invalid cookie" error message to Irssi SILC client's
2051 Thu Jul 19 21:44:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2053 * Added `task_max' field to the SilcClientParams to indicate
2054 the maximum tasks the scheduler can handle. If set to zero,
2055 default values are used. Affected file lib/silcclient/silcapi.h.
2057 * Fixed memory leaks in silc_client_close_connection. Affected
2058 file lib/silcclient/client.c.
2060 * Added silc_client_del_client_entry to client library to free
2061 all memory of given client entry. Affected file is
2062 lib/silcclient/idlist.[ch].
2064 * Added new functions silc_client_del_channel and
2065 silc_client_del_server to delete channel and server entries.
2066 Affected file lib/silcclient/[silcapi.h/idlist.c].
2068 * Removed silc_client_del_client_by_id from silcapi.h.
2070 * Fixed the INFO command to return the server's own info
2071 correctly when querying by Server ID. Affected file is
2074 Thu Jul 19 14:47:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2076 * Removed the non-blocking settings in WIN32 code in the
2077 silc_sock_[read/write] and added SleepEx instead. Affected
2078 file lib/silcutil/win32/silcwin32sockconn.c. The availability
2079 of input data is now checked with FIONREAD and ioctlsocket.
2081 Wed Jul 18 18:34:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2083 * Call silc_schedule_task_del_by_context in the
2084 silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
2085 Affected file lib/silccore/silcprotocol.c.
2087 * Call silc_protocol_cancel for active protocols in the
2088 silc_server_close_connection if the funtion
2089 silc_server_free_sock_user_data has not been called.
2090 Affected file silcd/server.c.
2092 * Generic tasks cannot be deleted using the del_by_fd
2093 task deleting function since generic tasks does not match
2094 any specific fd. Affected file lib/silcutil/silcschedule.[ch].
2096 * Added a notion to SILCOPER help file that the SILCOPER works
2097 only on router server, not on normal server.
2099 Wed Jul 18 09:40:04 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2101 * Added for WIN32 support for the new scheduler as well.
2102 Affected file lib/silcutil/win32/silcwin32schedule.c.
2104 * Fixed the SHA1 implementation to work on various platforms.
2106 Tue Jul 17 23:04:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2108 * Rewrote the SILC Scheduler entirely. Removed the old SILC Task
2109 API. It is part of the scheduler now. Everything else is
2110 as previously but some functions has changed their names.
2111 Checkout the lib/silcutil/silcschedule.h for the interface.
2112 Updated all applications to use the new interface. Affected
2113 files are lib/silcutil/silcschedule.[ch].
2115 Tue Jul 17 16:53:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2117 * Found a bug in the SKE implementation. The HASH value,
2118 specified by the protocol, was not computed correctly. The
2119 public key of the responder was not added to the computation
2120 even though it is mandatory. Affected file lib/silcske/silcske.c.
2121 This unfortunately causes incompatibilities with older
2122 clients and servers.
2124 * Added WIN32 specific network init and uninit functions:
2125 silc_net_win32_init and silc_net_win32_uninit to init and uninit
2126 the Winsock2. Affected file lib/silcutil/silcnet.h and
2127 lib/silcutil/win32/silcwin32net.c.
2129 * Set the socket always to nonblocking mode on WIN32 after
2130 reading data or writing data. Affected file is
2131 lib/silcutil/win32/silcwin32sockconn.c.
2133 Mon Jul 16 22:55:26 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2135 * Fixed various compilation problems under WIN32. Affected
2136 files lib/silcutil/win32/silcwin32thread.c and
2137 lib/silcutil/win32/silcwin32schedule.c.
2139 * Removed all _internal.h #includes from public header
2140 files. Internal headers must never be included from
2143 Removed also the lib/silcske/payload_internal.h file.
2145 * All include files that may be needed (public and some others
2146 included by the public headers) by application developers are
2147 now copied to the ./includes directory. It does not copy any
2148 internal headers. Affected file Makefile.defines.pre and all
2149 Makefile.am's under lib/ and subdirs.
2151 Thu Jul 12 17:49:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2153 * Do not change the ~/.silc directory's permissions automatically.
2154 Affected file irssi/src/silc/core/clientutil.c.
2156 Thu Jul 12 10:18:40 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2158 * Do not cancel the protocol in silc_server_close_connection
2159 it might cause recursion. Now cancelled in the function
2160 silc_server_free_sock_user_data. Affected file silcd/server.c.
2162 * Fixed the silc_server_remove_clients_by_server to regenerate
2163 the channel keys correctly finally. Added also new function
2164 silc_server_remove_clients_channels to actually do it.
2165 Affected file silcd/server.c.
2167 * Fixed the silc_server_new_channel to not crash by giving
2168 wrong router to the new channel. Affected file is
2169 silcd/packet_receive.c.
2171 Wed Jul 11 18:31:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2173 * Added SilcClientParams structure to the lib/silcclient/silcapi.h
2174 which is given as argument to the silc_client_alloc now.
2175 It can be used to configure the client and set various parameters
2176 that affect the function of the client.
2178 * The USERS command in server did not check whether the channel
2179 is private or secret. Affected file silcd/command.c.
2181 * Added new argument to the USERS command in protocol specification.
2182 The USERS command now can take the channel name as argument
2183 as well. Added support for this in client and server and
2184 updated the protocol specs.
2186 * Completed the GETKEY command in client. It can be now used
2187 to fetch also servers public key not only some clients.
2188 Affected files lib/silcclient/command[_reply].c.
2190 * Added silc_client_get_server to return server entry by the
2191 server name. Affected files lib/silcclient/silcapi.h and
2194 * Redefined the IDENTIFY command in protocol specification to be
2195 more generic. It now can be used to query information about
2196 any entity in the SILC Network, including clients, servers and
2197 channels. The query may be based either the entity's name
2198 or the ID. Added support for this in both client and server.
2200 Affected files silcd/command.c and lib/silcclient/command.c
2201 and command_reply.c.
2203 * Optimized the WHOIS and WHOWAS commands in the server. Removed
2204 the _from_client and _from_server functions. Affected file
2207 * Added silc_client_get_channel_by_id_resolve to the file
2208 lib/silcclient/silcapi.h to resolve channel information by
2209 its ID. Added also silc_client_get_channel_by_id that
2210 does not resolve it from the server.
2212 Tue Jul 10 18:05:38 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2214 * Added SilcServerEntry context into the client library
2215 to represent one server. The INFO command now allocates
2216 these to save the resolved server info. For now on the
2217 client library will also keep information about servers,
2218 connected and resolved with INFO.
2220 The INFO command now allocates the SilcServerEntry context
2221 and saves the server info there. The COMMAND_REPLY in
2222 the INFO now returns the parameters to application in
2223 same order as defined in the protocol specification.
2225 The entries are cached in the client->server_cache.
2227 * The INFO command is now issued after received the Client ID
2228 from the server. Affected file lib/silcclient/client.c.
2230 * The CMODE_CHANGE notify may now return also an SilcServerEntry
2231 to the application as the mode changer might be server.
2232 It is guaranteed that NULL is not returned anymore to the
2233 application. Affected file lib/silcclient/client_notify.c.
2235 The ID Type is now also passed to the application so that
2236 it can check whether the returned entry is SilcClientEntry
2239 Added new function silc_client_get_server_by_id to return
2240 the server entry by ID. Affected files are the
2241 lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
2243 * Do not create the channel in the Irssi SILC Client when issuing
2244 the JOIN command but when received the sucessful JOIN command
2245 reply. Otherwise the channel might get created even though we
2246 could not join it. The Affected file is
2247 irssi/src/silc/core/[silc-channels.c/client_ops.c].
2249 * Fixed a channel joining bug in router. The router must also
2250 check the channel modes, invite and ban lists etc. when serving
2251 the JOIN command sent by normal server. Affected file is
2252 silcd/command.c. The router now resolves the client's
2253 information from the server who sent the JOIN command if it
2254 does not know it, and processes the JOIN command only after
2257 * Changed the SilcCommandCb to take new argument; void *context2.
2258 Affected file lib/silccore/silccommand.h
2260 The second argument in the command callbacks in the server now
2261 includes the SilcServerCommandReplyContext if the command was
2262 called as pending command callback from the command reply.
2263 Otherwise it is NULL. When called as pending the status of the
2264 command reply will be checked and if it was erronous the
2265 error will be sent to the original sender of the command.
2266 This way the client always receives the error messages even
2267 though the server was actually the one who received the error
2268 when it resent the command to router, for example. Affected
2269 files silcd/command[_reply].[ch].
2271 * Fixed sending WHOWAS command's error message to client if
2272 the requested client could not be found. It was missing.
2275 * Changed the CMODE and CUMODE commands reply arguments in the
2276 protocol specification. The Channel ID is now sent in both
2277 of the commands to identify the channel. Implemented this
2278 new feature to the client and server. Affected files
2279 lib/silcclient/command_reply.c and silcd/command.c.
2281 * Made better checks for invite and ban lists in the JOIN
2282 command in server. Affected file silcd/command.c.
2284 Mon Jul 9 18:28:34 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2286 * The server now performs the incoming host IP/DNS lookup
2287 using the silc_socket_host_lookup and thus does not block
2288 the server anymore. Affected file silcd/server.c.
2290 * Completed the multi-thread support for SILC Scheduler in
2291 the lib/silcutil/silcschedule.c.
2293 * Fixed the configure.in.pre to detect the pthread correctly
2296 * Fixed a deadlock in silc_task_queue_wakeup in the file
2297 lib/silcutil/silctask.c.
2299 Mon Jul 9 13:40:03 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2301 * Added new function silc_schedule_wakeup that is used in
2302 multi-threaded environment to wakeup the main thread's
2303 schduler. It needs to be used when a thread adds a new task
2304 or removes a task from task queues. After waking up, the
2305 scheduler will detect the task queue changes. If threads
2306 support is not compiled in this function has no effect.
2307 Implemented the wakeup mechanism to both Unix and WIN32
2308 systems. Affected files are lib/silcutil/silcschedule.[ch],
2309 lib/silcutil/unix/silcunixschedule.c and the
2310 lib/silcutil/win32/silcwin32schedule.c.
2312 * Added new function silc_task_queue_wakeup to wakeup the
2313 scheduler by the specified task queue. Affected file
2314 lib/silcutil/silctask.[ch].
2316 * The silc_socket_host_lookup_start now wakes up the scheduler
2317 after adding the timeout task. Affected file is
2318 lib/silcutil/silcsockconn.c.
2320 * The silc_socket_host_lookup is synchronous now if the threads
2321 support is not compiled in. However, the callback is still
2322 called asyncronously through the scheduler, anyway. Affected
2323 file lib/silcutil/silcsockconn.c.
2325 Mon Jul 9 00:24:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2327 * Added new function silc_socket_host_lookup to perform
2328 asynchronous IP and FQDN lookups for the socket connection.
2329 Affected files lib/silcutil/silcsockconn.[ch].
2331 Sun Jul 8 18:44:53 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2333 * Added SILC_MUTEX_DEFINE to define the mutex on environments
2334 that may or may not compile the mutex support in.
2336 Changed the silc_mutex_alloc interface. It allocates the
2337 mutex now to the sent pointer and returns TRUE or FALSE.
2339 Affected file lib/silcutil/silcmutex.h.
2341 * Wrote the SILC Task Queue interface to support multi-threads.
2342 Affected file lib/silcutil/silctask.[ch].
2344 * Wrote the SILC Scheduler to support multi-threads. Affected
2345 file lib/silcutil/silcschedule.c.
2347 Sun Jul 8 11:16:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2349 * Implemented the SILC Mutex API and SILC Thread API for WIN32
2350 in lib/silcutil/win32/.
2352 Sun Jul 8 00:18:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2354 * Defined SILC Mutex API and SILC Thread API and implemented
2355 them for Unix. Affected files are
2356 lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
2357 lib/silcutil/unix/silcunixmutex.c and
2358 lib/silcutil/unix/silcunixthread.c.
2360 Sat Jul 7 14:40:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2362 * Fixed the silc_server_remove_clients_by_server's channel
2363 key re-generation. The hash table handling was incorrect
2364 and would not work with many channels. Affected file is
2367 * Fixed some memory leaks around the server code.
2369 * Rewrote the silc_server_get_users_on_channel to support IPv6
2370 based Client ID's. Affected file silcd/server.c.
2372 * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
2373 specification. However, a separate document must be written
2374 to define the detailed signing procedure and the payload
2375 associated with the flag. Defined the flag to the
2376 lib/silccore/silcchannel.h as well.
2378 Fri Jul 6 18:26:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2380 * Changed the dynamic tables to static size tables in the
2381 lib/silccrypt/silchmac.c.
2383 * Removed GCC dependencies from the code. A patch by cras.
2385 Fri Jul 6 09:39:35 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2387 * Do not show the error "Error receiving packet bla bla"
2388 in server if it really was not an error (-2 means that reading
2389 is pending). Affected file silcd/server.c.
2391 Thu Jul 5 21:22:32 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2393 * Fixed a possible crash in silc_server_remove_clients_by_server
2394 in silcd/server.c. Fixed there also some memory leaks.
2396 * Fixed the silc_idlist_replace_client_id. It could replace
2397 wrong key in the hash table. Affected file silcd/idlist.c.
2399 * Do not check whether there are global users on the channel
2400 if the channel->global_users is FALSE. Affected functions
2401 silc_server_remove_from_one_channel and
2402 silc_server_remove_from_channels in silcd/server.c. Also,
2403 do not check if the removed client is local as we can be
2404 sure that global client was not removed from the channel
2405 and checking for global users is not needed.
2407 * The silc_server_remove_clients_by_server now re-generates
2408 the channel keys correctly for those channels that had
2409 clients removed from them. Affected file silcd/server.c.
2411 Tue Jul 3 11:39:20 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2413 * Found the reason of random crashes in the server. We weren't
2414 ignoring the SIGPIPE signal (which can be sent in write())
2415 and it crashed the server. Affected file silcd/silcd.c.
2417 Fri Jun 29 20:05:25 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2419 * Assure that sock->user_data is not NULL in the function
2420 silc_server_packet_send in silcd/packet_send.c.
2422 * Disconnect the remote connection if it could not be added
2423 to any ID lists in the server. The affected file is
2426 * Check in silc_server_packet_send[_real/dest] that the
2427 socket is not disconnecting and ignore the data if it is.
2428 Affected file silcd/packet_send.c.
2430 * Define inline to __inline on native WIN32 compilation.
2431 Affected file includes/silcwin32.h.
2433 * Added some explicit type casts for inline code since MSVC
2434 require them. Affected files lib/silcutil/silcbuffer.h,
2435 lib/trq/silcdlist.h and lib/trq/silclist.h.
2437 * Print warning in log files from now on if the packet
2438 decryption fails. Affected file silcd/server.c.
2440 Thu Jun 28 21:30:39 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2442 * Changed the `say' client operation's interface to accept
2443 new `type' argument to indicate the type of the message sent
2444 by the library. The application may filter the library's
2445 messages according the type. The affected file is the
2446 lib/silcclient/silcapi.h.
2448 * Added two new functions to lib/silcclient/silcapi.h:
2449 silc_client_del_client and silc_client_del_client_by_id.
2450 Affected file lib/silcclient/idlist.c.
2452 * Moved the clientincludes.h from includes/ to silc/ and
2453 serverincludes.h from includes/ to silcd/.
2455 * The modes for the CMODE and CUMODE are now passed as
2456 uint32 for application with COMMAND_REPLY. The affected
2457 file is lib/silcclient/command_reply.c.
2459 Wed Jun 27 22:24:47 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2461 * /WHOIS without arguments shows client's own information.
2462 Affected file lib/silcclient/command.c.
2464 * Changed PING to not accept any arguments. The specs
2465 says that client can ping only the connected server so
2466 requiring an argument is not needed. Affected file is
2467 lib/silcclient/command.c.
2469 Wed Jun 27 00:10:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2471 * Fixed a fatal bug in private message sending and reception
2472 encryption and decryption when using private message keys.
2473 The implementation was incorrect and did not follow the
2474 specification. It causd that some of the message were
2475 lost since it did not use the sending and receiving keys
2476 as the protocol suggests. This has been fixed and will cause
2477 incompatibilities with older clients when sending private
2478 message encrypted with private message keys. Affected files
2479 lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
2480 and various other in Irssi SILC Client.
2482 Added `responder' boolean argument to the functions
2483 silc_client_add_private_message_key[_ske] to indicate when
2484 the key is added as responder or initiator of the key
2487 Tue Jun 26 19:23:07 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2489 * Removed the silc_ske_check_version function and created
2490 a SilcSKECheckVersion callback. Added also a function
2491 silc_ske_set_callbacks that is now used to set all SKE
2492 callbacks. The callback functions are not given to
2493 the SKE functions anymore, but this function is used to
2496 * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
2498 * Added `silc_version' argument to the silc_client_alloc
2499 to define the version of the application for the library.
2500 The library will use the version string to compare it
2501 against the remote host's (usually a server) version
2502 string. Affected file lib/silcclient/silcapi.h
2504 * Added the KE protocol context to Key Agreement context
2505 in client library so that we can abort the SKE if it
2506 is in process when we get timeout. Affected file is
2507 lib/silcclient/client_keyagr.c.
2509 * Do not resolve the client ID forever if it returns in the
2510 first time that such client does not exist. This was done
2511 for example with private message. Affected file is
2512 lib/silcclient/client_prvmsg.c.
2514 Mon Jun 25 21:42:51 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2516 * Do not add regex.h for WIN32. The affected file
2517 includes/silcincludes.h.
2519 * Added WIN32 DLL generation to lib/Makefile.am.pre. It might
2520 not work yet 100%. It generates the DLL's automatically
2521 when compiling with --with-win32 under cygwin.
2523 Sun Jun 24 19:49:23 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2525 * lib/contrib/regex.c is not compiled on WIN32.
2527 * Added silc_net_get_socket_opt function to the
2528 lib/silcutil/silcnet.h.
2530 * Added includes/silcwin32.h for WIN32 specific includes
2533 * Do not use ptime structure or any of the posix process
2534 functions on WIN32 in lib/silccrypt/silrng.c.
2536 * Added silc_gettimeofday to provide generic function
2537 for struct timeval on all platforms. Added the function
2538 to lib/silcutil/silcutil.h.
2540 Sun Jun 24 12:19:52 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2542 * Moved the lib/silccore/silcsockconn.[ch] to the utility
2543 library as they clearly belong there. As a plus side we
2544 can make the actual socket connection routines platform
2547 Added also new generic function silc_socket_read and
2548 silc_socket_write (that used to be silc_packet_[read/write].
2549 The implementation of these are platform specific.
2551 * Added WIN32 specific routines of silc_socket_[read/write]
2552 to lib/silcutil/win32/silcwin32sockconn.c.
2554 Sat Jun 23 16:01:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2556 * Added preliminary support for native WIN32 compilation under
2557 cygwin (using the -mno-cygwin option for GCC) to the
2558 ./configure.in.pre. The --with-win32 now prepares the
2559 compilation for native WIN32.
2561 * Rewrote the SILC Scheduler interface in the file
2562 lib/silcutil/silcschedule.h. The scheduler is now context
2563 based and does not have anymore any global static scheduler.
2564 Moved the Unix scheduler to the lib/silcutil/unix/ directory
2565 and created lib/silcutil/win32 directory for WIN32 based
2568 * Added Unix specific network routines to the
2569 lib/silcutil/unix/silcunixnet.c and the old
2570 lib/silcutil/silcnet.c includes now only generic routines.
2572 Added WIN32 specific network routines to the
2573 lib/silcutil/win32/silcwin32net.c.
2575 * Added Unix specific utility functions from the
2576 lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
2578 * Added WIN32 SILC Scheduler to the file
2579 lib/silcutil/win32/silcwin32schedule.c. The code is of course
2582 Fri Jun 22 10:44:14 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
2584 * Do not handle JOIN notify in the server if the target client
2585 is not registered (idata->registered == FALSE). The affected
2586 file is silcd/packet_receive.c.
2588 * Update the nickrec->founder in event_cumode in the Irssi SILC
2589 client. Affected file irssi/src/silc/core/silc-channels.c.
2591 * Fixed the CUMODE_CHANGE notify handling in the server when
2592 server and router are announcing their clients on channels.
2593 Now the mode changes are saved and notified correctly. The
2594 affected file is /silcd/packet_receive.c.
2596 * Fixed silc_idlit_replace_[server/client/channel]_id functions.
2597 They really did not replace the cache entry in the ID Cache.
2598 Now they do that. Affected file silcd/idlist.c.
2600 * Fixed the KICK notify handling in the Irssi SILC client to
2601 update the channel records so that the kicked client does not
2602 appear to be on the channel. The affected file is
2603 irssi/src/silc/core/silc-channels.c.
2605 * Always update the conn->current_channel when executing command
2606 on a channel. Affected file irssi/src/silc/core/silc-servers.c.
2608 * Fixed the KILL notify handling in Irssi SILC client to remove
2609 the killed client on all channels.
2611 Thu Jun 21 17:10:08 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2613 * Fixed the silc_parse_command_line to remove extra spaces
2614 from the start and end of the arguments. Affected file is
2615 lib/silcutil/silcutil.c.
2617 * Cancel and free any active protocol in the function
2618 silc_server_close_connection. Affected file silcd/server.c.
2620 * Cancel and free any active protocol in the function
2621 silc_client_close_connction. Affected file is
2622 lib/silcclient/client.c.
2624 * Do not execute the KILL command for clients that are in
2625 history (ie. they are not in the network). Affected file is
2628 * Fixed KILL notify handling, client does not crash anymore.
2629 Affected file irssi/src/silc/core/silc-channels.c.
2631 * Reduced the default packet buffer size from 2048 to 1024 in
2632 lib/silccore/silcpacket.c.
2634 * Added SILC_SKE_STATUS_FREED SKE status type and a reference
2635 counter to the SKE context that is incresed when the SKE library
2636 performs async operation outside the library. If the outside
2637 process frees the SKE context and FREED status will be set
2638 and the library will detect after the sync operation that the
2639 libary is freed. The affected files are
2640 lib/silcske/silcske[_status].[ch].
2642 * Resolve the client entry information in the function
2643 silc_client_channel_message to assure that NULL pointer is not
2644 passed as client entry to the application. */
2646 * Fixed the task timeout calculation to assure that there is
2647 never negative timeouts. The affected file is
2648 lib/silcutil/silcschedule.c.
2650 * Fixed the channel user mode notification sending in server.
2651 It was sent point-to-point to the router (or to server by router)
2652 but it needs to be destined to a channel. The routines now
2653 supports sending the channel user mode notifys to the channels
2654 when announcing clients and channels. Affected files are
2655 silcd/server.c and silcd/packet_receive.c.
2657 * Fixed the CHANNEL_CHANGE notify handling in the client libary.
2658 It did not actually replace the old channel entry in the cache.
2659 Affected file lib/silcclient/client_notify.c.
2661 Tue Jun 19 22:10:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2663 * Fixed a possible crash in silc_packet_send_prepare. It now
2664 assures always that there is enough space in the buffer and
2665 at the tail area of the buffer (for MAC).
2667 Fixed the inbound buffer reallocation in silc_packet_read.
2668 It was old code and did not handle the reallocation correctly.
2671 The affected file is lib/silccore/silcpacket.c.
2673 * Fixed buffer overflow in silc_parse_nickname in the file
2674 lib/silcutil/silcutil.c.
2676 Tue Jun 19 13:40:09 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2678 * make install generates new server keys only if there is not
2681 Mon Jun 18 18:49:07 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2683 * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
2684 Added check that if the NOREPLY is set then we will not send
2685 the away message. This avoids infinite loop of away messages
2686 if both clients are away. The affected file is
2687 lib/silcclient/client_prvmsg.c.
2689 * Fixed client crash if /NICK was given without arguments.
2690 Affected file lib/silcclient/command.c.
2692 * Server does not send the invite list in INVITE command back
2693 to the client if the list was not altered. Added this notion
2694 to the protocol spec as well. Affected file silcd/command.c.
2696 Fixed possible crash in INVITE command by checking the
2697 value of silc_server_get_client_route command.
2699 * Fixed the INVITE notify type handling. The arguments are now
2700 taken in correct order and client does not crash. The affected
2701 file is irssi/src/silc/core/silc-channels.c.
2703 Removed the "Inviting xxx to channel" message from the
2704 client library away and let the application handle it.
2705 Affected file lib/silcclient/command.c. Added that message
2706 to Irssi SILC client's message formats.
2708 * Fixed CMODE command crash in client. It now checks the
2709 amount of arguments correctly and does not crash. The affected
2710 file is lib/silcclient/command.c.
2712 * Do not create new channel automatically in silc_channels_join
2713 but check whether the channel by that name already exists.
2714 Affected file irssi/silc/core/silc-channels.c.
2716 * Do not send the SERVER_SIGNOFF to router if the disconnected
2717 entity was the router. Affected file silcd/server.c.
2719 * Added the handling of the SERVER_SIGNOFF notify to the Irssi
2720 SILC client as it was missing from there.
2722 Added the handling of the KICK notify to the Irssi SILC client
2723 as it was missing. Added "you have been kicked" message to
2724 Irssi SILC client's message modules formats.
2726 Added the handing of the KILL notify to the Irssi SILC client
2727 as it was missing. Added the kill message module formats
2730 The affected file is irssi/src/silc/core/silc-channels.c.
2732 * The router did not save the channel mode the server announced.
2733 Affected file silcd/packet_receive.c.
2735 * Fixed a possible crash in INFO command in server. If the
2736 server did not provide the server info it crashed. Affected
2737 file silcd/command.c.
2739 Sun Jun 17 15:26:05 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2741 * Fixed the GETKEY command in the server to check also the
2742 global list. Otherwise the GETKEY would not work correctly
2743 in normal SILC server. Affected file silcd/command.c.
2745 Sat Jun 16 18:00:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2747 * Fixed GETKEY crash, it crashed if the command did not succseed.
2749 Tue Jun 12 21:36:18 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2751 * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
2752 is now real and not just an macro interface to GMP.
2754 Removed the entire GMP from the source tree and imported new
2755 NSS MPI library instead. Reason for removing GMP is that it is
2756 extremely large and compiles extremely slow. The NSS MPI
2757 is only a few files and compiles in less than 10 seconds.
2758 The speed is also about the same as GMP. The MPI is imported
2759 to lib/silcmath/mpi.
2761 If the system has GMP installed we will still use the GMP.
2762 If it is not then the NSS MPI will be compiled.
2764 Mon Jun 11 18:07:24 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2766 * Merged a long nickname (127 characters long) crash bugfix from
2767 Irssi CVS tree. Affected file irssi/src/core/misc.c.
2769 * Merged a freed memory reference bugfix from Irssi CVS tree.
2770 Affected file irssi/src/core/commands.c.
2772 Sun Jun 10 16:08:35 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2774 * Added the server's public key sving and verification to the
2775 server when performing the SKE. This was missing and the
2776 remote server's (or router's) public key was accepted without
2777 checking whether we have it previously or trust it at all.
2778 Affected file silcd/protocol.c.
2780 Sat Jun 9 20:17:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2782 * Check in the silc_server_timeout_remote if protocol is active
2783 and make sure that the protocol's final callback is called so
2784 that all memory if freed. Affected file silcd/server.c.
2786 Sat Jun 9 12:51:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2788 * silc_server_whois_send_reply crashed the server if the nickname
2789 was 127 characters long. Affected file silcd/command.c.
2791 Thu Jun 7 16:29:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2793 * Added sanity check to the silc_server_new_client. If the hostname
2794 is provided inside username then check that the provided hostname
2795 really is the same as the resolved one. If the hostname was not
2796 resolved then check it from the public key. Affected file is
2797 silcd/packet_receive.c.
2799 * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
2800 if the server disconnected us and the connection is not valid
2801 anymore. Affected file irssi/src/silc/core/silc-channels.c.
2803 * Moved the silc_client_[chmode|chumode|chumode_char] away from
2804 the library to the lib/silcutil/silcutil.[ch].
2806 Thu Jun 7 08:57:16 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2808 * Close log file after open. Affected file
2809 lib/silcutil/silclog.c.
2811 * Check whether sock == NULL in silc_client_send_packet and return
2812 if it is. Affected file lib/silcclient/silcclient.c.
2814 * Check rec->entry == NULL in the Irssi SILC Client before
2815 sending the channel message. Affecte file is
2816 irssi/src/silc/core/silc-servers.c.
2818 Tue Jun 5 08:08:21 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2820 * Merged a splitted window bugfix from Irssi CVS tree. The
2821 affected file is irssi/src/fe-text/textbuffer-view.c.
2823 * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
2824 It did not print nickname.
2826 * Improved the distributions system a bit.
2828 Mon Jun 4 17:57:16 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2830 * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
2831 irssi/src/fe-text/gui-window.c.
2833 * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
2834 to in-active server. The affected file is
2835 irssi/src/silc/core/client_ops.c.
2837 * Resolve the client in USERS command reply if the entry does
2838 not have username resolved. The affected file is
2839 lib/silcclient/command_reply.c. Also, changed the IDENTIFY
2840 command to WHOIS command to really resolve stuff. The USERS
2841 is not used any more in any critical section so WHOIS can
2842 be used even though it might be slower than IDENTIFY.
2844 * Changed the lib/silcutil/silchashtable.h header to ROBODoc
2847 Sun Jun 3 14:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2849 * Changed the protocol API a bit more consistent in the
2850 lib/silccore/silcprotocol.[ch].
2852 * Changed the following headers to ROBODoc format:
2854 lib/silccore/silcpayload.h
2855 lib/silccore/silcprotocol.h
2856 lib/silccore/silcsockconn.h
2858 All core library headers are now formatted.
2860 Sat Jun 2 10:45:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2862 * Fixed a bug in Irssi SILC client; do not show that you are
2863 server/router operator if you really are not. Affected file is
2864 irssi/src/silc/core/client_ops.c.
2866 * Renamed silc_command_free_payload to silc_command_payload_free.
2867 Affected file lib/silccore/silccommand.h
2869 * Added silcmath.h to include the prototoypes of various routines
2870 in the lib/silcmath. Removed the old modinv.h, mpbin.h and
2873 * Changed the following headers to ROBODoc format:
2875 lib/silccore/silcchannel.h
2876 lib/silccore/silccommand.h
2877 lib/silccore/silcid.h
2878 lib/silccore/silcidcache.h
2879 lib/silccore/silcmode.h
2880 lib/silccore/silcnotify.h
2881 lib/silccore/silcpacket.h
2882 lib/silcmath/silcmath.h
2884 Fri Jun 1 22:19:37 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2886 * Added checking to the server code not to start the server if
2887 ciphers and stuff are not configured properly. Affected files
2888 silcd/serverconfig.[h] and silcd/server.c.
2890 * Changed the layout of the header files of the public interfaces
2891 in the SILC libraries. The new layout supports ROBODoc
2892 documentation tool (and some others) so that it is easy to create
2893 a library reference manual. All the other headers and source
2894 code must still follow the CodingStyle document. Also source
2895 code must not include these ROBODoc stuffs, only the headers.
2896 Furthermore, all public interface headers must now be named
2897 by using `silc' prefix, example: silcapi.h, silccipher.h.
2898 Some files were renamed due to this. All the other headers
2899 must not be used as public interfaces. I will update the
2900 CodingStyle document later. Changed following headers, so far:
2902 lib/silcclient/silcapi.h
2903 lib/silccore/silcauth.h
2904 lib/silccore/silcprivate.h
2905 lib/silccrypt/silcdh.h
2907 Fri Jun 1 10:28:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2911 * Removed silc_client_packet_send_flush from the client library
2912 as it is not needed. Affected file lib/silcclient/client.[ch].
2914 * Added printing of message of unresolved authentication method
2915 to the Irssi SILC client. Added it to the module formats.
2916 Removed the same message from the client library.
2918 Thu May 31 13:57:33 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2920 * Added new distribution feature, DISTLABEL. Every distribution
2921 can define own preprocessor label that can be used in the
2922 source code. For example: #ifdef SILC_DIST_CLIENT. Affected
2923 file distributions, acconfig.h.pre and prepare.
2925 Tue May 29 22:16:40 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2927 * Added Makefile.defines_int to include the actual definitions
2928 for Makefile.defines.in. Tested the new distribution system,
2929 created distributions and tested installation.
2931 * Added AWAY message printing to the Irssi SILC client. Added
2932 the messages to the irssi/src/fe-common/silc/module-formats.[ch].
2934 * Added SCONNECT command to call the SILC's CONNECT command.
2935 Cannot use CONNECT directly since Irssi uses that internally.
2936 Affected file irssi/src/silc/core/silc-servers.c.
2938 Added ACTION local command. It is same as ME command but takes
2939 the channel as mandatory argument.
2941 Rewrote some of the Irssi's help files to suite for SILC
2944 Mon May 28 19:05:22 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2946 * Added Makefile.defines[.in] that should for now on be included
2947 in all Makefile.am file in the source tree. That file includes
2948 all common compilation definitions for SILC source tree.
2950 Mon May 28 10:30:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2952 * Minor changes to the ./prepare script to change the package
2953 name according the distribution name to the configure.in.
2955 Sun May 27 22:24:57 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2957 * Created new distribution system. Added file `distributions'
2958 that defines all the distributions that can be created out of
2959 the SILC source tree. The ./prepare script now reads that
2960 file to determine how to prepare the distributions. The
2961 first argument to the ./prepare is the name of the distribution
2962 and second is the version of the distribution. If given
2963 without arguments it creates the default (toolkit) distribution
2964 with the default version (defined in ./prepare).
2966 All Makefile.am files that are subject to the distributions
2967 are now named as Makefile.am.pre. These are ./Makefile.am
2968 and lib/Makefile.am. Others may be changed later.
2970 Sun May 27 15:57:17 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2972 * Added invite list, ban list, some key management and connection
2973 error message printing to module formats in the Irssi SILC client.
2975 * Added new silc_client_set_away_message to set the away message
2976 that is back to the person who sent private message. The
2977 affected file lib/silcclient/silcapi.h and the
2978 lib/silcclient/client_prvmsg.c.
2980 Sun May 27 12:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2982 * Fixed the private message sending in the Irssi SILC client,
2983 added local command KEY to the Irssi SILC client.
2985 Added key management and key agreement message formats to the
2986 irssi/src/fe-common/silc/module-formats.[ch].
2988 Added USERS (alias WHO) printing, server/router operator
2989 indication and LIST command printing to the module formats.
2991 Sat May 26 17:43:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2993 * Fixed channel joining notify handling, cumode notify handling
2994 from Irssi SILC client.
2996 * Added SILC specific module-formats to the Irssi SILC client so
2997 that SILC specific message hilighting, colors etc is possible.
2998 Affected file irssi/src/fe-common/silc/module-formats.[ch].
3000 Added channel mode, channel user mode, actions, notices,
3001 whois and whowas printing to the the module-formats.c.
3003 * Fixed a bug in channel deletion in the server. The channel
3004 is not left to the cache even if the channel founder auth mode
3005 is set when there are no users anymore on the channel. Affected
3006 file silcd/server.c.
3008 * The silc_net_localhost now resolves the entire hostname including
3009 the domain name. Affected file lib/silcutil/silcnet.c.
3011 Sat May 26 12:13:37 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3013 * Changed the ask_passphrase client operation to be ascynchronous.
3014 It has now a completion callback and a context that the
3015 application must call after it has got the passphrase from
3016 the user. Affected files lib/silcclient/silcapi.h,
3017 lib/silcclient/protocol.c, lib/silcclient/command.c and
3020 Added SilcAskPassphrase callback that the application calls
3021 to deliver the passphrase to the library.
3023 * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
3024 The public key verification and especially a certificate
3025 verification is asynchronous procedure.
3027 Added new SILC_SKE_STATUS_PENDING status to indicate the
3028 request is pending and a callback will be called to finalize
3031 Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
3032 indicate that remote end did not send its public key (or
3033 certificate), even though we require it. Added check for this
3034 condition in the SKE. This was a security bug, now fixed.
3036 Defined new SilcSKEVerifyCbCompletion callback that is called
3037 when the verification process is completed.
3039 The affected files lib/silcske/silcske_status.h and
3040 lib/silcske/silcske.[ch].
3042 * Changed the verify_public_key client operation to be async
3043 as well. Defined SilcVerifyPublicKey callback that is used to
3044 indicate the success of the public key verification process.
3046 Changed the server and client to use the new async client
3049 * Changed the Irssi SILC client's internal scheduler to be called
3050 twice as many times as it used to be. As a result the client
3051 should be a bit faster now. Affected file is
3052 irssi/src/silc/core/silc-core.c.
3054 * Added support to Irssi SILC client of asynchronous public key
3055 verification and passphrase inquiry. Affected file is
3056 irssi/src/silc/core/silc-core.c.
3058 Fri May 25 14:38:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3060 * Do not say "You have left channel %s" in client library.
3061 Moved it to the application. Affected files are
3062 lib/silcclient/command.c and silc/client_ops.c.
3064 * Fixed silc_client_get_clients. Command context was not
3065 duplicated and was freed memory in the callback. Affected
3066 file lib/silcclient/idlist.c.
3068 * Do not say "you are now talking..." on JOIN command in the
3069 client library. The appliation must handle it.
3071 * Do not say ".. changed topic to" in command reply in the
3072 client libary. The application must handle it.
3074 * Fixed TOPIC command sending in the client library.
3076 * Fixed a memory leak in silc_client_command_free in the file
3077 lib/silcclient/command.c.
3079 Thu May 24 19:08:55 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3081 * Imported a modified version of Irssi client to the source tree.
3082 The Irssi will be used to create a new client called
3083 Irssi SILC. Imported to irssi/.
3085 Added silc_core_init_finish function to the Irssi. Affected
3086 file irssi/configure.in.
3088 A lot changes in the Makefile.ams around the irssi tree.
3090 Tue May 22 22:23:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3092 * Do not rehash if the new size is same as the old size of the
3093 hash table, in the silc_hash_table_rehash*. The affected file
3094 lib/silcutil/silchashtable.c.
3096 * Replaced hash_table_del_by_context calls from the server
3097 (when channel->user_list and client->channels) to the
3098 hash_table_del as it is sufficient and faster.
3100 Tue May 22 17:27:16 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3102 * Added silc_hash_table_list, silc_hash_table_get and the
3103 SilcHashTableList structure to provide an alternative way to
3104 traverse the hash table. The affected files are
3105 lib/silcutil/silchashtable.[ch].
3107 * Changed the server's idlist routines to use the hash table
3108 routines to optimize the code.
3110 Mon May 21 21:46:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3112 * Replaced the client entry's `channel' list and channel entry's
3113 `user_list' list to hash tables for optimized lookup. Changed
3114 the code to use the hash table interface around the code.
3115 Affected file lib/silcd/idlist.[ch].
3117 * Added `auto_rehash' boolean argument to the function
3118 silc_hash_table_alloc to indicate whether the hash table should
3119 auto-rehash when it thinks is appropriate time. It will
3120 increase the hash table size if the there is twice as much
3121 entries in the table than the size of the table, and will
3122 decrease the size if there are twice as less entries than
3123 the size of the table.
3125 Mon May 21 09:51:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3127 * Fixed silc_xxx_get_supported to not crash at some circumstances.
3129 Sun May 20 13:45:58 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3131 * silc_idcache_purge_by_context deletes the entry now by context
3132 as it is supposed to do. Affected file lib/silccore/idcache.c.
3134 * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
3135 client is not anymore valid (WHOWAS givens the info) and not
3136 the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
3138 Sat May 19 16:30:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3140 * Removed the `data' and `data_len' arguments from the ID Cache
3141 interfaces and added `name' argument. ID Cache does not handle
3142 anymore the binary data only a names associated with given ID.
3144 * When hashing a Client ID with silc_hash_id the entire ID is
3145 not hashed anymore, instead only the hash of the Client ID is
3146 hashed. This way we can access the Client ID from the cache
3147 with Client ID but with the hash of the ID (which is a hash of
3148 the nickname) as well without any difference in performance.
3150 Added also silc_idcache_find_by_id_one_ext to do one on one
3151 searching when we have the actual ID. Added also function
3152 silc_hash_client_id_compare. The affected files are
3153 lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
3155 * When hashing the name associated with a ID it is always done
3156 in lowercase. This way we can access the cache without worrying
3157 about case-sensitivity, even though, for example nicknames are
3160 * Fixed a bug in server with channel message sending. It put
3161 wrong ID type as destination ID. The affected file
3162 silcd/packet_send.c.
3164 * silc_idcache_del_by_context now deletes from all hash tables
3165 by context. Affected file lib/silccore/idcache.c.
3167 Fri May 18 17:42:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3169 * Changed the client library to use the new ID Cache interface.
3170 Changes around the source tree.
3172 * Added silc_hash_table_rehash_ext to rehash with specific
3173 hash function. Affected file lib/silcutil/silchashtable.[ch].
3175 * Added silc_hash_string_compare to compare two strings in the
3176 hash table. Affected file lib/silcutil/silcutil.[ch].
3178 Fri May 18 11:18:45 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3180 * Added new function silc_idcache_del_by_context into the
3181 lib/silccore/idcache.[ch].
3183 * Changed the server's ID list routines to use the new ID Cache
3184 interface. Changes around the source tree.
3186 Fri May 18 08:35:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3188 * Added silc_hash_table_del[_by_context]_ext functions in to the
3189 lib/silcutil/silchashtable.[ch].
3191 Removed silc_hash_table_find_all* routines and added new
3192 silc_hash_table_find_foreach to replace them.
3194 Added silc_hash_table_replace_ext function as extended
3195 replacing function. Separated the simple hash table interface
3196 from the extended hash table interface in the file
3197 lib/silcutil/silchashtable.h.
3199 * Fixed minor bugs and changed it to use some of the new
3200 hash table functions in lib/silccore/idcache.c
3202 Thu May 17 18:15:12 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3204 * Added new function silc_hash_table_find_all to return all keys
3205 in the hash table by the specified key. As the hash table is
3206 collision resistant it also makes it possible to have several
3207 duplicate keys in the hash table. This function may be used to
3208 find all of the keys from the hash.
3210 Added user_context arguments to the SilcHashFunction,
3211 SilcHashCompare and SilcHashDestructor to deliver user specified
3214 Added new fuctions silc_hash_table_find[_all]_ext to do
3215 extended lookup with specified hash and compare functions and
3216 specified user contexts.
3218 Added new function silc_hash_table_add_ext to add the key
3219 with specified hash function and user context.
3221 Added new function silc_hash_table_foreach to traverse all
3222 entrys in the hash table. Added SilcHashForeach callback
3225 Added new function silc_hash_table_del_by_context to delete
3226 the entry only if the context associated with the key matches.
3228 Affected files are lib/silcutil/silchashtable.[ch].
3230 * Removed silc_hash_[server/client/channel]_id and added just
3231 silc_hash_id to the lib/silcutil/silcutil.[ch]. Added also
3232 silc_hash_id_compare to compare two ID's using as the hash table
3233 comparison function. Added also silc_hash_data to hash
3234 binary data and silc_hash_data_compare to compare it.
3236 * Removed silc_idlist_find_client_by_hash as it is not needed
3237 anymore. Affected file silcd/idlist.[ch].
3239 * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
3240 to use internally the SilcHashTable. The new ID Cache is a lot
3241 faster than the old one. Some of the ID Cache interface was also
3242 rewritten and obsolete and stupid functions were removed.
3244 Wed May 16 23:03:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3246 * Added entry_count field to the SilcHashTable to keep the number
3247 of the entries in the table. Implemented the function
3248 silc_hash_table_rehash. Added new function
3249 silc_hash_table_count. Affected file lib/silcutil/silchashtable.c.
3251 Fixed a minor bug in silc_hash_table_free.
3253 * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
3254 silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
3255 into the lib/silcutil/silcutil.[ch].
3257 Wed May 16 20:02:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3259 * Implemented a collision resistant hash table into the
3260 lib/silcutil/silchashtable[ch]. See the header and the source
3261 for the SilcHashTable API.
3263 Tue May 15 22:05:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3265 * Merged dotconf version 1.0.2 into lib/dotconf.
3267 Sun May 13 19:32:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3269 * Do not compile anything in lib/silcsim/* if the SIM support
3270 is not enabled. The tree should now compile without problems
3273 Thu May 10 22:49:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3275 * Compiled the SILC under cygwin. Compiled and tested briefly
3276 without problems. More tests needed. The SIMs didn't compile
3279 * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
3281 * Fixed possible crash in silc_get_username in the
3282 lib/silcutil/silcutil.c.
3284 Tue May 8 09:04:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3286 * Fixed a va_arg in silc/client_ops.c.
3288 * Oops, RC5 routines were named AES and caused some problems
3289 when not using SIM's. Affected file lib/silccrypt/rc5.c.
3291 Sun May 6 13:59:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3293 * Added new SilcIDIP structure into the lib/silccore/id.h and
3294 replaced the old `ip' fields from all SILC ID's to that type.
3295 This is a step towards IPv6 support.
3297 The silc_id_get_len takes now the ID as an extra argument.
3298 The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
3299 both IPv4 and IPv6 based ID's.
3301 The affected files are lib/silccore/id.[ch] and other files
3302 around the tree using these routines.
3304 * Removed the ID length arguments in server from various
3305 silc_server_send_notify_* routines -> they are not needed
3308 Sat May 5 13:56:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3310 * Fixed memory leak in silc_encode_pem_file in the file
3311 lib/silcutil/silcutil.c.
3313 Thu May 3 21:23:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3315 * Check minor version as well in the SKE. Affected files are
3316 silcd/protocol.c and lib/silcclient/protocol.c.
3318 * Added --identifier option to the server so that an identifier
3319 can be when creating the public key for the server. Affected
3320 file is silcd/silcd.c.
3322 * Fixed minor decoding bug in silc_pkcs_decode_identifier in
3323 lib/silccrypt/silcpkcs.c.
3325 Wed May 2 20:50:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3327 * Register default ciphers and stuff when using -C option with
3328 the server. Affected file sildc/silcd.c.
3330 * Put back the servers public key filename format, it is better
3331 than the new one. For now, the client keys are saved with the
3332 new filename format. The affected file silc/client_ops.c.
3334 * Implemented the Cipher API for the rest of the ciphers that
3335 did not implement it or implemented it the wrong way.
3337 Wed May 2 13:31:26 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3339 * Register default ciphers and stuff when using the -S option
3340 in the client. Affected file silc/silc.c. Same also when
3341 creating new key pair with -C option.
3343 Tue May 1 14:18:13 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3345 * Fixed the silc_verify_public_key client operation function to
3346 save the public keys differently. The fingerprint is now
3347 used as filename and not the hostname. This way also the
3348 client keys are saved uniquely and not with hostnames. The
3349 affected file is silc/client_ops.c.
3351 * Trimmed the silc_hash_fingerprint function to remove extra
3352 whitespaces from the end of the fingerprint. The affected
3353 file is lib/silccrypt/silchash.c.
3357 * Added silc_cipher_register_default function to register all
3358 default ciphers. It can be used when configuration files
3359 does not exist and the application does not want any specific
3360 ciphers in any specific order.
3362 The SilcDList is now used as silc_cipher_list dynamically
3363 allocated cipher list. Removed the static list all together
3364 and now all ciphers must be allocated to the dynamic list.
3365 The silc_cipher_alloc routine was changed to check only the
3368 All silc_cipher_* routines that used to return int returns
3371 The affected files lib/silccrypt/silccrypt.[ch].
3373 * The same thing was done to silc_hash_* as for silc_cipher_*
3374 routines. Affected files lib/silccrypt/silchash.[ch].
3376 * The same thing was done to silc_pkcs_* as for silc_cipher_*
3377 routines. Affected files lib/silccrypt/silcpkcs.[ch].
3378 Added also silc_pkcs_[un]register[_default] functions.
3379 Removed the data_context from the PKCS API.
3381 * Added silc_hmac_register_default function to register default
3382 hmacs. Affected files lib/silccrypt/silchmac.[ch]. Added also
3383 SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
3384 to unregister all hmacs at once.
3386 * Register the default ciphers, hash functions, PKCSs and HMACs
3387 if client's configuration file does not exist. The affected
3390 * The client did not load the hash functions from the SIM
3391 modules at all. Added support for this. Affected file is
3392 silc/clientconfig.c.
3394 * When decoding public key with silc_pkcs_public_key_decode, check
3395 the supported algorithm only if PKCS are registered. Affected
3396 file lib/silccrypt/silcpkcs.c. The same was done with the
3397 silc_pkcs_private_key_decode.
3399 * Fixed the SILC List routines to keep the list always in order.
3400 It used to change the list's order when traversing the list but
3401 not it preserves the order. Affected file lib/trq/silclist.h.
3403 Mon Apr 30 17:29:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3405 * Added the client library to use the SilcSocketConnection's
3406 reference counter (by silc_socket_dup) to prevent the bug that
3407 the socket object may be freed underneath async operation.
3409 * The name resolv library checking fixes in the configure.in.pre.
3412 * Created new version of the protocol drafts for future
3413 development. The -03 drafts are the ones that will be changed
3414 in the trunk now and the -02 will remain as they are.
3416 * Send list of CUMODE notifys to the router when announcing
3417 the channel users to the router. Affected file silcd/server.c.
3418 If the router receiving channel founder CUMODE for a channel
3419 that already has channel founder it will send CUMODE notify
3420 to the sender to remove the channel founder rights from the
3421 announced client. Affected file silcd/packet_receive.c.
3423 * The CUMODE notify may now use Server ID as well as the entity
3424 who changes the mode. Updated protocool specs.
3426 * Updated INSTALL and README files.
3428 Sun Apr 29 23:17:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3430 * New web pages in the http://silc.pspt.fi. The pages was
3435 Sun Apr 29 13:33:41 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3437 * Implemented the [DenyConnectin] config section in the server.
3438 Added silc_server_config_denied_conn to check whether incoming
3439 connection is denied. Affected file silcd/serverconfig.[ch].
3441 * Do not check the ports when checking the incoming configuration
3442 data if the port is 0, meaning any. Affected file is
3443 silcd/serverconfig.c.
3445 Fri Apr 20 18:58:43 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3447 * Fixed buffer overflow in silc_string_compare in the file
3448 lib/silcutil/silcutil.c.
3450 * Fixed double free in silc_server_command_leave in the file
3453 Fri Apr 20 14:00:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3455 * Fixed the version checking in the server. Affected file is
3458 Thu Apr 19 19:52:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3460 * Fixed the configuration data fetching when accepting new
3461 connections in the server. Affected file silcd/server.c.
3463 Thu Apr 19 11:40:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3465 * Added `sender_entry' argument to the function
3466 silc_server_packet_relay_to_channel so that we can check
3467 whether some destination actually belongs to the same route
3468 the sender belongs (ie, we must not resend the packet to the
3469 sender). Affected file silcd/packet_send.[ch].
3471 * Added `servername' field to the SilcClientEntry in the server
3472 to hold the name of the server where client is from. Affected
3473 file is silcd/idlist.h.
3475 Wed Apr 18 22:19:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3477 * Moved the channel message encrypting in the router betwen
3478 router connections from silc_server_channel_message to the
3479 silc_server_packet_relay_to_channel since we want to check
3480 whether we have anybody channel before encrypting anything.
3481 Affected files silcd/packet_[receive/send].c.
3483 Tue Apr 17 21:18:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3485 * Fixed the [AdminConnection] server config section to support
3486 multiple entries. Affected file silcd/serverconfig.c.
3488 * Added support into the server to check the validity of the
3489 incoming connection before executing any KE or authentication
3492 * The connection configuration is now saved to the KE and
3493 connection auth protocol contexts and not fetched anymore in
3494 the protocol. Affected files silcd/server.c, silcd/protocol.[ch].
3496 * The local hosts listenning address and port is also resolved
3497 now when starting the server. We want to have the socket object
3498 to include the real address and port for the listener. Added
3499 new function silc_net_check_local_by_sock into the files
3500 lib/silcutil/silcnet.[ch].
3502 * Fixed a broadcast bug in server -> do not broadcast if we
3505 * Fixed a routing bug. Do not route broadcast packets ever.
3506 Broadcast packets must be processed always and not routed since
3507 they may be destined to some other host than yourself and thus
3508 would get routed without no good reason. Affected file is
3511 * Added function silc_server_config_is_primary_route to check
3512 whether primary router connection has been configured (a router
3513 configuration that we are initiating). If there is not, we
3514 will assume that there is only two routers in the SILC network
3515 and we will use the incoming router connection as our primary
3516 route. Affected files silcd/serverconfig.[ch], silcd/server.c.
3518 * Changed the order of the broadcasting. Broadcast _after_ the
3519 packet has been processed not before. Affected file is
3522 * Fixed a [ClientConnection] parsing bug. The port was never
3523 parsed correctly thus resulting to port 0. Affected file
3524 silcd/serverconfig.c.
3526 * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
3527 argument and did not set the broadcast packet flag. Affected
3528 file silcd/packet_send.c. Fixed same bug in the function
3529 silc_server_send_notify as well.
3531 * If we receive NEW_ID packet for our own ID in the server, ignore
3534 Mon Apr 16 12:10:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3538 * Removed the nickname from the Private Message Payload.
3539 Updated the code and the protocol specs.
3541 * Updated protocol specs for submitting to the IETF.
3543 * Tweaked the Random Number Generator a bit. Affected file
3544 lib/silccrypt/silcrng.c. Exported a new function
3545 silc_rng_[global]_add_noise which can be used to add more
3548 Sat Apr 14 16:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3550 * Do not parse packets with different timeout when protocol
3551 is active -> may cause problem with rekey. Affected file
3554 * When server receives signoff notify it must not create
3555 new channel key if the client is on any channels since the
3556 sender of the signoff notify will create it.
3558 Fri Apr 13 17:12:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3560 * Added printing of error messages during SKE protocol from the
3561 failure packet sent by server during SKE. Affected file
3564 * Removed the client's failure_callback handling with timeout
3565 and handle it immediately when received.
3567 * The SKE library returned wrong type in SUCCESS and FAILURE
3568 packets. They must be 32 bit MSB not 16 bit MSB.
3570 Fri Apr 13 00:09:08 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3572 * Ok, rewrote the logic of the re-key and now it seems to work.
3573 I tested it on high traffic with frequent re-keys without
3574 problems. Added hmac_receive (and renamed hmac to hmac_send)
3575 in SilcClientConnection in lib/silcclient/client.h and
3576 in SilcIDListData in silcd/idlist.h. Also, removed the
3577 SilcPacketParserContext's cipher and hmac fields as they are
3578 not needed anymore and actually caused some problems when
3579 the ciphers and hmac's changed underneath the packet parser.
3581 Thu Apr 12 14:42:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3583 * If re-key protocol is active then process the incoming packets
3584 synchronously since we must assure that icoming packets encrypted
3585 with the old key is processed before the new keys is set to
3586 use. This is true other packets than for REKEY packets.
3587 Affected file silcd/server.c. The same was done to client library
3588 as well, affected file lib/silcclient/client.c.
3590 Thu Apr 12 12:01:52 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3592 * Fixed bug in client and server to accept the force send if
3593 the packet is send from silc_[server/client]_packet_process
3594 function. Otherwise the packets are never delivered, oops.
3596 Wed Apr 11 22:10:15 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3598 * Disable force sending of packets when REKEY protocol is active.
3599 We must assure that no packet is sent directly when rekey is
3600 performed. All packets must be sent through packet queue.
3601 Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
3602 SILC_CLIENT_IS_REKEY to lib/silcclient/client.h. Affected
3603 function is silc_[server/client]_packet_send_real to check
3606 * Replaced the SIM paths from example config files to
3607 /usr/local/modules. Also, make install creates now
3608 /usr/local/silc/logs directory to hold all the SILC server
3611 Wed Apr 11 16:59:59 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3613 * Made the configure.in.pre work on Solaris. Patch by salo.
3615 * Made all ciphers compatible with non-x86 machines. Defined
3616 CBC mode macros into lib/silccrypt/ciphers_def.h.
3618 Tue Apr 10 20:32:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3620 * Fixed the make install.
3622 Tue Apr 10 16:20:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3624 * When MAC computation fails the silc_packet_decrypt returned 0
3625 even though it was supposed to return -1. Fixed this. The
3626 affected file is lib/silccore/silcpacket.c.
3628 * Do not replace the config files in /etc/silc (in make install)
3629 if they already exist. Affected file ./Makefile.am.
3631 * Do not send re-key packets immediately but through packet queue.
3632 Affected file silcd/protocol.c and lib/silcclient/protocol.c.
3634 * Changed silc_net_check_host_by_sock to return FALSE if the
3635 IP/DNS could not be resolved. Though, it returns the IP address
3636 now even if it could not resolve it (but returns also FALSE).
3637 Affected file lib/silcutil/silcnet.[ch].
3639 Mon Apr 9 21:54:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3641 * Added silc_pkcs_decode_identifier to decode the public key's
3642 identifier. Affected file lib/silccrypt/silpkcs.[ch].
3643 Added also silc_pkcs_free_identifier. Added also new context
3644 SilcPublicKeyIdentifier.
3646 * Added -S option to the silc client. It is used to dump the
3647 contents of the specified public key file.
3649 * Changed the PKCS api to return the public key length when
3650 setting the public key.
3652 * Fixed a fatal bug in the public and private key file loading.
3653 Affected file lib/silccrypt/silcpkcs.c.
3655 * Execute the packet parsing for client with zero (0) timeout
3656 if the protocol is active. Affected file silcd/server.c.
3658 Sun Apr 8 19:30:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3660 * Made the key generation options to the silcd program. Added
3661 -C option, equivalent to client's option.
3663 * Added new [ServerKeys] config section to the server. It
3664 configures the server's public and private key.
3666 * Defined generic Public Key Payload into the protocol
3667 specification to send specific type of public keys and
3670 * Defined new command SILC_COMMAND_GETKEY to fetch a client's
3671 public key or certificate.
3673 * Implemented the GETKEY command to the server and to the
3674 client library and on user interface.
3676 Sun Apr 8 01:37:21 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3678 * Made preliminary `make install' work.
3680 Thu Apr 5 17:42:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3682 * Added SilcServerRekey context into silcd/idlist.h.
3684 * Added the PFS support as defined in the specification to the
3685 SKE protocol. Affected files lib/silcske/*.c.
3687 * Added `ske_group' field to the SilcServerRekey context to hold
3688 the number of the SKE group that is used with PFS in re-key.
3689 Affected file silcd/idlist.h.
3691 * Added PFS re-key support to the server. Affected file is
3694 * Added silc_protocol_cancel to cancel execution of the next
3695 state of the protocol. Affected file is
3696 lib/silccore/silcprotocol.[ch].
3698 * Added the re-key support with and without PFS to the client
3699 library. Re-key is performed once in an hour, by default.
3701 Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
3702 Added silc_client_rekey_callback and silc_client_rekey_final.
3703 Affected files are lib/silcclient/protocol.[ch] and
3704 lib/silcclient/client.[ch].
3706 * Removed the `hmac_key' and `hmac_key_len' fields from the
3707 SilcClientConnection structure; not needed. Affected file is
3708 lib/silcclient/client.h.
3712 Wed Apr 4 16:32:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3714 * Do not ask whether user wants to use the negotiated private key
3715 for private messages, just use it. Affected file is
3716 silc/local_command.c.
3718 * Added `send_enc_key' and `enc_key_len' fields to the
3719 SilcIDListData structure since they are needed in the re-key
3720 phase. Affected file is silcd/idlist.[ch].
3722 * Implemented the simple re-key protocol into the server.
3723 Affected files silcd/server.c and silcd/protocol.[ch]. The
3724 re-key will be performed once in an hour, by default.
3726 Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
3727 Added silc_server_rekey, silc_server_rekey_callback and
3728 silc_server_rekey_final.
3730 * Removed Tunneled flag from the protocol. Updated the code
3731 and the specifications.
3733 * Adde `pfs' field to the SilcIDListData to indicate whether
3734 the PFS is to be performed in the re-key. Affected file is
3737 Tue Apr 3 21:52:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3739 * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
3740 int64 of at least the xintXX size. If void * is less that 4
3741 bytes uint32 * will be used. Defined bool as boolean.
3743 * Changed _ALL_ unsigned long and unsigned int to uint32,
3744 unsgined short to uint16 in the source tree.
3746 * Fixed a fatal bug in silc_server_remove_clients_by_server. Do
3747 not handle clients that has entry->data.registered == FALSE.
3748 They are not in the network anymore. Affected file is
3751 Tue Apr 3 16:39:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3753 * Implemented the sending of the SERVER_SIGNOFF notify in the
3754 server. Affected file is silcd/server.c.
3756 * Added silc_server_send_notify_args into silcd/packet_send.[ch].
3757 Added also silc_notify_payload_encode_args into the
3758 lib/silccore/silcnotify.[ch].
3760 * Implemented ther SERVER_SIGNOFF notify handling in the server.
3761 Affected file silcd/packet_receive.c.
3763 * Implemented the SERVER_SIGNOFF notify handling in the client
3764 library. Affected file lib/silcclient/client_notify.c. Also,
3765 implemnted the printing of the SERVER_SIGNOFF info to the
3766 application. Affected file silc/client_ops.c.
3768 * The silc_idlist_del_server now returns TRUE or FALSE to indicate
3769 if the deleting was successful. Affected file silcd/idlist.[ch].
3771 * Added support for public key authentication in the connection
3772 authentication protocol in the client library. Affected file
3773 lib/silcclient/protocol.c.
3775 * Changed the server's silc_idlist_get_clients_by_* interface
3776 to support already allocated array so that new entries may be
3777 added to pre-allocated array. Affected file silcd/idlist.[ch].
3778 This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
3779 and command replies.
3781 * All command reply functions in the server now calls the
3782 pending command callback even if error occured. This way the
3783 error will be delivered to the client as well. Affected files
3784 silcd/command.c and silcd/command_reply.c.
3786 * Fixed INFO command to return local server's info if no server
3787 was provided. Affected file lib/silcclient/command.c.
3789 * Removed RESTART command for good. Updated the code and the
3792 * Rewrote parts of the task system. It is a bit simpler now.
3793 Removed unsued task priorities. The affected files are
3794 lib/silcutil/silctask.[ch].
3796 Mon Apr 2 20:02:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3798 * Moved the USERS printing from the library to the application.
3799 Affected files lib/silcclient/command.c and silc/client_ops.c.
3801 Mon Apr 2 13:13:23 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3805 * Added channel key re-key support. The re-key is perfomed
3806 only by the router and is done once in an hour. Added `rekey'
3807 field to the SilcChannelEntry in the server. Affected files
3808 silcd/server.c and silcd/idlist.h.
3810 * Added silc_task_unregister_by_context into the file
3811 lib/silcutil/silctask.[ch].
3813 Sun Apr 1 19:49:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3815 * Added SILC_UMODE_GONE mode to indicate when the client is not
3816 present in the SILC network. Added also support to the local
3817 command AWAY that will set this mode. Added support of showing
3818 "xxx is gone" in WHOIS command. The USERS command shows the
3819 gone status as well.
3821 * Fixed setting server and router operator privileges in the
3822 server's UMODE command. Affected file silcd/command.c.
3824 * Merged the SKE KE1 and KE2 payloads into one payload. The
3825 new KE payload is equivalent to the old KE2 payload.
3827 Cleaned up the SKE Start Payload parsing. It now uses the
3828 simple buffer unformatting to do the parsing. A lot faster
3831 Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
3832 to the SKE that is used to indicate whether both of the SKE
3833 parties should perform authentication. By default only the
3834 responder performs authentication. By setting this flag also
3835 the initiator must do authentication. By default it is unset
3836 since in normal SKE case, client to server connection, only
3837 the responder should do authentication. When doing SKE between
3838 two clients both should perform authentication. Updated the
3839 code and the protocol specs.
3841 * A little fix to IDENTIFY command in the server. Search the
3842 client first by hash not nickname. Affected file is
3845 * Fixed the silc_client_close_connection to support closing
3846 the client to client connections wihtout deleting too much
3847 data. Affected file lib/silcclient/client.c.
3849 * Fixed a fatal bug in server and client; if KE1 or KE2 packets
3850 are received if protocol used to be active but is not anymore
3851 the application would crash due to NULL pointer dereference.
3852 Affected files silcd/server.c and lib/silcclient/client.c.
3854 * Added `hash' field to the SilcClientConnection to include
3855 the hash function negotiated in the SKE protocol.
3857 * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
3858 to set the channel founder authentication data. A client can
3859 claim the founder rights later by providing the authentication
3860 data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
3861 This way the channel founder can regain the channel founder
3862 privileges even it is left the channel. This works only on
3863 local server and the client must be connected to the same
3864 server to be able to regain the founder rights. Updated the
3865 protocol specs accordingly.
3867 Added support to the CMODE command in the client to set the
3868 founder auth data. Read the README to see how to set it.
3870 Added support to the CUMODE command to claim the founder
3871 rights. Read the README to see how to do it.
3873 Added support for the founder authentication to the Channel
3874 Entry in the server. Affected file silcd/idlist.h.
3876 Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
3877 server's CMODE command. Affected file silcd/command.c.
3879 * Added the following new functions into lib/silccore/silcauth.[ch]:
3880 silc_auth_get_method and silc_auth_get_data.
3882 * The server now saves the remote hosts public key to the
3883 SilcIDListData pointer. Affected file silcd/protocol.c.
3885 * The normal server now does not remove the channel entry from
3886 the cache if the founder authentication data is set. It used
3887 to remove it if the founder was the last one on the channel on
3888 the server and left the channel. The auth data is saved and
3889 if the channel is re-joined later the old entry is used with
3890 the old auth data. Affected files silcd/command_reply.c and
3893 * Removed the `pkcs' field from the SilcIDListData structure
3894 in the server; it is not used. Affected file silcd/idlist.h.
3896 Sat Mar 31 15:38:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3898 * Fixed packet processing on slow links. Partial packets were
3899 never re-processed because the incoming data buffer was cleared
3900 by the application. Application must not directly clear the
3901 sock->inbuf, the packet processing routines handle it. Fixed
3902 this in client library and in server.
3904 Fri Mar 30 16:35:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3906 * Fixed the WHOIS and IDENTIFY send reply function to really
3907 check whether to send list or just one entry. Affected file
3910 * Cleaned up the LEAVE command's channel key distribution. The
3911 affected file silcd/command.c.
3913 * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
3914 can enforce the channel mode as well. In that case the ID
3915 includes the ID of the server. The code now enforces the
3916 mode change if the router have different mode than the server.
3918 * The notify client operation with CMODE_CHANGE notify can now
3919 return NULL client_entry pointer if the CMODE was not changed
3920 by client. Application must check for this.
3922 * Added <Server ID> argument to INFO command to support server
3923 info fetching by Server ID.
3925 * Added silc_server_announce_get_channel_users to get assembled
3926 packets of channel users of the specified channel. Affected
3927 file silcd/server.[ch].
3929 * Fixed bug in CHANNEL_CHANGE notify in the server. The new ID
3930 was freed underneath the ID Cache.
3932 * Re-announce clients when the server received CHANNEL_CHANGE
3933 notify from the router. Affected file silcd/packet_send.c.
3935 Thu Mar 29 19:10:28 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3937 * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
3938 crashed since it did not handle the fact that there is no cipher
3939 called "3" and didn't check the error condition. Now fixed.
3941 * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
3942 flag. It can be used to send message requests.
3944 Thu Mar 29 12:26:25 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3946 * Implemented the RESTART command in the client.
3948 * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
3949 notice type messages. Added notice printing to the user
3952 * The channel keys are not re-generated if the channel's mode
3953 is PRIVKEY, ie private key on the channel exists. Affected
3954 files silcd/server.c and silcd/command.c.
3956 * Fixed a little bug in channel message delivery when channel
3957 private keys are set in the server. Affected file is
3958 silcd/packet_send.c.
3960 * Changed the setting on channel->on_channel = TRUE from the
3961 silc_client_save_channel_key to the JOIN command reply. The
3962 key payload is not received if the private channel key is set.
3963 Affected file lib/silcclient/command_reply.c and the
3964 lib/silcclient/client_channel.c.
3966 * When the CMODE_CHANGE notify is sent and the channel private
3967 key mode is removed the channel key must be re-generated in
3968 other cells as well. Added this support for the router in the
3969 silcd/packet_receive.c.
3971 * Added new local command NOTICE to send notice message on
3972 channel. Affected file silc/local_command.[ch].
3974 Wed Mar 28 23:55:54 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3976 * Added new local command ME to the client. It is used to send
3977 message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
3978 some action. Affected file silc/local_command.[ch].
3980 * Changed channel_message and private_message client operations
3981 to deliver the message flags to the application. Added also
3982 the `flags' arguments to the silc_client_send_channel_message
3983 and silc_client_send_private_message functions. Affected file
3986 Wed Mar 28 20:50:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3988 * Redefined the Private Message Payload to support private message
3989 keys and to support the new private message flags. Updated
3990 the protocol specs. Flags makes it possible to have for example
3991 CTCP style messages.
3993 * Added new type SilcPrivateMessagePayload and defined an API
3994 for it in the lib/silcclient/silcprivate.[ch].
3996 * Tested private message private keys successfully. Tested the
3997 private message key set, unset and list commands with the new
4000 * Redefined the Channel Message Payload to include the channel
4001 message flags (equal with private message flags) to support
4002 for example CTCP style messages.
4004 * Defined some of the message (for channel and private message)
4005 flags. Updated the protocol specs and added the flags to the
4006 lib/silccore/silcchannel.h. The type is SilcMessageFlags.
4008 Wed Mar 28 15:52:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4010 * Added SilcKeyAgreementStatus type to the key agreement routines
4011 to indicate the current status and error if one occured.
4012 The status types are defined in the lib/silcclient/silcapi.h.
4014 * Added new local command KEY that is used to set and unset private
4015 keys for channels, set and unset private keys for private messages
4016 with remote clients and to send key agreement requests and
4017 negotiate the key agreement protocol with remote client. The
4018 key agreement is supported only to negotiate private message keys,
4019 it currently cannot be used to negotiate private keys for channels,
4020 as it is not convenient for that purpose.
4022 * Fixed a minor pending callback setting bug in the function
4023 silc_client_get_client_by_id_resolve, now the function works.
4024 Affected file lib/silcclient/idlist.c.
4026 * Added function silc_net_get_local_port to get local bound
4027 port by socket. Added to lib/silcutil/silcnet.[ch].
4029 * Added `sockets' and `sockets_count' fields to the SilcClient
4030 object. They hold the sockets of the listenning sockets in
4031 the client. Listenning sockets may be for example the key
4032 agreement server. Affected file lib/silcclient/client.[ch].
4033 Added functions the silc_client_add_socket and the
4034 silc_client_del_socket. They are exported to the application
4037 * Added ~./silc/clientkeys to support other client's public keys.
4039 * Renamed verify_server_key client operation to verify_public_key
4040 and added one argument to indicate the type of the connection
4041 (server, client etc.).
4043 Tue Mar 27 22:22:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4045 * Added silc_server_connection_auth_request to handle the
4046 incoming CONNECTION_AUTH_REQUEST packet. Affected file is
4047 silcd/packet_receive.[ch].
4049 * Added silc_server_send_connection_auth_request into the
4050 silcd/packet_send.c to send the connection auth request packet.
4052 * Cleaned up the silcd/protocol.c a bit and fixed some memory
4055 * Fixed the public key authentication in responder side in the
4056 server. The `auth_data' pointer includes the SilcPublicKey
4057 not the path to the public key. Affected file silcd/protocol.c.
4059 * Implemented the public key authentication in the initiator side
4060 in the server. Affected file silcd/protocol.c.
4062 * Removed the [RedirectClient] config section from the server
4063 configuration. Is not needed and I don't want to implement it.
4065 Tue Mar 27 12:49:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4067 * Cleaned up the CMODE command in the server. It now works
4068 correctly and supports all the modes defined in the protocol.
4069 Affected file is silcd/command.c.
4071 * Added `hmac_name' field to the SilcChannelEntry in the server
4072 to hold the default HMAC of the channel. It can be set when
4073 creating the channel (with JOIN command). Affected files
4076 * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
4077 type to indicate the change of the current cipher and hmac
4078 on the channel. Client can safely ignore the <cipher> argument
4079 (if it chooses to do so) since the CHANNEL_KEY packet will
4080 force the channel key change anyway. The <hmac> argument is
4081 important since the client is responsible of setting the new
4082 HMAC and the hmac key into use.
4084 * Fixed the CMODE command in the client library as well.
4086 * Tested CMODE command in router environment successfully.
4088 Mon Mar 26 14:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4090 * Show the version of the remote client (or server) when connecting
4091 to the server. It is logged to the log file. Affected file
4092 is silcd/protocol.c.
4094 * Fixed the KILLED notify handling in the client library. The
4095 client must be removed from all channels when receiving the
4098 Also, do not remove the client entry when giving the KILL
4099 command but when the KILLED notify is received.
4101 * Removed silc_idlist_find_client_by_nickname from the server.
4102 Not needed anymore. Affected files silcd/idlist.[ch].
4104 * Implemented the CHANNEL_CHANGE notify type handling to the
4105 server. Affected file silcd/server.c.
4109 Mon Mar 26 12:11:14 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4111 * Added silc_server_send_notify_invite to send the INVITE
4112 notify between routers.
4114 * Implemented the INVITE command correctly to the server.
4116 * Implemented the INVITE notify type handling in the server.
4118 * Implemented the INVITE command to the client library and on the
4121 Sun Mar 25 20:27:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4123 * Added function silc_server_get_client_resolve to find the
4124 client entry by ID from all ID lists and then resolve it
4125 (using WHOIS) if it cannot be found. Affected file is
4128 Sun Mar 25 13:52:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4130 * Implemented the BAN command to the client library.
4132 * The JOIN command in the server now checks the invite list
4135 * Changed the silc_command_reply_payload_encode_va and the
4136 silc_command_payload_encode_va to support that if argument is
4137 NULL it ignores and checks the next argument. Affected file
4138 lib/silccore/silccommand.c.
4140 * Added silc_server_send_notify_ban to send the BAN notify
4141 type between routers.
4143 * Chaned the silc_notify_payload_encode to support that if
4144 argument is NULL it ignores and checks the next argument.
4145 Affected file lib/silccore/silcnotify.c.
4147 * Tested ban lists in router environment successfully.
4149 Sat Mar 24 14:47:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4151 * Implemented BAN command to the server, in silcd/command.[ch].
4153 * Removed the BAN and INVITE_LIST modes from the CMODE command
4156 * Added function silc_string_match to regex match two strings.
4157 Affected files lib/silcutil/silcutil.[ch].
4159 Fri Mar 23 22:02:40 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4161 * Redefined parts of the SilcChannelEntry in the server to support
4162 the new ban and invite lists.
4164 Fri Mar 23 16:25:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4166 * Redefined the INVITE command. The same command can be used to
4167 invite individuals to the channel but also to manage the invite
4168 list of the channel (to add to and remove from the invite list).
4169 Updated the protocol specs.
4171 * Added new command SILC_COMMAND_BAN that can be used to manage
4172 the ban list of the channel. Updated the protocol specs.
4174 * Removed the channel modes: the SILC_CMODE_BAN and the
4175 SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
4176 in the CMODE command. The equivalent features are now available
4177 using INVITE and BAN commands. Updated the protocol specs.
4179 * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
4180 in the network about change in the current ban list. The notify
4181 type is not used by the client.
4183 * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
4184 support the invite lists.
4186 Thu Mar 22 22:52:23 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4188 * Added new function silc_string_regexify that converts string
4189 including wildcard characters into regex string that can
4190 be used by the GNU regex library. Added into the file
4191 lib/silcutil/silcutil.[ch].
4193 Added silc_string_regex_combine to combine to regex strings
4194 into one so that they can be used as one regex string by
4195 the GNU regex library. Added into the file
4196 lib/silcutil/silcutil.[ch].
4198 Added silc_string_regex_match to match two strings. It returns
4199 TRUE if the strings match. Added into lib/silcutil/silcutil.[ch].
4201 Thu Mar 22 15:29:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4203 * Imported GNU regex to the soruce tree into lib/contrib.
4204 Fixed some compiler warning from the regex.c.
4206 Wed Mar 21 15:27:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4208 * Fixed MOTD command in the server to work in router environment.
4210 * Fixed the MOTD command in the client library to support
4211 the server argument in the command.
4213 * Added `nickname_len' argument to the silc_idlist_add_client
4214 in the server, as the `nickname' argument may be binary data
4217 * Added silc_idlist_get_channels to return all channels from
4220 * Implemented LIST command to the server. Affected file is
4223 * Implemented the LIST command to the client library and on the
4226 * Added [<user count>] argument to the LIST command reply.
4227 With private channels the user count is not shown.
4229 * Updated TODO and README.
4231 Tue Mar 20 21:05:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4233 * The client entry's data.registered must be TRUE even with
4234 global client entry on global client list. The data.registered
4235 is used to check whether the client is anymore in the network,
4236 for example with WHOWAS command so it must be valid.
4238 * Fixed the WHOWAS command in the server. It now actually works
4239 in router environment. Added function into silcd/command_reply.c
4240 silc_server_command_reply_whowas_save.
4242 * Added silc_idlist_purge function to the silcd/idlist.c
4243 to periodically purge the ID Cache.
4245 * Fixed INFO command in the server. It works now in router
4246 environment. Added <server name> argument to the INFO command
4247 reply. Updated the protocol specs.
4249 * Fixed minor bug in silc_idcache_purge to not purge if the
4250 expire value is zero.
4252 * Fixed various bugs in WHOIS and IDENTIFY command handling as
4253 they were buggy because of the WHOWAS information.
4255 * Fixed local command MSG to handle the async resolving of
4256 the remote client properly. It used to fail the first MSG.
4257 Affected file silc/local_command.c.
4259 * Added `data_len' field to SilcIDCache context.
4261 Tue Mar 20 16:29:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4263 * Update TODO. Todo in commands in the server.
4265 Tue Mar 20 15:45:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4267 * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
4268 used by routers as broadcast packet to inform other routers
4269 about the changed user mode.
4271 Implemented the notify handling in the server. Affected file is
4272 silcd/packet_receive.c. Added the function
4273 silc_server_send_notify_umode to the silcd/packet_send.[ch].
4275 * Added new generic Channel Payload and deprecated the New Channel
4276 Payload. The New Channel Payload is now the generic Channel
4279 * Added new argument `mode' to the silc_server_send_new_channel
4280 as it is required in the Channel Payload now.
4282 * Renamed the SilcChannelPayload to SilcChannelMessagePayload
4283 and created a new and real SilChannelPayload to represent the
4284 new generic Channel Payload. Implemented the encode/decode
4285 for Channel Payload. Affected file lib/silccore/silcchannel.[ch].
4287 * Added silc_server_get_client_channel_list to return the list
4288 of channels the client has joined for WHOIS command reply.
4289 Affected file silcd/server.[ch].
4291 * Implemented the channel list sending in the WHOIS command reply
4292 in server and in the client.
4294 Implemented the channel list displaying on the user interface
4295 as well. Affected file silc/client_ops.c.
4297 * Added silc_channel_payload_parse_list to parse list of Channel
4298 Payloads. It returns SilcDList list of SilcChannelPayloads.
4299 Client for example can use this function to parse the list of
4300 channels it receives in the WHOIS command reply. The caller
4301 must free the list by calling silc_channel_payload_list_free.
4302 Affected files lib/silccore/silcchannel.[ch].
4304 Mon Mar 19 21:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4306 * Added one new argument <user mode> to the WHOIS command reply
4307 to return the mode of the user in SILC. Updated the protocol
4310 Implemented it to the server and client.
4312 Mon Mar 19 18:43:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4314 * Fixed the mode printing on the user interface on joining.
4315 Affected file silc/client_ops.c.
4317 * Implemented the UMODE command and user modes in general to the
4318 client library and to the user interface.
4320 * Implemented the UMODE command to the server.
4322 * The server now sends UNKNOWN_COMMAND error status if client sends
4323 unknown command. Affected file silcd/command.c.
4325 * All server commands now handle the command identifier the right
4326 way when sending the command reply to the client. The client can
4327 use to identify the command replies with the identifier.
4329 Mon Mar 19 16:13:07 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4331 * Added silc_server_get_client_route to resolve the route to
4332 the client indicated by the client ID. Affected file is
4335 * Added silc_server_relay_packet as general function to relay
4336 packet to arbitrary destination. This deprecates functions
4337 like _send_private_message_key, _relay_notify etc. Affected
4338 file is silcd/packet_send.[ch].
4340 Removed silc_server_send_key_agreement,
4341 silc_server_send_private_message_key and
4342 silc_server_packet_relay_notify functions from the file
4343 silcd/packet_send.[ch].
4347 * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
4348 server. Affected file silcd/packet_receive.[ch].
4350 * Implemented the KILL command to the client. Implemented the
4351 SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
4352 Affected files lib/silcclient/command[_reply].c and
4353 lib/silcclient/client_notify.c. Implemented the KILL notify
4354 printing in the user inteface.
4356 * Fixed a lot silc_parse_nick memory leaks from the client
4357 library in the file lib/silcclient/command.c.
4359 * Changed the silc_server_send_notify_on_channels's `sender'
4360 argument from SilcSocketConnection to SilcClientEntry to
4361 check the sender as entry and not as connection object and not
4362 to send to the client provided as argument. The affected file
4363 is silcd/packet_send.[ch].
4365 * The notify packets that are destined directly to the client used
4366 to not to be processed by the server. Now changed that and the
4367 server processes all notify packets. After relaying the packet
4368 to the client the notify packet is processed in the server.
4370 * The silc_server_free_client_data now checks whether there is
4371 pending outgoing traffic for the client and purges the data to
4372 the network before removing the client entry.
4374 Sun Mar 18 21:02:47 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4376 * Added SILC_NOTIFY_TYPE_KILLED notify type. It is sent when
4377 an client is killed from the SILC Network. Updated the protocol
4380 Added new function silc_server_send_notify_killed to the
4381 silcd/packet_send.[ch].
4383 * Added function silc_server_packet_relay_notify to relay notify
4384 packets that are destined directly to a client. In this case
4385 the server does not process the notify packets but merely relays
4386 it to the client. Affected file silcd/packet_send.[ch].
4388 Added also silc_server_packet_process_relay_notify to check
4389 whereto relay the notify. Affected file is
4390 silcd/packet_receive.[ch].
4392 * Implemented the KILL command to the server.
4396 * Added the backup schema desgined last fall to the protocol
4397 specs for everyone to see. The specification is in the
4398 *-spec-xx.txt draft and the packet type definitions for the
4399 backup routers is in *-pp-xx.txt draft. Thusly, added also
4400 new packet type SILC_PACKET_CELL_ROUTERS.
4402 * A big security problem in the implementation discovered. The
4403 signoff of an client did not cause new channel key generation
4404 which it of course should've done. The channel keys must be
4405 always re-generated when client leaves (or signoffs) the channel.
4406 The silc_server_remove_from_channels funtion now handles
4407 the channel key re-generation.
4409 * Added `sender' argument to the silc_server_send_notify_on_channels
4410 to not to send the client provided as argument. Affected file
4411 silcd/packet_send.[ch].
4413 Fri Mar 16 15:52:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4415 * Implemented OPER and SILCOPER commands into the server and
4418 * Added silc_auth_verify and silc_auth_verify_data to verify
4419 the authentication directly from the authentication payload.
4420 It supports verifying both passphrase and public key based
4421 authentication. Affected file lib/silccore/silcauth.[ch].
4423 * Added `hash' field to the SilcIDListData structure. It is the
4424 hash negotiated in the SKE protocol. Affected file is
4427 * Slight redesigning of the SilcAuthPayload handling routines.
4428 Do not send SilcPKCS but SilcPublicKey as argument.
4430 * Implemented the public key authentication support to the
4431 serverconfig. The public key is loaded from the provided path
4432 and saved as authentication data to void * pointer. Thus,
4433 changed the unsigned char *auth_data to void *auth_data;
4435 * Fixed SHUTDOWN command to send the reply before the server
4436 is shutdown. :) Affected file silcd/command.c.
4438 * Fixed fatal bug in CONNECT command. The hostname was invalid
4439 memory and server crashed. Affected file silcd/command.c.
4441 * Fixed fatal bug in CLOSE command. The server_entry became
4442 invalid but was referenced later in the command. Affected file
4445 Thu Mar 15 12:46:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4447 * Fixed fatal bug in failure packet handling. Server ignored
4448 the failure and thus crashed when it came.
4452 Wed Mar 14 20:37:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4454 * Added new SILC_CF_LAG_STRICT command flag that strictly forces
4455 that the command may be executed only once in (about) 2 seconds.
4456 The old SILC_CF_LAG flag is same but allows command bursts up
4457 to five before limiting.
4459 Added the support for CF_LAG and CF_LAG_STRICT flags to the
4460 server code. Various commands now includes the CF_LAG_STRICT
4461 flag to disallow any kind of miss-use of the command.
4463 * Fixed the silc_buffer_unformat to not to allocate any data
4464 if the length of the data is zero. It used to allocate the
4465 length + 1. Affected file lib/silcutil/silcbuffmt.c.
4467 Wed Mar 14 16:10:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4469 * Changed the format of AdminConnection configuration section
4470 in the server. Added username of the admin to the format.
4471 Affected files silcd/serverconfig.[ch].
4473 Added silc_server_config_find_admin into silcd/serverconfig.[ch]
4474 to return admin configuration data by host, username and/or
4477 Wed Mar 14 13:18:16 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4479 * Implemented WHOWAS command to the server. Added the functions:
4481 silc_server_command_whowas_parse,
4482 silc_server_command_whowas_send_reply,
4483 silc_server_command_whowas_from_client and
4484 silc_server_command_whowas_from_server
4486 * Added <Client ID> argument to the WHOWAS command reply. Updated
4487 the protocol specs accordingly.
4489 * Implemented WHOWAS command and command_reply to the client
4492 Implemented the WHOWAS printing on the user interface.
4494 Tue Mar 13 22:17:34 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4496 * Added new argument to the WHOWAS command reply, the real name.
4497 It is an optional argument. Updated the protocol specs.
4499 * Added SilcIDCacheDestructor callback that is registered when
4500 the SilcIDCache is allocated. The callback is called when
4501 an cache entry in the ID Cache expires, or is purged from the
4502 cache. Added into lib/silccore/idcache.[ch].
4504 Added silc_idlist_client_destructor to the silcd/idlist.[ch]
4505 to destruct the client entries when the cache entry expires.
4506 Other ID Cache's in server and in the client library ignores
4509 * If the ID Cache entry's `expire' field is zero then the entry
4510 never expires. Added boolean `expire' argument to the
4511 silc_idcache_add function in the lib/silccore/idcache.[ch].
4512 If it is TRUE the default expiry value is used.
4514 * Added silc_server_free_client_data_timeout that is registered
4515 when client disconnects. By default for 5 minutes we preserve
4516 the client entry for history - for WHOWAS command.
4518 Tue Mar 13 13:26:18 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4520 * Added support to the server to enforce that commands are not
4521 executed more than once in 2 seconds. If server receives
4522 commands from client more frequently, timeout is registered
4523 to process the commands. Affected file silcd/command.c.
4524 Added new function silc_server_command_process_timeout.
4526 * Changed NICK_NOTIFY handling in client library to check that
4527 if the client's nickname was changed, so there is no need to
4528 resolve anything from the server.
4530 * Removed error printing from the WHOIS and IDENTIFY commands.
4531 If error occurs then it is ignored silently in the client library.
4532 The application, however, may map the received error to
4533 human readable error string. The application currently maps
4534 the NO_SUCH_NICKNAME error to string.
4536 * Made the command status message public to the application. Moved
4537 them from lib/silcclient/command_reply.c to
4538 lib/silcclient/command_reply.h. The application can map the
4539 received command status to the string with the
4540 silc_client_command_status_message function.
4542 * Added check to the server to check that client's ID is same
4543 as the Source ID in the packet the client sent. They must
4546 Tue Mar 13 12:49:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4548 * Added dist-bzip hook to the Makefile.am to make bzip2
4549 compressed distributions.
4551 Mon Mar 12 18:43:38 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4553 * Server now enforces the maximum length for the nickname and
4554 the channel as protocol specification dictates. 128 bytes for
4555 nickname and 256 bytes for channel name.
4557 * Moved the WHOIS printing to the application. The client libary
4558 does not print out the WHOIS information anymore, the application
4559 must do it. Renamed silc_client_command_reply_whois_print to
4560 the silc_client_command_reply_whois_save.
4562 The client's idle time is also sent to the application now, and
4563 the idle is shown on screen.
4565 * Added silc_client_command_reply_identify_save to save the
4566 received IDENTIFY entries.
4568 * Do not check for channel private keys in message sending and
4569 reception if the channel does not have the PRIVKEY mode set.
4570 Affected file lib/silclient/client_channel.c.
4572 Sun Mar 11 20:25:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4574 * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
4575 just surfaced after chaning the JOIN procedure.
4577 Sun Mar 11 14:59:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4579 * Added silc_client_get_clients_by_list to get client entries
4580 from Client ID list, that is returned for example by JOIN
4581 and USERS command replies. The application should use this
4582 function for example when JOIN command reply is received to
4583 resolve the clients already on the channel (library does not
4584 do that anymore as USERS command reply is not used in the JOIN
4585 procedure anymore). Affected files lib/silcclient/silcapi.h and
4586 lib/silcclient/idlist.c.
4588 * JOIN command reply and USERS command reply returns now SilcBuffer
4589 pointers instead of unsigned char pointers when returning
4590 the client list and mode list.
4592 * Added <Client ID> argument to the JOIN command reply, mainly
4593 for the server to identify for which client the command was
4594 originally sent. Updated protocol specs accordingly.
4596 * Added SilcDlist private_key pointer to the SilcChannelEntry
4597 in the client to support the channel private keys. Affected
4598 file is lib/silcclient/idlist.h.
4600 * Added SilcChannelPrivateKey argument to the function
4601 silc_client_send_channel_message so that application can choose
4602 to use specific private ke if it wants to. If it is not provided,
4603 the normal channel key is used, unless private keys are set.
4604 In this case the first (key that was added first) is used
4605 as the encryption key.
4607 * Implemented the support for channel private key handling.
4608 Implemented the following functions:
4610 silc_client_add_channel_private_key,
4611 silc_client_del_channel_private_keys,
4612 silc_client_del_channel_private_key,
4613 silc_client_list_channel_private_keys and
4614 silc_client_free_channel_private_keys
4616 Affected file lib/silcclient/client_channel.c.
4618 * Added the support for the private keys in the channel message
4619 sending and encryption and in the message reception and
4620 decryption. Affected funtions are
4621 silc_client_send_channel_message and silc_client_channel_message.
4623 Sat Mar 10 21:36:22 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4625 * Added SKE's key verify callback to the client library's
4626 KE protocol context. Affected files lib/silcclient/protocol.[ch].
4628 * Removed the statement that server (or router) must send USERS
4629 command reply when joining to the channel so that the client
4630 knows who are on the channel. Instead, the client list and
4631 client's mode list is now sent in the JOIN command reply to the
4632 client who joined channel. This is better solution.
4634 * Added function silc_server_get_users_on_channel and function
4635 silc_server_save_users_on_channel to the silcd/server.[ch].
4637 * Removed function silc_server_command_send_users from the
4640 * Do not show topic on the client library anymore. The topic is
4641 sent in the command reply notify to the application and the
4642 application must show the topic now.
4644 Sat Mar 10 00:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4646 * Added client searching by nickname hash into the IDENTIFY and
4647 WHOIS commands in the server as they were clearly missing from
4648 them. Affected file is silcd/command.c.
4650 * Fixed a bug in private message receiving in the client library.
4651 The remote ID was freed and it wasn't supposed, now it is
4654 Fri Mar 9 12:40:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4656 * Minor fix to the channel payload; allocate the data area, as it
4657 needs to be of specific length.
4659 * If the key agreement port is zero then the operating
4660 system will define the bound port. Affected files are
4661 lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
4663 * Added new function silc_channel_payload_decrypt into the file
4664 lib/silccore/silcchannel.[ch].
4666 * Moved the channel message etc, check from silc_packet_decrypt
4667 to applications. The library calls now a generic
4668 SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
4669 when the packet is either normal or special. This was done to
4670 allow more wide range of checking that was not allowed when
4671 the code was in library. Now applications can do virtually any
4672 checks to the packet and return to the library the decision how
4673 the packet should be processed. Affected files are
4674 lib/silccore/silcpacket.[ch].
4676 Added silc_server_packet_decrypt_check to the server and
4677 silc_client_packet_decrypt_check to the client library.
4679 * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
4680 to send with specified source and destination information.
4682 * Channel message delivery between routers was broken after the
4683 channel key distribution was fixed earlier. The channel key
4684 was used be to distributed to other routers as well which is not
4685 allowed by the protocol. Now this is fixed and channel keys
4686 really are cell specific and the channel message delivery between
4687 routers comply with the protocol specification.
4689 * Fixed various commands in server to check also the global list
4690 for the channel entry and not just the local list. The affected
4691 file silcd/command.c.
4693 Thu Mar 8 21:39:03 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4695 * Added assert()s to buffer formatting and unformatting routines
4696 to assert (if --enable-debug) when error occurs. Affected
4697 file: lib/silcutil/silcbuffmt.c.
4699 * Changed to auto-reconnect to check whether the remote host is
4700 router and register the re-connect timeout if it is. It used
4701 to check that whether we are normal server, but router must do
4702 auto-reconnect with another router as well. Affected file
4705 * Removed the [<key len>] option from CMODE command as the cipher
4706 name decides the key length, nowadays. See the defined ciphers
4707 from the protocol specification.
4709 * Added [<hmac>] option to the CMODE command to define the HMAC
4710 for the channel. Added SILC_CMODE_HMAC channel mode.
4712 * Added [<hmac>] option for the JOIN command so that user can
4713 select which HMAC is used to compute the MACs of the channel
4716 * Added Hmac field to the Channel Message Payload. The integrity
4717 of plaintext channel messages are now protected by computing
4718 MAC of the message and attaching the MAC to the payload. The
4719 MAC is encrypted. Now, it is clear that this causes some
4720 overhead to the size of the packet but rationale for this is that
4721 now the receiver can verify whether the channel message decrypted
4722 correctly and also when private keys are set for the channel the
4723 receiver can decrypt the packet with several keys and check from
4724 the MAC which key decrypted the message correctly.
4726 * Added silc_cipher_encrypt and silc_cipher_decrypt into the
4727 lib/silccrypt/silccipher.[ch].
4729 * Added silc_hash_len to return the digest length into the
4730 lib/silcrypt/silchash.[ch].
4732 * Rewrote parts of Silc Channel Payload interface in the
4733 lib/silccore/silcchannel.[ch]. The encode function now also
4734 encrypts the packet and parse function decrypts it.
4736 Wed Mar 7 20:58:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4738 * Fixed a minor formatting bug in the SKE's key material processing.
4739 It actually might have processed the keys wrong way resulting
4742 * Redefined the mandatory HMAC algorithms and added new algorithms.
4743 Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
4744 and hmac-md5 truncated to 96 bits. The mandatory is now
4745 hmac-sha1-96. Rest are optional (including the one that used
4746 to be mandatory). Rationale for this is that the truncated HMAC
4747 length is sufficient from security point of view and can actually
4748 make the attack against the HMAC harder. Also, the truncated
4749 HMAC causes less overhead to the packets. See the RFC2104 for
4752 * Added new [hmac] configuration section. The SKE used to use
4753 the hash names (md5 and sha1) in the SKE proposal as HMCAS which
4754 is of course wrong. The official names that must be proposed in
4755 the SKE are the ones defined in the protocol specification
4756 (hmac-sha1-96 for example). The user can configure any hmac
4757 using any hash function configured in the [hash] section. At
4758 least, the mandatory must be configured.
4760 Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
4762 * Added HMAC list to the SKE proposal list. It has now both
4763 hash algorithm list and HMAC list. This makes the protocol
4764 incompatible with previous versions. The SKE now seems to work
4765 the way it is supposed to work, for the first time actually.
4767 * Defined plain Hash algorithms to the protocol specification.
4770 Tue Mar 6 15:36:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4772 * Implemented support for key agreement packets into the server.
4773 Added functions silc_server_key_agreement and
4774 silc_server_send_key_agreement. Other than these functions,
4775 server has nothing to do with this packet.
4777 * Added support for private message key packets into the server.
4778 Added functions silc_server_private_message_key and
4779 silc_server_send_private_message_key.
4783 * Changed the silc_[client|server]_protocol_ke_set_keys to be
4784 called in the protocol's final callback instead in the END
4785 protocol state. This makes a little more sense and in the same
4786 time in client we can use the same protocol routines for normal
4787 key exchange and to key agreement packet handling as well.
4789 * Added to both client's and server's KE protocol context the
4790 SilcSKEKeyMaterial pointer to save the key material. We will
4791 bring the key material to the protocol's final callback by doing
4792 this. The final callback must free the key material.
4794 * Added SKE's packet_send callback into client's KE protocol
4795 context so that the caller can choose what packet sending function
4796 is used. This way we can use different packet sending when
4797 doing normal SKE when doing key agreement packet handling (in
4798 the key agreement packet handling we do not want to encrypt
4801 * Implemented the responder side of the key agreement routines
4802 in the client. The client can now bind to specified port and
4803 accept incoming key negotiation. The key material is passed
4804 to the application after the protocol is over.
4806 * Implemented the processing of incoming Key Agreement packet
4807 in the client. Added function silc_client_key_agreement to
4810 * Implemented the intiator side of the key agreement routines
4811 in the client. The client can now initiate key agreement with
4812 another remote client. The key material is passed to the
4813 application after the protocol is over.
4815 * Created client_keyagr.c to include all the key agreement
4818 * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
4819 SILC_TASK_CALLBACK except that it is not static.
4821 * Created client_notify.c and moved the Notify packet handling
4822 from the client.[ch] into that file.
4824 * Created client_prvmsg.c and moved all private message and
4825 private message key routines from the client.[ch] into that file.
4827 * Create client_channel.c and moved all channel message and
4828 channel private key routines from the client.[ch] into that file.
4830 * Changed silc_client_get_client_by_id_resolve to resolve with
4831 WHOIS command instead of IDENTIFY command, in the file
4832 lib/silclient/idlist.c.
4834 Mon Mar 5 18:39:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4836 * Implemented the SKE's responder side to the Client library.
4838 * When FAILURE is received to the protocol do not trust it
4839 blindly. Register a timeout to wait whether the remote closes
4840 the connection as it should do it, only after that process the
4841 actual failure. This was changed to both client and server.
4843 * Added client_internal.h to include some of the structures
4844 there instead of client.h in lib/silcclient/.
4846 * Added function silc_task_unregister_by_callback to unregister
4847 timeouts by the callback function.
4849 Sat Mar 3 19:15:43 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4851 * Some "Incomplete WHOIS info" errors has been appearing on the
4852 log files. Took away the entry->userinfo check from WHOIS
4853 reply sending. The entry->userinfo is now " " if client did not
4854 provide one. I thought this was fixed earlier but something
4855 is wrong still. Let's see if the error still appears.
4857 Wed Feb 28 20:56:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4859 * Fixed a minor bug in the login when the channel key is
4860 re-generated in the server. It used to generate the key in
4861 wrong order and thus caused problems in the channel traffic.
4863 * Fixed a minor bug in channel key distsribution after
4864 KICK command. The key was not sent to the router even though
4867 Tue Feb 27 20:24:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4869 * Added silc_ske_process_key_material_data as generic routine
4870 to process any key material as the SILC protocol dictates. The
4871 function is used by the actual SKE library but can be used by
4872 applications as well. This relates to the private message keys
4873 and the channel private keys since they must be processed the
4874 same way the normal SILC session keys. The protocol dictates
4875 this. Affected files: lib/silcske/silcske.[ch].
4877 Added also silc_ske_free_key_material to free the
4878 SilcSKEKeyMaterial structure.
4880 * Defined silc_cipher_set_key function to set the key for
4881 cipher without using the object's method function. The affected
4882 files: lib/silccrypt/silccipher.[ch].
4884 * Implemented silc silc_client_add_private_message_key,
4885 silc_client_add_private_message_key_ske,
4886 silc_client_del_private_message_key,
4887 silc_client_list_private_message_keys and
4888 silc_client_free_private_message_keys functions in the
4891 Added functions silc_client_send_private_message_key to send
4892 the Private Message Key payload and silc_client_private_message_key
4893 to handle incoming Private Message Key payload.
4895 * Added Cipher field to the Private Message Key payload to set
4896 the cipher to be used. If ignored, the default cipher defined
4897 in the SILC protocol (aes-256-cbc) is used.
4899 Tue Feb 27 13:30:52 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4901 * Removed lib/silcclient/ops.h file.
4903 Redefined parts of the SILC Client Library API. Created new
4904 file silcapi.h that deprecates the ops.h file and defines the
4905 published Client Library API. Defined also private message key
4906 API and channel private key API into the file.
4908 This is the file that the application must include from the
4909 SILC Client Library. Other files need not be included by
4910 the application anymore.
4912 * Added new key_agreement client operation callback and also
4913 defined the Key Agreement library API for the application.
4915 Tue Feb 27 11:28:31 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4917 * Added new packet type: SILC_PACKET_KEY_AGREEMENT. This packet
4918 is used by clients to request key negotiation between another
4919 client in the SILC network. If the negotiation is started it
4920 is performed using the SKE protocol. The result of the
4921 negotiation, the secret key material, can be used for example
4922 as private message key.
4924 Implemented the Key Agreement payload into the files
4925 lib/silccore/silauth.[ch].
4927 Mon Feb 26 12:13:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4929 * Redefined ciphers for the SILC protocol. Added some new ciphers
4930 and defined the key lengths for the algorithms. Changed the
4931 code accordingly. The default key length is now 256 bits.
4933 * Fixed SKE key distribution function silc_ske_process_key_material
4934 when the key length is more than 128 bits. The default key
4935 length in SILC is now 256 bits.
4937 * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
4938 to indicate unsupported algorithm.
4940 * Renamed rijndael.c to aes.c and all functions as well.
4942 * Fixed a long standing channel key setting bug in client library.
4943 Weird that it has never surfaced before.
4945 * Fixed bug in channel deletion. If the entire channel is removed
4946 then it must also delete the references of the channel entry
4947 from the client's channel list as the client's channel entry and
4948 the channel's client entry share same memory.
4950 Sun Feb 25 20:47:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4952 * Implemented CONNECT and SHUTDOWN commands in the client.
4954 * Implemented CLOSE command to the client.
4956 * Added the function silc_idlist_find_server_by_name into the
4957 files silcd/idlist.[ch].
4959 Added the function silc_idlist_find_server_by_conn into the
4960 files silcd/idlist.[ch].
4962 Sat Feb 24 23:45:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4964 * DIE command was renamed to SHUTDOWN. Updated the both code
4967 * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
4968 SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
4970 * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
4973 * Added function silc_server_create_connection function to create
4974 connection to remote router. My server implementation actually
4975 does not allow router to connect to normal server (it expects
4976 that normal server always initiates the connection to the router)
4977 so the CONNECT command is only good for connecting to another
4980 Sat Feb 24 16:03:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4982 * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
4983 or some other client was kicked from the channel.
4985 Implemented the handling of the notify type to both client
4988 Implemented silc_server_send_notify_kicked to send the KICKED
4989 notify. It is used to send it to the server's primary router.
4991 * Implemented the KICK command into server and client.
4993 * Added `query' argument to the silc_idlist_get_client function
4994 to indicate whether to query the client from server or not if
4997 * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
4998 to indicate that the client is not channel founder.
5002 Sat Feb 24 00:00:55 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5004 * Removed the rng context from SilcPacketContext structure and
5005 changed that the packet routine uses the Global RNG API.
5007 Fri Feb 23 11:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5009 * Added support for quit message that client can "leave" on the
5010 channel when it quits the SILC. It is ditributed inside the
5011 SILC_NOTIFY_TYPE_SIGNOFF notify type.
5013 Added silc_server_free_client_data that will take the
5014 signoff message as argument.
5016 * Changed SKE routines to use the silc_pkcs_sign/verify routines.
5018 Thu Feb 22 23:05:36 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5020 * Updated parts of the protocol specification to keep it up
5023 Thu Feb 22 15:08:20 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5025 * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
5026 payloads in one packet.
5028 * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
5029 NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST. List packets
5030 use now the new List flag.
5032 * Also deprecated the following packet types: REPLACE_ID,
5033 NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
5035 * Added list support for Notify packet in server.
5037 * Added silc_server_send_notify_channel_change to send the
5038 CHANNEL_CHANGE notify type to replace channel ID's. Deprecates
5039 the silc_server_send_replace_id.
5041 * Added silc_server_send_notify_nick_change to send the
5042 NICK_CHANGE notify type. Deprecates the function
5043 silc_server_send_replace_id.
5045 * Added silc_server_send_notify_join to send the JOIN notify type.
5046 Deprecates the function silc_server_send_new_channel_user.
5048 * Added silc_server_send_notify_leave to send LEAVE notify type.
5049 Deprecates the function silc_server_send_remove_channel_user.
5051 * Added silc_server_send_notify_cmode and
5052 silc_server_send_notify_cumode to send CMODE and CUMODE notify
5053 types. Deprecates the silc_server_send_set_mode function.
5055 * Added SERVER_SIGNOFF notify type to indicate that server has
5056 quit. This means that all clients on the channel from that
5057 server will drop. This can be also used when netsplit happens.
5059 Deprecated REMOVE_ID packet type since it is not needed anymore
5062 Added silc_server_send_notify_server_signoff to send the
5063 SERVER_SIGNOFF notify type. Deprecates the function
5064 silc_server_send_remove_id.
5066 Added also silc_server_send_notify_signoff to send the
5067 SIGNOFF notify type.
5069 * Employed the PKCS #1. It is the mandatory way to do RSA in the
5070 SILC protocol from this day on. Changed the protocol
5071 specification as well.
5073 * Added silc_server_send_notify_topic_set to send TOPIC_SET
5074 notify type. It is used between routers to notify about
5075 topic changes on a channel.
5077 * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
5080 * Partly updated the protocol specification to comply with the
5081 changes now made. It is still though a bit outdated.
5083 * The JOIN notify type now takes one extra argument <Channel ID>.
5084 The packet used to be destined to the channel but now the
5085 JOIN type may be sent as list thus it is impossible to
5086 destine it to any specific channel. By adding this argument
5087 it is again possible.
5089 Wed Feb 21 22:39:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5091 * Added CREDITS file. The CHANGES and CREDITS file will appear
5092 in the distribution as well.
5094 Wed Feb 21 14:17:04 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5096 * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
5097 types in the server's silcd/packet_receive.c.
5099 * Implemented CMODE and CUMODE to work in router environment.
5101 * Fixed minor encoding and decoding buglet from the
5102 lib/silccore/silcmode.c.
5104 * Fixed buffer overflow from lib/silcclient/command.c in USERS
5107 Wed Feb 21 12:44:00 EET 2001 Mika Boström <bostik@lut.fi>
5109 * Changed all SilcConfigServer* and silc_config_server* to
5110 SilcServerConfig* and silc_server_config*, respectively.
5113 Wed Feb 21 00:10:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5115 * Associated the ID (client or server ID) to the Authentication
5116 Payload to avoid any possibility of forging. Updated the
5117 protocol specification and the code accordingly.
5119 Tue Feb 20 14:14:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5121 * The RSA key length is now save to the RsaKey context in the
5122 key generation process in lib/silccrypt/rsa.c. The key length
5123 is now used to figure out the maximum size of the block allowed
5124 to be encrypted/signed.
5126 * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch]. It
5127 is equivalent to the silc_mp_mp2bin but does not allocate any
5130 * Changed silc_mp_mp2bin API to take length argument. If it is
5131 non-zero then the buffer is allocated that large. If zero, then
5132 the size is approximated using silc_mp_sizeinbase, which however
5135 * Created Global RNG API which is global RNG that application can
5136 initialize. After initializing, any routine anywhere in the
5137 code (including library) can use RNG without allocating a new
5138 RNG object. This was done to allow this sort of use of the
5139 RNG in code that has no chance to allocate RNG object. All
5140 applications currently allocate this and many routines in the
5141 library use this. Affected file lib/silccrypt/silcrng.[ch].
5143 * Removed the RNG kludge from lib/silcmath/primegen.c and changed
5144 it to use the Global RNG API.
5146 * Defined Authentication Payload into protocol specification that
5147 is used during SILC session to authenticate entities. It is
5148 used for example by client to authenticate itself to the server
5149 to obtain server operator privileges.
5151 Implemented this payload into the lib/silccore/silcauth.[ch].
5152 Implemented also routines for public key based authentication
5153 as the new protocol specification dictates.
5155 Moved definitions of different authentication methods from
5156 lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
5158 * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
5159 silc_pkcs_verify and silc_pkcs_sign_with_hash and
5160 silc_pkcs_verify_with_hash functions into the file
5161 lib/silccrypt/silcpkcs.[ch].
5163 Mon Feb 19 19:59:28 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5165 * The client entry's userinfo pointer must be always valid.
5166 Otherwise the [<unknown>] bug will surface beacuse the WHOIS
5167 will fail since it requires the userinfo. Now, the userinfo
5168 is allocated as "" if actual userinfo does not exist. Actually,
5169 it must exist and it is totally Ok to drop client connections
5170 that does not announce the userinfo. However, we will make
5171 this workaround for now.
5173 * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
5174 to return the remote port by socket.
5176 Mon Feb 19 14:26:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5178 * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
5179 SILC_SERVER_PENDING_EXEC and added an new macro
5180 SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
5181 data or when error occurs while processing the pending command.
5183 Added new argument `destructor' into silc_server_command_pending
5184 and to the SilcServerCommandPending object. This destructor is
5185 now called after calling the pending callback or if error occurs
5186 immediately. If error occurs the actual pending callback won't
5187 be called at all - only the destructor. The destructor may be
5188 NULL if destructor is not needed.
5190 All this applies for client library code as well. Similar
5191 changes were made there as well for the pending commands.
5193 In the client, the application must now allocate the
5194 SilcClientCommandContext with the silc_client_command_alloc
5197 * Added reference counter to the SilcServerCommandContext. Added
5198 function silc_server_command_alloc and silc_server_command_dup
5201 Same type of functions added to the client library for the same
5204 * Removed the cmd_ident from IDListData away since it is now
5205 global for all connections. It is the command identifier used
5206 in command sending and with pending commands. The affected file
5209 * Added reference counter to the SilcSocketConnection objecet to
5210 indicate the usage count of the object. The object won't be
5211 freed untill the reference counter hits zero. Currently only
5212 server uses this, and client ignores it. The client must be
5213 set to use this too later. The affected files are
5214 lib/silccore/silcsockconn.[ch]. Added also the function
5215 silc_socket_dup to increase the reference counter.
5217 This was mainly added because it is possible that the socket
5218 is removed underneath of pending command or other async
5219 operation. Now it won't be free'd and proper DISCONNECTING
5220 flags, etc. can be set to avoid sending data to connection that
5221 is not valid anymore.
5223 * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
5224 the connection. After that it sets SILC_SET_DISCONNECTED.
5225 It is, however, possible that the socket data is not still freed.
5226 The silc_server_packet_process now checks that data is not
5227 read or written to connection that is DISCONNECTED. The socket
5228 get's freed when the reference counter hits zero.
5230 Mon Feb 19 00:50:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5232 * Changed the client operation API: channel_message operation's
5233 `sender' is now the client entry of the sender, not the nickname
5234 and the `channel' is the channel entry, not the channel name.
5236 In the private_message operation the `sender' is now also the
5237 client entry of the sender not the nickname.
5239 Affected file is lib/silcclient/ops.h and all applications
5240 using the client operations.
5242 Sat Feb 17 22:11:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5244 * Moved the calling of ops->connect() from connect_to_server_final
5245 into receive_new_id functin since that is the point when the
5246 client is actually allowed to send traffic to network. The
5247 affected file is lib/silcclient/client.c.
5249 Sat Feb 17 13:15:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5251 * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
5252 NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
5253 (if needs broadcasting) instead of broadcasting the packets one
5254 by one which would make a burst in the network traffic.
5256 * Added `broadcast' argument to the functions in silcd/server.[ch]
5257 silc_server_create_new_channel[_with_id] to indicate whether
5258 to send New Channel packet to primary router.
5260 Sat Feb 17 01:06:44 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5262 * Added new function into the silcd/server.[ch] files:
5263 silc_server_create_new_channel_with_id to create new channel with
5264 already existing Channel ID.
5266 * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
5267 lib/silccore/silcpacket.h. This packet is used t send list of
5268 Set Mode payloads inside one packet. Server uses this to set
5269 the modes for the channels and clients on those channels, that it
5270 announced to the router when it connected to it. The protocol
5271 specification has been updated accordingly.
5273 * The silc_server_new_channel did not handle the packet coming
5274 from normal server as it normally does not send that. However,
5275 when it announces its channels it does send it. Implemented
5276 the support for that.
5278 * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
5279 into the file lib/silccore/id.h.
5281 Fri Feb 16 23:57:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5283 * Fixed memory leaks in the functions silc_idlist_del_client,
5284 silc_idlist_del_channel and silc_idlist_del_server in the file
5285 silcd/idlist.c. All of those leaked like a sieve.
5287 * Fixed some small memory leaks in the client's function
5288 silc_client_notify_by_server.
5290 * Added functions into silcd/server.c: silc_server_announce_clients,
5291 silc_server_announce_channels and silc_server_announce_server.
5292 These functions are used by normal and router server to announce
5293 to its primary router about clients, channels and servers (when
5294 router) that we own. This is done after we've connected to the
5297 These functions effectively implements the following packet types:
5298 SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
5299 and SILC_PACKET_NEW_ID_LIST.
5301 * Added new functions into the silcd/packet_receive.[ch]:
5302 silc_server_new_id_list, silc_server_new_channel_list and
5303 silc_server_new_channel_user_list to handle the incoming
5304 NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
5306 * Added support of changing Channel ID in the function
5307 silc_server_replace_id. If the server that announces a channel
5308 to the router already exists in the router (with same name but
5309 with different Channel ID), router is responsible to send
5310 Replace ID packet to the server and force the server to change
5311 the Channel ID to the one router has.
5313 * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
5314 client that the Channel ID has been changed by the router. The
5315 normal server sends this to the client. Client must start using
5316 the new Channel ID as the channel's ID.
5318 Implemented handling of this new type into lib/silcclient/client.c
5319 into the function silc_client_notify_by_server.
5321 * Added new function silc_idlist_replace_channel_id into the files
5322 silcd/idlist.[ch] to replace the Channel ID.
5324 Fri Feb 16 14:14:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5326 * Call silc_server_command_identify_check always when processing
5327 the IDENTIFY command in silcd/command.c
5329 Thu Feb 15 20:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5331 * Added new packet type SILC_PACKET_HEARTBEAT that is used to
5332 send keepalive packets. The packet can be sent by clients,
5333 servers and routers.
5335 Added function silc_socket_set_heartbeat into the file
5336 lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
5337 If not set, the heartbeat is not performed. The actual
5338 heartbeat is implemented in the low level socket connection
5339 library. However, application is responsible of actually
5342 Added silc_server_send_heartbeat to send the actual heartbeat
5343 packet into silcd/packet_send.[ch]. Server now performs
5344 keepalive with all connections.
5346 * Added silc_task_get_first function into lib/silcutil/silctask.c
5347 to return the timeout task with shortest timeout. There was a bug
5348 in task unregistration that caused problems. TODO has been
5349 updated to include that task system must be rewritten.
5351 * The client library will now resolve the client information when
5352 receiving JOIN notify from server for client that we know but
5353 have incomplete information.
5355 * Rewrote parts of silc_server_remove_from_channels and
5356 silc_server_remove_from_one_channel as they did not remove the
5357 channel in some circumstances even though they should've.
5359 * Encryption problem encountered in server:
5361 The LEAVE command used to send the Channel Key packet to the
5362 router immediately after generating it. However, the code
5363 had earlier sent Remove Channel user packet but not immediately,
5364 ie. it was put to queue. The order of packets in the router
5365 was that Channel Key packet was first and Remove Channel User
5366 packet was second, even though they were encrypted in the
5367 reverse order. For this reason, MAC check failed. Now, this
5368 is fixed by not sending the Channel Key packet immediately but
5369 putting it to queue. However, this is more fundamental problem:
5370 packets that are in queue should actually not be encrypted
5371 because packets that are sent immediately gets encrypted
5372 actually with wrong IV (and thus MAC check fails). So, packets
5373 that are in queue should be encrypted when they are sent to
5374 the wire and not when they put to the queue.
5376 However, the problem is that the current system has not been
5377 designed to work that way. Instead, the packet is encrypted
5378 as soon as possible and left to the queue. The queue is then
5379 just purged into wire. There won't be any fixes for this
5380 any time soon. So, the current semantic for packet sending
5383 o If you send packet to remote host and do not force the send
5384 (the packet will be in queue) then all subsequent packets to the
5385 same remote host must also be put to the queue. Only after the
5386 queue has been purged is it safe again to force the packet
5389 o If you send all packets immediately then it safe to send
5390 any of subsequent packets through the queue, however, after
5391 the first packet is put to queue then any subsequent packets
5392 must also be put to the queue.
5394 Follow these rules and everything works fine.
5396 Thu Feb 15 14:24:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5398 * Added new function silc_server_remove_clients_by_server to
5399 remove all client entries from ID list when the server connection
5400 is lost. In this case it is also important to invalidate all
5401 client entires as they hold the invalid server entry. This
5402 fixes fatal bug when server has lost connection and will reconnect
5405 Wed Feb 14 16:03:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5407 * Made some sanity checks to silc_server_daemonise like to check
5408 whether the requested user and group actually exists.
5410 * Added sanity check to SKE's silc_ske_responder_finish to check
5411 that the public and private key actually is valid.
5413 * Invalidate the client's nickname when receiving Replace ID
5414 packet and the Client ID is being replaced. This means that the
5415 server will query the nickname if someone needs it (client)
5418 * Sort the ID Cache in client library when the ID Cache data
5419 has changed (needs sorting).
5421 * Do not allow for SILC client to create several connections to
5422 several servers. The client does not support windows right now
5423 and generating multiple connections causes weird behaviour.
5425 Irssi-silc client does support windows and can handle several
5426 connections without problems, see: www.irssi.org and SILC plugin.
5428 * Fixed some places where client was added to the IDList. The
5429 rule of thumb is following (in order to get everything right):
5430 If the client is directly connected local client then the
5431 `connection' argument must be set and `router' argument must be
5432 NULL to silc_idlist_add_client function. If the client is not
5433 directly connected client then the `router' argument must
5434 bet set and the `connection' argument must be NULL to the
5435 silc_idlist_add_client function.
5437 * The funtion silc_server_packet_send_local_channel actually did
5438 not check whether the client was locally connected or not. It
5439 does that now. Fixed a bug related to LEAVE command.
5441 * Fixed Remove Channel User payload parsing bug in server's
5442 silcd/packet_receive.c. Fixed a bug related to LEAVE command.
5444 * The server's silc_server_save_channel_key now checks also the
5445 global ID list for the channel as it might not be in the local
5446 list. Fixed a bug related to LEAVE command.
5448 * Is this the end of the [<unknown>] buglet that has been lurking
5449 around for a long time? A little for loop fix in server's
5450 silc_server_command_whois_parse that is used by both IDENTIFY
5451 and WHOIS command. At least, this was a clear bug and a cause
5452 of one type of [<unknown>] buglet.
5454 * WHOIS and IDENTIFY commands call the function
5455 silc_server_command_[whois/identify]_check function even if
5456 we are not router server.
5458 Tue Feb 13 19:55:59 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5460 * Added --with-gmp configuration option. If set the GMP
5461 is always compiled in the SILC source tree. If not set then
5462 it is checked whether the system has the GMP3 installed. If
5463 it has then the GMP won't be compiled (the system's headers
5464 and library is used), if it doesn't have it then the GMP is
5465 compiled in the SILC source tree.
5467 Mon Feb 12 11:20:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5469 * Changed RSA private exponent generation to what PKCS #1
5470 suggests. We try to find the smallest possible d by doing
5471 modinv(e, lcm(phi)) instead of modinv(e, phi). Note: this is
5472 not security fix but optimization.
5474 Sun Feb 11 18:19:51 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5476 * Added new config entry [Identity] to fork the server and run
5477 it as specific user and group. A patch from Bostik.
5479 * Imported Dotconf configuration library into lib/dotconf.
5480 This will be used to create the SILC configuration files later.
5481 It will appear in the distsribution after this commit.
5483 Sat Feb 10 21:13:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5485 * A big code auditing weekend happening. Auditing code for
5486 obvious mistakes, bugs and errors. Also, removing any code
5489 Removed files for being obsolete:
5491 o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
5492 inline in the file lib/silcutil/silcbuffer.h)
5494 o lib/silcutil/silcbufutil.c (the header has inline versions)
5496 Changed code to fix possible error conditions:
5498 o The buffer formatting routines now check that the destination
5499 buffer really has enough space to add the data. This applies for
5500 both buffer formatting and unformatting
5501 (lib/silcutil/silcbuffmt.[ch]). Also, the entire buffer
5502 unformatting was changed to accomodate following rules:
5503 XXX_*STRING_ALLOC will allocate space for the data into the pointer
5504 sent to the function while XXX_*STRING will not allocate or copy
5505 the data into the buffer. Instead it sets the pointer from the
5506 buffer into the pointer sent as argument (XXX_*STRING used to
5507 require that the pointer must be allocated already). This change
5508 makes this whole thing a bit more consistent and more optimized
5509 (note that the data returned in the unformatting with XXX_*STRING
5510 must not be freed now). The routines return now -1 on error.
5512 o Tried to find all code that use buffer_format and buffer_unformat
5513 and added return value checking to prevent formatting and
5514 especially unformatting errors and possible subsequent fatal
5517 o Changed ske->x and ske->KEY to mallocated pointers in
5518 lib/silcske/silcske.h. Fixed possible data and memory leak.
5520 o Added return value checking to all *_parse* functions. Fixed
5521 many memory leaks as well.
5523 o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
5524 so that buffer overflows would not happen. All code now also
5525 checks the return value as it can fail.
5527 Mon Feb 5 20:08:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5529 * Added reconnection support to server if the normal server looses
5530 its connection to the router (for example if router is rebooted).
5531 The server performs normal reconnection strategy implemented
5532 to the server. Affected file silcd/server.c.
5534 Sun Feb 4 13:18:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5536 * Added new packet type SILC_PACKET_SET_MODE that is used to
5537 distribute the information about changed modes (for clients,
5538 channels and clients channel modes) to all routers in the
5539 network. Updated the protocol specification accordingly.
5541 Added functions into silcd/packet_send.c and
5542 silcd/packet_receive.c: silc_server_send_set_mode,
5543 silc_server_set_mode.
5545 Added new files silcmode.[ch] into lib/silccore that implements
5546 the encoding and decoding of Set Mode Payload. Added new type
5547 SilcSetModePayload. Moved the definitions of different modes
5548 from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
5550 Sat Feb 3 15:44:54 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5552 * Oops, a little mistake in server's connection authentication
5553 protocol. The protocol is not ended with FAILURE but with
5554 SUCCESS if the authentication is Ok. :) Affected file is
5557 * Implemented NICK_CHANGE notify handling in server in the file
5558 silcd/packet_receive.c The NICK_CHANGE notify is distributed to
5559 the local clients on the channel. After the changing nickname
5560 in router environment snhould work and the [<unknown>] nickname
5561 should appear no more.
5563 The silc_server_replace_id function that receives the Replace ID
5564 payload now sends the NICK_CHANGE notify type also in the file
5565 silcd/packet_receive.c
5567 * Changed WHOIS and IDENTIFY command to support the maximum amount
5568 of arguments defined in protocol specs (3328 arguments). This
5569 fixed a bug that caused problems when there were more than three
5572 Fri Feb 2 11:42:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5574 * Added extra parameter, command identifier, to the
5575 silc_client_send_command so that explicit command identifier
5578 Changed that ID list routines uses specific command identifier
5579 when sending WHOIS/IDENTIFY requests to the server so that they
5580 can be identified when the reply comes back.
5582 Affected files lib/silcclient/command.[ch],
5583 lib/silcclient/client.c and lib/silcclient/idlist.[ch].
5585 * Added `sender' argument to silc_server_packet_send_to_channel
5586 to indicaet the sender who originally sent the packet to us
5587 that we are now re-sending. Ignored if NULL. Affected file
5588 silcd/packet_send.[ch].
5590 * Added some server statistics support in silcd/server_internal.h
5591 SilcServerStatistics structure and around the server code. Also
5592 send some nice statistics information when client is connecting
5595 Thu Feb 1 23:31:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5597 * Fixed channel ID decoding in server's JOIN command reply in
5598 silcd/command_reply.c
5600 * Fixed braodcasting of replace ID payload to not to send it if
5601 we are standalone server in silcd/packet_receive.c.
5603 * Fixed all channel message sending routines to not to send
5604 packets to clients that has router set, since they are routed
5605 separately in the same function earlier. Affects file
5606 silcd/packet_send.c and all channel packet sending functions.
5608 * In USERS reply, res_argv[i] are not allocated, the table
5609 is allocated. Thus changed that free the table, not its
5612 * In server's whois_check and identify_check if the client is
5613 locally connected do not send any WHOIS commands - they are not
5616 Thu Feb 1 21:32:27 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5618 * Fixed some minor bugs in client when sending WHOIS command. The
5619 arguments was in wrong order.
5621 * Removed statis function add_to_channel from server in
5622 silcd/command.c that was previously used with the joining but
5625 * Tested USERS command in router environment successfully with two
5626 routers, two servers and two clients.
5628 Thu Feb 1 00:54:26 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5630 * Reorganized the USERS command and command reply in client library
5631 in lib/silcclient/command.c and lib/silcclient/command_reply.c.
5632 When the command is given by user we register a pending command
5633 callback that will reprocess the command after the reply has been
5634 received from the server. When reprocessing the packet we then
5635 display the information. Thus, the USERS information is displayed
5636 now in the command callback instead of in the command reply
5637 callback. The processing of the command is same as previously
5638 when server has sent the command reply in the JOINing process.
5640 * Added to USERS command in silcd/command_reply.c to join the client,
5641 we didn't use to know about, to the channel after we've created
5642 a client entry for it. Also, for clienet we did know already still
5643 check whether it is on the channel or not and add it if not.
5645 * Removed silc_server_command_join_notify as the function and its
5648 Tue Jan 30 22:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5650 * Changed the client's pending command handling to the same as the
5651 server's pending command handling. It is also now possible to
5652 execute command reply functions from other command reply
5653 function as the function callbacks for commands and command
5654 replies are one and same. The pending commands are not static
5655 list anymore, it is mallocated SilcDList in lib/silcclient/client.h
5656 in client connection context. Thus, pending commands are server
5657 connection specific as it is convenient.
5659 Changed the function silc_client_command_pending and
5660 silc_client_command_pending_del and added new function
5661 silc_client_command_pending_check. Removed the
5662 SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
5665 * Added cmd_ident, current command identifier, to the client
5666 connection context in lib/silcclient/client.h to keep track on
5667 command identifiers used in command sending. Client's command reply
5668 function handling now supports the mandatory command identifiers.
5670 * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
5671 funtions in client to fully support pending command callbacks.
5673 * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
5674 as one of the arguments to the application in the command reply
5677 * NOTE: The FORWARDED flag is depracated. It used to be depracated
5678 before first releasing SILC but came back. Now it is removed again
5679 and should come back nomore. The FORWARDED flag was used only
5680 by the JOINing procedure by forwarding the command packet to router.
5681 Now, the JOINing procedure has been changed to more generic (due
5682 to various router environment issues) and FORWARDED is not needed
5683 anymore for anything. The protocol specification is yet to be
5686 Now, removed silc_server_packet_forward from server and the flag
5687 SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
5689 Tue Jan 30 00:05:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5691 * Renamed NAMES command to USERS command. The NAMES was named that
5692 due to historical reasons. Now it is renamed. Also, rewrote
5693 parts of the USERS command. The nickname list is not sent anymore
5694 by the server. Only Client ID and mode lists are sent in the USERS
5695 command. Changed this also to the protocol specification.
5697 The client now resolves the names and stuff after it receives
5698 the USERS list from the server when joining to the channel.
5700 * WHOIS and IDENTIFY commands has been changed to support multiple
5701 Client ID's per command. One can now search for multiple users
5702 in the network by sending only one WHOIS or IDENTIFY command.
5703 Changed the code and the protocol specifications.
5705 * Removed silc_server_command_identify_parse and changed that IDENTIFY
5706 uses silc_server_command_whois_parse to parse the request. */
5708 * If normal server, do not parse the WHOIS and IDENTIFY requests
5709 before sending it to the router. Saves some time.
5711 Sun Jan 28 16:19:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5713 * Fixed JOIN command on client library. Wrong number of arguments
5714 used to crash the client.
5716 * Added silc_server_channel_has_global function to check whether
5717 channel has global users or not.
5719 * Added silc_server_channel_has_local function to check whether channel
5720 has locally connected clients on the channel.
5722 * The silc_server_remove_from_one_channel now checks whether the
5723 channel has global users or not after given client was removed from
5724 the channel. It also checks whether the channel has local clients
5725 on the channel anymore. If it does not have then the channel entry
5726 is removed as it is not needed anymore.
5728 * The silc_server_notify now checks on JOIN notify whether the joining
5729 client is one of locally connected or global. If it is global then
5730 the channel has now global users on the channel and that is marked
5731 to the channel entry. Also, it now saves the global client to
5732 global list who is joining and JOINs it to the channel. This is
5733 for normal server, that is.
5735 Changed silc_server_send_notify_on_channel,
5736 silc_server_packet_relay_to_channel and
5737 silc_server_packet_send_to_channel check if we are normal server
5738 and client has router set (ie. global client) do not send the
5739 message to that client, as it is already routed to our router.
5741 * Implemented LEAVE notify type handling in silc_server_notify
5744 * Tested LEAVE command in router environment successfully. Tested
5745 with two routers, two servers and two clients.
5749 * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
5751 * Implemented SIGNOFF notify type handling in silc_server_notify
5754 * silc_server_remove_id now removes the client entry from all channels
5755 it has joined and thusly sends SIGNOFF notify type.
5757 * Rewrote the NAMES list generation in server by removing two excess
5758 loops. The lists are created now inside one loop.
5760 Sat Jan 27 22:34:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5762 * silc_server_remove_channel_user checks now also global list
5763 for channel and client.
5765 * silc_server_new_channel_user checks now both local and global
5766 list for channel and client. Fixed a bug in client id decoding.
5767 Used to decode wrong buffer.
5769 * silc_server_channel_message checks now both local and global
5770 list for channel entry.
5772 * Tested channel joining (hence JOIN) in router environment
5773 successfully. Tested with two routers, two servers and two
5776 * Tested channel message sending in router environment successfully.
5778 Thu Jan 11 03:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
5780 * Added silc_server_save_channel_key into server.[ch] to save the
5781 received channel key in Channel Key payload processing. It is
5782 also used in JOIN command reply handling.
5784 Equivalent function silc_client_save_channel_key added into
5785 client.[ch] into client library.
5787 * Changed JOIN command reply to send information whether the channel
5788 was created or not (is existing already) and the channel key
5789 payload. Changed protocol specs accordingly.
5791 * Fixed bugs in WHOIS and IDENTIFY command reply sending when
5792 the request was sent by ID and not by nickname. Crashed on
5795 Sat Dec 23 21:55:07 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5797 * Fixed a bug in Client library. IDENTIFY and WHOIS reply functions
5798 now correctly save the received data.
5800 * silc_server_free_sock_user_data now notifies routers in the
5801 network about entities leaving the network.
5803 At the same time implemented functions silc_server_remove_id
5804 and silc_server_send_remove_id to receive and send REMOVE_ID
5805 packets. The packet is used to notify routers in the network
5806 about leaving entities. The ID removed will become invalid in
5809 * Added function silc_idlist_del_server into server. Removes and
5810 free's server entry from ID list.
5812 * silc_server_private_message function now checks, if we are router,
5813 that the destination ID really is valid ID, naturally.
5815 * In router when NEW_ID packet is received (for new client) the
5816 hash of the Client ID is saved in the ID Cache but the
5817 client->nickname is set to NULL, instead of putting the hash
5820 IDENTIFY command now also checks that client->nickname must be
5821 valid. If it is not if will request the data from the server who
5822 owns the client. Added new function
5823 silc_server_command_identify_check.
5825 * Added silc_command_set_command into lib/silccore/silcommand.[ch]
5826 to set the command to already allocated Command Payload.
5828 * Tested private message sending in router environment with two
5829 routers, two servers and two clients. Fixed minor bugs and now
5832 * Fixed segfault from client's NAMES command. Used to crash if
5835 * Forwarded packets must not be routed even if it is not destined
5836 to the receiver. Changed server code comply with this.
5838 Sun Dec 17 14:40:08 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5840 * Added `require_reverse_mapping' boolean value to ServerParams
5841 structure. If TRUE (not default) the server will require that
5842 the connecting host has fully qualified domain name.
5844 If the reverse mapping is not required and hostname could not be
5845 found the IP address is used as hostname.
5847 Sat Dec 16 17:39:54 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5849 * Implemented version string checking to both client and server.
5850 The check is incomplete currently due to the abnormal version
5851 strings used in development version of SILC.
5853 * Changed all command functions in server to use the new
5856 Fri Dec 15 15:55:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5858 * Changed char *data to unsigned char *data in ID Cache system to
5859 support binary data as ID Cache data. Changed code to support
5860 binary data in lib/silccore/idcache.c.
5862 * Renamed silc_server_packet_relay_command_reply to
5863 silc_server_command_reply as it is normal packet receiving
5864 function. Rewrote the function to accept command replys for
5865 servers and not only for clients.
5867 * Mark remote router always as registered server if we are connecting
5868 to it. Otherwise, commands sent by the router to us are ignored.
5870 * All ID List find routines now returns the ID Cache Entry pointer
5871 as well if requested.
5873 * WHOIS command works now in router environment, tested with two
5874 routers, two servers and two clients.
5876 * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
5877 in router environment (as it is almost equivalent to WHOIS) but
5878 hasn't been tested thoroughly. Added new functions:
5880 silc_server_command_identify_parse
5881 silc_server_command_identify_send_reply
5882 silc_server_command_identify_from_client
5883 silc_server_command_identify_from_server
5885 * Disabled route cache adding because adding two different ID's with
5886 same IP replaces the old cache entry thus giving wrong route.
5887 The entry->router->connection is always the fastest route anyway
5888 so route cache may not be needed. Of course, new routes maybe
5889 established after receiving the ID when the entry->router->connection
5890 might not be anymore the most optimal.
5892 Thu Dec 14 15:55:35 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5894 * Add route cache for received ID for fast routing.
5896 * Added silc_server_packet_route to route received packet on router
5897 that is not destined to us.
5899 * Renamed silc_server_get_route to silc_server_route_get.
5901 * Added id_string and id_string_len fields into SilcServer to
5902 include encoded ServerID for fast comparing without excess
5903 encoding of the ID's.
5905 * Cleaned up WHOIS command on server side. Added following static
5908 silc_server_command_whois_parse
5909 silc_server_command_whois_check
5910 silc_server_command_whois_send_reply
5911 silc_server_command_whois_from_client
5912 silc_server_command_whois_from_server
5914 * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
5915 arguments in command replies. All command functions should be
5916 updated to use this macro.
5918 Sun Dec 10 23:52:00 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5920 * Minor typo fixes on command reply handling on server.
5922 Tue Nov 28 11:05:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5924 * Added silc_server_command_add_to_channel internal routine to add
5925 the client to the channel after router has created the channel and
5926 sent command reply to the server.
5928 * Added generic silc_server_send_command to send any command from
5931 * Use static buffer with ID rendering instead of duplicating data.
5933 Mon Nov 27 21:39:40 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5935 * Fixed a channel user mode bug when joining to a channel server gave
5936 everybody channel founder rights, oops.
5938 * We mark ourselves as the router of the incoming server connection
5939 if we are router ourselves. This way we can check in some packet
5940 sending functions whether it is locally connected server. For
5941 incoming router connections we put NULL.
5943 * For router sending packets locally means now always sending the
5944 packet cell wide; to local clients and local servers. For normal
5945 server sending packet locally means sending it to only local
5948 * Fixed the JOIN command to really work in router environment. If the
5949 channel is created it is always created by the router. Router is
5950 also responsible of making the initial joining to the channel,
5951 sending JOIN notify to the sending server and distributing
5952 NEW_CHANNEL and NEW_CHANNEL_USER packets. Hence, if the channel
5953 does not exist server doesn't do anything else but forward the
5954 command to the router which performs everything.
5956 * Added silc_server_send_channel_key function to send the Channel Key
5959 * Added silc_server_create_channel_key to create new channel key. The
5960 channel key is now re-generated everytime someone joins or leaves
5961 a channel, as protocol dictates. Note: channel->key_len is the
5964 Wed Nov 22 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5966 * Splitted server.[ch] finally. Created now packet_send.[ch] and
5967 packet_receive.[ch] to separate packet sending and receiving
5968 routines. The server.[ch] now includes everything else including
5969 actual packet processing (writing and reading data) and other
5972 Renamed silc_server_private_message_send_internal to
5973 silc_server_send_private_message. The routine is still though
5974 used only to relay private messages as server does not send
5975 private messages itself.
5977 Renamed silc_server_new_channel to silc_server_create_new_channel
5978 and added new function sicl_server_new_channel that handles the
5979 incoming New Channel packet. Added also new sending function
5980 silc_server_send_new_channel to send New Channel Payload.
5982 * Added new function silc_server_notify to process incoming notify
5983 packet to the server/router. Server may then relay the notify
5984 to clients if needed.
5986 * Added new function silc_server_new_channel_user to process incoming
5987 New Channel User packet. Router will redistribute the packet and
5988 send JOIN notify to its local clients and locally connected servers
5989 if needed. Normal server will send JOIN notify to its local client
5990 on same channel when received this packet. Added also corresponding
5991 sending function silc_server_send_new_channel_user to sent the
5994 * Added boolean route argument to send_notif_to_channel and
5995 packet_send_to_channel functions to attempt to route the packet
5996 if it is TRUE and send only locally if it is FALSE.
5998 Tue Nov 21 19:49:31 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6000 * silc_server_replace_id now broadcasts the received replace ID
6001 packet if it is not broadcast packet already. The router must
6002 broadcast to inform other routers about changed ID.
6004 * Added backpointer to server's router into SilcServer context in
6005 silcd/server_internal.h.
6007 * Fixed silc_server_packet_broadcast to send correct broadcast
6010 * The channel key is now distributed to the local client as soon
6011 as it is received from the router (in router environment) so that
6012 no other packet may be sent for the channel until client has
6015 * silc_server_remove_channel_user now broadcasts the received
6016 Remove Channel User packet if it is not broadcast packet already.
6017 The router must broadcast to inform other routers about removed
6020 * Added users field into SilcPacketContext that is a reference count
6021 of the context. One can increase the reference count by calling
6022 silc_packet_context_dup which is now changed to just increase the
6023 reference count instead of duplicating the data. The reference
6024 count is decresed by calling silc_packet_context_free that will
6025 free the data after the reference count hits zero.
6027 For now on the packet context and everything allocated into it
6028 (including the raw packet from network) must be freed by calling
6029 the new silc_packet_context_free function. Added also new function
6030 silc_packet_context_alloc that must be used now to allocate the
6031 context. This also means that if a routine is asynchronous from
6032 silc_[client/server]_packet_parse_type the packet context must
6033 be duplicated by calling silc_packet_context_dup. Otherwise it
6034 gets free'd after silc_[client/server]_packet_parse_type returns.
6035 Also, one must remember that if packet is duplicated then its
6036 reference count must be decresed by calling the free function as
6037 many times as it was duplicated.
6039 * Changed SilcBuffer field from protocol contexts to SilcPacketContext
6040 from both client and server.
6042 Mon Nov 20 23:47:03 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6044 * Made joining to a channel working in router environment.
6046 * Cleaned up JOIN command on server side and create function
6047 silc_server_command_join_channel internal routine to make the
6050 Thu Nov 9 21:12:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6052 * Changed silc_command_pending list to SilcDList. Also, added
6053 `ident' field to SilcServerCommandPending structure to identify
6054 the reply and to call correct callback.
6056 Added silc_server_command_pending_check function to replace the
6057 corresnponding macro. The silc_command_pending list is not
6060 * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
6061 to set identifier to previously allocated Command Payload. It
6062 is used to set identifier for command when resending Command
6065 * Added silc_command_payload_encode_payload to encode Command
6066 Payload buffer from SilcCommandPayload structure.
6068 * Added silc_argument_payload_encode_payload to encode Argument
6069 payload buffer from SilcArgumentPayload structure.
6071 Wed Nov 8 21:03:28 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6073 * Changed WHOIS command to support router connection on server side.
6074 The whois request is always sent to router unless the server is
6075 standalone server. After server has received the reply from the
6076 router will it send the reply to the client.
6078 * Added silc_server_packet_broadcast into silcd/server.[ch] to
6079 broadcast received broadcast packet. The function is used only
6080 by router. The broadcast packet is always sent to the router's
6083 * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
6084 render given ID to printable string, for log files for example.
6086 Tue Nov 7 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6088 * Made basic router to router connections working. At least they
6089 can now connect to each other but nothing really works the way
6090 they are supposed - yet.
6092 * Added new initiator token to RouterConnection configuration
6093 file in silcd/serverconfig.[ch]. It is used to tell whether we
6094 are the initiator to the remote router or whether we'll expect
6095 the other end to connect.
6097 * Moved registering of listener task to silc_server_init, hence
6098 the server starts listenning as soon as it is run, even if it
6099 does not have connections to other routers. Let's see how well
6102 * Changed default connection retry timeouts for more suitable in
6105 * Removed cipher and such arguments from silc_idlist_add_client
6106 and silc_idlist_add_server prototypes from silcd/idlist.[ch].
6107 Added new function silc_idlist_add_data to add the keys and stuff
6110 * Added SilcIDListData structure and added it to SilcClientEntry
6111 and SilcServerEntry as their first field in the structure. This
6112 way we can explicitly cast the ID entries to the SilcIDListData
6113 structure and get common data for the entries. In past, we had
6114 to first check what type of connection it is and then cast it to
6115 correct ID entry type. Now, we can directly cast the opaque
6116 pointer to the SilcIDListData (no matter what ID entry it actually
6117 is) and get the data needed.
6119 Mon Nov 6 21:56:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6121 * Wow, found a bug in scheduler. The scheduler uninitialized itself
6122 in some circumstances even if threre were timeout tasks, though not
6123 IO tasks, but tasks anyway. Now fixed.
6125 * Defined SilcServerConnection structure to hold connection specific
6126 stuff about directly connected servers and routers. The definition
6127 is currently in silcd/server_internal.h. I thought about having
6128 a bit more important role fro this struct but for now it is used
6129 only when connecting to other server (or router actually).
6131 * Added connecting retry support in server when connecting to
6132 router(s). The retry feature implement exponential backoff
6133 algorithm. Also, added SilcServerParams structure to hold default
6134 parameters for server. For now, it include these retry settings
6135 and are hard coded. After server is moded to be as Silc Server
6136 Library this structure will be more important.
6138 Sun Nov 5 22:28:44 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6140 * Changed client librarys channel->clients table to SilcList and
6141 changed code accordingly.
6143 Thu Nov 2 16:28:01 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6145 * Changed client's channel table to SilcList and changed code
6146 accordingly. Also changed SilcChannelClientEntry to include back-
6147 pointer to the channel so that client entry can use that structure
6148 as list as well and we have fast cross-reference to the channel.
6149 This change dramatically decreased the complexity of channel
6150 handling with client entry and vice versa (removed one extra
6151 loop when searching for channel entry from many functions).
6153 * Changed server->sim from table to SilcDList and changed code
6156 * NAMES command can now be used from user interface. It will show
6157 the user list on the channel, neatly.
6159 * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
6160 Code now saves realname of the user if it becomes available.
6162 * Renamed configure.in to configure.in.pre and made ./prepare
6163 script to automatically add correct version string to
6164 configure.in which it creates from configure.in.pre.
6166 Wed Nov 1 17:21:26 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6168 * NAMES command reply now shows users mode with the nickname when
6171 * Moved silc_client_ch[u]mode[_char] functions from
6172 silc/clientutil.[ch] to lib/silcclient/client.[ch]. Though, that
6173 place sucks, they are utility functions and should be in some
6176 * Fixed some unsigned int's to unsigned short's. Patch by cras.
6178 * Fixed contrib/getopt*.[ch] to not require config.h. Patch by
6181 Tue Oct 31 20:10:37 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6185 * Added TRQ (efficient deque and list library) into lib/trq. This is
6186 a very good list library that is currently used in the SILC. Defined
6187 SilcList API over the library because I didn't like the API very
6188 much. See lib/trq/silclist.h for the API and examples of how to
6189 use the API. Fixed various places in the code to use the new
6190 SilcList API. The SilcList is meant for lists that has a structure
6191 already defined as a list. It is not suitable to add just some
6192 context to the list (in TRQ, the context is the list actually).
6194 So, I defined SilcDList that can be used for the purpose where
6195 predefined list structure does not exit. This can be used as
6196 such list. Now some context just can be added to the SilcDList.
6197 Currently this list is not used in the SILC just yet, though there
6198 are a lot places where this can replace dynamically allocated
6199 tables and I will fix these places, later, to use SilcDList.
6200 See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
6201 and use TRQ internally).
6203 Also fixed some annoying warning messages that the original TRQ
6204 code generated. Also minor changes to TRQ's Makefile.in.
6206 * Added support for querying by Client ID to both WHOIS and
6207 IDENTIFY commands into server, as required by the protocol.
6209 * Removed method function pointers from SilcBuffer structure. They
6210 weren't used to anything and just increased the context size for
6211 no good reason. This change also made silc_buffer_alloc and
6212 silc_buffer_free functions inline functions.
6214 * Disabled command flooding detection support until it's fixed so
6215 that it accepts commands in but does not execute them more than once
6218 * Added silc_net_localhost(), to return local hostname, into
6219 lib/silcutil/silcnet.[ch]. Also added client->hostname pointer
6220 that must be initialized before calling silc_client_init.
6222 * Added new function: silc_server_send_notify_on_channels to send
6223 notify messages to all channels client has joined. It is assured
6224 that the message is sent only once per client.
6226 * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
6227 lib/silcutil/silcutil.[ch] as silc_format function. The new
6228 function is generic and is used by server as well, not only by
6229 the logging routines.
6231 * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
6232 the provided version string was not acceptable. Added new function:
6233 silc_ske_check_version into lib/silcske/silcske.h. The function
6234 must be implemented by the application (client or server) and it
6235 does not reside in the SKE library. The function checks the version
6236 string remote end sent.
6238 * Added back pointers (to opaque context and to SilcSocketConnection)
6239 into SilcPacketContext structure into lib/silccore/silcpacket.h.
6241 * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
6242 duplicate packet context structure.
6244 * Changed `notify' client operation to send same arguments as client
6245 receives from server except for ID's. ID's are mapped to correct
6246 ID entry and that is returned. Also, if channel entry is not sent
6247 by server but the notify is for channel the channel entry is sent
6248 to application (otherwise application doesn't know that it is for
6249 channel (library gets it from packet's Destination ID)).
6251 * Added silc_client_remove_from_channels into client library to
6252 remove a client from all channels it has joined to. Used when
6253 received SIGNOFF notify from server. Added also new function
6254 silc_client_replace_from_channels to replace old ID entry with
6255 new ID entry on all channels. Used when received NICK_CHANGE
6258 * Fixed ID Cache list handling in silc_idlist_get_client in
6259 lib/silcclient/idlist.c. Also, added silc_idlist_get_client_by_id
6260 to get (or query) client by ID.
6262 * Updated TODO list.
6264 * Added connection authentication status message defined by the
6265 protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
6266 support for these into the code in client and server side.
6268 * Added generic function silc_client_send_command to send any command
6269 with variable argument list. Application should use this function
6270 to send commands if the command functions provided by the library
6271 does not suite for the application's user interface needs.
6273 * Added new `failure' client operation. Application is notified about
6274 received failure packet if client is executing a protocol. In this
6275 case the protocol's execution has failed.
6277 * Added SKE's end notify to send the SKE_SUCCESS notify message that
6278 is required by the protocol.
6280 * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
6281 packet from remote. SILC_PROTOCOL_STATE_ERROR indicates local
6284 * Added status flag to SilcSKE object to indicate realtime status
6285 of the SKE protocol.
6287 * Application receives now exactly same command reply arguments as
6288 the library receives from server. However, if ID is received the
6289 corresponding ID entry is returned to the application (eg. Client
6290 ID is mapped to correct SilcClientEntry entry and that is returned).
6291 Changed command_reply client operation due to this change.
6293 * Changed all ID's in commands and in command replys as ID Payloads.
6294 Change affected both client and server side codes.
6296 All ID's sent in SILC network (with execption of ID's in SILC
6297 Packet header) are sent in ID Payload to support variable length
6300 * Server now notifies nick changes and notifies all clients on
6301 the channels about the new nickname (about the new Client ID,
6304 * Implemented CMODE command to change channel modes. Supports all
6305 channel modes defined by the protocol specs except ban and invite
6306 lists. (Also, private channel key mode is supported but support for
6307 setting private channel key in client is missing, thus, this mode
6308 has no effect on client side (except that server requires that the
6309 client uses private channel key and normal channel traffic does not
6312 Also, invite mode works per se, but INVITE command does not work
6313 yet correctly, so you can set channel as invite only channel but
6314 inviting clients to the channel does not work (it is yet to be
6315 thought what's the best way to do it).
6317 * Added new command SILC_COMMAND_CUMODE to change user mode on the
6318 channel. Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
6319 Implemented CUMODE command to change user's mode on the channel.
6320 Supports all modes defined by the protocol specs.
6322 * Added NAMES command reply to return users modes on the channel.
6324 * Removed unnecessary and slow ciphers from lib/silccrypt.
6326 * Set SO_KEEPALIVE option to connection sockets by default.
6328 * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
6330 * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE. Also,
6331 redefined the Notify Payload into protocol specs.
6333 * Added silc_id_payload_parse_id to get ID directly from raw
6336 Mon Oct 9 20:57:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6338 * Changed SILC_COMMAND_IDENTIFY in protocol specification to
6339 accept searching by Client ID as well.
6341 * Added support for LEAVE and SIGNOFF notify types in client library.
6343 * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
6344 to parse ID Payload from raw data.
6346 Sun Oct 8 19:33:08 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6348 * Added flags parameter into silc_ske_assemble_security_properties
6349 function in lib/silcske/silcske.[ch].
6351 * Changed notify client operation to fit better for notify messages
6352 sent by server. The notify payload received from server is now
6353 passed to the application (after parsing it to SilcNotifyPayload).
6354 It is application's responsibility to retrieve the arguments
6355 from the payload and show the message the way it wants. The message
6356 sent by server is implementation specific.
6358 * Changed public keys to comply with the protocol specification.
6359 Old public keys are not supported anymore and are not compatible.
6361 * Removed nickname from Channel Payload as the latest draft removed
6362 it. The client must resolve the nickname from the NAMES command
6363 reply received when it joined the channel.
6365 Also, changed all channel_xxxx_payload to channel_payload_xxxx.
6367 Sat Oct 7 21:55:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6369 * Fixed some errors in protocol specification drafts.
6371 * Created lib/silccore/silcnotify.c to implement Notify Payload
6372 encoding and decoding, lib/silccore/silcpayload.[ch] to implement
6373 generic payloads described by protocol specifications. The file
6374 includes implementations for ID Payload and Argument Payload.
6376 * Changed Command Payload implementation to use the new Argument
6377 Payload. Changed command_xxxx_payload to command_payload_xxxx
6378 to comply with SILC coding conventions.
6380 * Added suppport for Argument Payload handling in Notify Payload
6381 implementation as protocol requires it. Added the new support
6382 into server and client lib as well.
6384 Thu Oct 5 21:16:28 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6386 * Added support for multiple nicknames on same channel. [n] is
6387 added locally to the nickname if there are more than one same
6388 nicknames on the channel.
6390 * Server now sends all nicknames that matched WHOIS request.
6391 Client also shows the list received from server.
6393 * Added TOPIC command to client side. User can now set and show
6394 current topic on channel.
6396 * Added MOTD command to client and server. Also, server sends the
6397 motd when client connects to the server.
6399 * Changed version strings to comply ISO 8601.
6401 Wed Oct 4 23:29:06 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6403 * Fixed protocol error handling in client library. It should now
6404 cope even if the SKE fails for some reason.
6406 * Made new protocol specification drafts for submitting to IETF.
6408 * Implemented TOPIC command to server in silcd/command.c.
6410 * Added two new notify types into lib/silccore/silcnotify.h:
6411 SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
6412 notify nickname change and topic setting/change on a channel.
6414 * API change of command_reply operation in client library. The
6415 application gets now the status type received from server as well.
6417 Sat Sep 30 16:57:42 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6419 * Removed the function just added to lib/silcutil/silcschedule.[ch].
6421 * Cras fixed and optimized the packet handling even further and
6422 it should work now. Minor change to the prototype of function
6423 silc_packet_receive_process in lib/silccore/silcpacket.[ch].
6425 Sat Sep 30 08:48:47 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6427 * Added new function into lib/silcutil/silcschedule.[ch]:
6428 silc_schedule_with_fd to select() a specified fd. The function
6429 returns after timeout expires or data arrives or goes. The
6430 function is used by packet routines to wait that all data is
6431 received from network.
6433 * Fixed data reading from network in lib/silccore/silcpacket.c.
6434 The code now assures that all data is read from the fd and then
6435 continues packet processing. This was a bug fix since the code
6436 used to drop some data in some circumstances.
6438 * Added new function into lib/silcclient/client.[ch]:
6439 silc_client_start_key_exchange to start key exchange after
6440 connection has been established to server. The code internally
6441 now uses this funtion but its main purpose was to provide it
6442 for applications that perform their own connecting. After
6443 application has created a connection it merely calls this
6444 function to start the key exchange between client and server.
6445 The library takes care of everything else after that.
6447 Updated also lib/silcclient/README to explain the usage of
6450 * Do not send to application information that connection has
6451 been established. Application gets notified it by connect
6454 Thu Sep 28 23:40:19 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6456 * Applied cras's patch to add silc_schedule_one function. The
6457 function runs scheduler once and returns.
6459 * Fixed the scheduler after cras messed it up. The timeout
6460 handling works now as it's supposed to work.
6462 * Added into lib/silccore/ silcnotify.h to include notify
6463 message types support. Changed silc_server_send_notify*
6464 functions, in server.[ch], to support those new notify types.
6465 Added the support for the notify types into client library,
6466 as well. Added new notify client operation into ops.h in
6469 * Changed silc_server_packet_send_to_channel to send normal
6470 packets instead of just channel message packets. The function
6471 is now used to send the notify packets to channels. It is not
6472 used to send channel message packets anymore, as server never
6475 * Added explicit casting into lib/silcutil/silcbuffmt.c to few
6476 va_arg()s as it seems to require it nowadays. I guess, if SILC
6477 is compiled with older va_arg() the new code should work anyway.
6479 Wed Sep 13 18:10:14 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6481 * Splitted core library. Core library (lib/silccore) includes
6482 now only SILC protocol specific core (and common) components.
6483 Created new utility library (lib/silcutil) that includes more
6484 generic purpose stuff. The stuff for util library was taken
6485 from the old core library. This was minor and easy split.
6487 * Created SILC Client Library (lib/silcclient) that includes
6488 implementation of the SILC client without user interface. This
6489 was major move from silc/ directory. The code has been changed
6490 so that it is transparent towards the user interface. The
6491 silc/ directory includes now the same user interface as before
6492 and it uses the new client library. Read lib/silcclient/README.
6493 Basicly, the client library performs everything else related
6494 to SILC except user interface handling. Also, configuration
6495 files are considered to be part of user interface and library
6496 does not handle them.
6498 This change also changed a lot of structures, function naming etc.
6499 Most important change was that SilcClientWindow object was
6500 renamed to SilcClientConnection in the client library. Created
6501 also new file lib/silcclient/ops.h. Also added new files
6502 silc/local_command.[ch] and silc/client_ops.[ch].
6504 All these changes were made to make it easier for user interface
6505 designers to create what ever user interface for the SILC client
6508 It is also expected that the server will be moved to lib
6509 directory as well and SILC Server Library will be created;
6510 sometimes in the future.
6512 * Removed Local commands from lib/silccore/silccommand.h as
6513 they are application specific and new client library does not
6514 handle any of those anymore.
6516 * Several functions moved to lib/silcutil/silcutilc.[ch] from
6517 old client implementation in silc/.
6519 * Added support for callback functions in SILC_LOG_* macros.
6520 Application can now set its own callbacks that will be called
6521 instead of using the default functions that will always print
6522 the debug messages to stderr (or stdout). Also, debugging can
6523 now be disabled by setting silc_debug to FALSE and re-enabled by
6524 setting it to TRUE. Note, that logging will still work even
6525 if debugging is disabled.
6527 New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
6528 silc_log_reset_callbacks, silc_log_set_debug_callbacks and
6529 silc_log_reset_debug_callbacks.
6531 * To enable debugging in silc client one must give now -d
6532 option on command line.
6534 * Changed silc_schedule_init to automatically allocate task queues
6535 if they are not allocated before calling it.
6537 Thu Sep 7 10:49:33 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6539 * Added GMP 3.1 into math library.
6541 Sun Aug 20 21:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6543 * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
6544 a channel in SILC network. The packet is used by servers and
6545 routers to notify other routers that user has left a channel.
6546 This little feature was missing until now. Added the feature
6547 to protocol specification as well.
6549 Added functions: silc_server_send_remove_channel_user and
6550 silc_server_remove_channel_user into server.[ch].
6552 * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
6553 lib/silccore/silcpacket.h. However, they are not implemented
6556 Sat Aug 19 23:04:16 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6558 * Fixed joining to a channel and sending channel messages
6559 between server and router. The channel message sending should
6560 now work inside a cell.
6562 Tue Jul 25 20:46:13 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6564 * Fixed the private message sending between server and router.
6565 The private message sending should now work inside a cell.
6567 * Added silc_server_replace_id into server.[ch] to replace
6568 existing ID in the SILC network.
6570 * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
6571 and silc_idlist_replace_server_id into idlist.[ch] in server.
6573 Mon Jul 24 18:33:31 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6575 * Fixed the server to server connections. Server can again now
6576 connect to router. Router to router connections probably does
6579 Thu Jul 20 13:15:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6581 * Added dynamic protocol registering support. Now protocols can
6582 registered and unregistered on the fly. Patch by cras.
6584 Wed Jul 19 19:08:46 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6586 * Added lib/contrib directory to hold routines that some platforms
6587 don't have but are needed by SILC.
6589 * Added getopt.c, getopt1.c and getopt.h from GNU C library
6590 into lin/contrib to provide getopt() and getopt_long() for
6591 those who don't have it.
6593 Tue Jul 18 20:41:20 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6595 * Added AWAY command to client. When away message is set and
6596 client receives a private message packet the client automatically
6597 replies to the sender with the away message.
6599 * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin. This
6600 bug seemed to be the cause of recent problems when compiling
6603 * Added version detection support to SKE protocol specification
6604 and added the new changes to the SKE implementation as well.
6605 There were other minor changes in the SKE protocol as well.
6607 Many changes in lib/silcske/silcske.[ch] and in
6608 lib/silcske/payload.[ch].
6610 * Added ^U functionality, clear input line. Patch from cras.
6612 Mon Jul 17 23:33:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6614 * Mainly small bugfixes on core library. Fixed some debugging
6615 logging and buffer overflow in silclog.c.
6617 * Updated config.sub and config.guess on the distribution tree.
6619 Sat Jul 15 15:33:48 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6621 * Added command lagging support in server. Client may execute
6622 commands now only once in two seconds.
6624 Thu Jul 13 22:10:21 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6626 * Optimized packet reception. MAC computation and checking is now
6627 also more optimized. A lot previously duplicated code is now
6628 used as generic by both client and server.
6630 * Fixed key pair generation in clientutil.c
6632 Wed Jul 12 18:28:07 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6634 * Added into lib/silccore/silcbufutil.[ch] new function;
6635 silc_buffer_realloc.
6637 * Moved generic packet sending/encryption functions to
6638 lib/silccore/silcpacket.[ch] from client and server. Some
6639 rewriting of the functions.
6641 * Moved all generic packet reception/decryption functions to
6642 lib/silccore/silcpacket.[ch] from client and server. The
6643 packet processing is now much cleaner in both client and server.
6644 These were major changes in both client and server.
6646 * Created many common functions in server to do packet sending.
6647 Previously code were duplicated a lot, this has been removed
6650 Tue Jul 11 20:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6652 * Rewrote major parts of the ID cache system. Don't know
6653 whether it is better now or not but at least the API is more
6656 * Major rewrite on ID cache stuff on client because of the ID
6657 cache API changes. Added idlist.c to client.
6659 * Also major rewrite on ID cache stuff on server as well.
6660 Major rewrite of idlist.[ch]. SilcXXXList's are now named
6661 SilcXXXEntry's. We won't keep anymore idlist specific pointers
6662 in hand, instead they are all put into the ID cache system now.
6663 All server_idlist_* routines uses ID cache now instead of
6664 traversing its own lists (those lists does not exist anymore).
6665 SilcIDList though still exists. Also, SilcXXXEntry's are
6668 Sun Jul 9 15:19:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6670 * Finally made the SKE implementation compliant to the protocol
6671 specification. All mp integers are now binary encoded as
6672 opposed being HEX encoded.
6674 * Added lib/silcmath/mpbin.[ch]. Encoding mp intergers to and
6677 * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
6678 functions: silc_[encode/decode]_pem. Also added function
6679 silc_encode_pem_file to PEM encode with newlines ('\n') for
6682 * SILC public keys are now encoded either PEM or binary. Same
6683 option is for private keys as well. By default private keys
6684 are binary encoded and public keys PEM encoded. Silly HEX
6685 encoding were removed.
6687 * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
6688 function to create fingerprints.
6690 * Fixed a bug in SHA1; does not change the original data anymore.
6692 * Partly implemented INFO command on client and server side.
6693 Fixed CLEAR command. Changes to SERVER command; show current
6694 server(s) when giving command without arguments. Added
6695 VERSION command to client.
6697 * Added check to server that unregistered connections cannot
6698 execute commands (unless it is specificly allowed).
6700 Thu Jul 6 18:12:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6702 * Fixed screen refresh.
6704 * Fixed channel joining bug from client. On some circumstances
6705 client tried to join to a channel it had already joined.
6707 * Added public key verification process into client's protocol.c.
6708 The client now verifies the public key from user and saves
6709 it into ~./silc/serverkeys/ directory.
6711 Added into: clientutil.[ch]: silc_client_verify_server_key.
6713 * Changed SKE protocol's silc_ske_initiator_finish function
6714 to accept callback function that verifies the received public
6715 key. Removed old silc_ske_verify_public_key function.
6717 Wed Jul 5 19:19:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6719 * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
6720 silc_pkcs_private_key[_data]_set.
6722 * Made the password and public authentication more cleaner in
6723 server's protocol.c.
6725 * Removed historic and obsolete protocol `channel_auth' from
6726 both client and server.
6728 * Removed wrong way of sending command status messages from
6729 server to client in server's command.c. The old way violated
6730 protocol specification.
6732 Changes to silccore/silccommand.[ch]: removed
6733 silc_command_encode_status_payload -> not needed anymore,
6734 changed silc_command_encode_payload_va to accept extra
6735 argument on variable argument list. The argument type must
6736 now be provided to the function. Also, added new function:
6737 silc_command_encode_reply_payload_va which is same as
6738 normal command_encode_payload_va except command status type
6739 is provided as extra argument.
6741 Tue Jul 4 18:26:39 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6743 * Added ~./silc directory handling. The directory includes the
6744 public and private keys for the client.
6746 Added silc_client_check_silc_dir, silc_client_create_identifier
6747 and silc_client_load_keys.
6749 * Implemented SILC protocol compliant public key. Added public
6750 and private key saving to and loading from files.
6752 Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
6753 silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
6754 silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
6755 silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
6756 silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
6758 Implemented: silc_pkcs_save_[public/private]_key[_data] and
6759 silc_pkcs_load_[public/private]_key.
6761 Mon Jul 3 18:51:27 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6763 * Added silc_server_get_route (route.[ch]) to get connection
6764 data for the fastest route for given ID.
6766 * Implemented INVITE command on client and server. The command
6767 were re-defined in the SILC Protocol Specification and the
6768 implementation now complies with the specification.
6770 * Implemented PING command on client and server.
6772 * Implemented NAMES command on client and server. The server side
6773 supports currently only normal server not router server yet.
6774 Some changes to NAMES definition in SILC protocol specification.
6776 Sun Jul 2 18:23:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6778 * Implemented LEAVE command on client and server.
6780 * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
6781 again. This change was made to the protocol as well. Server
6782 should not violate the protocol specification anymore.
6784 Fri Jun 30 14:03:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
6786 * Added SOCKS4 and SOCKS5 support to SILC client. SOCKS5
6787 was tested. SOCKS4 was not but should work anyway.