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