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