Home GnuPG
Diffusion GPGME 89501509134a

qt: Port to new setExpire()

Description

qt: Port to new setExpire()

* lang/qt/src/qgpgmechangeexpiryjob.cpp (change_expiry): Use new
setExpire() instead of edit() with GpgSetExpiryTimeEditInteractor

Using the new setExpire() (which uses --quick-set-expire) is a lot less
complex than using gpg's edit interface. It also feels faster. Next,
I'll add support for changing the expiration time of subkeys.

Details

Provenance
ikloeckerAuthored on Aug 5 2020, 4:49 PM
Parents
rM84c6b6e2fea1: qt: Add test for setExpire
Branches
Unknown
Tags
Unknown
Tasks
T5003: GpgME++: Add support for gpgme_set_expire

Event Timeline

Yes. We want to move away from the edit interface as much as possible. It's very fragile and broke a lot in the past when --edit-key emitted different status lines and the state machine did not work anymore.

Thanks.