1 Tue May 22 17:27:16 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3 * Added silc_hash_table_list, silc_hash_table_get and the
4 SilcHashTableList structure to provide an alternative way to
5 traverse the hash table. The affected files are
6 lib/silcutil/silchashtable.[ch].
8 * Changed the server's idlist routines to use the hash table
9 routines to optimize the code.
11 Mon May 21 21:46:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
13 * Replaced the client entry's `channel' list and channel entry's
14 `user_list' list to hash tables for optimized lookup. Changed
15 the code to use the hash table interface around the code.
16 Affected file lib/silcd/idlist.[ch].
18 * Added `auto_rehash' boolean argument to the function
19 silc_hash_table_alloc to indicate whether the hash table should
20 auto-rehash when it thinks is appropriate time. It will
21 increase the hash table size if the there is twice as much
22 entries in the table than the size of the table, and will
23 decrease the size if there are twice as less entries than
24 the size of the table.
26 Mon May 21 09:51:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
28 * Fixed silc_xxx_get_supported to not crash at some circumstances.
30 Sun May 20 13:45:58 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
32 * silc_idcache_purge_by_context deletes the entry now by context
33 as it is supposed to do. Affected file lib/silccore/idcache.c.
35 * Send the ERR_NO_SUCH_NICK in the WHOIS command reply if the
36 client is not anymore valid (WHOWAS givens the info) and not
37 the ERR_NO_SUCH_CLIENT_ID if the nickname still exists.
39 Sat May 19 16:30:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
41 * Removed the `data' and `data_len' arguments from the ID Cache
42 interfaces and added `name' argument. ID Cache does not handle
43 anymore the binary data only a names associated with given ID.
45 * When hashing a Client ID with silc_hash_id the entire ID is
46 not hashed anymore, instead only the hash of the Client ID is
47 hashed. This way we can access the Client ID from the cache
48 with Client ID but with the hash of the ID (which is a hash of
49 the nickname) as well without any difference in performance.
51 Added also silc_idcache_find_by_id_one_ext to do one on one
52 searching when we have the actual ID. Added also function
53 silc_hash_client_id_compare. The affected files are
54 lib/silccore/idcache.[ch] and lib/silcutil/silcutil.[ch].
56 * When hashing the name associated with a ID it is always done
57 in lowercase. This way we can access the cache without worrying
58 about case-sensitivity, even though, for example nicknames are
61 * Fixed a bug in server with channel message sending. It put
62 wrong ID type as destination ID. The affected file
65 * silc_idcache_del_by_context now deletes from all hash tables
66 by context. Affected file lib/silccore/idcache.c.
68 Fri May 18 17:42:00 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
70 * Changed the client library to use the new ID Cache interface.
71 Changes around the source tree.
73 * Added silc_hash_table_rehash_ext to rehash with specific
74 hash function. Affected file lib/silcutil/silchashtable.[ch].
76 * Added silc_hash_string_compare to compare two strings in the
77 hash table. Affected file lib/silcutil/silcutil.[ch].
79 Fri May 18 11:18:45 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
81 * Added new function silc_idcache_del_by_context into the
82 lib/silccore/idcache.[ch].
84 * Changed the server's ID list routines to use the new ID Cache
85 interface. Changes around the source tree.
87 Fri May 18 08:35:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
89 * Added silc_hash_table_del[_by_context]_ext functions in to the
90 lib/silcutil/silchashtable.[ch].
92 Removed silc_hash_table_find_all* routines and added new
93 silc_hash_table_find_foreach to replace them.
95 Added silc_hash_table_replace_ext function as extended
96 replacing function. Separated the simple hash table interface
97 from the extended hash table interface in the file
98 lib/silcutil/silchashtable.h.
100 * Fixed minor bugs and changed it to use some of the new
101 hash table functions in lib/silccore/idcache.c
103 Thu May 17 18:15:12 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
105 * Added new function silc_hash_table_find_all to return all keys
106 in the hash table by the specified key. As the hash table is
107 collision resistant it also makes it possible to have several
108 duplicate keys in the hash table. This function may be used to
109 find all of the keys from the hash.
111 Added user_context arguments to the SilcHashFunction,
112 SilcHashCompare and SilcHashDestructor to deliver user specified
115 Added new fuctions silc_hash_table_find[_all]_ext to do
116 extended lookup with specified hash and compare functions and
117 specified user contexts.
119 Added new function silc_hash_table_add_ext to add the key
120 with specified hash function and user context.
122 Added new function silc_hash_table_foreach to traverse all
123 entrys in the hash table. Added SilcHashForeach callback
126 Added new function silc_hash_table_del_by_context to delete
127 the entry only if the context associated with the key matches.
129 Affected files are lib/silcutil/silchashtable.[ch].
131 * Removed silc_hash_[server/client/channel]_id and added just
132 silc_hash_id to the lib/silcutil/silcutil.[ch]. Added also
133 silc_hash_id_compare to compare two ID's using as the hash table
134 comparison function. Added also silc_hash_data to hash
135 binary data and silc_hash_data_compare to compare it.
137 * Removed silc_idlist_find_client_by_hash as it is not needed
138 anymore. Affected file silcd/idlist.[ch].
140 * Rewrote the entire ID Cache system (in lib/silccore/idcache.[ch])
141 to use internally the SilcHashTable. The new ID Cache is a lot
142 faster than the old one. Some of the ID Cache interface was also
143 rewritten and obsolete and stupid functions were removed.
145 Wed May 16 23:03:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
147 * Added entry_count field to the SilcHashTable to keep the number
148 of the entries in the table. Implemented the function
149 silc_hash_table_rehash. Added new function
150 silc_hash_table_count. Affected file lib/silcutil/silchashtable.c.
152 Fixed a minor bug in silc_hash_table_free.
154 * Added silc_hash_string, silc_hash_uint, silc_hash_ptr,
155 silc_hash_client_id, silc_hash_server_id and silc_hash_channel_id
156 into the lib/silcutil/silcutil.[ch].
158 Wed May 16 20:02:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
160 * Implemented a collision resistant hash table into the
161 lib/silcutil/silchashtable[ch]. See the header and the source
162 for the SilcHashTable API.
164 Tue May 15 22:05:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
166 * Merged dotconf version 1.0.2 into lib/dotconf.
168 Sun May 13 19:32:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
170 * Do not compile anything in lib/silcsim/* if the SIM support
171 is not enabled. The tree should now compile without problems
174 Thu May 10 22:49:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
176 * Compiled the SILC under cygwin. Compiled and tested briefly
177 without problems. More tests needed. The SIMs didn't compile
180 * Added various #ifdef HAVE_* stuff to lib/silccrypt/silrng.c.
182 * Fixed possible crash in silc_get_username in the
183 lib/silcutil/silcutil.c.
185 Tue May 8 09:04:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
187 * Fixed a va_arg in silc/client_ops.c.
189 * Oops, RC5 routines were named AES and caused some problems
190 when not using SIM's. Affected file lib/silccrypt/rc5.c.
192 Sun May 6 13:59:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
194 * Added new SilcIDIP structure into the lib/silccore/id.h and
195 replaced the old `ip' fields from all SILC ID's to that type.
196 This is a step towards IPv6 support.
198 The silc_id_get_len takes now the ID as an extra argument.
199 The silc_id_id2str, silc_id_str2id and silc_id_dup now supports
200 both IPv4 and IPv6 based ID's.
202 The affected files are lib/silccore/id.[ch] and other files
203 around the tree using these routines.
205 * Removed the ID length arguments in server from various
206 silc_server_send_notify_* routines -> they are not needed
209 Sat May 5 13:56:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
211 * Fixed memory leak in silc_encode_pem_file in the file
212 lib/silcutil/silcutil.c.
214 Thu May 3 21:23:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
216 * Check minor version as well in the SKE. Affected files are
217 silcd/protocol.c and lib/silcclient/protocol.c.
219 * Added --identifier option to the server so that an identifier
220 can be when creating the public key for the server. Affected
221 file is silcd/silcd.c.
223 * Fixed minor decoding bug in silc_pkcs_decode_identifier in
224 lib/silccrypt/silcpkcs.c.
226 Wed May 2 20:50:49 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
228 * Register default ciphers and stuff when using -C option with
229 the server. Affected file sildc/silcd.c.
231 * Put back the servers public key filename format, it is better
232 than the new one. For now, the client keys are saved with the
233 new filename format. The affected file silc/client_ops.c.
235 * Implemented the Cipher API for the rest of the ciphers that
236 did not implement it or implemented it the wrong way.
238 Wed May 2 13:31:26 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
240 * Register default ciphers and stuff when using the -S option
241 in the client. Affected file silc/silc.c. Same also when
242 creating new key pair with -C option.
244 Tue May 1 14:18:13 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
246 * Fixed the silc_verify_public_key client operation function to
247 save the public keys differently. The fingerprint is now
248 used as filename and not the hostname. This way also the
249 client keys are saved uniquely and not with hostnames. The
250 affected file is silc/client_ops.c.
252 * Trimmed the silc_hash_fingerprint function to remove extra
253 whitespaces from the end of the fingerprint. The affected
254 file is lib/silccrypt/silchash.c.
258 * Added silc_cipher_register_default function to register all
259 default ciphers. It can be used when configuration files
260 does not exist and the application does not want any specific
261 ciphers in any specific order.
263 The SilcDList is now used as silc_cipher_list dynamically
264 allocated cipher list. Removed the static list all together
265 and now all ciphers must be allocated to the dynamic list.
266 The silc_cipher_alloc routine was changed to check only the
269 All silc_cipher_* routines that used to return int returns
272 The affected files lib/silccrypt/silccrypt.[ch].
274 * The same thing was done to silc_hash_* as for silc_cipher_*
275 routines. Affected files lib/silccrypt/silchash.[ch].
277 * The same thing was done to silc_pkcs_* as for silc_cipher_*
278 routines. Affected files lib/silccrypt/silcpkcs.[ch].
279 Added also silc_pkcs_[un]register[_default] functions.
280 Removed the data_context from the PKCS API.
282 * Added silc_hmac_register_default function to register default
283 hmacs. Affected files lib/silccrypt/silchmac.[ch]. Added also
284 SILC_ALL_HMACS macro that can be used with silc_hmac_unregister
285 to unregister all hmacs at once.
287 * Register the default ciphers, hash functions, PKCSs and HMACs
288 if client's configuration file does not exist. The affected
291 * The client did not load the hash functions from the SIM
292 modules at all. Added support for this. Affected file is
295 * When decoding public key with silc_pkcs_public_key_decode, check
296 the supported algorithm only if PKCS are registered. Affected
297 file lib/silccrypt/silcpkcs.c. The same was done with the
298 silc_pkcs_private_key_decode.
300 * Fixed the SILC List routines to keep the list always in order.
301 It used to change the list's order when traversing the list but
302 not it preserves the order. Affected file lib/trq/silclist.h.
304 Mon Apr 30 17:29:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
306 * Added the client library to use the SilcSocketConnection's
307 reference counter (by silc_socket_dup) to prevent the bug that
308 the socket object may be freed underneath async operation.
310 * The name resolv library checking fixes in the configure.in.pre.
313 * Created new version of the protocol drafts for future
314 development. The -03 drafts are the ones that will be changed
315 in the trunk now and the -02 will remain as they are.
317 * Send list of CUMODE notifys to the router when announcing
318 the channel users to the router. Affected file silcd/server.c.
319 If the router receiving channel founder CUMODE for a channel
320 that already has channel founder it will send CUMODE notify
321 to the sender to remove the channel founder rights from the
322 announced client. Affected file silcd/packet_receive.c.
324 * The CUMODE notify may now use Server ID as well as the entity
325 who changes the mode. Updated protocool specs.
327 * Updated INSTALL and README files.
329 Sun Apr 29 23:17:50 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
331 * New web pages in the http://silc.pspt.fi. The pages was
336 Sun Apr 29 13:33:41 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
338 * Implemented the [DenyConnectin] config section in the server.
339 Added silc_server_config_denied_conn to check whether incoming
340 connection is denied. Affected file silcd/serverconfig.[ch].
342 * Do not check the ports when checking the incoming configuration
343 data if the port is 0, meaning any. Affected file is
344 silcd/serverconfig.c.
346 Fri Apr 20 18:58:43 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
348 * Fixed buffer overflow in silc_string_compare in the file
349 lib/silcutil/silcutil.c.
351 * Fixed double free in silc_server_command_leave in the file
354 Fri Apr 20 14:00:11 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
356 * Fixed the version checking in the server. Affected file is
359 Thu Apr 19 19:52:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
361 * Fixed the configuration data fetching when accepting new
362 connections in the server. Affected file silcd/server.c.
364 Thu Apr 19 11:40:20 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
366 * Added `sender_entry' argument to the function
367 silc_server_packet_relay_to_channel so that we can check
368 whether some destination actually belongs to the same route
369 the sender belongs (ie, we must not resend the packet to the
370 sender). Affected file silcd/packet_send.[ch].
372 * Added `servername' field to the SilcClientEntry in the server
373 to hold the name of the server where client is from. Affected
374 file is silcd/idlist.h.
376 Wed Apr 18 22:19:03 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
378 * Moved the channel message encrypting in the router betwen
379 router connections from silc_server_channel_message to the
380 silc_server_packet_relay_to_channel since we want to check
381 whether we have anybody channel before encrypting anything.
382 Affected files silcd/packet_[receive/send].c.
384 Tue Apr 17 21:18:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
386 * Fixed the [AdminConnection] server config section to support
387 multiple entries. Affected file silcd/serverconfig.c.
389 * Added support into the server to check the validity of the
390 incoming connection before executing any KE or authentication
393 * The connection configuration is now saved to the KE and
394 connection auth protocol contexts and not fetched anymore in
395 the protocol. Affected files silcd/server.c, silcd/protocol.[ch].
397 * The local hosts listenning address and port is also resolved
398 now when starting the server. We want to have the socket object
399 to include the real address and port for the listener. Added
400 new function silc_net_check_local_by_sock into the files
401 lib/silcutil/silcnet.[ch].
403 * Fixed a broadcast bug in server -> do not broadcast if we
406 * Fixed a routing bug. Do not route broadcast packets ever.
407 Broadcast packets must be processed always and not routed since
408 they may be destined to some other host than yourself and thus
409 would get routed without no good reason. Affected file is
412 * Added function silc_server_config_is_primary_route to check
413 whether primary router connection has been configured (a router
414 configuration that we are initiating). If there is not, we
415 will assume that there is only two routers in the SILC network
416 and we will use the incoming router connection as our primary
417 route. Affected files silcd/serverconfig.[ch], silcd/server.c.
419 * Changed the order of the broadcasting. Broadcast _after_ the
420 packet has been processed not before. Affected file is
423 * Fixed a [ClientConnection] parsing bug. The port was never
424 parsed correctly thus resulting to port 0. Affected file
425 silcd/serverconfig.c.
427 * Fixed silc_server_send_notify_args -> it ignored the `broadcast'
428 argument and did not set the broadcast packet flag. Affected
429 file silcd/packet_send.c. Fixed same bug in the function
430 silc_server_send_notify as well.
432 * If we receive NEW_ID packet for our own ID in the server, ignore
435 Mon Apr 16 12:10:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
439 * Removed the nickname from the Private Message Payload.
440 Updated the code and the protocol specs.
442 * Updated protocol specs for submitting to the IETF.
444 * Tweaked the Random Number Generator a bit. Affected file
445 lib/silccrypt/silcrng.c. Exported a new function
446 silc_rng_[global]_add_noise which can be used to add more
449 Sat Apr 14 16:21:32 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
451 * Do not parse packets with different timeout when protocol
452 is active -> may cause problem with rekey. Affected file
455 * When server receives signoff notify it must not create
456 new channel key if the client is on any channels since the
457 sender of the signoff notify will create it.
459 Fri Apr 13 17:12:46 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
461 * Added printing of error messages during SKE protocol from the
462 failure packet sent by server during SKE. Affected file
465 * Removed the client's failure_callback handling with timeout
466 and handle it immediately when received.
468 * The SKE library returned wrong type in SUCCESS and FAILURE
469 packets. They must be 32 bit MSB not 16 bit MSB.
471 Fri Apr 13 00:09:08 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
473 * Ok, rewrote the logic of the re-key and now it seems to work.
474 I tested it on high traffic with frequent re-keys without
475 problems. Added hmac_receive (and renamed hmac to hmac_send)
476 in SilcClientConnection in lib/silcclient/client.h and
477 in SilcIDListData in silcd/idlist.h. Also, removed the
478 SilcPacketParserContext's cipher and hmac fields as they are
479 not needed anymore and actually caused some problems when
480 the ciphers and hmac's changed underneath the packet parser.
482 Thu Apr 12 14:42:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
484 * If re-key protocol is active then process the incoming packets
485 synchronously since we must assure that icoming packets encrypted
486 with the old key is processed before the new keys is set to
487 use. This is true other packets than for REKEY packets.
488 Affected file silcd/server.c. The same was done to client library
489 as well, affected file lib/silcclient/client.c.
491 Thu Apr 12 12:01:52 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
493 * Fixed bug in client and server to accept the force send if
494 the packet is send from silc_[server/client]_packet_process
495 function. Otherwise the packets are never delivered, oops.
497 Wed Apr 11 22:10:15 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
499 * Disable force sending of packets when REKEY protocol is active.
500 We must assure that no packet is sent directly when rekey is
501 performed. All packets must be sent through packet queue.
502 Added macro SILC_SERVER_IS_REKEY to silcd/server.h and
503 SILC_CLIENT_IS_REKEY to lib/silcclient/client.h. Affected
504 function is silc_[server/client]_packet_send_real to check
507 * Replaced the SIM paths from example config files to
508 /usr/local/modules. Also, make install creates now
509 /usr/local/silc/logs directory to hold all the SILC server
512 Wed Apr 11 16:59:59 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
514 * Made the configure.in.pre work on Solaris. Patch by salo.
516 * Made all ciphers compatible with non-x86 machines. Defined
517 CBC mode macros into lib/silccrypt/ciphers_def.h.
519 Tue Apr 10 20:32:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
521 * Fixed the make install.
523 Tue Apr 10 16:20:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
525 * When MAC computation fails the silc_packet_decrypt returned 0
526 even though it was supposed to return -1. Fixed this. The
527 affected file is lib/silccore/silcpacket.c.
529 * Do not replace the config files in /etc/silc (in make install)
530 if they already exist. Affected file ./Makefile.am.
532 * Do not send re-key packets immediately but through packet queue.
533 Affected file silcd/protocol.c and lib/silcclient/protocol.c.
535 * Changed silc_net_check_host_by_sock to return FALSE if the
536 IP/DNS could not be resolved. Though, it returns the IP address
537 now even if it could not resolve it (but returns also FALSE).
538 Affected file lib/silcutil/silcnet.[ch].
540 Mon Apr 9 21:54:44 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
542 * Added silc_pkcs_decode_identifier to decode the public key's
543 identifier. Affected file lib/silccrypt/silpkcs.[ch].
544 Added also silc_pkcs_free_identifier. Added also new context
545 SilcPublicKeyIdentifier.
547 * Added -S option to the silc client. It is used to dump the
548 contents of the specified public key file.
550 * Changed the PKCS api to return the public key length when
551 setting the public key.
553 * Fixed a fatal bug in the public and private key file loading.
554 Affected file lib/silccrypt/silcpkcs.c.
556 * Execute the packet parsing for client with zero (0) timeout
557 if the protocol is active. Affected file silcd/server.c.
559 Sun Apr 8 19:30:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
561 * Made the key generation options to the silcd program. Added
562 -C option, equivalent to client's option.
564 * Added new [ServerKeys] config section to the server. It
565 configures the server's public and private key.
567 * Defined generic Public Key Payload into the protocol
568 specification to send specific type of public keys and
571 * Defined new command SILC_COMMAND_GETKEY to fetch a client's
572 public key or certificate.
574 * Implemented the GETKEY command to the server and to the
575 client library and on user interface.
577 Sun Apr 8 01:37:21 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
579 * Made preliminary `make install' work.
581 Thu Apr 5 17:42:30 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
583 * Added SilcServerRekey context into silcd/idlist.h.
585 * Added the PFS support as defined in the specification to the
586 SKE protocol. Affected files lib/silcske/*.c.
588 * Added `ske_group' field to the SilcServerRekey context to hold
589 the number of the SKE group that is used with PFS in re-key.
590 Affected file silcd/idlist.h.
592 * Added PFS re-key support to the server. Affected file is
595 * Added silc_protocol_cancel to cancel execution of the next
596 state of the protocol. Affected file is
597 lib/silccore/silcprotocol.[ch].
599 * Added the re-key support with and without PFS to the client
600 library. Re-key is performed once in an hour, by default.
602 Added new protocol type SILC_PROTOCOL_CLIENT_REKEY.
603 Added silc_client_rekey_callback and silc_client_rekey_final.
604 Affected files are lib/silcclient/protocol.[ch] and
605 lib/silcclient/client.[ch].
607 * Removed the `hmac_key' and `hmac_key_len' fields from the
608 SilcClientConnection structure; not needed. Affected file is
609 lib/silcclient/client.h.
613 Wed Apr 4 16:32:31 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
615 * Do not ask whether user wants to use the negotiated private key
616 for private messages, just use it. Affected file is
617 silc/local_command.c.
619 * Added `send_enc_key' and `enc_key_len' fields to the
620 SilcIDListData structure since they are needed in the re-key
621 phase. Affected file is silcd/idlist.[ch].
623 * Implemented the simple re-key protocol into the server.
624 Affected files silcd/server.c and silcd/protocol.[ch]. The
625 re-key will be performed once in an hour, by default.
627 Added new protocol type SILC_PROTOCOL_SERVER_REKEY.
628 Added silc_server_rekey, silc_server_rekey_callback and
629 silc_server_rekey_final.
631 * Removed Tunneled flag from the protocol. Updated the code
632 and the specifications.
634 * Adde `pfs' field to the SilcIDListData to indicate whether
635 the PFS is to be performed in the re-key. Affected file is
638 Tue Apr 3 21:52:42 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
640 * Defined uint8, int8, uint16, int16, uint32, int32, uint64 and
641 int64 of at least the xintXX size. If void * is less that 4
642 bytes uint32 * will be used. Defined bool as boolean.
644 * Changed _ALL_ unsigned long and unsigned int to uint32,
645 unsgined short to uint16 in the source tree.
647 * Fixed a fatal bug in silc_server_remove_clients_by_server. Do
648 not handle clients that has entry->data.registered == FALSE.
649 They are not in the network anymore. Affected file is
652 Tue Apr 3 16:39:19 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
654 * Implemented the sending of the SERVER_SIGNOFF notify in the
655 server. Affected file is silcd/server.c.
657 * Added silc_server_send_notify_args into silcd/packet_send.[ch].
658 Added also silc_notify_payload_encode_args into the
659 lib/silccore/silcnotify.[ch].
661 * Implemented ther SERVER_SIGNOFF notify handling in the server.
662 Affected file silcd/packet_receive.c.
664 * Implemented the SERVER_SIGNOFF notify handling in the client
665 library. Affected file lib/silcclient/client_notify.c. Also,
666 implemnted the printing of the SERVER_SIGNOFF info to the
667 application. Affected file silc/client_ops.c.
669 * The silc_idlist_del_server now returns TRUE or FALSE to indicate
670 if the deleting was successful. Affected file silcd/idlist.[ch].
672 * Added support for public key authentication in the connection
673 authentication protocol in the client library. Affected file
674 lib/silcclient/protocol.c.
676 * Changed the server's silc_idlist_get_clients_by_* interface
677 to support already allocated array so that new entries may be
678 added to pre-allocated array. Affected file silcd/idlist.[ch].
679 This fixes some bugs with WHOIS, WHOWAS and IDENTIFY commands
682 * All command reply functions in the server now calls the
683 pending command callback even if error occured. This way the
684 error will be delivered to the client as well. Affected files
685 silcd/command.c and silcd/command_reply.c.
687 * Fixed INFO command to return local server's info if no server
688 was provided. Affected file lib/silcclient/command.c.
690 * Removed RESTART command for good. Updated the code and the
693 * Rewrote parts of the task system. It is a bit simpler now.
694 Removed unsued task priorities. The affected files are
695 lib/silcutil/silctask.[ch].
697 Mon Apr 2 20:02:33 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
699 * Moved the USERS printing from the library to the application.
700 Affected files lib/silcclient/command.c and silc/client_ops.c.
702 Mon Apr 2 13:13:23 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
706 * Added channel key re-key support. The re-key is perfomed
707 only by the router and is done once in an hour. Added `rekey'
708 field to the SilcChannelEntry in the server. Affected files
709 silcd/server.c and silcd/idlist.h.
711 * Added silc_task_unregister_by_context into the file
712 lib/silcutil/silctask.[ch].
714 Sun Apr 1 19:49:34 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
716 * Added SILC_UMODE_GONE mode to indicate when the client is not
717 present in the SILC network. Added also support to the local
718 command AWAY that will set this mode. Added support of showing
719 "xxx is gone" in WHOIS command. The USERS command shows the
722 * Fixed setting server and router operator privileges in the
723 server's UMODE command. Affected file silcd/command.c.
725 * Merged the SKE KE1 and KE2 payloads into one payload. The
726 new KE payload is equivalent to the old KE2 payload.
728 Cleaned up the SKE Start Payload parsing. It now uses the
729 simple buffer unformatting to do the parsing. A lot faster
732 Added new Mutual Authentication flag (SILC_SKE_SP_FLAG_MUTUAL)
733 to the SKE that is used to indicate whether both of the SKE
734 parties should perform authentication. By default only the
735 responder performs authentication. By setting this flag also
736 the initiator must do authentication. By default it is unset
737 since in normal SKE case, client to server connection, only
738 the responder should do authentication. When doing SKE between
739 two clients both should perform authentication. Updated the
740 code and the protocol specs.
742 * A little fix to IDENTIFY command in the server. Search the
743 client first by hash not nickname. Affected file is
746 * Fixed the silc_client_close_connection to support closing
747 the client to client connections wihtout deleting too much
748 data. Affected file lib/silcclient/client.c.
750 * Fixed a fatal bug in server and client; if KE1 or KE2 packets
751 are received if protocol used to be active but is not anymore
752 the application would crash due to NULL pointer dereference.
753 Affected files silcd/server.c and lib/silcclient/client.c.
755 * Added `hash' field to the SilcClientConnection to include
756 the hash function negotiated in the SKE protocol.
758 * Added new channel mode SILC_CMODE_FOUNDER_AUTH that is used
759 to set the channel founder authentication data. A client can
760 claim the founder rights later by providing the authentication
761 data to the CUMODE command using SILC_CUMODE_FOUNDER mode.
762 This way the channel founder can regain the channel founder
763 privileges even it is left the channel. This works only on
764 local server and the client must be connected to the same
765 server to be able to regain the founder rights. Updated the
766 protocol specs accordingly.
768 Added support to the CMODE command in the client to set the
769 founder auth data. Read the README to see how to set it.
771 Added support to the CUMODE command to claim the founder
772 rights. Read the README to see how to do it.
774 Added support for the founder authentication to the Channel
775 Entry in the server. Affected file silcd/idlist.h.
777 Added support for the SILC_CMODE_FOUNDER_AUTH mode in the
778 server's CMODE command. Affected file silcd/command.c.
780 * Added the following new functions into lib/silccore/silcauth.[ch]:
781 silc_auth_get_method and silc_auth_get_data.
783 * The server now saves the remote hosts public key to the
784 SilcIDListData pointer. Affected file silcd/protocol.c.
786 * The normal server now does not remove the channel entry from
787 the cache if the founder authentication data is set. It used
788 to remove it if the founder was the last one on the channel on
789 the server and left the channel. The auth data is saved and
790 if the channel is re-joined later the old entry is used with
791 the old auth data. Affected files silcd/command_reply.c and
794 * Removed the `pkcs' field from the SilcIDListData structure
795 in the server; it is not used. Affected file silcd/idlist.h.
797 Sat Mar 31 15:38:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
799 * Fixed packet processing on slow links. Partial packets were
800 never re-processed because the incoming data buffer was cleared
801 by the application. Application must not directly clear the
802 sock->inbuf, the packet processing routines handle it. Fixed
803 this in client library and in server.
805 Fri Mar 30 16:35:27 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
807 * Fixed the WHOIS and IDENTIFY send reply function to really
808 check whether to send list or just one entry. Affected file
811 * Cleaned up the LEAVE command's channel key distribution. The
812 affected file silcd/command.c.
814 * Changed CMODE_CHANGE's <Client ID> to <ID Payload> as server
815 can enforce the channel mode as well. In that case the ID
816 includes the ID of the server. The code now enforces the
817 mode change if the router have different mode than the server.
819 * The notify client operation with CMODE_CHANGE notify can now
820 return NULL client_entry pointer if the CMODE was not changed
821 by client. Application must check for this.
823 * Added <Server ID> argument to INFO command to support server
824 info fetching by Server ID.
826 * Added silc_server_announce_get_channel_users to get assembled
827 packets of channel users of the specified channel. Affected
828 file silcd/server.[ch].
830 * Fixed bug in CHANNEL_CHANGE notify in the server. The new ID
831 was freed underneath the ID Cache.
833 * Re-announce clients when the server received CHANNEL_CHANGE
834 notify from the router. Affected file silcd/packet_send.c.
836 Thu Mar 29 19:10:28 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
838 * Fixed a fatal bug when client does /join 1 2 3 4 5 6 the server
839 crashed since it did not handle the fact that there is no cipher
840 called "3" and didn't check the error condition. Now fixed.
842 * Added SILC_MESSAGE_FLAG_REQUEST message flag as generic request
843 flag. It can be used to send message requests.
845 Thu Mar 29 12:26:25 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
847 * Implemented the RESTART command in the client.
849 * Added SILC_MESSAGE_FLAG_NOTICE message flag for informational
850 notice type messages. Added notice printing to the user
853 * The channel keys are not re-generated if the channel's mode
854 is PRIVKEY, ie private key on the channel exists. Affected
855 files silcd/server.c and silcd/command.c.
857 * Fixed a little bug in channel message delivery when channel
858 private keys are set in the server. Affected file is
861 * Changed the setting on channel->on_channel = TRUE from the
862 silc_client_save_channel_key to the JOIN command reply. The
863 key payload is not received if the private channel key is set.
864 Affected file lib/silcclient/command_reply.c and the
865 lib/silcclient/client_channel.c.
867 * When the CMODE_CHANGE notify is sent and the channel private
868 key mode is removed the channel key must be re-generated in
869 other cells as well. Added this support for the router in the
870 silcd/packet_receive.c.
872 * Added new local command NOTICE to send notice message on
873 channel. Affected file silc/local_command.[ch].
875 Wed Mar 28 23:55:54 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
877 * Added new local command ME to the client. It is used to send
878 message to a channel with SILC_MESSAGE_FLAG_ACTION to indicate
879 some action. Affected file silc/local_command.[ch].
881 * Changed channel_message and private_message client operations
882 to deliver the message flags to the application. Added also
883 the `flags' arguments to the silc_client_send_channel_message
884 and silc_client_send_private_message functions. Affected file
887 Wed Mar 28 20:50:47 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
889 * Redefined the Private Message Payload to support private message
890 keys and to support the new private message flags. Updated
891 the protocol specs. Flags makes it possible to have for example
894 * Added new type SilcPrivateMessagePayload and defined an API
895 for it in the lib/silcclient/silcprivate.[ch].
897 * Tested private message private keys successfully. Tested the
898 private message key set, unset and list commands with the new
901 * Redefined the Channel Message Payload to include the channel
902 message flags (equal with private message flags) to support
903 for example CTCP style messages.
905 * Defined some of the message (for channel and private message)
906 flags. Updated the protocol specs and added the flags to the
907 lib/silccore/silcchannel.h. The type is SilcMessageFlags.
909 Wed Mar 28 15:52:36 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
911 * Added SilcKeyAgreementStatus type to the key agreement routines
912 to indicate the current status and error if one occured.
913 The status types are defined in the lib/silcclient/silcapi.h.
915 * Added new local command KEY that is used to set and unset private
916 keys for channels, set and unset private keys for private messages
917 with remote clients and to send key agreement requests and
918 negotiate the key agreement protocol with remote client. The
919 key agreement is supported only to negotiate private message keys,
920 it currently cannot be used to negotiate private keys for channels,
921 as it is not convenient for that purpose.
923 * Fixed a minor pending callback setting bug in the function
924 silc_client_get_client_by_id_resolve, now the function works.
925 Affected file lib/silcclient/idlist.c.
927 * Added function silc_net_get_local_port to get local bound
928 port by socket. Added to lib/silcutil/silcnet.[ch].
930 * Added `sockets' and `sockets_count' fields to the SilcClient
931 object. They hold the sockets of the listenning sockets in
932 the client. Listenning sockets may be for example the key
933 agreement server. Affected file lib/silcclient/client.[ch].
934 Added functions the silc_client_add_socket and the
935 silc_client_del_socket. They are exported to the application
938 * Added ~./silc/clientkeys to support other client's public keys.
940 * Renamed verify_server_key client operation to verify_public_key
941 and added one argument to indicate the type of the connection
942 (server, client etc.).
944 Tue Mar 27 22:22:38 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
946 * Added silc_server_connection_auth_request to handle the
947 incoming CONNECTION_AUTH_REQUEST packet. Affected file is
948 silcd/packet_receive.[ch].
950 * Added silc_server_send_connection_auth_request into the
951 silcd/packet_send.c to send the connection auth request packet.
953 * Cleaned up the silcd/protocol.c a bit and fixed some memory
956 * Fixed the public key authentication in responder side in the
957 server. The `auth_data' pointer includes the SilcPublicKey
958 not the path to the public key. Affected file silcd/protocol.c.
960 * Implemented the public key authentication in the initiator side
961 in the server. Affected file silcd/protocol.c.
963 * Removed the [RedirectClient] config section from the server
964 configuration. Is not needed and I don't want to implement it.
966 Tue Mar 27 12:49:56 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
968 * Cleaned up the CMODE command in the server. It now works
969 correctly and supports all the modes defined in the protocol.
970 Affected file is silcd/command.c.
972 * Added `hmac_name' field to the SilcChannelEntry in the server
973 to hold the default HMAC of the channel. It can be set when
974 creating the channel (with JOIN command). Affected files
977 * Added <cipher> and <hmac> argument to the CMODE_CHANGE notify
978 type to indicate the change of the current cipher and hmac
979 on the channel. Client can safely ignore the <cipher> argument
980 (if it chooses to do so) since the CHANNEL_KEY packet will
981 force the channel key change anyway. The <hmac> argument is
982 important since the client is responsible of setting the new
983 HMAC and the hmac key into use.
985 * Fixed the CMODE command in the client library as well.
987 * Tested CMODE command in router environment successfully.
989 Mon Mar 26 14:39:48 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
991 * Show the version of the remote client (or server) when connecting
992 to the server. It is logged to the log file. Affected file
995 * Fixed the KILLED notify handling in the client library. The
996 client must be removed from all channels when receiving the
999 Also, do not remove the client entry when giving the KILL
1000 command but when the KILLED notify is received.
1002 * Removed silc_idlist_find_client_by_nickname from the server.
1003 Not needed anymore. Affected files silcd/idlist.[ch].
1005 * Implemented the CHANNEL_CHANGE notify type handling to the
1006 server. Affected file silcd/server.c.
1010 Mon Mar 26 12:11:14 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1012 * Added silc_server_send_notify_invite to send the INVITE
1013 notify between routers.
1015 * Implemented the INVITE command correctly to the server.
1017 * Implemented the INVITE notify type handling in the server.
1019 * Implemented the INVITE command to the client library and on the
1022 Sun Mar 25 20:27:09 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1024 * Added function silc_server_get_client_resolve to find the
1025 client entry by ID from all ID lists and then resolve it
1026 (using WHOIS) if it cannot be found. Affected file is
1029 Sun Mar 25 13:52:51 EEST 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1031 * Implemented the BAN command to the client library.
1033 * The JOIN command in the server now checks the invite list
1036 * Changed the silc_command_reply_payload_encode_va and the
1037 silc_command_payload_encode_va to support that if argument is
1038 NULL it ignores and checks the next argument. Affected file
1039 lib/silccore/silccommand.c.
1041 * Added silc_server_send_notify_ban to send the BAN notify
1042 type between routers.
1044 * Chaned the silc_notify_payload_encode to support that if
1045 argument is NULL it ignores and checks the next argument.
1046 Affected file lib/silccore/silcnotify.c.
1048 * Tested ban lists in router environment successfully.
1050 Sat Mar 24 14:47:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1052 * Implemented BAN command to the server, in silcd/command.[ch].
1054 * Removed the BAN and INVITE_LIST modes from the CMODE command
1057 * Added function silc_string_match to regex match two strings.
1058 Affected files lib/silcutil/silcutil.[ch].
1060 Fri Mar 23 22:02:40 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1062 * Redefined parts of the SilcChannelEntry in the server to support
1063 the new ban and invite lists.
1065 Fri Mar 23 16:25:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1067 * Redefined the INVITE command. The same command can be used to
1068 invite individuals to the channel but also to manage the invite
1069 list of the channel (to add to and remove from the invite list).
1070 Updated the protocol specs.
1072 * Added new command SILC_COMMAND_BAN that can be used to manage
1073 the ban list of the channel. Updated the protocol specs.
1075 * Removed the channel modes: the SILC_CMODE_BAN and the
1076 SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
1077 in the CMODE command. The equivalent features are now available
1078 using INVITE and BAN commands. Updated the protocol specs.
1080 * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
1081 in the network about change in the current ban list. The notify
1082 type is not used by the client.
1084 * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
1085 support the invite lists.
1087 Thu Mar 22 22:52:23 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1089 * Added new function silc_string_regexify that converts string
1090 including wildcard characters into regex string that can
1091 be used by the GNU regex library. Added into the file
1092 lib/silcutil/silcutil.[ch].
1094 Added silc_string_regex_combine to combine to regex strings
1095 into one so that they can be used as one regex string by
1096 the GNU regex library. Added into the file
1097 lib/silcutil/silcutil.[ch].
1099 Added silc_string_regex_match to match two strings. It returns
1100 TRUE if the strings match. Added into lib/silcutil/silcutil.[ch].
1102 Thu Mar 22 15:29:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1104 * Imported GNU regex to the soruce tree into lib/contrib.
1105 Fixed some compiler warning from the regex.c.
1107 Wed Mar 21 15:27:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1109 * Fixed MOTD command in the server to work in router environment.
1111 * Fixed the MOTD command in the client library to support
1112 the server argument in the command.
1114 * Added `nickname_len' argument to the silc_idlist_add_client
1115 in the server, as the `nickname' argument may be binary data
1118 * Added silc_idlist_get_channels to return all channels from
1121 * Implemented LIST command to the server. Affected file is
1124 * Implemented the LIST command to the client library and on the
1127 * Added [<user count>] argument to the LIST command reply.
1128 With private channels the user count is not shown.
1130 * Updated TODO and README.
1132 Tue Mar 20 21:05:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1134 * The client entry's data.registered must be TRUE even with
1135 global client entry on global client list. The data.registered
1136 is used to check whether the client is anymore in the network,
1137 for example with WHOWAS command so it must be valid.
1139 * Fixed the WHOWAS command in the server. It now actually works
1140 in router environment. Added function into silcd/command_reply.c
1141 silc_server_command_reply_whowas_save.
1143 * Added silc_idlist_purge function to the silcd/idlist.c
1144 to periodically purge the ID Cache.
1146 * Fixed INFO command in the server. It works now in router
1147 environment. Added <server name> argument to the INFO command
1148 reply. Updated the protocol specs.
1150 * Fixed minor bug in silc_idcache_purge to not purge if the
1151 expire value is zero.
1153 * Fixed various bugs in WHOIS and IDENTIFY command handling as
1154 they were buggy because of the WHOWAS information.
1156 * Fixed local command MSG to handle the async resolving of
1157 the remote client properly. It used to fail the first MSG.
1158 Affected file silc/local_command.c.
1160 * Added `data_len' field to SilcIDCache context.
1162 Tue Mar 20 16:29:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1164 * Update TODO. Todo in commands in the server.
1166 Tue Mar 20 15:45:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1168 * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
1169 used by routers as broadcast packet to inform other routers
1170 about the changed user mode.
1172 Implemented the notify handling in the server. Affected file is
1173 silcd/packet_receive.c. Added the function
1174 silc_server_send_notify_umode to the silcd/packet_send.[ch].
1176 * Added new generic Channel Payload and deprecated the New Channel
1177 Payload. The New Channel Payload is now the generic Channel
1180 * Added new argument `mode' to the silc_server_send_new_channel
1181 as it is required in the Channel Payload now.
1183 * Renamed the SilcChannelPayload to SilcChannelMessagePayload
1184 and created a new and real SilChannelPayload to represent the
1185 new generic Channel Payload. Implemented the encode/decode
1186 for Channel Payload. Affected file lib/silccore/silcchannel.[ch].
1188 * Added silc_server_get_client_channel_list to return the list
1189 of channels the client has joined for WHOIS command reply.
1190 Affected file silcd/server.[ch].
1192 * Implemented the channel list sending in the WHOIS command reply
1193 in server and in the client.
1195 Implemented the channel list displaying on the user interface
1196 as well. Affected file silc/client_ops.c.
1198 * Added silc_channel_payload_parse_list to parse list of Channel
1199 Payloads. It returns SilcDList list of SilcChannelPayloads.
1200 Client for example can use this function to parse the list of
1201 channels it receives in the WHOIS command reply. The caller
1202 must free the list by calling silc_channel_payload_list_free.
1203 Affected files lib/silccore/silcchannel.[ch].
1205 Mon Mar 19 21:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1207 * Added one new argument <user mode> to the WHOIS command reply
1208 to return the mode of the user in SILC. Updated the protocol
1211 Implemented it to the server and client.
1213 Mon Mar 19 18:43:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1215 * Fixed the mode printing on the user interface on joining.
1216 Affected file silc/client_ops.c.
1218 * Implemented the UMODE command and user modes in general to the
1219 client library and to the user interface.
1221 * Implemented the UMODE command to the server.
1223 * The server now sends UNKNOWN_COMMAND error status if client sends
1224 unknown command. Affected file silcd/command.c.
1226 * All server commands now handle the command identifier the right
1227 way when sending the command reply to the client. The client can
1228 use to identify the command replies with the identifier.
1230 Mon Mar 19 16:13:07 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1232 * Added silc_server_get_client_route to resolve the route to
1233 the client indicated by the client ID. Affected file is
1236 * Added silc_server_relay_packet as general function to relay
1237 packet to arbitrary destination. This deprecates functions
1238 like _send_private_message_key, _relay_notify etc. Affected
1239 file is silcd/packet_send.[ch].
1241 Removed silc_server_send_key_agreement,
1242 silc_server_send_private_message_key and
1243 silc_server_packet_relay_notify functions from the file
1244 silcd/packet_send.[ch].
1248 * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
1249 server. Affected file silcd/packet_receive.[ch].
1251 * Implemented the KILL command to the client. Implemented the
1252 SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
1253 Affected files lib/silcclient/command[_reply].c and
1254 lib/silcclient/client_notify.c. Implemented the KILL notify
1255 printing in the user inteface.
1257 * Fixed a lot silc_parse_nick memory leaks from the client
1258 library in the file lib/silcclient/command.c.
1260 * Changed the silc_server_send_notify_on_channels's `sender'
1261 argument from SilcSocketConnection to SilcClientEntry to
1262 check the sender as entry and not as connection object and not
1263 to send to the client provided as argument. The affected file
1264 is silcd/packet_send.[ch].
1266 * The notify packets that are destined directly to the client used
1267 to not to be processed by the server. Now changed that and the
1268 server processes all notify packets. After relaying the packet
1269 to the client the notify packet is processed in the server.
1271 * The silc_server_free_client_data now checks whether there is
1272 pending outgoing traffic for the client and purges the data to
1273 the network before removing the client entry.
1275 Sun Mar 18 21:02:47 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1277 * Added SILC_NOTIFY_TYPE_KILLED notify type. It is sent when
1278 an client is killed from the SILC Network. Updated the protocol
1281 Added new function silc_server_send_notify_killed to the
1282 silcd/packet_send.[ch].
1284 * Added function silc_server_packet_relay_notify to relay notify
1285 packets that are destined directly to a client. In this case
1286 the server does not process the notify packets but merely relays
1287 it to the client. Affected file silcd/packet_send.[ch].
1289 Added also silc_server_packet_process_relay_notify to check
1290 whereto relay the notify. Affected file is
1291 silcd/packet_receive.[ch].
1293 * Implemented the KILL command to the server.
1297 * Added the backup schema desgined last fall to the protocol
1298 specs for everyone to see. The specification is in the
1299 *-spec-xx.txt draft and the packet type definitions for the
1300 backup routers is in *-pp-xx.txt draft. Thusly, added also
1301 new packet type SILC_PACKET_CELL_ROUTERS.
1303 * A big security problem in the implementation discovered. The
1304 signoff of an client did not cause new channel key generation
1305 which it of course should've done. The channel keys must be
1306 always re-generated when client leaves (or signoffs) the channel.
1307 The silc_server_remove_from_channels funtion now handles
1308 the channel key re-generation.
1310 * Added `sender' argument to the silc_server_send_notify_on_channels
1311 to not to send the client provided as argument. Affected file
1312 silcd/packet_send.[ch].
1314 Fri Mar 16 15:52:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1316 * Implemented OPER and SILCOPER commands into the server and
1319 * Added silc_auth_verify and silc_auth_verify_data to verify
1320 the authentication directly from the authentication payload.
1321 It supports verifying both passphrase and public key based
1322 authentication. Affected file lib/silccore/silcauth.[ch].
1324 * Added `hash' field to the SilcIDListData structure. It is the
1325 hash negotiated in the SKE protocol. Affected file is
1328 * Slight redesigning of the SilcAuthPayload handling routines.
1329 Do not send SilcPKCS but SilcPublicKey as argument.
1331 * Implemented the public key authentication support to the
1332 serverconfig. The public key is loaded from the provided path
1333 and saved as authentication data to void * pointer. Thus,
1334 changed the unsigned char *auth_data to void *auth_data;
1336 * Fixed SHUTDOWN command to send the reply before the server
1337 is shutdown. :) Affected file silcd/command.c.
1339 * Fixed fatal bug in CONNECT command. The hostname was invalid
1340 memory and server crashed. Affected file silcd/command.c.
1342 * Fixed fatal bug in CLOSE command. The server_entry became
1343 invalid but was referenced later in the command. Affected file
1346 Thu Mar 15 12:46:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1348 * Fixed fatal bug in failure packet handling. Server ignored
1349 the failure and thus crashed when it came.
1353 Wed Mar 14 20:37:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1355 * Added new SILC_CF_LAG_STRICT command flag that strictly forces
1356 that the command may be executed only once in (about) 2 seconds.
1357 The old SILC_CF_LAG flag is same but allows command bursts up
1358 to five before limiting.
1360 Added the support for CF_LAG and CF_LAG_STRICT flags to the
1361 server code. Various commands now includes the CF_LAG_STRICT
1362 flag to disallow any kind of miss-use of the command.
1364 * Fixed the silc_buffer_unformat to not to allocate any data
1365 if the length of the data is zero. It used to allocate the
1366 length + 1. Affected file lib/silcutil/silcbuffmt.c.
1368 Wed Mar 14 16:10:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1370 * Changed the format of AdminConnection configuration section
1371 in the server. Added username of the admin to the format.
1372 Affected files silcd/serverconfig.[ch].
1374 Added silc_server_config_find_admin into silcd/serverconfig.[ch]
1375 to return admin configuration data by host, username and/or
1378 Wed Mar 14 13:18:16 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1380 * Implemented WHOWAS command to the server. Added the functions:
1382 silc_server_command_whowas_parse,
1383 silc_server_command_whowas_send_reply,
1384 silc_server_command_whowas_from_client and
1385 silc_server_command_whowas_from_server
1387 * Added <Client ID> argument to the WHOWAS command reply. Updated
1388 the protocol specs accordingly.
1390 * Implemented WHOWAS command and command_reply to the client
1393 Implemented the WHOWAS printing on the user interface.
1395 Tue Mar 13 22:17:34 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1397 * Added new argument to the WHOWAS command reply, the real name.
1398 It is an optional argument. Updated the protocol specs.
1400 * Added SilcIDCacheDestructor callback that is registered when
1401 the SilcIDCache is allocated. The callback is called when
1402 an cache entry in the ID Cache expires, or is purged from the
1403 cache. Added into lib/silccore/idcache.[ch].
1405 Added silc_idlist_client_destructor to the silcd/idlist.[ch]
1406 to destruct the client entries when the cache entry expires.
1407 Other ID Cache's in server and in the client library ignores
1410 * If the ID Cache entry's `expire' field is zero then the entry
1411 never expires. Added boolean `expire' argument to the
1412 silc_idcache_add function in the lib/silccore/idcache.[ch].
1413 If it is TRUE the default expiry value is used.
1415 * Added silc_server_free_client_data_timeout that is registered
1416 when client disconnects. By default for 5 minutes we preserve
1417 the client entry for history - for WHOWAS command.
1419 Tue Mar 13 13:26:18 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1421 * Added support to the server to enforce that commands are not
1422 executed more than once in 2 seconds. If server receives
1423 commands from client more frequently, timeout is registered
1424 to process the commands. Affected file silcd/command.c.
1425 Added new function silc_server_command_process_timeout.
1427 * Changed NICK_NOTIFY handling in client library to check that
1428 if the client's nickname was changed, so there is no need to
1429 resolve anything from the server.
1431 * Removed error printing from the WHOIS and IDENTIFY commands.
1432 If error occurs then it is ignored silently in the client library.
1433 The application, however, may map the received error to
1434 human readable error string. The application currently maps
1435 the NO_SUCH_NICKNAME error to string.
1437 * Made the command status message public to the application. Moved
1438 them from lib/silcclient/command_reply.c to
1439 lib/silcclient/command_reply.h. The application can map the
1440 received command status to the string with the
1441 silc_client_command_status_message function.
1443 * Added check to the server to check that client's ID is same
1444 as the Source ID in the packet the client sent. They must
1447 Tue Mar 13 12:49:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1449 * Added dist-bzip hook to the Makefile.am to make bzip2
1450 compressed distributions.
1452 Mon Mar 12 18:43:38 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1454 * Server now enforces the maximum length for the nickname and
1455 the channel as protocol specification dictates. 128 bytes for
1456 nickname and 256 bytes for channel name.
1458 * Moved the WHOIS printing to the application. The client libary
1459 does not print out the WHOIS information anymore, the application
1460 must do it. Renamed silc_client_command_reply_whois_print to
1461 the silc_client_command_reply_whois_save.
1463 The client's idle time is also sent to the application now, and
1464 the idle is shown on screen.
1466 * Added silc_client_command_reply_identify_save to save the
1467 received IDENTIFY entries.
1469 * Do not check for channel private keys in message sending and
1470 reception if the channel does not have the PRIVKEY mode set.
1471 Affected file lib/silclient/client_channel.c.
1473 Sun Mar 11 20:25:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1475 * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
1476 just surfaced after chaning the JOIN procedure.
1478 Sun Mar 11 14:59:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1480 * Added silc_client_get_clients_by_list to get client entries
1481 from Client ID list, that is returned for example by JOIN
1482 and USERS command replies. The application should use this
1483 function for example when JOIN command reply is received to
1484 resolve the clients already on the channel (library does not
1485 do that anymore as USERS command reply is not used in the JOIN
1486 procedure anymore). Affected files lib/silcclient/silcapi.h and
1487 lib/silcclient/idlist.c.
1489 * JOIN command reply and USERS command reply returns now SilcBuffer
1490 pointers instead of unsigned char pointers when returning
1491 the client list and mode list.
1493 * Added <Client ID> argument to the JOIN command reply, mainly
1494 for the server to identify for which client the command was
1495 originally sent. Updated protocol specs accordingly.
1497 * Added SilcDlist private_key pointer to the SilcChannelEntry
1498 in the client to support the channel private keys. Affected
1499 file is lib/silcclient/idlist.h.
1501 * Added SilcChannelPrivateKey argument to the function
1502 silc_client_send_channel_message so that application can choose
1503 to use specific private ke if it wants to. If it is not provided,
1504 the normal channel key is used, unless private keys are set.
1505 In this case the first (key that was added first) is used
1506 as the encryption key.
1508 * Implemented the support for channel private key handling.
1509 Implemented the following functions:
1511 silc_client_add_channel_private_key,
1512 silc_client_del_channel_private_keys,
1513 silc_client_del_channel_private_key,
1514 silc_client_list_channel_private_keys and
1515 silc_client_free_channel_private_keys
1517 Affected file lib/silcclient/client_channel.c.
1519 * Added the support for the private keys in the channel message
1520 sending and encryption and in the message reception and
1521 decryption. Affected funtions are
1522 silc_client_send_channel_message and silc_client_channel_message.
1524 Sat Mar 10 21:36:22 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1526 * Added SKE's key verify callback to the client library's
1527 KE protocol context. Affected files lib/silcclient/protocol.[ch].
1529 * Removed the statement that server (or router) must send USERS
1530 command reply when joining to the channel so that the client
1531 knows who are on the channel. Instead, the client list and
1532 client's mode list is now sent in the JOIN command reply to the
1533 client who joined channel. This is better solution.
1535 * Added function silc_server_get_users_on_channel and function
1536 silc_server_save_users_on_channel to the silcd/server.[ch].
1538 * Removed function silc_server_command_send_users from the
1541 * Do not show topic on the client library anymore. The topic is
1542 sent in the command reply notify to the application and the
1543 application must show the topic now.
1545 Sat Mar 10 00:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1547 * Added client searching by nickname hash into the IDENTIFY and
1548 WHOIS commands in the server as they were clearly missing from
1549 them. Affected file is silcd/command.c.
1551 * Fixed a bug in private message receiving in the client library.
1552 The remote ID was freed and it wasn't supposed, now it is
1555 Fri Mar 9 12:40:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1557 * Minor fix to the channel payload; allocate the data area, as it
1558 needs to be of specific length.
1560 * If the key agreement port is zero then the operating
1561 system will define the bound port. Affected files are
1562 lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
1564 * Added new function silc_channel_payload_decrypt into the file
1565 lib/silccore/silcchannel.[ch].
1567 * Moved the channel message etc, check from silc_packet_decrypt
1568 to applications. The library calls now a generic
1569 SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
1570 when the packet is either normal or special. This was done to
1571 allow more wide range of checking that was not allowed when
1572 the code was in library. Now applications can do virtually any
1573 checks to the packet and return to the library the decision how
1574 the packet should be processed. Affected files are
1575 lib/silccore/silcpacket.[ch].
1577 Added silc_server_packet_decrypt_check to the server and
1578 silc_client_packet_decrypt_check to the client library.
1580 * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
1581 to send with specified source and destination information.
1583 * Channel message delivery between routers was broken after the
1584 channel key distribution was fixed earlier. The channel key
1585 was used be to distributed to other routers as well which is not
1586 allowed by the protocol. Now this is fixed and channel keys
1587 really are cell specific and the channel message delivery between
1588 routers comply with the protocol specification.
1590 * Fixed various commands in server to check also the global list
1591 for the channel entry and not just the local list. The affected
1592 file silcd/command.c.
1594 Thu Mar 8 21:39:03 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1596 * Added assert()s to buffer formatting and unformatting routines
1597 to assert (if --enable-debug) when error occurs. Affected
1598 file: lib/silcutil/silcbuffmt.c.
1600 * Changed to auto-reconnect to check whether the remote host is
1601 router and register the re-connect timeout if it is. It used
1602 to check that whether we are normal server, but router must do
1603 auto-reconnect with another router as well. Affected file
1606 * Removed the [<key len>] option from CMODE command as the cipher
1607 name decides the key length, nowadays. See the defined ciphers
1608 from the protocol specification.
1610 * Added [<hmac>] option to the CMODE command to define the HMAC
1611 for the channel. Added SILC_CMODE_HMAC channel mode.
1613 * Added [<hmac>] option for the JOIN command so that user can
1614 select which HMAC is used to compute the MACs of the channel
1617 * Added Hmac field to the Channel Message Payload. The integrity
1618 of plaintext channel messages are now protected by computing
1619 MAC of the message and attaching the MAC to the payload. The
1620 MAC is encrypted. Now, it is clear that this causes some
1621 overhead to the size of the packet but rationale for this is that
1622 now the receiver can verify whether the channel message decrypted
1623 correctly and also when private keys are set for the channel the
1624 receiver can decrypt the packet with several keys and check from
1625 the MAC which key decrypted the message correctly.
1627 * Added silc_cipher_encrypt and silc_cipher_decrypt into the
1628 lib/silccrypt/silccipher.[ch].
1630 * Added silc_hash_len to return the digest length into the
1631 lib/silcrypt/silchash.[ch].
1633 * Rewrote parts of Silc Channel Payload interface in the
1634 lib/silccore/silcchannel.[ch]. The encode function now also
1635 encrypts the packet and parse function decrypts it.
1637 Wed Mar 7 20:58:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1639 * Fixed a minor formatting bug in the SKE's key material processing.
1640 It actually might have processed the keys wrong way resulting
1643 * Redefined the mandatory HMAC algorithms and added new algorithms.
1644 Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
1645 and hmac-md5 truncated to 96 bits. The mandatory is now
1646 hmac-sha1-96. Rest are optional (including the one that used
1647 to be mandatory). Rationale for this is that the truncated HMAC
1648 length is sufficient from security point of view and can actually
1649 make the attack against the HMAC harder. Also, the truncated
1650 HMAC causes less overhead to the packets. See the RFC2104 for
1653 * Added new [hmac] configuration section. The SKE used to use
1654 the hash names (md5 and sha1) in the SKE proposal as HMCAS which
1655 is of course wrong. The official names that must be proposed in
1656 the SKE are the ones defined in the protocol specification
1657 (hmac-sha1-96 for example). The user can configure any hmac
1658 using any hash function configured in the [hash] section. At
1659 least, the mandatory must be configured.
1661 Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
1663 * Added HMAC list to the SKE proposal list. It has now both
1664 hash algorithm list and HMAC list. This makes the protocol
1665 incompatible with previous versions. The SKE now seems to work
1666 the way it is supposed to work, for the first time actually.
1668 * Defined plain Hash algorithms to the protocol specification.
1671 Tue Mar 6 15:36:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1673 * Implemented support for key agreement packets into the server.
1674 Added functions silc_server_key_agreement and
1675 silc_server_send_key_agreement. Other than these functions,
1676 server has nothing to do with this packet.
1678 * Added support for private message key packets into the server.
1679 Added functions silc_server_private_message_key and
1680 silc_server_send_private_message_key.
1684 * Changed the silc_[client|server]_protocol_ke_set_keys to be
1685 called in the protocol's final callback instead in the END
1686 protocol state. This makes a little more sense and in the same
1687 time in client we can use the same protocol routines for normal
1688 key exchange and to key agreement packet handling as well.
1690 * Added to both client's and server's KE protocol context the
1691 SilcSKEKeyMaterial pointer to save the key material. We will
1692 bring the key material to the protocol's final callback by doing
1693 this. The final callback must free the key material.
1695 * Added SKE's packet_send callback into client's KE protocol
1696 context so that the caller can choose what packet sending function
1697 is used. This way we can use different packet sending when
1698 doing normal SKE when doing key agreement packet handling (in
1699 the key agreement packet handling we do not want to encrypt
1702 * Implemented the responder side of the key agreement routines
1703 in the client. The client can now bind to specified port and
1704 accept incoming key negotiation. The key material is passed
1705 to the application after the protocol is over.
1707 * Implemented the processing of incoming Key Agreement packet
1708 in the client. Added function silc_client_key_agreement to
1711 * Implemented the intiator side of the key agreement routines
1712 in the client. The client can now initiate key agreement with
1713 another remote client. The key material is passed to the
1714 application after the protocol is over.
1716 * Created client_keyagr.c to include all the key agreement
1719 * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
1720 SILC_TASK_CALLBACK except that it is not static.
1722 * Created client_notify.c and moved the Notify packet handling
1723 from the client.[ch] into that file.
1725 * Created client_prvmsg.c and moved all private message and
1726 private message key routines from the client.[ch] into that file.
1728 * Create client_channel.c and moved all channel message and
1729 channel private key routines from the client.[ch] into that file.
1731 * Changed silc_client_get_client_by_id_resolve to resolve with
1732 WHOIS command instead of IDENTIFY command, in the file
1733 lib/silclient/idlist.c.
1735 Mon Mar 5 18:39:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1737 * Implemented the SKE's responder side to the Client library.
1739 * When FAILURE is received to the protocol do not trust it
1740 blindly. Register a timeout to wait whether the remote closes
1741 the connection as it should do it, only after that process the
1742 actual failure. This was changed to both client and server.
1744 * Added client_internal.h to include some of the structures
1745 there instead of client.h in lib/silcclient/.
1747 * Added function silc_task_unregister_by_callback to unregister
1748 timeouts by the callback function.
1750 Sat Mar 3 19:15:43 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1752 * Some "Incomplete WHOIS info" errors has been appearing on the
1753 log files. Took away the entry->userinfo check from WHOIS
1754 reply sending. The entry->userinfo is now " " if client did not
1755 provide one. I thought this was fixed earlier but something
1756 is wrong still. Let's see if the error still appears.
1758 Wed Feb 28 20:56:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1760 * Fixed a minor bug in the login when the channel key is
1761 re-generated in the server. It used to generate the key in
1762 wrong order and thus caused problems in the channel traffic.
1764 * Fixed a minor bug in channel key distsribution after
1765 KICK command. The key was not sent to the router even though
1768 Tue Feb 27 20:24:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1770 * Added silc_ske_process_key_material_data as generic routine
1771 to process any key material as the SILC protocol dictates. The
1772 function is used by the actual SKE library but can be used by
1773 applications as well. This relates to the private message keys
1774 and the channel private keys since they must be processed the
1775 same way the normal SILC session keys. The protocol dictates
1776 this. Affected files: lib/silcske/silcske.[ch].
1778 Added also silc_ske_free_key_material to free the
1779 SilcSKEKeyMaterial structure.
1781 * Defined silc_cipher_set_key function to set the key for
1782 cipher without using the object's method function. The affected
1783 files: lib/silccrypt/silccipher.[ch].
1785 * Implemented silc silc_client_add_private_message_key,
1786 silc_client_add_private_message_key_ske,
1787 silc_client_del_private_message_key,
1788 silc_client_list_private_message_keys and
1789 silc_client_free_private_message_keys functions in the
1792 Added functions silc_client_send_private_message_key to send
1793 the Private Message Key payload and silc_client_private_message_key
1794 to handle incoming Private Message Key payload.
1796 * Added Cipher field to the Private Message Key payload to set
1797 the cipher to be used. If ignored, the default cipher defined
1798 in the SILC protocol (aes-256-cbc) is used.
1800 Tue Feb 27 13:30:52 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1802 * Removed lib/silcclient/ops.h file.
1804 Redefined parts of the SILC Client Library API. Created new
1805 file silcapi.h that deprecates the ops.h file and defines the
1806 published Client Library API. Defined also private message key
1807 API and channel private key API into the file.
1809 This is the file that the application must include from the
1810 SILC Client Library. Other files need not be included by
1811 the application anymore.
1813 * Added new key_agreement client operation callback and also
1814 defined the Key Agreement library API for the application.
1816 Tue Feb 27 11:28:31 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1818 * Added new packet type: SILC_PACKET_KEY_AGREEMENT. This packet
1819 is used by clients to request key negotiation between another
1820 client in the SILC network. If the negotiation is started it
1821 is performed using the SKE protocol. The result of the
1822 negotiation, the secret key material, can be used for example
1823 as private message key.
1825 Implemented the Key Agreement payload into the files
1826 lib/silccore/silauth.[ch].
1828 Mon Feb 26 12:13:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1830 * Redefined ciphers for the SILC protocol. Added some new ciphers
1831 and defined the key lengths for the algorithms. Changed the
1832 code accordingly. The default key length is now 256 bits.
1834 * Fixed SKE key distribution function silc_ske_process_key_material
1835 when the key length is more than 128 bits. The default key
1836 length in SILC is now 256 bits.
1838 * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
1839 to indicate unsupported algorithm.
1841 * Renamed rijndael.c to aes.c and all functions as well.
1843 * Fixed a long standing channel key setting bug in client library.
1844 Weird that it has never surfaced before.
1846 * Fixed bug in channel deletion. If the entire channel is removed
1847 then it must also delete the references of the channel entry
1848 from the client's channel list as the client's channel entry and
1849 the channel's client entry share same memory.
1851 Sun Feb 25 20:47:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1853 * Implemented CONNECT and SHUTDOWN commands in the client.
1855 * Implemented CLOSE command to the client.
1857 * Added the function silc_idlist_find_server_by_name into the
1858 files silcd/idlist.[ch].
1860 Added the function silc_idlist_find_server_by_conn into the
1861 files silcd/idlist.[ch].
1863 Sat Feb 24 23:45:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1865 * DIE command was renamed to SHUTDOWN. Updated the both code
1868 * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
1869 SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
1871 * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
1874 * Added function silc_server_create_connection function to create
1875 connection to remote router. My server implementation actually
1876 does not allow router to connect to normal server (it expects
1877 that normal server always initiates the connection to the router)
1878 so the CONNECT command is only good for connecting to another
1881 Sat Feb 24 16:03:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1883 * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
1884 or some other client was kicked from the channel.
1886 Implemented the handling of the notify type to both client
1889 Implemented silc_server_send_notify_kicked to send the KICKED
1890 notify. It is used to send it to the server's primary router.
1892 * Implemented the KICK command into server and client.
1894 * Added `query' argument to the silc_idlist_get_client function
1895 to indicate whether to query the client from server or not if
1898 * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
1899 to indicate that the client is not channel founder.
1903 Sat Feb 24 00:00:55 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1905 * Removed the rng context from SilcPacketContext structure and
1906 changed that the packet routine uses the Global RNG API.
1908 Fri Feb 23 11:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1910 * Added support for quit message that client can "leave" on the
1911 channel when it quits the SILC. It is ditributed inside the
1912 SILC_NOTIFY_TYPE_SIGNOFF notify type.
1914 Added silc_server_free_client_data that will take the
1915 signoff message as argument.
1917 * Changed SKE routines to use the silc_pkcs_sign/verify routines.
1919 Thu Feb 22 23:05:36 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1921 * Updated parts of the protocol specification to keep it up
1924 Thu Feb 22 15:08:20 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1926 * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
1927 payloads in one packet.
1929 * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
1930 NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST. List packets
1931 use now the new List flag.
1933 * Also deprecated the following packet types: REPLACE_ID,
1934 NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
1936 * Added list support for Notify packet in server.
1938 * Added silc_server_send_notify_channel_change to send the
1939 CHANNEL_CHANGE notify type to replace channel ID's. Deprecates
1940 the silc_server_send_replace_id.
1942 * Added silc_server_send_notify_nick_change to send the
1943 NICK_CHANGE notify type. Deprecates the function
1944 silc_server_send_replace_id.
1946 * Added silc_server_send_notify_join to send the JOIN notify type.
1947 Deprecates the function silc_server_send_new_channel_user.
1949 * Added silc_server_send_notify_leave to send LEAVE notify type.
1950 Deprecates the function silc_server_send_remove_channel_user.
1952 * Added silc_server_send_notify_cmode and
1953 silc_server_send_notify_cumode to send CMODE and CUMODE notify
1954 types. Deprecates the silc_server_send_set_mode function.
1956 * Added SERVER_SIGNOFF notify type to indicate that server has
1957 quit. This means that all clients on the channel from that
1958 server will drop. This can be also used when netsplit happens.
1960 Deprecated REMOVE_ID packet type since it is not needed anymore
1963 Added silc_server_send_notify_server_signoff to send the
1964 SERVER_SIGNOFF notify type. Deprecates the function
1965 silc_server_send_remove_id.
1967 Added also silc_server_send_notify_signoff to send the
1968 SIGNOFF notify type.
1970 * Employed the PKCS #1. It is the mandatory way to do RSA in the
1971 SILC protocol from this day on. Changed the protocol
1972 specification as well.
1974 * Added silc_server_send_notify_topic_set to send TOPIC_SET
1975 notify type. It is used between routers to notify about
1976 topic changes on a channel.
1978 * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
1981 * Partly updated the protocol specification to comply with the
1982 changes now made. It is still though a bit outdated.
1984 * The JOIN notify type now takes one extra argument <Channel ID>.
1985 The packet used to be destined to the channel but now the
1986 JOIN type may be sent as list thus it is impossible to
1987 destine it to any specific channel. By adding this argument
1988 it is again possible.
1990 Wed Feb 21 22:39:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1992 * Added CREDITS file. The CHANGES and CREDITS file will appear
1993 in the distribution as well.
1995 Wed Feb 21 14:17:04 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1997 * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
1998 types in the server's silcd/packet_receive.c.
2000 * Implemented CMODE and CUMODE to work in router environment.
2002 * Fixed minor encoding and decoding buglet from the
2003 lib/silccore/silcmode.c.
2005 * Fixed buffer overflow from lib/silcclient/command.c in USERS
2008 Wed Feb 21 12:44:00 EET 2001 Mika Boström <bostik@lut.fi>
2010 * Changed all SilcConfigServer* and silc_config_server* to
2011 SilcServerConfig* and silc_server_config*, respectively.
2014 Wed Feb 21 00:10:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2016 * Associated the ID (client or server ID) to the Authentication
2017 Payload to avoid any possibility of forging. Updated the
2018 protocol specification and the code accordingly.
2020 Tue Feb 20 14:14:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2022 * The RSA key length is now save to the RsaKey context in the
2023 key generation process in lib/silccrypt/rsa.c. The key length
2024 is now used to figure out the maximum size of the block allowed
2025 to be encrypted/signed.
2027 * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch]. It
2028 is equivalent to the silc_mp_mp2bin but does not allocate any
2031 * Changed silc_mp_mp2bin API to take length argument. If it is
2032 non-zero then the buffer is allocated that large. If zero, then
2033 the size is approximated using silc_mp_sizeinbase, which however
2036 * Created Global RNG API which is global RNG that application can
2037 initialize. After initializing, any routine anywhere in the
2038 code (including library) can use RNG without allocating a new
2039 RNG object. This was done to allow this sort of use of the
2040 RNG in code that has no chance to allocate RNG object. All
2041 applications currently allocate this and many routines in the
2042 library use this. Affected file lib/silccrypt/silcrng.[ch].
2044 * Removed the RNG kludge from lib/silcmath/primegen.c and changed
2045 it to use the Global RNG API.
2047 * Defined Authentication Payload into protocol specification that
2048 is used during SILC session to authenticate entities. It is
2049 used for example by client to authenticate itself to the server
2050 to obtain server operator privileges.
2052 Implemented this payload into the lib/silccore/silcauth.[ch].
2053 Implemented also routines for public key based authentication
2054 as the new protocol specification dictates.
2056 Moved definitions of different authentication methods from
2057 lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
2059 * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
2060 silc_pkcs_verify and silc_pkcs_sign_with_hash and
2061 silc_pkcs_verify_with_hash functions into the file
2062 lib/silccrypt/silcpkcs.[ch].
2064 Mon Feb 19 19:59:28 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2066 * The client entry's userinfo pointer must be always valid.
2067 Otherwise the [<unknown>] bug will surface beacuse the WHOIS
2068 will fail since it requires the userinfo. Now, the userinfo
2069 is allocated as "" if actual userinfo does not exist. Actually,
2070 it must exist and it is totally Ok to drop client connections
2071 that does not announce the userinfo. However, we will make
2072 this workaround for now.
2074 * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
2075 to return the remote port by socket.
2077 Mon Feb 19 14:26:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2079 * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
2080 SILC_SERVER_PENDING_EXEC and added an new macro
2081 SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
2082 data or when error occurs while processing the pending command.
2084 Added new argument `destructor' into silc_server_command_pending
2085 and to the SilcServerCommandPending object. This destructor is
2086 now called after calling the pending callback or if error occurs
2087 immediately. If error occurs the actual pending callback won't
2088 be called at all - only the destructor. The destructor may be
2089 NULL if destructor is not needed.
2091 All this applies for client library code as well. Similar
2092 changes were made there as well for the pending commands.
2094 In the client, the application must now allocate the
2095 SilcClientCommandContext with the silc_client_command_alloc
2098 * Added reference counter to the SilcServerCommandContext. Added
2099 function silc_server_command_alloc and silc_server_command_dup
2102 Same type of functions added to the client library for the same
2105 * Removed the cmd_ident from IDListData away since it is now
2106 global for all connections. It is the command identifier used
2107 in command sending and with pending commands. The affected file
2110 * Added reference counter to the SilcSocketConnection objecet to
2111 indicate the usage count of the object. The object won't be
2112 freed untill the reference counter hits zero. Currently only
2113 server uses this, and client ignores it. The client must be
2114 set to use this too later. The affected files are
2115 lib/silccore/silcsockconn.[ch]. Added also the function
2116 silc_socket_dup to increase the reference counter.
2118 This was mainly added because it is possible that the socket
2119 is removed underneath of pending command or other async
2120 operation. Now it won't be free'd and proper DISCONNECTING
2121 flags, etc. can be set to avoid sending data to connection that
2122 is not valid anymore.
2124 * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
2125 the connection. After that it sets SILC_SET_DISCONNECTED.
2126 It is, however, possible that the socket data is not still freed.
2127 The silc_server_packet_process now checks that data is not
2128 read or written to connection that is DISCONNECTED. The socket
2129 get's freed when the reference counter hits zero.
2131 Mon Feb 19 00:50:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2133 * Changed the client operation API: channel_message operation's
2134 `sender' is now the client entry of the sender, not the nickname
2135 and the `channel' is the channel entry, not the channel name.
2137 In the private_message operation the `sender' is now also the
2138 client entry of the sender not the nickname.
2140 Affected file is lib/silcclient/ops.h and all applications
2141 using the client operations.
2143 Sat Feb 17 22:11:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2145 * Moved the calling of ops->connect() from connect_to_server_final
2146 into receive_new_id functin since that is the point when the
2147 client is actually allowed to send traffic to network. The
2148 affected file is lib/silcclient/client.c.
2150 Sat Feb 17 13:15:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2152 * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
2153 NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
2154 (if needs broadcasting) instead of broadcasting the packets one
2155 by one which would make a burst in the network traffic.
2157 * Added `broadcast' argument to the functions in silcd/server.[ch]
2158 silc_server_create_new_channel[_with_id] to indicate whether
2159 to send New Channel packet to primary router.
2161 Sat Feb 17 01:06:44 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2163 * Added new function into the silcd/server.[ch] files:
2164 silc_server_create_new_channel_with_id to create new channel with
2165 already existing Channel ID.
2167 * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
2168 lib/silccore/silcpacket.h. This packet is used t send list of
2169 Set Mode payloads inside one packet. Server uses this to set
2170 the modes for the channels and clients on those channels, that it
2171 announced to the router when it connected to it. The protocol
2172 specification has been updated accordingly.
2174 * The silc_server_new_channel did not handle the packet coming
2175 from normal server as it normally does not send that. However,
2176 when it announces its channels it does send it. Implemented
2177 the support for that.
2179 * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
2180 into the file lib/silccore/id.h.
2182 Fri Feb 16 23:57:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2184 * Fixed memory leaks in the functions silc_idlist_del_client,
2185 silc_idlist_del_channel and silc_idlist_del_server in the file
2186 silcd/idlist.c. All of those leaked like a sieve.
2188 * Fixed some small memory leaks in the client's function
2189 silc_client_notify_by_server.
2191 * Added functions into silcd/server.c: silc_server_announce_clients,
2192 silc_server_announce_channels and silc_server_announce_server.
2193 These functions are used by normal and router server to announce
2194 to its primary router about clients, channels and servers (when
2195 router) that we own. This is done after we've connected to the
2198 These functions effectively implements the following packet types:
2199 SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
2200 and SILC_PACKET_NEW_ID_LIST.
2202 * Added new functions into the silcd/packet_receive.[ch]:
2203 silc_server_new_id_list, silc_server_new_channel_list and
2204 silc_server_new_channel_user_list to handle the incoming
2205 NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
2207 * Added support of changing Channel ID in the function
2208 silc_server_replace_id. If the server that announces a channel
2209 to the router already exists in the router (with same name but
2210 with different Channel ID), router is responsible to send
2211 Replace ID packet to the server and force the server to change
2212 the Channel ID to the one router has.
2214 * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
2215 client that the Channel ID has been changed by the router. The
2216 normal server sends this to the client. Client must start using
2217 the new Channel ID as the channel's ID.
2219 Implemented handling of this new type into lib/silcclient/client.c
2220 into the function silc_client_notify_by_server.
2222 * Added new function silc_idlist_replace_channel_id into the files
2223 silcd/idlist.[ch] to replace the Channel ID.
2225 Fri Feb 16 14:14:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2227 * Call silc_server_command_identify_check always when processing
2228 the IDENTIFY command in silcd/command.c
2230 Thu Feb 15 20:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2232 * Added new packet type SILC_PACKET_HEARTBEAT that is used to
2233 send keepalive packets. The packet can be sent by clients,
2234 servers and routers.
2236 Added function silc_socket_set_heartbeat into the file
2237 lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
2238 If not set, the heartbeat is not performed. The actual
2239 heartbeat is implemented in the low level socket connection
2240 library. However, application is responsible of actually
2243 Added silc_server_send_heartbeat to send the actual heartbeat
2244 packet into silcd/packet_send.[ch]. Server now performs
2245 keepalive with all connections.
2247 * Added silc_task_get_first function into lib/silcutil/silctask.c
2248 to return the timeout task with shortest timeout. There was a bug
2249 in task unregistration that caused problems. TODO has been
2250 updated to include that task system must be rewritten.
2252 * The client library will now resolve the client information when
2253 receiving JOIN notify from server for client that we know but
2254 have incomplete information.
2256 * Rewrote parts of silc_server_remove_from_channels and
2257 silc_server_remove_from_one_channel as they did not remove the
2258 channel in some circumstances even though they should've.
2260 * Encryption problem encountered in server:
2262 The LEAVE command used to send the Channel Key packet to the
2263 router immediately after generating it. However, the code
2264 had earlier sent Remove Channel user packet but not immediately,
2265 ie. it was put to queue. The order of packets in the router
2266 was that Channel Key packet was first and Remove Channel User
2267 packet was second, even though they were encrypted in the
2268 reverse order. For this reason, MAC check failed. Now, this
2269 is fixed by not sending the Channel Key packet immediately but
2270 putting it to queue. However, this is more fundamental problem:
2271 packets that are in queue should actually not be encrypted
2272 because packets that are sent immediately gets encrypted
2273 actually with wrong IV (and thus MAC check fails). So, packets
2274 that are in queue should be encrypted when they are sent to
2275 the wire and not when they put to the queue.
2277 However, the problem is that the current system has not been
2278 designed to work that way. Instead, the packet is encrypted
2279 as soon as possible and left to the queue. The queue is then
2280 just purged into wire. There won't be any fixes for this
2281 any time soon. So, the current semantic for packet sending
2284 o If you send packet to remote host and do not force the send
2285 (the packet will be in queue) then all subsequent packets to the
2286 same remote host must also be put to the queue. Only after the
2287 queue has been purged is it safe again to force the packet
2290 o If you send all packets immediately then it safe to send
2291 any of subsequent packets through the queue, however, after
2292 the first packet is put to queue then any subsequent packets
2293 must also be put to the queue.
2295 Follow these rules and everything works fine.
2297 Thu Feb 15 14:24:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2299 * Added new function silc_server_remove_clients_by_server to
2300 remove all client entries from ID list when the server connection
2301 is lost. In this case it is also important to invalidate all
2302 client entires as they hold the invalid server entry. This
2303 fixes fatal bug when server has lost connection and will reconnect
2306 Wed Feb 14 16:03:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2308 * Made some sanity checks to silc_server_daemonise like to check
2309 whether the requested user and group actually exists.
2311 * Added sanity check to SKE's silc_ske_responder_finish to check
2312 that the public and private key actually is valid.
2314 * Invalidate the client's nickname when receiving Replace ID
2315 packet and the Client ID is being replaced. This means that the
2316 server will query the nickname if someone needs it (client)
2319 * Sort the ID Cache in client library when the ID Cache data
2320 has changed (needs sorting).
2322 * Do not allow for SILC client to create several connections to
2323 several servers. The client does not support windows right now
2324 and generating multiple connections causes weird behaviour.
2326 Irssi-silc client does support windows and can handle several
2327 connections without problems, see: www.irssi.org and SILC plugin.
2329 * Fixed some places where client was added to the IDList. The
2330 rule of thumb is following (in order to get everything right):
2331 If the client is directly connected local client then the
2332 `connection' argument must be set and `router' argument must be
2333 NULL to silc_idlist_add_client function. If the client is not
2334 directly connected client then the `router' argument must
2335 bet set and the `connection' argument must be NULL to the
2336 silc_idlist_add_client function.
2338 * The funtion silc_server_packet_send_local_channel actually did
2339 not check whether the client was locally connected or not. It
2340 does that now. Fixed a bug related to LEAVE command.
2342 * Fixed Remove Channel User payload parsing bug in server's
2343 silcd/packet_receive.c. Fixed a bug related to LEAVE command.
2345 * The server's silc_server_save_channel_key now checks also the
2346 global ID list for the channel as it might not be in the local
2347 list. Fixed a bug related to LEAVE command.
2349 * Is this the end of the [<unknown>] buglet that has been lurking
2350 around for a long time? A little for loop fix in server's
2351 silc_server_command_whois_parse that is used by both IDENTIFY
2352 and WHOIS command. At least, this was a clear bug and a cause
2353 of one type of [<unknown>] buglet.
2355 * WHOIS and IDENTIFY commands call the function
2356 silc_server_command_[whois/identify]_check function even if
2357 we are not router server.
2359 Tue Feb 13 19:55:59 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2361 * Added --with-gmp configuration option. If set the GMP
2362 is always compiled in the SILC source tree. If not set then
2363 it is checked whether the system has the GMP3 installed. If
2364 it has then the GMP won't be compiled (the system's headers
2365 and library is used), if it doesn't have it then the GMP is
2366 compiled in the SILC source tree.
2368 Mon Feb 12 11:20:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2370 * Changed RSA private exponent generation to what PKCS #1
2371 suggests. We try to find the smallest possible d by doing
2372 modinv(e, lcm(phi)) instead of modinv(e, phi). Note: this is
2373 not security fix but optimization.
2375 Sun Feb 11 18:19:51 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2377 * Added new config entry [Identity] to fork the server and run
2378 it as specific user and group. A patch from Bostik.
2380 * Imported Dotconf configuration library into lib/dotconf.
2381 This will be used to create the SILC configuration files later.
2382 It will appear in the distsribution after this commit.
2384 Sat Feb 10 21:13:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2386 * A big code auditing weekend happening. Auditing code for
2387 obvious mistakes, bugs and errors. Also, removing any code
2390 Removed files for being obsolete:
2392 o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
2393 inline in the file lib/silcutil/silcbuffer.h)
2395 o lib/silcutil/silcbufutil.c (the header has inline versions)
2397 Changed code to fix possible error conditions:
2399 o The buffer formatting routines now check that the destination
2400 buffer really has enough space to add the data. This applies for
2401 both buffer formatting and unformatting
2402 (lib/silcutil/silcbuffmt.[ch]). Also, the entire buffer
2403 unformatting was changed to accomodate following rules:
2404 XXX_*STRING_ALLOC will allocate space for the data into the pointer
2405 sent to the function while XXX_*STRING will not allocate or copy
2406 the data into the buffer. Instead it sets the pointer from the
2407 buffer into the pointer sent as argument (XXX_*STRING used to
2408 require that the pointer must be allocated already). This change
2409 makes this whole thing a bit more consistent and more optimized
2410 (note that the data returned in the unformatting with XXX_*STRING
2411 must not be freed now). The routines return now -1 on error.
2413 o Tried to find all code that use buffer_format and buffer_unformat
2414 and added return value checking to prevent formatting and
2415 especially unformatting errors and possible subsequent fatal
2418 o Changed ske->x and ske->KEY to mallocated pointers in
2419 lib/silcske/silcske.h. Fixed possible data and memory leak.
2421 o Added return value checking to all *_parse* functions. Fixed
2422 many memory leaks as well.
2424 o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
2425 so that buffer overflows would not happen. All code now also
2426 checks the return value as it can fail.
2428 Mon Feb 5 20:08:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2430 * Added reconnection support to server if the normal server looses
2431 its connection to the router (for example if router is rebooted).
2432 The server performs normal reconnection strategy implemented
2433 to the server. Affected file silcd/server.c.
2435 Sun Feb 4 13:18:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2437 * Added new packet type SILC_PACKET_SET_MODE that is used to
2438 distribute the information about changed modes (for clients,
2439 channels and clients channel modes) to all routers in the
2440 network. Updated the protocol specification accordingly.
2442 Added functions into silcd/packet_send.c and
2443 silcd/packet_receive.c: silc_server_send_set_mode,
2444 silc_server_set_mode.
2446 Added new files silcmode.[ch] into lib/silccore that implements
2447 the encoding and decoding of Set Mode Payload. Added new type
2448 SilcSetModePayload. Moved the definitions of different modes
2449 from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
2451 Sat Feb 3 15:44:54 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2453 * Oops, a little mistake in server's connection authentication
2454 protocol. The protocol is not ended with FAILURE but with
2455 SUCCESS if the authentication is Ok. :) Affected file is
2458 * Implemented NICK_CHANGE notify handling in server in the file
2459 silcd/packet_receive.c The NICK_CHANGE notify is distributed to
2460 the local clients on the channel. After the changing nickname
2461 in router environment snhould work and the [<unknown>] nickname
2462 should appear no more.
2464 The silc_server_replace_id function that receives the Replace ID
2465 payload now sends the NICK_CHANGE notify type also in the file
2466 silcd/packet_receive.c
2468 * Changed WHOIS and IDENTIFY command to support the maximum amount
2469 of arguments defined in protocol specs (3328 arguments). This
2470 fixed a bug that caused problems when there were more than three
2473 Fri Feb 2 11:42:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2475 * Added extra parameter, command identifier, to the
2476 silc_client_send_command so that explicit command identifier
2479 Changed that ID list routines uses specific command identifier
2480 when sending WHOIS/IDENTIFY requests to the server so that they
2481 can be identified when the reply comes back.
2483 Affected files lib/silcclient/command.[ch],
2484 lib/silcclient/client.c and lib/silcclient/idlist.[ch].
2486 * Added `sender' argument to silc_server_packet_send_to_channel
2487 to indicaet the sender who originally sent the packet to us
2488 that we are now re-sending. Ignored if NULL. Affected file
2489 silcd/packet_send.[ch].
2491 * Added some server statistics support in silcd/server_internal.h
2492 SilcServerStatistics structure and around the server code. Also
2493 send some nice statistics information when client is connecting
2496 Thu Feb 1 23:31:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2498 * Fixed channel ID decoding in server's JOIN command reply in
2499 silcd/command_reply.c
2501 * Fixed braodcasting of replace ID payload to not to send it if
2502 we are standalone server in silcd/packet_receive.c.
2504 * Fixed all channel message sending routines to not to send
2505 packets to clients that has router set, since they are routed
2506 separately in the same function earlier. Affects file
2507 silcd/packet_send.c and all channel packet sending functions.
2509 * In USERS reply, res_argv[i] are not allocated, the table
2510 is allocated. Thus changed that free the table, not its
2513 * In server's whois_check and identify_check if the client is
2514 locally connected do not send any WHOIS commands - they are not
2517 Thu Feb 1 21:32:27 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2519 * Fixed some minor bugs in client when sending WHOIS command. The
2520 arguments was in wrong order.
2522 * Removed statis function add_to_channel from server in
2523 silcd/command.c that was previously used with the joining but
2526 * Tested USERS command in router environment successfully with two
2527 routers, two servers and two clients.
2529 Thu Feb 1 00:54:26 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2531 * Reorganized the USERS command and command reply in client library
2532 in lib/silcclient/command.c and lib/silcclient/command_reply.c.
2533 When the command is given by user we register a pending command
2534 callback that will reprocess the command after the reply has been
2535 received from the server. When reprocessing the packet we then
2536 display the information. Thus, the USERS information is displayed
2537 now in the command callback instead of in the command reply
2538 callback. The processing of the command is same as previously
2539 when server has sent the command reply in the JOINing process.
2541 * Added to USERS command in silcd/command_reply.c to join the client,
2542 we didn't use to know about, to the channel after we've created
2543 a client entry for it. Also, for clienet we did know already still
2544 check whether it is on the channel or not and add it if not.
2546 * Removed silc_server_command_join_notify as the function and its
2549 Tue Jan 30 22:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2551 * Changed the client's pending command handling to the same as the
2552 server's pending command handling. It is also now possible to
2553 execute command reply functions from other command reply
2554 function as the function callbacks for commands and command
2555 replies are one and same. The pending commands are not static
2556 list anymore, it is mallocated SilcDList in lib/silcclient/client.h
2557 in client connection context. Thus, pending commands are server
2558 connection specific as it is convenient.
2560 Changed the function silc_client_command_pending and
2561 silc_client_command_pending_del and added new function
2562 silc_client_command_pending_check. Removed the
2563 SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
2566 * Added cmd_ident, current command identifier, to the client
2567 connection context in lib/silcclient/client.h to keep track on
2568 command identifiers used in command sending. Client's command reply
2569 function handling now supports the mandatory command identifiers.
2571 * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
2572 funtions in client to fully support pending command callbacks.
2574 * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
2575 as one of the arguments to the application in the command reply
2578 * NOTE: The FORWARDED flag is depracated. It used to be depracated
2579 before first releasing SILC but came back. Now it is removed again
2580 and should come back nomore. The FORWARDED flag was used only
2581 by the JOINing procedure by forwarding the command packet to router.
2582 Now, the JOINing procedure has been changed to more generic (due
2583 to various router environment issues) and FORWARDED is not needed
2584 anymore for anything. The protocol specification is yet to be
2587 Now, removed silc_server_packet_forward from server and the flag
2588 SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
2590 Tue Jan 30 00:05:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2592 * Renamed NAMES command to USERS command. The NAMES was named that
2593 due to historical reasons. Now it is renamed. Also, rewrote
2594 parts of the USERS command. The nickname list is not sent anymore
2595 by the server. Only Client ID and mode lists are sent in the USERS
2596 command. Changed this also to the protocol specification.
2598 The client now resolves the names and stuff after it receives
2599 the USERS list from the server when joining to the channel.
2601 * WHOIS and IDENTIFY commands has been changed to support multiple
2602 Client ID's per command. One can now search for multiple users
2603 in the network by sending only one WHOIS or IDENTIFY command.
2604 Changed the code and the protocol specifications.
2606 * Removed silc_server_command_identify_parse and changed that IDENTIFY
2607 uses silc_server_command_whois_parse to parse the request. */
2609 * If normal server, do not parse the WHOIS and IDENTIFY requests
2610 before sending it to the router. Saves some time.
2612 Sun Jan 28 16:19:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2614 * Fixed JOIN command on client library. Wrong number of arguments
2615 used to crash the client.
2617 * Added silc_server_channel_has_global function to check whether
2618 channel has global users or not.
2620 * Added silc_server_channel_has_local function to check whether channel
2621 has locally connected clients on the channel.
2623 * The silc_server_remove_from_one_channel now checks whether the
2624 channel has global users or not after given client was removed from
2625 the channel. It also checks whether the channel has local clients
2626 on the channel anymore. If it does not have then the channel entry
2627 is removed as it is not needed anymore.
2629 * The silc_server_notify now checks on JOIN notify whether the joining
2630 client is one of locally connected or global. If it is global then
2631 the channel has now global users on the channel and that is marked
2632 to the channel entry. Also, it now saves the global client to
2633 global list who is joining and JOINs it to the channel. This is
2634 for normal server, that is.
2636 Changed silc_server_send_notify_on_channel,
2637 silc_server_packet_relay_to_channel and
2638 silc_server_packet_send_to_channel check if we are normal server
2639 and client has router set (ie. global client) do not send the
2640 message to that client, as it is already routed to our router.
2642 * Implemented LEAVE notify type handling in silc_server_notify
2645 * Tested LEAVE command in router environment successfully. Tested
2646 with two routers, two servers and two clients.
2650 * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
2652 * Implemented SIGNOFF notify type handling in silc_server_notify
2655 * silc_server_remove_id now removes the client entry from all channels
2656 it has joined and thusly sends SIGNOFF notify type.
2658 * Rewrote the NAMES list generation in server by removing two excess
2659 loops. The lists are created now inside one loop.
2661 Sat Jan 27 22:34:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2663 * silc_server_remove_channel_user checks now also global list
2664 for channel and client.
2666 * silc_server_new_channel_user checks now both local and global
2667 list for channel and client. Fixed a bug in client id decoding.
2668 Used to decode wrong buffer.
2670 * silc_server_channel_message checks now both local and global
2671 list for channel entry.
2673 * Tested channel joining (hence JOIN) in router environment
2674 successfully. Tested with two routers, two servers and two
2677 * Tested channel message sending in router environment successfully.
2679 Thu Jan 11 03:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
2681 * Added silc_server_save_channel_key into server.[ch] to save the
2682 received channel key in Channel Key payload processing. It is
2683 also used in JOIN command reply handling.
2685 Equivalent function silc_client_save_channel_key added into
2686 client.[ch] into client library.
2688 * Changed JOIN command reply to send information whether the channel
2689 was created or not (is existing already) and the channel key
2690 payload. Changed protocol specs accordingly.
2692 * Fixed bugs in WHOIS and IDENTIFY command reply sending when
2693 the request was sent by ID and not by nickname. Crashed on
2696 Sat Dec 23 21:55:07 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2698 * Fixed a bug in Client library. IDENTIFY and WHOIS reply functions
2699 now correctly save the received data.
2701 * silc_server_free_sock_user_data now notifies routers in the
2702 network about entities leaving the network.
2704 At the same time implemented functions silc_server_remove_id
2705 and silc_server_send_remove_id to receive and send REMOVE_ID
2706 packets. The packet is used to notify routers in the network
2707 about leaving entities. The ID removed will become invalid in
2710 * Added function silc_idlist_del_server into server. Removes and
2711 free's server entry from ID list.
2713 * silc_server_private_message function now checks, if we are router,
2714 that the destination ID really is valid ID, naturally.
2716 * In router when NEW_ID packet is received (for new client) the
2717 hash of the Client ID is saved in the ID Cache but the
2718 client->nickname is set to NULL, instead of putting the hash
2721 IDENTIFY command now also checks that client->nickname must be
2722 valid. If it is not if will request the data from the server who
2723 owns the client. Added new function
2724 silc_server_command_identify_check.
2726 * Added silc_command_set_command into lib/silccore/silcommand.[ch]
2727 to set the command to already allocated Command Payload.
2729 * Tested private message sending in router environment with two
2730 routers, two servers and two clients. Fixed minor bugs and now
2733 * Fixed segfault from client's NAMES command. Used to crash if
2736 * Forwarded packets must not be routed even if it is not destined
2737 to the receiver. Changed server code comply with this.
2739 Sun Dec 17 14:40:08 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2741 * Added `require_reverse_mapping' boolean value to ServerParams
2742 structure. If TRUE (not default) the server will require that
2743 the connecting host has fully qualified domain name.
2745 If the reverse mapping is not required and hostname could not be
2746 found the IP address is used as hostname.
2748 Sat Dec 16 17:39:54 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2750 * Implemented version string checking to both client and server.
2751 The check is incomplete currently due to the abnormal version
2752 strings used in development version of SILC.
2754 * Changed all command functions in server to use the new
2757 Fri Dec 15 15:55:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2759 * Changed char *data to unsigned char *data in ID Cache system to
2760 support binary data as ID Cache data. Changed code to support
2761 binary data in lib/silccore/idcache.c.
2763 * Renamed silc_server_packet_relay_command_reply to
2764 silc_server_command_reply as it is normal packet receiving
2765 function. Rewrote the function to accept command replys for
2766 servers and not only for clients.
2768 * Mark remote router always as registered server if we are connecting
2769 to it. Otherwise, commands sent by the router to us are ignored.
2771 * All ID List find routines now returns the ID Cache Entry pointer
2772 as well if requested.
2774 * WHOIS command works now in router environment, tested with two
2775 routers, two servers and two clients.
2777 * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
2778 in router environment (as it is almost equivalent to WHOIS) but
2779 hasn't been tested thoroughly. Added new functions:
2781 silc_server_command_identify_parse
2782 silc_server_command_identify_send_reply
2783 silc_server_command_identify_from_client
2784 silc_server_command_identify_from_server
2786 * Disabled route cache adding because adding two different ID's with
2787 same IP replaces the old cache entry thus giving wrong route.
2788 The entry->router->connection is always the fastest route anyway
2789 so route cache may not be needed. Of course, new routes maybe
2790 established after receiving the ID when the entry->router->connection
2791 might not be anymore the most optimal.
2793 Thu Dec 14 15:55:35 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2795 * Add route cache for received ID for fast routing.
2797 * Added silc_server_packet_route to route received packet on router
2798 that is not destined to us.
2800 * Renamed silc_server_get_route to silc_server_route_get.
2802 * Added id_string and id_string_len fields into SilcServer to
2803 include encoded ServerID for fast comparing without excess
2804 encoding of the ID's.
2806 * Cleaned up WHOIS command on server side. Added following static
2809 silc_server_command_whois_parse
2810 silc_server_command_whois_check
2811 silc_server_command_whois_send_reply
2812 silc_server_command_whois_from_client
2813 silc_server_command_whois_from_server
2815 * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
2816 arguments in command replies. All command functions should be
2817 updated to use this macro.
2819 Sun Dec 10 23:52:00 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2821 * Minor typo fixes on command reply handling on server.
2823 Tue Nov 28 11:05:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2825 * Added silc_server_command_add_to_channel internal routine to add
2826 the client to the channel after router has created the channel and
2827 sent command reply to the server.
2829 * Added generic silc_server_send_command to send any command from
2832 * Use static buffer with ID rendering instead of duplicating data.
2834 Mon Nov 27 21:39:40 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2836 * Fixed a channel user mode bug when joining to a channel server gave
2837 everybody channel founder rights, oops.
2839 * We mark ourselves as the router of the incoming server connection
2840 if we are router ourselves. This way we can check in some packet
2841 sending functions whether it is locally connected server. For
2842 incoming router connections we put NULL.
2844 * For router sending packets locally means now always sending the
2845 packet cell wide; to local clients and local servers. For normal
2846 server sending packet locally means sending it to only local
2849 * Fixed the JOIN command to really work in router environment. If the
2850 channel is created it is always created by the router. Router is
2851 also responsible of making the initial joining to the channel,
2852 sending JOIN notify to the sending server and distributing
2853 NEW_CHANNEL and NEW_CHANNEL_USER packets. Hence, if the channel
2854 does not exist server doesn't do anything else but forward the
2855 command to the router which performs everything.
2857 * Added silc_server_send_channel_key function to send the Channel Key
2860 * Added silc_server_create_channel_key to create new channel key. The
2861 channel key is now re-generated everytime someone joins or leaves
2862 a channel, as protocol dictates. Note: channel->key_len is the
2865 Wed Nov 22 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2867 * Splitted server.[ch] finally. Created now packet_send.[ch] and
2868 packet_receive.[ch] to separate packet sending and receiving
2869 routines. The server.[ch] now includes everything else including
2870 actual packet processing (writing and reading data) and other
2873 Renamed silc_server_private_message_send_internal to
2874 silc_server_send_private_message. The routine is still though
2875 used only to relay private messages as server does not send
2876 private messages itself.
2878 Renamed silc_server_new_channel to silc_server_create_new_channel
2879 and added new function sicl_server_new_channel that handles the
2880 incoming New Channel packet. Added also new sending function
2881 silc_server_send_new_channel to send New Channel Payload.
2883 * Added new function silc_server_notify to process incoming notify
2884 packet to the server/router. Server may then relay the notify
2885 to clients if needed.
2887 * Added new function silc_server_new_channel_user to process incoming
2888 New Channel User packet. Router will redistribute the packet and
2889 send JOIN notify to its local clients and locally connected servers
2890 if needed. Normal server will send JOIN notify to its local client
2891 on same channel when received this packet. Added also corresponding
2892 sending function silc_server_send_new_channel_user to sent the
2895 * Added boolean route argument to send_notif_to_channel and
2896 packet_send_to_channel functions to attempt to route the packet
2897 if it is TRUE and send only locally if it is FALSE.
2899 Tue Nov 21 19:49:31 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2901 * silc_server_replace_id now broadcasts the received replace ID
2902 packet if it is not broadcast packet already. The router must
2903 broadcast to inform other routers about changed ID.
2905 * Added backpointer to server's router into SilcServer context in
2906 silcd/server_internal.h.
2908 * Fixed silc_server_packet_broadcast to send correct broadcast
2911 * The channel key is now distributed to the local client as soon
2912 as it is received from the router (in router environment) so that
2913 no other packet may be sent for the channel until client has
2916 * silc_server_remove_channel_user now broadcasts the received
2917 Remove Channel User packet if it is not broadcast packet already.
2918 The router must broadcast to inform other routers about removed
2921 * Added users field into SilcPacketContext that is a reference count
2922 of the context. One can increase the reference count by calling
2923 silc_packet_context_dup which is now changed to just increase the
2924 reference count instead of duplicating the data. The reference
2925 count is decresed by calling silc_packet_context_free that will
2926 free the data after the reference count hits zero.
2928 For now on the packet context and everything allocated into it
2929 (including the raw packet from network) must be freed by calling
2930 the new silc_packet_context_free function. Added also new function
2931 silc_packet_context_alloc that must be used now to allocate the
2932 context. This also means that if a routine is asynchronous from
2933 silc_[client/server]_packet_parse_type the packet context must
2934 be duplicated by calling silc_packet_context_dup. Otherwise it
2935 gets free'd after silc_[client/server]_packet_parse_type returns.
2936 Also, one must remember that if packet is duplicated then its
2937 reference count must be decresed by calling the free function as
2938 many times as it was duplicated.
2940 * Changed SilcBuffer field from protocol contexts to SilcPacketContext
2941 from both client and server.
2943 Mon Nov 20 23:47:03 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2945 * Made joining to a channel working in router environment.
2947 * Cleaned up JOIN command on server side and create function
2948 silc_server_command_join_channel internal routine to make the
2951 Thu Nov 9 21:12:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2953 * Changed silc_command_pending list to SilcDList. Also, added
2954 `ident' field to SilcServerCommandPending structure to identify
2955 the reply and to call correct callback.
2957 Added silc_server_command_pending_check function to replace the
2958 corresnponding macro. The silc_command_pending list is not
2961 * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
2962 to set identifier to previously allocated Command Payload. It
2963 is used to set identifier for command when resending Command
2966 * Added silc_command_payload_encode_payload to encode Command
2967 Payload buffer from SilcCommandPayload structure.
2969 * Added silc_argument_payload_encode_payload to encode Argument
2970 payload buffer from SilcArgumentPayload structure.
2972 Wed Nov 8 21:03:28 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2974 * Changed WHOIS command to support router connection on server side.
2975 The whois request is always sent to router unless the server is
2976 standalone server. After server has received the reply from the
2977 router will it send the reply to the client.
2979 * Added silc_server_packet_broadcast into silcd/server.[ch] to
2980 broadcast received broadcast packet. The function is used only
2981 by router. The broadcast packet is always sent to the router's
2984 * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
2985 render given ID to printable string, for log files for example.
2987 Tue Nov 7 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2989 * Made basic router to router connections working. At least they
2990 can now connect to each other but nothing really works the way
2991 they are supposed - yet.
2993 * Added new initiator token to RouterConnection configuration
2994 file in silcd/serverconfig.[ch]. It is used to tell whether we
2995 are the initiator to the remote router or whether we'll expect
2996 the other end to connect.
2998 * Moved registering of listener task to silc_server_init, hence
2999 the server starts listenning as soon as it is run, even if it
3000 does not have connections to other routers. Let's see how well
3003 * Changed default connection retry timeouts for more suitable in
3006 * Removed cipher and such arguments from silc_idlist_add_client
3007 and silc_idlist_add_server prototypes from silcd/idlist.[ch].
3008 Added new function silc_idlist_add_data to add the keys and stuff
3011 * Added SilcIDListData structure and added it to SilcClientEntry
3012 and SilcServerEntry as their first field in the structure. This
3013 way we can explicitly cast the ID entries to the SilcIDListData
3014 structure and get common data for the entries. In past, we had
3015 to first check what type of connection it is and then cast it to
3016 correct ID entry type. Now, we can directly cast the opaque
3017 pointer to the SilcIDListData (no matter what ID entry it actually
3018 is) and get the data needed.
3020 Mon Nov 6 21:56:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3022 * Wow, found a bug in scheduler. The scheduler uninitialized itself
3023 in some circumstances even if threre were timeout tasks, though not
3024 IO tasks, but tasks anyway. Now fixed.
3026 * Defined SilcServerConnection structure to hold connection specific
3027 stuff about directly connected servers and routers. The definition
3028 is currently in silcd/server_internal.h. I thought about having
3029 a bit more important role fro this struct but for now it is used
3030 only when connecting to other server (or router actually).
3032 * Added connecting retry support in server when connecting to
3033 router(s). The retry feature implement exponential backoff
3034 algorithm. Also, added SilcServerParams structure to hold default
3035 parameters for server. For now, it include these retry settings
3036 and are hard coded. After server is moded to be as Silc Server
3037 Library this structure will be more important.
3039 Sun Nov 5 22:28:44 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3041 * Changed client librarys channel->clients table to SilcList and
3042 changed code accordingly.
3044 Thu Nov 2 16:28:01 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3046 * Changed client's channel table to SilcList and changed code
3047 accordingly. Also changed SilcChannelClientEntry to include back-
3048 pointer to the channel so that client entry can use that structure
3049 as list as well and we have fast cross-reference to the channel.
3050 This change dramatically decreased the complexity of channel
3051 handling with client entry and vice versa (removed one extra
3052 loop when searching for channel entry from many functions).
3054 * Changed server->sim from table to SilcDList and changed code
3057 * NAMES command can now be used from user interface. It will show
3058 the user list on the channel, neatly.
3060 * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
3061 Code now saves realname of the user if it becomes available.
3063 * Renamed configure.in to configure.in.pre and made ./prepare
3064 script to automatically add correct version string to
3065 configure.in which it creates from configure.in.pre.
3067 Wed Nov 1 17:21:26 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3069 * NAMES command reply now shows users mode with the nickname when
3072 * Moved silc_client_ch[u]mode[_char] functions from
3073 silc/clientutil.[ch] to lib/silcclient/client.[ch]. Though, that
3074 place sucks, they are utility functions and should be in some
3077 * Fixed some unsigned int's to unsigned short's. Patch by cras.
3079 * Fixed contrib/getopt*.[ch] to not require config.h. Patch by
3082 Tue Oct 31 20:10:37 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3086 * Added TRQ (efficient deque and list library) into lib/trq. This is
3087 a very good list library that is currently used in the SILC. Defined
3088 SilcList API over the library because I didn't like the API very
3089 much. See lib/trq/silclist.h for the API and examples of how to
3090 use the API. Fixed various places in the code to use the new
3091 SilcList API. The SilcList is meant for lists that has a structure
3092 already defined as a list. It is not suitable to add just some
3093 context to the list (in TRQ, the context is the list actually).
3095 So, I defined SilcDList that can be used for the purpose where
3096 predefined list structure does not exit. This can be used as
3097 such list. Now some context just can be added to the SilcDList.
3098 Currently this list is not used in the SILC just yet, though there
3099 are a lot places where this can replace dynamically allocated
3100 tables and I will fix these places, later, to use SilcDList.
3101 See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
3102 and use TRQ internally).
3104 Also fixed some annoying warning messages that the original TRQ
3105 code generated. Also minor changes to TRQ's Makefile.in.
3107 * Added support for querying by Client ID to both WHOIS and
3108 IDENTIFY commands into server, as required by the protocol.
3110 * Removed method function pointers from SilcBuffer structure. They
3111 weren't used to anything and just increased the context size for
3112 no good reason. This change also made silc_buffer_alloc and
3113 silc_buffer_free functions inline functions.
3115 * Disabled command flooding detection support until it's fixed so
3116 that it accepts commands in but does not execute them more than once
3119 * Added silc_net_localhost(), to return local hostname, into
3120 lib/silcutil/silcnet.[ch]. Also added client->hostname pointer
3121 that must be initialized before calling silc_client_init.
3123 * Added new function: silc_server_send_notify_on_channels to send
3124 notify messages to all channels client has joined. It is assured
3125 that the message is sent only once per client.
3127 * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
3128 lib/silcutil/silcutil.[ch] as silc_format function. The new
3129 function is generic and is used by server as well, not only by
3130 the logging routines.
3132 * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
3133 the provided version string was not acceptable. Added new function:
3134 silc_ske_check_version into lib/silcske/silcske.h. The function
3135 must be implemented by the application (client or server) and it
3136 does not reside in the SKE library. The function checks the version
3137 string remote end sent.
3139 * Added back pointers (to opaque context and to SilcSocketConnection)
3140 into SilcPacketContext structure into lib/silccore/silcpacket.h.
3142 * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
3143 duplicate packet context structure.
3145 * Changed `notify' client operation to send same arguments as client
3146 receives from server except for ID's. ID's are mapped to correct
3147 ID entry and that is returned. Also, if channel entry is not sent
3148 by server but the notify is for channel the channel entry is sent
3149 to application (otherwise application doesn't know that it is for
3150 channel (library gets it from packet's Destination ID)).
3152 * Added silc_client_remove_from_channels into client library to
3153 remove a client from all channels it has joined to. Used when
3154 received SIGNOFF notify from server. Added also new function
3155 silc_client_replace_from_channels to replace old ID entry with
3156 new ID entry on all channels. Used when received NICK_CHANGE
3159 * Fixed ID Cache list handling in silc_idlist_get_client in
3160 lib/silcclient/idlist.c. Also, added silc_idlist_get_client_by_id
3161 to get (or query) client by ID.
3163 * Updated TODO list.
3165 * Added connection authentication status message defined by the
3166 protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
3167 support for these into the code in client and server side.
3169 * Added generic function silc_client_send_command to send any command
3170 with variable argument list. Application should use this function
3171 to send commands if the command functions provided by the library
3172 does not suite for the application's user interface needs.
3174 * Added new `failure' client operation. Application is notified about
3175 received failure packet if client is executing a protocol. In this
3176 case the protocol's execution has failed.
3178 * Added SKE's end notify to send the SKE_SUCCESS notify message that
3179 is required by the protocol.
3181 * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
3182 packet from remote. SILC_PROTOCOL_STATE_ERROR indicates local
3185 * Added status flag to SilcSKE object to indicate realtime status
3186 of the SKE protocol.
3188 * Application receives now exactly same command reply arguments as
3189 the library receives from server. However, if ID is received the
3190 corresponding ID entry is returned to the application (eg. Client
3191 ID is mapped to correct SilcClientEntry entry and that is returned).
3192 Changed command_reply client operation due to this change.
3194 * Changed all ID's in commands and in command replys as ID Payloads.
3195 Change affected both client and server side codes.
3197 All ID's sent in SILC network (with execption of ID's in SILC
3198 Packet header) are sent in ID Payload to support variable length
3201 * Server now notifies nick changes and notifies all clients on
3202 the channels about the new nickname (about the new Client ID,
3205 * Implemented CMODE command to change channel modes. Supports all
3206 channel modes defined by the protocol specs except ban and invite
3207 lists. (Also, private channel key mode is supported but support for
3208 setting private channel key in client is missing, thus, this mode
3209 has no effect on client side (except that server requires that the
3210 client uses private channel key and normal channel traffic does not
3213 Also, invite mode works per se, but INVITE command does not work
3214 yet correctly, so you can set channel as invite only channel but
3215 inviting clients to the channel does not work (it is yet to be
3216 thought what's the best way to do it).
3218 * Added new command SILC_COMMAND_CUMODE to change user mode on the
3219 channel. Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
3220 Implemented CUMODE command to change user's mode on the channel.
3221 Supports all modes defined by the protocol specs.
3223 * Added NAMES command reply to return users modes on the channel.
3225 * Removed unnecessary and slow ciphers from lib/silccrypt.
3227 * Set SO_KEEPALIVE option to connection sockets by default.
3229 * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
3231 * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE. Also,
3232 redefined the Notify Payload into protocol specs.
3234 * Added silc_id_payload_parse_id to get ID directly from raw
3237 Mon Oct 9 20:57:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3239 * Changed SILC_COMMAND_IDENTIFY in protocol specification to
3240 accept searching by Client ID as well.
3242 * Added support for LEAVE and SIGNOFF notify types in client library.
3244 * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
3245 to parse ID Payload from raw data.
3247 Sun Oct 8 19:33:08 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3249 * Added flags parameter into silc_ske_assemble_security_properties
3250 function in lib/silcske/silcske.[ch].
3252 * Changed notify client operation to fit better for notify messages
3253 sent by server. The notify payload received from server is now
3254 passed to the application (after parsing it to SilcNotifyPayload).
3255 It is application's responsibility to retrieve the arguments
3256 from the payload and show the message the way it wants. The message
3257 sent by server is implementation specific.
3259 * Changed public keys to comply with the protocol specification.
3260 Old public keys are not supported anymore and are not compatible.
3262 * Removed nickname from Channel Payload as the latest draft removed
3263 it. The client must resolve the nickname from the NAMES command
3264 reply received when it joined the channel.
3266 Also, changed all channel_xxxx_payload to channel_payload_xxxx.
3268 Sat Oct 7 21:55:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3270 * Fixed some errors in protocol specification drafts.
3272 * Created lib/silccore/silcnotify.c to implement Notify Payload
3273 encoding and decoding, lib/silccore/silcpayload.[ch] to implement
3274 generic payloads described by protocol specifications. The file
3275 includes implementations for ID Payload and Argument Payload.
3277 * Changed Command Payload implementation to use the new Argument
3278 Payload. Changed command_xxxx_payload to command_payload_xxxx
3279 to comply with SILC coding conventions.
3281 * Added suppport for Argument Payload handling in Notify Payload
3282 implementation as protocol requires it. Added the new support
3283 into server and client lib as well.
3285 Thu Oct 5 21:16:28 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3287 * Added support for multiple nicknames on same channel. [n] is
3288 added locally to the nickname if there are more than one same
3289 nicknames on the channel.
3291 * Server now sends all nicknames that matched WHOIS request.
3292 Client also shows the list received from server.
3294 * Added TOPIC command to client side. User can now set and show
3295 current topic on channel.
3297 * Added MOTD command to client and server. Also, server sends the
3298 motd when client connects to the server.
3300 * Changed version strings to comply ISO 8601.
3302 Wed Oct 4 23:29:06 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3304 * Fixed protocol error handling in client library. It should now
3305 cope even if the SKE fails for some reason.
3307 * Made new protocol specification drafts for submitting to IETF.
3309 * Implemented TOPIC command to server in silcd/command.c.
3311 * Added two new notify types into lib/silccore/silcnotify.h:
3312 SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
3313 notify nickname change and topic setting/change on a channel.
3315 * API change of command_reply operation in client library. The
3316 application gets now the status type received from server as well.
3318 Sat Sep 30 16:57:42 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3320 * Removed the function just added to lib/silcutil/silcschedule.[ch].
3322 * Cras fixed and optimized the packet handling even further and
3323 it should work now. Minor change to the prototype of function
3324 silc_packet_receive_process in lib/silccore/silcpacket.[ch].
3326 Sat Sep 30 08:48:47 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3328 * Added new function into lib/silcutil/silcschedule.[ch]:
3329 silc_schedule_with_fd to select() a specified fd. The function
3330 returns after timeout expires or data arrives or goes. The
3331 function is used by packet routines to wait that all data is
3332 received from network.
3334 * Fixed data reading from network in lib/silccore/silcpacket.c.
3335 The code now assures that all data is read from the fd and then
3336 continues packet processing. This was a bug fix since the code
3337 used to drop some data in some circumstances.
3339 * Added new function into lib/silcclient/client.[ch]:
3340 silc_client_start_key_exchange to start key exchange after
3341 connection has been established to server. The code internally
3342 now uses this funtion but its main purpose was to provide it
3343 for applications that perform their own connecting. After
3344 application has created a connection it merely calls this
3345 function to start the key exchange between client and server.
3346 The library takes care of everything else after that.
3348 Updated also lib/silcclient/README to explain the usage of
3351 * Do not send to application information that connection has
3352 been established. Application gets notified it by connect
3355 Thu Sep 28 23:40:19 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3357 * Applied cras's patch to add silc_schedule_one function. The
3358 function runs scheduler once and returns.
3360 * Fixed the scheduler after cras messed it up. The timeout
3361 handling works now as it's supposed to work.
3363 * Added into lib/silccore/ silcnotify.h to include notify
3364 message types support. Changed silc_server_send_notify*
3365 functions, in server.[ch], to support those new notify types.
3366 Added the support for the notify types into client library,
3367 as well. Added new notify client operation into ops.h in
3370 * Changed silc_server_packet_send_to_channel to send normal
3371 packets instead of just channel message packets. The function
3372 is now used to send the notify packets to channels. It is not
3373 used to send channel message packets anymore, as server never
3376 * Added explicit casting into lib/silcutil/silcbuffmt.c to few
3377 va_arg()s as it seems to require it nowadays. I guess, if SILC
3378 is compiled with older va_arg() the new code should work anyway.
3380 Wed Sep 13 18:10:14 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3382 * Splitted core library. Core library (lib/silccore) includes
3383 now only SILC protocol specific core (and common) components.
3384 Created new utility library (lib/silcutil) that includes more
3385 generic purpose stuff. The stuff for util library was taken
3386 from the old core library. This was minor and easy split.
3388 * Created SILC Client Library (lib/silcclient) that includes
3389 implementation of the SILC client without user interface. This
3390 was major move from silc/ directory. The code has been changed
3391 so that it is transparent towards the user interface. The
3392 silc/ directory includes now the same user interface as before
3393 and it uses the new client library. Read lib/silcclient/README.
3394 Basicly, the client library performs everything else related
3395 to SILC except user interface handling. Also, configuration
3396 files are considered to be part of user interface and library
3397 does not handle them.
3399 This change also changed a lot of structures, function naming etc.
3400 Most important change was that SilcClientWindow object was
3401 renamed to SilcClientConnection in the client library. Created
3402 also new file lib/silcclient/ops.h. Also added new files
3403 silc/local_command.[ch] and silc/client_ops.[ch].
3405 All these changes were made to make it easier for user interface
3406 designers to create what ever user interface for the SILC client
3409 It is also expected that the server will be moved to lib
3410 directory as well and SILC Server Library will be created;
3411 sometimes in the future.
3413 * Removed Local commands from lib/silccore/silccommand.h as
3414 they are application specific and new client library does not
3415 handle any of those anymore.
3417 * Several functions moved to lib/silcutil/silcutilc.[ch] from
3418 old client implementation in silc/.
3420 * Added support for callback functions in SILC_LOG_* macros.
3421 Application can now set its own callbacks that will be called
3422 instead of using the default functions that will always print
3423 the debug messages to stderr (or stdout). Also, debugging can
3424 now be disabled by setting silc_debug to FALSE and re-enabled by
3425 setting it to TRUE. Note, that logging will still work even
3426 if debugging is disabled.
3428 New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
3429 silc_log_reset_callbacks, silc_log_set_debug_callbacks and
3430 silc_log_reset_debug_callbacks.
3432 * To enable debugging in silc client one must give now -d
3433 option on command line.
3435 * Changed silc_schedule_init to automatically allocate task queues
3436 if they are not allocated before calling it.
3438 Thu Sep 7 10:49:33 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3440 * Added GMP 3.1 into math library.
3442 Sun Aug 20 21:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3444 * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
3445 a channel in SILC network. The packet is used by servers and
3446 routers to notify other routers that user has left a channel.
3447 This little feature was missing until now. Added the feature
3448 to protocol specification as well.
3450 Added functions: silc_server_send_remove_channel_user and
3451 silc_server_remove_channel_user into server.[ch].
3453 * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
3454 lib/silccore/silcpacket.h. However, they are not implemented
3457 Sat Aug 19 23:04:16 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3459 * Fixed joining to a channel and sending channel messages
3460 between server and router. The channel message sending should
3461 now work inside a cell.
3463 Tue Jul 25 20:46:13 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3465 * Fixed the private message sending between server and router.
3466 The private message sending should now work inside a cell.
3468 * Added silc_server_replace_id into server.[ch] to replace
3469 existing ID in the SILC network.
3471 * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
3472 and silc_idlist_replace_server_id into idlist.[ch] in server.
3474 Mon Jul 24 18:33:31 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3476 * Fixed the server to server connections. Server can again now
3477 connect to router. Router to router connections probably does
3480 Thu Jul 20 13:15:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3482 * Added dynamic protocol registering support. Now protocols can
3483 registered and unregistered on the fly. Patch by cras.
3485 Wed Jul 19 19:08:46 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3487 * Added lib/contrib directory to hold routines that some platforms
3488 don't have but are needed by SILC.
3490 * Added getopt.c, getopt1.c and getopt.h from GNU C library
3491 into lin/contrib to provide getopt() and getopt_long() for
3492 those who don't have it.
3494 Tue Jul 18 20:41:20 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3496 * Added AWAY command to client. When away message is set and
3497 client receives a private message packet the client automatically
3498 replies to the sender with the away message.
3500 * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin. This
3501 bug seemed to be the cause of recent problems when compiling
3504 * Added version detection support to SKE protocol specification
3505 and added the new changes to the SKE implementation as well.
3506 There were other minor changes in the SKE protocol as well.
3508 Many changes in lib/silcske/silcske.[ch] and in
3509 lib/silcske/payload.[ch].
3511 * Added ^U functionality, clear input line. Patch from cras.
3513 Mon Jul 17 23:33:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3515 * Mainly small bugfixes on core library. Fixed some debugging
3516 logging and buffer overflow in silclog.c.
3518 * Updated config.sub and config.guess on the distribution tree.
3520 Sat Jul 15 15:33:48 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3522 * Added command lagging support in server. Client may execute
3523 commands now only once in two seconds.
3525 Thu Jul 13 22:10:21 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3527 * Optimized packet reception. MAC computation and checking is now
3528 also more optimized. A lot previously duplicated code is now
3529 used as generic by both client and server.
3531 * Fixed key pair generation in clientutil.c
3533 Wed Jul 12 18:28:07 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3535 * Added into lib/silccore/silcbufutil.[ch] new function;
3536 silc_buffer_realloc.
3538 * Moved generic packet sending/encryption functions to
3539 lib/silccore/silcpacket.[ch] from client and server. Some
3540 rewriting of the functions.
3542 * Moved all generic packet reception/decryption functions to
3543 lib/silccore/silcpacket.[ch] from client and server. The
3544 packet processing is now much cleaner in both client and server.
3545 These were major changes in both client and server.
3547 * Created many common functions in server to do packet sending.
3548 Previously code were duplicated a lot, this has been removed
3551 Tue Jul 11 20:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3553 * Rewrote major parts of the ID cache system. Don't know
3554 whether it is better now or not but at least the API is more
3557 * Major rewrite on ID cache stuff on client because of the ID
3558 cache API changes. Added idlist.c to client.
3560 * Also major rewrite on ID cache stuff on server as well.
3561 Major rewrite of idlist.[ch]. SilcXXXList's are now named
3562 SilcXXXEntry's. We won't keep anymore idlist specific pointers
3563 in hand, instead they are all put into the ID cache system now.
3564 All server_idlist_* routines uses ID cache now instead of
3565 traversing its own lists (those lists does not exist anymore).
3566 SilcIDList though still exists. Also, SilcXXXEntry's are
3569 Sun Jul 9 15:19:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3571 * Finally made the SKE implementation compliant to the protocol
3572 specification. All mp integers are now binary encoded as
3573 opposed being HEX encoded.
3575 * Added lib/silcmath/mpbin.[ch]. Encoding mp intergers to and
3578 * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
3579 functions: silc_[encode/decode]_pem. Also added function
3580 silc_encode_pem_file to PEM encode with newlines ('\n') for
3583 * SILC public keys are now encoded either PEM or binary. Same
3584 option is for private keys as well. By default private keys
3585 are binary encoded and public keys PEM encoded. Silly HEX
3586 encoding were removed.
3588 * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
3589 function to create fingerprints.
3591 * Fixed a bug in SHA1; does not change the original data anymore.
3593 * Partly implemented INFO command on client and server side.
3594 Fixed CLEAR command. Changes to SERVER command; show current
3595 server(s) when giving command without arguments. Added
3596 VERSION command to client.
3598 * Added check to server that unregistered connections cannot
3599 execute commands (unless it is specificly allowed).
3601 Thu Jul 6 18:12:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3603 * Fixed screen refresh.
3605 * Fixed channel joining bug from client. On some circumstances
3606 client tried to join to a channel it had already joined.
3608 * Added public key verification process into client's protocol.c.
3609 The client now verifies the public key from user and saves
3610 it into ~./silc/serverkeys/ directory.
3612 Added into: clientutil.[ch]: silc_client_verify_server_key.
3614 * Changed SKE protocol's silc_ske_initiator_finish function
3615 to accept callback function that verifies the received public
3616 key. Removed old silc_ske_verify_public_key function.
3618 Wed Jul 5 19:19:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3620 * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
3621 silc_pkcs_private_key[_data]_set.
3623 * Made the password and public authentication more cleaner in
3624 server's protocol.c.
3626 * Removed historic and obsolete protocol `channel_auth' from
3627 both client and server.
3629 * Removed wrong way of sending command status messages from
3630 server to client in server's command.c. The old way violated
3631 protocol specification.
3633 Changes to silccore/silccommand.[ch]: removed
3634 silc_command_encode_status_payload -> not needed anymore,
3635 changed silc_command_encode_payload_va to accept extra
3636 argument on variable argument list. The argument type must
3637 now be provided to the function. Also, added new function:
3638 silc_command_encode_reply_payload_va which is same as
3639 normal command_encode_payload_va except command status type
3640 is provided as extra argument.
3642 Tue Jul 4 18:26:39 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3644 * Added ~./silc directory handling. The directory includes the
3645 public and private keys for the client.
3647 Added silc_client_check_silc_dir, silc_client_create_identifier
3648 and silc_client_load_keys.
3650 * Implemented SILC protocol compliant public key. Added public
3651 and private key saving to and loading from files.
3653 Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
3654 silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
3655 silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
3656 silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
3657 silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
3659 Implemented: silc_pkcs_save_[public/private]_key[_data] and
3660 silc_pkcs_load_[public/private]_key.
3662 Mon Jul 3 18:51:27 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3664 * Added silc_server_get_route (route.[ch]) to get connection
3665 data for the fastest route for given ID.
3667 * Implemented INVITE command on client and server. The command
3668 were re-defined in the SILC Protocol Specification and the
3669 implementation now complies with the specification.
3671 * Implemented PING command on client and server.
3673 * Implemented NAMES command on client and server. The server side
3674 supports currently only normal server not router server yet.
3675 Some changes to NAMES definition in SILC protocol specification.
3677 Sun Jul 2 18:23:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3679 * Implemented LEAVE command on client and server.
3681 * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
3682 again. This change was made to the protocol as well. Server
3683 should not violate the protocol specification anymore.
3685 Fri Jun 30 14:03:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
3687 * Added SOCKS4 and SOCKS5 support to SILC client. SOCKS5
3688 was tested. SOCKS4 was not but should work anyway.