1 Tue Oct 31 20:10:37 EET 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
5 * Added TRQ (efficient deque and list library) into lib/trq. This is
6 a very good list library that is currently used in the SILC. Defined
7 SilcList API over the library because I didn't like the API very
8 much. See lib/trq/silclist.h for the API and examples of how to
9 use the API. Fixed various places in the code to use the new
10 SilcList API. The SilcList is meant for lists that has a structure
11 already defined as a list. It is not suitable to add just some
12 context to the list (in TRQ, the context is the list actually).
14 So, I defined SilcDList that can be used for the purpose where
15 predefined list structure does not exit. This can be used as
16 such list. Now some context just can be added to the SilcDList.
17 Currently this list is not used in the SILC just yet, though there
18 are a lot places where this can replace dynamically allocated
19 tables and I will fix these places, later, to use SilcDList.
20 See lib/trq/silcdlist.h for SilcDList (they are all inline functions,
21 and use TRQ internally).
23 Also fixed some annoying warning messages that the original TRQ
24 code generated. Also minor changes to TRQ's Makefile.in.
26 * Added support for querying by Client ID to both WHOIS and
27 IDENTIFY commands into server, as required by the protocol.
29 * Removed method function pointers from SilcBuffer structure. They
30 weren't used to anything and just increased the context size for
31 no good reason. This change also made silc_buffer_alloc and
32 silc_buffer_free functions inline functions.
34 * Disabled command flooding detection support until it's fixed so
35 that it accepts commands in but does not execute them more than once
38 * Added silc_net_localhost(), to return local hostname, into
39 lib/silcutil/silcnet.[ch]. Also added client->hostname pointer
40 that must be initialized before calling silc_client_init.
42 * Added new function: silc_server_send_notify_on_channels to send
43 notify messages to all channels client has joined. It is assured
44 that the message is sent only once per client.
46 * Moved silc_log_format (from lib/silcutil/silclog.[ch] into
47 lib/silcutil/silcutil.[ch] as silc_format function. The new
48 function is generic and is used by server as well, not only by
51 * Added new SKE status type: SILC_SKE_STATUS_BAD_VERSION to indicate
52 the provided version string was not acceptable. Added new function:
53 silc_ske_check_version into lib/silcske/silcske.h. The function
54 must be implemented by the application (client or server) and it
55 does not reside in the SKE library. The function checks the version
56 string remote end sent.
58 * Added back pointers (to opaque context and to SilcSocketConnection)
59 into SilcPacketContext structure into lib/silccore/silcpacket.h.
61 * Added silc_packet_context_dup into lib/silccore/silcpacket.[ch] to
62 duplicate packet context structure.
64 * Changed `notify' client operation to send same arguments as client
65 receives from server except for ID's. ID's are mapped to correct
66 ID entry and that is returned. Also, if channel entry is not sent
67 by server but the notify is for channel the channel entry is sent
68 to application (otherwise application doesn't know that it is for
69 channel (library gets it from packet's Destination ID)).
71 * Added silc_client_remove_from_channels into client library to
72 remove a client from all channels it has joined to. Used when
73 received SIGNOFF notify from server. Added also new function
74 silc_client_replace_from_channels to replace old ID entry with
75 new ID entry on all channels. Used when received NICK_CHANGE
78 * Fixed ID Cache list handling in silc_idlist_get_client in
79 lib/silcclient/idlist.c. Also, added silc_idlist_get_client_by_id
80 to get (or query) client by ID.
84 * Added connection authentication status message defined by the
85 protocol: SILC_CONN_AUTH_OK and SILC_CONN_AUTH_FAILED and added the
86 support for these into the code in client and server side.
88 * Added generic function silc_client_send_command to send any command
89 with variable argument list. Application should use this function
90 to send commands if the command functions provided by the library
91 does not suite for the application's user interface needs.
93 * Added new `failure' client operation. Application is notified about
94 received failure packet if client is executing a protocol. In this
95 case the protocol's execution has failed.
97 * Added SKE's end notify to send the SKE_SUCCESS notify message that
98 is required by the protocol.
100 * Added SILC_PROTOCOL_STATE_FAILURE to indicate received failure
101 packet from remote. SILC_PROTOCOL_STATE_ERROR indicates local
104 * Added status flag to SilcSKE object to indicate realtime status
107 * Application receives now exactly same command reply arguments as
108 the library receives from server. However, if ID is received the
109 corresponding ID entry is returned to the application (eg. Client
110 ID is mapped to correct SilcClientEntry entry and that is returned).
111 Changed command_reply client operation due to this change.
113 * Changed all ID's in commands and in command replys as ID Payloads.
114 Change affected both client and server side codes.
116 All ID's sent in SILC network (with execption of ID's in SILC
117 Packet header) are sent in ID Payload to support variable length
120 * Server now notifies nick changes and notifies all clients on
121 the channels about the new nickname (about the new Client ID,
124 * Implemented CMODE command to change channel modes. Supports all
125 channel modes defined by the protocol specs except ban and invite
126 lists. (Also, private channel key mode is supported but support for
127 setting private channel key in client is missing, thus, this mode
128 has no effect on client side (except that server requires that the
129 client uses private channel key and normal channel traffic does not
132 Also, invite mode works per se, but INVITE command does not work
133 yet correctly, so you can set channel as invite only channel but
134 inviting clients to the channel does not work (it is yet to be
135 thought what's the best way to do it).
137 * Added new command SILC_COMMAND_CUMODE to change user mode on the
138 channel. Defined user modes: CHANNEL_FOUNDER and CHANNEL_OPERATOR.
139 Implemented CUMODE command to change user's mode on the channel.
140 Supports all modes defined by the protocol specs.
142 * Added NAMES command reply to return users modes on the channel.
144 * Removed unnecessary and slow ciphers from lib/silccrypt.
146 * Set SO_KEEPALIVE option to connection sockets by default.
148 * Added new command reply status: SILC_STATUS_USER_NOT_ON_CHANNEL.
150 * Added notify types: MOTD, CMODE_CHANGE and CUMODE_CHANGE. Also,
151 redefined the Notify Payload into protocol specs.
153 * Added silc_id_payload_parse_id to get ID directly from raw
156 Mon Oct 9 20:57:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
158 * Changed SILC_COMMAND_IDENTIFY in protocol specification to
159 accept searching by Client ID as well.
161 * Added support for LEAVE and SIGNOFF notify types in client library.
163 * Added silc_id_payload_parse_data into lib/silccore/silcpayload.[ch]
164 to parse ID Payload from raw data.
166 Sun Oct 8 19:33:08 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
168 * Added flags parameter into silc_ske_assemble_security_properties
169 function in lib/silcske/silcske.[ch].
171 * Changed notify client operation to fit better for notify messages
172 sent by server. The notify payload received from server is now
173 passed to the application (after parsing it to SilcNotifyPayload).
174 It is application's responsibility to retrieve the arguments
175 from the payload and show the message the way it wants. The message
176 sent by server is implementation specific.
178 * Changed public keys to comply with the protocol specification.
179 Old public keys are not supported anymore and are not compatible.
181 * Removed nickname from Channel Payload as the latest draft removed
182 it. The client must resolve the nickname from the NAMES command
183 reply received when it joined the channel.
185 Also, changed all channel_xxxx_payload to channel_payload_xxxx.
187 Sat Oct 7 21:55:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
189 * Fixed some errors in protocol specification drafts.
191 * Created lib/silccore/silcnotify.c to implement Notify Payload
192 encoding and decoding, lib/silccore/silcpayload.[ch] to implement
193 generic payloads described by protocol specifications. The file
194 includes implementations for ID Payload and Argument Payload.
196 * Changed Command Payload implementation to use the new Argument
197 Payload. Changed command_xxxx_payload to command_payload_xxxx
198 to comply with SILC coding conventions.
200 * Added suppport for Argument Payload handling in Notify Payload
201 implementation as protocol requires it. Added the new support
202 into server and client lib as well.
204 Thu Oct 5 21:16:28 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
206 * Added support for multiple nicknames on same channel. [n] is
207 added locally to the nickname if there are more than one same
208 nicknames on the channel.
210 * Server now sends all nicknames that matched WHOIS request.
211 Client also shows the list received from server.
213 * Added TOPIC command to client side. User can now set and show
214 current topic on channel.
216 * Added MOTD command to client and server. Also, server sends the
217 motd when client connects to the server.
219 * Changed version strings to comply ISO 8601.
221 Wed Oct 4 23:29:06 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
223 * Fixed protocol error handling in client library. It should now
224 cope even if the SKE fails for some reason.
226 * Made new protocol specification drafts for submitting to IETF.
228 * Implemented TOPIC command to server in silcd/command.c.
230 * Added two new notify types into lib/silccore/silcnotify.h:
231 SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
232 notify nickname change and topic setting/change on a channel.
234 * API change of command_reply operation in client library. The
235 application gets now the status type received from server as well.
237 Sat Sep 30 16:57:42 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
239 * Removed the function just added to lib/silcutil/silcschedule.[ch].
241 * Cras fixed and optimized the packet handling even further and
242 it should work now. Minor change to the prototype of function
243 silc_packet_receive_process in lib/silccore/silcpacket.[ch].
245 Sat Sep 30 08:48:47 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
247 * Added new function into lib/silcutil/silcschedule.[ch]:
248 silc_schedule_with_fd to select() a specified fd. The function
249 returns after timeout expires or data arrives or goes. The
250 function is used by packet routines to wait that all data is
251 received from network.
253 * Fixed data reading from network in lib/silccore/silcpacket.c.
254 The code now assures that all data is read from the fd and then
255 continues packet processing. This was a bug fix since the code
256 used to drop some data in some circumstances.
258 * Added new function into lib/silcclient/client.[ch]:
259 silc_client_start_key_exchange to start key exchange after
260 connection has been established to server. The code internally
261 now uses this funtion but its main purpose was to provide it
262 for applications that perform their own connecting. After
263 application has created a connection it merely calls this
264 function to start the key exchange between client and server.
265 The library takes care of everything else after that.
267 Updated also lib/silcclient/README to explain the usage of
270 * Do not send to application information that connection has
271 been established. Application gets notified it by connect
274 Thu Sep 28 23:40:19 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
276 * Applied cras's patch to add silc_schedule_one function. The
277 function runs scheduler once and returns.
279 * Fixed the scheduler after cras messed it up. The timeout
280 handling works now as it's supposed to work.
282 * Added into lib/silccore/ silcnotify.h to include notify
283 message types support. Changed silc_server_send_notify*
284 functions, in server.[ch], to support those new notify types.
285 Added the support for the notify types into client library,
286 as well. Added new notify client operation into ops.h in
289 * Changed silc_server_packet_send_to_channel to send normal
290 packets instead of just channel message packets. The function
291 is now used to send the notify packets to channels. It is not
292 used to send channel message packets anymore, as server never
295 * Added explicit casting into lib/silcutil/silcbuffmt.c to few
296 va_arg()s as it seems to require it nowadays. I guess, if SILC
297 is compiled with older va_arg() the new code should work anyway.
299 Wed Sep 13 18:10:14 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
301 * Splitted core library. Core library (lib/silccore) includes
302 now only SILC protocol specific core (and common) components.
303 Created new utility library (lib/silcutil) that includes more
304 generic purpose stuff. The stuff for util library was taken
305 from the old core library. This was minor and easy split.
307 * Created SILC Client Library (lib/silcclient) that includes
308 implementation of the SILC client without user interface. This
309 was major move from silc/ directory. The code has been changed
310 so that it is transparent towards the user interface. The
311 silc/ directory includes now the same user interface as before
312 and it uses the new client library. Read lib/silcclient/README.
313 Basicly, the client library performs everything else related
314 to SILC except user interface handling. Also, configuration
315 files are considered to be part of user interface and library
316 does not handle them.
318 This change also changed a lot of structures, function naming etc.
319 Most important change was that SilcClientWindow object was
320 renamed to SilcClientConnection in the client library. Created
321 also new file lib/silcclient/ops.h. Also added new files
322 silc/local_command.[ch] and silc/client_ops.[ch].
324 All these changes were made to make it easier for user interface
325 designers to create what ever user interface for the SILC client
328 It is also expected that the server will be moved to lib
329 directory as well and SILC Server Library will be created;
330 sometimes in the future.
332 * Removed Local commands from lib/silccore/silccommand.h as
333 they are application specific and new client library does not
334 handle any of those anymore.
336 * Several functions moved to lib/silcutil/silcutilc.[ch] from
337 old client implementation in silc/.
339 * Added support for callback functions in SILC_LOG_* macros.
340 Application can now set its own callbacks that will be called
341 instead of using the default functions that will always print
342 the debug messages to stderr (or stdout). Also, debugging can
343 now be disabled by setting silc_debug to FALSE and re-enabled by
344 setting it to TRUE. Note, that logging will still work even
345 if debugging is disabled.
347 New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
348 silc_log_reset_callbacks, silc_log_set_debug_callbacks and
349 silc_log_reset_debug_callbacks.
351 * To enable debugging in silc client one must give now -d
352 option on command line.
354 * Changed silc_schedule_init to automatically allocate task queues
355 if they are not allocated before calling it.
357 Thu Sep 7 10:49:33 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
359 * Added GMP 3.1 into math library.
361 Sun Aug 20 21:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
363 * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
364 a channel in SILC network. The packet is used by servers and
365 routers to notify other routers that user has left a channel.
366 This little feature was missing until now. Added the feature
367 to protocol specification as well.
369 Added functions: silc_server_send_remove_channel_user and
370 silc_server_remove_channel_user into server.[ch].
372 * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
373 lib/silccore/silcpacket.h. However, they are not implemented
376 Sat Aug 19 23:04:16 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
378 * Fixed joining to a channel and sending channel messages
379 between server and router. The channel message sending should
380 now work inside a cell.
382 Tue Jul 25 20:46:13 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
384 * Fixed the private message sending between server and router.
385 The private message sending should now work inside a cell.
387 * Added silc_server_replace_id into server.[ch] to replace
388 existing ID in the SILC network.
390 * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
391 and silc_idlist_replace_server_id into idlist.[ch] in server.
393 Mon Jul 24 18:33:31 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
395 * Fixed the server to server connections. Server can again now
396 connect to router. Router to router connections probably does
399 Thu Jul 20 13:15:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
401 * Added dynamic protocol registering support. Now protocols can
402 registered and unregistered on the fly. Patch by cras.
404 Wed Jul 19 19:08:46 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
406 * Added lib/contrib directory to hold routines that some platforms
407 don't have but are needed by SILC.
409 * Added getopt.c, getopt1.c and getopt.h from GNU C library
410 into lin/contrib to provide getopt() and getopt_long() for
411 those who don't have it.
413 Tue Jul 18 20:41:20 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
415 * Added AWAY command to client. When away message is set and
416 client receives a private message packet the client automatically
417 replies to the sender with the away message.
419 * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin. This
420 bug seemed to be the cause of recent problems when compiling
423 * Added version detection support to SKE protocol specification
424 and added the new changes to the SKE implementation as well.
425 There were other minor changes in the SKE protocol as well.
427 Many changes in lib/silcske/silcske.[ch] and in
428 lib/silcske/payload.[ch].
430 * Added ^U functionality, clear input line. Patch from cras.
432 Mon Jul 17 23:33:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
434 * Mainly small bugfixes on core library. Fixed some debugging
435 logging and buffer overflow in silclog.c.
437 * Updated config.sub and config.guess on the distribution tree.
439 Sat Jul 15 15:33:48 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
441 * Added command lagging support in server. Client may execute
442 commands now only once in two seconds.
444 Thu Jul 13 22:10:21 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
446 * Optimized packet reception. MAC computation and checking is now
447 also more optimized. A lot previously duplicated code is now
448 used as generic by both client and server.
450 * Fixed key pair generation in clientutil.c
452 Wed Jul 12 18:28:07 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
454 * Added into lib/silccore/silcbufutil.[ch] new function;
457 * Moved generic packet sending/encryption functions to
458 lib/silccore/silcpacket.[ch] from client and server. Some
459 rewriting of the functions.
461 * Moved all generic packet reception/decryption functions to
462 lib/silccore/silcpacket.[ch] from client and server. The
463 packet processing is now much cleaner in both client and server.
464 These were major changes in both client and server.
466 * Created many common functions in server to do packet sending.
467 Previously code were duplicated a lot, this has been removed
470 Tue Jul 11 20:27:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
472 * Rewrote major parts of the ID cache system. Don't know
473 whether it is better now or not but at least the API is more
476 * Major rewrite on ID cache stuff on client because of the ID
477 cache API changes. Added idlist.c to client.
479 * Also major rewrite on ID cache stuff on server as well.
480 Major rewrite of idlist.[ch]. SilcXXXList's are now named
481 SilcXXXEntry's. We won't keep anymore idlist specific pointers
482 in hand, instead they are all put into the ID cache system now.
483 All server_idlist_* routines uses ID cache now instead of
484 traversing its own lists (those lists does not exist anymore).
485 SilcIDList though still exists. Also, SilcXXXEntry's are
488 Sun Jul 9 15:19:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
490 * Finally made the SKE implementation compliant to the protocol
491 specification. All mp integers are now binary encoded as
492 opposed being HEX encoded.
494 * Added lib/silcmath/mpbin.[ch]. Encoding mp intergers to and
497 * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
498 functions: silc_[encode/decode]_pem. Also added function
499 silc_encode_pem_file to PEM encode with newlines ('\n') for
502 * SILC public keys are now encoded either PEM or binary. Same
503 option is for private keys as well. By default private keys
504 are binary encoded and public keys PEM encoded. Silly HEX
505 encoding were removed.
507 * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
508 function to create fingerprints.
510 * Fixed a bug in SHA1; does not change the original data anymore.
512 * Partly implemented INFO command on client and server side.
513 Fixed CLEAR command. Changes to SERVER command; show current
514 server(s) when giving command without arguments. Added
515 VERSION command to client.
517 * Added check to server that unregistered connections cannot
518 execute commands (unless it is specificly allowed).
520 Thu Jul 6 18:12:24 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
522 * Fixed screen refresh.
524 * Fixed channel joining bug from client. On some circumstances
525 client tried to join to a channel it had already joined.
527 * Added public key verification process into client's protocol.c.
528 The client now verifies the public key from user and saves
529 it into ~./silc/serverkeys/ directory.
531 Added into: clientutil.[ch]: silc_client_verify_server_key.
533 * Changed SKE protocol's silc_ske_initiator_finish function
534 to accept callback function that verifies the received public
535 key. Removed old silc_ske_verify_public_key function.
537 Wed Jul 5 19:19:02 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
539 * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
540 silc_pkcs_private_key[_data]_set.
542 * Made the password and public authentication more cleaner in
545 * Removed historic and obsolete protocol `channel_auth' from
546 both client and server.
548 * Removed wrong way of sending command status messages from
549 server to client in server's command.c. The old way violated
550 protocol specification.
552 Changes to silccore/silccommand.[ch]: removed
553 silc_command_encode_status_payload -> not needed anymore,
554 changed silc_command_encode_payload_va to accept extra
555 argument on variable argument list. The argument type must
556 now be provided to the function. Also, added new function:
557 silc_command_encode_reply_payload_va which is same as
558 normal command_encode_payload_va except command status type
559 is provided as extra argument.
561 Tue Jul 4 18:26:39 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
563 * Added ~./silc directory handling. The directory includes the
564 public and private keys for the client.
566 Added silc_client_check_silc_dir, silc_client_create_identifier
567 and silc_client_load_keys.
569 * Implemented SILC protocol compliant public key. Added public
570 and private key saving to and loading from files.
572 Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
573 silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
574 silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
575 silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
576 silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
578 Implemented: silc_pkcs_save_[public/private]_key[_data] and
579 silc_pkcs_load_[public/private]_key.
581 Mon Jul 3 18:51:27 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
583 * Added silc_server_get_route (route.[ch]) to get connection
584 data for the fastest route for given ID.
586 * Implemented INVITE command on client and server. The command
587 were re-defined in the SILC Protocol Specification and the
588 implementation now complies with the specification.
590 * Implemented PING command on client and server.
592 * Implemented NAMES command on client and server. The server side
593 supports currently only normal server not router server yet.
594 Some changes to NAMES definition in SILC protocol specification.
596 Sun Jul 2 18:23:01 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
598 * Implemented LEAVE command on client and server.
600 * Previously deprecated SILC_PACKET_FORWARDED flag is now in use
601 again. This change was made to the protocol as well. Server
602 should not violate the protocol specification anymore.
604 Fri Jun 30 14:03:26 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
606 * Added SOCKS4 and SOCKS5 support to SILC client. SOCKS5
607 was tested. SOCKS4 was not but should work anyway.