updates
[silc.git] / CHANGES
1 Sun Oct  8 19:33:08 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
2
3         * Added flags parameter into silc_ske_assemble_security_properties
4           function in lib/silcske/silcske.[ch].
5
6         * Changed notify client operation to fit better for notify messages
7           sent by server.  The notify payload received from server is now
8           passed to the application (after parsing it to SilcNotifyPayload).
9           It is application's responsibility to retrieve the arguments
10           from the payload and show the message the way it wants.  The message
11           sent by server is implementation specific.
12
13         * Changed public keys to comply with the protocol specification.
14           Old public keys are not supported anymore and are not compatible.
15
16         * Removed nickname from Channel Payload as the latest draft removed
17           it.  The client must resolve the nickname from the NAMES command
18           reply received when it joined the channel.
19
20           Also, changed all channel_xxxx_payload to channel_payload_xxxx.
21
22 Sat Oct  7 21:55:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
23
24         * Fixed some errors in protocol specification drafts.
25
26         * Created lib/silccore/silcnotify.c to implement Notify Payload
27           encoding and decoding, lib/silccore/silcpayload.[ch] to implement
28           generic payloads described by protocol specifications.  The file
29           includes implementations for ID Payload and Argument Payload.
30
31         * Changed Command Payload implementation to use the new Argument
32           Payload.  Changed command_xxxx_payload to command_payload_xxxx
33           to comply with SILC coding conventions.
34
35         * Added suppport for Argument Payload handling in Notify Payload
36           implementation as protocol requires it.  Added the new support
37           into server and client lib as well.
38
39 Thu Oct  5 21:16:28 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
40
41         * Added support for multiple nicknames on same channel.  [n] is
42           added locally to the nickname if there are more than one same
43           nicknames on the channel.
44
45         * Server now sends all nicknames that matched WHOIS request.
46           Client also shows the list received from server.
47
48         * Added TOPIC command to client side.  User can now set and show
49           current topic on channel.
50
51         * Added MOTD command to client and server.  Also, server sends the
52           motd when client connects to the server.
53
54         * Changed version strings to comply ISO 8601.
55
56 Wed Oct  4 23:29:06 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
57
58         * Fixed protocol error handling in client library.  It should now
59           cope even if the SKE fails for some reason.
60
61         * Made new protocol specification drafts for submitting to IETF.
62
63         * Implemented TOPIC command to server in silcd/command.c.
64
65         * Added two new notify types into lib/silccore/silcnotify.h:
66           SILC_NOTIFY_TYPE_NICK_CHANGE and SILC_NOTIFY_TYPE_TOPIC_SET to
67           notify nickname change and topic setting/change on a channel.
68
69         * API change of command_reply operation in client library.  The
70           application gets now the status type received from server as well.
71
72 Sat Sep 30 16:57:42 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
73
74         * Removed the function just added to lib/silcutil/silcschedule.[ch].
75
76         * Cras fixed and optimized the packet handling even further and
77           it should work now.  Minor change to the prototype of function
78           silc_packet_receive_process in lib/silccore/silcpacket.[ch].
79
80 Sat Sep 30 08:48:47 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
81
82         * Added new function into lib/silcutil/silcschedule.[ch]:
83           silc_schedule_with_fd to select() a specified fd.  The function
84           returns after timeout expires or data arrives or goes.  The
85           function is used by packet routines to wait that all data is
86           received from network.
87
88         * Fixed data reading from network in lib/silccore/silcpacket.c.
89           The code now assures that all data is read from the fd and then
90           continues packet processing.  This was a bug fix since the code
91           used to drop some data in some circumstances.
92
93         * Added new function into lib/silcclient/client.[ch]:
94           silc_client_start_key_exchange to start key exchange after
95           connection has been established to server.  The code internally
96           now uses this funtion but its main purpose was to provide it
97           for applications that perform their own connecting.  After
98           application has created a connection it merely calls this
99           function to start the key exchange between client and server.
100           The library takes care of everything else after that.
101
102           Updated also lib/silcclient/README to explain the usage of
103           this new function.
104
105         * Do not send to application information that connection has
106           been established.  Application gets notified it by connect
107           operation anyway.
108
109 Thu Sep 28 23:40:19 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
110
111         * Applied cras's patch to add silc_schedule_one function.  The
112           function runs scheduler once and returns.
113
114         * Fixed the scheduler after cras messed it up.  The timeout
115           handling works now as it's supposed to work.
116
117         * Added into lib/silccore/ silcnotify.h to include notify
118           message types support.  Changed silc_server_send_notify*
119           functions, in server.[ch], to support those new notify types.
120           Added the support for the notify types into client library,
121           as well.  Added new notify client operation into ops.h in
122           lib/silcclient/.
123
124         * Changed silc_server_packet_send_to_channel to send normal
125           packets instead of just channel message packets.  The function
126           is now used to send the notify packets to channels.  It is not
127           used to send channel message packets anymore, as server never
128           sends them anymore.
129
130         * Added explicit casting into lib/silcutil/silcbuffmt.c to few
131           va_arg()s as it seems to require it nowadays.  I guess, if SILC
132           is compiled with older va_arg() the new code should work anyway.
133
134 Wed Sep 13 18:10:14 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
135
136         * Splitted core library.  Core library (lib/silccore) includes
137           now only SILC protocol specific core (and common) components.
138           Created new utility library (lib/silcutil) that includes more
139           generic purpose stuff.  The stuff for util library was taken
140           from the old core library.  This was minor and easy split.
141
142         * Created SILC Client Library (lib/silcclient) that includes
143           implementation of the SILC client without user interface.  This
144           was major move from silc/ directory.  The code has been changed
145           so that it is transparent towards the user interface.  The
146           silc/ directory includes now the same user interface as before
147           and it uses the new client library.  Read lib/silcclient/README.
148           Basicly, the client library performs everything else related
149           to SILC except user interface handling.  Also, configuration
150           files are considered to be part of user interface and library
151           does not handle them.
152
153           This change also changed a lot of structures, function naming etc.
154           Most important change was that SilcClientWindow object was
155           renamed to SilcClientConnection in the client library.  Created
156           also new file lib/silcclient/ops.h.  Also added new files
157           silc/local_command.[ch] and silc/client_ops.[ch].
158
159           All these changes were made to make it easier for user interface
160           designers to create what ever user interface for the SILC client
161           they want.
162
163           It is also expected that the server will be moved to lib
164           directory as well and SILC Server Library will be created;
165           sometimes in the future.
166
167         * Removed Local commands from lib/silccore/silccommand.h as
168           they are application specific and new client library does not
169           handle any of those anymore.
170
171         * Several functions moved to lib/silcutil/silcutilc.[ch] from
172           old client implementation in silc/.
173
174         * Added support for callback functions in SILC_LOG_* macros.
175           Application can now set its own callbacks that will be called
176           instead of using the default functions that will always print
177           the debug messages to stderr (or stdout).  Also, debugging can
178           now be disabled by setting silc_debug to FALSE and re-enabled by
179           setting it to TRUE.  Note, that logging will still work even
180           if debugging is disabled.
181
182           New functions in lib/silcutil/silclog.[ch]: silc_log_set_callbacks,
183           silc_log_reset_callbacks, silc_log_set_debug_callbacks and
184           silc_log_reset_debug_callbacks.
185
186         * To enable debugging in silc client one must give now -d
187           option on command line.
188
189         * Changed silc_schedule_init to automatically allocate task queues
190           if they are not allocated before calling it.
191
192 Thu Sep  7 10:49:33 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
193
194         * Added GMP 3.1 into math library.
195
196 Sun Aug 20 21:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
197
198         * Added SILC_PACKET_REMOVE_CHANNEL_USER to remove a client from
199           a channel in SILC network.  The packet is used by servers and
200           routers to notify other routers that user has left a channel.
201           This little feature was missing until now.  Added the feature
202           to protocol specification as well.
203
204           Added functions: silc_server_send_remove_channel_user and
205           silc_server_remove_channel_user into server.[ch].
206
207         * Added SILC_PACKET_REKEY and SILC_PACKET_REKEY_DONE into
208           lib/silccore/silcpacket.h.  However, they are not implemented
209           yet.
210
211 Sat Aug 19 23:04:16 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
212
213         * Fixed joining to a channel and sending channel messages
214           between server and router.  The channel message sending should
215           now work inside a cell.
216
217 Tue Jul 25 20:46:13 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
218
219         * Fixed the private message sending between server and router.
220           The private message sending should now work inside a cell.
221
222         * Added silc_server_replace_id into server.[ch] to replace
223           existing ID in the SILC network.
224
225         * Added silc_idlist_find_server_by, silc_idlist_replace_client_id
226           and silc_idlist_replace_server_id into idlist.[ch] in server.
227
228 Mon Jul 24 18:33:31 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
229
230         * Fixed the server to server connections.  Server can again now
231           connect to router.  Router to router connections probably does
232           not work just yet.
233
234 Thu Jul 20 13:15:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
235
236         * Added dynamic protocol registering support.  Now protocols can
237           registered and unregistered on the fly.  Patch by cras.
238
239 Wed Jul 19 19:08:46 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
240
241         * Added lib/contrib directory to hold routines that some platforms
242           don't have but are needed by SILC.
243
244         * Added getopt.c, getopt1.c and getopt.h from GNU C library
245           into lin/contrib to provide getopt() and getopt_long() for
246           those who don't have it.
247
248 Tue Jul 18 20:41:20 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
249
250         * Added AWAY command to client.  When away message is set and
251           client receives a private message packet the client automatically
252           replies to the sender with the away message.
253
254         * Fixed a bug in lib/silcmath/mpbin.c: silc_mp_mp2bin.  This
255           bug seemed to be the cause of recent problems when compiling
256           with gcc-2.95.
257
258         * Added version detection support to SKE protocol specification
259           and added the new changes to the SKE implementation as well.
260           There were other minor changes in the SKE protocol as well.
261
262           Many changes in lib/silcske/silcske.[ch] and in
263           lib/silcske/payload.[ch].
264
265         * Added ^U functionality, clear input line.  Patch from cras.
266
267 Mon Jul 17 23:33:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
268
269         * Mainly small bugfixes on core library.  Fixed some debugging
270           logging and buffer overflow in silclog.c.
271
272         * Updated config.sub and config.guess on the distribution tree.
273
274 Sat Jul 15 15:33:48 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
275
276         * Added command lagging support in server. Client may execute
277           commands now only once in two seconds.
278
279 Thu Jul 13 22:10:21 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
280
281         * Optimized packet reception. MAC computation and checking is now
282           also more optimized.  A lot previously duplicated code is now
283           used as generic by both client and server.
284
285         * Fixed key pair generation in clientutil.c
286
287 Wed Jul 12 18:28:07 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
288
289         * Added into lib/silccore/silcbufutil.[ch] new function;
290           silc_buffer_realloc.
291
292         * Moved generic packet sending/encryption functions to 
293           lib/silccore/silcpacket.[ch] from client and server.  Some
294           rewriting of the functions.
295
296         * Moved all generic packet reception/decryption functions to
297           lib/silccore/silcpacket.[ch] from client and server.  The
298           packet processing is now much cleaner in both client and server.
299           These were major changes in both client and server.
300
301         * Created many common functions in server to do packet sending.
302           Previously code were duplicated a lot, this has been removed
303           with these changes.
304
305 Tue Jul 11 20:27:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
306
307         * Rewrote major parts of the ID cache system.  Don't know 
308           whether it is better now or not but at least the API is more
309           cleaner now.
310
311         * Major rewrite on ID cache stuff on client because of the ID
312           cache API changes.  Added idlist.c to client.
313
314         * Also major rewrite on ID cache stuff on server as well.
315           Major rewrite of idlist.[ch]. SilcXXXList's are now named
316           SilcXXXEntry's.  We won't keep anymore idlist specific pointers
317           in hand, instead they are all put into the ID cache system now.
318           All server_idlist_* routines uses ID cache now instead of
319           traversing its own lists (those lists does not exist anymore).
320           SilcIDList though still exists.  Also, SilcXXXEntry's are
321           now pointers.
322
323 Sun Jul  9 15:19:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
324
325         * Finally made the SKE implementation compliant to the protocol
326           specification.  All mp integers are now binary encoded as
327           opposed being HEX encoded.
328
329         * Added lib/silcmath/mpbin.[ch].  Encoding mp intergers to and
330           from binary data.
331
332         * Added into lib/silccore/silcutil.[ch] PEM encoding/decoding
333           functions: silc_[encode/decode]_pem.  Also added function
334           silc_encode_pem_file to PEM encode with newlines ('\n') for
335           saving into a file.
336
337         * SILC public keys are now encoded either PEM or binary.  Same
338           option is for private keys as well.  By default private keys
339           are binary encoded and public keys PEM encoded.  Silly HEX
340           encoding were removed.
341
342         * Added into lib/silccrypt/silchash.[ch] silc_hash_fingerprint
343           function to create fingerprints.
344
345         * Fixed a bug in SHA1; does not change the original data anymore.
346
347         * Partly implemented INFO command on client and server side.
348           Fixed CLEAR command.  Changes to SERVER command; show current
349           server(s) when giving command without arguments.  Added
350           VERSION command to client.
351
352         * Added check to server that unregistered connections cannot
353           execute commands (unless it is specificly allowed).
354
355 Thu Jul  6 18:12:24 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
356
357         * Fixed screen refresh.
358
359         * Fixed channel joining bug from client.  On some circumstances
360           client tried to join to a channel it had already joined.
361
362         * Added public key verification process into client's protocol.c.
363           The client now verifies the public key from user and saves
364           it into ~./silc/serverkeys/ directory. 
365
366           Added into: clientutil.[ch]: silc_client_verify_server_key.
367
368         * Changed SKE protocol's silc_ske_initiator_finish function
369           to accept callback function that verifies the received public
370           key.  Removed old silc_ske_verify_public_key function.
371
372 Wed Jul  5 19:19:02 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
373
374         * Added into silcpkcs[ch]: silc_pkcs_public_key[_data]_set and
375           silc_pkcs_private_key[_data]_set.
376
377         * Made the password and public authentication more cleaner in
378           server's protocol.c.
379
380         * Removed historic and obsolete protocol `channel_auth' from
381           both client and server.
382
383         * Removed wrong way of sending command status messages from
384           server to client in server's command.c.  The old way violated
385           protocol specification.  
386
387           Changes to silccore/silccommand.[ch]: removed
388           silc_command_encode_status_payload -> not needed anymore,
389           changed silc_command_encode_payload_va to accept extra
390           argument on variable argument list.  The argument type must
391           now be provided to the function.  Also, added new function:
392           silc_command_encode_reply_payload_va which is same as
393           normal command_encode_payload_va except command status type
394           is provided as extra argument.
395
396 Tue Jul  4 18:26:39 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
397
398         * Added ~./silc directory handling.  The directory includes the
399           public and private keys for the client.
400
401           Added silc_client_check_silc_dir, silc_client_create_identifier
402           and silc_client_load_keys.
403
404         * Implemented SILC protocol compliant public key.  Added public
405           and private key saving to and loading from files.
406
407           Added into silcpkcs.[ch]: silc_pkcs_encode_identifier,
408           silc_pkcs_public_key_encode[_data], silc_pkcs_public_key_decode,
409           silc_pkcs_private_key_encode[_data], silc_pkcs_private_key_decode,
410           silc_pkcs_public_key_alloc, silc_pkcs_public_key_free,
411           silc_pkcs_private_key_alloc and silc_pkcs_private_key_free.
412
413           Implemented: silc_pkcs_save_[public/private]_key[_data] and
414           silc_pkcs_load_[public/private]_key.
415
416 Mon Jul  3 18:51:27 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
417
418         * Added silc_server_get_route (route.[ch]) to get connection
419           data for the fastest route for given ID.
420
421         * Implemented INVITE command on client and server.  The command
422           were re-defined in the SILC Protocol Specification and the
423           implementation now complies with the specification.
424
425         * Implemented PING command on client and server.
426
427         * Implemented NAMES command on client and server.  The server side
428           supports currently only normal server not router server yet.
429           Some changes to NAMES definition in SILC protocol specification.
430
431 Sun Jul  2 18:23:01 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
432
433         * Implemented LEAVE command on client and server.
434
435         * Previously deprecated SILC_PACKET_FORWARDED flag is now in use 
436           again.  This change was made to the protocol as well.  Server
437           should not violate the protocol specification anymore.
438
439 Fri Jun 30 14:03:26 EEST 2000  Pekka Riikonen <priikone@poseidon.pspt.fi>
440
441         * Added SOCKS4 and SOCKS5 support to SILC client.  SOCKS5
442           was tested.  SOCKS4 was not but should work anyway.