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