2003-06-06 Marcus Brinkmann <marcus@g10code.de>
[gpgme.git] / TODO
1 Hey Emacs, this is -*- outline -*- mode!
2
3 * Before release:
4 ** Change gpgme_invalid_user_id_t to gpgme_invalid_key_t.
5 ** gpgme-config must include info about libgpg-error.
6
7 * ABI's to break:
8 ** Compatibility interfaces that can be removed in future versions:
9 *** gpgme_data_new_from_filepart
10 *** gpgme_data_new_from_file
11 *** gpgme_data_new_with_read_cb
12 *** gpgme_data_rewind
13 *** gpgme_op_import_ext
14 *** gpgme_get_sig_key
15 *** gpgme_get_sig_ulong_attr
16 *** gpgme_get_sig_string_attr
17 *** GPGME_SIG_STAT_*
18 *** gpgme_get_sig_status
19 *** gpgme_trust_item_release
20 *** gpgme_trust_item_get_string_attr
21 *** gpgme_trust_item_get_ulong_attr
22 *** gpgme_attr_t
23 *** All Gpgme* typedefs.
24
25 * Thread support:
26 ** Build thread modules for static linking (which just suck in the
27    desired symbols the hard way). !!
28 ** Ordering the libs is important, but libtool gets it wrong.  Argh.
29
30 * New features:
31 ** notification system
32    We need a simple notification system, probably a simple callback
33    with a string and some optional arguments.  This is for example
34    required to notify an application of a changed smartcard,  The
35    application can then do whatever is required.  There are other
36    usages too.  This notfication system should be independent of any
37    contextes of course.
38 ** --learn-code support
39    This might be integrated with import. we still need to work out how
40    to learn a card when gpg and gpgsm have support for smartcards.
41 ** set_locale for thread safe and env independent locale selection.
42 ** How to terminate a pending operation?  Something like gpgme_op_reset,
43    but where are you allowed to call it (think callback handlers).
44    Then gpgme_op_*list_end can go.
45 ** Might need a stat() for data objects and use it for length param to gpg.
46 ** Allow to export secret keys.
47 ** Implement support for photo ids.
48 ** New features requested by our dear users, but rejected or left for
49    later consideration:
50 *** Selecting the key ring, setting the version or comment in output.
51     Rejected because the naive implementation is engine specific, the
52     configuration is part of the engine's configuration or readily
53     worked around in a different way
54 *** Selecting the symmetric cipher.
55 *** Exchanging keys with key servers.
56
57 * Documentation
58 ** Document validity and trust issues.
59
60 * Engines
61 ** Do not create/destroy engines, but create engine and then reset it.
62    Internally the reset operation still spawns a new engine process,
63    but this can be replaced with a reset later.  Also, be very sure to
64    release everything properly at a reset and at an error.  Think hard
65    about where to guarantee what (ie, what happens if start fails, are
66    the fds unregistered immediately - i think so?)
67 ** Optimize the case where a data object has an underlying fd we can pass
68    directly to the engine.
69 ** Move code common to all engines up from gpg to engine.
70 ** engine operations can return General Error on unknown protocol
71    (it's an internal error, as select_protocol checks already).
72 ** When server mode is implemented properly, more care has to be taken to
73    release all resources on error (for example to free assuan_cmd).
74
75 * Operations
76 ** If no passphrase cb is installed, status handler is not run even if
77    password is required by crypto engine. !!
78 ** Export status handler need much more work. !!!
79 ** Import should return a useful error when one happened.
80 *** Import does not take notice of NODATA status report.
81 *** When GPGSM does issue IMPORT_OK status reports, make sure to check for them
82     in tests/gpgs m/t-import.c.
83 ** Genkey should return something more useful than General_Error.
84 ** Factor out common code in _op_*_start functions.
85 ** Optimize the file descriptor list, so the number of open fds is
86    always known easily.
87 ** Encryption: It should be verified that the behaviour for partially untrusted
88    recipients is correct.
89 ** When GPG issues INV_something for invalid signers, catch them.
90
91 * Error Values
92 ** Map ASSUAN/GpgSM ERR error values in a better way than is done now. !!
93 ** Some error values should identify the source more correctly (mostly error
94    values derived from status messages).
95
96 * Tests
97 ** Write a fake gpg-agent so that we can supply known passphrases to
98    gpgsm and setup the configuration files to use the agent.  Without
99    this we are testing a currently running gpg-agent which is not a
100    clever idea. !
101 ** t-data
102 *** Test gpgme_data_release_and_get_mem.
103 *** Test gpgme_data_seek for invalid types.
104
105 * Debug
106 ** Handle malloc and vasprintf errors.  But decide first if they should be
107    ignored (and logged with 255?!), or really be assertions. !
108
109 * Build suite
110 ** Make sure everything is cleaned correctly (esp. test area).