Ingo Klöcker f66f856c89 core: Add error handling to setexpire
* src/genkey.c (setexpire, gpgme_op_setexpire_start,
gpgme_op_setexpire): Move to ...
* src/setexpire.c: New.
* src/Makefile.am (main_sources): Add that file.
* src/context.h (ctx_op_data_id_t): Add OPDATA_SETEXPIRE.

* lang/qt/tests/t-various.cpp (testSetExpire): Test error handling.
--

Errors (and failures) emitted via status-fd need to be handled
explicitly, i.e. we need to provide an appropriate status handler with
corresponding op_data_t. Additionally, we need to set a passphrase
command handler if a passphrase callback is set in the context, e.g.
during tests.

GnuPG-bug-id: 4395
2020-08-14 11:11:23 +02:00
..
2018-11-08 12:34:27 +07:00
2018-10-31 12:35:14 +01:00
2018-11-08 12:34:27 +07:00
2018-11-08 12:34:27 +07:00
2018-11-08 12:34:27 +07:00
2020-08-14 11:11:23 +02:00
2018-11-12 09:59:05 +09:00
2017-12-08 05:59:11 +01:00
2018-10-31 12:35:14 +01:00