1 TODO for 1.1 And Beyond
2 =======================
4 lib/silccrypt ****PARTLY DONE****
7 o Implement the defined SilcDH API. The definition is in
8 lib/silccrypt/silcdh.h.
10 o SSH2 public keys support, allowing the use of SSH2 public keys in
13 o OpenPGP certificate support, allowing the use of PGP public keys
16 o SILC PKCS (silcpkcs.h) reorganizing when other PK supports added.
17 Move the SILC Public Key routines away from the crypto library into
18 the core library (silccore). silc_pkcs_public/private_key_* routines
19 to silc_public/private_key_* routines. The silc_public_key_* routines
20 should also automatically handle SILC Public Keys, and other keys
21 and certificates as well. Add fe. silcpk.h into silccore. It should
22 also include the Public Key Payload encoding and decoding routines.
26 o Cipher optimizations (asm, that this) at least for i386 would be nice.
31 lib/silccore/silcpacket.[ch] ****DONE****
32 ============================
36 o New SILC Packet API.
39 lib/silccore/silcpacket.[ch]
40 ============================
42 o IV Included flag support, UDP transport support
45 lib/silccore/silcid.[ch] ****DONE****
46 ========================
48 o Add silc_id_str2id to accept the destination buffer as argument
49 and thus not require any memory allocation. Same will happen
50 with silc_id_payload_* functions.
52 o silc_id_str2id, silc_id2str to non-allocating routines.
58 o All payload encoding routines should take SilcStack as argument.
61 lib/silcutil ****PARTLY DONE****
64 o Compression routines are missing. The protocol supports packet
65 compression thus it must be implemented. SILC Zip API must be
68 o Add builtin SOCKS and HTTP Proxy support, well the SOCKS at least.
69 SILC currently supports SOCKS4 and SOCKS5 but it needs to be compiled
76 #define SilcBit(b) unsigned int b : 1
79 lib/silcutil/silcbuffer.h ****DONE****
80 =========================
82 o Remove the `truelen' field from SilcBuffer as it is entirely
83 redundant since we can get the true length of the buffer by
84 doing buffer->end - buffer->header. Add silc_buffer_truelen
85 macro instead. Consider also removing `len' field too since
86 it effectively is buffer->tail - buffer->data, and adding
87 silc_buffer_len macro can do the same. These would save
88 totally 8 bytes of memory per buffer.
91 lib/silcutil/silcbuffmt.[ch] ****PARTY DONE****
92 ============================
94 o SILC_STR_APPEND, _APPEND_TAIL.
99 lib/silcutil/silcstack.[ch] ****DONE****
100 ===========================
102 o Data stack implementation
105 lib/silcutil/silcstream.[ch] ****DONE****
106 ============================
108 o Add abstract SilcStream.
111 lib/silcutil/silcsocketstream.[ch] ****PARTY DONE****
112 ==================================
114 o Add SilcSocketStream.
122 o lib/silcutil/epoc routines missing or not completed.
124 o The PKCS#1 also calls global RNG (even though it is not used
125 currently in SILC, the interface allows its use).
127 o Something needs to be thought to the logging globals as well,
128 like silc_debug etc. They won't work on EPOC. Perhaps logging
129 and debugging is to be disabled on EPOC.
132 lib/silcutil/silcschedule*.[ch] ****DONE****
133 ===============================
135 o Scheduler can be optimized for FD tasks by changing the fd_queue
136 to SilcHashTable instead of using linked list. We need to do
137 one-to-one mapping of FD to task and hash table is more efficient
140 Also redefine the silc_select to perhaps return a separate
141 structure of the events that actually occurred, instead of
142 returning the events in the fd_list which is then traversed
143 in the generic code to find the changed events. This can be
144 made faster by having own struct which includes only the
145 changed events, thus the tarversing is faster since the whole
146 fd_list is not traversed anymore (it is still traversed in the
147 silc_select but at least it removes one extra tarversing later
150 Other task queues should be changed to use SilcList.
152 o Add SILC scheduler's internal routines into a table of implementation
153 function pointers, that the generic code then takes as extern from
154 implementation. These are the silc_schedule_internal_* routines.
156 o Change SILC_TASK_CALLBACK to non-static, and remove the macro
157 SILC_TASK_CALLBACK_GLOBAL.
160 lib/silcutil/silcasync.[ch] ****DONE****
161 ===========================
163 o Add SilcAsyncOperation to utility library. Any function that takes
164 callback as an argument must/should return SilcAsyncOperation.
167 lib/silcutil/silctime.[ch] ****DONE****
168 ===========================
172 o system time, universal, generalized.
178 o Import TFM. Talk to Tom to add the missing functions. Use TFM in
179 client and client library, but TMA in server, due to the significantly
180 increased memory consumption with TFM, and the rare need for public
181 key operations in server.
183 o The SILC MP API function must start returning indication of success
184 and failure of the operation.
186 o Do SilcStack support for silc_mp_init, silc_mp_init_size and other
187 any other MP function (including utility ones) that may allocate
190 o All utility functions should be made non-allocating ones.
193 lib/silcasn1 ****PARTLY DONE****
198 o Header documentation missing.
200 o Some string encodings missing (copy/paste matter).
206 o PKIX implementation
209 lib/silcutil/silcfsm.[ch] ****DONE****
210 =========================
212 o SILC Finite State Machine API. Replaces SILC Protocol API,
215 lib/silcutil/silcnet*, lib/silcutil/*/silc*net* ****PARTLY DONE****
216 ===============================================
220 o New network interfaces
222 o Other functions should remain as they are since these new functions have
223 to use them. This way we also provide them for applications that want
224 to handle the sockets by themself.
230 o The SERVER_SIGNOFF notify handing is not optimal, because it'll
231 cause sending of multiple SIGNOFF notify's instead of the one
232 SERVER_SIGNOFF notify that the server received. This should be
233 optimized so that the only SERVER_SIGNOFF is sent and not
234 SIGNOFF of notify at all (using SIGNOFF takes the idea about
235 SERVER_SIGNOFF away entirely).
237 o Another SERVER_SIGNOFF opt/bugfix: Currently the signoff is
238 sent to a client if it is on same channel as the client that
239 signoffed. However, the entire SERVER_SIGNOFF list is sent to
240 the client, ie. it may receive clients that was not on the
241 same channel. This is actually against the specs. It must be
242 done per channel. It shouldn't receive the whole list just
243 because one client happened to be on same channel.
245 o MAYBE: The SilcChannelClientEntry can be:
249 where address is SilcClientEntry address XOR SilcChannelEntry.
250 You can get SilcClientEntry by doing client = chl->address XOR channel,
251 and SilcChannelEntry by doing channel = chl->address XOR client.
252 As long as the other pointer is always available when accessing the
253 structure this can be done.
255 o Add reference counters to all Silc*Entry structures
257 o SERVICEs support (plugin, SIM)
259 o If client's public key is saved in the server (and doing public key
260 authentication) then the hostname and the username information could
261 be taken from the public key. Should be a configuration option!
263 o Add a timeout to handling incoming JOIN commands. It should be
264 enforced that JOIN command is executed only once in a second or two
265 seconds. Now it is possible to accept n incoming JOIN commands
266 and process them without any timeouts. THis must be employed because
267 each JOIN command will create and distribute the new channel key
268 to everybody on the channel (Fix this to 0.9.x).
270 o Related to above. If multiple JOINs are received in sequence perhaps
271 new key should be created only once, if the JOINs are handeled at the same
272 time. Now we create multiple keys and never end up using them because
273 many JOINs are processed at the same time in sequence. Only the last
274 key ends up being used.
276 o The CMODE cipher & hmac change problem (#101).