X-Git-Url: http://git.silcnet.org/gitweb/?p=runtime.git;a=blobdiff_plain;f=TODO;h=e7693efc7bf6f951fa6c0fa8b2c023527a5e1a94;hp=9ba10bf8824c352002cfba86e9dd3e100254026b;hb=HEAD;hpb=de6c9a896a7acc055261dbf5351b6f4eff60b364 diff --git a/TODO b/TODO index 9ba10bf8..e7693efc 100644 --- a/TODO +++ b/TODO @@ -1,322 +1,161 @@ -TODO for 1.1 -============ +SILC Runtime Toolkit 1.2 and beyond +=================================== NOTE: Any item that doesn't have (***DONE) in it, isn't done yet. The (***TESTING NEEDED) means that the item has been done but not yet properly tested. +NOTE: A TODO entry does not mean that it is ever going to be done. Some +of the entries may be just ideas, good, bad or ugly. If you want to work +on some of the TODO entries simply let us know about it by dropping a note +to silc-devel mailing list or appear on 'silc' channel on SILCNet. -apps/silcd, The SILC Server ****PARTLY DONE**** -=========================== - o Port all code to use SILC Toolkit 1.1 APIs. +Runtime library, lib/silcutil/ +============================== - o Fix/test GETKEY. + o Add SILC Zip API, compression. - o Fix/test MOTD. + o file removing, chmod, rmmod, etc. chdir, rmdir, stat, etc. to + lib/silcutil/silcfileutil.h. - o Remove protocol.[ch]. (***DONE) + o mmap API - o Rewrite connecting accepting. (***TESTING NEEDED) + o Multicast support. - o Rewrite async connecting. (***TESTING NEEDED) + o Implement silc_get_num_cpu. - o Connecting from SILC router to SILC server. + o silc_file_readfile and silc_file_writefile should perhaps do the thing + with mmap, as it's probably a bit faster. - o Rewrite rehash, HUP. + o silc_malloc et. al. to respect --with-alignment. - o Heartbeat-keepalive. + o Fix universal time decoding (doesn't accept all formats) in silctime.c. - o Test backup router resuming protocol. + o Additional scheduler changes: optimize silc_schedule_wakeup. Wakeup + only if the scheduler is actually waiting something. If it is + delivering tasks wakeup is not needed. - o Check all packet receive routines that they call silc_packet_free. + o silc_stringprep to non-allocating version. - o Add Web statistics module using lib/silchttp. Give out server - statistics. (***DONE) + o Add builtin SOCKS and HTTP Proxy support, well the SOCKS at least. + SILC currently supports SOCKS4 and SOCKS5 but it needs to be compiled + in separately. + o Add silc_xml_parse_stream to parse SilcStream XML stream. -SILC Client ****PARTLY DONE**** -=========== + o SILC XML API (wrapper to expat). (***DONE) - o Porting to new Toolkit API and new Client Library API (***TESTING NEEDED) + o Bring silchttp HTTP server library to SRT. (***DONE) - o Improve help files, especially /cmode, /cumode and /key. + o Simple SILC Rand API for pseudo-random numbers. (***DONE) + o Add directory opening/traversing functions (***DONE, TODO Windows & Symbian) -lib/silcclient, The Client Library ***PARTLY DONE**** -================================== + o regex from /lib/contrib to lib/silcutil, define SILC Regex API. (***DONE) - o silcclient.h clean up and API rewrites. + o Add functions to manipulate environment variables. (***DONE) - o silcclient_entry.h finishing, all entry relates APIs to this header. + o Add functions to loading shared/dynamic object symbols (replaces the + SIM library (lib/silcsim) and introduces generic library). Add this + to lib/silcutil/silcdll.[ch]. (***TESTING NEEDED WIN32, TODO Symbian) - o SilcChannelEntry, SilcServerEntry, SilcChannelUser, allocating, - freeing, finding, etc. rewrite. Also making them reference counted for - multi threads use. (***DONE) + o silc_getopt routines (***DONE) - o Rewrite silc_client_get_clients_by_channel. + o The SILC Event signals. Asynchronous events that can be created, + connected to and signalled. Either own event routines or glued into + SilcSchedule. (***DONE) - o Rewrite client side WHOIS command (for whois -details). (***DONE) + o If the event signals are added, the SILC_PARAM_* stuff needs to be + moved from silcbuffmt.h to silctypes.h or something similar. (***DONE) - o Finish all the missing SILC packet processings, rewrites. (***DONE) + o In case the SILC Events are done we shall create a new concept of + parent and child SilcSchedule's. When new SilcSchedule is created a + parent can be associated to it. This association could be done either + directly by the parent or by any other children. This way the signals + would in effect be global and would reach all children schedulers. - o The client_notify.c rewrite. (***DONE) - - o Resuming to client_register.c (remove client_resume.c) (***DONE) - - o Rekey rewrite. (***DONE) - - o Remove protocol.[ch]. (***DONE) - - o File transfer rewrite. (***DONE) - - o File transfer API documentation. - - o Connection auth request. (***DONE) - - o Password auth test, public key auth test. - - o Starting key exchange directly, rewrite. (***DONE) - - o Channel messages, channel private keys, channel entires, channel - search, etc. rewrite. (***TESTING NEEDED) - - o For many APIs leave the hash context allocations to the caller instead - of using client->sha1hash and client->md5hash, or some kind of thread - safe (no locking) concept. (***DONE) - - o Key agreement rewrite. (***TESTING NEEDED) - - o Connecting to remote client (***DONE) - - o Private message waiting API (in threads) (***TESING NEEDED) - - o client_attrs.c, attributes rewrite. (***TESTING NEEDED) - - o No SilcBuffer lists back to application in command_reply operations. - Convert them all to real lists and/or structures for easier use. - (***DONE) - - o Nickname formatting rewrite. (***TESTING NEEDED) - - o UDP connections. (***TESTING NEEDED) - - -lib/silcsftp ****DONE**** -============ - - o Porting to use the new util library. (***DONE) - - -lib/silccore/silcpacket.[ch] ****PARTLY DONE**** -============================ - - o SilcPacketEngine. (***DONE) - - o New SILC Packet API. (***DONE) - - o Implement silc_packet_engine_stop and silc_packet_stream_destroy. (***DONE) - - o IV Included flag support, UDP transport support (***TESTING NEEDED) - - -lib/silccore/silcid.[ch] ****DONE**** -======================== - - o Add silc_id_str2id to accept the destination buffer as argument - and thus not require any memory allocation. Same will happen - with silc_id_payload_* functions. (***DONE) - - o silc_id_str2id, silc_id2str to non-allocating routines. (***DONE) - - -lib/silcskr ****PARTLY DONE**** -=========== - - o Removing key from the repository is not possible currently. It should - be. (***DONE) - - -lib/silcske/silcske.[ch] ***PARTLY DONE**** -======================== - - o Responder rekey (***TESTING NEEDED) - - o IV Included flag support in SKE (***DONE) - - o UDP transport changes; retransmission support by using exponential - backoff algorithm. (***DONE) - - o SilcConnAuth header file documentation. (***DONE) - - -lib/silccrypt ****PARTLY DONE**** -============= - - o Implement PKCS #1 sign/verify with hash OID. (***TESTING NEEDED) - - o Implement SILC Public Key Version 2 handling in sign/verify. Implement - Version (V) identifier (***DONE) - - o SILC PKCS (silcpkcs.h) reorganizing when other PK supports added. - Move the SILC Public Key routines away from the crypto library into - the core library (silccore). silc_pkcs_public/private_key_* routines - to silc_public/private_key_* routines. The silc_public_key_* routines - should also automatically handle SILC Public Keys, and other keys - and certificates as well. Add fe. silcpk.h into silccore. It should - also include the Public Key Payload encoding and decoding routines. + This relationship would be associative only. The schedulers are still + independent and run independently from each other. All schedulers + would be linked and could be accessed from any of the schedulers. + It should be possible to retrieve the parent and enumerate all children + from any of the schedulers. (***DONE) - o Assembler AES (***DONE) - - -lib/silcutil ****PARTLY DONE**** -============ - - o The regex code from lib/contrib might compile fine on all platforms. - No need to make it silcutil/unix/ specific. Add them to generic - silcutil.c. (***TESTNG NEEDED) - - o Silc FD Stream to WIN32 (lib/silcutil/silcfdstream.h) (***TESTING NEEDED) - - o bool -> SilcBool (***DONE) - - -lib/silcutil/silcbuffer.h ****DONE**** -========================= - - o Remove the `truelen' field from SilcBuffer as it is entirely - redundant since we can get the true length of the buffer by - doing buffer->end - buffer->header. Add silc_buffer_truelen - macro instead. Consider also removing `len' field too since - it effectively is buffer->tail - buffer->data, and adding - silc_buffer_len macro can do the same. These would save - totally 8 bytes of memory per buffer. (***DONE) - - -lib/silcutil/silcbuffmt.[ch] ****DONE**** -============================ - - o SilcStack aware silc_buffer_unformat (***DONE) - - o SilcStack aware silc_buffer_format (***DONE) - - o silc_buffer_format reallocates automatically (***DONE) - - o SILC_STR_OFFSET (***DONE) - - -lib/silcutil/silcstack.[ch] ****DONE**** -=========================== - - o Data stack implementation (***DONE) + o Base64 to an own API (***DONE) + o Timer API (***DONE) -lib/silcutil/silcstream.[ch] ****DONE**** -============================ + o silc_hash_table_replace -> silc_hash_table_set. Retain support for + silc_hash_table_replace as macro. (***DONE) - o Add abstract SilcStream. (***DONE) + o SilcStack aware SilcHashTable. (***DONE) + o SilcStack aware SilcDList. (***DONE) -lib/silcutil/silcsocketstream.[ch] ****PARTY DONE**** -================================== + o Thread pool API. Add this to lib/silcutil/silcthread.[ch]. (***DONE) - o Add SilcSocketStream (***DONE) + o Add new functions to SilcStack API in lib/silcutil/silcstack.[ch]. Add + silc_stack_[set|get]_alignment. It defines the default alignment used + when allocating memory from stack. It can be used to specify special + alignments too when needed (such as for hardware devices like crypto + accelerators). Move also the low level silc_stack_malloc and + silc_stack_realloc from silcstack_i.h to silcstack.h. Remove the + _ua unaligned memory allocation routines. Remove unaligned memory + allocation possibility. (***DONE) - o Add SilcSocketStream for WIN32 (***TESTING NEEDED) + o silc_stack_alloc shouldn't require multiple by 8 size argument, it + should figure it out itself. (***DONE) - o Test QoS after the changes made to socket stream - - -lib/silcutil/silcschedule*.[ch] ****PARTLY DONE**** -=============================== - - o Scheduler can be optimized for FD tasks by changing the fd_queue - to SilcHashTable instead of using linked list. We need to do - one-to-one mapping of FD to task and hash table is more efficient - for this usage. - - Also redefine the silc_select to perhaps return a separate - structure of the events that actually occurred, instead of - returning the events in the fd_list which is then traversed - in the generic code to find the changed events. This can be - made faster by having own struct which includes only the - changed events, thus the tarversing is faster since the whole - fd_list is not traversed anymore (it is still traversed in the - silc_select but at least it removes one extra tarversing later - for the same list). - - Other task queues should be changed to use SilcList. (***DONE) - - o Add SILC scheduler's internal routines into a table of implementation - function pointers, that the generic code then takes as extern from - implementation. These are the silc_schedule_internal_* routines. + o Add '%@' format to silc_snprintf functions. (***DONE) - o Change SILC_TASK_CALLBACK to non-static, and remove the macro - SILC_TASK_CALLBACK_GLOBAL. (***DONE) - - o SILC Schedule API changes to WIN32. (***TESTING NEEDED) - - -lib/silcutil/silcasync.[ch] ****DONE**** -=========================== - - o Add SilcAsyncOperation to utility library. Any function that takes - callback as an argument must/should return SilcAsyncOperation. + o SILC Tls (Thread-local storage) API to lib/silcutil/silcthread.[ch]. (***DONE) + o Change silc_gettimeofday on Unix to use clock_gettime with REALTIME + clock if it is available, otherwise use gettimeofday(). (***DONE) -lib/silcutil/silctime.[ch] ****DONE**** -=========================== - - o SilcTime. (***DONE) - - o system time, universal, generalized. (***DONE) - - -lib/silcutil/silcfsm.[ch] ****DONE**** -========================= - - o SILC Finite State Machine API. Replaces SILC Protocol API (***DONE) - - -lib/silcutil/silcnet*, lib/silcutil/*/silc*net* ****PARTLY DONE**** -=============================================== - - o Add UDP interface (***DONE) - - o Add UDP interface for WIN32 (***TESTING NEEDED) - - o New network interfaces (***DONE) + o Generic SilcResult that includes all possible status and + error conditions and generic errno API. (***DONE) + (o Structured log messages to Log API. Allows machine readable log + messages. Would allow sending of any kind of data in a log message.) maybe -lib/silcmath ****PARTLY DONE**** -============ + (o Change some stream routines (like socket stream API) to accept ANY + stream and use silc_stream_get_root to get the socket stream from the + given stream. This will make various stream APIs more easier to use + when user doesn't have to dig up the correct stream. - o Test on x86_64. + Add silc_stream_get_root and add get_root stream operation. It + returns the root of the stream or NULL if stream doesn't have root.) maybe - o Change LTM and TFM function names when importing to SILC tree to avoid - rare linking problems on system that has same named symbols already in - the system. (***DONE) + (o SilcIpAddr abstraction. Ipv4 and Ipv6 support to the abstaction.) + maybe + (o SILC specific socket creation/closing routines to silcnet.h, wrappers + to all send(), recv(), sendto() etc. Bad thing is that we'd have to + define all socket options, sockaddrs, etc.) maybe -lib/silcutil/symbian/ ****PARTLY DONE**** -===================== + (o Fast mutex implementation. Fast rwlock implementation. Mutex and + rwlock implementation using atomic operations.) not for now. - o lib/silcutil/symbian routines missing or not completed. - (****TESTING NEEDED) - o Something needs to be thought to the logging globals as well, - like silc_debug etc. They won't work on EPOC. Perhaps logging - and debugging is to be disabled on EPOC. +Windows Support +=============== -lib/silcasn1 ****PARTLY DONE**** -============ +Symbian OS Support +================== - o ASN.1 library (***DONE) + o Something needs to be thought to the logging globals as well, + like silc_debug etc. They won't work on EPOC. Perhaps logging + and debugging is to be disabled on EPOC. The logging currently works + by it cannot be controlled, same with debugging. SILC Global API + MUST be used with all globals on Symbian. - o Header documentation missing. (***DONE) + o gethostname() returns "Function not implemented". Others may return + the same. We should fix that probably to use RHostResolver and + GetHostName(). - o Some string encodings missing (copy/paste matter). (***DONE) + o silc_thread_exit should call User::Exit().