2008-01-10 Marcus Brinkmann <marcus@g10code.de>
[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 ** When gpg supports it, write binary subpackets directly,
7    and parse SUBPACKET status lines.
8
9 * ABI's to break:
10 ** gpgme_edit_cb_t: Add "processed" return argument
11    (see edit.c::command_handler).
12 ** I/O and User Data could be made extensible.  But this can be done
13    without breaking the ABI hopefully.
14 *  All enums that should be enums need to have a maximum value to ensure
15    a certain minimum width for extensibility.
16 ** Compatibility interfaces that can be removed in future versions:
17 *** gpgme_data_new_from_filepart
18 *** gpgme_data_new_from_file
19 *** gpgme_data_new_with_read_cb
20 *** gpgme_data_rewind
21 *** gpgme_op_import_ext
22 *** gpgme_get_sig_key
23 *** gpgme_get_sig_ulong_attr
24 *** gpgme_get_sig_string_attr
25 *** GPGME_SIG_STAT_*
26 *** gpgme_get_sig_status
27 *** gpgme_trust_item_release
28 *** gpgme_trust_item_get_string_attr
29 *** gpgme_trust_item_get_ulong_attr
30 *** gpgme_attr_t
31 *** All Gpgme* typedefs.
32
33
34 * Thread support:
35 ** When GNU Pth supports sendmsg/recvmsg, wrap them properly.
36 ** Without timegm (3) support our ISO time parser is not thread safe.
37    There is a configure time warning, though.
38
39 * New features:
40 ** Extended notation support.  When gpg supports arbitrary binary
41    notation data, provide a user interface for that.
42 ** notification system
43    We need a simple notification system, probably a simple callback
44    with a string and some optional arguments.  This is for example
45    required to notify an application of a changed smartcard, The
46    application can then do whatever is required.  There are other
47    usages too.  This notfication system should be independent of any
48    contextes of course.
49 ** --learn-code support
50    This might be integrated with import. we still need to work out how
51    to learn a card when gpg and gpgsm have support for smartcards.
52 ** Might need a stat() for data objects and use it for length param to gpg.
53 ** Implement support for photo ids.
54 ** Allow selection of subkeys
55 ** Allow to return time stamps in ISO format
56   This allows us to handle years later than 2037 properly.  With the
57   time_t interface they are all mapped to 2037-12-31
58 ** New features requested by our dear users, but rejected or left for
59    later consideration:
60 *** Allow to export secret keys.
61     Rejected because this is conceptually flawed.  Secret keys on a
62     smart card can not be exported, for example.
63 *** Selecting the key ring, setting the version or comment in output.
64     Rejected because the naive implementation is engine specific, the
65     configuration is part of the engine's configuration or readily
66     worked around in a different way
67 *** Selecting the symmetric cipher.
68 *** Exchanging keys with key servers.
69
70 * Documentation
71 ** Document validity and trust issues.
72 ** In gpgme.texi: Register callbacks under the right letter in the index.
73
74 * Engines
75 ** Do not create/destroy engines, but create engine and then reset it.
76    Internally the reset operation still spawns a new engine process,
77    but this can be replaced with a reset later.  Also, be very sure to
78    release everything properly at a reset and at an error.  Think hard
79    about where to guarantee what (ie, what happens if start fails, are
80    the fds unregistered immediately - i think so?)
81    Note that we need support in gpgsm to set include-certs to default
82    as RESET does not reset it.
83 ** Optimize the case where a data object has 0an underlying fd we can pass
84    directly to the engine.  This will be automatic with socket I/O and
85    descriptor passing.
86 ** Move code common to all engines up from gpg to engine.
87 ** engine operations can return General Error on unknown protocol
88    (it's an internal error, as select_protocol checks already).
89 ** When server mode is implemented properly, more care has to be taken to
90    release all resources on error (for example to free assuan_cmd).
91 * GPG breakage:
92 ** gpg 1.4.2 lacks error reporting if sign/encrypt with revoked key.
93 ** gpg 1.4.2 does crappy error reporting (namely none at all) when
94    smart card is missing for sign operation:
95     [GNUPG:] CARDCTRL 4
96     gpg: selecting openpgp failed: ec=6.110
97     gpg: signing failed: general error
98     [GNUPG:] BEGIN_ENCRYPTION 2 10
99     gpg: test: sign+encrypt failed: general error
100 ** Without agent and with wrong passphrase, gpg 1.4.2 enters into an
101    infinite loop.
102 ** Use correct argv[0]
103    In rungpg.c:build_argv we use
104       argv[argc] = strdup ("gpg"); /* argv[0] */
105    This should be changed to take the real file name used in account.
106
107
108 * Operations
109 ** Include cert values -2, -1, 0 and 1 should be defined as macros.
110 ** If an operation failed, make sure that the result functions don't return
111    corrupt partial information. !!!
112    NOTE: The EOF status handler is not called in this case !!!
113 ** Verify must not fail on NODATA premature if auto-key-retrieval failed.
114    It should not fail silently if it knows there is an error. !!!
115 ** All operations: Better error reporting. !!
116 ** Export status handler need much more work. !!!
117 ** Import should return a useful error when one happened.
118 *** Import does not take notice of NODATA status report.
119 *** When GPGSM does issue IMPORT_OK status reports, make sure to check for
120     them in tests/gpgs m/t-import.c.
121 ** Verify can include info about version/algo/class, but currently
122    this is only available for gpg, not gpgsm.
123 ** Return ENC_TO output in verify result.  Again, this is not available
124    for gpgsm.
125 ** Genkey should return something more useful than General_Error.
126 ** If possible, use --file-setsize to set the file size for proper progress
127    callback handling.  Write data interface for file size.
128 ** Optimize the file descriptor list, so the number of open fds is
129    always known easily.
130 ** Encryption: It should be verified that the behaviour for partially untrusted
131    recipients is correct.
132 ** When GPG issues INV_something for invalid signers, catch them.
133
134 * Error Values
135 ** Map ASSUAN/GpgSM ERR error values in a better way than is done now. !!
136 ** Some error values should identify the source more correctly (mostly error
137    values derived from status messages).
138
139 * Tests
140 ** Write a fake gpg-agent so that we can supply known passphrases to
141    gpgsm and setup the configuration files to use the agent.  Without
142    this we are testing a currently running gpg-agent which is not a
143    clever idea. !
144 ** t-data
145 *** Test gpgme_data_release_and_get_mem.
146 *** Test gpgme_data_seek for invalid types.
147 ** t-keylist
148    Write a test for ext_keylist.
149 ** Test reading key signatures.
150
151 * Debug
152 ** Tracepoints should be added at: Every public interface enter/leave,
153    before and in every callback, at major decision points, at every
154    internal data point which might easily be observed by the outside
155    (system handles).  We also trace handles and I/O support threads in
156    the w32 implementation because that's fragile code.
157    Files left to do:
158    data-fd.c data-mem.c data-stream.c data-user.c debug.c rungpg.c
159    engine.c engine-gpgsm.c funopen.c w32-glib-io.c wait.c
160    wait-global.c wait-private.c wait-user.c op-support.c decrypt.c
161    decrypt-verify.c delete.c edit.c encrypt.c encrypt-sign.c export.c
162    genkey.c import.c key.c keylist.c passphrase.c progress.c signers.c
163    sig-notation.c trust-item.c trustlist.c verify.c
164 ** Handle malloc and vasprintf errors.  But decide first if they should be
165    ignored (and logged with 255?!), or really be assertions. !
166
167 * Build suite
168 ** Make sure everything is cleaned correctly (esp. test area).
169 ** Enable AC_CONFIG_MACRO_DIR and bump up autoconf version requirement.
170    (To fix "./autogen.sh; ./configure --enable-maintainer-mode; touch
171    configure.ac; make").  Currently worked around with ACLOCAL_AMFLAGS???
172
173 * Error checking 
174 ** engine-gpgsm, with-validation
175    Add error checking some time after releasing a new gpgsm.
176
177
178 Copyright 2004, 2005 g10 Code GmbH
179
180 This file is free software; as a special exception the author gives
181 unlimited permission to copy and/or distribute it, with or without
182 modifications, as long as this notice is preserved.
183
184 This file is distributed in the hope that it will be useful, but
185 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
186 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
187 PURPOSE.