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