1 Fri Mar 23 16:25:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
3 * Redefined the INVITE command. The same command can be used to
4 invite individuals to the channel but also to manage the invite
5 list of the channel (to add to and remove from the invite list).
6 Updated the protocol specs.
8 * Added new command SILC_COMMAND_BAN that can be used to manage
9 the ban list of the channel. Updated the protocol specs.
11 * Removed the channel modes: the SILC_CMODE_BAN and the
12 SILC_CMODE_INVITE_LIST as they were a bit kludge to be included
13 in the CMODE command. The equivalent features are now available
14 using INVITE and BAN commands. Updated the protocol specs.
16 * Added new SILC_NOTIFY_TYPE_BAN notify type to notify routers
17 in the network about change in the current ban list. The notify
18 type is not used by the client.
20 * Redefined parts of the SILC_NOTIFY_TYPE_INVITE command to
21 support the invite lists.
23 Thu Mar 22 22:52:23 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
25 * Added new function silc_string_regexify that converts string
26 including wildcard characters into regex string that can
27 be used by the GNU regex library. Added into the file
28 lib/silcutil/silcutil.[ch].
30 Added silc_string_regex_combine to combine to regex strings
31 into one so that they can be used as one regex string by
32 the GNU regex library. Added into the file
33 lib/silcutil/silcutil.[ch].
35 Added silc_string_regex_match to match two strings. It returns
36 TRUE if the strings match. Added into lib/silcutil/silcutil.[ch].
38 Thu Mar 22 15:29:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
40 * Imported GNU regex to the soruce tree into lib/contrib.
41 Fixed some compiler warning from the regex.c.
43 Wed Mar 21 15:27:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
45 * Fixed MOTD command in the server to work in router environment.
47 * Fixed the MOTD command in the client library to support
48 the server argument in the command.
50 * Added `nickname_len' argument to the silc_idlist_add_client
51 in the server, as the `nickname' argument may be binary data
54 * Added silc_idlist_get_channels to return all channels from
57 * Implemented LIST command to the server. Affected file is
60 * Implemented the LIST command to the client library and on the
63 * Added [<user count>] argument to the LIST command reply.
64 With private channels the user count is not shown.
66 * Updated TODO and README.
68 Tue Mar 20 21:05:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
70 * The client entry's data.registered must be TRUE even with
71 global client entry on global client list. The data.registered
72 is used to check whether the client is anymore in the network,
73 for example with WHOWAS command so it must be valid.
75 * Fixed the WHOWAS command in the server. It now actually works
76 in router environment. Added function into silcd/command_reply.c
77 silc_server_command_reply_whowas_save.
79 * Added silc_idlist_purge function to the silcd/idlist.c
80 to periodically purge the ID Cache.
82 * Fixed INFO command in the server. It works now in router
83 environment. Added <server name> argument to the INFO command
84 reply. Updated the protocol specs.
86 * Fixed minor bug in silc_idcache_purge to not purge if the
89 * Fixed various bugs in WHOIS and IDENTIFY command handling as
90 they were buggy because of the WHOWAS information.
92 * Fixed local command MSG to handle the async resolving of
93 the remote client properly. It used to fail the first MSG.
94 Affected file silc/local_command.c.
96 * Added `data_len' field to SilcIDCache context.
98 Tue Mar 20 16:29:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
100 * Update TODO. Todo in commands in the server.
102 Tue Mar 20 15:45:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
104 * Added new notify type SILC_NOTIFY_TYPE_UMODE_CHANGE that is
105 used by routers as broadcast packet to inform other routers
106 about the changed user mode.
108 Implemented the notify handling in the server. Affected file is
109 silcd/packet_receive.c. Added the function
110 silc_server_send_notify_umode to the silcd/packet_send.[ch].
112 * Added new generic Channel Payload and deprecated the New Channel
113 Payload. The New Channel Payload is now the generic Channel
116 * Added new argument `mode' to the silc_server_send_new_channel
117 as it is required in the Channel Payload now.
119 * Renamed the SilcChannelPayload to SilcChannelMessagePayload
120 and created a new and real SilChannelPayload to represent the
121 new generic Channel Payload. Implemented the encode/decode
122 for Channel Payload. Affected file lib/silccore/silcchannel.[ch].
124 * Added silc_server_get_client_channel_list to return the list
125 of channels the client has joined for WHOIS command reply.
126 Affected file silcd/server.[ch].
128 * Implemented the channel list sending in the WHOIS command reply
129 in server and in the client.
131 Implemented the channel list displaying on the user interface
132 as well. Affected file silc/client_ops.c.
134 * Added silc_channel_payload_parse_list to parse list of Channel
135 Payloads. It returns SilcDList list of SilcChannelPayloads.
136 Client for example can use this function to parse the list of
137 channels it receives in the WHOIS command reply. The caller
138 must free the list by calling silc_channel_payload_list_free.
139 Affected files lib/silccore/silcchannel.[ch].
141 Mon Mar 19 21:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
143 * Added one new argument <user mode> to the WHOIS command reply
144 to return the mode of the user in SILC. Updated the protocol
147 Implemented it to the server and client.
149 Mon Mar 19 18:43:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
151 * Fixed the mode printing on the user interface on joining.
152 Affected file silc/client_ops.c.
154 * Implemented the UMODE command and user modes in general to the
155 client library and to the user interface.
157 * Implemented the UMODE command to the server.
159 * The server now sends UNKNOWN_COMMAND error status if client sends
160 unknown command. Affected file silcd/command.c.
162 * All server commands now handle the command identifier the right
163 way when sending the command reply to the client. The client can
164 use to identify the command replies with the identifier.
166 Mon Mar 19 16:13:07 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
168 * Added silc_server_get_client_route to resolve the route to
169 the client indicated by the client ID. Affected file is
172 * Added silc_server_relay_packet as general function to relay
173 packet to arbitrary destination. This deprecates functions
174 like _send_private_message_key, _relay_notify etc. Affected
175 file is silcd/packet_send.[ch].
177 Removed silc_server_send_key_agreement,
178 silc_server_send_private_message_key and
179 silc_server_packet_relay_notify functions from the file
180 silcd/packet_send.[ch].
184 * Implemented the SILC_NOTIFY_TYPE_KILLED notify handling in the
185 server. Affected file silcd/packet_receive.[ch].
187 * Implemented the KILL command to the client. Implemented the
188 SILC_NOTIFY_TYPE_KILLED notify handling in the client library.
189 Affected files lib/silcclient/command[_reply].c and
190 lib/silcclient/client_notify.c. Implemented the KILL notify
191 printing in the user inteface.
193 * Fixed a lot silc_parse_nick memory leaks from the client
194 library in the file lib/silcclient/command.c.
196 * Changed the silc_server_send_notify_on_channels's `sender'
197 argument from SilcSocketConnection to SilcClientEntry to
198 check the sender as entry and not as connection object and not
199 to send to the client provided as argument. The affected file
200 is silcd/packet_send.[ch].
202 * The notify packets that are destined directly to the client used
203 to not to be processed by the server. Now changed that and the
204 server processes all notify packets. After relaying the packet
205 to the client the notify packet is processed in the server.
207 * The silc_server_free_client_data now checks whether there is
208 pending outgoing traffic for the client and purges the data to
209 the network before removing the client entry.
211 Sun Mar 18 21:02:47 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
213 * Added SILC_NOTIFY_TYPE_KILLED notify type. It is sent when
214 an client is killed from the SILC Network. Updated the protocol
217 Added new function silc_server_send_notify_killed to the
218 silcd/packet_send.[ch].
220 * Added function silc_server_packet_relay_notify to relay notify
221 packets that are destined directly to a client. In this case
222 the server does not process the notify packets but merely relays
223 it to the client. Affected file silcd/packet_send.[ch].
225 Added also silc_server_packet_process_relay_notify to check
226 whereto relay the notify. Affected file is
227 silcd/packet_receive.[ch].
229 * Implemented the KILL command to the server.
233 * Added the backup schema desgined last fall to the protocol
234 specs for everyone to see. The specification is in the
235 *-spec-xx.txt draft and the packet type definitions for the
236 backup routers is in *-pp-xx.txt draft. Thusly, added also
237 new packet type SILC_PACKET_CELL_ROUTERS.
239 * A big security problem in the implementation discovered. The
240 signoff of an client did not cause new channel key generation
241 which it of course should've done. The channel keys must be
242 always re-generated when client leaves (or signoffs) the channel.
243 The silc_server_remove_from_channels funtion now handles
244 the channel key re-generation.
246 * Added `sender' argument to the silc_server_send_notify_on_channels
247 to not to send the client provided as argument. Affected file
248 silcd/packet_send.[ch].
250 Fri Mar 16 15:52:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
252 * Implemented OPER and SILCOPER commands into the server and
255 * Added silc_auth_verify and silc_auth_verify_data to verify
256 the authentication directly from the authentication payload.
257 It supports verifying both passphrase and public key based
258 authentication. Affected file lib/silccore/silcauth.[ch].
260 * Added `hash' field to the SilcIDListData structure. It is the
261 hash negotiated in the SKE protocol. Affected file is
264 * Slight redesigning of the SilcAuthPayload handling routines.
265 Do not send SilcPKCS but SilcPublicKey as argument.
267 * Implemented the public key authentication support to the
268 serverconfig. The public key is loaded fromthe provided path
269 and saved as authentication data to void * pointer. Thus,
270 changed the unsigned char *auth_data to void *auth_data;
272 * Fixed SHUTDOWN command to send the reply before the server
273 is shutdown. :) Affected file silcd/command.c.
275 * Fixed fatal bug in CONNECT command. The hostname was invalid
276 memory and server crashed. Affected file silcd/command.c.
278 * Fixed fatal bug in CLOSE command. The server_entry became
279 invalid but was referenced later in the command. Affected file
282 Thu Mar 15 12:46:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
284 * Fixed fatal bug in failure packet handling. Server ignored
285 the failure and thus crashed when it came.
289 Wed Mar 14 20:37:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
291 * Added new SILC_CF_LAG_STRICT command flag that strictly forces
292 that the command may be executed only once in (about) 2 seconds.
293 The old SILC_CF_LAG flag is same but allows command bursts up
294 to five before limiting.
296 Added the support for CF_LAG and CF_LAG_STRICT flags to the
297 server code. Various commands now includes the CF_LAG_STRICT
298 flag to disallow any kind of miss-use of the command.
300 * Fixed the silc_buffer_unformat to not to allocate any data
301 if the length of the data is zero. It used to allocate the
302 length + 1. Affected file lib/silcutil/silcbuffmt.c.
304 Wed Mar 14 16:10:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
306 * Changed the format of AdminConnection configuration section
307 in the server. Added username of the admin to the format.
308 Affected files silcd/serverconfig.[ch].
310 Added silc_server_config_find_admin into silcd/serverconfig.[ch]
311 to return admin configuration data by host, username and/or
314 Wed Mar 14 13:18:16 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
316 * Implemented WHOWAS command to the server. Added the functions:
318 silc_server_command_whowas_parse,
319 silc_server_command_whowas_send_reply,
320 silc_server_command_whowas_from_client and
321 silc_server_command_whowas_from_server
323 * Added <Client ID> argument to the WHOWAS command reply. Updated
324 the protocol specs accordingly.
326 * Implemented WHOWAS command and command_reply to the client
329 Implemented the WHOWAS printing on the user interface.
331 Tue Mar 13 22:17:34 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
333 * Added new argument to the WHOWAS command reply, the real name.
334 It is an optional argument. Updated the protocol specs.
336 * Added SilcIDCacheDestructor callback that is registered when
337 the SilcIDCache is allocated. The callback is called when
338 an cache entry in the ID Cache expires, or is purged from the
339 cache. Added into lib/silccore/idcache.[ch].
341 Added silc_idlist_client_destructor to the silcd/idlist.[ch]
342 to destruct the client entries when the cache entry expires.
343 Other ID Cache's in server and in the client library ignores
346 * If the ID Cache entry's `expire' field is zero then the entry
347 never expires. Added boolean `expire' argument to the
348 silc_idcache_add function in the lib/silccore/idcache.[ch].
349 If it is TRUE the default expiry value is used.
351 * Added silc_server_free_client_data_timeout that is registered
352 when client disconnects. By default for 5 minutes we preserve
353 the client entry for history - for WHOWAS command.
355 Tue Mar 13 13:26:18 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
357 * Added support to the server to enforce that commands are not
358 executed more than once in 2 seconds. If server receives
359 commands from client more frequently, timeout is registered
360 to process the commands. Affected file silcd/command.c.
361 Added new function silc_server_command_process_timeout.
363 * Changed NICK_NOTIFY handling in client library to check that
364 if the client's nickname was changed, so there is no need to
365 resolve anything from the server.
367 * Removed error printing from the WHOIS and IDENTIFY commands.
368 If error occurs then it is ignored silently in the client library.
369 The application, however, may map the received error to
370 human readable error string. The application currently maps
371 the NO_SUCH_NICKNAME error to string.
373 * Made the command status message public to the application. Moved
374 them from lib/silcclient/command_reply.c to
375 lib/silcclient/command_reply.h. The application can map the
376 received command status to the string with the
377 silc_client_command_status_message function.
379 * Added check to the server to check that client's ID is same
380 as the Source ID in the packet the client sent. They must
383 Tue Mar 13 12:49:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
385 * Added dist-bzip hook to the Makefile.am to make bzip2
386 compressed distributions.
388 Mon Mar 12 18:43:38 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
390 * Server now enforces the maximum length for the nickname and
391 the channel as protocol specification dictates. 128 bytes for
392 nickname and 256 bytes for channel name.
394 * Moved the WHOIS printing to the application. The client libary
395 does not print out the WHOIS information anymore, the application
396 must do it. Renamed silc_client_command_reply_whois_print to
397 the silc_client_command_reply_whois_save.
399 The client's idle time is also sent to the application now, and
400 the idle is shown on screen.
402 * Added silc_client_command_reply_identify_save to save the
403 received IDENTIFY entries.
405 * Do not check for channel private keys in message sending and
406 reception if the channel does not have the PRIVKEY mode set.
407 Affected file lib/silclient/client_channel.c.
409 Sun Mar 11 20:25:06 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
411 * Fixed a minor bug if WHOIS and IDENTIFY command parsing that
412 just surfaced after chaning the JOIN procedure.
414 Sun Mar 11 14:59:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
416 * Added silc_client_get_clients_by_list to get client entries
417 from Client ID list, that is returned for example by JOIN
418 and USERS command replies. The application should use this
419 function for example when JOIN command reply is received to
420 resolve the clients already on the channel (library does not
421 do that anymore as USERS command reply is not used in the JOIN
422 procedure anymore). Affected files lib/silcclient/silcapi.h and
423 lib/silcclient/idlist.c.
425 * JOIN command reply and USERS command reply returns now SilcBuffer
426 pointers instead of unsigned char pointers when returning
427 the client list and mode list.
429 * Added <Client ID> argument to the JOIN command reply, mainly
430 for the server to identify for which client the command was
431 originally sent. Updated protocol specs accordingly.
433 * Added SilcDlist private_key pointer to the SilcChannelEntry
434 in the client to support the channel private keys. Affected
435 file is lib/silcclient/idlist.h.
437 * Added SilcChannelPrivateKey argument to the function
438 silc_client_send_channel_message so that application can choose
439 to use specific private ke if it wants to. If it is not provided,
440 the normal channel key is used, unless private keys are set.
441 In this case the first (key that was added first) is used
442 as the encryption key.
444 * Implemented the support for channel private key handling.
445 Implemented the following functions:
447 silc_client_add_channel_private_key,
448 silc_client_del_channel_private_keys,
449 silc_client_del_channel_private_key,
450 silc_client_list_channel_private_keys and
451 silc_client_free_channel_private_keys
453 Affected file lib/silcclient/client_channel.c.
455 * Added the support for the private keys in the channel message
456 sending and encryption and in the message reception and
457 decryption. Affected funtions are
458 silc_client_send_channel_message and silc_client_channel_message.
460 Sat Mar 10 21:36:22 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
462 * Added SKE's key verify callback to the client library's
463 KE protocol context. Affected files lib/silcclient/protocol.[ch].
465 * Removed the statement that server (or router) must send USERS
466 command reply when joining to the channel so that the client
467 knows who are on the channel. Instead, the client list and
468 client's mode list is now sent in the JOIN command reply to the
469 client who joined channel. This is better solution.
471 * Added function silc_server_get_users_on_channel and function
472 silc_server_save_users_on_channel to the silcd/server.[ch].
474 * Removed function silc_server_command_send_users from the
477 * Do not show topic on the client library anymore. The topic is
478 sent in the command reply notify to the application and the
479 application must show the topic now.
481 Sat Mar 10 00:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
483 * Added client searching by nickname hash into the IDENTIFY and
484 WHOIS commands in the server as they were clearly missing from
485 them. Affected file is silcd/command.c.
487 * Fixed a bug in private message receiving in the client library.
488 The remote ID was freed and it wasn't supposed, now it is
491 Fri Mar 9 12:40:42 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
493 * Minor fix to the channel payload; allocate the data area, as it
494 needs to be of specific length.
496 * If the key agreement port is zero then the operating
497 system will define the bound port. Affected files are
498 lib/silcclient/silcapi.h and lib/silcclient/client_keyagr.c.
500 * Added new function silc_channel_payload_decrypt into the file
501 lib/silccore/silcchannel.[ch].
503 * Moved the channel message etc, check from silc_packet_decrypt
504 to applications. The library calls now a generic
505 SilcPacketCheckDecrypt callback which is to return TRUE or FALSE
506 when the packet is either normal or special. This was done to
507 allow more wide range of checking that was not allowed when
508 the code was in library. Now applications can do virtually any
509 checks to the packet and return to the library the decision how
510 the packet should be processed. Affected files are
511 lib/silccore/silcpacket.[ch].
513 Added silc_server_packet_decrypt_check to the server and
514 silc_client_packet_decrypt_check to the client library.
516 * Added silc_server_packet_send_srcdest into silcd/packet_send.[ch]
517 to send with specified source and destination information.
519 * Channel message delivery between routers was broken after the
520 channel key distribution was fixed earlier. The channel key
521 was used be to distributed to other routers as well which is not
522 allowed by the protocol. Now this is fixed and channel keys
523 really are cell specific and the channel message delivery between
524 routers comply with the protocol specification.
526 * Fixed various commands in server to check also the global list
527 for the channel entry and not just the local list. The affected
528 file silcd/command.c.
530 Thu Mar 8 21:39:03 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
532 * Added assert()s to buffer formatting and unformatting routines
533 to assert (if --enable-debug) when error occurs. Affected
534 file: lib/silcutil/silcbuffmt.c.
536 * Changed to auto-reconnect to check whether the remote host is
537 router and register the re-connect timeout if it is. It used
538 to check that whether we are normal server, but router must do
539 auto-reconnect with another router as well. Affected file
542 * Removed the [<key len>] option from CMODE command as the cipher
543 name decides the key length, nowadays. See the defined ciphers
544 from the protocol specification.
546 * Added [<hmac>] option to the CMODE command to define the HMAC
547 for the channel. Added SILC_CMODE_HMAC channel mode.
549 * Added [<hmac>] option for the JOIN command so that user can
550 select which HMAC is used to compute the MACs of the channel
553 * Added Hmac field to the Channel Message Payload. The integrity
554 of plaintext channel messages are now protected by computing
555 MAC of the message and attaching the MAC to the payload. The
556 MAC is encrypted. Now, it is clear that this causes some
557 overhead to the size of the packet but rationale for this is that
558 now the receiver can verify whether the channel message decrypted
559 correctly and also when private keys are set for the channel the
560 receiver can decrypt the packet with several keys and check from
561 the MAC which key decrypted the message correctly.
563 * Added silc_cipher_encrypt and silc_cipher_decrypt into the
564 lib/silccrypt/silccipher.[ch].
566 * Added silc_hash_len to return the digest length into the
567 lib/silcrypt/silchash.[ch].
569 * Rewrote parts of Silc Channel Payload interface in the
570 lib/silccore/silcchannel.[ch]. The encode function now also
571 encrypts the packet and parse function decrypts it.
573 Wed Mar 7 20:58:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
575 * Fixed a minor formatting bug in the SKE's key material processing.
576 It actually might have processed the keys wrong way resulting
579 * Redefined the mandatory HMAC algorithms and added new algorithms.
580 Added hmac-sha1-96 and hmac-md5-96 which are normal hmac-sha1
581 and hmac-md5 truncated to 96 bits. The mandatory is now
582 hmac-sha1-96. Rest are optional (including the one that used
583 to be mandatory). Rationale for this is that the truncated HMAC
584 length is sufficient from security point of view and can actually
585 make the attack against the HMAC harder. Also, the truncated
586 HMAC causes less overhead to the packets. See the RFC2104 for
589 * Added new [hmac] configuration section. The SKE used to use
590 the hash names (md5 and sha1) in the SKE proposal as HMCAS which
591 is of course wrong. The official names that must be proposed in
592 the SKE are the ones defined in the protocol specification
593 (hmac-sha1-96 for example). The user can configure any hmac
594 using any hash function configured in the [hash] section. At
595 least, the mandatory must be configured.
597 Rewrote the HMAC interface in lib/silccrypt/silchmac.[ch].
599 * Added HMAC list to the SKE proposal list. It has now both
600 hash algorithm list and HMAC list. This makes the protocol
601 incompatible with previous versions. The SKE now seems to work
602 the way it is supposed to work, for the first time actually.
604 * Defined plain Hash algorithms to the protocol specification.
607 Tue Mar 6 15:36:11 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
609 * Implemented support for key agreement packets into the server.
610 Added functions silc_server_key_agreement and
611 silc_server_send_key_agreement. Other than these functions,
612 server has nothing to do with this packet.
614 * Added support for private message key packets into the server.
615 Added functions silc_server_private_message_key and
616 silc_server_send_private_message_key.
620 * Changed the silc_[client|server]_protocol_ke_set_keys to be
621 called in the protocol's final callback instead in the END
622 protocol state. This makes a little more sense and in the same
623 time in client we can use the same protocol routines for normal
624 key exchange and to key agreement packet handling as well.
626 * Added to both client's and server's KE protocol context the
627 SilcSKEKeyMaterial pointer to save the key material. We will
628 bring the key material to the protocol's final callback by doing
629 this. The final callback must free the key material.
631 * Added SKE's packet_send callback into client's KE protocol
632 context so that the caller can choose what packet sending function
633 is used. This way we can use different packet sending when
634 doing normal SKE when doing key agreement packet handling (in
635 the key agreement packet handling we do not want to encrypt
638 * Implemented the responder side of the key agreement routines
639 in the client. The client can now bind to specified port and
640 accept incoming key negotiation. The key material is passed
641 to the application after the protocol is over.
643 * Implemented the processing of incoming Key Agreement packet
644 in the client. Added function silc_client_key_agreement to
647 * Implemented the intiator side of the key agreement routines
648 in the client. The client can now initiate key agreement with
649 another remote client. The key material is passed to the
650 application after the protocol is over.
652 * Created client_keyagr.c to include all the key agreement
655 * Added macro SILC_TASK_CALLBACK_GLOBAL which is equal to the
656 SILC_TASK_CALLBACK except that it is not static.
658 * Created client_notify.c and moved the Notify packet handling
659 from the client.[ch] into that file.
661 * Created client_prvmsg.c and moved all private message and
662 private message key routines from the client.[ch] into that file.
664 * Create client_channel.c and moved all channel message and
665 channel private key routines from the client.[ch] into that file.
667 * Changed silc_client_get_client_by_id_resolve to resolve with
668 WHOIS command instead of IDENTIFY command, in the file
669 lib/silclient/idlist.c.
671 Mon Mar 5 18:39:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
673 * Implemented the SKE's responder side to the Client library.
675 * When FAILURE is received to the protocol do not trust it
676 blindly. Register a timeout to wait whether the remote closes
677 the connection as it should do it, only after that process the
678 actual failure. This was changed to both client and server.
680 * Added client_internal.h to include some of the structures
681 there instead of client.h in lib/silcclient/.
683 * Added function silc_task_unregister_by_callback to unregister
684 timeouts by the callback function.
686 Sat Mar 3 19:15:43 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
688 * Some "Incomplete WHOIS info" errors has been appearing on the
689 log files. Took away the entry->userinfo check from WHOIS
690 reply sending. The entry->userinfo is now " " if client did not
691 provide one. I thought this was fixed earlier but something
692 is wrong still. Let's see if the error still appears.
694 Wed Feb 28 20:56:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
696 * Fixed a minor bug in the login when the channel key is
697 re-generated in the server. It used to generate the key in
698 wrong order and thus caused problems in the channel traffic.
700 * Fixed a minor bug in channel key distsribution after
701 KICK command. The key was not sent to the router even though
704 Tue Feb 27 20:24:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
706 * Added silc_ske_process_key_material_data as generic routine
707 to process any key material as the SILC protocol dictates. The
708 function is used by the actual SKE library but can be used by
709 applications as well. This relates to the private message keys
710 and the channel private keys since they must be processed the
711 same way the normal SILC session keys. The protocol dictates
712 this. Affected files: lib/silcske/silcske.[ch].
714 Added also silc_ske_free_key_material to free the
715 SilcSKEKeyMaterial structure.
717 * Defined silc_cipher_set_key function to set the key for
718 cipher without using the object's method function. The affected
719 files: lib/silccrypt/silccipher.[ch].
721 * Implemented silc silc_client_add_private_message_key,
722 silc_client_add_private_message_key_ske,
723 silc_client_del_private_message_key,
724 silc_client_list_private_message_keys and
725 silc_client_free_private_message_keys functions in the
728 Added functions silc_client_send_private_message_key to send
729 the Private Message Key payload and silc_client_private_message_key
730 to handle incoming Private Message Key payload.
732 * Added Cipher field to the Private Message Key payload to set
733 the cipher to be used. If ignored, the default cipher defined
734 in the SILC protocol (aes-256-cbc) is used.
736 Tue Feb 27 13:30:52 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
738 * Removed lib/silcclient/ops.h file.
740 Redefined parts of the SILC Client Library API. Created new
741 file silcapi.h that deprecates the ops.h file and defines the
742 published Client Library API. Defined also private message key
743 API and channel private key API into the file.
745 This is the file that the application must include from the
746 SILC Client Library. Other files need not be included by
747 the application anymore.
749 * Added new key_agreement client operation callback and also
750 defined the Key Agreement library API for the application.
752 Tue Feb 27 11:28:31 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
754 * Added new packet type: SILC_PACKET_KEY_AGREEMENT. This packet
755 is used by clients to request key negotiation between another
756 client in the SILC network. If the negotiation is started it
757 is performed using the SKE protocol. The result of the
758 negotiation, the secret key material, can be used for example
759 as private message key.
761 Implemented the Key Agreement payload into the files
762 lib/silccore/silauth.[ch].
764 Mon Feb 26 12:13:58 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
766 * Redefined ciphers for the SILC protocol. Added some new ciphers
767 and defined the key lengths for the algorithms. Changed the
768 code accordingly. The default key length is now 256 bits.
770 * Fixed SKE key distribution function silc_ske_process_key_material
771 when the key length is more than 128 bits. The default key
772 length in SILC is now 256 bits.
774 * Added new command status type: SILC_STATUS_ERR_UNKOWN_ALGORITHM
775 to indicate unsupported algorithm.
777 * Renamed rijndael.c to aes.c and all functions as well.
779 * Fixed a long standing channel key setting bug in client library.
780 Weird that it has never surfaced before.
782 * Fixed bug in channel deletion. If the entire channel is removed
783 then it must also delete the references of the channel entry
784 from the client's channel list as the client's channel entry and
785 the channel's client entry share same memory.
787 Sun Feb 25 20:47:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
789 * Implemented CONNECT and SHUTDOWN commands in the client.
791 * Implemented CLOSE command to the client.
793 * Added the function silc_idlist_find_server_by_name into the
794 files silcd/idlist.[ch].
796 Added the function silc_idlist_find_server_by_conn into the
797 files silcd/idlist.[ch].
799 Sat Feb 24 23:45:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
801 * DIE command was renamed to SHUTDOWN. Updated the both code
804 * Defined SILC_UMODE_NONE, SILC_UMODE_SERVER_OPERATOR and
805 SILC_UMODE_ROUTER_OPERATOR modes into lib/silccore/silcmode.h.
807 * Implemented CONNECT, CLOSE and SHUTDOWN commands to the server
810 * Added function silc_server_create_connection function to create
811 connection to remote router. My server implementation actually
812 does not allow router to connect to normal server (it expects
813 that normal server always initiates the connection to the router)
814 so the CONNECT command is only good for connecting to another
817 Sat Feb 24 16:03:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
819 * Added SILC_NOTIFY_TYPE_KICKED to indicate that the client
820 or some other client was kicked from the channel.
822 Implemented the handling of the notify type to both client
825 Implemented silc_server_send_notify_kicked to send the KICKED
826 notify. It is used to send it to the server's primary router.
828 * Implemented the KICK command into server and client.
830 * Added `query' argument to the silc_idlist_get_client function
831 to indicate whether to query the client from server or not if
834 * Added new command status type SILC_STATUS_ERR_NO_CHANNEL_FOPRIV
835 to indicate that the client is not channel founder.
839 Sat Feb 24 00:00:55 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
841 * Removed the rng context from SilcPacketContext structure and
842 changed that the packet routine uses the Global RNG API.
844 Fri Feb 23 11:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
846 * Added support for quit message that client can "leave" on the
847 channel when it quits the SILC. It is ditributed inside the
848 SILC_NOTIFY_TYPE_SIGNOFF notify type.
850 Added silc_server_free_client_data that will take the
851 signoff message as argument.
853 * Changed SKE routines to use the silc_pkcs_sign/verify routines.
855 Thu Feb 22 23:05:36 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
857 * Updated parts of the protocol specification to keep it up
860 Thu Feb 22 15:08:20 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
862 * Added List flag (SILC_PACKET_FLAG_LIST) to indicate list of
863 payloads in one packet.
865 * Deprecated following packet types: NEW_ID_LIST, NEW_CHANNEL_LIST,
866 NEW_CHANNEL_USER_LIST, SET_MODE and SET_MODE_LIST. List packets
867 use now the new List flag.
869 * Also deprecated the following packet types: REPLACE_ID,
870 NEW_CHANNEL_USER and REMOVE_CHANNEL_USER packet types.
872 * Added list support for Notify packet in server.
874 * Added silc_server_send_notify_channel_change to send the
875 CHANNEL_CHANGE notify type to replace channel ID's. Deprecates
876 the silc_server_send_replace_id.
878 * Added silc_server_send_notify_nick_change to send the
879 NICK_CHANGE notify type. Deprecates the function
880 silc_server_send_replace_id.
882 * Added silc_server_send_notify_join to send the JOIN notify type.
883 Deprecates the function silc_server_send_new_channel_user.
885 * Added silc_server_send_notify_leave to send LEAVE notify type.
886 Deprecates the function silc_server_send_remove_channel_user.
888 * Added silc_server_send_notify_cmode and
889 silc_server_send_notify_cumode to send CMODE and CUMODE notify
890 types. Deprecates the silc_server_send_set_mode function.
892 * Added SERVER_SIGNOFF notify type to indicate that server has
893 quit. This means that all clients on the channel from that
894 server will drop. This can be also used when netsplit happens.
896 Deprecated REMOVE_ID packet type since it is not needed anymore
899 Added silc_server_send_notify_server_signoff to send the
900 SERVER_SIGNOFF notify type. Deprecates the function
901 silc_server_send_remove_id.
903 Added also silc_server_send_notify_signoff to send the
906 * Employed the PKCS #1. It is the mandatory way to do RSA in the
907 SILC protocol from this day on. Changed the protocol
908 specification as well.
910 * Added silc_server_send_notify_topic_set to send TOPIC_SET
911 notify type. It is used between routers to notify about
912 topic changes on a channel.
914 * Added silc_id_dup into lib/silccore/id.[ch] to duplicate
917 * Partly updated the protocol specification to comply with the
918 changes now made. It is still though a bit outdated.
920 * The JOIN notify type now takes one extra argument <Channel ID>.
921 The packet used to be destined to the channel but now the
922 JOIN type may be sent as list thus it is impossible to
923 destine it to any specific channel. By adding this argument
924 it is again possible.
926 Wed Feb 21 22:39:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
928 * Added CREDITS file. The CHANGES and CREDITS file will appear
929 in the distribution as well.
931 Wed Feb 21 14:17:04 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
933 * Implemented CMODE_CHANGE, CUMODE_CHANGE and TOPIC_SET notify
934 types in the server's silcd/packet_receive.c.
936 * Implemented CMODE and CUMODE to work in router environment.
938 * Fixed minor encoding and decoding buglet from the
939 lib/silccore/silcmode.c.
941 * Fixed buffer overflow from lib/silcclient/command.c in USERS
944 Wed Feb 21 12:44:00 EET 2001 Mika Boström <bostik@lut.fi>
946 * Changed all SilcConfigServer* and silc_config_server* to
947 SilcServerConfig* and silc_server_config*, respectively.
950 Wed Feb 21 00:10:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
952 * Associated the ID (client or server ID) to the Authentication
953 Payload to avoid any possibility of forging. Updated the
954 protocol specification and the code accordingly.
956 Tue Feb 20 14:14:14 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
958 * The RSA key length is now save to the RsaKey context in the
959 key generation process in lib/silccrypt/rsa.c. The key length
960 is now used to figure out the maximum size of the block allowed
961 to be encrypted/signed.
963 * Added silc_mp_mp2bin_noalloc into lib/silcmath/mpbin.[ch]. It
964 is equivalent to the silc_mp_mp2bin but does not allocate any
967 * Changed silc_mp_mp2bin API to take length argument. If it is
968 non-zero then the buffer is allocated that large. If zero, then
969 the size is approximated using silc_mp_sizeinbase, which however
972 * Created Global RNG API which is global RNG that application can
973 initialize. After initializing, any routine anywhere in the
974 code (including library) can use RNG without allocating a new
975 RNG object. This was done to allow this sort of use of the
976 RNG in code that has no chance to allocate RNG object. All
977 applications currently allocate this and many routines in the
978 library use this. Affected file lib/silccrypt/silcrng.[ch].
980 * Removed the RNG kludge from lib/silcmath/primegen.c and changed
981 it to use the Global RNG API.
983 * Defined Authentication Payload into protocol specification that
984 is used during SILC session to authenticate entities. It is
985 used for example by client to authenticate itself to the server
986 to obtain server operator privileges.
988 Implemented this payload into the lib/silccore/silcauth.[ch].
989 Implemented also routines for public key based authentication
990 as the new protocol specification dictates.
992 Moved definitions of different authentication methods from
993 lib/silccore/silcprotocol.h into lib/silccore/silcauth.h.
995 * Added silc_pkcs_encrypt, silc_pkcs_decrypt, silc_pkcs_sign,
996 silc_pkcs_verify and silc_pkcs_sign_with_hash and
997 silc_pkcs_verify_with_hash functions into the file
998 lib/silccrypt/silcpkcs.[ch].
1000 Mon Feb 19 19:59:28 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1002 * The client entry's userinfo pointer must be always valid.
1003 Otherwise the [<unknown>] bug will surface beacuse the WHOIS
1004 will fail since it requires the userinfo. Now, the userinfo
1005 is allocated as "" if actual userinfo does not exist. Actually,
1006 it must exist and it is totally Ok to drop client connections
1007 that does not announce the userinfo. However, we will make
1008 this workaround for now.
1010 * Added silc_net_get_remote_port into lib/silcutil/silcnet.[ch]
1011 to return the remote port by socket.
1013 Mon Feb 19 14:26:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1015 * Changed SILC_SERVER_COMMAND_EXEC_PENDING macro to the name
1016 SILC_SERVER_PENDING_EXEC and added an new macro
1017 SILC_SERVER_PENDING_DESTRUCTOR which is called to free the
1018 data or when error occurs while processing the pending command.
1020 Added new argument `destructor' into silc_server_command_pending
1021 and to the SilcServerCommandPending object. This destructor is
1022 now called after calling the pending callback or if error occurs
1023 immediately. If error occurs the actual pending callback won't
1024 be called at all - only the destructor. The destructor may be
1025 NULL if destructor is not needed.
1027 All this applies for client library code as well. Similar
1028 changes were made there as well for the pending commands.
1030 In the client, the application must now allocate the
1031 SilcClientCommandContext with the silc_client_command_alloc
1034 * Added reference counter to the SilcServerCommandContext. Added
1035 function silc_server_command_alloc and silc_server_command_dup
1038 Same type of functions added to the client library for the same
1041 * Removed the cmd_ident from IDListData away since it is now
1042 global for all connections. It is the command identifier used
1043 in command sending and with pending commands. The affected file
1046 * Added reference counter to the SilcSocketConnection objecet to
1047 indicate the usage count of the object. The object won't be
1048 freed untill the reference counter hits zero. Currently only
1049 server uses this, and client ignores it. The client must be
1050 set to use this too later. The affected files are
1051 lib/silccore/silcsockconn.[ch]. Added also the function
1052 silc_socket_dup to increase the reference counter.
1054 This was mainly added because it is possible that the socket
1055 is removed underneath of pending command or other async
1056 operation. Now it won't be free'd and proper DISCONNECTING
1057 flags, etc. can be set to avoid sending data to connection that
1058 is not valid anymore.
1060 * Added SILC_SET_DISCONNECTING to server.c when EOF is read from
1061 the connection. After that it sets SILC_SET_DISCONNECTED.
1062 It is, however, possible that the socket data is not still freed.
1063 The silc_server_packet_process now checks that data is not
1064 read or written to connection that is DISCONNECTED. The socket
1065 get's freed when the reference counter hits zero.
1067 Mon Feb 19 00:50:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1069 * Changed the client operation API: channel_message operation's
1070 `sender' is now the client entry of the sender, not the nickname
1071 and the `channel' is the channel entry, not the channel name.
1073 In the private_message operation the `sender' is now also the
1074 client entry of the sender not the nickname.
1076 Affected file is lib/silcclient/ops.h and all applications
1077 using the client operations.
1079 Sat Feb 17 22:11:50 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1081 * Moved the calling of ops->connect() from connect_to_server_final
1082 into receive_new_id functin since that is the point when the
1083 client is actually allowed to send traffic to network. The
1084 affected file is lib/silcclient/client.c.
1086 Sat Feb 17 13:15:35 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1088 * When receiving NEW_CHANNEL_LIST, NEW_CHANNEL_USER_LIST,
1089 NEW_ID_LIST and SET_MODE_LIST packets, broadcast the list packet
1090 (if needs broadcasting) instead of broadcasting the packets one
1091 by one which would make a burst in the network traffic.
1093 * Added `broadcast' argument to the functions in silcd/server.[ch]
1094 silc_server_create_new_channel[_with_id] to indicate whether
1095 to send New Channel packet to primary router.
1097 Sat Feb 17 01:06:44 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1099 * Added new function into the silcd/server.[ch] files:
1100 silc_server_create_new_channel_with_id to create new channel with
1101 already existing Channel ID.
1103 * Added new packet type SILC_PACKET_SET_MODE_LIST into the file
1104 lib/silccore/silcpacket.h. This packet is used t send list of
1105 Set Mode payloads inside one packet. Server uses this to set
1106 the modes for the channels and clients on those channels, that it
1107 announced to the router when it connected to it. The protocol
1108 specification has been updated accordingly.
1110 * The silc_server_new_channel did not handle the packet coming
1111 from normal server as it normally does not send that. However,
1112 when it announces its channels it does send it. Implemented
1113 the support for that.
1115 * Added SILC_ID_CHANNEL_COMPARE macro to compare to Channel ID's
1116 into the file lib/silccore/id.h.
1118 Fri Feb 16 23:57:29 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1120 * Fixed memory leaks in the functions silc_idlist_del_client,
1121 silc_idlist_del_channel and silc_idlist_del_server in the file
1122 silcd/idlist.c. All of those leaked like a sieve.
1124 * Fixed some small memory leaks in the client's function
1125 silc_client_notify_by_server.
1127 * Added functions into silcd/server.c: silc_server_announce_clients,
1128 silc_server_announce_channels and silc_server_announce_server.
1129 These functions are used by normal and router server to announce
1130 to its primary router about clients, channels and servers (when
1131 router) that we own. This is done after we've connected to the
1134 These functions effectively implements the following packet types:
1135 SILC_PACKET_NEW_CHANNEL_LIST, SILC_PACKET_NEW_CHANNEL_USER_LIST
1136 and SILC_PACKET_NEW_ID_LIST.
1138 * Added new functions into the silcd/packet_receive.[ch]:
1139 silc_server_new_id_list, silc_server_new_channel_list and
1140 silc_server_new_channel_user_list to handle the incoming
1141 NEW_ID_LIST, NEW_CHANNEL_LIST and NEW_CHANNEL_USER_LIST packets.
1143 * Added support of changing Channel ID in the function
1144 silc_server_replace_id. If the server that announces a channel
1145 to the router already exists in the router (with same name but
1146 with different Channel ID), router is responsible to send
1147 Replace ID packet to the server and force the server to change
1148 the Channel ID to the one router has.
1150 * Added new notify type SILC_NOTIFY_TYPE_CHANNEL_CHANGE to notify
1151 client that the Channel ID has been changed by the router. The
1152 normal server sends this to the client. Client must start using
1153 the new Channel ID as the channel's ID.
1155 Implemented handling of this new type into lib/silcclient/client.c
1156 into the function silc_client_notify_by_server.
1158 * Added new function silc_idlist_replace_channel_id into the files
1159 silcd/idlist.[ch] to replace the Channel ID.
1161 Fri Feb 16 14:14:00 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1163 * Call silc_server_command_identify_check always when processing
1164 the IDENTIFY command in silcd/command.c
1166 Thu Feb 15 20:07:37 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1168 * Added new packet type SILC_PACKET_HEARTBEAT that is used to
1169 send keepalive packets. The packet can be sent by clients,
1170 servers and routers.
1172 Added function silc_socket_set_heartbeat into the file
1173 lib/silccore/silcsockconn.[ch] to set the heartbeat timeout.
1174 If not set, the heartbeat is not performed. The actual
1175 heartbeat is implemented in the low level socket connection
1176 library. However, application is responsible of actually
1179 Added silc_server_send_heartbeat to send the actual heartbeat
1180 packet into silcd/packet_send.[ch]. Server now performs
1181 keepalive with all connections.
1183 * Added silc_task_get_first function into lib/silcutil/silctask.c
1184 to return the timeout task with shortest timeout. There was a bug
1185 in task unregistration that caused problems. TODO has been
1186 updated to include that task system must be rewritten.
1188 * The client library will now resolve the client information when
1189 receiving JOIN notify from server for client that we know but
1190 have incomplete information.
1192 * Rewrote parts of silc_server_remove_from_channels and
1193 silc_server_remove_from_one_channel as they did not remove the
1194 channel in some circumstances even though they should've.
1196 * Encryption problem encountered in server:
1198 The LEAVE command used to send the Channel Key packet to the
1199 router immediately after generating it. However, the code
1200 had earlier sent Remove Channel user packet but not immediately,
1201 ie. it was put to queue. The order of packets in the router
1202 was that Channel Key packet was first and Remove Channel User
1203 packet was second, even though they were encrypted in the
1204 reverse order. For this reason, MAC check failed. Now, this
1205 is fixed by not sending the Channel Key packet immediately but
1206 putting it to queue. However, this is more fundamental problem:
1207 packets that are in queue should actually not be encrypted
1208 because packets that are sent immediately gets encrypted
1209 actually with wrong IV (and thus MAC check fails). So, packets
1210 that are in queue should be encrypted when they are sent to
1211 the wire and not when they put to the queue.
1213 However, the problem is that the current system has not been
1214 designed to work that way. Instead, the packet is encrypted
1215 as soon as possible and left to the queue. The queue is then
1216 just purged into wire. There won't be any fixes for this
1217 any time soon. So, the current semantic for packet sending
1220 o If you send packet to remote host and do not force the send
1221 (the packet will be in queue) then all subsequent packets to the
1222 same remote host must also be put to the queue. Only after the
1223 queue has been purged is it safe again to force the packet
1226 o If you send all packets immediately then it safe to send
1227 any of subsequent packets through the queue, however, after
1228 the first packet is put to queue then any subsequent packets
1229 must also be put to the queue.
1231 Follow these rules and everything works fine.
1233 Thu Feb 15 14:24:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1235 * Added new function silc_server_remove_clients_by_server to
1236 remove all client entries from ID list when the server connection
1237 is lost. In this case it is also important to invalidate all
1238 client entires as they hold the invalid server entry. This
1239 fixes fatal bug when server has lost connection and will reconnect
1242 Wed Feb 14 16:03:25 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1244 * Made some sanity checks to silc_server_daemonise like to check
1245 whether the requested user and group actually exists.
1247 * Added sanity check to SKE's silc_ske_responder_finish to check
1248 that the public and private key actually is valid.
1250 * Invalidate the client's nickname when receiving Replace ID
1251 packet and the Client ID is being replaced. This means that the
1252 server will query the nickname if someone needs it (client)
1255 * Sort the ID Cache in client library when the ID Cache data
1256 has changed (needs sorting).
1258 * Do not allow for SILC client to create several connections to
1259 several servers. The client does not support windows right now
1260 and generating multiple connections causes weird behaviour.
1262 Irssi-silc client does support windows and can handle several
1263 connections without problems, see: www.irssi.org and SILC plugin.
1265 * Fixed some places where client was added to the IDList. The
1266 rule of thumb is following (in order to get everything right):
1267 If the client is directly connected local client then the
1268 `connection' argument must be set and `router' argument must be
1269 NULL to silc_idlist_add_client function. If the client is not
1270 directly connected client then the `router' argument must
1271 bet set and the `connection' argument must be NULL to the
1272 silc_idlist_add_client function.
1274 * The funtion silc_server_packet_send_local_channel actually did
1275 not check whether the client was locally connected or not. It
1276 does that now. Fixed a bug related to LEAVE command.
1278 * Fixed Remove Channel User payload parsing bug in server's
1279 silcd/packet_receive.c. Fixed a bug related to LEAVE command.
1281 * The server's silc_server_save_channel_key now checks also the
1282 global ID list for the channel as it might not be in the local
1283 list. Fixed a bug related to LEAVE command.
1285 * Is this the end of the [<unknown>] buglet that has been lurking
1286 around for a long time? A little for loop fix in server's
1287 silc_server_command_whois_parse that is used by both IDENTIFY
1288 and WHOIS command. At least, this was a clear bug and a cause
1289 of one type of [<unknown>] buglet.
1291 * WHOIS and IDENTIFY commands call the function
1292 silc_server_command_[whois/identify]_check function even if
1293 we are not router server.
1295 Tue Feb 13 19:55:59 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1297 * Added --with-gmp configuration option. If set the GMP
1298 is always compiled in the SILC source tree. If not set then
1299 it is checked whether the system has the GMP3 installed. If
1300 it has then the GMP won't be compiled (the system's headers
1301 and library is used), if it doesn't have it then the GMP is
1302 compiled in the SILC source tree.
1304 Mon Feb 12 11:20:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1306 * Changed RSA private exponent generation to what PKCS #1
1307 suggests. We try to find the smallest possible d by doing
1308 modinv(e, lcm(phi)) instead of modinv(e, phi). Note: this is
1309 not security fix but optimization.
1311 Sun Feb 11 18:19:51 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1313 * Added new config entry [Identity] to fork the server and run
1314 it as specific user and group. A patch from Bostik.
1316 * Imported Dotconf configuration library into lib/dotconf.
1317 This will be used to create the SILC configuration files later.
1318 It will appear in the distsribution after this commit.
1320 Sat Feb 10 21:13:45 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1322 * A big code auditing weekend happening. Auditing code for
1323 obvious mistakes, bugs and errors. Also, removing any code
1326 Removed files for being obsolete:
1328 o lib/silcutil/silcbuffer.c (the buffer interface is entirely in
1329 inline in the file lib/silcutil/silcbuffer.h)
1331 o lib/silcutil/silcbufutil.c (the header has inline versions)
1333 Changed code to fix possible error conditions:
1335 o The buffer formatting routines now check that the destination
1336 buffer really has enough space to add the data. This applies for
1337 both buffer formatting and unformatting
1338 (lib/silcutil/silcbuffmt.[ch]). Also, the entire buffer
1339 unformatting was changed to accomodate following rules:
1340 XXX_*STRING_ALLOC will allocate space for the data into the pointer
1341 sent to the function while XXX_*STRING will not allocate or copy
1342 the data into the buffer. Instead it sets the pointer from the
1343 buffer into the pointer sent as argument (XXX_*STRING used to
1344 require that the pointer must be allocated already). This change
1345 makes this whole thing a bit more consistent and more optimized
1346 (note that the data returned in the unformatting with XXX_*STRING
1347 must not be freed now). The routines return now -1 on error.
1349 o Tried to find all code that use buffer_format and buffer_unformat
1350 and added return value checking to prevent formatting and
1351 especially unformatting errors and possible subsequent fatal
1354 o Changed ske->x and ske->KEY to mallocated pointers in
1355 lib/silcske/silcske.h. Fixed possible data and memory leak.
1357 o Added return value checking to all *_parse* functions. Fixed
1358 many memory leaks as well.
1360 o Added length argument to silc_id_str2id in lib/silccore/id.[ch]
1361 so that buffer overflows would not happen. All code now also
1362 checks the return value as it can fail.
1364 Mon Feb 5 20:08:30 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1366 * Added reconnection support to server if the normal server looses
1367 its connection to the router (for example if router is rebooted).
1368 The server performs normal reconnection strategy implemented
1369 to the server. Affected file silcd/server.c.
1371 Sun Feb 4 13:18:32 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1373 * Added new packet type SILC_PACKET_SET_MODE that is used to
1374 distribute the information about changed modes (for clients,
1375 channels and clients channel modes) to all routers in the
1376 network. Updated the protocol specification accordingly.
1378 Added functions into silcd/packet_send.c and
1379 silcd/packet_receive.c: silc_server_send_set_mode,
1380 silc_server_set_mode.
1382 Added new files silcmode.[ch] into lib/silccore that implements
1383 the encoding and decoding of Set Mode Payload. Added new type
1384 SilcSetModePayload. Moved the definitions of different modes
1385 from lib/silccore/silcchannel.h into lib/silccore/silcmode.h.
1387 Sat Feb 3 15:44:54 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1389 * Oops, a little mistake in server's connection authentication
1390 protocol. The protocol is not ended with FAILURE but with
1391 SUCCESS if the authentication is Ok. :) Affected file is
1394 * Implemented NICK_CHANGE notify handling in server in the file
1395 silcd/packet_receive.c The NICK_CHANGE notify is distributed to
1396 the local clients on the channel. After the changing nickname
1397 in router environment snhould work and the [<unknown>] nickname
1398 should appear no more.
1400 The silc_server_replace_id function that receives the Replace ID
1401 payload now sends the NICK_CHANGE notify type also in the file
1402 silcd/packet_receive.c
1404 * Changed WHOIS and IDENTIFY command to support the maximum amount
1405 of arguments defined in protocol specs (3328 arguments). This
1406 fixed a bug that caused problems when there were more than three
1409 Fri Feb 2 11:42:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1411 * Added extra parameter, command identifier, to the
1412 silc_client_send_command so that explicit command identifier
1415 Changed that ID list routines uses specific command identifier
1416 when sending WHOIS/IDENTIFY requests to the server so that they
1417 can be identified when the reply comes back.
1419 Affected files lib/silcclient/command.[ch],
1420 lib/silcclient/client.c and lib/silcclient/idlist.[ch].
1422 * Added `sender' argument to silc_server_packet_send_to_channel
1423 to indicaet the sender who originally sent the packet to us
1424 that we are now re-sending. Ignored if NULL. Affected file
1425 silcd/packet_send.[ch].
1427 * Added some server statistics support in silcd/server_internal.h
1428 SilcServerStatistics structure and around the server code. Also
1429 send some nice statistics information when client is connecting
1432 Thu Feb 1 23:31:21 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1434 * Fixed channel ID decoding in server's JOIN command reply in
1435 silcd/command_reply.c
1437 * Fixed braodcasting of replace ID payload to not to send it if
1438 we are standalone server in silcd/packet_receive.c.
1440 * Fixed all channel message sending routines to not to send
1441 packets to clients that has router set, since they are routed
1442 separately in the same function earlier. Affects file
1443 silcd/packet_send.c and all channel packet sending functions.
1445 * In USERS reply, res_argv[i] are not allocated, the table
1446 is allocated. Thus changed that free the table, not its
1449 * In server's whois_check and identify_check if the client is
1450 locally connected do not send any WHOIS commands - they are not
1453 Thu Feb 1 21:32:27 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1455 * Fixed some minor bugs in client when sending WHOIS command. The
1456 arguments was in wrong order.
1458 * Removed statis function add_to_channel from server in
1459 silcd/command.c that was previously used with the joining but
1462 * Tested USERS command in router environment successfully with two
1463 routers, two servers and two clients.
1465 Thu Feb 1 00:54:26 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1467 * Reorganized the USERS command and command reply in client library
1468 in lib/silcclient/command.c and lib/silcclient/command_reply.c.
1469 When the command is given by user we register a pending command
1470 callback that will reprocess the command after the reply has been
1471 received from the server. When reprocessing the packet we then
1472 display the information. Thus, the USERS information is displayed
1473 now in the command callback instead of in the command reply
1474 callback. The processing of the command is same as previously
1475 when server has sent the command reply in the JOINing process.
1477 * Added to USERS command in silcd/command_reply.c to join the client,
1478 we didn't use to know about, to the channel after we've created
1479 a client entry for it. Also, for clienet we did know already still
1480 check whether it is on the channel or not and add it if not.
1482 * Removed silc_server_command_join_notify as the function and its
1485 Tue Jan 30 22:39:15 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1487 * Changed the client's pending command handling to the same as the
1488 server's pending command handling. It is also now possible to
1489 execute command reply functions from other command reply
1490 function as the function callbacks for commands and command
1491 replies are one and same. The pending commands are not static
1492 list anymore, it is mallocated SilcDList in lib/silcclient/client.h
1493 in client connection context. Thus, pending commands are server
1494 connection specific as it is convenient.
1496 Changed the function silc_client_command_pending and
1497 silc_client_command_pending_del and added new function
1498 silc_client_command_pending_check. Removed the
1499 SILC_CLIENT_CMD_REPLY_EXEC, and SILC_CLIENT_PENDING_COMMAND_CHECK
1502 * Added cmd_ident, current command identifier, to the client
1503 connection context in lib/silcclient/client.h to keep track on
1504 command identifiers used in command sending. Client's command reply
1505 function handling now supports the mandatory command identifiers.
1507 * Added SILC_CLIENT_COMMAND_EXEC_PENDING macros to all command reply
1508 funtions in client to fully support pending command callbacks.
1510 * NOTE: the name_list in USERS (old NAMES) command is NOT sent anymore
1511 as one of the arguments to the application in the command reply
1514 * NOTE: The FORWARDED flag is depracated. It used to be depracated
1515 before first releasing SILC but came back. Now it is removed again
1516 and should come back nomore. The FORWARDED flag was used only
1517 by the JOINing procedure by forwarding the command packet to router.
1518 Now, the JOINing procedure has been changed to more generic (due
1519 to various router environment issues) and FORWARDED is not needed
1520 anymore for anything. The protocol specification is yet to be
1523 Now, removed silc_server_packet_forward from server and the flag
1524 SILC_PACKET_FORWARDED from lib/silccore/silcpacket.h.
1526 Tue Jan 30 00:05:05 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1528 * Renamed NAMES command to USERS command. The NAMES was named that
1529 due to historical reasons. Now it is renamed. Also, rewrote
1530 parts of the USERS command. The nickname list is not sent anymore
1531 by the server. Only Client ID and mode lists are sent in the USERS
1532 command. Changed this also to the protocol specification.
1534 The client now resolves the names and stuff after it receives
1535 the USERS list from the server when joining to the channel.
1537 * WHOIS and IDENTIFY commands has been changed to support multiple
1538 Client ID's per command. One can now search for multiple users
1539 in the network by sending only one WHOIS or IDENTIFY command.
1540 Changed the code and the protocol specifications.
1542 * Removed silc_server_command_identify_parse and changed that IDENTIFY
1543 uses silc_server_command_whois_parse to parse the request. */
1545 * If normal server, do not parse the WHOIS and IDENTIFY requests
1546 before sending it to the router. Saves some time.
1548 Sun Jan 28 16:19:49 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1550 * Fixed JOIN command on client library. Wrong number of arguments
1551 used to crash the client.
1553 * Added silc_server_channel_has_global function to check whether
1554 channel has global users or not.
1556 * Added silc_server_channel_has_local function to check whether channel
1557 has locally connected clients on the channel.
1559 * The silc_server_remove_from_one_channel now checks whether the
1560 channel has global users or not after given client was removed from
1561 the channel. It also checks whether the channel has local clients
1562 on the channel anymore. If it does not have then the channel entry
1563 is removed as it is not needed anymore.
1565 * The silc_server_notify now checks on JOIN notify whether the joining
1566 client is one of locally connected or global. If it is global then
1567 the channel has now global users on the channel and that is marked
1568 to the channel entry. Also, it now saves the global client to
1569 global list who is joining and JOINs it to the channel. This is
1570 for normal server, that is.
1572 Changed silc_server_send_notify_on_channel,
1573 silc_server_packet_relay_to_channel and
1574 silc_server_packet_send_to_channel check if we are normal server
1575 and client has router set (ie. global client) do not send the
1576 message to that client, as it is already routed to our router.
1578 * Implemented LEAVE notify type handling in silc_server_notify
1581 * Tested LEAVE command in router environment successfully. Tested
1582 with two routers, two servers and two clients.
1586 * idlist_find_xxx_by_id routines now dumps the ID on the debug mode.
1588 * Implemented SIGNOFF notify type handling in silc_server_notify
1591 * silc_server_remove_id now removes the client entry from all channels
1592 it has joined and thusly sends SIGNOFF notify type.
1594 * Rewrote the NAMES list generation in server by removing two excess
1595 loops. The lists are created now inside one loop.
1597 Sat Jan 27 22:34:56 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1599 * silc_server_remove_channel_user checks now also global list
1600 for channel and client.
1602 * silc_server_new_channel_user checks now both local and global
1603 list for channel and client. Fixed a bug in client id decoding.
1604 Used to decode wrong buffer.
1606 * silc_server_channel_message checks now both local and global
1607 list for channel entry.
1609 * Tested channel joining (hence JOIN) in router environment
1610 successfully. Tested with two routers, two servers and two
1613 * Tested channel message sending in router environment successfully.
1615 Thu Jan 11 03:22:57 EET 2001 Pekka Riikonen <priikone@poseidon.pspt.fi>
1617 * Added silc_server_save_channel_key into server.[ch] to save the
1618 received channel key in Channel Key payload processing. It is
1619 also used in JOIN command reply handling.
1621 Equivalent function silc_client_save_channel_key added into
1622 client.[ch] into client library.
1624 * Changed JOIN command reply to send information whether the channel
1625 was created or not (is existing already) and the channel key
1626 payload. Changed protocol specs accordingly.
1628 * Fixed bugs in WHOIS and IDENTIFY command reply sending when
1629 the request was sent by ID and not by nickname. Crashed on
1632 Sat Dec 23 21:55:07 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1634 * Fixed a bug in Client library. IDENTIFY and WHOIS reply functions
1635 now correctly save the received data.
1637 * silc_server_free_sock_user_data now notifies routers in the
1638 network about entities leaving the network.
1640 At the same time implemented functions silc_server_remove_id
1641 and silc_server_send_remove_id to receive and send REMOVE_ID
1642 packets. The packet is used to notify routers in the network
1643 about leaving entities. The ID removed will become invalid in
1646 * Added function silc_idlist_del_server into server. Removes and
1647 free's server entry from ID list.
1649 * silc_server_private_message function now checks, if we are router,
1650 that the destination ID really is valid ID, naturally.
1652 * In router when NEW_ID packet is received (for new client) the
1653 hash of the Client ID is saved in the ID Cache but the
1654 client->nickname is set to NULL, instead of putting the hash
1657 IDENTIFY command now also checks that client->nickname must be
1658 valid. If it is not if will request the data from the server who
1659 owns the client. Added new function
1660 silc_server_command_identify_check.
1662 * Added silc_command_set_command into lib/silccore/silcommand.[ch]
1663 to set the command to already allocated Command Payload.
1665 * Tested private message sending in router environment with two
1666 routers, two servers and two clients. Fixed minor bugs and now
1669 * Fixed segfault from client's NAMES command. Used to crash if
1672 * Forwarded packets must not be routed even if it is not destined
1673 to the receiver. Changed server code comply with this.
1675 Sun Dec 17 14:40:08 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1677 * Added `require_reverse_mapping' boolean value to ServerParams
1678 structure. If TRUE (not default) the server will require that
1679 the connecting host has fully qualified domain name.
1681 If the reverse mapping is not required and hostname could not be
1682 found the IP address is used as hostname.
1684 Sat Dec 16 17:39:54 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1686 * Implemented version string checking to both client and server.
1687 The check is incomplete currently due to the abnormal version
1688 strings used in development version of SILC.
1690 * Changed all command functions in server to use the new
1693 Fri Dec 15 15:55:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1695 * Changed char *data to unsigned char *data in ID Cache system to
1696 support binary data as ID Cache data. Changed code to support
1697 binary data in lib/silccore/idcache.c.
1699 * Renamed silc_server_packet_relay_command_reply to
1700 silc_server_command_reply as it is normal packet receiving
1701 function. Rewrote the function to accept command replys for
1702 servers and not only for clients.
1704 * Mark remote router always as registered server if we are connecting
1705 to it. Otherwise, commands sent by the router to us are ignored.
1707 * All ID List find routines now returns the ID Cache Entry pointer
1708 as well if requested.
1710 * WHOIS command works now in router environment, tested with two
1711 routers, two servers and two clients.
1713 * Cleaned up and rewrote IDENTIFY command. IDENTIFY should work now
1714 in router environment (as it is almost equivalent to WHOIS) but
1715 hasn't been tested thoroughly. Added new functions:
1717 silc_server_command_identify_parse
1718 silc_server_command_identify_send_reply
1719 silc_server_command_identify_from_client
1720 silc_server_command_identify_from_server
1722 * Disabled route cache adding because adding two different ID's with
1723 same IP replaces the old cache entry thus giving wrong route.
1724 The entry->router->connection is always the fastest route anyway
1725 so route cache may not be needed. Of course, new routes maybe
1726 established after receiving the ID when the entry->router->connection
1727 might not be anymore the most optimal.
1729 Thu Dec 14 15:55:35 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1731 * Add route cache for received ID for fast routing.
1733 * Added silc_server_packet_route to route received packet on router
1734 that is not destined to us.
1736 * Renamed silc_server_get_route to silc_server_route_get.
1738 * Added id_string and id_string_len fields into SilcServer to
1739 include encoded ServerID for fast comparing without excess
1740 encoding of the ID's.
1742 * Cleaned up WHOIS command on server side. Added following static
1745 silc_server_command_whois_parse
1746 silc_server_command_whois_check
1747 silc_server_command_whois_send_reply
1748 silc_server_command_whois_from_client
1749 silc_server_command_whois_from_server
1751 * Added macro SILC_SERVER_COMMAND_CHECK_ARGC to check mandatory
1752 arguments in command replies. All command functions should be
1753 updated to use this macro.
1755 Sun Dec 10 23:52:00 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1757 * Minor typo fixes on command reply handling on server.
1759 Tue Nov 28 11:05:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1761 * Added silc_server_command_add_to_channel internal routine to add
1762 the client to the channel after router has created the channel and
1763 sent command reply to the server.
1765 * Added generic silc_server_send_command to send any command from
1768 * Use static buffer with ID rendering instead of duplicating data.
1770 Mon Nov 27 21:39:40 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1772 * Fixed a channel user mode bug when joining to a channel server gave
1773 everybody channel founder rights, oops.
1775 * We mark ourselves as the router of the incoming server connection
1776 if we are router ourselves. This way we can check in some packet
1777 sending functions whether it is locally connected server. For
1778 incoming router connections we put NULL.
1780 * For router sending packets locally means now always sending the
1781 packet cell wide; to local clients and local servers. For normal
1782 server sending packet locally means sending it to only local
1785 * Fixed the JOIN command to really work in router environment. If the
1786 channel is created it is always created by the router. Router is
1787 also responsible of making the initial joining to the channel,
1788 sending JOIN notify to the sending server and distributing
1789 NEW_CHANNEL and NEW_CHANNEL_USER packets. Hence, if the channel
1790 does not exist server doesn't do anything else but forward the
1791 command to the router which performs everything.
1793 * Added silc_server_send_channel_key function to send the Channel Key
1796 * Added silc_server_create_channel_key to create new channel key. The
1797 channel key is now re-generated everytime someone joins or leaves
1798 a channel, as protocol dictates. Note: channel->key_len is the
1801 Wed Nov 22 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1803 * Splitted server.[ch] finally. Created now packet_send.[ch] and
1804 packet_receive.[ch] to separate packet sending and receiving
1805 routines. The server.[ch] now includes everything else including
1806 actual packet processing (writing and reading data) and other
1809 Renamed silc_server_private_message_send_internal to
1810 silc_server_send_private_message. The routine is still though
1811 used only to relay private messages as server does not send
1812 private messages itself.
1814 Renamed silc_server_new_channel to silc_server_create_new_channel
1815 and added new function sicl_server_new_channel that handles the
1816 incoming New Channel packet. Added also new sending function
1817 silc_server_send_new_channel to send New Channel Payload.
1819 * Added new function silc_server_notify to process incoming notify
1820 packet to the server/router. Server may then relay the notify
1821 to clients if needed.
1823 * Added new function silc_server_new_channel_user to process incoming
1824 New Channel User packet. Router will redistribute the packet and
1825 send JOIN notify to its local clients and locally connected servers
1826 if needed. Normal server will send JOIN notify to its local client
1827 on same channel when received this packet. Added also corresponding
1828 sending function silc_server_send_new_channel_user to sent the
1831 * Added boolean route argument to send_notif_to_channel and
1832 packet_send_to_channel functions to attempt to route the packet
1833 if it is TRUE and send only locally if it is FALSE.
1835 Tue Nov 21 19:49:31 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1837 * silc_server_replace_id now broadcasts the received replace ID
1838 packet if it is not broadcast packet already. The router must
1839 broadcast to inform other routers about changed ID.
1841 * Added backpointer to server's router into SilcServer context in
1842 silcd/server_internal.h.
1844 * Fixed silc_server_packet_broadcast to send correct broadcast
1847 * The channel key is now distributed to the local client as soon
1848 as it is received from the router (in router environment) so that
1849 no other packet may be sent for the channel until client has
1852 * silc_server_remove_channel_user now broadcasts the received
1853 Remove Channel User packet if it is not broadcast packet already.
1854 The router must broadcast to inform other routers about removed
1857 * Added users field into SilcPacketContext that is a reference count
1858 of the context. One can increase the reference count by calling
1859 silc_packet_context_dup which is now changed to just increase the
1860 reference count instead of duplicating the data. The reference
1861 count is decresed by calling silc_packet_context_free that will
1862 free the data after the reference count hits zero.
1864 For now on the packet context and everything allocated into it
1865 (including the raw packet from network) must be freed by calling
1866 the new silc_packet_context_free function. Added also new function
1867 silc_packet_context_alloc that must be used now to allocate the
1868 context. This also means that if a routine is asynchronous from
1869 silc_[client/server]_packet_parse_type the packet context must
1870 be duplicated by calling silc_packet_context_dup. Otherwise it
1871 gets free'd after silc_[client/server]_packet_parse_type returns.
1872 Also, one must remember that if packet is duplicated then its
1873 reference count must be decresed by calling the free function as
1874 many times as it was duplicated.
1876 * Changed SilcBuffer field from protocol contexts to SilcPacketContext
1877 from both client and server.
1879 Mon Nov 20 23:47:03 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1881 * Made joining to a channel working in router environment.
1883 * Cleaned up JOIN command on server side and create function
1884 silc_server_command_join_channel internal routine to make the
1887 Thu Nov 9 21:12:39 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1889 * Changed silc_command_pending list to SilcDList. Also, added
1890 `ident' field to SilcServerCommandPending structure to identify
1891 the reply and to call correct callback.
1893 Added silc_server_command_pending_check function to replace the
1894 corresnponding macro. The silc_command_pending list is not
1897 * Added silc_command_set_ident into lib/silccore/silccommand.[ch]
1898 to set identifier to previously allocated Command Payload. It
1899 is used to set identifier for command when resending Command
1902 * Added silc_command_payload_encode_payload to encode Command
1903 Payload buffer from SilcCommandPayload structure.
1905 * Added silc_argument_payload_encode_payload to encode Argument
1906 payload buffer from SilcArgumentPayload structure.
1908 Wed Nov 8 21:03:28 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1910 * Changed WHOIS command to support router connection on server side.
1911 The whois request is always sent to router unless the server is
1912 standalone server. After server has received the reply from the
1913 router will it send the reply to the client.
1915 * Added silc_server_packet_broadcast into silcd/server.[ch] to
1916 broadcast received broadcast packet. The function is used only
1917 by router. The broadcast packet is always sent to the router's
1920 * Added silc_id_render function in lib/silcutil/silcutil.[ch] to
1921 render given ID to printable string, for log files for example.
1923 Tue Nov 7 22:14:19 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1925 * Made basic router to router connections working. At least they
1926 can now connect to each other but nothing really works the way
1927 they are supposed - yet.
1929 * Added new initiator token to RouterConnection configuration
1930 file in silcd/serverconfig.[ch]. It is used to tell whether we
1931 are the initiator to the remote router or whether we'll expect
1932 the other end to connect.
1934 * Moved registering of listener task to silc_server_init, hence
1935 the server starts listenning as soon as it is run, even if it
1936 does not have connections to other routers. Let's see how well
1939 * Changed default connection retry timeouts for more suitable in
1942 * Removed cipher and such arguments from silc_idlist_add_client
1943 and silc_idlist_add_server prototypes from silcd/idlist.[ch].
1944 Added new function silc_idlist_add_data to add the keys and stuff
1947 * Added SilcIDListData structure and added it to SilcClientEntry
1948 and SilcServerEntry as their first field in the structure. This
1949 way we can explicitly cast the ID entries to the SilcIDListData
1950 structure and get common data for the entries. In past, we had
1951 to first check what type of connection it is and then cast it to
1952 correct ID entry type. Now, we can directly cast the opaque
1953 pointer to the SilcIDListData (no matter what ID entry it actually
1954 is) and get the data needed.
1956 Mon Nov 6 21:56:12 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1958 * Wow, found a bug in scheduler. The scheduler uninitialized itself
1959 in some circumstances even if threre were timeout tasks, though not
1960 IO tasks, but tasks anyway. Now fixed.
1962 * Defined SilcServerConnection structure to hold connection specific
1963 stuff about directly connected servers and routers. The definition
1964 is currently in silcd/server_internal.h. I thought about having
1965 a bit more important role fro this struct but for now it is used
1966 only when connecting to other server (or router actually).
1968 * Added connecting retry support in server when connecting to
1969 router(s). The retry feature implement exponential backoff
1970 algorithm. Also, added SilcServerParams structure to hold default
1971 parameters for server. For now, it include these retry settings
1972 and are hard coded. After server is moded to be as Silc Server
1973 Library this structure will be more important.
1975 Sun Nov 5 22:28:44 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1977 * Changed client librarys channel->clients table to SilcList and
1978 changed code accordingly.
1980 Thu Nov 2 16:28:01 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
1982 * Changed client's channel table to SilcList and changed code
1983 accordingly. Also changed SilcChannelClientEntry to include back-
1984 pointer to the channel so that client entry can use that structure
1985 as list as well and we have fast cross-reference to the channel.
1986 This change dramatically decreased the complexity of channel
1987 handling with client entry and vice versa (removed one extra
1988 loop when searching for channel entry from many functions).
1990 * Changed server->sim from table to SilcDList and changed code
1993 * NAMES command can now be used from user interface. It will show
1994 the user list on the channel, neatly.
1996 * Added realname pointer to SilcClientEntry in lib/silcclient/idlist.h.
1997 Code now saves realname of the user if it becomes available.
1999 * Renamed configure.in to configure.in.pre and made ./prepare
2000 script to automatically add correct version string to
2001 configure.in which it creates from configure.in.pre.
2003 Wed Nov 1 17:21:26 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2005 * NAMES command reply now shows users mode with the nickname when
2008 * Moved silc_client_ch[u]mode[_char] functions from
2009 silc/clientutil.[ch] to lib/silcclient/client.[ch]. Though, that
2010 place sucks, they are utility functions and should be in some
2013 * Fixed some unsigned int's to unsigned short's. Patch by cras.
2015 * Fixed contrib/getopt*.[ch] to not require config.h. Patch by
2018 Tue Oct 31 20:10:37 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2022 * Added TRQ (efficient deque and list library) into lib/trq. This is
2023 a very good list library that is currently used in the SILC. Defined
2024 SilcList API over the library because I didn't like the API very
2025 much. See lib/trq/silclist.h for the API and examples of how to
2026 use the API. Fixed various places in the code to use the new
2027 SilcList API. The SilcList is meant for lists that has a structure
2028 already defined as a list. It is not suitable to add just some
2029 context to the list (in TRQ, the context is the list actually).
2031 So, I defined SilcDList that can be used for the purpose where
2032 predefined list structure does not exit. This can be used as
2033 such list. Now some context just can be added to the SilcDList.
2034 Currently this list is not used in the SILC just yet, though there
2035 are a lot places where this can replace dynamically allocated
2036 tables and I will fix these places, later, to use SilcDList.
2037 See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
2038 and use TRQ internally).
2040 Also fixed some annoying warning messages that the original TRQ
2041 code generated. Also minor changes to TRQ's Makefile.in.
2043 * Added support for querying by Client ID to both WHOIS and
2044 IDENTIFY commands into server, as required by the protocol.
2046 * Removed method function pointers from SilcBuffer structure. They
2047 weren't used to anything and just increased the context size for
2048 no good reason. This change also made silc_buffer_alloc and
2049 silc_buffer_free functions inline functions.
2051 * Disabled command flooding detection support until it's fixed so
2052 that it accepts commands in but does not execute them more than once
2055 * Added silc_net_localhost(), to return local hostname, into
2056 lib/silcutil/silcnet.[ch]. Also added client->hostname pointer
2057 that must be initialized before calling silc_client_init.
2059 * Added new function: silc_server_send_notify_on_channels to send
2060 notify messages to all channels client has joined. It is assured
2061 that the message is sent only once per client.
2063 * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
2064 lib/silcutil/silcutil.[ch] as silc_format function. The new
2065 function is generic and is used by server as well, not only by
2066 the logging routines.
2068 * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
2069 the provided version string was not acceptable. Added new function:
2070 silc_ske_check_version into lib/silcske/silcske.h. The function
2071 must be implemented by the application (client or server) and it
2072 does not reside in the SKE library. The function checks the version
2073 string remote end sent.
2075 * Added back pointers (to opaque context and to SilcSocketConnection)
2076 into SilcPacketContext structure into lib/silccore/silcpacket.h.
2078 * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
2079 duplicate packet context structure.
2081 * Changed `notify' client operation to send same arguments as client
2082 receives from server except for ID's. ID's are mapped to correct
2083 ID entry and that is returned. Also, if channel entry is not sent
2084 by server but the notify is for channel the channel entry is sent
2085 to application (otherwise application doesn't know that it is for
2086 channel (library gets it from packet's Destination ID)).
2088 * Added silc_client_remove_from_channels into client library to
2089 remove a client from all channels it has joined to. Used when
2090 received SIGNOFF notify from server. Added also new function
2091 silc_client_replace_from_channels to replace old ID entry with
2092 new ID entry on all channels. Used when received NICK_CHANGE
2095 * Fixed ID Cache list handling in silc_idlist_get_client in
2096 lib/silcclient/idlist.c. Also, added silc_idlist_get_client_by_id
2097 to get (or query) client by ID.
2099 * Updated TODO list.
2101 * Added connection authentication status message defined by the
2102 protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
2103 support for these into the code in client and server side.
2105 * Added generic function silc_client_send_command to send any command
2106 with variable argument list. Application should use this function
2107 to send commands if the command functions provided by the library
2108 does not suite for the application's user interface needs.
2110 * Added new `failure' client operation. Application is notified about
2111 received failure packet if client is executing a protocol. In this
2112 case the protocol's execution has failed.
2114 * Added SKE's end notify to send the SKE_SUCCESS notify message that
2115 is required by the protocol.
2117 * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
2118 packet from remote. SILC_PROTOCOL_STATE_ERROR indicates local
2121 * Added status flag to SilcSKE object to indicate realtime status
2122 of the SKE protocol.
2124 * Application receives now exactly same command reply arguments as
2125 the library receives from server. However, if ID is received the
2126 corresponding ID entry is returned to the application (eg. Client
2127 ID is mapped to correct SilcClientEntry entry and that is returned).
2128 Changed command_reply client operation due to this change.
2130 * Changed all ID's in commands and in command replys as ID Payloads.
2131 Change affected both client and server side codes.
2133 All ID's sent in SILC network (with execption of ID's in SILC
2134 Packet header) are sent in ID Payload to support variable length
2137 * Server now notifies nick changes and notifies all clients on
2138 the channels about the new nickname (about the new Client ID,
2141 * Implemented CMODE command to change channel modes. Supports all
2142 channel modes defined by the protocol specs except ban and invite
2143 lists. (Also, private channel key mode is supported but support for
2144 setting private channel key in client is missing, thus, this mode
2145 has no effect on client side (except that server requires that the
2146 client uses private channel key and normal channel traffic does not
2149 Also, invite mode works per se, but INVITE command does not work
2150 yet correctly, so you can set channel as invite only channel but
2151 inviting clients to the channel does not work (it is yet to be
2152 thought what's the best way to do it).
2154 * Added new command SILC_COMMAND_CUMODE to change user mode on the
2155 channel. Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
2156 Implemented CUMODE command to change user's mode on the channel.
2157 Supports all modes defined by the protocol specs.
2159 * Added NAMES command reply to return users modes on the channel.
2161 * Removed unnecessary and slow ciphers from lib/silccrypt.
2163 * Set SO_KEEPALIVE option to connection sockets by default.
2165 * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
2167 * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE. Also,
2168 redefined the Notify Payload into protocol specs.
2170 * Added silc_id_payload_parse_id to get ID directly from raw
2173 Mon Oct 9 20:57:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2175 * Changed SILC_COMMAND_IDENTIFY in protocol specification to
2176 accept searching by Client ID as well.
2178 * Added support for LEAVE and SIGNOFF notify types in client library.
2180 * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
2181 to parse ID Payload from raw data.
2183 Sun Oct 8 19:33:08 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2185 * Added flags parameter into silc_ske_assemble_security_properties
2186 function in lib/silcske/silcske.[ch].
2188 * Changed notify client operation to fit better for notify messages
2189 sent by server. The notify payload received from server is now
2190 passed to the application (after parsing it to SilcNotifyPayload).
2191 It is application's responsibility to retrieve the arguments
2192 from the payload and show the message the way it wants. The message
2193 sent by server is implementation specific.
2195 * Changed public keys to comply with the protocol specification.
2196 Old public keys are not supported anymore and are not compatible.
2198 * Removed nickname from Channel Payload as the latest draft removed
2199 it. The client must resolve the nickname from the NAMES command
2200 reply received when it joined the channel.
2202 Also, changed all channel_xxxx_payload to channel_payload_xxxx.
2204 Sat Oct 7 21:55:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2206 * Fixed some errors in protocol specification drafts.
2208 * Created lib/silccore/silcnotify.c to implement Notify Payload
2209 encoding and decoding, lib/silccore/silcpayload.[ch] to implement
2210 generic payloads described by protocol specifications. The file
2211 includes implementations for ID Payload and Argument Payload.
2213 * Changed Command Payload implementation to use the new Argument
2214 Payload. Changed command_xxxx_payload to command_payload_xxxx
2215 to comply with SILC coding conventions.
2217 * Added suppport for Argument Payload handling in Notify Payload
2218 implementation as protocol requires it. Added the new support
2219 into server and client lib as well.
2221 Thu Oct 5 21:16:28 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2223 * Added support for multiple nicknames on same channel. [n] is
2224 added locally to the nickname if there are more than one same
2225 nicknames on the channel.
2227 * Server now sends all nicknames that matched WHOIS request.
2228 Client also shows the list received from server.
2230 * Added TOPIC command to client side. User can now set and show
2231 current topic on channel.
2233 * Added MOTD command to client and server. Also, server sends the
2234 motd when client connects to the server.
2236 * Changed version strings to comply ISO 8601.
2238 Wed Oct 4 23:29:06 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2240 * Fixed protocol error handling in client library. It should now
2241 cope even if the SKE fails for some reason.
2243 * Made new protocol specification drafts for submitting to IETF.
2245 * Implemented TOPIC command to server in silcd/command.c.
2247 * Added two new notify types into lib/silccore/silcnotify.h:
2248 SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
2249 notify nickname change and topic setting/change on a channel.
2251 * API change of command_reply operation in client library. The
2252 application gets now the status type received from server as well.
2254 Sat Sep 30 16:57:42 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2256 * Removed the function just added to lib/silcutil/silcschedule.[ch].
2258 * Cras fixed and optimized the packet handling even further and
2259 it should work now. Minor change to the prototype of function
2260 silc_packet_receive_process in lib/silccore/silcpacket.[ch].
2262 Sat Sep 30 08:48:47 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2264 * Added new function into lib/silcutil/silcschedule.[ch]:
2265 silc_schedule_with_fd to select() a specified fd. The function
2266 returns after timeout expires or data arrives or goes. The
2267 function is used by packet routines to wait that all data is
2268 received from network.
2270 * Fixed data reading from network in lib/silccore/silcpacket.c.
2271 The code now assures that all data is read from the fd and then
2272 continues packet processing. This was a bug fix since the code
2273 used to drop some data in some circumstances.
2275 * Added new function into lib/silcclient/client.[ch]:
2276 silc_client_start_key_exchange to start key exchange after
2277 connection has been established to server. The code internally
2278 now uses this funtion but its main purpose was to provide it
2279 for applications that perform their own connecting. After
2280 application has created a connection it merely calls this
2281 function to start the key exchange between client and server.
2282 The library takes care of everything else after that.
2284 Updated also lib/silcclient/README to explain the usage of
2287 * Do not send to application information that connection has
2288 been established. Application gets notified it by connect
2291 Thu Sep 28 23:40:19 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2293 * Applied cras's patch to add silc_schedule_one function. The
2294 function runs scheduler once and returns.
2296 * Fixed the scheduler after cras messed it up. The timeout
2297 handling works now as it's supposed to work.
2299 * Added into lib/silccore/ silcnotify.h to include notify
2300 message types support. Changed silc_server_send_notify*
2301 functions, in server.[ch], to support those new notify types.
2302 Added the support for the notify types into client library,
2303 as well. Added new notify client operation into ops.h in
2306 * Changed silc_server_packet_send_to_channel to send normal
2307 packets instead of just channel message packets. The function
2308 is now used to send the notify packets to channels. It is not
2309 used to send channel message packets anymore, as server never
2312 * Added explicit casting into lib/silcutil/silcbuffmt.c to few
2313 va_arg()s as it seems to require it nowadays. I guess, if SILC
2314 is compiled with older va_arg() the new code should work anyway.
2316 Wed Sep 13 18:10:14 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2318 * Splitted core library. Core library (lib/silccore) includes
2319 now only SILC protocol specific core (and common) components.
2320 Created new utility library (lib/silcutil) that includes more
2321 generic purpose stuff. The stuff for util library was taken
2322 from the old core library. This was minor and easy split.
2324 * Created SILC Client Library (lib/silcclient) that includes
2325 implementation of the SILC client without user interface. This
2326 was major move from silc/ directory. The code has been changed
2327 so that it is transparent towards the user interface. The
2328 silc/ directory includes now the same user interface as before
2329 and it uses the new client library. Read lib/silcclient/README.
2330 Basicly, the client library performs everything else related
2331 to SILC except user interface handling. Also, configuration
2332 files are considered to be part of user interface and library
2333 does not handle them.
2335 This change also changed a lot of structures, function naming etc.
2336 Most important change was that SilcClientWindow object was
2337 renamed to SilcClientConnection in the client library. Created
2338 also new file lib/silcclient/ops.h. Also added new files
2339 silc/local_command.[ch] and silc/client_ops.[ch].
2341 All these changes were made to make it easier for user interface
2342 designers to create what ever user interface for the SILC client
2345 It is also expected that the server will be moved to lib
2346 directory as well and SILC Server Library will be created;
2347 sometimes in the future.
2349 * Removed Local commands from lib/silccore/silccommand.h as
2350 they are application specific and new client library does not
2351 handle any of those anymore.
2353 * Several functions moved to lib/silcutil/silcutilc.[ch] from
2354 old client implementation in silc/.
2356 * Added support for callback functions in SILC_LOG_* macros.
2357 Application can now set its own callbacks that will be called
2358 instead of using the default functions that will always print
2359 the debug messages to stderr (or stdout). Also, debugging can
2360 now be disabled by setting silc_debug to FALSE and re-enabled by
2361 setting it to TRUE. Note, that logging will still work even
2362 if debugging is disabled.
2364 New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
2365 silc_log_reset_callbacks, silc_log_set_debug_callbacks and
2366 silc_log_reset_debug_callbacks.
2368 * To enable debugging in silc client one must give now -d
2369 option on command line.
2371 * Changed silc_schedule_init to automatically allocate task queues
2372 if they are not allocated before calling it.
2374 Thu Sep 7 10:49:33 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2376 * Added GMP 3.1 into math library.
2378 Sun Aug 20 21:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2380 * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
2381 a channel in SILC network. The packet is used by servers and
2382 routers to notify other routers that user has left a channel.
2383 This little feature was missing until now. Added the feature
2384 to protocol specification as well.
2386 Added functions: silc_server_send_remove_channel_user and
2387 silc_server_remove_channel_user into server.[ch].
2389 * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
2390 lib/silccore/silcpacket.h. However, they are not implemented
2393 Sat Aug 19 23:04:16 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2395 * Fixed joining to a channel and sending channel messages
2396 between server and router. The channel message sending should
2397 now work inside a cell.
2399 Tue Jul 25 20:46:13 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2401 * Fixed the private message sending between server and router.
2402 The private message sending should now work inside a cell.
2404 * Added silc_server_replace_id into server.[ch] to replace
2405 existing ID in the SILC network.
2407 * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
2408 and silc_idlist_replace_server_id into idlist.[ch] in server.
2410 Mon Jul 24 18:33:31 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2412 * Fixed the server to server connections. Server can again now
2413 connect to router. Router to router connections probably does
2416 Thu Jul 20 13:15:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2418 * Added dynamic protocol registering support. Now protocols can
2419 registered and unregistered on the fly. Patch by cras.
2421 Wed Jul 19 19:08:46 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2423 * Added lib/contrib directory to hold routines that some platforms
2424 don't have but are needed by SILC.
2426 * Added getopt.c, getopt1.c and getopt.h from GNU C library
2427 into lin/contrib to provide getopt() and getopt_long() for
2428 those who don't have it.
2430 Tue Jul 18 20:41:20 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2432 * Added AWAY command to client. When away message is set and
2433 client receives a private message packet the client automatically
2434 replies to the sender with the away message.
2436 * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin. This
2437 bug seemed to be the cause of recent problems when compiling
2440 * Added version detection support to SKE protocol specification
2441 and added the new changes to the SKE implementation as well.
2442 There were other minor changes in the SKE protocol as well.
2444 Many changes in lib/silcske/silcske.[ch] and in
2445 lib/silcske/payload.[ch].
2447 * Added ^U functionality, clear input line. Patch from cras.
2449 Mon Jul 17 23:33:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2451 * Mainly small bugfixes on core library. Fixed some debugging
2452 logging and buffer overflow in silclog.c.
2454 * Updated config.sub and config.guess on the distribution tree.
2456 Sat Jul 15 15:33:48 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2458 * Added command lagging support in server. Client may execute
2459 commands now only once in two seconds.
2461 Thu Jul 13 22:10:21 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2463 * Optimized packet reception. MAC computation and checking is now
2464 also more optimized. A lot previously duplicated code is now
2465 used as generic by both client and server.
2467 * Fixed key pair generation in clientutil.c
2469 Wed Jul 12 18:28:07 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2471 * Added into lib/silccore/silcbufutil.[ch] new function;
2472 silc_buffer_realloc.
2474 * Moved generic packet sending/encryption functions to
2475 lib/silccore/silcpacket.[ch] from client and server. Some
2476 rewriting of the functions.
2478 * Moved all generic packet reception/decryption functions to
2479 lib/silccore/silcpacket.[ch] from client and server. The
2480 packet processing is now much cleaner in both client and server.
2481 These were major changes in both client and server.
2483 * Created many common functions in server to do packet sending.
2484 Previously code were duplicated a lot, this has been removed
2487 Tue Jul 11 20:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2489 * Rewrote major parts of the ID cache system. Don't know
2490 whether it is better now or not but at least the API is more
2493 * Major rewrite on ID cache stuff on client because of the ID
2494 cache API changes. Added idlist.c to client.
2496 * Also major rewrite on ID cache stuff on server as well.
2497 Major rewrite of idlist.[ch]. SilcXXXList's are now named
2498 SilcXXXEntry's. We won't keep anymore idlist specific pointers
2499 in hand, instead they are all put into the ID cache system now.
2500 All server_idlist_* routines uses ID cache now instead of
2501 traversing its own lists (those lists does not exist anymore).
2502 SilcIDList though still exists. Also, SilcXXXEntry's are
2505 Sun Jul 9 15:19:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2507 * Finally made the SKE implementation compliant to the protocol
2508 specification. All mp integers are now binary encoded as
2509 opposed being HEX encoded.
2511 * Added lib/silcmath/mpbin.[ch]. Encoding mp intergers to and
2514 * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
2515 functions: silc_[encode/decode]_pem. Also added function
2516 silc_encode_pem_file to PEM encode with newlines ('\n') for
2519 * SILC public keys are now encoded either PEM or binary. Same
2520 option is for private keys as well. By default private keys
2521 are binary encoded and public keys PEM encoded. Silly HEX
2522 encoding were removed.
2524 * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
2525 function to create fingerprints.
2527 * Fixed a bug in SHA1; does not change the original data anymore.
2529 * Partly implemented INFO command on client and server side.
2530 Fixed CLEAR command. Changes to SERVER command; show current
2531 server(s) when giving command without arguments. Added
2532 VERSION command to client.
2534 * Added check to server that unregistered connections cannot
2535 execute commands (unless it is specificly allowed).
2537 Thu Jul 6 18:12:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2539 * Fixed screen refresh.
2541 * Fixed channel joining bug from client. On some circumstances
2542 client tried to join to a channel it had already joined.
2544 * Added public key verification process into client's protocol.c.
2545 The client now verifies the public key from user and saves
2546 it into ~./silc/serverkeys/ directory.
2548 Added into: clientutil.[ch]: silc_client_verify_server_key.
2550 * Changed SKE protocol's silc_ske_initiator_finish function
2551 to accept callback function that verifies the received public
2552 key. Removed old silc_ske_verify_public_key function.
2554 Wed Jul 5 19:19:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2556 * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
2557 silc_pkcs_private_key[_data]_set.
2559 * Made the password and public authentication more cleaner in
2560 server's protocol.c.
2562 * Removed historic and obsolete protocol `channel_auth' from
2563 both client and server.
2565 * Removed wrong way of sending command status messages from
2566 server to client in server's command.c. The old way violated
2567 protocol specification.
2569 Changes to silccore/silccommand.[ch]: removed
2570 silc_command_encode_status_payload -> not needed anymore,
2571 changed silc_command_encode_payload_va to accept extra
2572 argument on variable argument list. The argument type must
2573 now be provided to the function. Also, added new function:
2574 silc_command_encode_reply_payload_va which is same as
2575 normal command_encode_payload_va except command status type
2576 is provided as extra argument.
2578 Tue Jul 4 18:26:39 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2580 * Added ~./silc directory handling. The directory includes the
2581 public and private keys for the client.
2583 Added silc_client_check_silc_dir, silc_client_create_identifier
2584 and silc_client_load_keys.
2586 * Implemented SILC protocol compliant public key. Added public
2587 and private key saving to and loading from files.
2589 Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
2590 silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
2591 silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
2592 silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
2593 silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
2595 Implemented: silc_pkcs_save_[public/private]_key[_data] and
2596 silc_pkcs_load_[public/private]_key.
2598 Mon Jul 3 18:51:27 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2600 * Added silc_server_get_route (route.[ch]) to get connection
2601 data for the fastest route for given ID.
2603 * Implemented INVITE command on client and server. The command
2604 were re-defined in the SILC Protocol Specification and the
2605 implementation now complies with the specification.
2607 * Implemented PING command on client and server.
2609 * Implemented NAMES command on client and server. The server side
2610 supports currently only normal server not router server yet.
2611 Some changes to NAMES definition in SILC protocol specification.
2613 Sun Jul 2 18:23:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2615 * Implemented LEAVE command on client and server.
2617 * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
2618 again. This change was made to the protocol as well. Server
2619 should not violate the protocol specification anymore.
2621 Fri Jun 30 14:03:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
2623 * Added SOCKS4 and SOCKS5 support to SILC client. SOCKS5
2624 was tested. SOCKS4 was not but should work anyway.