04bec543d4db7b57989997745c54d3fe68b8b1ef
[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 there and in gpg/t-import.
6 ** Add notation data to key signatures.
7
8 * ABI's to break:
9 ** I/O and User Data could be made extensible.  But this can be done
10    without breaking the ABI hopefully.
11 *  All enums that should be enums need to have a maximum value to ensure
12    a certain minimum width for extensibility.
13 ** Compatibility interfaces that can be removed in future versions:
14 *** ath compatibility modules.
15 *** gpgme_data_new_from_filepart
16 *** gpgme_data_new_from_file
17 *** gpgme_data_new_with_read_cb
18 *** gpgme_data_rewind
19 *** gpgme_op_import_ext
20 *** gpgme_get_sig_key
21 *** gpgme_get_sig_ulong_attr
22 *** gpgme_get_sig_string_attr
23 *** GPGME_SIG_STAT_*
24 *** gpgme_get_sig_status
25 *** gpgme_trust_item_release
26 *** gpgme_trust_item_get_string_attr
27 *** gpgme_trust_item_get_ulong_attr
28 *** gpgme_attr_t
29 *** All Gpgme* typedefs.
30
31
32 * Thread support:
33 ** When GNU Pth supports sendmsg/recvmsg, wrap them properly.
34 ** Without timegm (3) support our ISO time parser is not thread safe.
35    There is a configure time warning, though.
36
37 * New features:
38 ** notification system
39    We need a simple notification system, probably a simple callback
40    with a string and some optional arguments.  This is for example
41    required to notify an application of a changed smartcard, The
42    application can then do whatever is required.  There are other
43    usages too.  This notfication system should be independent of any
44    contextes of course.
45 ** --learn-code support
46    This might be integrated with import. we still need to work out how
47    to learn a card when gpg and gpgsm have support for smartcards.
48 ** Might need a stat() for data objects and use it for length param to gpg.
49 ** Allow to export secret keys.
50 ** Implement support for photo ids.
51 ** New features requested by our dear users, but rejected or left for
52    later consideration:
53 *** Selecting the key ring, setting the version or comment in output.
54     Rejected because the naive implementation is engine specific, the
55     configuration is part of the engine's configuration or readily
56     worked around in a different way
57 *** Selecting the symmetric cipher.
58 *** Exchanging keys with key servers.
59 ** Allow selection of subkeys
60 ** Allow to return time stamps in ISO format
61   This allows us to handle years later than 2037 properly.  With the
62   time_t interface they are all mapped to 2037-12-31
63
64 * Documentation
65 ** Document validity and trust issues.
66
67 * Engines
68 ** Do not create/destroy engines, but create engine and then reset it.
69    Internally the reset operation still spawns a new engine process,
70    but this can be replaced with a reset later.  Also, be very sure to
71    release everything properly at a reset and at an error.  Think hard
72    about where to guarantee what (ie, what happens if start fails, are
73    the fds unregistered immediately - i think so?)
74 ** Optimize the case where a data object has an underlying fd we can pass
75    directly to the engine.  This will be automatic with socket I/O and
76    descriptor passing.
77 ** Move code common to all engines up from gpg to engine.
78 ** engine operations can return General Error on unknown protocol
79    (it's an internal error, as select_protocol checks already).
80 ** When server mode is implemented properly, more care has to be taken to
81    release all resources on error (for example to free assuan_cmd).
82
83 * Operations
84 ** If an operation failed, make sure that the result functions don't return
85    corrupt partial information. !!!
86    NOTE: The EOF status handler is not called in this case !!!
87 ** Verify must not fail on NODATA premature if auto-key-retrieval failed.
88    It should not fail silently if it knows there is an error. !!!
89 ** All operations: Better error reporting. !!
90 ** Export status handler need much more work. !!!
91 ** Import should return a useful error when one happened.
92 *** Import does not take notice of NODATA status report.
93 *** When GPGSM does issue IMPORT_OK status reports, make sure to check for
94     them in tests/gpgs m/t-import.c.
95 ** Verify can include info about version/algo/class, but currently
96    this is only available for gpg, not gpgsm.
97 ** Return ENC_TO output in verify result.  Again, this is not available
98    for gpgsm.
99 ** Genkey should return something more useful than General_Error.
100 ** Decrypt:
101    On Fri, Jun 27, 2003 at 06:28:23PM +0200, Heiko Abraham wrote:
102    > I have a cipher text and I use 'gpgme_op_decrypt_verify(..)'
103    > for decrypt and get the plaintext. But also I wish a list
104    > of all reciepient, that can also decrypt this file.
105    >
106    > If I store the file and check it with 'gpg --list-packets ${filename}'
107    > then I will become also a recipient-list.
108    > It this also possible with gpgme?
109
110    Currently not, but it is easy to add this to GPGME 0.4.1.  At least the key
111    ID and a user ID hint is available from gpg (of course key IDs are not
112    necessarily unique!).  I will put it on the TODO list.
113 ** If possible, use --file-setsize to set the file size for proper progress
114    callback handling.  Write data interface for file size.
115 ** Optimize the file descriptor list, so the number of open fds is
116    always known easily.
117 ** Encryption: It should be verified that the behaviour for partially untrusted
118    recipients is correct.
119 ** When GPG issues INV_something for invalid signers, catch them.
120
121 * Error Values
122 ** Map ASSUAN/GpgSM ERR error values in a better way than is done now. !!
123 ** Some error values should identify the source more correctly (mostly error
124    values derived from status messages).
125
126 * Tests
127 ** Write a fake gpg-agent so that we can supply known passphrases to
128    gpgsm and setup the configuration files to use the agent.  Without
129    this we are testing a currently running gpg-agent which is not a
130    clever idea. !
131 ** t-data
132 *** Test gpgme_data_release_and_get_mem.
133 *** Test gpgme_data_seek for invalid types.
134 ** t-keylist
135    Write a test for ext_keylist.
136
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 ** Enable AC_CONFIG_MACRO_DIR and bump up autoconf version requirement.
145    (To fix "./autogen.sh; ./configure --enable-maintainer-mode; touch
146    configure.ac; make").  Currently worked around with ACLOCAL_AMFLAGS???
147
148 * Error checking 
149 ** engine-gpgsm, with-validation
150    Add error checking some time after releasing a new gpgsm.
151
152
153 Copyright 2004 g10 Code GmbH
154
155 This file is free software; as a special exception the author gives
156 unlimited permission to copy and/or distribute it, with or without
157 modifications, as long as this notice is preserved.
158
159 This file is distributed in the hope that it will be useful, but
160 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
161 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
162 PURPOSE.