2002-02-06 00:08:47 +00:00
|
|
|
Hey Emacs, this is -*- outline -*- mode!
|
|
|
|
|
2003-06-05 23:20:29 +00:00
|
|
|
* Before release:
|
|
|
|
** Change gpgme_invalid_user_id_t to gpgme_invalid_key_t.
|
|
|
|
** Make sure POSIX I/O functions set errno properly
|
|
|
|
** gpgme-config must include info about libgpg-error.
|
|
|
|
|
2002-01-15 19:59:54 +00:00
|
|
|
* ABI's to break:
|
2003-04-25 11:31:14 +00:00
|
|
|
** Compatibility interfaces that can be removed in future versions:
|
|
|
|
*** gpgme_data_new_from_filepart
|
|
|
|
*** gpgme_data_new_from_file
|
|
|
|
*** gpgme_data_new_with_read_cb
|
|
|
|
*** gpgme_data_rewind
|
|
|
|
*** GPGME_Busy, GPGME_No_Request
|
|
|
|
*** GPGME_Invalid_Recipient, GPGME_No_Recipients
|
2003-04-28 23:59:03 +00:00
|
|
|
*** GPGME_No_Passphrase
|
|
|
|
*** 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
|
2003-05-04 14:55:00 +00:00
|
|
|
*** GPGME_Invalid_Type, GPGME_Invalid_Mode
|
2003-05-18 20:45:24 +00:00
|
|
|
*** All Gpgme* typedefs.
|
2002-01-15 19:59:54 +00:00
|
|
|
|
2002-06-04 12:19:00 +00:00
|
|
|
* Thread support:
|
|
|
|
** Build thread modules for static linking (which just suck in the
|
|
|
|
desired symbols the hard way). !!
|
2003-05-04 23:53:53 +00:00
|
|
|
** Ordering the libs is important, but libtool gets it wrong. Argh.
|
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
|
|
|
|
required to notify an application of a changed smartcard, The
|
|
|
|
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-01-29 15:41:25 +00:00
|
|
|
** set_locale for thread safe and env independent locale selection.
|
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).
|
|
|
|
Then gpgme_op_*list_end can go.
|
|
|
|
** 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.
|
2002-08-20 11:59:24 +00:00
|
|
|
|
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
|
|
|
|
directly to the engine.
|
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-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. !!
|
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.
|
|
|
|
*** When GPGSM does issue IMPORT_OK status reports, make sure to check for them
|
2003-04-27 22:52:37 +00:00
|
|
|
in tests/gpgs m/t-import.c.
|
2002-01-31 00:31:44 +00:00
|
|
|
** Genkey should return something more useful than General_Error.
|
2002-02-06 01:30:27 +00:00
|
|
|
** Factor out common code in _op_*_start functions.
|
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).
|