1 Sun Oct 28 18:46:27 EST 2001 Pekka Riikonen <priikone@silcnet.org>
3 * Added SilcClietFileError enum to indicate error in
4 file transfer. Added SILC_CLIENT_FILE_MONITOR_KEY_AGREEMENT
5 and SILC_CLIENT_FILE_MONITOR_ERROR new monitor statuses.
6 Affected files lib/silcclient/silcapi.h and
7 lib/silcclient/client_ftp.c.
9 * Check that newsize in silc_buffer_realloc is larger than
10 the old buffer's size. Affected file lib/silcutil/silcbufutil.h.
12 * Added better monitor of file transfers. It now monitors
13 key agreement protocol during the file transfer too. Added
14 error reporting too. Affected files
15 irssi/src/silc/core/silc-servers.c,
16 irssi/src/fe-common/silc/module-formats.[ch].
18 * Wrote a help file for FILE command.
20 * Added silc_rng_global_get_byte_fast to get not-so-secure
21 random data as fast as possible. Random data is read from
22 /dev/urandom if available and from the SILC RNG if not
23 available. It is used in padding generation. Affected file
24 lib/silccrypt/silcrng.[ch].
26 * All packets in client library are now processed synchronously.
27 Optimized packet processing a lot. Affected file
28 lib/silcclient/client.c.
30 * All server connection packets are processing synchronously
31 now in server, to optimize packet processing. Affected file
34 Thu Oct 25 22:44:06 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
36 * Assure that silc_client_notify_by_server_resolve does not
37 resolve the client information multiple times. If it cannot
38 be found by the first it cannot be found at all. Affected
39 file lib/silcclient/client_notify.c.
41 * Fixed WHOWAS command reply calling. Affected file
42 lib/silcclient/command_reply.c.
44 * Removed all references to silc_idlist_get_client from the
45 Irssi SILC client since that call is internal call used by
46 the library. The Irssi SILC client will use now client
47 retrieval functions found in silcapi.h.
49 * Fixed a bug in resolving nickname info before sending
50 private message. It used freed memory. Affected file
51 irssi/src/silc/core/silc-servers.c.
53 Thu Oct 25 19:04:49 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
55 * Assure my_channels statistics cannot go negative in server.
56 Affected files silcd/server.c, silcd/server_util.c.
58 Wed Oct 24 19:53:05 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
60 * Upgraded dotconf 1.0.2 to 1.0.6 in lib/dotconf.
62 Tue Oct 23 13:51:19 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
64 * Win32 Toolkit changes. Affected files
65 win32/silc.dsw, win32/libsilc/libsilc.def,
66 win32/libsilcclient/libsilc.def,
67 lib/silcutil/silcutil.c, and
68 lib/sftp/sftp_fs_memory.c.
70 Mon Oct 22 16:35:05 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
72 * Added silc_net_localip to return local host's IP address.
73 Affected file lib/silcutil/silcnet.[ch].
75 * If key exchange or rekey protocol is active for a connection
76 parse all packets syncronously since there might be packets
77 in packet queue that we are not able to process without first
78 processing packets before them. Affected file silcd/server,
79 lib/silcclient/client.c.
81 * SilcPacketParserCallback now returns TRUE or FALSE to indicate
82 whether library should continue processing the packet.
83 Affected file lib/silccore/silcpacket.h.
85 * Added SilcSFTPMonitor callback, SilcSFTPMonitors and
86 SilcSFTPMonitorData to SFTP server to monitor various
87 SFTP client requests. Affected file lib/silcsftp/silcsftp.h,
88 lib/silcsftp/sftp_server.c.
90 * Added silc_file_size to return file size. Affected file
91 lib/silcutil/silcutil.[ch].
93 * Implemented the file transfer support for the client library.
94 Added preliminary support for simple client to client one-file
95 transmission. Affected file lib/silcclient/client_ftp.c,
96 lib/silccilent/client.[ch].
98 * Added new local command FILE to the Irssi SILC Client.
99 It is used to perform the file transfer. It has subcommands
100 SEND, RECEIVE, SHOW and CLOSE. Affected files
101 irssi/src/silc/core/client_ops.c,
102 irssi/src/silc/core/silc-server.[ch].
104 Mon Oct 22 12:50:08 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
106 * Relay the SILC_PACKET_FTP in the server. Affected files
107 silcd/server.c and silcd/packet_receive.c.
109 Sun Oct 21 20:21:02 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
111 * Renamed silc_file_read and silc_file_write to functions
112 silc_file_readfile and silc_file_writefile. Added function
113 silc_file_open and silc_file_close. Affected files
114 lib/silcutil/silcutil.[ch].
116 Thu Oct 18 20:58:13 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
118 * Resolve the client info when received private message or
119 channel message for a client which nickname we don't know.
120 Affected files lib/silcclient/client_prvmsg.c and
121 lib/silcclient/client_channel.c.
123 * Do not crash in /KEY if client is not connected. Affected
124 file irssi/src/silc/core/silc-channels.c.
126 * Added SilcClientStatus field to the SilcClientEntry in the
127 lib/silcclient/idlist.h.
129 Added SILC_CLIENT_STATUS_RESOLVING to mark that the entry
130 is incomplete and is being resolved, it won't be resolved
133 Make sure also that USERS command reply does not resolve
134 twice information. Affected file is
135 lib/silcclient/command_reply.c.
137 Make sure that silc_client_get_clients_by_list does not
138 resolve twice same information.
140 * Check for valid client->id in the silc_server_free_client_data.
141 Affected file silcd/server.c.
143 * Fixed /GETKEY nick@server not to crash if the server entry
144 is not found. Affected file lib/silcclient/command.c.
146 * Fixed the silc_server_check_cmode_rights to check the
147 requested modes correctly. Affected file silcd/command.c.
149 Thu Oct 18 12:10:22 CEST 2001 Pekka Riikonen <priikone@silcnet.org>
151 * Better checks for non-printable chars in nick added.
152 Affected file silcd/command.c.
154 Thu Oct 18 09:18:58 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
156 * Call the silc_server_udpate_servers_by_server in the
157 primary router that comes back online in the backup resuming
158 protocol. Otherwise it routes packets wrong. Affected file
159 silcd/server_util.[ch], silcd/server_backup.c.
161 Wed Oct 17 16:51:18 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
163 * Added SILC_STR_UI8_[N]STRING[_ALLOC] formats to the
164 lib/silcutil/silcbuffmt.[ch].
166 * Redefined the SILC packet header to include the padding
167 length. Affected file lib/silccore/silcpacket.[ch].
169 * Added SILC_PACKET_PADLEN_MAX macro to return the padding
170 length for maximum padding up to 128 bytes). Affected
171 file lib/silccore/silcpacket.h.
173 * Removed all backwards support for old 0.5.x MAC thingies.
174 The SILC packet header change makes it impossible to be
175 backwards compatible.
177 * Send the ENDING packet with timeout in the backup resuming
178 protocol. This is to assure that all routers has connected
179 to the primary router. Affected file silcd/server_backup.c.
181 * Changed the RNG to take the first IV from random data. It
182 used to take it from zero actually. Changed the RNG also
183 to use /dev/urandom during session. /dev/random is used
184 in initialization. Affected file lib/silccrypt/silcrng.[ch].
186 Tue Oct 16 20:45:49 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
188 * Changed the SILC packet header to have the first two bytes
189 (the packet length) encrypted. Affected files aroung the
190 code tree, lib/silccore/silcpacket.[ch]. Removed the
191 SilcPacketCheckDecrypt callback. It is not needed anymore
192 since the silc_packet_receive_process will determine now
193 whether the packet is normal or special.
195 * Implemented the unidirectional MAC keys. Affected files
196 lib/silcske/silcske.c, silcd/protocol.c and
197 lib/silcclient/protocol.c.
199 * Implemented the packet sequence number to the MAC computation.
200 Affected files lib/silccore/silcpacket.c, silcd/protocol.c,
201 silcd/packet_send.c, silcd/server.c, lib/silcclient/client.c,
202 lib/silcclient/protocol.c.
204 Mon Oct 15 17:42:55 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
206 * Allow backup router to announce servers. All servers
207 announced by backup router are added to the global list
208 automatically. Update hte server's socket to our primary
209 router also when backup router announces a server.
210 Affected file silcd/packet_receive.c.
212 * Do not update the client->router in the function
213 silc_server_udpate_clients_by_server if the client is on
214 global list. We might fail to find any specific server
215 for locally connected clients and local cell clients. They
216 should still use the `from' and not `to' as client->router.
217 This fixes backup router resuming protocol. Affected file
220 * Decrease channel statistics count only if the channel
221 deletion worked. Affected files are silcd/server.c and
224 * Added silc_server_update_servers_by_server to update origin
225 of all server entries. Used during backup router protocol.
226 Affected files silcd/server_util.[ch], silcd/server.c. and
227 silcd/backup_router.c.
229 * ROBODoc documented the lib/silccrypt/silchmac.h. Added new
230 function silc_hmac_init, silc_hmac_update, silc_hmac_final,
231 silc_hmac_get_hash and silc_hmac_get_name. Affected file
232 lib/silccrypt/silchmac.c.
234 Sun Oct 14 18:28:22 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
236 * Assure that router cannot reroute the same channel message
237 to the sender. Affected file silcd/packet_receive.c.
239 Sat Oct 13 12:46:18 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
241 * Made better checks that the channel message is not sent
242 to the router it came from. Affected file is
243 silcd/packet_send.c. Fixed memory leak too.
245 * Announce informations for incoming router connection, but
246 only after checking if it is replaced by backup router.
247 Affected file silcd/packet_receive.c.
249 Fri Oct 12 18:37:24 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
251 * Fixed the backup resuming protocol to work in multiple
252 router environment. Affected file silcd/server_backup.c.
254 * Route packet only to one router in the function
255 silc_server_packet_send_to_channel. Affected file is
258 * Fixed silc_server_send_notify_dest to set the broadcast
259 flag. Fixed the silc_server_send_notify_topic to actually
260 send the TOPIC_CHANGE notify and not SERVER_SIGNOFF notify.
261 Affected file silcd/packet_send.c.
263 * Changed the SFTP Filesystem interface. Changed the
264 SilcSFTPFilesystemStruct to SilcSFTPFilesystemOps to include
265 the filesystem operation function. The SilcSFTPFilesystem
266 is now a context that is allocated by all filesystem allocation
267 functions and it already includes the operations structure
268 and filesystem specific context. It is given as argument
269 now to the silc_sftp_server_start. This made the interface
270 a bit cleaner. Affected file lib/silcsftp/silcsftp[_fs].h,
271 lib/silcsftp/sftp_fs_memory.c and sftp_server.c.
273 Thu Oct 11 22:19:26 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
275 * Changed the backup router adding and getting interfaces
276 in the server. The router that will be replaced by the
277 specified backup router is now sent as argument. Affected
278 files silcd/serverconfig.[ch], silcd/backup_router.[ch], and
281 * Added silc_net_addr2bin_ne to return the binary form of
282 the IP address in network byte order. Affected files
283 lib/silcutil/[unix/win32].silc[unix/win32]net.[ch].
285 Thu Oct 11 12:14:19 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
287 * Check for existing server ID in silc_server_new_server
288 and in silc_server_connect_to_router_final and remove the
289 old entry if it exists. Affected file silcd/packet_receive.c,
292 * Send the channel message always to only one router, either
293 in upstream or downstream. Affected file is
296 Tue Oct 9 17:45:43 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
298 * Wrote the definition of the backup resuming protocol to the
299 protocol specification.
301 * Removed one redundant channel key generation from normal
302 server during joining procedure. Removed one redundant
303 channel key sending from server to router during joining
304 procedure. Affected file silcd/command.c.
306 * Made minor bugfixes to the backup router resuming protocol.
307 Affected file silcd/server_backup.c, server.c.
309 Mon Oct 8 16:47:42 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
311 * Added --disable-asm configuration option. Affected files
312 configure.in.pre, lib/silcmath/mpi/configure.in. A patch
315 * Implemented the backup resuming protocol that is used to
316 resume the primary router position in the cell after the
317 primary router comes back online. Affected files
318 silcd/server_backup.[ch], silcd/server, silcd/packet_receive.c,
319 and silcd/server_util.[ch].
321 Sun Oct 7 12:29:25 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
323 * Sleep two (2) seconds after sending QUIT command to server.
324 Affected file lib/silcclient/command.c.
326 * Assure that if outgoing data buffer is pending do not force
327 send any data. Affected file silcd/packet_send.c.
329 * Assure that if outgoing data buffer is pending do not force
330 send any data. Affected file lib/silcclient/client.c.
332 * Implemented the backup router support when the primary router
333 goes down. The servers and routers can now use the backup
334 router as new primary router without loosing connectivity.
336 Sat Oct 6 21:18:54 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
338 * Added new SILC_IDLIST_STATUS_DISABLED flag for entries
339 in the server to indicate disabled entry. All data read
340 from the connection will be ignored and no data is sent
341 for entry that is disabled. Affected files are
342 silcd/idlist.h, silcd/server.c.
344 Fri Oct 5 00:03:29 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
346 * Created SFTP client and server test programs in the
347 lib/silcsftp/tests directory.
349 Wed Oct 3 23:31:42 EDT 2001 Pekka Riikonen <priikone@silcnet.org>
351 * Implemented memory filesystem (virtual filesystem) for
352 SFTP server. Affected file lib/silcsftp/silcsftp_fs.h,
355 Sun Sep 30 22:10:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
357 * Implemented the SFTP (SSH File Transfer Protocol) to the
358 lib/silcsftp. It includes SFTP client and SFTP server
361 Sun Sep 30 10:35:44 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
363 * Moved lib/silccore/silcprotocol.[ch] to the
364 lib/silcutil library.
366 * Added silc_buffer_format_vp and silc_buffer_unformat_vp to
367 take variable argument list pointer as argument. Affected
368 file lib/silcutil/silcbuffmt.[ch].
370 * Added silc_buffer_set function that is used to set data
371 to a SilcBuffer that is not allocated at all (SilcBufferStruct).
372 Affected file lib/silcutil/silcbuffer.h.
374 * Changed various routines in the core library to use the new
375 silc_buffer_set instead of allocating new buffer only for
378 * Added 64-bit value formatting and unformatting support to the
379 silc_buffer_[un]format routines. Affected file is
380 lib/silcutil/silcbuffmt.[ch].
382 Added also 64-bit macros: SILC_GET64_MSB and SILC_PUT64_MSB,
383 to includes/bitmove.h.
385 Fri Sep 28 21:30:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
387 * Fixed channel user mode saving in client library. Affected
388 file lib/silcclient/command[_reply].c.
390 Thu Sep 27 22:52:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
392 * Defined the file transfer to the SILC Protocol. Added
393 new packet type SILC_PACKET_FTP and defined File Transfer
394 Payload. The mandatory file transfer protocol is SFTP
395 (SSH File Transfer Protocol). Affected file in addition
396 of the internet draft is lib/silccore/silcpacket.h.
398 * Deprecated the SILC_PACKET_CELL_ROUTERS and defined new
399 packet SILC_PACKET_RESUME_ROUTER instead. The new packet
400 is used as part of backup router protocol when the primary
401 router of the cell is back online and wishes to resume
402 the position as primary router.
404 * Redefined the MAC generation keys in the protocol. The
405 same key is not used anymore in both direction. Both
406 direction will now use different keys for sending and
407 receiving. This fixes a potential security flaw. This
408 change causes incompatibilities in the protocol.
410 * Redefined also the MAC computation from the packet.
411 An packet sequence number is now added to the MAC
412 computation. This prevents possible replay attacks against
413 the protocol. This change too causes incompatibilities
416 Added `sequence' field to the SilcPacketContext to hold
417 the current sequence number for the packet.
419 Wed Sep 26 20:15:22 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
421 * Added `created' field to the SilcIDListData in the file
422 silcd/idlist.h to indicate the time when the entry was
425 * Added `created' field to the SilcChannelEntry too. Affected
428 * Added `creation_time' aguments to all the announcement functions
429 in the server. If it is provided then only the entries that
430 was created after the provided time frame are actually
431 announced. Affected file silcd/server.[ch].
433 * The protocol says that the Channel ID's IP address must be
434 based on the router's IP address. Added check for this in
435 the silc_server_new_channel when processing incoming New Channel
436 Payload. Affected file silcd/packet_receive.c.
438 * Print out the correct version with --version in SILC client.
439 Affected file irssi/src/silc/core/silc-core.c.
441 Mon Sep 24 17:19:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
443 * Fixed WHOWAS command to check for completnes of the client
444 entry always, not just when the command is coming from client.
445 Affected file silcd/command.c.
447 * Added new function silc_server_packet_queue_purge to purge the
448 outgoing data queue to the network. After the function returns
449 it is guaranteed that the outgoing packet queue is empty.
450 Affected file silcd/packet_send.[ch].
452 * Purge the outgoing packet queue in the rekey protocol's final
453 callback to assure that all rekey packets go to the network
454 before quitting the protocol. Affected file silcd/server.c.
456 * Added silc_client_packet_queue_parse as similar function as
457 in server to the client library. The affected file is
458 lib/silcclient/client.c.
460 Sun Sep 23 15:15:53 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
462 * Splitted silcd/server.c and created silcd/server_util.[ch]
463 for utility functions.
465 * Added new socket flag SILC_SF_DISABLED to indicate that the
466 connection is open but nothing can be sent to or received from
467 the connection. Affected file lib/silcutil/silsockconn.[ch].
468 The checking for disabled socket is checked in the low level
469 silc_socket_write and silc_socket_read functions.
471 Thu Sep 20 23:11:28 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
473 * Allow only nicknames and channel names that fits into the
474 7-bit unsigned char ASCII set. Affected file silcd/command.c.
476 Thu Sep 20 18:04:12 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
478 * When processing JOIN command reply in server check that if
479 the channel exists in our global list we'll move it the local
480 list. Affected file silcd/command_reply.c.
482 * Fixed the check whether client is joined on the channel already
483 in JOIN command. Affected file lib/silcclient/command.c.
485 * Fixed the JOIN command reply to check whether the channel
486 already exists. Affected file lib/silcclient/command_reply.c.
488 Wed Sep 19 22:58:32 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
490 * Added silc_ske_status_string to map the SKE error numbers
491 to readable strings. The affected files are
492 lib/silcske/silcske[_status].[ch].
494 Tue Sep 18 22:50:41 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
496 * Do not show the private channels on the WHOIS channel list
497 as it is not allowed by the protocol. The affected file is
500 Sun Sep 16 12:32:58 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
502 * Assure that the packet length digged from the actual packet
503 is something sensible in the silc_packet_decrypt_rest_special
504 in lib/silccrypt/silcpacket.c.
506 * Free and NULL the allocated pointer in silc_hmac_alloc if
507 the HMAC allocation fails. The affected file is
508 lib/silccrypt/silchmac.c.
510 * Print the selected security properties to the log files in
511 the server. Affected file silcd/protocol.c.
513 * Add SKE's reference counter even if calling the completion
514 callback manually. Otherwise it goes negative, although it
515 does not cause any problems. The affected file is
516 lib/silcske/silcske.c.
518 * Remove the client entry with short timeout after giving the
519 KILL command. Affected file lib/silcclient/command.c.
521 * Fixed to send error reply in WHOIS and IDENTIFY commands in
522 case all found clients are already disconnected (WHOWAS would
523 found them) in the server. Affected file silcd/command.c.
525 * Update the last_receive (time of last data received) to be
526 updated only when received private or channel message so that
527 the idle time showed in WHOIS makes more sense.
529 * Added boolean field `valid' in to the SilcClientEntry in the
530 client library to indicate whether the entry is valid or not.
531 This fixes the nickname change bug on channel when changing
532 the nickname to be same than the old (like nick to Nick) the
533 nickname formatter doesn't set the new nick anymore to Nick@host.
534 Affected file lib/silcclient/idlist.[ch].
536 * Now actually fixed the nickname changing on disconnection.
537 Added new function silc_change_nick to the Irssi SILC Client.
538 Affected file irssi/src/silc/core/client_ops.c,
539 irssi/src/silc/core/silc-nicklist.[ch].
541 Sat Sep 15 13:29:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
543 * Check that the public key exists in the GETKEY command before
544 trying to encode it. Affected file silcd/command.c.
546 * Print some notifications on received public keys with GETKEY
547 command in the Irssi SILC Client. Affected files are
548 irssi/src/fe-common/silc/module-formats.[ch],
549 irssi/src/silc/core/client_ops.c.
551 * Use IDENTIFY command to resolve the server information in the
552 GETKEY command instead of INFO command. Affected file
553 lib/silcclient/command.c.
555 * All command reply functions in the client library now calls
556 the pending command reply callbacks even if an error has
557 occurred. The server has done this a long time and now it was
558 time to move the client library to this as well. Now all
559 errors can be delivered back to the pending command reply
560 callbacks if necessary. Affected files are
561 lib/silcclient/command[_reply].[ch].
563 * Change the nickname on disconnection back to the username
564 because in reconnect the server will enforce it to it anyway.
565 Affected file irssi/src/silc/core/silc-servers.c.
567 * Fixed a config file parsing bug in the Irssi SILC client.
568 Affected file irssi/src/silc/core/clientconfig.c.
570 Thu Sep 13 23:11:18 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
572 * When printing the channel mode on JOIN, verify that the
573 channel key and channel's HMAC are valid. Affected file
574 irssi/src/silc/core/client_ops.c.
576 Thu Sep 13 20:24:52 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
578 * Added defines SILC_DEFAULT_CIPHER, SILC_DEFAULT_HMAC,
579 SILC_DEFAULT_HASH and SILC_DEFAULT_PKCS in the file
580 lib/silccrypt/[silccipher.h|silchmac.h|silchash.h|silcpkcs.h].
582 * Removed channel key rekey task deleting from the function
583 silc_server_save_channel_key. Affected file silcd/server.c.
584 Added explicit timeout task context instead that is used to
585 delete the task if we are registering a new task before the
586 new task has elapsed.
588 * When channel key rekey occurs the client library now saves
589 the old channel key for a short period of time (10 seconds) and
590 is able to use it in case some is still sending channel
591 messages encrypted with the old key after the rekey. Affected
592 file lib/silcclient/[idlist.h|client_channel.c].
594 Sun Sep 9 15:49:16 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
596 * Added check to the silc_server_new_id_real to not accept
597 new ID if it is the sender's own ID. Affected file is
598 silcd/packet_receive.c.
600 * Assure that we do not announce ourself or the one we've
601 sending our announcements when we're router and are announcing
602 servers to our primary router. Affected file silcd/server.c.
604 * Fixed silc_server_command_identify_check_client to assemble
605 correct WHOIS packet. It send corrupted WHOIS packet and
606 caused problem with router to router connections. Affected
607 file silcd/command.c.
609 Fixed also silc_server_command_whois_check the same way
610 as for the IDENTIFY command.
612 * Added new SilcIDListStatus to the server in the SilcIDListData
613 structure. The status now includes the current status of
614 the entry (like registered, resolved etc.). Affected file
615 silcd/idlist.[ch]. Defined a bunch of different status types
616 as well. This replaced the old boolean registered field as well.
618 Added resolve_cmd_ident field to the SilcClientEntry structure
619 too so that if the entry is for example being resolved so
620 another command may attach to the same pending command reply
621 without requiring to resolve the same entry again. This concept
622 should optimize the WHOIS and the IDENTIFY resolving under
623 heavy load by taking away unnecessary resolving for entries
624 that are being resolved already.
626 Added support for adding multiple pending commands for one
627 command idenfier. Affected file silcd/command[_reply].[ch].
629 * Fixed WHOIS and IDENTIFY save to remove the cache entry
630 before deleting the data. Otherwise the hash table will have
631 freed data in comparison functions. Affected file is
632 silcd/command_reply.c.
634 * Fixed silc_idlist_replace_client_id to add the new entry to
635 the cache with NULL nickname. Otherwise there will be invalid
636 memory as the nickname after the nickname is freed. Affected
637 file silcd/packet_receive.c.
639 * Fixed the silc_idlist_get_clients_by_hash. The entries was
640 saved into wrong slots because the previous number of entries
641 was not taken into account. Affected file silcd/idlist.c.
642 Fixed same thing in silc_idlist_get_clients_by_nickname too.
644 * If we are router and we receive JOIN notify to a channel that
645 does not have any users then notified client is marked as the
646 channel founder, as it is it. The affected file is
647 silcd/packet_receive.c
649 * Added to the extended hash table API's table_del_*ext functions
650 the destructor as argument too, so that the caller can decide
651 which destructor to use or whether to use destructor at all.
652 Affected file lib/silcutil/silchashtable.[ch].
654 * Fixed ID Cache purging. It actually deleted the entries from
655 the hash table after the data was freed. The hash table ended
656 up comparing freed memory. The affected file is
657 lib/silccore/silcidcache.c.
659 Sat Sep 8 10:22:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
661 * Fixed Irssi SILC client's KILL command's HELP syntax.
663 * The USERS command now resolves the detailed user information
664 if the userinfo field is missing. Affected file is
665 lib/silcclient/command_reply.c.
667 * Do not print error in silc_file_read if the read file does
668 not exist. Just silently return NULL. Affected file is
669 lib/silcutil/silcutil.c.
671 * Fixed the silc_log_output to not wine about NULL filename
672 and to not create some bogus " " filename. Affected file is
673 lib/silcutil/silclog.c.
675 Fri Sep 7 22:16:38 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
677 * Fixed various printing bugs on the user interface in the
678 Irssi SILC Client. Minor changes that were forgotten from
681 Fri Sep 7 17:28:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
683 * Fixed the configure.in.pre and the compilation and distribution
684 environment to support the new autoconf 2.52. That version is
685 now required to compile the CVS trunk.
687 Thu Sep 6 12:47:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
689 * Renamed function silc_parse_nickname to silc_parse_userfqdn
690 to generally parse user@fqdn format strings. Affected file
691 lib/silcutil/silcutil.c.
693 * Added nickname_format and nickname_force_format fields to the
694 SilcClientParams structure. The first one defines the format
695 for the nicknames that the library will enforce if the receives
696 multiple same nicknames. The second one is boolean value and
697 can be used to force the library to always enforce the format
698 to the nicknames regardles whether there are multiple nicknames
699 or not. This configurable formatting was employed to flexibly
700 support accessing multiple nicknames from the user interface.
701 The userinterface can now set the nicknames to what ever format
702 they prefer. Affected file lib/silcclient/silcapi.h.
704 Added function silc_client_nickname_format to the file
705 lib/silcclient/idlist.c. It performs the nickname formatting.
707 Added new field `hostname´ to the SilcClientEntry context.
708 It holds the hostname of the client. Affected file is
709 lib/silcclient/idlist.h.
711 * Irssi SILC Client sets the nicknames in nick@hostn format.
712 Fe. priikone@otaku, priikone@otaku2 etc. Affected file
713 irssi/src/silc/core/silc-core.c.
715 The WHOIS printing now also shows both the real nickname and
716 the formatted nickname so that user knows how to access the
717 user if there are multiple same nicknames cached. Affected
718 file irssi/src/silc/core/client_ops.c. Changed the WHOIS
719 printing formatting too to take the hostname now as a separate
720 argument. The Affected file is
721 irssi/src/fe-common/silc/modules-formats.[ch].
723 * Changed the silc_client_get_clients_local to accept the formatted
724 nickname as argument. It accepts the real nickname too but the
725 formatted nickname can be used to find the true entry from
726 multiple entries. Affected file lib/silcclient/silcapi.h and
727 lib/silcclient/idlist.c.
729 * Added nickname_format_parse field to the SilcClientParams.
730 It is a callback function provided by the application to parse
731 the nickname out of the formatted nickname string. The library
732 calls it to get the nickname from the formatted string. Since
733 the application generally knows better the format of the nickname
734 string it parses it instead of the library, even though library
735 encodes the formatted string. If the callback function is not
736 provided then the library will use the string as is. The
737 affected file is lib/silcclient/silcapi.h.
739 * All the nickname strings passed to the client library in
740 commands are now expected to be formatted nickname strings.
741 If the command does not support the formatted nickname string
742 it will assume that the sent string is the actual nickname.
743 Affected file lib/silcclient/command.c.
745 Tue Sep 4 22:31:28 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
747 * Added public key authentication support to OPER and SILCOPER
748 commands in the client library. Affected file is
749 lib/silcclient/command.c.
751 Tue Sep 4 12:39:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
753 * Changed the get_auth_methdod client operation to be asynchronous.
754 It can be async if the application resolves the authentication
755 method from the server during the negotiation. Added new
756 SilcGetAuthMeth completion callback that the application will
757 call after resolving the authentication method.
759 Added function silc_client_request_authentication_method that
760 the application can use to resolve the authentication method
761 from the server. Added also SilcConnectionAuthRequest callback
762 that the library will call after the server has replied. The
763 application can call this function if it does not know the
764 current authentication method.
766 Affected files are lib/silcclient/client.c and
767 lib/silcclient/silcapi.h.
769 * The Irssi SILC client now automatically resolves the authentication
770 method incase any configuration information is not present (and
771 currently there never is). The affected file is
772 irssi/src/silc/core/client_ops.c.
774 * Fixed public key authentication from the client library.
775 Affected file lib/silcclient/protocol.c. Changed also the
776 protocol specification about the public key authentication in
777 the connection authentication protocol. The actual data to be
778 signed is now computed with a hash function before signing.
780 * Fixed the public key authentication from the server as well.
781 Affected file silcd/protocol.c.
783 * Removed the mlock()'s from the memory allocation routines.
784 Affected file lib/silcutil/silcmemory.c. The ./configure does
785 not check anymore for the mlock(). Affected file is
788 * Fixed USERS command in server to allow the execution of the
789 command for private and secret channels if the client sending
790 the command is on the channel. Affected file silcd/command.c.
792 * Fixed silc_client_get_clients_local to return the clients
793 count correctly. It could return wrong value. Affected file
794 lib/silcclient/idlist.c.
796 Mon Sep 3 20:09:59 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
798 * Fixed the lib/silcmath/mpi/mpi.h to always use 32-bit data
799 types. The assembler optimizations seemed not to like 64-bit
800 data types. The assmebler optimizations thus are now enabled
801 also for BSD systems as opposed to only enable them for Linux.
803 * Do not check for threads at all on BSD systems. Affected
804 file configure.in.pre.
806 * Removed -n and -h options from the Irssi SILC Client since
807 they are not used in silc.
809 * Fixed the prime generation to assure that the first digit
810 of the generated random number is not zero since our conversion
811 routines does not like number strings that starts with zero
812 digit. If zero digit is seen the random number is regenerated.
813 This caused some corrupted RSA keys when the zero first digit
814 was met. Affected file lib/silcmath/silcprimegen.c.
816 Sun Sep 2 17:17:24 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
818 * Fixed WIN32 configuration in the ./configure script.
819 Fixed to include xti.h on environments that has it.
820 Patches by Carsten Ilchmann and andrew.
822 Sat Sep 1 00:29:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
824 * Changed the silc_id_create_client_id to be collision
825 resistant. It is now assured that there cannot be created
826 two same client ID's. I suspect that some weird bugs in
827 the server were actually caused by duplicate Client IDs.
828 Affected file silcd/serverid.[ch]. A router receiving
829 new ID now also assures and informs the sending server
830 if the ID caused collision.
832 * Changed the silc_id_create_channel_id to also assure that
833 there are no collisions.
835 Wed Aug 29 17:55:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
837 * Statement about ignoring the Mutual Authentication flag when
838 performing rekey with PFS was a bit misleading. It is ignored
839 if it was set in the initial negotiation, it cannot be even
840 set in the rekey. Fixed in the ke-auth draft. Started the
841 new versions of the protocol drafts in the doc/.
843 Sun Aug 26 14:59:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
845 * Fixed a bug in silc_client_command_identify_save when saving
846 new channel information. The channel name was no duplicated
847 and caused crash on exit. Affected file is
848 lib/silcclient/command_reply.c.
850 Fri Aug 17 23:07:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
852 * Fixed the getkey command handling in the server. Send just
853 empty OK reply to the sender if the key could not be fetched
854 (but everything else was ok, like the key just was not available).
855 Changed the public key parameter to optional in the protocol
856 specs so that empty OK reply can be sent. Affected file
859 Added a message to Irssi SILC client to tell to user if the
860 server did not return a public key.
862 Tue Aug 14 07:29:27 CEST 2001 Pekka Riikonen <priikone@silcnet.org>
864 * Fixed a channel key regeneration bug. It registered new
865 timeout tasks exponentially until all system resources were
866 used. Affected file silcd/server.c.
868 Sun Aug 12 20:48:14 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
870 * Added the SILC Document generator to the scripts/silcdoc.
871 It can be used to generate the Toolkit Reference Manual out
872 of the source tree. Internally it will also use the RoboDoc
873 generator now imported in util/robodoc.
875 Sun Aug 12 12:28:17 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
877 * Added couple of return's in rekey protocol if error orccurred
878 during the protocol. The execution must be terminated.
879 Affected file silcd/protocol.c. Also, terminate the protocol
882 Sat Aug 11 12:36:02 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
884 * The client's Client ID was created initally from the wrong
885 nickname (it could have been in format nick@host) in the
886 silc_server_new_client. Affected file silcd/packet_receive.c
888 Sat Aug 11 00:29:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
890 * Added some SILC_LOG_ERROR's to various error conditions
891 if client could not be added to ID cache. Affected files
892 silcd/packet_receive.c and silcd/server.c.
894 * When client's sock->user_data is freed, NULL also the
895 client->router and client->connection pointers. Added check
896 for these pointers being NULL to various places around the
897 code. Affected file silcd/server.c.
899 * Added client->data.registered == TRUE checks to various
900 places around the code to assure that unregistered client's
901 are not handled when it is not allowed. Affected file
904 * Added `bool registered' fields to all
905 silc_idlist_[server|client]_get_* routines to indicate whether
906 the fetched client needs to be registered or not. Affected
907 file silcd/idlist.[ch].
909 * Add your own entry as registered to the ID cache in the
910 server. Affected file server.c.
912 * Fixed a bug in silc_server_new_server. The SilcServer was
913 set as the new server's context instead of SilcServerEntry.
914 This naturally caused some weird bugs.
916 Thu Aug 9 18:28:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
918 * Do not delete the channel rekey task when adding it
919 for in silc_server_create_channel_key.
921 * Changed the silc_server_create_channel_key to return
922 TRUE or FALSE to indicate the success of the channel key
925 Thu Jul 26 11:32:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
927 * Fixed MSVC++ project files and added missing files to
928 Makefiles under win32/.
930 Wed Jul 25 18:43:54 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
932 * Do not add TCP_NODELAY flag if the operating system
933 does not have it defined. Affected files are
934 lib/silcutil/[unix/win32]/silc[unix/win32]net.c.
936 * Fixed buffer overflow from Irssi SILC Client. Affected
937 file irssi/src/fe-common/core/themes.c.
939 * Fixed double free in client library in the file
940 lib/silcclient/client.c when disconnecting from server.
942 * Applied double free patch from cras to Irssi SILC client.
943 Affected files irssi/src/core/[modules/expandos].c
945 * Fixed the disconnection handling to Irssi SILC Client.
946 The application must call silc_client_close_connection
947 in ops->connect client operation in case of failure of
948 the connection. Affected file is
949 irssi/src/silc/core/client_ops.c.
951 * Do not set sock->protocol to NULL in the function
952 silc_client_close_connection after executing the protocol's
953 final callback since the sock might not be valid anymore.
954 Affected file lib/silcclient/client.c.
956 Wed Jul 25 16:04:35 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
958 * Do not enable SILC_THREADS if the linking with libpthread
959 did not happen. Affected file configure.in.pre.
961 * Added notion to protocol specification that server must
962 verify the sent authentication payload with CMODE when
963 setting the channel founder key. Implemented it to the
964 server. Affected file silcd/command.c.
966 Mon Jul 23 18:31:43 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
968 * Added _EXTRA_DIST SILC distribution variable to the
969 distributions file. It is used to conditionally add extra
970 files or directories to the specific distribution. Affected
971 files ./prepare, Makefile.am.pre and distributions.
973 Removed the `_' from the start of the distribution names.
976 * Added README.WIN32 for instructions to compile the Toolkit
979 Mon Jul 23 10:12:37 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
981 * Fixed a double free in disconnection in the server. Affected
982 file is silcd/server.c.
984 * Fixed the lib/silcske/groups.c to work now also with GMP
985 MP library. The string conversion did not work when using
986 specific base and the base is indicated in the string as well.
988 * Created win32/ directory which now includes MSVC++ specific
989 stuff so that toolkit (DLLs) may be compiled with MSVC++.
990 It will appear only in the toolkit distribution
992 Sun Jul 22 19:40:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
994 * Changed the key material distribution function in case when
995 the hash output is too short. The data is now concatenated
996 a bit differently than it used to. Made the change to the
997 SKE protocol specification.
999 * Added better GMP detection to configure.in.pre. A patch
1002 Fri Jul 20 13:16:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1004 * Fixed a minor bug in SKE that might cause some problem on
1005 some platforms. Affected file lib/silcske/silcske.c.
1007 * Added the cookie checking for initiator in the SKE. It checks
1008 that the responder returns the sent cookie unmodified. The
1009 affected file is lib/silcske/silcske.c. Added new SKE
1010 error type INVALID_COOKIE that can be sent during the
1011 negotiation. Fixed some memory leaks as well.
1013 * Added the "invalid cookie" error message to Irssi SILC client's
1016 Thu Jul 19 21:44:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1018 * Added `task_max' field to the SilcClientParams to indicate
1019 the maximum tasks the scheduler can handle. If set to zero,
1020 default values are used. Affected file lib/silcclient/silcapi.h.
1022 * Fixed memory leaks in silc_client_close_connection. Affected
1023 file lib/silcclient/client.c.
1025 * Added silc_client_del_client_entry to client library to free
1026 all memory of given client entry. Affected file is
1027 lib/silcclient/idlist.[ch].
1029 * Added new functions silc_client_del_channel and
1030 silc_client_del_server to delete channel and server entries.
1031 Affected file lib/silcclient/[silcapi.h/idlist.c].
1033 * Removed silc_client_del_client_by_id from silcapi.h.
1035 * Fixed the INFO command to return the server's own info
1036 correctly when querying by Server ID. Affected file is
1039 Thu Jul 19 14:47:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1041 * Removed the non-blocking settings in WIN32 code in the
1042 silc_sock_[read/write] and added SleepEx instead. Affected
1043 file lib/silcutil/win32/silcwin32sockconn.c. The availability
1044 of input data is now checked with FIONREAD and ioctlsocket.
1046 Wed Jul 18 18:34:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1048 * Call silc_schedule_task_del_by_context in the
1049 silc_protocol_cancel instead of silc_schedule_task_del_by_callback.
1050 Affected file lib/silccore/silcprotocol.c.
1052 * Call silc_protocol_cancel for active protocols in the
1053 silc_server_close_connection if the funtion
1054 silc_server_free_sock_user_data has not been called.
1055 Affected file silcd/server.c.
1057 * Generic tasks cannot be deleted using the del_by_fd
1058 task deleting function since generic tasks does not match
1059 any specific fd. Affected file lib/silcutil/silcschedule.[ch].
1061 * Added a notion to SILCOPER help file that the SILCOPER works
1062 only on router server, not on normal server.
1064 Wed Jul 18 09:40:04 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1066 * Added for WIN32 support for the new scheduler as well.
1067 Affected file lib/silcutil/win32/silcwin32schedule.c.
1069 * Fixed the SHA1 implementation to work on various platforms.
1071 Tue Jul 17 23:04:10 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1073 * Rewrote the SILC Scheduler entirely. Removed the old SILC Task
1074 API. It is part of the scheduler now. Everything else is
1075 as previously but some functions has changed their names.
1076 Checkout the lib/silcutil/silcschedule.h for the interface.
1077 Updated all applications to use the new interface. Affected
1078 files are lib/silcutil/silcschedule.[ch].
1080 Tue Jul 17 16:53:30 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1082 * Found a bug in the SKE implementation. The HASH value,
1083 specified by the protocol, was not computed correctly. The
1084 public key of the responder was not added to the computation
1085 even though it is mandatory. Affected file lib/silcske/silcske.c.
1086 This unfortunately causes incompatibilities with older
1087 clients and servers.
1089 * Added WIN32 specific network init and uninit functions:
1090 silc_net_win32_init and silc_net_win32_uninit to init and uninit
1091 the Winsock2. Affected file lib/silcutil/silcnet.h and
1092 lib/silcutil/win32/silcwin32net.c.
1094 * Set the socket always to nonblocking mode on WIN32 after
1095 reading data or writing data. Affected file is
1096 lib/silcutil/win32/silcwin32sockconn.c.
1098 Mon Jul 16 22:55:26 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1100 * Fixed various compilation problems under WIN32. Affected
1101 files lib/silcutil/win32/silcwin32thread.c and
1102 lib/silcutil/win32/silcwin32schedule.c.
1104 * Removed all _internal.h #includes from public header
1105 files. Internal headers must never be included from
1108 Removed also the lib/silcske/payload_internal.h file.
1110 * All include files that may be needed (public and some others
1111 included by the public headers) by application developers are
1112 now copied to the ./includes directory. It does not copy any
1113 internal headers. Affected file Makefile.defines.pre and all
1114 Makefile.am's under lib/ and subdirs.
1116 Thu Jul 12 17:49:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1118 * Do not change the ~/.silc directory's permissions automatically.
1119 Affected file irssi/src/silc/core/clientutil.c.
1121 Thu Jul 12 10:18:40 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1123 * Do not cancel the protocol in silc_server_close_connection
1124 it might cause recursion. Now cancelled in the function
1125 silc_server_free_sock_user_data. Affected file silcd/server.c.
1127 * Fixed the silc_server_remove_clients_by_server to regenerate
1128 the channel keys correctly finally. Added also new function
1129 silc_server_remove_clients_channels to actually do it.
1130 Affected file silcd/server.c.
1132 * Fixed the silc_server_new_channel to not crash by giving
1133 wrong router to the new channel. Affected file is
1134 silcd/packet_receive.c.
1136 Wed Jul 11 18:31:57 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1138 * Added SilcClientParams structure to the lib/silcclient/silcapi.h
1139 which is given as argument to the silc_client_alloc now.
1140 It can be used to configure the client and set various parameters
1141 that affect the function of the client.
1143 * The USERS command in server did not check whether the channel
1144 is private or secret. Affected file silcd/command.c.
1146 * Added new argument to the USERS command in protocol specification.
1147 The USERS command now can take the channel name as argument
1148 as well. Added support for this in client and server and
1149 updated the protocol specs.
1151 * Completed the GETKEY command in client. It can be now used
1152 to fetch also servers public key not only some clients.
1153 Affected files lib/silcclient/command[_reply].c.
1155 * Added silc_client_get_server to return server entry by the
1156 server name. Affected files lib/silcclient/silcapi.h and
1159 * Redefined the IDENTIFY command in protocol specification to be
1160 more generic. It now can be used to query information about
1161 any entity in the SILC Network, including clients, servers and
1162 channels. The query may be based either the entity's name
1163 or the ID. Added support for this in both client and server.
1165 Affected files silcd/command.c and lib/silcclient/command.c
1166 and command_reply.c.
1168 * Optimized the WHOIS and WHOWAS commands in the server. Removed
1169 the _from_client and _from_server functions. Affected file
1172 * Added silc_client_get_channel_by_id_resolve to the file
1173 lib/silcclient/silcapi.h to resolve channel information by
1174 its ID. Added also silc_client_get_channel_by_id that
1175 does not resolve it from the server.
1177 Tue Jul 10 18:05:38 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1179 * Added SilcServerEntry context into the client library
1180 to represent one server. The INFO command now allocates
1181 these to save the resolved server info. For now on the
1182 client library will also keep information about servers,
1183 connected and resolved with INFO.
1185 The INFO command now allocates the SilcServerEntry context
1186 and saves the server info there. The COMMAND_REPLY in
1187 the INFO now returns the parameters to application in
1188 same order as defined in the protocol specification.
1190 The entries are cached in the client->server_cache.
1192 * The INFO command is now issued after received the Client ID
1193 from the server. Affected file lib/silcclient/client.c.
1195 * The CMODE_CHANGE notify may now return also an SilcServerEntry
1196 to the application as the mode changer might be server.
1197 It is guaranteed that NULL is not returned anymore to the
1198 application. Affected file lib/silcclient/client_notify.c.
1200 The ID Type is now also passed to the application so that
1201 it can check whether the returned entry is SilcClientEntry
1204 Added new function silc_client_get_server_by_id to return
1205 the server entry by ID. Affected files are the
1206 lib/silcclient/silcapi.h and lib/silcclient/idlist.c.
1208 * Do not create the channel in the Irssi SILC Client when issuing
1209 the JOIN command but when received the sucessful JOIN command
1210 reply. Otherwise the channel might get created even though we
1211 could not join it. The Affected file is
1212 irssi/src/silc/core/[silc-channels.c/client_ops.c].
1214 * Fixed a channel joining bug in router. The router must also
1215 check the channel modes, invite and ban lists etc. when serving
1216 the JOIN command sent by normal server. Affected file is
1217 silcd/command.c. The router now resolves the client's
1218 information from the server who sent the JOIN command if it
1219 does not know it, and processes the JOIN command only after
1222 * Changed the SilcCommandCb to take new argument; void *context2.
1223 Affected file lib/silccore/silccommand.h
1225 The second argument in the command callbacks in the server now
1226 includes the SilcServerCommandReplyContext if the command was
1227 called as pending command callback from the command reply.
1228 Otherwise it is NULL. When called as pending the status of the
1229 command reply will be checked and if it was erronous the
1230 error will be sent to the original sender of the command.
1231 This way the client always receives the error messages even
1232 though the server was actually the one who received the error
1233 when it resent the command to router, for example. Affected
1234 files silcd/command[_reply].[ch].
1236 * Fixed sending WHOWAS command's error message to client if
1237 the requested client could not be found. It was missing.
1240 * Changed the CMODE and CUMODE commands reply arguments in the
1241 protocol specification. The Channel ID is now sent in both
1242 of the commands to identify the channel. Implemented this
1243 new feature to the client and server. Affected files
1244 lib/silcclient/command_reply.c and silcd/command.c.
1246 * Made better checks for invite and ban lists in the JOIN
1247 command in server. Affected file silcd/command.c.
1249 Mon Jul 9 18:28:34 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1251 * The server now performs the incoming host IP/DNS lookup
1252 using the silc_socket_host_lookup and thus does not block
1253 the server anymore. Affected file silcd/server.c.
1255 * Completed the multi-thread support for SILC Scheduler in
1256 the lib/silcutil/silcschedule.c.
1258 * Fixed the configure.in.pre to detect the pthread correctly
1261 * Fixed a deadlock in silc_task_queue_wakeup in the file
1262 lib/silcutil/silctask.c.
1264 Mon Jul 9 13:40:03 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1266 * Added new function silc_schedule_wakeup that is used in
1267 multi-threaded environment to wakeup the main thread's
1268 schduler. It needs to be used when a thread adds a new task
1269 or removes a task from task queues. After waking up, the
1270 scheduler will detect the task queue changes. If threads
1271 support is not compiled in this function has no effect.
1272 Implemented the wakeup mechanism to both Unix and WIN32
1273 systems. Affected files are lib/silcutil/silcschedule.[ch],
1274 lib/silcutil/unix/silcunixschedule.c and the
1275 lib/silcutil/win32/silcwin32schedule.c.
1277 * Added new function silc_task_queue_wakeup to wakeup the
1278 scheduler by the specified task queue. Affected file
1279 lib/silcutil/silctask.[ch].
1281 * The silc_socket_host_lookup_start now wakes up the scheduler
1282 after adding the timeout task. Affected file is
1283 lib/silcutil/silcsockconn.c.
1285 * The silc_socket_host_lookup is synchronous now if the threads
1286 support is not compiled in. However, the callback is still
1287 called asyncronously through the scheduler, anyway. Affected
1288 file lib/silcutil/silcsockconn.c.
1290 Mon Jul 9 00:24:45 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1292 * Added new function silc_socket_host_lookup to perform
1293 asynchronous IP and FQDN lookups for the socket connection.
1294 Affected files lib/silcutil/silcsockconn.[ch].
1296 Sun Jul 8 18:44:53 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1298 * Added SILC_MUTEX_DEFINE to define the mutex on environments
1299 that may or may not compile the mutex support in.
1301 Changed the silc_mutex_alloc interface. It allocates the
1302 mutex now to the sent pointer and returns TRUE or FALSE.
1304 Affected file lib/silcutil/silcmutex.h.
1306 * Wrote the SILC Task Queue interface to support multi-threads.
1307 Affected file lib/silcutil/silctask.[ch].
1309 * Wrote the SILC Scheduler to support multi-threads. Affected
1310 file lib/silcutil/silcschedule.c.
1312 Sun Jul 8 11:16:01 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1314 * Implemented the SILC Mutex API and SILC Thread API for WIN32
1315 in lib/silcutil/win32/.
1317 Sun Jul 8 00:18:15 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1319 * Defined SILC Mutex API and SILC Thread API and implemented
1320 them for Unix. Affected files are
1321 lib/silcutil/silcmutex.h, lib/silcutil/silcthread.h,
1322 lib/silcutil/unix/silcunixmutex.c and
1323 lib/silcutil/unix/silcunixthread.c.
1325 Sat Jul 7 14:40:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1327 * Fixed the silc_server_remove_clients_by_server's channel
1328 key re-generation. The hash table handling was incorrect
1329 and would not work with many channels. Affected file is
1332 * Fixed some memory leaks around the server code.
1334 * Rewrote the silc_server_get_users_on_channel to support IPv6
1335 based Client ID's. Affected file silcd/server.c.
1337 * Defined the SILC_MESSAGE_FLAG_SIGNED to the protocol
1338 specification. However, a separate document must be written
1339 to define the detailed signing procedure and the payload
1340 associated with the flag. Defined the flag to the
1341 lib/silccore/silcchannel.h as well.
1343 Fri Jul 6 18:26:31 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1345 * Changed the dynamic tables to static size tables in the
1346 lib/silccrypt/silchmac.c.
1348 * Removed GCC dependencies from the code. A patch by cras.
1350 Fri Jul 6 09:39:35 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1352 * Do not show the error "Error receiving packet bla bla"
1353 in server if it really was not an error (-2 means that reading
1354 is pending). Affected file silcd/server.c.
1356 Thu Jul 5 21:22:32 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1358 * Fixed a possible crash in silc_server_remove_clients_by_server
1359 in silcd/server.c. Fixed there also some memory leaks.
1361 * Fixed the silc_idlist_replace_client_id. It could replace
1362 wrong key in the hash table. Affected file silcd/idlist.c.
1364 * Do not check whether there are global users on the channel
1365 if the channel->global_users is FALSE. Affected functions
1366 silc_server_remove_from_one_channel and
1367 silc_server_remove_from_channels in silcd/server.c. Also,
1368 do not check if the removed client is local as we can be
1369 sure that global client was not removed from the channel
1370 and checking for global users is not needed.
1372 * The silc_server_remove_clients_by_server now re-generates
1373 the channel keys correctly for those channels that had
1374 clients removed from them. Affected file silcd/server.c.
1376 Tue Jul 3 11:39:20 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1378 * Found the reason of random crashes in the server. We weren't
1379 ignoring the SIGPIPE signal (which can be sent in write())
1380 and it crashed the server. Affected file silcd/silcd.c.
1382 Fri Jun 29 20:05:25 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1384 * Assure that sock->user_data is not NULL in the function
1385 silc_server_packet_send in silcd/packet_send.c.
1387 * Disconnect the remote connection if it could not be added
1388 to any ID lists in the server. The affected file is
1391 * Check in silc_server_packet_send[_real/dest] that the
1392 socket is not disconnecting and ignore the data if it is.
1393 Affected file silcd/packet_send.c.
1395 * Define inline to __inline on native WIN32 compilation.
1396 Affected file includes/silcwin32.h.
1398 * Added some explicit type casts for inline code since MSVC
1399 require them. Affected files lib/silcutil/silcbuffer.h,
1400 lib/trq/silcdlist.h and lib/trq/silclist.h.
1402 * Print warning in log files from now on if the packet
1403 decryption fails. Affected file silcd/server.c.
1405 Thu Jun 28 21:30:39 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1407 * Changed the `say' client operation's interface to accept
1408 new `type' argument to indicate the type of the message sent
1409 by the library. The application may filter the library's
1410 messages according the type. The affected file is the
1411 lib/silcclient/silcapi.h.
1413 * Added two new functions to lib/silcclient/silcapi.h:
1414 silc_client_del_client and silc_client_del_client_by_id.
1415 Affected file lib/silcclient/idlist.c.
1417 * Moved the clientincludes.h from includes/ to silc/ and
1418 serverincludes.h from includes/ to silcd/.
1420 * The modes for the CMODE and CUMODE are now passed as
1421 uint32 for application with COMMAND_REPLY. The affected
1422 file is lib/silcclient/command_reply.c.
1424 Wed Jun 27 22:24:47 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1426 * /WHOIS without arguments shows client's own information.
1427 Affected file lib/silcclient/command.c.
1429 * Changed PING to not accept any arguments. The specs
1430 says that client can ping only the connected server so
1431 requiring an argument is not needed. Affected file is
1432 lib/silcclient/command.c.
1434 Wed Jun 27 00:10:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1436 * Fixed a fatal bug in private message sending and reception
1437 encryption and decryption when using private message keys.
1438 The implementation was incorrect and did not follow the
1439 specification. It causd that some of the message were
1440 lost since it did not use the sending and receiving keys
1441 as the protocol suggests. This has been fixed and will cause
1442 incompatibilities with older clients when sending private
1443 message encrypted with private message keys. Affected files
1444 lib/silcclient/client_prvmsg.c, lib/silcclient/client_keyagr.c
1445 and various other in Irssi SILC Client.
1447 Added `responder' boolean argument to the functions
1448 silc_client_add_private_message_key[_ske] to indicate when
1449 the key is added as responder or initiator of the key
1452 Tue Jun 26 19:23:07 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1454 * Removed the silc_ske_check_version function and created
1455 a SilcSKECheckVersion callback. Added also a function
1456 silc_ske_set_callbacks that is now used to set all SKE
1457 callbacks. The callback functions are not given to
1458 the SKE functions anymore, but this function is used to
1461 * Fixed the WIN32 DLL generation in lib/Makefile.am.pre.
1463 * Added `silc_version' argument to the silc_client_alloc
1464 to define the version of the application for the library.
1465 The library will use the version string to compare it
1466 against the remote host's (usually a server) version
1467 string. Affected file lib/silcclient/silcapi.h
1469 * Added the KE protocol context to Key Agreement context
1470 in client library so that we can abort the SKE if it
1471 is in process when we get timeout. Affected file is
1472 lib/silcclient/client_keyagr.c.
1474 * Do not resolve the client ID forever if it returns in the
1475 first time that such client does not exist. This was done
1476 for example with private message. Affected file is
1477 lib/silcclient/client_prvmsg.c.
1479 Mon Jun 25 21:42:51 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1481 * Do not add regex.h for WIN32. The affected file
1482 includes/silcincludes.h.
1484 * Added WIN32 DLL generation to lib/Makefile.am.pre. It might
1485 not work yet 100%. It generates the DLL's automatically
1486 when compiling with --with-win32 under cygwin.
1488 Sun Jun 24 19:49:23 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1490 * lib/contrib/regex.c is not compiled on WIN32.
1492 * Added silc_net_get_socket_opt function to the
1493 lib/silcutil/silcnet.h.
1495 * Added includes/silcwin32.h for WIN32 specific includes
1498 * Do not use ptime structure or any of the posix process
1499 functions on WIN32 in lib/silccrypt/silrng.c.
1501 * Added silc_gettimeofday to provide generic function
1502 for struct timeval on all platforms. Added the function
1503 to lib/silcutil/silcutil.h.
1505 Sun Jun 24 12:19:52 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1507 * Moved the lib/silccore/silcsockconn.[ch] to the utility
1508 library as they clearly belong there. As a plus side we
1509 can make the actual socket connection routines platform
1512 Added also new generic function silc_socket_read and
1513 silc_socket_write (that used to be silc_packet_[read/write].
1514 The implementation of these are platform specific.
1516 * Added WIN32 specific routines of silc_socket_[read/write]
1517 to lib/silcutil/win32/silcwin32sockconn.c.
1519 Sat Jun 23 16:01:00 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1521 * Added preliminary support for native WIN32 compilation under
1522 cygwin (using the -mno-cygwin option for GCC) to the
1523 ./configure.in.pre. The --with-win32 now prepares the
1524 compilation for native WIN32.
1526 * Rewrote the SILC Scheduler interface in the file
1527 lib/silcutil/silcschedule.h. The scheduler is now context
1528 based and does not have anymore any global static scheduler.
1529 Moved the Unix scheduler to the lib/silcutil/unix/ directory
1530 and created lib/silcutil/win32 directory for WIN32 based
1533 * Added Unix specific network routines to the
1534 lib/silcutil/unix/silcunixnet.c and the old
1535 lib/silcutil/silcnet.c includes now only generic routines.
1537 Added WIN32 specific network routines to the
1538 lib/silcutil/win32/silcwin32net.c.
1540 * Added Unix specific utility functions from the
1541 lib/silcutil/silcutil.c to lib/silcutil/unix/silcunixutil.c.
1543 * Added WIN32 SILC Scheduler to the file
1544 lib/silcutil/win32/silcwin32schedule.c. The code is of course
1547 Fri Jun 22 10:44:14 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
1549 * Do not handle JOIN notify in the server if the target client
1550 is not registered (idata->registered == FALSE). The affected
1551 file is silcd/packet_receive.c.
1553 * Update the nickrec->founder in event_cumode in the Irssi SILC
1554 client. Affected file irssi/src/silc/core/silc-channels.c.
1556 * Fixed the CUMODE_CHANGE notify handling in the server when
1557 server and router are announcing their clients on channels.
1558 Now the mode changes are saved and notified correctly. The
1559 affected file is /silcd/packet_receive.c.
1561 * Fixed silc_idlit_replace_[server/client/channel]_id functions.
1562 They really did not replace the cache entry in the ID Cache.
1563 Now they do that. Affected file silcd/idlist.c.
1565 * Fixed the KICK notify handling in the Irssi SILC client to
1566 update the channel records so that the kicked client does not
1567 appear to be on the channel. The affected file is
1568 irssi/src/silc/core/silc-channels.c.
1570 * Always update the conn->current_channel when executing command
1571 on a channel. Affected file irssi/src/silc/core/silc-servers.c.
1573 * Fixed the KILL notify handling in Irssi SILC client to remove
1574 the killed client on all channels.
1576 Thu Jun 21 17:10:08 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1578 * Fixed the silc_parse_command_line to remove extra spaces
1579 from the start and end of the arguments. Affected file is
1580 lib/silcutil/silcutil.c.
1582 * Cancel and free any active protocol in the function
1583 silc_server_close_connection. Affected file silcd/server.c.
1585 * Cancel and free any active protocol in the function
1586 silc_client_close_connction. Affected file is
1587 lib/silcclient/client.c.
1589 * Do not execute the KILL command for clients that are in
1590 history (ie. they are not in the network). Affected file is
1593 * Fixed KILL notify handling, client does not crash anymore.
1594 Affected file irssi/src/silc/core/silc-channels.c.
1596 * Reduced the default packet buffer size from 2048 to 1024 in
1597 lib/silccore/silcpacket.c.
1599 * Added SILC_SKE_STATUS_FREED SKE status type and a reference
1600 counter to the SKE context that is incresed when the SKE library
1601 performs async operation outside the library. If the outside
1602 process frees the SKE context and FREED status will be set
1603 and the library will detect after the sync operation that the
1604 libary is freed. The affected files are
1605 lib/silcske/silcske[_status].[ch].
1607 * Resolve the client entry information in the function
1608 silc_client_channel_message to assure that NULL pointer is not
1609 passed as client entry to the application. */
1611 * Fixed the task timeout calculation to assure that there is
1612 never negative timeouts. The affected file is
1613 lib/silcutil/silcschedule.c.
1615 * Fixed the channel user mode notification sending in server.
1616 It was sent point-to-point to the router (or to server by router)
1617 but it needs to be destined to a channel. The routines now
1618 supports sending the channel user mode notifys to the channels
1619 when announcing clients and channels. Affected files are
1620 silcd/server.c and silcd/packet_receive.c.
1622 * Fixed the CHANNEL_CHANGE notify handling in the client libary.
1623 It did not actually replace the old channel entry in the cache.
1624 Affected file lib/silcclient/client_notify.c.
1626 Tue Jun 19 22:10:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1628 * Fixed a possible crash in silc_packet_send_prepare. It now
1629 assures always that there is enough space in the buffer and
1630 at the tail area of the buffer (for MAC).
1632 Fixed the inbound buffer reallocation in silc_packet_read.
1633 It was old code and did not handle the reallocation correctly.
1636 The affected file is lib/silccore/silcpacket.c.
1638 * Fixed buffer overflow in silc_parse_nickname in the file
1639 lib/silcutil/silcutil.c.
1641 Tue Jun 19 13:40:09 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1643 * make install generates new server keys only if there is not
1646 Mon Jun 18 18:49:07 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1648 * Set SILC_MESSAGE_FLAG_NOREPLY when sending the away message.
1649 Added check that if the NOREPLY is set then we will not send
1650 the away message. This avoids infinite loop of away messages
1651 if both clients are away. The affected file is
1652 lib/silcclient/client_prvmsg.c.
1654 * Fixed client crash if /NICK was given without arguments.
1655 Affected file lib/silcclient/command.c.
1657 * Server does not send the invite list in INVITE command back
1658 to the client if the list was not altered. Added this notion
1659 to the protocol spec as well. Affected file silcd/command.c.
1661 Fixed possible crash in INVITE command by checking the
1662 value of silc_server_get_client_route command.
1664 * Fixed the INVITE notify type handling. The arguments are now
1665 taken in correct order and client does not crash. The affected
1666 file is irssi/src/silc/core/silc-channels.c.
1668 Removed the "Inviting xxx to channel" message from the
1669 client library away and let the application handle it.
1670 Affected file lib/silcclient/command.c. Added that message
1671 to Irssi SILC client's message formats.
1673 * Fixed CMODE command crash in client. It now checks the
1674 amount of arguments correctly and does not crash. The affected
1675 file is lib/silcclient/command.c.
1677 * Do not create new channel automatically in silc_channels_join
1678 but check whether the channel by that name already exists.
1679 Affected file irssi/silc/core/silc-channels.c.
1681 * Do not send the SERVER_SIGNOFF to router if the disconnected
1682 entity was the router. Affected file silcd/server.c.
1684 * Added the handling of the SERVER_SIGNOFF notify to the Irssi
1685 SILC client as it was missing from there.
1687 Added the handling of the KICK notify to the Irssi SILC client
1688 as it was missing. Added "you have been kicked" message to
1689 Irssi SILC client's message modules formats.
1691 Added the handing of the KILL notify to the Irssi SILC client
1692 as it was missing. Added the kill message module formats
1695 The affected file is irssi/src/silc/core/silc-channels.c.
1697 * The router did not save the channel mode the server announced.
1698 Affected file silcd/packet_receive.c.
1700 * Fixed a possible crash in INFO command in server. If the
1701 server did not provide the server info it crashed. Affected
1702 file silcd/command.c.
1704 Sun Jun 17 15:26:05 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1706 * Fixed the GETKEY command in the server to check also the
1707 global list. Otherwise the GETKEY would not work correctly
1708 in normal SILC server. Affected file silcd/command.c.
1710 Sat Jun 16 18:00:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1712 * Fixed GETKEY crash, it crashed if the command did not succseed.
1714 Tue Jun 12 21:36:18 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1716 * Redefined the SILC MP API in lib/silcmath/silcmp.h. The API
1717 is now real and not just an macro interface to GMP.
1719 Removed the entire GMP from the source tree and imported new
1720 NSS MPI library instead. Reason for removing GMP is that it is
1721 extremely large and compiles extremely slow. The NSS MPI
1722 is only a few files and compiles in less than 10 seconds.
1723 The speed is also about the same as GMP. The MPI is imported
1724 to lib/silcmath/mpi.
1726 If the system has GMP installed we will still use the GMP.
1727 If it is not then the NSS MPI will be compiled.
1729 Mon Jun 11 18:07:24 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1731 * Merged a long nickname (127 characters long) crash bugfix from
1732 Irssi CVS tree. Affected file irssi/src/core/misc.c.
1734 * Merged a freed memory reference bugfix from Irssi CVS tree.
1735 Affected file irssi/src/core/commands.c.
1737 Sun Jun 10 16:08:35 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1739 * Added the server's public key sving and verification to the
1740 server when performing the SKE. This was missing and the
1741 remote server's (or router's) public key was accepted without
1742 checking whether we have it previously or trust it at all.
1743 Affected file silcd/protocol.c.
1745 Sat Jun 9 20:17:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1747 * Check in the silc_server_timeout_remote if protocol is active
1748 and make sure that the protocol's final callback is called so
1749 that all memory if freed. Affected file silcd/server.c.
1751 Sat Jun 9 12:51:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1753 * silc_server_whois_send_reply crashed the server if the nickname
1754 was 127 characters long. Affected file silcd/command.c.
1756 Thu Jun 7 16:29:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1758 * Added sanity check to the silc_server_new_client. If the hostname
1759 is provided inside username then check that the provided hostname
1760 really is the same as the resolved one. If the hostname was not
1761 resolved then check it from the public key. Affected file is
1762 silcd/packet_receive.c.
1764 * Fixed a fatal bug in Irssi SILC client. Do not send QUIT command
1765 if the server disconnected us and the connection is not valid
1766 anymore. Affected file irssi/src/silc/core/silc-channels.c.
1768 * Moved the silc_client_[chmode|chumode|chumode_char] away from
1769 the library to the lib/silcutil/silcutil.[ch].
1771 Thu Jun 7 08:57:16 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1773 * Close log file after open. Affected file
1774 lib/silcutil/silclog.c.
1776 * Check whether sock == NULL in silc_client_send_packet and return
1777 if it is. Affected file lib/silcclient/silcclient.c.
1779 * Check rec->entry == NULL in the Irssi SILC Client before
1780 sending the channel message. Affecte file is
1781 irssi/src/silc/core/silc-servers.c.
1783 Tue Jun 5 08:08:21 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1785 * Merged a splitted window bugfix from Irssi CVS tree. The
1786 affected file is irssi/src/fe-text/textbuffer-view.c.
1788 * Fixed the ME, ACTION and NOTICE printing in Irssi Client.
1789 It did not print nickname.
1791 * Improved the distributions system a bit.
1793 Mon Jun 4 17:57:16 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1795 * Merged /WINDOW bugfix from irssi CVS tree. Affected file is
1796 irssi/src/fe-text/gui-window.c.
1798 * Fixed a fatal bug in Irssi SILC client. Crashed if sent message
1799 to in-active server. The affected file is
1800 irssi/src/silc/core/client_ops.c.
1802 * Resolve the client in USERS command reply if the entry does
1803 not have username resolved. The affected file is
1804 lib/silcclient/command_reply.c. Also, changed the IDENTIFY
1805 command to WHOIS command to really resolve stuff. The USERS
1806 is not used any more in any critical section so WHOIS can
1807 be used even though it might be slower than IDENTIFY.
1809 * Changed the lib/silcutil/silchashtable.h header to ROBODoc
1812 Sun Jun 3 14:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1814 * Changed the protocol API a bit more consistent in the
1815 lib/silccore/silcprotocol.[ch].
1817 * Changed the following headers to ROBODoc format:
1819 lib/silccore/silcpayload.h
1820 lib/silccore/silcprotocol.h
1821 lib/silccore/silcsockconn.h
1823 All core library headers are now formatted.
1825 Sat Jun 2 10:45:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1827 * Fixed a bug in Irssi SILC client; do not show that you are
1828 server/router operator if you really are not. Affected file is
1829 irssi/src/silc/core/client_ops.c.
1831 * Renamed silc_command_free_payload to silc_command_payload_free.
1832 Affected file lib/silccore/silccommand.h
1834 * Added silcmath.h to include the prototoypes of various routines
1835 in the lib/silcmath. Removed the old modinv.h, mpbin.h and
1838 * Changed the following headers to ROBODoc format:
1840 lib/silccore/silcchannel.h
1841 lib/silccore/silccommand.h
1842 lib/silccore/silcid.h
1843 lib/silccore/silcidcache.h
1844 lib/silccore/silcmode.h
1845 lib/silccore/silcnotify.h
1846 lib/silccore/silcpacket.h
1847 lib/silcmath/silcmath.h
1849 Fri Jun 1 22:19:37 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1851 * Added checking to the server code not to start the server if
1852 ciphers and stuff are not configured properly. Affected files
1853 silcd/serverconfig.[h] and silcd/server.c.
1855 * Changed the layout of the header files of the public interfaces
1856 in the SILC libraries. The new layout supports ROBODoc
1857 documentation tool (and some others) so that it is easy to create
1858 a library reference manual. All the other headers and source
1859 code must still follow the CodingStyle document. Also source
1860 code must not include these ROBODoc stuffs, only the headers.
1861 Furthermore, all public interface headers must now be named
1862 by using `silc' prefix, example: silcapi.h, silccipher.h.
1863 Some files were renamed due to this. All the other headers
1864 must not be used as public interfaces. I will update the
1865 CodingStyle document later. Changed following headers, so far:
1867 lib/silcclient/silcapi.h
1868 lib/silccore/silcauth.h
1869 lib/silccore/silcprivate.h
1870 lib/silccrypt/silcdh.h
1872 Fri Jun 1 10:28:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1876 * Removed silc_client_packet_send_flush from the client library
1877 as it is not needed. Affected file lib/silcclient/client.[ch].
1879 * Added printing of message of unresolved authentication method
1880 to the Irssi SILC client. Added it to the module formats.
1881 Removed the same message from the client library.
1883 Thu May 31 13:57:33 CEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1885 * Added new distribution feature, DISTLABEL. Every distribution
1886 can define own preprocessor label that can be used in the
1887 source code. For example: #ifdef SILC_DIST_CLIENT. Affected
1888 file distributions, acconfig.h.pre and prepare.
1890 Tue May 29 22:16:40 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1892 * Added Makefile.defines_int to include the actual definitions
1893 for Makefile.defines.in. Tested the new distribution system,
1894 created distributions and tested installation.
1896 * Added AWAY message printing to the Irssi SILC client. Added
1897 the messages to the irssi/src/fe-common/silc/module-formats.[ch].
1899 * Added SCONNECT command to call the SILC's CONNECT command.
1900 Cannot use CONNECT directly since Irssi uses that internally.
1901 Affected file irssi/src/silc/core/silc-servers.c.
1903 Added ACTION local command. It is same as ME command but takes
1904 the channel as mandatory argument.
1906 Rewrote some of the Irssi's help files to suite for SILC
1909 Mon May 28 19:05:22 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1911 * Added Makefile.defines[.in] that should for now on be included
1912 in all Makefile.am file in the source tree. That file includes
1913 all common compilation definitions for SILC source tree.
1915 Mon May 28 10:30:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1917 * Minor changes to the ./prepare script to change the package
1918 name according the distribution name to the configure.in.
1920 Sun May 27 22:24:57 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1922 * Created new distribution system. Added file `distributions'
1923 that defines all the distributions that can be created out of
1924 the SILC source tree. The ./prepare script now reads that
1925 file to determine how to prepare the distributions. The
1926 first argument to the ./prepare is the name of the distribution
1927 and second is the version of the distribution. If given
1928 without arguments it creates the default (toolkit) distribution
1929 with the default version (defined in ./prepare).
1931 All Makefile.am files that are subject to the distributions
1932 are now named as Makefile.am.pre. These are ./Makefile.am
1933 and lib/Makefile.am. Others may be changed later.
1935 Sun May 27 15:57:17 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1937 * Added invite list, ban list, some key management and connection
1938 error message printing to module formats in the Irssi SILC client.
1940 * Added new silc_client_set_away_message to set the away message
1941 that is back to the person who sent private message. The
1942 affected file lib/silcclient/silcapi.h and the
1943 lib/silcclient/client_prvmsg.c.
1945 Sun May 27 12:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1947 * Fixed the private message sending in the Irssi SILC client,
1948 added local command KEY to the Irssi SILC client.
1950 Added key management and key agreement message formats to the
1951 irssi/src/fe-common/silc/module-formats.[ch].
1953 Added USERS (alias WHO) printing, server/router operator
1954 indication and LIST command printing to the module formats.
1956 Sat May 26 17:43:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1958 * Fixed channel joining notify handling, cumode notify handling
1959 from Irssi SILC client.
1961 * Added SILC specific module-formats to the Irssi SILC client so
1962 that SILC specific message hilighting, colors etc is possible.
1963 Affected file irssi/src/fe-common/silc/module-formats.[ch].
1965 Added channel mode, channel user mode, actions, notices,
1966 whois and whowas printing to the the module-formats.c.
1968 * Fixed a bug in channel deletion in the server. The channel
1969 is not left to the cache even if the channel founder auth mode
1970 is set when there are no users anymore on the channel. Affected
1971 file silcd/server.c.
1973 * The silc_net_localhost now resolves the entire hostname including
1974 the domain name. Affected file lib/silcutil/silcnet.c.
1976 Sat May 26 12:13:37 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1978 * Changed the ask_passphrase client operation to be ascynchronous.
1979 It has now a completion callback and a context that the
1980 application must call after it has got the passphrase from
1981 the user. Affected files lib/silcclient/silcapi.h,
1982 lib/silcclient/protocol.c, lib/silcclient/command.c and
1985 Added SilcAskPassphrase callback that the application calls
1986 to deliver the passphrase to the library.
1988 * Changed the SKE protocol's SilcSKEVerifyCb to be asynchronous.
1989 The public key verification and especially a certificate
1990 verification is asynchronous procedure.
1992 Added new SILC_SKE_STATUS_PENDING status to indicate the
1993 request is pending and a callback will be called to finalize
1996 Added also SILC_SKE_STATUS_PUBLIC_KEY_NOT_PROVIDED status to
1997 indicate that remote end did not send its public key (or
1998 certificate), even though we require it. Added check for this
1999 condition in the SKE. This was a security bug, now fixed.
2001 Defined new SilcSKEVerifyCbCompletion callback that is called
2002 when the verification process is completed.
2004 The affected files lib/silcske/silcske_status.h and
2005 lib/silcske/silcske.[ch].
2007 * Changed the verify_public_key client operation to be async
2008 as well. Defined SilcVerifyPublicKey callback that is used to
2009 indicate the success of the public key verification process.
2011 Changed the server and client to use the new async client
2014 * Changed the Irssi SILC client's internal scheduler to be called
2015 twice as many times as it used to be. As a result the client
2016 should be a bit faster now. Affected file is
2017 irssi/src/silc/core/silc-core.c.
2019 * Added support to Irssi SILC client of asynchronous public key
2020 verification and passphrase inquiry. Affected file is
2021 irssi/src/silc/core/silc-core.c.
2023 Fri May 25 14:38:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2025 * Do not say "You have left channel %s" in client library.
2026 Moved it to the application. Affected files are
2027 lib/silcclient/command.c and silc/client_ops.c.
2029 * Fixed silc_client_get_clients. Command context was not
2030 duplicated and was freed memory in the callback. Affected
2031 file lib/silcclient/idlist.c.
2033 * Do not say "you are now talking..." on JOIN command in the
2034 client library. The appliation must handle it.
2036 * Do not say ".. changed topic to" in command reply in the
2037 client libary. The application must handle it.
2039 * Fixed TOPIC command sending in the client library.
2041 * Fixed a memory leak in silc_client_command_free in the file
2042 lib/silcclient/command.c.
2044 Thu May 24 19:08:55 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2046 * Imported a modified version of Irssi client to the source tree.
2047 The Irssi will be used to create a new client called
2048 Irssi SILC. Imported to irssi/.
2050 Added silc_core_init_finish function to the Irssi. Affected
2051 file irssi/configure.in.
2053 A lot changes in the Makefile.ams around the irssi tree.
2055 Tue May 22 22:23:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2057 * Do not rehash if the new size is same as the old size of the
2058 hash table, in the silc_hash_table_rehash*. The affected file
2059 lib/silcutil/silchashtable.c.
2061 * Replaced hash_table_del_by_context calls from the server
2062 (when channel->user_list and client->channels) to the
2063 hash_table_del as it is sufficient and faster.
2065 Tue May 22 17:27:16 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2067 * Added silc_hash_table_list, silc_hash_table_get and the
2068 SilcHashTableList structure to provide an alternative way to
2069 traverse the hash table. The affected files are
2070 lib/silcutil/silchashtable.[ch].
2072 * Changed the server's idlist routines to use the hash table
2073 routines to optimize the code.
2075 Mon May 21 21:46:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2077 * Replaced the client entry's `channel' list and channel entry's
2078 `user_list' list to hash tables for optimized lookup. Changed
2079 the code to use the hash table interface around the code.
2080 Affected file lib/silcd/idlist.[ch].
2082 * Added `auto_rehash' boolean argument to the function
2083 silc_hash_table_alloc to indicate whether the hash table should
2084 auto-rehash when it thinks is appropriate time. It will
2085 increase the hash table size if the there is twice as much
2086 entries in the table than the size of the table, and will
2087 decrease the size if there are twice as less entries than
2088 the size of the table.
2090 Mon May 21 09:51:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2092 * Fixed silc_xxx_get_supported to not crash at some circumstances.
2094 Sun May 20 13:45:58 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2096 * silc_idcache_purge_by_context deletes the entry now by context
2097 as it is supposed to do. Affected file lib/silccore/idcache.c.
2099 * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
2100 client is not anymore valid (WHOWAS givens the info) and not
2101 the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
2103 Sat May 19 16:30:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2105 * Removed the `data' and `data_len' arguments from the ID Cache
2106 interfaces and added `name' argument. ID Cache does not handle
2107 anymore the binary data only a names associated with given ID.
2109 * When hashing a Client ID with silc_hash_id the entire ID is
2110 not hashed anymore, instead only the hash of the Client ID is
2111 hashed. This way we can access the Client ID from the cache
2112 with Client ID but with the hash of the ID (which is a hash of
2113 the nickname) as well without any difference in performance.
2115 Added also silc_idcache_find_by_id_one_ext to do one on one
2116 searching when we have the actual ID. Added also function
2117 silc_hash_client_id_compare. The affected files are
2118 lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
2120 * When hashing the name associated with a ID it is always done
2121 in lowercase. This way we can access the cache without worrying
2122 about case-sensitivity, even though, for example nicknames are
2125 * Fixed a bug in server with channel message sending. It put
2126 wrong ID type as destination ID. The affected file
2127 silcd/packet_send.c.
2129 * silc_idcache_del_by_context now deletes from all hash tables
2130 by context. Affected file lib/silccore/idcache.c.
2132 Fri May 18 17:42:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2134 * Changed the client library to use the new ID Cache interface.
2135 Changes around the source tree.
2137 * Added silc_hash_table_rehash_ext to rehash with specific
2138 hash function. Affected file lib/silcutil/silchashtable.[ch].
2140 * Added silc_hash_string_compare to compare two strings in the
2141 hash table. Affected file lib/silcutil/silcutil.[ch].
2143 Fri May 18 11:18:45 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2145 * Added new function silc_idcache_del_by_context into the
2146 lib/silccore/idcache.[ch].
2148 * Changed the server's ID list routines to use the new ID Cache
2149 interface. Changes around the source tree.
2151 Fri May 18 08:35:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2153 * Added silc_hash_table_del[_by_context]_ext functions in to the
2154 lib/silcutil/silchashtable.[ch].
2156 Removed silc_hash_table_find_all* routines and added new
2157 silc_hash_table_find_foreach to replace them.
2159 Added silc_hash_table_replace_ext function as extended
2160 replacing function. Separated the simple hash table interface
2161 from the extended hash table interface in the file
2162 lib/silcutil/silchashtable.h.
2164 * Fixed minor bugs and changed it to use some of the new
2165 hash table functions in lib/silccore/idcache.c
2167 Thu May 17 18:15:12 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2169 * Added new function silc_hash_table_find_all to return all keys
2170 in the hash table by the specified key. As the hash table is
2171 collision resistant it also makes it possible to have several
2172 duplicate keys in the hash table. This function may be used to
2173 find all of the keys from the hash.
2175 Added user_context arguments to the SilcHashFunction,
2176 SilcHashCompare and SilcHashDestructor to deliver user specified
2179 Added new fuctions silc_hash_table_find[_all]_ext to do
2180 extended lookup with specified hash and compare functions and
2181 specified user contexts.
2183 Added new function silc_hash_table_add_ext to add the key
2184 with specified hash function and user context.
2186 Added new function silc_hash_table_foreach to traverse all
2187 entrys in the hash table. Added SilcHashForeach callback
2190 Added new function silc_hash_table_del_by_context to delete
2191 the entry only if the context associated with the key matches.
2193 Affected files are lib/silcutil/silchashtable.[ch].
2195 * Removed silc_hash_[server/client/channel]_id and added just
2196 silc_hash_id to the lib/silcutil/silcutil.[ch]. Added also
2197 silc_hash_id_compare to compare two ID's using as the hash table
2198 comparison function. Added also silc_hash_data to hash
2199 binary data and silc_hash_data_compare to compare it.
2201 * Removed silc_idlist_find_client_by_hash as it is not needed
2202 anymore. Affected file silcd/idlist.[ch].
2204 * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
2205 to use internally the SilcHashTable. The new ID Cache is a lot
2206 faster than the old one. Some of the ID Cache interface was also
2207 rewritten and obsolete and stupid functions were removed.
2209 Wed May 16 23:03:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2211 * Added entry_count field to the SilcHashTable to keep the number
2212 of the entries in the table. Implemented the function
2213 silc_hash_table_rehash. Added new function
2214 silc_hash_table_count. Affected file lib/silcutil/silchashtable.c.
2216 Fixed a minor bug in silc_hash_table_free.
2218 * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
2219 silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
2220 into the lib/silcutil/silcutil.[ch].
2222 Wed May 16 20:02:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2224 * Implemented a collision resistant hash table into the
2225 lib/silcutil/silchashtable[ch]. See the header and the source
2226 for the SilcHashTable API.
2228 Tue May 15 22:05:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2230 * Merged dotconf version 1.0.2 into lib/dotconf.
2232 Sun May 13 19:32:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2234 * Do not compile anything in lib/silcsim/* if the SIM support
2235 is not enabled. The tree should now compile without problems
2238 Thu May 10 22:49:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2240 * Compiled the SILC under cygwin. Compiled and tested briefly
2241 without problems. More tests needed. The SIMs didn't compile
2244 * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
2246 * Fixed possible crash in silc_get_username in the
2247 lib/silcutil/silcutil.c.
2249 Tue May 8 09:04:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2251 * Fixed a va_arg in silc/client_ops.c.
2253 * Oops, RC5 routines were named AES and caused some problems
2254 when not using SIM's. Affected file lib/silccrypt/rc5.c.
2256 Sun May 6 13:59:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2258 * Added new SilcIDIP structure into the lib/silccore/id.h and
2259 replaced the old `ip' fields from all SILC ID's to that type.
2260 This is a step towards IPv6 support.
2262 The silc_id_get_len takes now the ID as an extra argument.
2263 The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
2264 both IPv4 and IPv6 based ID's.
2266 The affected files are lib/silccore/id.[ch] and other files
2267 around the tree using these routines.
2269 * Removed the ID length arguments in server from various
2270 silc_server_send_notify_* routines -> they are not needed
2273 Sat May 5 13:56:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2275 * Fixed memory leak in silc_encode_pem_file in the file
2276 lib/silcutil/silcutil.c.
2278 Thu May 3 21:23:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2280 * Check minor version as well in the SKE. Affected files are
2281 silcd/protocol.c and lib/silcclient/protocol.c.
2283 * Added --identifier option to the server so that an identifier
2284 can be when creating the public key for the server. Affected
2285 file is silcd/silcd.c.
2287 * Fixed minor decoding bug in silc_pkcs_decode_identifier in
2288 lib/silccrypt/silcpkcs.c.
2290 Wed May 2 20:50:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2292 * Register default ciphers and stuff when using -C option with
2293 the server. Affected file sildc/silcd.c.
2295 * Put back the servers public key filename format, it is better
2296 than the new one. For now, the client keys are saved with the
2297 new filename format. The affected file silc/client_ops.c.
2299 * Implemented the Cipher API for the rest of the ciphers that
2300 did not implement it or implemented it the wrong way.
2302 Wed May 2 13:31:26 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2304 * Register default ciphers and stuff when using the -S option
2305 in the client. Affected file silc/silc.c. Same also when
2306 creating new key pair with -C option.
2308 Tue May 1 14:18:13 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2310 * Fixed the silc_verify_public_key client operation function to
2311 save the public keys differently. The fingerprint is now
2312 used as filename and not the hostname. This way also the
2313 client keys are saved uniquely and not with hostnames. The
2314 affected file is silc/client_ops.c.
2316 * Trimmed the silc_hash_fingerprint function to remove extra
2317 whitespaces from the end of the fingerprint. The affected
2318 file is lib/silccrypt/silchash.c.
2322 * Added silc_cipher_register_default function to register all
2323 default ciphers. It can be used when configuration files
2324 does not exist and the application does not want any specific
2325 ciphers in any specific order.
2327 The SilcDList is now used as silc_cipher_list dynamically
2328 allocated cipher list. Removed the static list all together
2329 and now all ciphers must be allocated to the dynamic list.
2330 The silc_cipher_alloc routine was changed to check only the
2333 All silc_cipher_* routines that used to return int returns
2336 The affected files lib/silccrypt/silccrypt.[ch].
2338 * The same thing was done to silc_hash_* as for silc_cipher_*
2339 routines. Affected files lib/silccrypt/silchash.[ch].
2341 * The same thing was done to silc_pkcs_* as for silc_cipher_*
2342 routines. Affected files lib/silccrypt/silcpkcs.[ch].
2343 Added also silc_pkcs_[un]register[_default] functions.
2344 Removed the data_context from the PKCS API.
2346 * Added silc_hmac_register_default function to register default
2347 hmacs. Affected files lib/silccrypt/silchmac.[ch]. Added also
2348 SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
2349 to unregister all hmacs at once.
2351 * Register the default ciphers, hash functions, PKCSs and HMACs
2352 if client's configuration file does not exist. The affected
2355 * The client did not load the hash functions from the SIM
2356 modules at all. Added support for this. Affected file is
2357 silc/clientconfig.c.
2359 * When decoding public key with silc_pkcs_public_key_decode, check
2360 the supported algorithm only if PKCS are registered. Affected
2361 file lib/silccrypt/silcpkcs.c. The same was done with the
2362 silc_pkcs_private_key_decode.
2364 * Fixed the SILC List routines to keep the list always in order.
2365 It used to change the list's order when traversing the list but
2366 not it preserves the order. Affected file lib/trq/silclist.h.
2368 Mon Apr 30 17:29:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2370 * Added the client library to use the SilcSocketConnection's
2371 reference counter (by silc_socket_dup) to prevent the bug that
2372 the socket object may be freed underneath async operation.
2374 * The name resolv library checking fixes in the configure.in.pre.
2377 * Created new version of the protocol drafts for future
2378 development. The -03 drafts are the ones that will be changed
2379 in the trunk now and the -02 will remain as they are.
2381 * Send list of CUMODE notifys to the router when announcing
2382 the channel users to the router. Affected file silcd/server.c.
2383 If the router receiving channel founder CUMODE for a channel
2384 that already has channel founder it will send CUMODE notify
2385 to the sender to remove the channel founder rights from the
2386 announced client. Affected file silcd/packet_receive.c.
2388 * The CUMODE notify may now use Server ID as well as the entity
2389 who changes the mode. Updated protocool specs.
2391 * Updated INSTALL and README files.
2393 Sun Apr 29 23:17:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2395 * New web pages in the http://silc.pspt.fi. The pages was
2400 Sun Apr 29 13:33:41 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2402 * Implemented the [DenyConnectin] config section in the server.
2403 Added silc_server_config_denied_conn to check whether incoming
2404 connection is denied. Affected file silcd/serverconfig.[ch].
2406 * Do not check the ports when checking the incoming configuration
2407 data if the port is 0, meaning any. Affected file is
2408 silcd/serverconfig.c.
2410 Fri Apr 20 18:58:43 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2412 * Fixed buffer overflow in silc_string_compare in the file
2413 lib/silcutil/silcutil.c.
2415 * Fixed double free in silc_server_command_leave in the file
2418 Fri Apr 20 14:00:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2420 * Fixed the version checking in the server. Affected file is
2423 Thu Apr 19 19:52:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2425 * Fixed the configuration data fetching when accepting new
2426 connections in the server. Affected file silcd/server.c.
2428 Thu Apr 19 11:40:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2430 * Added `sender_entry' argument to the function
2431 silc_server_packet_relay_to_channel so that we can check
2432 whether some destination actually belongs to the same route
2433 the sender belongs (ie, we must not resend the packet to the
2434 sender). Affected file silcd/packet_send.[ch].
2436 * Added `servername' field to the SilcClientEntry in the server
2437 to hold the name of the server where client is from. Affected
2438 file is silcd/idlist.h.
2440 Wed Apr 18 22:19:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2442 * Moved the channel message encrypting in the router betwen
2443 router connections from silc_server_channel_message to the
2444 silc_server_packet_relay_to_channel since we want to check
2445 whether we have anybody channel before encrypting anything.
2446 Affected files silcd/packet_[receive/send].c.
2448 Tue Apr 17 21:18:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2450 * Fixed the [AdminConnection] server config section to support
2451 multiple entries. Affected file silcd/serverconfig.c.
2453 * Added support into the server to check the validity of the
2454 incoming connection before executing any KE or authentication
2457 * The connection configuration is now saved to the KE and
2458 connection auth protocol contexts and not fetched anymore in
2459 the protocol. Affected files silcd/server.c, silcd/protocol.[ch].
2461 * The local hosts listenning address and port is also resolved
2462 now when starting the server. We want to have the socket object
2463 to include the real address and port for the listener. Added
2464 new function silc_net_check_local_by_sock into the files
2465 lib/silcutil/silcnet.[ch].
2467 * Fixed a broadcast bug in server -> do not broadcast if we
2470 * Fixed a routing bug. Do not route broadcast packets ever.
2471 Broadcast packets must be processed always and not routed since
2472 they may be destined to some other host than yourself and thus
2473 would get routed without no good reason. Affected file is
2476 * Added function silc_server_config_is_primary_route to check
2477 whether primary router connection has been configured (a router
2478 configuration that we are initiating). If there is not, we
2479 will assume that there is only two routers in the SILC network
2480 and we will use the incoming router connection as our primary
2481 route. Affected files silcd/serverconfig.[ch], silcd/server.c.
2483 * Changed the order of the broadcasting. Broadcast _after_ the
2484 packet has been processed not before. Affected file is
2487 * Fixed a [ClientConnection] parsing bug. The port was never
2488 parsed correctly thus resulting to port 0. Affected file
2489 silcd/serverconfig.c.
2491 * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
2492 argument and did not set the broadcast packet flag. Affected
2493 file silcd/packet_send.c. Fixed same bug in the function
2494 silc_server_send_notify as well.
2496 * If we receive NEW_ID packet for our own ID in the server, ignore
2499 Mon Apr 16 12:10:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2503 * Removed the nickname from the Private Message Payload.
2504 Updated the code and the protocol specs.
2506 * Updated protocol specs for submitting to the IETF.
2508 * Tweaked the Random Number Generator a bit. Affected file
2509 lib/silccrypt/silcrng.c. Exported a new function
2510 silc_rng_[global]_add_noise which can be used to add more
2513 Sat Apr 14 16:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2515 * Do not parse packets with different timeout when protocol
2516 is active -> may cause problem with rekey. Affected file
2519 * When server receives signoff notify it must not create
2520 new channel key if the client is on any channels since the
2521 sender of the signoff notify will create it.
2523 Fri Apr 13 17:12:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2525 * Added printing of error messages during SKE protocol from the
2526 failure packet sent by server during SKE. Affected file
2529 * Removed the client's failure_callback handling with timeout
2530 and handle it immediately when received.
2532 * The SKE library returned wrong type in SUCCESS and FAILURE
2533 packets. They must be 32 bit MSB not 16 bit MSB.
2535 Fri Apr 13 00:09:08 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2537 * Ok, rewrote the logic of the re-key and now it seems to work.
2538 I tested it on high traffic with frequent re-keys without
2539 problems. Added hmac_receive (and renamed hmac to hmac_send)
2540 in SilcClientConnection in lib/silcclient/client.h and
2541 in SilcIDListData in silcd/idlist.h. Also, removed the
2542 SilcPacketParserContext's cipher and hmac fields as they are
2543 not needed anymore and actually caused some problems when
2544 the ciphers and hmac's changed underneath the packet parser.
2546 Thu Apr 12 14:42:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2548 * If re-key protocol is active then process the incoming packets
2549 synchronously since we must assure that icoming packets encrypted
2550 with the old key is processed before the new keys is set to
2551 use. This is true other packets than for REKEY packets.
2552 Affected file silcd/server.c. The same was done to client library
2553 as well, affected file lib/silcclient/client.c.
2555 Thu Apr 12 12:01:52 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2557 * Fixed bug in client and server to accept the force send if
2558 the packet is send from silc_[server/client]_packet_process
2559 function. Otherwise the packets are never delivered, oops.
2561 Wed Apr 11 22:10:15 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2563 * Disable force sending of packets when REKEY protocol is active.
2564 We must assure that no packet is sent directly when rekey is
2565 performed. All packets must be sent through packet queue.
2566 Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
2567 SILC_CLIENT_IS_REKEY to lib/silcclient/client.h. Affected
2568 function is silc_[server/client]_packet_send_real to check
2571 * Replaced the SIM paths from example config files to
2572 /usr/local/modules. Also, make install creates now
2573 /usr/local/silc/logs directory to hold all the SILC server
2576 Wed Apr 11 16:59:59 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2578 * Made the configure.in.pre work on Solaris. Patch by salo.
2580 * Made all ciphers compatible with non-x86 machines. Defined
2581 CBC mode macros into lib/silccrypt/ciphers_def.h.
2583 Tue Apr 10 20:32:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2585 * Fixed the make install.
2587 Tue Apr 10 16:20:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2589 * When MAC computation fails the silc_packet_decrypt returned 0
2590 even though it was supposed to return -1. Fixed this. The
2591 affected file is lib/silccore/silcpacket.c.
2593 * Do not replace the config files in /etc/silc (in make install)
2594 if they already exist. Affected file ./Makefile.am.
2596 * Do not send re-key packets immediately but through packet queue.
2597 Affected file silcd/protocol.c and lib/silcclient/protocol.c.
2599 * Changed silc_net_check_host_by_sock to return FALSE if the
2600 IP/DNS could not be resolved. Though, it returns the IP address
2601 now even if it could not resolve it (but returns also FALSE).
2602 Affected file lib/silcutil/silcnet.[ch].
2604 Mon Apr 9 21:54:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2606 * Added silc_pkcs_decode_identifier to decode the public key's
2607 identifier. Affected file lib/silccrypt/silpkcs.[ch].
2608 Added also silc_pkcs_free_identifier. Added also new context
2609 SilcPublicKeyIdentifier.
2611 * Added -S option to the silc client. It is used to dump the
2612 contents of the specified public key file.
2614 * Changed the PKCS api to return the public key length when
2615 setting the public key.
2617 * Fixed a fatal bug in the public and private key file loading.
2618 Affected file lib/silccrypt/silcpkcs.c.
2620 * Execute the packet parsing for client with zero (0) timeout
2621 if the protocol is active. Affected file silcd/server.c.
2623 Sun Apr 8 19:30:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2625 * Made the key generation options to the silcd program. Added
2626 -C option, equivalent to client's option.
2628 * Added new [ServerKeys] config section to the server. It
2629 configures the server's public and private key.
2631 * Defined generic Public Key Payload into the protocol
2632 specification to send specific type of public keys and
2635 * Defined new command SILC_COMMAND_GETKEY to fetch a client's
2636 public key or certificate.
2638 * Implemented the GETKEY command to the server and to the
2639 client library and on user interface.
2641 Sun Apr 8 01:37:21 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2643 * Made preliminary `make install' work.
2645 Thu Apr 5 17:42:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2647 * Added SilcServerRekey context into silcd/idlist.h.
2649 * Added the PFS support as defined in the specification to the
2650 SKE protocol. Affected files lib/silcske/*.c.
2652 * Added `ske_group' field to the SilcServerRekey context to hold
2653 the number of the SKE group that is used with PFS in re-key.
2654 Affected file silcd/idlist.h.
2656 * Added PFS re-key support to the server. Affected file is
2659 * Added silc_protocol_cancel to cancel execution of the next
2660 state of the protocol. Affected file is
2661 lib/silccore/silcprotocol.[ch].
2663 * Added the re-key support with and without PFS to the client
2664 library. Re-key is performed once in an hour, by default.
2666 Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
2667 Added silc_client_rekey_callback and silc_client_rekey_final.
2668 Affected files are lib/silcclient/protocol.[ch] and
2669 lib/silcclient/client.[ch].
2671 * Removed the `hmac_key' and `hmac_key_len' fields from the
2672 SilcClientConnection structure; not needed. Affected file is
2673 lib/silcclient/client.h.
2677 Wed Apr 4 16:32:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2679 * Do not ask whether user wants to use the negotiated private key
2680 for private messages, just use it. Affected file is
2681 silc/local_command.c.
2683 * Added `send_enc_key' and `enc_key_len' fields to the
2684 SilcIDListData structure since they are needed in the re-key
2685 phase. Affected file is silcd/idlist.[ch].
2687 * Implemented the simple re-key protocol into the server.
2688 Affected files silcd/server.c and silcd/protocol.[ch]. The
2689 re-key will be performed once in an hour, by default.
2691 Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
2692 Added silc_server_rekey, silc_server_rekey_callback and
2693 silc_server_rekey_final.
2695 * Removed Tunneled flag from the protocol. Updated the code
2696 and the specifications.
2698 * Adde `pfs' field to the SilcIDListData to indicate whether
2699 the PFS is to be performed in the re-key. Affected file is
2702 Tue Apr 3 21:52:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2704 * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
2705 int64 of at least the xintXX size. If void * is less that 4
2706 bytes uint32 * will be used. Defined bool as boolean.
2708 * Changed _ALL_ unsigned long and unsigned int to uint32,
2709 unsgined short to uint16 in the source tree.
2711 * Fixed a fatal bug in silc_server_remove_clients_by_server. Do
2712 not handle clients that has entry->data.registered == FALSE.
2713 They are not in the network anymore. Affected file is
2716 Tue Apr 3 16:39:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2718 * Implemented the sending of the SERVER_SIGNOFF notify in the
2719 server. Affected file is silcd/server.c.
2721 * Added silc_server_send_notify_args into silcd/packet_send.[ch].
2722 Added also silc_notify_payload_encode_args into the
2723 lib/silccore/silcnotify.[ch].
2725 * Implemented ther SERVER_SIGNOFF notify handling in the server.
2726 Affected file silcd/packet_receive.c.
2728 * Implemented the SERVER_SIGNOFF notify handling in the client
2729 library. Affected file lib/silcclient/client_notify.c. Also,
2730 implemnted the printing of the SERVER_SIGNOFF info to the
2731 application. Affected file silc/client_ops.c.
2733 * The silc_idlist_del_server now returns TRUE or FALSE to indicate
2734 if the deleting was successful. Affected file silcd/idlist.[ch].
2736 * Added support for public key authentication in the connection
2737 authentication protocol in the client library. Affected file
2738 lib/silcclient/protocol.c.
2740 * Changed the server's silc_idlist_get_clients_by_* interface
2741 to support already allocated array so that new entries may be
2742 added to pre-allocated array. Affected file silcd/idlist.[ch].
2743 This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
2744 and command replies.
2746 * All command reply functions in the server now calls the
2747 pending command callback even if error occured. This way the
2748 error will be delivered to the client as well. Affected files
2749 silcd/command.c and silcd/command_reply.c.
2751 * Fixed INFO command to return local server's info if no server
2752 was provided. Affected file lib/silcclient/command.c.
2754 * Removed RESTART command for good. Updated the code and the
2757 * Rewrote parts of the task system. It is a bit simpler now.
2758 Removed unsued task priorities. The affected files are
2759 lib/silcutil/silctask.[ch].
2761 Mon Apr 2 20:02:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2763 * Moved the USERS printing from the library to the application.
2764 Affected files lib/silcclient/command.c and silc/client_ops.c.
2766 Mon Apr 2 13:13:23 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2770 * Added channel key re-key support. The re-key is perfomed
2771 only by the router and is done once in an hour. Added `rekey'
2772 field to the SilcChannelEntry in the server. Affected files
2773 silcd/server.c and silcd/idlist.h.
2775 * Added silc_task_unregister_by_context into the file
2776 lib/silcutil/silctask.[ch].
2778 Sun Apr 1 19:49:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2780 * Added SILC_UMODE_GONE mode to indicate when the client is not
2781 present in the SILC network. Added also support to the local
2782 command AWAY that will set this mode. Added support of showing
2783 "xxx is gone" in WHOIS command. The USERS command shows the
2784 gone status as well.
2786 * Fixed setting server and router operator privileges in the
2787 server's UMODE command. Affected file silcd/command.c.
2789 * Merged the SKE KE1 and KE2 payloads into one payload. The
2790 new KE payload is equivalent to the old KE2 payload.
2792 Cleaned up the SKE Start Payload parsing. It now uses the
2793 simple buffer unformatting to do the parsing. A lot faster
2796 Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
2797 to the SKE that is used to indicate whether both of the SKE
2798 parties should perform authentication. By default only the
2799 responder performs authentication. By setting this flag also
2800 the initiator must do authentication. By default it is unset
2801 since in normal SKE case, client to server connection, only
2802 the responder should do authentication. When doing SKE between
2803 two clients both should perform authentication. Updated the
2804 code and the protocol specs.
2806 * A little fix to IDENTIFY command in the server. Search the
2807 client first by hash not nickname. Affected file is
2810 * Fixed the silc_client_close_connection to support closing
2811 the client to client connections wihtout deleting too much
2812 data. Affected file lib/silcclient/client.c.
2814 * Fixed a fatal bug in server and client; if KE1 or KE2 packets
2815 are received if protocol used to be active but is not anymore
2816 the application would crash due to NULL pointer dereference.
2817 Affected files silcd/server.c and lib/silcclient/client.c.
2819 * Added `hash' field to the SilcClientConnection to include
2820 the hash function negotiated in the SKE protocol.
2822 * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
2823 to set the channel founder authentication data. A client can
2824 claim the founder rights later by providing the authentication
2825 data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
2826 This way the channel founder can regain the channel founder
2827 privileges even it is left the channel. This works only on
2828 local server and the client must be connected to the same
2829 server to be able to regain the founder rights. Updated the
2830 protocol specs accordingly.
2832 Added support to the CMODE command in the client to set the
2833 founder auth data. Read the README to see how to set it.
2835 Added support to the CUMODE command to claim the founder
2836 rights. Read the README to see how to do it.
2838 Added support for the founder authentication to the Channel
2839 Entry in the server. Affected file silcd/idlist.h.
2841 Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
2842 server's CMODE command. Affected file silcd/command.c.
2844 * Added the following new functions into lib/silccore/silcauth.[ch]:
2845 silc_auth_get_method and silc_auth_get_data.
2847 * The server now saves the remote hosts public key to the
2848 SilcIDListData pointer. Affected file silcd/protocol.c.
2850 * The normal server now does not remove the channel entry from
2851 the cache if the founder authentication data is set. It used
2852 to remove it if the founder was the last one on the channel on
2853 the server and left the channel. The auth data is saved and
2854 if the channel is re-joined later the old entry is used with
2855 the old auth data. Affected files silcd/command_reply.c and
2858 * Removed the `pkcs' field from the SilcIDListData structure
2859 in the server; it is not used. Affected file silcd/idlist.h.
2861 Sat Mar 31 15:38:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2863 * Fixed packet processing on slow links. Partial packets were
2864 never re-processed because the incoming data buffer was cleared
2865 by the application. Application must not directly clear the
2866 sock->inbuf, the packet processing routines handle it. Fixed
2867 this in client library and in server.
2869 Fri Mar 30 16:35:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2871 * Fixed the WHOIS and IDENTIFY send reply function to really
2872 check whether to send list or just one entry. Affected file
2875 * Cleaned up the LEAVE command's channel key distribution. The
2876 affected file silcd/command.c.
2878 * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
2879 can enforce the channel mode as well. In that case the ID
2880 includes the ID of the server. The code now enforces the
2881 mode change if the router have different mode than the server.
2883 * The notify client operation with CMODE_CHANGE notify can now
2884 return NULL client_entry pointer if the CMODE was not changed
2885 by client. Application must check for this.
2887 * Added <Server ID> argument to INFO command to support server
2888 info fetching by Server ID.
2890 * Added silc_server_announce_get_channel_users to get assembled
2891 packets of channel users of the specified channel. Affected
2892 file silcd/server.[ch].
2894 * Fixed bug in CHANNEL_CHANGE notify in the server. The new ID
2895 was freed underneath the ID Cache.
2897 * Re-announce clients when the server received CHANNEL_CHANGE
2898 notify from the router. Affected file silcd/packet_send.c.
2900 Thu Mar 29 19:10:28 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2902 * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
2903 crashed since it did not handle the fact that there is no cipher
2904 called "3" and didn't check the error condition. Now fixed.
2906 * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
2907 flag. It can be used to send message requests.
2909 Thu Mar 29 12:26:25 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2911 * Implemented the RESTART command in the client.
2913 * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
2914 notice type messages. Added notice printing to the user
2917 * The channel keys are not re-generated if the channel's mode
2918 is PRIVKEY, ie private key on the channel exists. Affected
2919 files silcd/server.c and silcd/command.c.
2921 * Fixed a little bug in channel message delivery when channel
2922 private keys are set in the server. Affected file is
2923 silcd/packet_send.c.
2925 * Changed the setting on channel->on_channel = TRUE from the
2926 silc_client_save_channel_key to the JOIN command reply. The
2927 key payload is not received if the private channel key is set.
2928 Affected file lib/silcclient/command_reply.c and the
2929 lib/silcclient/client_channel.c.
2931 * When the CMODE_CHANGE notify is sent and the channel private
2932 key mode is removed the channel key must be re-generated in
2933 other cells as well. Added this support for the router in the
2934 silcd/packet_receive.c.
2936 * Added new local command NOTICE to send notice message on
2937 channel. Affected file silc/local_command.[ch].
2939 Wed Mar 28 23:55:54 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2941 * Added new local command ME to the client. It is used to send
2942 message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
2943 some action. Affected file silc/local_command.[ch].
2945 * Changed channel_message and private_message client operations
2946 to deliver the message flags to the application. Added also
2947 the `flags' arguments to the silc_client_send_channel_message
2948 and silc_client_send_private_message functions. Affected file
2951 Wed Mar 28 20:50:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2953 * Redefined the Private Message Payload to support private message
2954 keys and to support the new private message flags. Updated
2955 the protocol specs. Flags makes it possible to have for example
2956 CTCP style messages.
2958 * Added new type SilcPrivateMessagePayload and defined an API
2959 for it in the lib/silcclient/silcprivate.[ch].
2961 * Tested private message private keys successfully. Tested the
2962 private message key set, unset and list commands with the new
2965 * Redefined the Channel Message Payload to include the channel
2966 message flags (equal with private message flags) to support
2967 for example CTCP style messages.
2969 * Defined some of the message (for channel and private message)
2970 flags. Updated the protocol specs and added the flags to the
2971 lib/silccore/silcchannel.h. The type is SilcMessageFlags.
2973 Wed Mar 28 15:52:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2975 * Added SilcKeyAgreementStatus type to the key agreement routines
2976 to indicate the current status and error if one occured.
2977 The status types are defined in the lib/silcclient/silcapi.h.
2979 * Added new local command KEY that is used to set and unset private
2980 keys for channels, set and unset private keys for private messages
2981 with remote clients and to send key agreement requests and
2982 negotiate the key agreement protocol with remote client. The
2983 key agreement is supported only to negotiate private message keys,
2984 it currently cannot be used to negotiate private keys for channels,
2985 as it is not convenient for that purpose.
2987 * Fixed a minor pending callback setting bug in the function
2988 silc_client_get_client_by_id_resolve, now the function works.
2989 Affected file lib/silcclient/idlist.c.
2991 * Added function silc_net_get_local_port to get local bound
2992 port by socket. Added to lib/silcutil/silcnet.[ch].
2994 * Added `sockets' and `sockets_count' fields to the SilcClient
2995 object. They hold the sockets of the listenning sockets in
2996 the client. Listenning sockets may be for example the key
2997 agreement server. Affected file lib/silcclient/client.[ch].
2998 Added functions the silc_client_add_socket and the
2999 silc_client_del_socket. They are exported to the application
3002 * Added ~./silc/clientkeys to support other client's public keys.
3004 * Renamed verify_server_key client operation to verify_public_key
3005 and added one argument to indicate the type of the connection
3006 (server, client etc.).
3008 Tue Mar 27 22:22:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3010 * Added silc_server_connection_auth_request to handle the
3011 incoming CONNECTION_AUTH_REQUEST packet. Affected file is
3012 silcd/packet_receive.[ch].
3014 * Added silc_server_send_connection_auth_request into the
3015 silcd/packet_send.c to send the connection auth request packet.
3017 * Cleaned up the silcd/protocol.c a bit and fixed some memory
3020 * Fixed the public key authentication in responder side in the
3021 server. The `auth_data' pointer includes the SilcPublicKey
3022 not the path to the public key. Affected file silcd/protocol.c.
3024 * Implemented the public key authentication in the initiator side
3025 in the server. Affected file silcd/protocol.c.
3027 * Removed the [RedirectClient] config section from the server
3028 configuration. Is not needed and I don't want to implement it.
3030 Tue Mar 27 12:49:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3032 * Cleaned up the CMODE command in the server. It now works
3033 correctly and supports all the modes defined in the protocol.
3034 Affected file is silcd/command.c.
3036 * Added `hmac_name' field to the SilcChannelEntry in the server
3037 to hold the default HMAC of the channel. It can be set when
3038 creating the channel (with JOIN command). Affected files
3041 * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
3042 type to indicate the change of the current cipher and hmac
3043 on the channel. Client can safely ignore the <cipher> argument
3044 (if it chooses to do so) since the CHANNEL_KEY packet will
3045 force the channel key change anyway. The <hmac> argument is
3046 important since the client is responsible of setting the new
3047 HMAC and the hmac key into use.
3049 * Fixed the CMODE command in the client library as well.
3051 * Tested CMODE command in router environment successfully.
3053 Mon Mar 26 14:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3055 * Show the version of the remote client (or server) when connecting
3056 to the server. It is logged to the log file. Affected file
3057 is silcd/protocol.c.
3059 * Fixed the KILLED notify handling in the client library. The
3060 client must be removed from all channels when receiving the
3063 Also, do not remove the client entry when giving the KILL
3064 command but when the KILLED notify is received.
3066 * Removed silc_idlist_find_client_by_nickname from the server.
3067 Not needed anymore. Affected files silcd/idlist.[ch].
3069 * Implemented the CHANNEL_CHANGE notify type handling to the
3070 server. Affected file silcd/server.c.
3074 Mon Mar 26 12:11:14 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3076 * Added silc_server_send_notify_invite to send the INVITE
3077 notify between routers.
3079 * Implemented the INVITE command correctly to the server.
3081 * Implemented the INVITE notify type handling in the server.
3083 * Implemented the INVITE command to the client library and on the
3086 Sun Mar 25 20:27:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3088 * Added function silc_server_get_client_resolve to find the
3089 client entry by ID from all ID lists and then resolve it
3090 (using WHOIS) if it cannot be found. Affected file is
3093 Sun Mar 25 13:52:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3095 * Implemented the BAN command to the client library.
3097 * The JOIN command in the server now checks the invite list
3100 * Changed the silc_command_reply_payload_encode_va and the
3101 silc_command_payload_encode_va to support that if argument is
3102 NULL it ignores and checks the next argument. Affected file
3103 lib/silccore/silccommand.c.
3105 * Added silc_server_send_notify_ban to send the BAN notify
3106 type between routers.
3108 * Chaned the silc_notify_payload_encode to support that if
3109 argument is NULL it ignores and checks the next argument.
3110 Affected file lib/silccore/silcnotify.c.
3112 * Tested ban lists in router environment successfully.
3114 Sat Mar 24 14:47:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3116 * Implemented BAN command to the server, in silcd/command.[ch].
3118 * Removed the BAN and INVITE_LIST modes from the CMODE command
3121 * Added function silc_string_match to regex match two strings.
3122 Affected files lib/silcutil/silcutil.[ch].
3124 Fri Mar 23 22:02:40 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3126 * Redefined parts of the SilcChannelEntry in the server to support
3127 the new ban and invite lists.
3129 Fri Mar 23 16:25:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3131 * Redefined the INVITE command. The same command can be used to
3132 invite individuals to the channel but also to manage the invite
3133 list of the channel (to add to and remove from the invite list).
3134 Updated the protocol specs.
3136 * Added new command SILC_COMMAND_BAN that can be used to manage
3137 the ban list of the channel. Updated the protocol specs.
3139 * Removed the channel modes: the SILC_CMODE_BAN and the
3140 SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
3141 in the CMODE command. The equivalent features are now available
3142 using INVITE and BAN commands. Updated the protocol specs.
3144 * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
3145 in the network about change in the current ban list. The notify
3146 type is not used by the client.
3148 * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
3149 support the invite lists.
3151 Thu Mar 22 22:52:23 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3153 * Added new function silc_string_regexify that converts string
3154 including wildcard characters into regex string that can
3155 be used by the GNU regex library. Added into the file
3156 lib/silcutil/silcutil.[ch].
3158 Added silc_string_regex_combine to combine to regex strings
3159 into one so that they can be used as one regex string by
3160 the GNU regex library. Added into the file
3161 lib/silcutil/silcutil.[ch].
3163 Added silc_string_regex_match to match two strings. It returns
3164 TRUE if the strings match. Added into lib/silcutil/silcutil.[ch].
3166 Thu Mar 22 15:29:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3168 * Imported GNU regex to the soruce tree into lib/contrib.
3169 Fixed some compiler warning from the regex.c.
3171 Wed Mar 21 15:27:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3173 * Fixed MOTD command in the server to work in router environment.
3175 * Fixed the MOTD command in the client library to support
3176 the server argument in the command.
3178 * Added `nickname_len' argument to the silc_idlist_add_client
3179 in the server, as the `nickname' argument may be binary data
3182 * Added silc_idlist_get_channels to return all channels from
3185 * Implemented LIST command to the server. Affected file is
3188 * Implemented the LIST command to the client library and on the
3191 * Added [<user count>] argument to the LIST command reply.
3192 With private channels the user count is not shown.
3194 * Updated TODO and README.
3196 Tue Mar 20 21:05:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3198 * The client entry's data.registered must be TRUE even with
3199 global client entry on global client list. The data.registered
3200 is used to check whether the client is anymore in the network,
3201 for example with WHOWAS command so it must be valid.
3203 * Fixed the WHOWAS command in the server. It now actually works
3204 in router environment. Added function into silcd/command_reply.c
3205 silc_server_command_reply_whowas_save.
3207 * Added silc_idlist_purge function to the silcd/idlist.c
3208 to periodically purge the ID Cache.
3210 * Fixed INFO command in the server. It works now in router
3211 environment. Added <server name> argument to the INFO command
3212 reply. Updated the protocol specs.
3214 * Fixed minor bug in silc_idcache_purge to not purge if the
3215 expire value is zero.
3217 * Fixed various bugs in WHOIS and IDENTIFY command handling as
3218 they were buggy because of the WHOWAS information.
3220 * Fixed local command MSG to handle the async resolving of
3221 the remote client properly. It used to fail the first MSG.
3222 Affected file silc/local_command.c.
3224 * Added `data_len' field to SilcIDCache context.
3226 Tue Mar 20 16:29:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3228 * Update TODO. Todo in commands in the server.
3230 Tue Mar 20 15:45:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3232 * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
3233 used by routers as broadcast packet to inform other routers
3234 about the changed user mode.
3236 Implemented the notify handling in the server. Affected file is
3237 silcd/packet_receive.c. Added the function
3238 silc_server_send_notify_umode to the silcd/packet_send.[ch].
3240 * Added new generic Channel Payload and deprecated the New Channel
3241 Payload. The New Channel Payload is now the generic Channel
3244 * Added new argument `mode' to the silc_server_send_new_channel
3245 as it is required in the Channel Payload now.
3247 * Renamed the SilcChannelPayload to SilcChannelMessagePayload
3248 and created a new and real SilChannelPayload to represent the
3249 new generic Channel Payload. Implemented the encode/decode
3250 for Channel Payload. Affected file lib/silccore/silcchannel.[ch].
3252 * Added silc_server_get_client_channel_list to return the list
3253 of channels the client has joined for WHOIS command reply.
3254 Affected file silcd/server.[ch].
3256 * Implemented the channel list sending in the WHOIS command reply
3257 in server and in the client.
3259 Implemented the channel list displaying on the user interface
3260 as well. Affected file silc/client_ops.c.
3262 * Added silc_channel_payload_parse_list to parse list of Channel
3263 Payloads. It returns SilcDList list of SilcChannelPayloads.
3264 Client for example can use this function to parse the list of
3265 channels it receives in the WHOIS command reply. The caller
3266 must free the list by calling silc_channel_payload_list_free.
3267 Affected files lib/silccore/silcchannel.[ch].
3269 Mon Mar 19 21:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3271 * Added one new argument <user mode> to the WHOIS command reply
3272 to return the mode of the user in SILC. Updated the protocol
3275 Implemented it to the server and client.
3277 Mon Mar 19 18:43:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3279 * Fixed the mode printing on the user interface on joining.
3280 Affected file silc/client_ops.c.
3282 * Implemented the UMODE command and user modes in general to the
3283 client library and to the user interface.
3285 * Implemented the UMODE command to the server.
3287 * The server now sends UNKNOWN_COMMAND error status if client sends
3288 unknown command. Affected file silcd/command.c.
3290 * All server commands now handle the command identifier the right
3291 way when sending the command reply to the client. The client can
3292 use to identify the command replies with the identifier.
3294 Mon Mar 19 16:13:07 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3296 * Added silc_server_get_client_route to resolve the route to
3297 the client indicated by the client ID. Affected file is
3300 * Added silc_server_relay_packet as general function to relay
3301 packet to arbitrary destination. This deprecates functions
3302 like _send_private_message_key, _relay_notify etc. Affected
3303 file is silcd/packet_send.[ch].
3305 Removed silc_server_send_key_agreement,
3306 silc_server_send_private_message_key and
3307 silc_server_packet_relay_notify functions from the file
3308 silcd/packet_send.[ch].
3312 * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
3313 server. Affected file silcd/packet_receive.[ch].
3315 * Implemented the KILL command to the client. Implemented the
3316 SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
3317 Affected files lib/silcclient/command[_reply].c and
3318 lib/silcclient/client_notify.c. Implemented the KILL notify
3319 printing in the user inteface.
3321 * Fixed a lot silc_parse_nick memory leaks from the client
3322 library in the file lib/silcclient/command.c.
3324 * Changed the silc_server_send_notify_on_channels's `sender'
3325 argument from SilcSocketConnection to SilcClientEntry to
3326 check the sender as entry and not as connection object and not
3327 to send to the client provided as argument. The affected file
3328 is silcd/packet_send.[ch].
3330 * The notify packets that are destined directly to the client used
3331 to not to be processed by the server. Now changed that and the
3332 server processes all notify packets. After relaying the packet
3333 to the client the notify packet is processed in the server.
3335 * The silc_server_free_client_data now checks whether there is
3336 pending outgoing traffic for the client and purges the data to
3337 the network before removing the client entry.
3339 Sun Mar 18 21:02:47 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3341 * Added SILC_NOTIFY_TYPE_KILLED notify type. It is sent when
3342 an client is killed from the SILC Network. Updated the protocol
3345 Added new function silc_server_send_notify_killed to the
3346 silcd/packet_send.[ch].
3348 * Added function silc_server_packet_relay_notify to relay notify
3349 packets that are destined directly to a client. In this case
3350 the server does not process the notify packets but merely relays
3351 it to the client. Affected file silcd/packet_send.[ch].
3353 Added also silc_server_packet_process_relay_notify to check
3354 whereto relay the notify. Affected file is
3355 silcd/packet_receive.[ch].
3357 * Implemented the KILL command to the server.
3361 * Added the backup schema desgined last fall to the protocol
3362 specs for everyone to see. The specification is in the
3363 *-spec-xx.txt draft and the packet type definitions for the
3364 backup routers is in *-pp-xx.txt draft. Thusly, added also
3365 new packet type SILC_PACKET_CELL_ROUTERS.
3367 * A big security problem in the implementation discovered. The
3368 signoff of an client did not cause new channel key generation
3369 which it of course should've done. The channel keys must be
3370 always re-generated when client leaves (or signoffs) the channel.
3371 The silc_server_remove_from_channels funtion now handles
3372 the channel key re-generation.
3374 * Added `sender' argument to the silc_server_send_notify_on_channels
3375 to not to send the client provided as argument. Affected file
3376 silcd/packet_send.[ch].
3378 Fri Mar 16 15:52:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3380 * Implemented OPER and SILCOPER commands into the server and
3383 * Added silc_auth_verify and silc_auth_verify_data to verify
3384 the authentication directly from the authentication payload.
3385 It supports verifying both passphrase and public key based
3386 authentication. Affected file lib/silccore/silcauth.[ch].
3388 * Added `hash' field to the SilcIDListData structure. It is the
3389 hash negotiated in the SKE protocol. Affected file is
3392 * Slight redesigning of the SilcAuthPayload handling routines.
3393 Do not send SilcPKCS but SilcPublicKey as argument.
3395 * Implemented the public key authentication support to the
3396 serverconfig. The public key is loaded from the provided path
3397 and saved as authentication data to void * pointer. Thus,
3398 changed the unsigned char *auth_data to void *auth_data;
3400 * Fixed SHUTDOWN command to send the reply before the server
3401 is shutdown. :) Affected file silcd/command.c.
3403 * Fixed fatal bug in CONNECT command. The hostname was invalid
3404 memory and server crashed. Affected file silcd/command.c.
3406 * Fixed fatal bug in CLOSE command. The server_entry became
3407 invalid but was referenced later in the command. Affected file
3410 Thu Mar 15 12:46:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3412 * Fixed fatal bug in failure packet handling. Server ignored
3413 the failure and thus crashed when it came.
3417 Wed Mar 14 20:37:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3419 * Added new SILC_CF_LAG_STRICT command flag that strictly forces
3420 that the command may be executed only once in (about) 2 seconds.
3421 The old SILC_CF_LAG flag is same but allows command bursts up
3422 to five before limiting.
3424 Added the support for CF_LAG and CF_LAG_STRICT flags to the
3425 server code. Various commands now includes the CF_LAG_STRICT
3426 flag to disallow any kind of miss-use of the command.
3428 * Fixed the silc_buffer_unformat to not to allocate any data
3429 if the length of the data is zero. It used to allocate the
3430 length + 1. Affected file lib/silcutil/silcbuffmt.c.
3432 Wed Mar 14 16:10:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3434 * Changed the format of AdminConnection configuration section
3435 in the server. Added username of the admin to the format.
3436 Affected files silcd/serverconfig.[ch].
3438 Added silc_server_config_find_admin into silcd/serverconfig.[ch]
3439 to return admin configuration data by host, username and/or
3442 Wed Mar 14 13:18:16 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3444 * Implemented WHOWAS command to the server. Added the functions:
3446 silc_server_command_whowas_parse,
3447 silc_server_command_whowas_send_reply,
3448 silc_server_command_whowas_from_client and
3449 silc_server_command_whowas_from_server
3451 * Added <Client ID> argument to the WHOWAS command reply. Updated
3452 the protocol specs accordingly.
3454 * Implemented WHOWAS command and command_reply to the client
3457 Implemented the WHOWAS printing on the user interface.
3459 Tue Mar 13 22:17:34 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3461 * Added new argument to the WHOWAS command reply, the real name.
3462 It is an optional argument. Updated the protocol specs.
3464 * Added SilcIDCacheDestructor callback that is registered when
3465 the SilcIDCache is allocated. The callback is called when
3466 an cache entry in the ID Cache expires, or is purged from the
3467 cache. Added into lib/silccore/idcache.[ch].
3469 Added silc_idlist_client_destructor to the silcd/idlist.[ch]
3470 to destruct the client entries when the cache entry expires.
3471 Other ID Cache's in server and in the client library ignores
3474 * If the ID Cache entry's `expire' field is zero then the entry
3475 never expires. Added boolean `expire' argument to the
3476 silc_idcache_add function in the lib/silccore/idcache.[ch].
3477 If it is TRUE the default expiry value is used.
3479 * Added silc_server_free_client_data_timeout that is registered
3480 when client disconnects. By default for 5 minutes we preserve
3481 the client entry for history - for WHOWAS command.
3483 Tue Mar 13 13:26:18 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3485 * Added support to the server to enforce that commands are not
3486 executed more than once in 2 seconds. If server receives
3487 commands from client more frequently, timeout is registered
3488 to process the commands. Affected file silcd/command.c.
3489 Added new function silc_server_command_process_timeout.
3491 * Changed NICK_NOTIFY handling in client library to check that
3492 if the client's nickname was changed, so there is no need to
3493 resolve anything from the server.
3495 * Removed error printing from the WHOIS and IDENTIFY commands.
3496 If error occurs then it is ignored silently in the client library.
3497 The application, however, may map the received error to
3498 human readable error string. The application currently maps
3499 the NO_SUCH_NICKNAME error to string.
3501 * Made the command status message public to the application. Moved
3502 them from lib/silcclient/command_reply.c to
3503 lib/silcclient/command_reply.h. The application can map the
3504 received command status to the string with the
3505 silc_client_command_status_message function.
3507 * Added check to the server to check that client's ID is same
3508 as the Source ID in the packet the client sent. They must
3511 Tue Mar 13 12:49:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3513 * Added dist-bzip hook to the Makefile.am to make bzip2
3514 compressed distributions.
3516 Mon Mar 12 18:43:38 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3518 * Server now enforces the maximum length for the nickname and
3519 the channel as protocol specification dictates. 128 bytes for
3520 nickname and 256 bytes for channel name.
3522 * Moved the WHOIS printing to the application. The client libary
3523 does not print out the WHOIS information anymore, the application
3524 must do it. Renamed silc_client_command_reply_whois_print to
3525 the silc_client_command_reply_whois_save.
3527 The client's idle time is also sent to the application now, and
3528 the idle is shown on screen.
3530 * Added silc_client_command_reply_identify_save to save the
3531 received IDENTIFY entries.
3533 * Do not check for channel private keys in message sending and
3534 reception if the channel does not have the PRIVKEY mode set.
3535 Affected file lib/silclient/client_channel.c.
3537 Sun Mar 11 20:25:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3539 * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
3540 just surfaced after chaning the JOIN procedure.
3542 Sun Mar 11 14:59:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3544 * Added silc_client_get_clients_by_list to get client entries
3545 from Client ID list, that is returned for example by JOIN
3546 and USERS command replies. The application should use this
3547 function for example when JOIN command reply is received to
3548 resolve the clients already on the channel (library does not
3549 do that anymore as USERS command reply is not used in the JOIN
3550 procedure anymore). Affected files lib/silcclient/silcapi.h and
3551 lib/silcclient/idlist.c.
3553 * JOIN command reply and USERS command reply returns now SilcBuffer
3554 pointers instead of unsigned char pointers when returning
3555 the client list and mode list.
3557 * Added <Client ID> argument to the JOIN command reply, mainly
3558 for the server to identify for which client the command was
3559 originally sent. Updated protocol specs accordingly.
3561 * Added SilcDlist private_key pointer to the SilcChannelEntry
3562 in the client to support the channel private keys. Affected
3563 file is lib/silcclient/idlist.h.
3565 * Added SilcChannelPrivateKey argument to the function
3566 silc_client_send_channel_message so that application can choose
3567 to use specific private ke if it wants to. If it is not provided,
3568 the normal channel key is used, unless private keys are set.
3569 In this case the first (key that was added first) is used
3570 as the encryption key.
3572 * Implemented the support for channel private key handling.
3573 Implemented the following functions:
3575 silc_client_add_channel_private_key,
3576 silc_client_del_channel_private_keys,
3577 silc_client_del_channel_private_key,
3578 silc_client_list_channel_private_keys and
3579 silc_client_free_channel_private_keys
3581 Affected file lib/silcclient/client_channel.c.
3583 * Added the support for the private keys in the channel message
3584 sending and encryption and in the message reception and
3585 decryption. Affected funtions are
3586 silc_client_send_channel_message and silc_client_channel_message.
3588 Sat Mar 10 21:36:22 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3590 * Added SKE's key verify callback to the client library's
3591 KE protocol context. Affected files lib/silcclient/protocol.[ch].
3593 * Removed the statement that server (or router) must send USERS
3594 command reply when joining to the channel so that the client
3595 knows who are on the channel. Instead, the client list and
3596 client's mode list is now sent in the JOIN command reply to the
3597 client who joined channel. This is better solution.
3599 * Added function silc_server_get_users_on_channel and function
3600 silc_server_save_users_on_channel to the silcd/server.[ch].
3602 * Removed function silc_server_command_send_users from the
3605 * Do not show topic on the client library anymore. The topic is
3606 sent in the command reply notify to the application and the
3607 application must show the topic now.
3609 Sat Mar 10 00:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3611 * Added client searching by nickname hash into the IDENTIFY and
3612 WHOIS commands in the server as they were clearly missing from
3613 them. Affected file is silcd/command.c.
3615 * Fixed a bug in private message receiving in the client library.
3616 The remote ID was freed and it wasn't supposed, now it is
3619 Fri Mar 9 12:40:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3621 * Minor fix to the channel payload; allocate the data area, as it
3622 needs to be of specific length.
3624 * If the key agreement port is zero then the operating
3625 system will define the bound port. Affected files are
3626 lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
3628 * Added new function silc_channel_payload_decrypt into the file
3629 lib/silccore/silcchannel.[ch].
3631 * Moved the channel message etc, check from silc_packet_decrypt
3632 to applications. The library calls now a generic
3633 SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
3634 when the packet is either normal or special. This was done to
3635 allow more wide range of checking that was not allowed when
3636 the code was in library. Now applications can do virtually any
3637 checks to the packet and return to the library the decision how
3638 the packet should be processed. Affected files are
3639 lib/silccore/silcpacket.[ch].
3641 Added silc_server_packet_decrypt_check to the server and
3642 silc_client_packet_decrypt_check to the client library.
3644 * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
3645 to send with specified source and destination information.
3647 * Channel message delivery between routers was broken after the
3648 channel key distribution was fixed earlier. The channel key
3649 was used be to distributed to other routers as well which is not
3650 allowed by the protocol. Now this is fixed and channel keys
3651 really are cell specific and the channel message delivery between
3652 routers comply with the protocol specification.
3654 * Fixed various commands in server to check also the global list
3655 for the channel entry and not just the local list. The affected
3656 file silcd/command.c.
3658 Thu Mar 8 21:39:03 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3660 * Added assert()s to buffer formatting and unformatting routines
3661 to assert (if --enable-debug) when error occurs. Affected
3662 file: lib/silcutil/silcbuffmt.c.
3664 * Changed to auto-reconnect to check whether the remote host is
3665 router and register the re-connect timeout if it is. It used
3666 to check that whether we are normal server, but router must do
3667 auto-reconnect with another router as well. Affected file
3670 * Removed the [<key len>] option from CMODE command as the cipher
3671 name decides the key length, nowadays. See the defined ciphers
3672 from the protocol specification.
3674 * Added [<hmac>] option to the CMODE command to define the HMAC
3675 for the channel. Added SILC_CMODE_HMAC channel mode.
3677 * Added [<hmac>] option for the JOIN command so that user can
3678 select which HMAC is used to compute the MACs of the channel
3681 * Added Hmac field to the Channel Message Payload. The integrity
3682 of plaintext channel messages are now protected by computing
3683 MAC of the message and attaching the MAC to the payload. The
3684 MAC is encrypted. Now, it is clear that this causes some
3685 overhead to the size of the packet but rationale for this is that
3686 now the receiver can verify whether the channel message decrypted
3687 correctly and also when private keys are set for the channel the
3688 receiver can decrypt the packet with several keys and check from
3689 the MAC which key decrypted the message correctly.
3691 * Added silc_cipher_encrypt and silc_cipher_decrypt into the
3692 lib/silccrypt/silccipher.[ch].
3694 * Added silc_hash_len to return the digest length into the
3695 lib/silcrypt/silchash.[ch].
3697 * Rewrote parts of Silc Channel Payload interface in the
3698 lib/silccore/silcchannel.[ch]. The encode function now also
3699 encrypts the packet and parse function decrypts it.
3701 Wed Mar 7 20:58:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3703 * Fixed a minor formatting bug in the SKE's key material processing.
3704 It actually might have processed the keys wrong way resulting
3707 * Redefined the mandatory HMAC algorithms and added new algorithms.
3708 Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
3709 and hmac-md5 truncated to 96 bits. The mandatory is now
3710 hmac-sha1-96. Rest are optional (including the one that used
3711 to be mandatory). Rationale for this is that the truncated HMAC
3712 length is sufficient from security point of view and can actually
3713 make the attack against the HMAC harder. Also, the truncated
3714 HMAC causes less overhead to the packets. See the RFC2104 for
3717 * Added new [hmac] configuration section. The SKE used to use
3718 the hash names (md5 and sha1) in the SKE proposal as HMCAS which
3719 is of course wrong. The official names that must be proposed in
3720 the SKE are the ones defined in the protocol specification
3721 (hmac-sha1-96 for example). The user can configure any hmac
3722 using any hash function configured in the [hash] section. At
3723 least, the mandatory must be configured.
3725 Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
3727 * Added HMAC list to the SKE proposal list. It has now both
3728 hash algorithm list and HMAC list. This makes the protocol
3729 incompatible with previous versions. The SKE now seems to work
3730 the way it is supposed to work, for the first time actually.
3732 * Defined plain Hash algorithms to the protocol specification.
3735 Tue Mar 6 15:36:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3737 * Implemented support for key agreement packets into the server.
3738 Added functions silc_server_key_agreement and
3739 silc_server_send_key_agreement. Other than these functions,
3740 server has nothing to do with this packet.
3742 * Added support for private message key packets into the server.
3743 Added functions silc_server_private_message_key and
3744 silc_server_send_private_message_key.
3748 * Changed the silc_[client|server]_protocol_ke_set_keys to be
3749 called in the protocol's final callback instead in the END
3750 protocol state. This makes a little more sense and in the same
3751 time in client we can use the same protocol routines for normal
3752 key exchange and to key agreement packet handling as well.
3754 * Added to both client's and server's KE protocol context the
3755 SilcSKEKeyMaterial pointer to save the key material. We will
3756 bring the key material to the protocol's final callback by doing
3757 this. The final callback must free the key material.
3759 * Added SKE's packet_send callback into client's KE protocol
3760 context so that the caller can choose what packet sending function
3761 is used. This way we can use different packet sending when
3762 doing normal SKE when doing key agreement packet handling (in
3763 the key agreement packet handling we do not want to encrypt
3766 * Implemented the responder side of the key agreement routines
3767 in the client. The client can now bind to specified port and
3768 accept incoming key negotiation. The key material is passed
3769 to the application after the protocol is over.
3771 * Implemented the processing of incoming Key Agreement packet
3772 in the client. Added function silc_client_key_agreement to
3775 * Implemented the intiator side of the key agreement routines
3776 in the client. The client can now initiate key agreement with
3777 another remote client. The key material is passed to the
3778 application after the protocol is over.
3780 * Created client_keyagr.c to include all the key agreement
3783 * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
3784 SILC_TASK_CALLBACK except that it is not static.
3786 * Created client_notify.c and moved the Notify packet handling
3787 from the client.[ch] into that file.
3789 * Created client_prvmsg.c and moved all private message and
3790 private message key routines from the client.[ch] into that file.
3792 * Create client_channel.c and moved all channel message and
3793 channel private key routines from the client.[ch] into that file.
3795 * Changed silc_client_get_client_by_id_resolve to resolve with
3796 WHOIS command instead of IDENTIFY command, in the file
3797 lib/silclient/idlist.c.
3799 Mon Mar 5 18:39:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3801 * Implemented the SKE's responder side to the Client library.
3803 * When FAILURE is received to the protocol do not trust it
3804 blindly. Register a timeout to wait whether the remote closes
3805 the connection as it should do it, only after that process the
3806 actual failure. This was changed to both client and server.
3808 * Added client_internal.h to include some of the structures
3809 there instead of client.h in lib/silcclient/.
3811 * Added function silc_task_unregister_by_callback to unregister
3812 timeouts by the callback function.
3814 Sat Mar 3 19:15:43 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3816 * Some "Incomplete WHOIS info" errors has been appearing on the
3817 log files. Took away the entry->userinfo check from WHOIS
3818 reply sending. The entry->userinfo is now " " if client did not
3819 provide one. I thought this was fixed earlier but something
3820 is wrong still. Let's see if the error still appears.
3822 Wed Feb 28 20:56:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3824 * Fixed a minor bug in the login when the channel key is
3825 re-generated in the server. It used to generate the key in
3826 wrong order and thus caused problems in the channel traffic.
3828 * Fixed a minor bug in channel key distsribution after
3829 KICK command. The key was not sent to the router even though
3832 Tue Feb 27 20:24:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3834 * Added silc_ske_process_key_material_data as generic routine
3835 to process any key material as the SILC protocol dictates. The
3836 function is used by the actual SKE library but can be used by
3837 applications as well. This relates to the private message keys
3838 and the channel private keys since they must be processed the
3839 same way the normal SILC session keys. The protocol dictates
3840 this. Affected files: lib/silcske/silcske.[ch].
3842 Added also silc_ske_free_key_material to free the
3843 SilcSKEKeyMaterial structure.
3845 * Defined silc_cipher_set_key function to set the key for
3846 cipher without using the object's method function. The affected
3847 files: lib/silccrypt/silccipher.[ch].
3849 * Implemented silc silc_client_add_private_message_key,
3850 silc_client_add_private_message_key_ske,
3851 silc_client_del_private_message_key,
3852 silc_client_list_private_message_keys and
3853 silc_client_free_private_message_keys functions in the
3856 Added functions silc_client_send_private_message_key to send
3857 the Private Message Key payload and silc_client_private_message_key
3858 to handle incoming Private Message Key payload.
3860 * Added Cipher field to the Private Message Key payload to set
3861 the cipher to be used. If ignored, the default cipher defined
3862 in the SILC protocol (aes-256-cbc) is used.
3864 Tue Feb 27 13:30:52 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3866 * Removed lib/silcclient/ops.h file.
3868 Redefined parts of the SILC Client Library API. Created new
3869 file silcapi.h that deprecates the ops.h file and defines the
3870 published Client Library API. Defined also private message key
3871 API and channel private key API into the file.
3873 This is the file that the application must include from the
3874 SILC Client Library. Other files need not be included by
3875 the application anymore.
3877 * Added new key_agreement client operation callback and also
3878 defined the Key Agreement library API for the application.
3880 Tue Feb 27 11:28:31 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3882 * Added new packet type: SILC_PACKET_KEY_AGREEMENT. This packet
3883 is used by clients to request key negotiation between another
3884 client in the SILC network. If the negotiation is started it
3885 is performed using the SKE protocol. The result of the
3886 negotiation, the secret key material, can be used for example
3887 as private message key.
3889 Implemented the Key Agreement payload into the files
3890 lib/silccore/silauth.[ch].
3892 Mon Feb 26 12:13:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3894 * Redefined ciphers for the SILC protocol. Added some new ciphers
3895 and defined the key lengths for the algorithms. Changed the
3896 code accordingly. The default key length is now 256 bits.
3898 * Fixed SKE key distribution function silc_ske_process_key_material
3899 when the key length is more than 128 bits. The default key
3900 length in SILC is now 256 bits.
3902 * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
3903 to indicate unsupported algorithm.
3905 * Renamed rijndael.c to aes.c and all functions as well.
3907 * Fixed a long standing channel key setting bug in client library.
3908 Weird that it has never surfaced before.
3910 * Fixed bug in channel deletion. If the entire channel is removed
3911 then it must also delete the references of the channel entry
3912 from the client's channel list as the client's channel entry and
3913 the channel's client entry share same memory.
3915 Sun Feb 25 20:47:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3917 * Implemented CONNECT and SHUTDOWN commands in the client.
3919 * Implemented CLOSE command to the client.
3921 * Added the function silc_idlist_find_server_by_name into the
3922 files silcd/idlist.[ch].
3924 Added the function silc_idlist_find_server_by_conn into the
3925 files silcd/idlist.[ch].
3927 Sat Feb 24 23:45:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3929 * DIE command was renamed to SHUTDOWN. Updated the both code
3932 * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
3933 SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
3935 * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
3938 * Added function silc_server_create_connection function to create
3939 connection to remote router. My server implementation actually
3940 does not allow router to connect to normal server (it expects
3941 that normal server always initiates the connection to the router)
3942 so the CONNECT command is only good for connecting to another
3945 Sat Feb 24 16:03:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3947 * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
3948 or some other client was kicked from the channel.
3950 Implemented the handling of the notify type to both client
3953 Implemented silc_server_send_notify_kicked to send the KICKED
3954 notify. It is used to send it to the server's primary router.
3956 * Implemented the KICK command into server and client.
3958 * Added `query' argument to the silc_idlist_get_client function
3959 to indicate whether to query the client from server or not if
3962 * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
3963 to indicate that the client is not channel founder.
3967 Sat Feb 24 00:00:55 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3969 * Removed the rng context from SilcPacketContext structure and
3970 changed that the packet routine uses the Global RNG API.
3972 Fri Feb 23 11:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3974 * Added support for quit message that client can "leave" on the
3975 channel when it quits the SILC. It is ditributed inside the
3976 SILC_NOTIFY_TYPE_SIGNOFF notify type.
3978 Added silc_server_free_client_data that will take the
3979 signoff message as argument.
3981 * Changed SKE routines to use the silc_pkcs_sign/verify routines.
3983 Thu Feb 22 23:05:36 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3985 * Updated parts of the protocol specification to keep it up
3988 Thu Feb 22 15:08:20 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3990 * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
3991 payloads in one packet.
3993 * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
3994 NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST. List packets
3995 use now the new List flag.
3997 * Also deprecated the following packet types: REPLACE_ID,
3998 NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
4000 * Added list support for Notify packet in server.
4002 * Added silc_server_send_notify_channel_change to send the
4003 CHANNEL_CHANGE notify type to replace channel ID's. Deprecates
4004 the silc_server_send_replace_id.
4006 * Added silc_server_send_notify_nick_change to send the
4007 NICK_CHANGE notify type. Deprecates the function
4008 silc_server_send_replace_id.
4010 * Added silc_server_send_notify_join to send the JOIN notify type.
4011 Deprecates the function silc_server_send_new_channel_user.
4013 * Added silc_server_send_notify_leave to send LEAVE notify type.
4014 Deprecates the function silc_server_send_remove_channel_user.
4016 * Added silc_server_send_notify_cmode and
4017 silc_server_send_notify_cumode to send CMODE and CUMODE notify
4018 types. Deprecates the silc_server_send_set_mode function.
4020 * Added SERVER_SIGNOFF notify type to indicate that server has
4021 quit. This means that all clients on the channel from that
4022 server will drop. This can be also used when netsplit happens.
4024 Deprecated REMOVE_ID packet type since it is not needed anymore
4027 Added silc_server_send_notify_server_signoff to send the
4028 SERVER_SIGNOFF notify type. Deprecates the function
4029 silc_server_send_remove_id.
4031 Added also silc_server_send_notify_signoff to send the
4032 SIGNOFF notify type.
4034 * Employed the PKCS #1. It is the mandatory way to do RSA in the
4035 SILC protocol from this day on. Changed the protocol
4036 specification as well.
4038 * Added silc_server_send_notify_topic_set to send TOPIC_SET
4039 notify type. It is used between routers to notify about
4040 topic changes on a channel.
4042 * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
4045 * Partly updated the protocol specification to comply with the
4046 changes now made. It is still though a bit outdated.
4048 * The JOIN notify type now takes one extra argument <Channel ID>.
4049 The packet used to be destined to the channel but now the
4050 JOIN type may be sent as list thus it is impossible to
4051 destine it to any specific channel. By adding this argument
4052 it is again possible.
4054 Wed Feb 21 22:39:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4056 * Added CREDITS file. The CHANGES and CREDITS file will appear
4057 in the distribution as well.
4059 Wed Feb 21 14:17:04 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4061 * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
4062 types in the server's silcd/packet_receive.c.
4064 * Implemented CMODE and CUMODE to work in router environment.
4066 * Fixed minor encoding and decoding buglet from the
4067 lib/silccore/silcmode.c.
4069 * Fixed buffer overflow from lib/silcclient/command.c in USERS
4072 Wed Feb 21 12:44:00 EET 2001 Mika Boström <bostik@lut.fi>
4074 * Changed all SilcConfigServer* and silc_config_server* to
4075 SilcServerConfig* and silc_server_config*, respectively.
4078 Wed Feb 21 00:10:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4080 * Associated the ID (client or server ID) to the Authentication
4081 Payload to avoid any possibility of forging. Updated the
4082 protocol specification and the code accordingly.
4084 Tue Feb 20 14:14:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4086 * The RSA key length is now save to the RsaKey context in the
4087 key generation process in lib/silccrypt/rsa.c. The key length
4088 is now used to figure out the maximum size of the block allowed
4089 to be encrypted/signed.
4091 * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch]. It
4092 is equivalent to the silc_mp_mp2bin but does not allocate any
4095 * Changed silc_mp_mp2bin API to take length argument. If it is
4096 non-zero then the buffer is allocated that large. If zero, then
4097 the size is approximated using silc_mp_sizeinbase, which however
4100 * Created Global RNG API which is global RNG that application can
4101 initialize. After initializing, any routine anywhere in the
4102 code (including library) can use RNG without allocating a new
4103 RNG object. This was done to allow this sort of use of the
4104 RNG in code that has no chance to allocate RNG object. All
4105 applications currently allocate this and many routines in the
4106 library use this. Affected file lib/silccrypt/silcrng.[ch].
4108 * Removed the RNG kludge from lib/silcmath/primegen.c and changed
4109 it to use the Global RNG API.
4111 * Defined Authentication Payload into protocol specification that
4112 is used during SILC session to authenticate entities. It is
4113 used for example by client to authenticate itself to the server
4114 to obtain server operator privileges.
4116 Implemented this payload into the lib/silccore/silcauth.[ch].
4117 Implemented also routines for public key based authentication
4118 as the new protocol specification dictates.
4120 Moved definitions of different authentication methods from
4121 lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
4123 * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
4124 silc_pkcs_verify and silc_pkcs_sign_with_hash and
4125 silc_pkcs_verify_with_hash functions into the file
4126 lib/silccrypt/silcpkcs.[ch].
4128 Mon Feb 19 19:59:28 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4130 * The client entry's userinfo pointer must be always valid.
4131 Otherwise the [<unknown>] bug will surface beacuse the WHOIS
4132 will fail since it requires the userinfo. Now, the userinfo
4133 is allocated as "" if actual userinfo does not exist. Actually,
4134 it must exist and it is totally Ok to drop client connections
4135 that does not announce the userinfo. However, we will make
4136 this workaround for now.
4138 * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
4139 to return the remote port by socket.
4141 Mon Feb 19 14:26:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4143 * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
4144 SILC_SERVER_PENDING_EXEC and added an new macro
4145 SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
4146 data or when error occurs while processing the pending command.
4148 Added new argument `destructor' into silc_server_command_pending
4149 and to the SilcServerCommandPending object. This destructor is
4150 now called after calling the pending callback or if error occurs
4151 immediately. If error occurs the actual pending callback won't
4152 be called at all - only the destructor. The destructor may be
4153 NULL if destructor is not needed.
4155 All this applies for client library code as well. Similar
4156 changes were made there as well for the pending commands.
4158 In the client, the application must now allocate the
4159 SilcClientCommandContext with the silc_client_command_alloc
4162 * Added reference counter to the SilcServerCommandContext. Added
4163 function silc_server_command_alloc and silc_server_command_dup
4166 Same type of functions added to the client library for the same
4169 * Removed the cmd_ident from IDListData away since it is now
4170 global for all connections. It is the command identifier used
4171 in command sending and with pending commands. The affected file
4174 * Added reference counter to the SilcSocketConnection objecet to
4175 indicate the usage count of the object. The object won't be
4176 freed untill the reference counter hits zero. Currently only
4177 server uses this, and client ignores it. The client must be
4178 set to use this too later. The affected files are
4179 lib/silccore/silcsockconn.[ch]. Added also the function
4180 silc_socket_dup to increase the reference counter.
4182 This was mainly added because it is possible that the socket
4183 is removed underneath of pending command or other async
4184 operation. Now it won't be free'd and proper DISCONNECTING
4185 flags, etc. can be set to avoid sending data to connection that
4186 is not valid anymore.
4188 * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
4189 the connection. After that it sets SILC_SET_DISCONNECTED.
4190 It is, however, possible that the socket data is not still freed.
4191 The silc_server_packet_process now checks that data is not
4192 read or written to connection that is DISCONNECTED. The socket
4193 get's freed when the reference counter hits zero.
4195 Mon Feb 19 00:50:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4197 * Changed the client operation API: channel_message operation's
4198 `sender' is now the client entry of the sender, not the nickname
4199 and the `channel' is the channel entry, not the channel name.
4201 In the private_message operation the `sender' is now also the
4202 client entry of the sender not the nickname.
4204 Affected file is lib/silcclient/ops.h and all applications
4205 using the client operations.
4207 Sat Feb 17 22:11:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4209 * Moved the calling of ops->connect() from connect_to_server_final
4210 into receive_new_id functin since that is the point when the
4211 client is actually allowed to send traffic to network. The
4212 affected file is lib/silcclient/client.c.
4214 Sat Feb 17 13:15:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4216 * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
4217 NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
4218 (if needs broadcasting) instead of broadcasting the packets one
4219 by one which would make a burst in the network traffic.
4221 * Added `broadcast' argument to the functions in silcd/server.[ch]
4222 silc_server_create_new_channel[_with_id] to indicate whether
4223 to send New Channel packet to primary router.
4225 Sat Feb 17 01:06:44 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4227 * Added new function into the silcd/server.[ch] files:
4228 silc_server_create_new_channel_with_id to create new channel with
4229 already existing Channel ID.
4231 * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
4232 lib/silccore/silcpacket.h. This packet is used t send list of
4233 Set Mode payloads inside one packet. Server uses this to set
4234 the modes for the channels and clients on those channels, that it
4235 announced to the router when it connected to it. The protocol
4236 specification has been updated accordingly.
4238 * The silc_server_new_channel did not handle the packet coming
4239 from normal server as it normally does not send that. However,
4240 when it announces its channels it does send it. Implemented
4241 the support for that.
4243 * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
4244 into the file lib/silccore/id.h.
4246 Fri Feb 16 23:57:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4248 * Fixed memory leaks in the functions silc_idlist_del_client,
4249 silc_idlist_del_channel and silc_idlist_del_server in the file
4250 silcd/idlist.c. All of those leaked like a sieve.
4252 * Fixed some small memory leaks in the client's function
4253 silc_client_notify_by_server.
4255 * Added functions into silcd/server.c: silc_server_announce_clients,
4256 silc_server_announce_channels and silc_server_announce_server.
4257 These functions are used by normal and router server to announce
4258 to its primary router about clients, channels and servers (when
4259 router) that we own. This is done after we've connected to the
4262 These functions effectively implements the following packet types:
4263 SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
4264 and SILC_PACKET_NEW_ID_LIST.
4266 * Added new functions into the silcd/packet_receive.[ch]:
4267 silc_server_new_id_list, silc_server_new_channel_list and
4268 silc_server_new_channel_user_list to handle the incoming
4269 NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
4271 * Added support of changing Channel ID in the function
4272 silc_server_replace_id. If the server that announces a channel
4273 to the router already exists in the router (with same name but
4274 with different Channel ID), router is responsible to send
4275 Replace ID packet to the server and force the server to change
4276 the Channel ID to the one router has.
4278 * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
4279 client that the Channel ID has been changed by the router. The
4280 normal server sends this to the client. Client must start using
4281 the new Channel ID as the channel's ID.
4283 Implemented handling of this new type into lib/silcclient/client.c
4284 into the function silc_client_notify_by_server.
4286 * Added new function silc_idlist_replace_channel_id into the files
4287 silcd/idlist.[ch] to replace the Channel ID.
4289 Fri Feb 16 14:14:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4291 * Call silc_server_command_identify_check always when processing
4292 the IDENTIFY command in silcd/command.c
4294 Thu Feb 15 20:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4296 * Added new packet type SILC_PACKET_HEARTBEAT that is used to
4297 send keepalive packets. The packet can be sent by clients,
4298 servers and routers.
4300 Added function silc_socket_set_heartbeat into the file
4301 lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
4302 If not set, the heartbeat is not performed. The actual
4303 heartbeat is implemented in the low level socket connection
4304 library. However, application is responsible of actually
4307 Added silc_server_send_heartbeat to send the actual heartbeat
4308 packet into silcd/packet_send.[ch]. Server now performs
4309 keepalive with all connections.
4311 * Added silc_task_get_first function into lib/silcutil/silctask.c
4312 to return the timeout task with shortest timeout. There was a bug
4313 in task unregistration that caused problems. TODO has been
4314 updated to include that task system must be rewritten.
4316 * The client library will now resolve the client information when
4317 receiving JOIN notify from server for client that we know but
4318 have incomplete information.
4320 * Rewrote parts of silc_server_remove_from_channels and
4321 silc_server_remove_from_one_channel as they did not remove the
4322 channel in some circumstances even though they should've.
4324 * Encryption problem encountered in server:
4326 The LEAVE command used to send the Channel Key packet to the
4327 router immediately after generating it. However, the code
4328 had earlier sent Remove Channel user packet but not immediately,
4329 ie. it was put to queue. The order of packets in the router
4330 was that Channel Key packet was first and Remove Channel User
4331 packet was second, even though they were encrypted in the
4332 reverse order. For this reason, MAC check failed. Now, this
4333 is fixed by not sending the Channel Key packet immediately but
4334 putting it to queue. However, this is more fundamental problem:
4335 packets that are in queue should actually not be encrypted
4336 because packets that are sent immediately gets encrypted
4337 actually with wrong IV (and thus MAC check fails). So, packets
4338 that are in queue should be encrypted when they are sent to
4339 the wire and not when they put to the queue.
4341 However, the problem is that the current system has not been
4342 designed to work that way. Instead, the packet is encrypted
4343 as soon as possible and left to the queue. The queue is then
4344 just purged into wire. There won't be any fixes for this
4345 any time soon. So, the current semantic for packet sending
4348 o If you send packet to remote host and do not force the send
4349 (the packet will be in queue) then all subsequent packets to the
4350 same remote host must also be put to the queue. Only after the
4351 queue has been purged is it safe again to force the packet
4354 o If you send all packets immediately then it safe to send
4355 any of subsequent packets through the queue, however, after
4356 the first packet is put to queue then any subsequent packets
4357 must also be put to the queue.
4359 Follow these rules and everything works fine.
4361 Thu Feb 15 14:24:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4363 * Added new function silc_server_remove_clients_by_server to
4364 remove all client entries from ID list when the server connection
4365 is lost. In this case it is also important to invalidate all
4366 client entires as they hold the invalid server entry. This
4367 fixes fatal bug when server has lost connection and will reconnect
4370 Wed Feb 14 16:03:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4372 * Made some sanity checks to silc_server_daemonise like to check
4373 whether the requested user and group actually exists.
4375 * Added sanity check to SKE's silc_ske_responder_finish to check
4376 that the public and private key actually is valid.
4378 * Invalidate the client's nickname when receiving Replace ID
4379 packet and the Client ID is being replaced. This means that the
4380 server will query the nickname if someone needs it (client)
4383 * Sort the ID Cache in client library when the ID Cache data
4384 has changed (needs sorting).
4386 * Do not allow for SILC client to create several connections to
4387 several servers. The client does not support windows right now
4388 and generating multiple connections causes weird behaviour.
4390 Irssi-silc client does support windows and can handle several
4391 connections without problems, see: www.irssi.org and SILC plugin.
4393 * Fixed some places where client was added to the IDList. The
4394 rule of thumb is following (in order to get everything right):
4395 If the client is directly connected local client then the
4396 `connection' argument must be set and `router' argument must be
4397 NULL to silc_idlist_add_client function. If the client is not
4398 directly connected client then the `router' argument must
4399 bet set and the `connection' argument must be NULL to the
4400 silc_idlist_add_client function.
4402 * The funtion silc_server_packet_send_local_channel actually did
4403 not check whether the client was locally connected or not. It
4404 does that now. Fixed a bug related to LEAVE command.
4406 * Fixed Remove Channel User payload parsing bug in server's
4407 silcd/packet_receive.c. Fixed a bug related to LEAVE command.
4409 * The server's silc_server_save_channel_key now checks also the
4410 global ID list for the channel as it might not be in the local
4411 list. Fixed a bug related to LEAVE command.
4413 * Is this the end of the [<unknown>] buglet that has been lurking
4414 around for a long time? A little for loop fix in server's
4415 silc_server_command_whois_parse that is used by both IDENTIFY
4416 and WHOIS command. At least, this was a clear bug and a cause
4417 of one type of [<unknown>] buglet.
4419 * WHOIS and IDENTIFY commands call the function
4420 silc_server_command_[whois/identify]_check function even if
4421 we are not router server.
4423 Tue Feb 13 19:55:59 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4425 * Added --with-gmp configuration option. If set the GMP
4426 is always compiled in the SILC source tree. If not set then
4427 it is checked whether the system has the GMP3 installed. If
4428 it has then the GMP won't be compiled (the system's headers
4429 and library is used), if it doesn't have it then the GMP is
4430 compiled in the SILC source tree.
4432 Mon Feb 12 11:20:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4434 * Changed RSA private exponent generation to what PKCS #1
4435 suggests. We try to find the smallest possible d by doing
4436 modinv(e, lcm(phi)) instead of modinv(e, phi). Note: this is
4437 not security fix but optimization.
4439 Sun Feb 11 18:19:51 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4441 * Added new config entry [Identity] to fork the server and run
4442 it as specific user and group. A patch from Bostik.
4444 * Imported Dotconf configuration library into lib/dotconf.
4445 This will be used to create the SILC configuration files later.
4446 It will appear in the distsribution after this commit.
4448 Sat Feb 10 21:13:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4450 * A big code auditing weekend happening. Auditing code for
4451 obvious mistakes, bugs and errors. Also, removing any code
4454 Removed files for being obsolete:
4456 o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
4457 inline in the file lib/silcutil/silcbuffer.h)
4459 o lib/silcutil/silcbufutil.c (the header has inline versions)
4461 Changed code to fix possible error conditions:
4463 o The buffer formatting routines now check that the destination
4464 buffer really has enough space to add the data. This applies for
4465 both buffer formatting and unformatting
4466 (lib/silcutil/silcbuffmt.[ch]). Also, the entire buffer
4467 unformatting was changed to accomodate following rules:
4468 XXX_*STRING_ALLOC will allocate space for the data into the pointer
4469 sent to the function while XXX_*STRING will not allocate or copy
4470 the data into the buffer. Instead it sets the pointer from the
4471 buffer into the pointer sent as argument (XXX_*STRING used to
4472 require that the pointer must be allocated already). This change
4473 makes this whole thing a bit more consistent and more optimized
4474 (note that the data returned in the unformatting with XXX_*STRING
4475 must not be freed now). The routines return now -1 on error.
4477 o Tried to find all code that use buffer_format and buffer_unformat
4478 and added return value checking to prevent formatting and
4479 especially unformatting errors and possible subsequent fatal
4482 o Changed ske->x and ske->KEY to mallocated pointers in
4483 lib/silcske/silcske.h. Fixed possible data and memory leak.
4485 o Added return value checking to all *_parse* functions. Fixed
4486 many memory leaks as well.
4488 o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
4489 so that buffer overflows would not happen. All code now also
4490 checks the return value as it can fail.
4492 Mon Feb 5 20:08:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4494 * Added reconnection support to server if the normal server looses
4495 its connection to the router (for example if router is rebooted).
4496 The server performs normal reconnection strategy implemented
4497 to the server. Affected file silcd/server.c.
4499 Sun Feb 4 13:18:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4501 * Added new packet type SILC_PACKET_SET_MODE that is used to
4502 distribute the information about changed modes (for clients,
4503 channels and clients channel modes) to all routers in the
4504 network. Updated the protocol specification accordingly.
4506 Added functions into silcd/packet_send.c and
4507 silcd/packet_receive.c: silc_server_send_set_mode,
4508 silc_server_set_mode.
4510 Added new files silcmode.[ch] into lib/silccore that implements
4511 the encoding and decoding of Set Mode Payload. Added new type
4512 SilcSetModePayload. Moved the definitions of different modes
4513 from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
4515 Sat Feb 3 15:44:54 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4517 * Oops, a little mistake in server's connection authentication
4518 protocol. The protocol is not ended with FAILURE but with
4519 SUCCESS if the authentication is Ok. :) Affected file is
4522 * Implemented NICK_CHANGE notify handling in server in the file
4523 silcd/packet_receive.c The NICK_CHANGE notify is distributed to
4524 the local clients on the channel. After the changing nickname
4525 in router environment snhould work and the [<unknown>] nickname
4526 should appear no more.
4528 The silc_server_replace_id function that receives the Replace ID
4529 payload now sends the NICK_CHANGE notify type also in the file
4530 silcd/packet_receive.c
4532 * Changed WHOIS and IDENTIFY command to support the maximum amount
4533 of arguments defined in protocol specs (3328 arguments). This
4534 fixed a bug that caused problems when there were more than three
4537 Fri Feb 2 11:42:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4539 * Added extra parameter, command identifier, to the
4540 silc_client_send_command so that explicit command identifier
4543 Changed that ID list routines uses specific command identifier
4544 when sending WHOIS/IDENTIFY requests to the server so that they
4545 can be identified when the reply comes back.
4547 Affected files lib/silcclient/command.[ch],
4548 lib/silcclient/client.c and lib/silcclient/idlist.[ch].
4550 * Added `sender' argument to silc_server_packet_send_to_channel
4551 to indicaet the sender who originally sent the packet to us
4552 that we are now re-sending. Ignored if NULL. Affected file
4553 silcd/packet_send.[ch].
4555 * Added some server statistics support in silcd/server_internal.h
4556 SilcServerStatistics structure and around the server code. Also
4557 send some nice statistics information when client is connecting
4560 Thu Feb 1 23:31:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4562 * Fixed channel ID decoding in server's JOIN command reply in
4563 silcd/command_reply.c
4565 * Fixed braodcasting of replace ID payload to not to send it if
4566 we are standalone server in silcd/packet_receive.c.
4568 * Fixed all channel message sending routines to not to send
4569 packets to clients that has router set, since they are routed
4570 separately in the same function earlier. Affects file
4571 silcd/packet_send.c and all channel packet sending functions.
4573 * In USERS reply, res_argv[i] are not allocated, the table
4574 is allocated. Thus changed that free the table, not its
4577 * In server's whois_check and identify_check if the client is
4578 locally connected do not send any WHOIS commands - they are not
4581 Thu Feb 1 21:32:27 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4583 * Fixed some minor bugs in client when sending WHOIS command. The
4584 arguments was in wrong order.
4586 * Removed statis function add_to_channel from server in
4587 silcd/command.c that was previously used with the joining but
4590 * Tested USERS command in router environment successfully with two
4591 routers, two servers and two clients.
4593 Thu Feb 1 00:54:26 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4595 * Reorganized the USERS command and command reply in client library
4596 in lib/silcclient/command.c and lib/silcclient/command_reply.c.
4597 When the command is given by user we register a pending command
4598 callback that will reprocess the command after the reply has been
4599 received from the server. When reprocessing the packet we then
4600 display the information. Thus, the USERS information is displayed
4601 now in the command callback instead of in the command reply
4602 callback. The processing of the command is same as previously
4603 when server has sent the command reply in the JOINing process.
4605 * Added to USERS command in silcd/command_reply.c to join the client,
4606 we didn't use to know about, to the channel after we've created
4607 a client entry for it. Also, for clienet we did know already still
4608 check whether it is on the channel or not and add it if not.
4610 * Removed silc_server_command_join_notify as the function and its
4613 Tue Jan 30 22:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4615 * Changed the client's pending command handling to the same as the
4616 server's pending command handling. It is also now possible to
4617 execute command reply functions from other command reply
4618 function as the function callbacks for commands and command
4619 replies are one and same. The pending commands are not static
4620 list anymore, it is mallocated SilcDList in lib/silcclient/client.h
4621 in client connection context. Thus, pending commands are server
4622 connection specific as it is convenient.
4624 Changed the function silc_client_command_pending and
4625 silc_client_command_pending_del and added new function
4626 silc_client_command_pending_check. Removed the
4627 SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
4630 * Added cmd_ident, current command identifier, to the client
4631 connection context in lib/silcclient/client.h to keep track on
4632 command identifiers used in command sending. Client's command reply
4633 function handling now supports the mandatory command identifiers.
4635 * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
4636 funtions in client to fully support pending command callbacks.
4638 * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
4639 as one of the arguments to the application in the command reply
4642 * NOTE: The FORWARDED flag is depracated. It used to be depracated
4643 before first releasing SILC but came back. Now it is removed again
4644 and should come back nomore. The FORWARDED flag was used only
4645 by the JOINing procedure by forwarding the command packet to router.
4646 Now, the JOINing procedure has been changed to more generic (due
4647 to various router environment issues) and FORWARDED is not needed
4648 anymore for anything. The protocol specification is yet to be
4651 Now, removed silc_server_packet_forward from server and the flag
4652 SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
4654 Tue Jan 30 00:05:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4656 * Renamed NAMES command to USERS command. The NAMES was named that
4657 due to historical reasons. Now it is renamed. Also, rewrote
4658 parts of the USERS command. The nickname list is not sent anymore
4659 by the server. Only Client ID and mode lists are sent in the USERS
4660 command. Changed this also to the protocol specification.
4662 The client now resolves the names and stuff after it receives
4663 the USERS list from the server when joining to the channel.
4665 * WHOIS and IDENTIFY commands has been changed to support multiple
4666 Client ID's per command. One can now search for multiple users
4667 in the network by sending only one WHOIS or IDENTIFY command.
4668 Changed the code and the protocol specifications.
4670 * Removed silc_server_command_identify_parse and changed that IDENTIFY
4671 uses silc_server_command_whois_parse to parse the request. */
4673 * If normal server, do not parse the WHOIS and IDENTIFY requests
4674 before sending it to the router. Saves some time.
4676 Sun Jan 28 16:19:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4678 * Fixed JOIN command on client library. Wrong number of arguments
4679 used to crash the client.
4681 * Added silc_server_channel_has_global function to check whether
4682 channel has global users or not.
4684 * Added silc_server_channel_has_local function to check whether channel
4685 has locally connected clients on the channel.
4687 * The silc_server_remove_from_one_channel now checks whether the
4688 channel has global users or not after given client was removed from
4689 the channel. It also checks whether the channel has local clients
4690 on the channel anymore. If it does not have then the channel entry
4691 is removed as it is not needed anymore.
4693 * The silc_server_notify now checks on JOIN notify whether the joining
4694 client is one of locally connected or global. If it is global then
4695 the channel has now global users on the channel and that is marked
4696 to the channel entry. Also, it now saves the global client to
4697 global list who is joining and JOINs it to the channel. This is
4698 for normal server, that is.
4700 Changed silc_server_send_notify_on_channel,
4701 silc_server_packet_relay_to_channel and
4702 silc_server_packet_send_to_channel check if we are normal server
4703 and client has router set (ie. global client) do not send the
4704 message to that client, as it is already routed to our router.
4706 * Implemented LEAVE notify type handling in silc_server_notify
4709 * Tested LEAVE command in router environment successfully. Tested
4710 with two routers, two servers and two clients.
4714 * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
4716 * Implemented SIGNOFF notify type handling in silc_server_notify
4719 * silc_server_remove_id now removes the client entry from all channels
4720 it has joined and thusly sends SIGNOFF notify type.
4722 * Rewrote the NAMES list generation in server by removing two excess
4723 loops. The lists are created now inside one loop.
4725 Sat Jan 27 22:34:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4727 * silc_server_remove_channel_user checks now also global list
4728 for channel and client.
4730 * silc_server_new_channel_user checks now both local and global
4731 list for channel and client. Fixed a bug in client id decoding.
4732 Used to decode wrong buffer.
4734 * silc_server_channel_message checks now both local and global
4735 list for channel entry.
4737 * Tested channel joining (hence JOIN) in router environment
4738 successfully. Tested with two routers, two servers and two
4741 * Tested channel message sending in router environment successfully.
4743 Thu Jan 11 03:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
4745 * Added silc_server_save_channel_key into server.[ch] to save the
4746 received channel key in Channel Key payload processing. It is
4747 also used in JOIN command reply handling.
4749 Equivalent function silc_client_save_channel_key added into
4750 client.[ch] into client library.
4752 * Changed JOIN command reply to send information whether the channel
4753 was created or not (is existing already) and the channel key
4754 payload. Changed protocol specs accordingly.
4756 * Fixed bugs in WHOIS and IDENTIFY command reply sending when
4757 the request was sent by ID and not by nickname. Crashed on
4760 Sat Dec 23 21:55:07 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4762 * Fixed a bug in Client library. IDENTIFY and WHOIS reply functions
4763 now correctly save the received data.
4765 * silc_server_free_sock_user_data now notifies routers in the
4766 network about entities leaving the network.
4768 At the same time implemented functions silc_server_remove_id
4769 and silc_server_send_remove_id to receive and send REMOVE_ID
4770 packets. The packet is used to notify routers in the network
4771 about leaving entities. The ID removed will become invalid in
4774 * Added function silc_idlist_del_server into server. Removes and
4775 free's server entry from ID list.
4777 * silc_server_private_message function now checks, if we are router,
4778 that the destination ID really is valid ID, naturally.
4780 * In router when NEW_ID packet is received (for new client) the
4781 hash of the Client ID is saved in the ID Cache but the
4782 client->nickname is set to NULL, instead of putting the hash
4785 IDENTIFY command now also checks that client->nickname must be
4786 valid. If it is not if will request the data from the server who
4787 owns the client. Added new function
4788 silc_server_command_identify_check.
4790 * Added silc_command_set_command into lib/silccore/silcommand.[ch]
4791 to set the command to already allocated Command Payload.
4793 * Tested private message sending in router environment with two
4794 routers, two servers and two clients. Fixed minor bugs and now
4797 * Fixed segfault from client's NAMES command. Used to crash if
4800 * Forwarded packets must not be routed even if it is not destined
4801 to the receiver. Changed server code comply with this.
4803 Sun Dec 17 14:40:08 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4805 * Added `require_reverse_mapping' boolean value to ServerParams
4806 structure. If TRUE (not default) the server will require that
4807 the connecting host has fully qualified domain name.
4809 If the reverse mapping is not required and hostname could not be
4810 found the IP address is used as hostname.
4812 Sat Dec 16 17:39:54 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4814 * Implemented version string checking to both client and server.
4815 The check is incomplete currently due to the abnormal version
4816 strings used in development version of SILC.
4818 * Changed all command functions in server to use the new
4821 Fri Dec 15 15:55:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4823 * Changed char *data to unsigned char *data in ID Cache system to
4824 support binary data as ID Cache data. Changed code to support
4825 binary data in lib/silccore/idcache.c.
4827 * Renamed silc_server_packet_relay_command_reply to
4828 silc_server_command_reply as it is normal packet receiving
4829 function. Rewrote the function to accept command replys for
4830 servers and not only for clients.
4832 * Mark remote router always as registered server if we are connecting
4833 to it. Otherwise, commands sent by the router to us are ignored.
4835 * All ID List find routines now returns the ID Cache Entry pointer
4836 as well if requested.
4838 * WHOIS command works now in router environment, tested with two
4839 routers, two servers and two clients.
4841 * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
4842 in router environment (as it is almost equivalent to WHOIS) but
4843 hasn't been tested thoroughly. Added new functions:
4845 silc_server_command_identify_parse
4846 silc_server_command_identify_send_reply
4847 silc_server_command_identify_from_client
4848 silc_server_command_identify_from_server
4850 * Disabled route cache adding because adding two different ID's with
4851 same IP replaces the old cache entry thus giving wrong route.
4852 The entry->router->connection is always the fastest route anyway
4853 so route cache may not be needed. Of course, new routes maybe
4854 established after receiving the ID when the entry->router->connection
4855 might not be anymore the most optimal.
4857 Thu Dec 14 15:55:35 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4859 * Add route cache for received ID for fast routing.
4861 * Added silc_server_packet_route to route received packet on router
4862 that is not destined to us.
4864 * Renamed silc_server_get_route to silc_server_route_get.
4866 * Added id_string and id_string_len fields into SilcServer to
4867 include encoded ServerID for fast comparing without excess
4868 encoding of the ID's.
4870 * Cleaned up WHOIS command on server side. Added following static
4873 silc_server_command_whois_parse
4874 silc_server_command_whois_check
4875 silc_server_command_whois_send_reply
4876 silc_server_command_whois_from_client
4877 silc_server_command_whois_from_server
4879 * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
4880 arguments in command replies. All command functions should be
4881 updated to use this macro.
4883 Sun Dec 10 23:52:00 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4885 * Minor typo fixes on command reply handling on server.
4887 Tue Nov 28 11:05:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4889 * Added silc_server_command_add_to_channel internal routine to add
4890 the client to the channel after router has created the channel and
4891 sent command reply to the server.
4893 * Added generic silc_server_send_command to send any command from
4896 * Use static buffer with ID rendering instead of duplicating data.
4898 Mon Nov 27 21:39:40 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4900 * Fixed a channel user mode bug when joining to a channel server gave
4901 everybody channel founder rights, oops.
4903 * We mark ourselves as the router of the incoming server connection
4904 if we are router ourselves. This way we can check in some packet
4905 sending functions whether it is locally connected server. For
4906 incoming router connections we put NULL.
4908 * For router sending packets locally means now always sending the
4909 packet cell wide; to local clients and local servers. For normal
4910 server sending packet locally means sending it to only local
4913 * Fixed the JOIN command to really work in router environment. If the
4914 channel is created it is always created by the router. Router is
4915 also responsible of making the initial joining to the channel,
4916 sending JOIN notify to the sending server and distributing
4917 NEW_CHANNEL and NEW_CHANNEL_USER packets. Hence, if the channel
4918 does not exist server doesn't do anything else but forward the
4919 command to the router which performs everything.
4921 * Added silc_server_send_channel_key function to send the Channel Key
4924 * Added silc_server_create_channel_key to create new channel key. The
4925 channel key is now re-generated everytime someone joins or leaves
4926 a channel, as protocol dictates. Note: channel->key_len is the
4929 Wed Nov 22 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4931 * Splitted server.[ch] finally. Created now packet_send.[ch] and
4932 packet_receive.[ch] to separate packet sending and receiving
4933 routines. The server.[ch] now includes everything else including
4934 actual packet processing (writing and reading data) and other
4937 Renamed silc_server_private_message_send_internal to
4938 silc_server_send_private_message. The routine is still though
4939 used only to relay private messages as server does not send
4940 private messages itself.
4942 Renamed silc_server_new_channel to silc_server_create_new_channel
4943 and added new function sicl_server_new_channel that handles the
4944 incoming New Channel packet. Added also new sending function
4945 silc_server_send_new_channel to send New Channel Payload.
4947 * Added new function silc_server_notify to process incoming notify
4948 packet to the server/router. Server may then relay the notify
4949 to clients if needed.
4951 * Added new function silc_server_new_channel_user to process incoming
4952 New Channel User packet. Router will redistribute the packet and
4953 send JOIN notify to its local clients and locally connected servers
4954 if needed. Normal server will send JOIN notify to its local client
4955 on same channel when received this packet. Added also corresponding
4956 sending function silc_server_send_new_channel_user to sent the
4959 * Added boolean route argument to send_notif_to_channel and
4960 packet_send_to_channel functions to attempt to route the packet
4961 if it is TRUE and send only locally if it is FALSE.
4963 Tue Nov 21 19:49:31 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
4965 * silc_server_replace_id now broadcasts the received replace ID
4966 packet if it is not broadcast packet already. The router must
4967 broadcast to inform other routers about changed ID.
4969 * Added backpointer to server's router into SilcServer context in
4970 silcd/server_internal.h.
4972 * Fixed silc_server_packet_broadcast to send correct broadcast
4975 * The channel key is now distributed to the local client as soon
4976 as it is received from the router (in router environment) so that
4977 no other packet may be sent for the channel until client has
4980 * silc_server_remove_channel_user now broadcasts the received
4981 Remove Channel User packet if it is not broadcast packet already.
4982 The router must broadcast to inform other routers about removed
4985 * Added users field into SilcPacketContext that is a reference count
4986 of the context. One can increase the reference count by calling
4987 silc_packet_context_dup which is now changed to just increase the
4988 reference count instead of duplicating the data. The reference
4989 count is decresed by calling silc_packet_context_free that will
4990 free the data after the reference count hits zero.
4992 For now on the packet context and everything allocated into it
4993 (including the raw packet from network) must be freed by calling
4994 the new silc_packet_context_free function. Added also new function
4995 silc_packet_context_alloc that must be used now to allocate the
4996 context. This also means that if a routine is asynchronous from
4997 silc_[client/server]_packet_parse_type the packet context must
4998 be duplicated by calling silc_packet_context_dup. Otherwise it
4999 gets free'd after silc_[client/server]_packet_parse_type returns.
5000 Also, one must remember that if packet is duplicated then its
5001 reference count must be decresed by calling the free function as
5002 many times as it was duplicated.
5004 * Changed SilcBuffer field from protocol contexts to SilcPacketContext
5005 from both client and server.
5007 Mon Nov 20 23:47:03 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5009 * Made joining to a channel working in router environment.
5011 * Cleaned up JOIN command on server side and create function
5012 silc_server_command_join_channel internal routine to make the
5015 Thu Nov 9 21:12:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5017 * Changed silc_command_pending list to SilcDList. Also, added
5018 `ident' field to SilcServerCommandPending structure to identify
5019 the reply and to call correct callback.
5021 Added silc_server_command_pending_check function to replace the
5022 corresnponding macro. The silc_command_pending list is not
5025 * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
5026 to set identifier to previously allocated Command Payload. It
5027 is used to set identifier for command when resending Command
5030 * Added silc_command_payload_encode_payload to encode Command
5031 Payload buffer from SilcCommandPayload structure.
5033 * Added silc_argument_payload_encode_payload to encode Argument
5034 payload buffer from SilcArgumentPayload structure.
5036 Wed Nov 8 21:03:28 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5038 * Changed WHOIS command to support router connection on server side.
5039 The whois request is always sent to router unless the server is
5040 standalone server. After server has received the reply from the
5041 router will it send the reply to the client.
5043 * Added silc_server_packet_broadcast into silcd/server.[ch] to
5044 broadcast received broadcast packet. The function is used only
5045 by router. The broadcast packet is always sent to the router's
5048 * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
5049 render given ID to printable string, for log files for example.
5051 Tue Nov 7 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5053 * Made basic router to router connections working. At least they
5054 can now connect to each other but nothing really works the way
5055 they are supposed - yet.
5057 * Added new initiator token to RouterConnection configuration
5058 file in silcd/serverconfig.[ch]. It is used to tell whether we
5059 are the initiator to the remote router or whether we'll expect
5060 the other end to connect.
5062 * Moved registering of listener task to silc_server_init, hence
5063 the server starts listenning as soon as it is run, even if it
5064 does not have connections to other routers. Let's see how well
5067 * Changed default connection retry timeouts for more suitable in
5070 * Removed cipher and such arguments from silc_idlist_add_client
5071 and silc_idlist_add_server prototypes from silcd/idlist.[ch].
5072 Added new function silc_idlist_add_data to add the keys and stuff
5075 * Added SilcIDListData structure and added it to SilcClientEntry
5076 and SilcServerEntry as their first field in the structure. This
5077 way we can explicitly cast the ID entries to the SilcIDListData
5078 structure and get common data for the entries. In past, we had
5079 to first check what type of connection it is and then cast it to
5080 correct ID entry type. Now, we can directly cast the opaque
5081 pointer to the SilcIDListData (no matter what ID entry it actually
5082 is) and get the data needed.
5084 Mon Nov 6 21:56:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5086 * Wow, found a bug in scheduler. The scheduler uninitialized itself
5087 in some circumstances even if threre were timeout tasks, though not
5088 IO tasks, but tasks anyway. Now fixed.
5090 * Defined SilcServerConnection structure to hold connection specific
5091 stuff about directly connected servers and routers. The definition
5092 is currently in silcd/server_internal.h. I thought about having
5093 a bit more important role fro this struct but for now it is used
5094 only when connecting to other server (or router actually).
5096 * Added connecting retry support in server when connecting to
5097 router(s). The retry feature implement exponential backoff
5098 algorithm. Also, added SilcServerParams structure to hold default
5099 parameters for server. For now, it include these retry settings
5100 and are hard coded. After server is moded to be as Silc Server
5101 Library this structure will be more important.
5103 Sun Nov 5 22:28:44 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5105 * Changed client librarys channel->clients table to SilcList and
5106 changed code accordingly.
5108 Thu Nov 2 16:28:01 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5110 * Changed client's channel table to SilcList and changed code
5111 accordingly. Also changed SilcChannelClientEntry to include back-
5112 pointer to the channel so that client entry can use that structure
5113 as list as well and we have fast cross-reference to the channel.
5114 This change dramatically decreased the complexity of channel
5115 handling with client entry and vice versa (removed one extra
5116 loop when searching for channel entry from many functions).
5118 * Changed server->sim from table to SilcDList and changed code
5121 * NAMES command can now be used from user interface. It will show
5122 the user list on the channel, neatly.
5124 * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
5125 Code now saves realname of the user if it becomes available.
5127 * Renamed configure.in to configure.in.pre and made ./prepare
5128 script to automatically add correct version string to
5129 configure.in which it creates from configure.in.pre.
5131 Wed Nov 1 17:21:26 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5133 * NAMES command reply now shows users mode with the nickname when
5136 * Moved silc_client_ch[u]mode[_char] functions from
5137 silc/clientutil.[ch] to lib/silcclient/client.[ch]. Though, that
5138 place sucks, they are utility functions and should be in some
5141 * Fixed some unsigned int's to unsigned short's. Patch by cras.
5143 * Fixed contrib/getopt*.[ch] to not require config.h. Patch by
5146 Tue Oct 31 20:10:37 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5150 * Added TRQ (efficient deque and list library) into lib/trq. This is
5151 a very good list library that is currently used in the SILC. Defined
5152 SilcList API over the library because I didn't like the API very
5153 much. See lib/trq/silclist.h for the API and examples of how to
5154 use the API. Fixed various places in the code to use the new
5155 SilcList API. The SilcList is meant for lists that has a structure
5156 already defined as a list. It is not suitable to add just some
5157 context to the list (in TRQ, the context is the list actually).
5159 So, I defined SilcDList that can be used for the purpose where
5160 predefined list structure does not exit. This can be used as
5161 such list. Now some context just can be added to the SilcDList.
5162 Currently this list is not used in the SILC just yet, though there
5163 are a lot places where this can replace dynamically allocated
5164 tables and I will fix these places, later, to use SilcDList.
5165 See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
5166 and use TRQ internally).
5168 Also fixed some annoying warning messages that the original TRQ
5169 code generated. Also minor changes to TRQ's Makefile.in.
5171 * Added support for querying by Client ID to both WHOIS and
5172 IDENTIFY commands into server, as required by the protocol.
5174 * Removed method function pointers from SilcBuffer structure. They
5175 weren't used to anything and just increased the context size for
5176 no good reason. This change also made silc_buffer_alloc and
5177 silc_buffer_free functions inline functions.
5179 * Disabled command flooding detection support until it's fixed so
5180 that it accepts commands in but does not execute them more than once
5183 * Added silc_net_localhost(), to return local hostname, into
5184 lib/silcutil/silcnet.[ch]. Also added client->hostname pointer
5185 that must be initialized before calling silc_client_init.
5187 * Added new function: silc_server_send_notify_on_channels to send
5188 notify messages to all channels client has joined. It is assured
5189 that the message is sent only once per client.
5191 * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
5192 lib/silcutil/silcutil.[ch] as silc_format function. The new
5193 function is generic and is used by server as well, not only by
5194 the logging routines.
5196 * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
5197 the provided version string was not acceptable. Added new function:
5198 silc_ske_check_version into lib/silcske/silcske.h. The function
5199 must be implemented by the application (client or server) and it
5200 does not reside in the SKE library. The function checks the version
5201 string remote end sent.
5203 * Added back pointers (to opaque context and to SilcSocketConnection)
5204 into SilcPacketContext structure into lib/silccore/silcpacket.h.
5206 * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
5207 duplicate packet context structure.
5209 * Changed `notify' client operation to send same arguments as client
5210 receives from server except for ID's. ID's are mapped to correct
5211 ID entry and that is returned. Also, if channel entry is not sent
5212 by server but the notify is for channel the channel entry is sent
5213 to application (otherwise application doesn't know that it is for
5214 channel (library gets it from packet's Destination ID)).
5216 * Added silc_client_remove_from_channels into client library to
5217 remove a client from all channels it has joined to. Used when
5218 received SIGNOFF notify from server. Added also new function
5219 silc_client_replace_from_channels to replace old ID entry with
5220 new ID entry on all channels. Used when received NICK_CHANGE
5223 * Fixed ID Cache list handling in silc_idlist_get_client in
5224 lib/silcclient/idlist.c. Also, added silc_idlist_get_client_by_id
5225 to get (or query) client by ID.
5227 * Updated TODO list.
5229 * Added connection authentication status message defined by the
5230 protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
5231 support for these into the code in client and server side.
5233 * Added generic function silc_client_send_command to send any command
5234 with variable argument list. Application should use this function
5235 to send commands if the command functions provided by the library
5236 does not suite for the application's user interface needs.
5238 * Added new `failure' client operation. Application is notified about
5239 received failure packet if client is executing a protocol. In this
5240 case the protocol's execution has failed.
5242 * Added SKE's end notify to send the SKE_SUCCESS notify message that
5243 is required by the protocol.
5245 * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
5246 packet from remote. SILC_PROTOCOL_STATE_ERROR indicates local
5249 * Added status flag to SilcSKE object to indicate realtime status
5250 of the SKE protocol.
5252 * Application receives now exactly same command reply arguments as
5253 the library receives from server. However, if ID is received the
5254 corresponding ID entry is returned to the application (eg. Client
5255 ID is mapped to correct SilcClientEntry entry and that is returned).
5256 Changed command_reply client operation due to this change.
5258 * Changed all ID's in commands and in command replys as ID Payloads.
5259 Change affected both client and server side codes.
5261 All ID's sent in SILC network (with execption of ID's in SILC
5262 Packet header) are sent in ID Payload to support variable length
5265 * Server now notifies nick changes and notifies all clients on
5266 the channels about the new nickname (about the new Client ID,
5269 * Implemented CMODE command to change channel modes. Supports all
5270 channel modes defined by the protocol specs except ban and invite
5271 lists. (Also, private channel key mode is supported but support for
5272 setting private channel key in client is missing, thus, this mode
5273 has no effect on client side (except that server requires that the
5274 client uses private channel key and normal channel traffic does not
5277 Also, invite mode works per se, but INVITE command does not work
5278 yet correctly, so you can set channel as invite only channel but
5279 inviting clients to the channel does not work (it is yet to be
5280 thought what's the best way to do it).
5282 * Added new command SILC_COMMAND_CUMODE to change user mode on the
5283 channel. Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
5284 Implemented CUMODE command to change user's mode on the channel.
5285 Supports all modes defined by the protocol specs.
5287 * Added NAMES command reply to return users modes on the channel.
5289 * Removed unnecessary and slow ciphers from lib/silccrypt.
5291 * Set SO_KEEPALIVE option to connection sockets by default.
5293 * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
5295 * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE. Also,
5296 redefined the Notify Payload into protocol specs.
5298 * Added silc_id_payload_parse_id to get ID directly from raw
5301 Mon Oct 9 20:57:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5303 * Changed SILC_COMMAND_IDENTIFY in protocol specification to
5304 accept searching by Client ID as well.
5306 * Added support for LEAVE and SIGNOFF notify types in client library.
5308 * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
5309 to parse ID Payload from raw data.
5311 Sun Oct 8 19:33:08 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5313 * Added flags parameter into silc_ske_assemble_security_properties
5314 function in lib/silcske/silcske.[ch].
5316 * Changed notify client operation to fit better for notify messages
5317 sent by server. The notify payload received from server is now
5318 passed to the application (after parsing it to SilcNotifyPayload).
5319 It is application's responsibility to retrieve the arguments
5320 from the payload and show the message the way it wants. The message
5321 sent by server is implementation specific.
5323 * Changed public keys to comply with the protocol specification.
5324 Old public keys are not supported anymore and are not compatible.
5326 * Removed nickname from Channel Payload as the latest draft removed
5327 it. The client must resolve the nickname from the NAMES command
5328 reply received when it joined the channel.
5330 Also, changed all channel_xxxx_payload to channel_payload_xxxx.
5332 Sat Oct 7 21:55:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5334 * Fixed some errors in protocol specification drafts.
5336 * Created lib/silccore/silcnotify.c to implement Notify Payload
5337 encoding and decoding, lib/silccore/silcpayload.[ch] to implement
5338 generic payloads described by protocol specifications. The file
5339 includes implementations for ID Payload and Argument Payload.
5341 * Changed Command Payload implementation to use the new Argument
5342 Payload. Changed command_xxxx_payload to command_payload_xxxx
5343 to comply with SILC coding conventions.
5345 * Added suppport for Argument Payload handling in Notify Payload
5346 implementation as protocol requires it. Added the new support
5347 into server and client lib as well.
5349 Thu Oct 5 21:16:28 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5351 * Added support for multiple nicknames on same channel. [n] is
5352 added locally to the nickname if there are more than one same
5353 nicknames on the channel.
5355 * Server now sends all nicknames that matched WHOIS request.
5356 Client also shows the list received from server.
5358 * Added TOPIC command to client side. User can now set and show
5359 current topic on channel.
5361 * Added MOTD command to client and server. Also, server sends the
5362 motd when client connects to the server.
5364 * Changed version strings to comply ISO 8601.
5366 Wed Oct 4 23:29:06 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5368 * Fixed protocol error handling in client library. It should now
5369 cope even if the SKE fails for some reason.
5371 * Made new protocol specification drafts for submitting to IETF.
5373 * Implemented TOPIC command to server in silcd/command.c.
5375 * Added two new notify types into lib/silccore/silcnotify.h:
5376 SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
5377 notify nickname change and topic setting/change on a channel.
5379 * API change of command_reply operation in client library. The
5380 application gets now the status type received from server as well.
5382 Sat Sep 30 16:57:42 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5384 * Removed the function just added to lib/silcutil/silcschedule.[ch].
5386 * Cras fixed and optimized the packet handling even further and
5387 it should work now. Minor change to the prototype of function
5388 silc_packet_receive_process in lib/silccore/silcpacket.[ch].
5390 Sat Sep 30 08:48:47 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5392 * Added new function into lib/silcutil/silcschedule.[ch]:
5393 silc_schedule_with_fd to select() a specified fd. The function
5394 returns after timeout expires or data arrives or goes. The
5395 function is used by packet routines to wait that all data is
5396 received from network.
5398 * Fixed data reading from network in lib/silccore/silcpacket.c.
5399 The code now assures that all data is read from the fd and then
5400 continues packet processing. This was a bug fix since the code
5401 used to drop some data in some circumstances.
5403 * Added new function into lib/silcclient/client.[ch]:
5404 silc_client_start_key_exchange to start key exchange after
5405 connection has been established to server. The code internally
5406 now uses this funtion but its main purpose was to provide it
5407 for applications that perform their own connecting. After
5408 application has created a connection it merely calls this
5409 function to start the key exchange between client and server.
5410 The library takes care of everything else after that.
5412 Updated also lib/silcclient/README to explain the usage of
5415 * Do not send to application information that connection has
5416 been established. Application gets notified it by connect
5419 Thu Sep 28 23:40:19 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5421 * Applied cras's patch to add silc_schedule_one function. The
5422 function runs scheduler once and returns.
5424 * Fixed the scheduler after cras messed it up. The timeout
5425 handling works now as it's supposed to work.
5427 * Added into lib/silccore/ silcnotify.h to include notify
5428 message types support. Changed silc_server_send_notify*
5429 functions, in server.[ch], to support those new notify types.
5430 Added the support for the notify types into client library,
5431 as well. Added new notify client operation into ops.h in
5434 * Changed silc_server_packet_send_to_channel to send normal
5435 packets instead of just channel message packets. The function
5436 is now used to send the notify packets to channels. It is not
5437 used to send channel message packets anymore, as server never
5440 * Added explicit casting into lib/silcutil/silcbuffmt.c to few
5441 va_arg()s as it seems to require it nowadays. I guess, if SILC
5442 is compiled with older va_arg() the new code should work anyway.
5444 Wed Sep 13 18:10:14 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5446 * Splitted core library. Core library (lib/silccore) includes
5447 now only SILC protocol specific core (and common) components.
5448 Created new utility library (lib/silcutil) that includes more
5449 generic purpose stuff. The stuff for util library was taken
5450 from the old core library. This was minor and easy split.
5452 * Created SILC Client Library (lib/silcclient) that includes
5453 implementation of the SILC client without user interface. This
5454 was major move from silc/ directory. The code has been changed
5455 so that it is transparent towards the user interface. The
5456 silc/ directory includes now the same user interface as before
5457 and it uses the new client library. Read lib/silcclient/README.
5458 Basicly, the client library performs everything else related
5459 to SILC except user interface handling. Also, configuration
5460 files are considered to be part of user interface and library
5461 does not handle them.
5463 This change also changed a lot of structures, function naming etc.
5464 Most important change was that SilcClientWindow object was
5465 renamed to SilcClientConnection in the client library. Created
5466 also new file lib/silcclient/ops.h. Also added new files
5467 silc/local_command.[ch] and silc/client_ops.[ch].
5469 All these changes were made to make it easier for user interface
5470 designers to create what ever user interface for the SILC client
5473 It is also expected that the server will be moved to lib
5474 directory as well and SILC Server Library will be created;
5475 sometimes in the future.
5477 * Removed Local commands from lib/silccore/silccommand.h as
5478 they are application specific and new client library does not
5479 handle any of those anymore.
5481 * Several functions moved to lib/silcutil/silcutilc.[ch] from
5482 old client implementation in silc/.
5484 * Added support for callback functions in SILC_LOG_* macros.
5485 Application can now set its own callbacks that will be called
5486 instead of using the default functions that will always print
5487 the debug messages to stderr (or stdout). Also, debugging can
5488 now be disabled by setting silc_debug to FALSE and re-enabled by
5489 setting it to TRUE. Note, that logging will still work even
5490 if debugging is disabled.
5492 New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
5493 silc_log_reset_callbacks, silc_log_set_debug_callbacks and
5494 silc_log_reset_debug_callbacks.
5496 * To enable debugging in silc client one must give now -d
5497 option on command line.
5499 * Changed silc_schedule_init to automatically allocate task queues
5500 if they are not allocated before calling it.
5502 Thu Sep 7 10:49:33 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5504 * Added GMP 3.1 into math library.
5506 Sun Aug 20 21:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5508 * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
5509 a channel in SILC network. The packet is used by servers and
5510 routers to notify other routers that user has left a channel.
5511 This little feature was missing until now. Added the feature
5512 to protocol specification as well.
5514 Added functions: silc_server_send_remove_channel_user and
5515 silc_server_remove_channel_user into server.[ch].
5517 * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
5518 lib/silccore/silcpacket.h. However, they are not implemented
5521 Sat Aug 19 23:04:16 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5523 * Fixed joining to a channel and sending channel messages
5524 between server and router. The channel message sending should
5525 now work inside a cell.
5527 Tue Jul 25 20:46:13 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5529 * Fixed the private message sending between server and router.
5530 The private message sending should now work inside a cell.
5532 * Added silc_server_replace_id into server.[ch] to replace
5533 existing ID in the SILC network.
5535 * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
5536 and silc_idlist_replace_server_id into idlist.[ch] in server.
5538 Mon Jul 24 18:33:31 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5540 * Fixed the server to server connections. Server can again now
5541 connect to router. Router to router connections probably does
5544 Thu Jul 20 13:15:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5546 * Added dynamic protocol registering support. Now protocols can
5547 registered and unregistered on the fly. Patch by cras.
5549 Wed Jul 19 19:08:46 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5551 * Added lib/contrib directory to hold routines that some platforms
5552 don't have but are needed by SILC.
5554 * Added getopt.c, getopt1.c and getopt.h from GNU C library
5555 into lin/contrib to provide getopt() and getopt_long() for
5556 those who don't have it.
5558 Tue Jul 18 20:41:20 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5560 * Added AWAY command to client. When away message is set and
5561 client receives a private message packet the client automatically
5562 replies to the sender with the away message.
5564 * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin. This
5565 bug seemed to be the cause of recent problems when compiling
5568 * Added version detection support to SKE protocol specification
5569 and added the new changes to the SKE implementation as well.
5570 There were other minor changes in the SKE protocol as well.
5572 Many changes in lib/silcske/silcske.[ch] and in
5573 lib/silcske/payload.[ch].
5575 * Added ^U functionality, clear input line. Patch from cras.
5577 Mon Jul 17 23:33:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5579 * Mainly small bugfixes on core library. Fixed some debugging
5580 logging and buffer overflow in silclog.c.
5582 * Updated config.sub and config.guess on the distribution tree.
5584 Sat Jul 15 15:33:48 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5586 * Added command lagging support in server. Client may execute
5587 commands now only once in two seconds.
5589 Thu Jul 13 22:10:21 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5591 * Optimized packet reception. MAC computation and checking is now
5592 also more optimized. A lot previously duplicated code is now
5593 used as generic by both client and server.
5595 * Fixed key pair generation in clientutil.c
5597 Wed Jul 12 18:28:07 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5599 * Added into lib/silccore/silcbufutil.[ch] new function;
5600 silc_buffer_realloc.
5602 * Moved generic packet sending/encryption functions to
5603 lib/silccore/silcpacket.[ch] from client and server. Some
5604 rewriting of the functions.
5606 * Moved all generic packet reception/decryption functions to
5607 lib/silccore/silcpacket.[ch] from client and server. The
5608 packet processing is now much cleaner in both client and server.
5609 These were major changes in both client and server.
5611 * Created many common functions in server to do packet sending.
5612 Previously code were duplicated a lot, this has been removed
5615 Tue Jul 11 20:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5617 * Rewrote major parts of the ID cache system. Don't know
5618 whether it is better now or not but at least the API is more
5621 * Major rewrite on ID cache stuff on client because of the ID
5622 cache API changes. Added idlist.c to client.
5624 * Also major rewrite on ID cache stuff on server as well.
5625 Major rewrite of idlist.[ch]. SilcXXXList's are now named
5626 SilcXXXEntry's. We won't keep anymore idlist specific pointers
5627 in hand, instead they are all put into the ID cache system now.
5628 All server_idlist_* routines uses ID cache now instead of
5629 traversing its own lists (those lists does not exist anymore).
5630 SilcIDList though still exists. Also, SilcXXXEntry's are
5633 Sun Jul 9 15:19:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5635 * Finally made the SKE implementation compliant to the protocol
5636 specification. All mp integers are now binary encoded as
5637 opposed being HEX encoded.
5639 * Added lib/silcmath/mpbin.[ch]. Encoding mp intergers to and
5642 * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
5643 functions: silc_[encode/decode]_pem. Also added function
5644 silc_encode_pem_file to PEM encode with newlines ('\n') for
5647 * SILC public keys are now encoded either PEM or binary. Same
5648 option is for private keys as well. By default private keys
5649 are binary encoded and public keys PEM encoded. Silly HEX
5650 encoding were removed.
5652 * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
5653 function to create fingerprints.
5655 * Fixed a bug in SHA1; does not change the original data anymore.
5657 * Partly implemented INFO command on client and server side.
5658 Fixed CLEAR command. Changes to SERVER command; show current
5659 server(s) when giving command without arguments. Added
5660 VERSION command to client.
5662 * Added check to server that unregistered connections cannot
5663 execute commands (unless it is specificly allowed).
5665 Thu Jul 6 18:12:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5667 * Fixed screen refresh.
5669 * Fixed channel joining bug from client. On some circumstances
5670 client tried to join to a channel it had already joined.
5672 * Added public key verification process into client's protocol.c.
5673 The client now verifies the public key from user and saves
5674 it into ~./silc/serverkeys/ directory.
5676 Added into: clientutil.[ch]: silc_client_verify_server_key.
5678 * Changed SKE protocol's silc_ske_initiator_finish function
5679 to accept callback function that verifies the received public
5680 key. Removed old silc_ske_verify_public_key function.
5682 Wed Jul 5 19:19:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5684 * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
5685 silc_pkcs_private_key[_data]_set.
5687 * Made the password and public authentication more cleaner in
5688 server's protocol.c.
5690 * Removed historic and obsolete protocol `channel_auth' from
5691 both client and server.
5693 * Removed wrong way of sending command status messages from
5694 server to client in server's command.c. The old way violated
5695 protocol specification.
5697 Changes to silccore/silccommand.[ch]: removed
5698 silc_command_encode_status_payload -> not needed anymore,
5699 changed silc_command_encode_payload_va to accept extra
5700 argument on variable argument list. The argument type must
5701 now be provided to the function. Also, added new function:
5702 silc_command_encode_reply_payload_va which is same as
5703 normal command_encode_payload_va except command status type
5704 is provided as extra argument.
5706 Tue Jul 4 18:26:39 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5708 * Added ~./silc directory handling. The directory includes the
5709 public and private keys for the client.
5711 Added silc_client_check_silc_dir, silc_client_create_identifier
5712 and silc_client_load_keys.
5714 * Implemented SILC protocol compliant public key. Added public
5715 and private key saving to and loading from files.
5717 Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
5718 silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
5719 silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
5720 silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
5721 silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
5723 Implemented: silc_pkcs_save_[public/private]_key[_data] and
5724 silc_pkcs_load_[public/private]_key.
5726 Mon Jul 3 18:51:27 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5728 * Added silc_server_get_route (route.[ch]) to get connection
5729 data for the fastest route for given ID.
5731 * Implemented INVITE command on client and server. The command
5732 were re-defined in the SILC Protocol Specification and the
5733 implementation now complies with the specification.
5735 * Implemented PING command on client and server.
5737 * Implemented NAMES command on client and server. The server side
5738 supports currently only normal server not router server yet.
5739 Some changes to NAMES definition in SILC protocol specification.
5741 Sun Jul 2 18:23:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5743 * Implemented LEAVE command on client and server.
5745 * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
5746 again. This change was made to the protocol as well. Server
5747 should not violate the protocol specification anymore.
5749 Fri Jun 30 14:03:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5751 * Added SOCKS4 and SOCKS5 support to SILC client. SOCKS5
5752 was tested. SOCKS4 was not but should work anyway.