2002-02-06 00:08:47 +00:00
|
|
|
Hey Emacs, this is -*- outline -*- mode!
|
|
|
|
|
2003-07-29 18:27:31 +00:00
|
|
|
* Before release:
|
2003-11-19 15:15:11 +00:00
|
|
|
** Some gpg tests fail with gpg 1.3.4-cvs (gpg/t-keylist-sig)
|
2004-01-12 13:28:36 +00:00
|
|
|
The test is currently disabled tehre and in gpg/t-import.
|
2003-07-29 18:27:31 +00:00
|
|
|
|
2002-01-15 19:59:54 +00:00
|
|
|
* ABI's to break:
|
2003-07-30 12:41:57 +00:00
|
|
|
** I/O and User Data could be made extensible. But this can be done
|
|
|
|
without breaking the ABI hopefully.
|
2003-04-25 11:31:14 +00:00
|
|
|
** Compatibility interfaces that can be removed in future versions:
|
2003-08-20 20:20:46 +00:00
|
|
|
*** ath compatibility modules.
|
2003-04-25 11:31:14 +00:00
|
|
|
*** gpgme_data_new_from_filepart
|
|
|
|
*** gpgme_data_new_from_file
|
|
|
|
*** gpgme_data_new_with_read_cb
|
|
|
|
*** gpgme_data_rewind
|
2003-04-28 23:59:03 +00:00
|
|
|
*** gpgme_op_import_ext
|
|
|
|
*** gpgme_get_sig_key
|
|
|
|
*** gpgme_get_sig_ulong_attr
|
|
|
|
*** gpgme_get_sig_string_attr
|
|
|
|
*** GPGME_SIG_STAT_*
|
|
|
|
*** gpgme_get_sig_status
|
2003-04-29 21:58:32 +00:00
|
|
|
*** gpgme_trust_item_release
|
|
|
|
*** gpgme_trust_item_get_string_attr
|
|
|
|
*** gpgme_trust_item_get_ulong_attr
|
2003-05-18 20:45:24 +00:00
|
|
|
*** gpgme_attr_t
|
|
|
|
*** All Gpgme* typedefs.
|
2002-01-15 19:59:54 +00:00
|
|
|
|
2002-06-04 12:19:00 +00:00
|
|
|
* Thread support:
|
2003-08-20 20:20:46 +00:00
|
|
|
** When GNU Pth supports sendmsg/recvmsg, wrap them properly.
|
2003-10-31 12:07:48 +00:00
|
|
|
** Without timegm (3) support our ISO time parser is not thread safe.
|
2003-11-19 15:15:11 +00:00
|
|
|
There is a configure time warning, though.
|
2002-06-04 12:19:00 +00:00
|
|
|
|
2002-08-20 11:59:24 +00:00
|
|
|
* New features:
|
|
|
|
** notification system
|
2003-01-29 15:41:25 +00:00
|
|
|
We need a simple notification system, probably a simple callback
|
2002-08-20 11:59:24 +00:00
|
|
|
with a string and some optional arguments. This is for example
|
2003-10-31 12:07:48 +00:00
|
|
|
required to notify an application of a changed smartcard, The
|
2002-08-20 11:59:24 +00:00
|
|
|
application can then do whatever is required. There are other
|
|
|
|
usages too. This notfication system should be independent of any
|
|
|
|
contextes of course.
|
|
|
|
** --learn-code support
|
|
|
|
This might be integrated with import. we still need to work out how
|
|
|
|
to learn a card when gpg and gpgsm have support for smartcards.
|
2003-05-04 18:05:38 +00:00
|
|
|
** How to terminate a pending operation? Something like gpgme_op_reset,
|
|
|
|
but where are you allowed to call it (think callback handlers).
|
2003-09-02 22:44:46 +00:00
|
|
|
Then gpgme_op_*list_end can go. Update: The only place where this
|
|
|
|
can go is returning errors from callback handlers, and a function
|
|
|
|
to be called for example from the user event loop code. The user
|
|
|
|
must observe the threading rules! A blocking thread can not be
|
|
|
|
cancelled.
|
2003-05-04 18:05:38 +00:00
|
|
|
** Might need a stat() for data objects and use it for length param to gpg.
|
2003-05-04 23:53:53 +00:00
|
|
|
** Allow to export secret keys.
|
|
|
|
** Implement support for photo ids.
|
|
|
|
** New features requested by our dear users, but rejected or left for
|
|
|
|
later consideration:
|
|
|
|
*** Selecting the key ring, setting the version or comment in output.
|
|
|
|
Rejected because the naive implementation is engine specific, the
|
|
|
|
configuration is part of the engine's configuration or readily
|
|
|
|
worked around in a different way
|
|
|
|
*** Selecting the symmetric cipher.
|
|
|
|
*** Exchanging keys with key servers.
|
2003-10-31 12:07:48 +00:00
|
|
|
** Allow selection of subkeys
|
|
|
|
** Allow to return time stamps in ISO format
|
|
|
|
This allows us to handle years later than 2037 properly. With the
|
|
|
|
time_t interface they are all mapped to 2037-12-31
|
|
|
|
|
2002-01-15 19:59:54 +00:00
|
|
|
* Documentation
|
2003-05-04 18:05:38 +00:00
|
|
|
** Document validity and trust issues.
|
2002-01-15 19:59:54 +00:00
|
|
|
|
|
|
|
* Engines
|
2003-04-27 18:31:25 +00:00
|
|
|
** Do not create/destroy engines, but create engine and then reset it.
|
|
|
|
Internally the reset operation still spawns a new engine process,
|
|
|
|
but this can be replaced with a reset later. Also, be very sure to
|
2003-05-04 23:53:53 +00:00
|
|
|
release everything properly at a reset and at an error. Think hard
|
|
|
|
about where to guarantee what (ie, what happens if start fails, are
|
|
|
|
the fds unregistered immediately - i think so?)
|
gpgme/
2002-10-08 Marcus Brinkmann <marcus@g10code.de>
New data object component:
* gpgme.h (GpgmeDataReadCb, GpgmeDataWriteCb, GpgmeDataSeekCb,
GpgmeDataReleaseCb): New types.
(struct GpgmeDataCbs): New structure.
(gpgme_data_read): Changed prototype to match that of read() closely.
(gpgme_data_write): Similar for write().
(gpgme_data_seek, gpgme_data_new_from_cbs, gpgme_data_new_from_fd,
gpgme_data_new_from_stream): New prototypes.
(gpgme_data_get_type, gpgme_check_engine): Prototype removed.
* Makefile.am (libgpgme_la_SOURCES): Add data.h, data-fd.c,
data-stream.c, data-mem.c, data-user.c and data-compat.c.
* data.c: Reimplemented from scratch.
* (data-compat.c, data-fd.c, data.h, data-mem.c, data-stream.c,
data-user.c): New file.
* context.h (struct gpgme_data_s): Removed.
* conversion.c: Include <errno.h> and <sys/types.h>.
(_gpgme_data_append): New function.
* data.c (_gpgme_data_append_string): Move to ...
* conversion.c (_gpgme_data_append_string): ... here.
* data.c (_gpgme_data_append_for_xml): Move to ...
* conversion.c (_gpgme_data_append_for_xml): ... here.
* data.c (_gpgme_data_append_string_for_xml): Move to ...
* conversion.c (_gpgme_data_append_string_for_xml): ... here.
* data.c (_gpgme_data_append_percentstring_for_xml): Move to ...
* conversion.c (_gpgme_data_append_percentstring_for_xml): ... here.
* ops.h (_gpgme_data_get_mode, _gpgme_data_set_mode): Prototype
removed.
* types.h (GpgmeDataMode): Type removed.
* decrypt.c (_gpgme_decrypt_start): Don't check data type or mode.
* edit.c (_gpgme_op_edit_start): Likewise.
* encrypt.c (_gpgme_op_encrypt_start): Likewise.
* encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise.
* encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise.
* export.c (_gpgme_op_export_start): Likewise.
* genkey.c (_gpgme_op_genkey_start): Likewise.
* import.c (_gpgme_op_import_start): Likewise.
* sign.c (_gpgme_op_sign_start): Likewise.
* verify.c (_gpgme_op_verify_start): Likewise.
* encrypt.c (gpgme_op_encrypt): Remove hack that returns invalid
no recipient if no data was returned.
* encrypt-sign.c (gpgme_op_encrypt_sign): Remove hack that returns
no recipient if no data was returned.
* encrypt-sign.c (gpgme_op_encrypt_sign): Remove hack that returns
no recipient if no data was returned.
* engine.c (_gpgme_engine_op_verify): Add new argument to
differentiate detached from normal signatures.
* engine.h (_gpgme_engine_op_verify): Likewise for prototype.
* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Likewise. Don't check
mode of data argument.
* engine-gpgsm.h (_gpgme_gpgsm_op_verify): Likewise for prototype.
* gpgme.h (gpgme_op_verify_start): Likewise for prototype.
(gpgme_op_verify): Likewise for prototype.
* rungpg.c (_gpgme_gpg_op_verify): Likewise.
* rungpg.h (_gpgme_gpg_op_verify): Likewise for prototype.
* verify.c (_gpgme_op_verify_start): Likewise.
(gpgme_op_verify_start): Likewise.
(gpgme_op_verify): Likewise.
* rungpg.c (struct arg_and_data_s): New member INBOUND to hold
direction of data object.
(_gpgme_gpg_add_data): Add new argument INBOUND. Use it to
determine direction of data object.
(_gpgme_gpg_add_pm_data, _gpgme_gpg_set_command_handler,
_gpgme_gpg_op_decrypt, _gpgme_gpg_op_edit, _gpgme_gpg_op_encrypt,
_gpgme_gpg_op_encrypt_sign, _gpgme_gpg_op_export,
_gpgme_gpg_op_genkey, _gpgme_gpg_op_import, _gpgme_gpg_op_sign,
_gpgme_gpg_op_verify): Add new argument to _gpgme_gpg_add_data
invocation.
(build_argv): Use new member INBOUND to determine direction of
file descriptor. Don't check the data type.
* rungpg.h (_gpgme_gpg_add_data): Add new argument to prototype.
* gpgme.c (gpgme_get_op_info): Don't call
_gpgme_data_get_as_string if CTX->op_info is NULL.
* version.c (gpgme_check_engine): Function removed.
tests/
2002-10-09 Marcus Brinkmann <marcus@g10code.de>
* gpg/t-decrypt.c (print_data): Update to new gpgme_data_read
interface, and use gpgme_engine_check_version instead
gpgme_check_version.
* gpg/t-decrypt-verify.c (print_data): Likewise.
* gpg/t-edit.c (main): Likewise.
* gpg/t-encrypt.c (print_data): Likewise.
* gpg/t-encrypt-sign.c (print_data): Likewise.
* gpg/t-encrypt-sym.c (print_data): Likewise.
* gpg/t-eventloop.c (print_data): Likewise.
* gpg/t-export.c (print_data): Likewise.
* gpg/t-sign.c (print_data): Likewise.
* gpg/t-signers.c (print_data): Likewise.
* gpgsm/t-decrypt.c (print_data): Likewise.
* gpgsm/t-encrypt.c (print_data): Likewise.
* gpgsm/t-export.c (print_data): Likewise.
* gpgsm/t-sign.c (print_data): Likewise.
* gpg/t-verify.c (main): Likewise for gpgme_op_verify.
* gpgsm/t-verify.c (main): Likewise for gpgme_op_verify.
* t-data.c (read_once_test): Likewise.
(write_test): Update for new behaviour of data objects.
(main): Remove type test.
2002-10-09 00:16:38 +00:00
|
|
|
** Optimize the case where a data object has an underlying fd we can pass
|
2003-09-14 00:34:48 +00:00
|
|
|
directly to the engine. This will be automatic with socket I/O and
|
|
|
|
descriptor passing.
|
2002-01-15 19:59:54 +00:00
|
|
|
** Move code common to all engines up from gpg to engine.
|
|
|
|
** engine operations can return General Error on unknown protocol
|
|
|
|
(it's an internal error, as select_protocol checks already).
|
2002-02-25 18:31:07 +00:00
|
|
|
** When server mode is implemented properly, more care has to be taken to
|
2003-05-04 18:05:38 +00:00
|
|
|
release all resources on error (for example to free assuan_cmd).
|
2001-11-21 03:43:16 +00:00
|
|
|
|
2002-01-22 14:24:50 +00:00
|
|
|
* Operations
|
2003-07-29 18:27:31 +00:00
|
|
|
** If an operation failed, make sure that the result functions don't return
|
|
|
|
corrupt partial information. !!!
|
2003-08-20 20:20:46 +00:00
|
|
|
NOTE: The EOF status handler is not called in this case !!!
|
2003-05-27 01:31:06 +00:00
|
|
|
** If no passphrase cb is installed, status handler is not run even if
|
|
|
|
password is required by crypto engine. !!
|
2003-09-02 22:44:46 +00:00
|
|
|
** Verify must not fail on NODATA premature if auto-key-retrieval failed.
|
|
|
|
It should not fail silently if it knows there is an error. !!!
|
|
|
|
** All operations: Better error reporting. !!
|
gpgme/
2002-10-08 Marcus Brinkmann <marcus@g10code.de>
New data object component:
* gpgme.h (GpgmeDataReadCb, GpgmeDataWriteCb, GpgmeDataSeekCb,
GpgmeDataReleaseCb): New types.
(struct GpgmeDataCbs): New structure.
(gpgme_data_read): Changed prototype to match that of read() closely.
(gpgme_data_write): Similar for write().
(gpgme_data_seek, gpgme_data_new_from_cbs, gpgme_data_new_from_fd,
gpgme_data_new_from_stream): New prototypes.
(gpgme_data_get_type, gpgme_check_engine): Prototype removed.
* Makefile.am (libgpgme_la_SOURCES): Add data.h, data-fd.c,
data-stream.c, data-mem.c, data-user.c and data-compat.c.
* data.c: Reimplemented from scratch.
* (data-compat.c, data-fd.c, data.h, data-mem.c, data-stream.c,
data-user.c): New file.
* context.h (struct gpgme_data_s): Removed.
* conversion.c: Include <errno.h> and <sys/types.h>.
(_gpgme_data_append): New function.
* data.c (_gpgme_data_append_string): Move to ...
* conversion.c (_gpgme_data_append_string): ... here.
* data.c (_gpgme_data_append_for_xml): Move to ...
* conversion.c (_gpgme_data_append_for_xml): ... here.
* data.c (_gpgme_data_append_string_for_xml): Move to ...
* conversion.c (_gpgme_data_append_string_for_xml): ... here.
* data.c (_gpgme_data_append_percentstring_for_xml): Move to ...
* conversion.c (_gpgme_data_append_percentstring_for_xml): ... here.
* ops.h (_gpgme_data_get_mode, _gpgme_data_set_mode): Prototype
removed.
* types.h (GpgmeDataMode): Type removed.
* decrypt.c (_gpgme_decrypt_start): Don't check data type or mode.
* edit.c (_gpgme_op_edit_start): Likewise.
* encrypt.c (_gpgme_op_encrypt_start): Likewise.
* encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise.
* encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise.
* export.c (_gpgme_op_export_start): Likewise.
* genkey.c (_gpgme_op_genkey_start): Likewise.
* import.c (_gpgme_op_import_start): Likewise.
* sign.c (_gpgme_op_sign_start): Likewise.
* verify.c (_gpgme_op_verify_start): Likewise.
* encrypt.c (gpgme_op_encrypt): Remove hack that returns invalid
no recipient if no data was returned.
* encrypt-sign.c (gpgme_op_encrypt_sign): Remove hack that returns
no recipient if no data was returned.
* encrypt-sign.c (gpgme_op_encrypt_sign): Remove hack that returns
no recipient if no data was returned.
* engine.c (_gpgme_engine_op_verify): Add new argument to
differentiate detached from normal signatures.
* engine.h (_gpgme_engine_op_verify): Likewise for prototype.
* engine-gpgsm.c (_gpgme_gpgsm_op_verify): Likewise. Don't check
mode of data argument.
* engine-gpgsm.h (_gpgme_gpgsm_op_verify): Likewise for prototype.
* gpgme.h (gpgme_op_verify_start): Likewise for prototype.
(gpgme_op_verify): Likewise for prototype.
* rungpg.c (_gpgme_gpg_op_verify): Likewise.
* rungpg.h (_gpgme_gpg_op_verify): Likewise for prototype.
* verify.c (_gpgme_op_verify_start): Likewise.
(gpgme_op_verify_start): Likewise.
(gpgme_op_verify): Likewise.
* rungpg.c (struct arg_and_data_s): New member INBOUND to hold
direction of data object.
(_gpgme_gpg_add_data): Add new argument INBOUND. Use it to
determine direction of data object.
(_gpgme_gpg_add_pm_data, _gpgme_gpg_set_command_handler,
_gpgme_gpg_op_decrypt, _gpgme_gpg_op_edit, _gpgme_gpg_op_encrypt,
_gpgme_gpg_op_encrypt_sign, _gpgme_gpg_op_export,
_gpgme_gpg_op_genkey, _gpgme_gpg_op_import, _gpgme_gpg_op_sign,
_gpgme_gpg_op_verify): Add new argument to _gpgme_gpg_add_data
invocation.
(build_argv): Use new member INBOUND to determine direction of
file descriptor. Don't check the data type.
* rungpg.h (_gpgme_gpg_add_data): Add new argument to prototype.
* gpgme.c (gpgme_get_op_info): Don't call
_gpgme_data_get_as_string if CTX->op_info is NULL.
* version.c (gpgme_check_engine): Function removed.
tests/
2002-10-09 Marcus Brinkmann <marcus@g10code.de>
* gpg/t-decrypt.c (print_data): Update to new gpgme_data_read
interface, and use gpgme_engine_check_version instead
gpgme_check_version.
* gpg/t-decrypt-verify.c (print_data): Likewise.
* gpg/t-edit.c (main): Likewise.
* gpg/t-encrypt.c (print_data): Likewise.
* gpg/t-encrypt-sign.c (print_data): Likewise.
* gpg/t-encrypt-sym.c (print_data): Likewise.
* gpg/t-eventloop.c (print_data): Likewise.
* gpg/t-export.c (print_data): Likewise.
* gpg/t-sign.c (print_data): Likewise.
* gpg/t-signers.c (print_data): Likewise.
* gpgsm/t-decrypt.c (print_data): Likewise.
* gpgsm/t-encrypt.c (print_data): Likewise.
* gpgsm/t-export.c (print_data): Likewise.
* gpgsm/t-sign.c (print_data): Likewise.
* gpg/t-verify.c (main): Likewise for gpgme_op_verify.
* gpgsm/t-verify.c (main): Likewise for gpgme_op_verify.
* t-data.c (read_once_test): Likewise.
(write_test): Update for new behaviour of data objects.
(main): Remove type test.
2002-10-09 00:16:38 +00:00
|
|
|
** Export status handler need much more work. !!!
|
2002-01-31 00:31:44 +00:00
|
|
|
** Import should return a useful error when one happened.
|
2003-04-27 18:31:25 +00:00
|
|
|
*** Import does not take notice of NODATA status report.
|
2003-09-02 22:44:46 +00:00
|
|
|
*** When GPGSM does issue IMPORT_OK status reports, make sure to check for
|
|
|
|
them in tests/gpgs m/t-import.c.
|
2003-07-30 12:41:57 +00:00
|
|
|
** Verify can include info about version/algo/class, but currently
|
|
|
|
this is only available for gpg, not gpgsm.
|
|
|
|
** Return ENC_TO output in verify result. Again, this is not available
|
|
|
|
for gpgsm.
|
2002-01-31 00:31:44 +00:00
|
|
|
** Genkey should return something more useful than General_Error.
|
2003-06-28 12:45:16 +00:00
|
|
|
** Decrypt:
|
|
|
|
On Fri, Jun 27, 2003 at 06:28:23PM +0200, Heiko Abraham wrote:
|
|
|
|
> I have a cipher text and I use 'gpgme_op_decrypt_verify(..)'
|
|
|
|
> for decrypt and get the plaintext. But also I wish a list
|
|
|
|
> of all reciepient, that can also decrypt this file.
|
|
|
|
>
|
|
|
|
> If I store the file and check it with 'gpg --list-packets ${filename}'
|
|
|
|
> then I will become also a recipient-list.
|
|
|
|
> It this also possible with gpgme?
|
|
|
|
|
|
|
|
Currently not, but it is easy to add this to GPGME 0.4.1. At least the key
|
|
|
|
ID and a user ID hint is available from gpg (of course key IDs are not
|
|
|
|
necessarily unique!). I will put it on the TODO list.
|
2003-07-08 18:02:10 +00:00
|
|
|
** If possible, use --file-setsize to set the file size for proper progress
|
2003-07-30 12:41:57 +00:00
|
|
|
callback handling. Write data interface for file size.
|
2003-01-29 15:41:25 +00:00
|
|
|
** Optimize the file descriptor list, so the number of open fds is
|
2003-05-04 18:05:38 +00:00
|
|
|
always known easily.
|
2003-05-04 23:53:53 +00:00
|
|
|
** Encryption: It should be verified that the behaviour for partially untrusted
|
|
|
|
recipients is correct.
|
2003-05-04 23:53:00 +00:00
|
|
|
** When GPG issues INV_something for invalid signers, catch them.
|
2002-02-06 01:30:27 +00:00
|
|
|
|
2001-12-21 01:41:12 +00:00
|
|
|
* Error Values
|
2002-05-09 06:49:40 +00:00
|
|
|
** Map ASSUAN/GpgSM ERR error values in a better way than is done now. !!
|
2003-06-05 23:20:29 +00:00
|
|
|
** Some error values should identify the source more correctly (mostly error
|
|
|
|
values derived from status messages).
|
2001-12-21 01:41:12 +00:00
|
|
|
|
2001-10-22 15:39:34 +00:00
|
|
|
* Tests
|
2002-02-27 00:59:31 +00:00
|
|
|
** Write a fake gpg-agent so that we can supply known passphrases to
|
|
|
|
gpgsm and setup the configuration files to use the agent. Without
|
|
|
|
this we are testing a currently running gpg-agent which is not a
|
2002-05-09 06:49:40 +00:00
|
|
|
clever idea. !
|
2001-10-22 15:39:34 +00:00
|
|
|
** t-data
|
2001-10-22 15:44:39 +00:00
|
|
|
*** Test gpgme_data_release_and_get_mem.
|
2003-05-04 18:05:38 +00:00
|
|
|
*** Test gpgme_data_seek for invalid types.
|
2001-10-22 15:39:34 +00:00
|
|
|
|
2002-05-08 04:22:07 +00:00
|
|
|
* Debug
|
|
|
|
** Handle malloc and vasprintf errors. But decide first if they should be
|
2002-05-09 06:49:40 +00:00
|
|
|
ignored (and logged with 255?!), or really be assertions. !
|
2002-05-08 04:22:07 +00:00
|
|
|
|
2001-12-18 23:46:36 +00:00
|
|
|
* Build suite
|
|
|
|
** Make sure everything is cleaned correctly (esp. test area).
|
2003-07-30 12:43:14 +00:00
|
|
|
** Cofnigure test for gpg and gpgsm version (as a warning).
|