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