Diffusion GPGME db82e99a8a40

core: New function gpgme_op_setexpire.

Authored by ikloecker on Aug 4 2020, 2:32 PM.

Description

core: New function gpgme_op_setexpire.

* src/gpgme.h.in (gpgme_op_setexpire_start, gpgme_op_setexpire): New.
* src/libgpgme.vers, src/gpgme.def: Add new functions.
* src/genkey.c (setexpire): New.
(gpgme_op_setexpire_start, gpgme_op_setexpire): New.
* src/engine.h, src/engine.c: (_gpgme_engine_op_setexpire): New.
* src/engine-backend.h (engine_ops): Add 'setexpire' and adjust all
engine initializers.
* src/engine-gpg.c (gpg_setexpire): New.
(_gpgme_engine_ops_gpg): Set setexpire to gpg_setexpire.
* doc/gpgme.texi: Document new functions.
* tests/run-genkey.c: Add option --setexpire.

This extends GPGME to support the --quick-set-expire command
added by GnuPG 2.1.22. This allows changing subkeys expiry
date without going through the editinteractor interface.

  • Co-authored-by: Andre Heinecke <aheinecke@gnupg.org>
  • GnuPG-bug-id: T4999

Details

Committed
ikloeckerAug 4 2020, 4:51 PM
Parents
rM81db4122450b: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T4999: GPGME: Add interface for quick-set-expire