updates.
[silc.git] / TODO
1 TODO for 1.1 And Beyond
2 =======================
3
4 NOTE: Any item that doesn't have (***DONE) in it, isn't done yet.
5
6
7 lib/silccore/silcpacket.[ch]    ****DONE****
8 ============================
9
10  o SilcPacketEngine. (***DONE)
11
12  o New SILC Packet API. (***DONE)
13
14
15 lib/silccore/silcpacket.[ch]    ****PARTLY DONE****
16 ============================
17
18  o IV Included flag support, UDP transport support (***TESTING NEEDED)
19
20
21 lib/silccore/silcid.[ch]        ****DONE****
22 ========================
23
24   o Add silc_id_str2id to accept the destination buffer as argument
25     and thus not require any memory allocation.  Same will happen
26     with silc_id_payload_* functions. (***DONE)
27
28   o silc_id_str2id, silc_id2str to non-allocating routines. (***DONE)
29
30
31 lib/silccore
32 ============
33
34   o All payload encoding routines should take SilcStack as argument.
35
36
37 lib/silcske/silcske.[ch]
38 ========================
39
40  o IV Included flag support in SKE (it currently doesn't accept it)
41
42  o SilcConnAuth header file documentation.
43
44
45 lib/silccrypt                   ****PARTLY DONE****
46 =============
47
48  o Implement the defined SilcDH API.  The definition is in
49    lib/silccrypt/silcdh.h.
50
51  o SSH2 public keys support, allowing the use of SSH2 public keys in
52    SILC.
53
54  o OpenPGP certificate support, allowing the use of PGP public keys
55    in SILC.
56
57  o SILC PKCS (silcpkcs.h) reorganizing when other PK supports added.
58    Move the SILC Public Key routines away from the crypto library into
59    the core library (silccore).  silc_pkcs_public/private_key_* routines
60    to silc_public/private_key_* routines.  The silc_public_key_* routines
61    should also automatically handle SILC Public Keys, and other keys
62    and certificates as well.  Add fe. silcpk.h into silccore.  It should
63    also include the Public Key Payload encoding and decoding routines.
64    (***DONE)
65
66  o Add DSS support.
67
68  o Cipher optimizations (asm, that this) at least for i386 would be nice.
69
70  o ECDSA and ECDH.
71
72
73 lib/silcutil                    ****PARTLY DONE****
74 ============
75
76  o silc_stringprep to non-allocating version.
77
78  o Compression routines are missing.  The protocol supports packet
79    compression thus it must be implemented.  SILC Zip API must be
80    defined.
81
82  o Add builtin SOCKS and HTTP Proxy support, well the SOCKS at least.
83    SILC currently supports SOCKS4 and SOCKS5 but it needs to be compiled
84    in separately.
85
86  o bool -> SilcBool (***DONE)
87
88  o Silc FD Stream to WIN32 (lib/silcutil/silcfdstream.h)
89
90
91 lib/silcutil/silcbuffer.h       ****DONE****
92 =========================
93
94  o Remove the `truelen' field from SilcBuffer as it is entirely
95    redundant since we can get the true length of the buffer by
96    doing buffer->end - buffer->header.  Add silc_buffer_truelen
97    macro instead.  Consider also removing `len' field too since
98    it effectively is buffer->tail - buffer->data, and adding
99    silc_buffer_len macro can do the same.  These would save
100    totally 8 bytes of memory per buffer. (***DONE)
101
102
103 lib/silcutil/silcbuffmt.[ch]    ****PARTLY DONE****
104 ============================
105
106  o SilcStack aware silc_buffer_unformat
107
108  o SilcStack aware silc_buffer_format (***DONE)
109
110  o silc_buffer_format reallocates automatically (***DONE)
111
112  o SILC_STR_OFFSET (***DONE)
113
114
115 lib/silcutil/silcstack.[ch]     ****DONE****
116 ===========================
117
118  o Data stack implementation (***DONE)
119
120
121 lib/silcutil/silcstream.[ch]    ****DONE****
122 ============================
123
124  o Add abstract SilcStream. (***DONE)
125
126
127 lib/silcutil/silcsocketstream.[ch]      ****PARTY DONE****
128 ==================================
129
130  o Add SilcSocketStream (***DONE)
131
132  o Add SilcSocketStream for WIN32
133
134  o Test QoS after the changes made to socket stream
135
136
137 lib/silcutil/silcschedule*.[ch]         ****DONE****
138 ===============================
139
140  o Scheduler can be optimized for FD tasks by changing the fd_queue
141    to SilcHashTable instead of using linked list.  We need to do
142    one-to-one mapping of FD to task and hash table is more efficient
143    for this usage.
144
145    Also redefine the silc_select to perhaps return a separate
146    structure of the events that actually occurred, instead of
147    returning the events in the fd_list which is then traversed
148    in the generic code to find the changed events.  This can be
149    made faster by having own struct which includes only the
150    changed events, thus the tarversing is faster since the whole
151    fd_list is not traversed anymore (it is still traversed in the
152    silc_select but at least it removes one extra tarversing later
153    for the same list).
154
155    Other task queues should be changed to use SilcList.  (***DONE)
156
157  o Add SILC scheduler's internal routines into a table of implementation
158    function pointers, that the generic code then takes as extern from
159    implementation.  These are the silc_schedule_internal_* routines.
160    (***DONE)
161
162  o Change SILC_TASK_CALLBACK to non-static, and remove the macro
163    SILC_TASK_CALLBACK_GLOBAL. (***DONE)
164
165  o SILC Schedule API changes to WIN32.
166
167
168 lib/silcutil/silcasync.[ch]     ****DONE****
169 ===========================
170
171  o Add SilcAsyncOperation to utility library.  Any function that takes
172    callback as an argument must/should return SilcAsyncOperation.
173    (***DONE)
174
175
176 lib/silcutil/silctime.[ch]      ****DONE****
177 ===========================
178
179  o SilcTime. (***DONE)
180
181  o system time, universal, generalized. (***DONE)
182
183
184 lib/silcutil/silcfsm.[ch]       ****DONE****
185 =========================
186
187  o SILC Finite State Machine API.  Replaces SILC Protocol API (***DONE)
188
189
190 lib/silcutil/silcnet*, lib/silcutil/*/silc*net*         ****PARTLY DONE****
191 ===============================================
192
193  o Add UDP interface (***DONE)
194
195  o Add UDP interface for WIN32
196
197  o New network interfaces (***DONE)
198
199
200 lib/silcsftp
201 ============
202
203  o Porting to use the new util library.
204
205
206 lib/silcutil/epoc/*
207 ===================
208
209   o lib/silcutil/epoc routines missing or not completed.
210
211   o The PKCS#1 also calls global RNG (even though it is not used
212     currently in SILC, the interface allows its use).
213
214   o Something needs to be thought to the logging globals as well,
215     like silc_debug etc.  They won't work on EPOC.  Perhaps logging
216     and debugging is to be disabled on EPOC.
217
218
219 lib/silcmath
220 ============
221
222  o Import TFM.  Talk to Tom to add the missing functions.  Use TFM in
223    client and client library, but TMA in server, due to the significantly
224    increased memory consumption with TFM, and the rare need for public
225    key operations in server.
226
227  o The SILC MP API function must start returning indication of success
228    and failure of the operation.
229
230  o Do SilcStack support for silc_mp_init, silc_mp_init_size and other
231    any other MP function (including utility ones) that may allocate
232    memory.
233
234  o All utility functions should be made non-allocating ones.
235
236
237 lib/silcasn1                    ****PARTLY DONE****
238 ============
239
240  o ASN.1 library (***DONE)
241
242  o Header documentation missing. (***DONE)
243
244  o Some string encodings missing (copy/paste matter). (***DONE)
245
246  o Negative integer encoding
247
248
249 lib/silcpkix
250 ============
251
252  o PKIX implementation
253
254
255 lib/silcserver
256 ==============
257
258  o (Re)write commands/command replys.
259
260  o (Re)write notify handling.
261
262  o The SERVER_SIGNOFF notify handing is not optimal, because it'll
263    cause sending of multiple SIGNOFF notify's instead of the one
264    SERVER_SIGNOFF notify that the server received.  This should be
265    optimized so that the only SERVER_SIGNOFF is sent and not
266    SIGNOFF of notify at all (using SIGNOFF takes the idea about
267    SERVER_SIGNOFF away entirely).
268
269  o Another SERVER_SIGNOFF opt/bugfix:  Currently the signoff is
270    sent to a client if it is on same channel as the client that
271    signoffed.  However, the entire SERVER_SIGNOFF list is sent to
272    the client, ie. it may receive clients that was not on the
273    same channel.  This is actually against the specs.  It must be
274    done per channel.  It shouldn't receive the whole list just
275    because one client happened to be on same channel.
276
277  o MAYBE: The SilcChannelClientEntry can be:
278         SilcUInt32 address;
279         SilcUInt32 mode;
280
281   where address is SilcClientEntry address XOR SilcChannelEntry.
282   You can get SilcClientEntry by doing client = chl->address XOR channel,
283   and SilcChannelEntry by doing channel = chl->address XOR client.
284   As long as the other pointer is always available when accessing the
285   structure this can be done.
286
287  o Add reference counters to all Silc*Entry structures
288
289  o SERVICEs support (plugin, SIM)
290
291  o If client's public key is saved in the server (and doing public key
292    authentication) then the hostname and the username information could
293    be taken from the public key.  Should be a configuration option!
294
295  o Add a timeout to handling incoming JOIN commands.  It should be
296    enforced that JOIN command is executed only once in a second or two
297    seconds.  Now it is possible to accept n incoming JOIN commands
298    and process them without any timeouts.  THis must be employed because
299    each JOIN command will create and distribute the new channel key
300    to everybody on the channel (Fix this to 0.9.x).
301
302  o Related to above.  If multiple JOINs are received in sequence perhaps
303    new key should be created only once, if the JOINs are handeled at the same
304    time.  Now we create multiple keys and never end up using them because
305    many JOINs are processed at the same time in sequence.  Only the last
306    key ends up being used.
307
308  o The CMODE cipher & hmac change problem (#101).
309
310
311 lib/silcclient
312 ==============
313
314  o Some form of rewrite to make it more efficient.
315
316  o Clear up interfaces.
317
318  o Remove silc_client_run and silc_client_run_one from calling SilcSchedule.
319    Leave the scheduling entirely to application.