Home GnuPG
Diffusion GPGME e42b72bc2ba0

core: Implement adding ADSKs through gpgme_createsubkey

Description

core: Implement adding ADSKs through gpgme_createsubkey

* src/engine-gpg.c: Add and use function for adding ADSKs.
* src/genkey.c: Prevent error due to no status line.
* src/gpgme.h.in: Add flag GPGME_CREATE_ADSK
* doc/gpgme.texi: Add documentation for ADSKs
* tests/run-genkey.c: Add test for adding ADSKs

This adds the ability to add ADSKs through
the gpgme_createsubkey interface.
The function must be called with NULL userid,
the ADSK fingerprint in algo
and the GPGME_CREATE_ADSK flag.

Details

Provenance
TobiasFellaAuthored on Jan 3 2024, 2:21 PM
Parents
rMac4bf86bb65a: tests: Fix segv in t-json.c
Branches
Unknown
Tags
Unknown
Tasks
T6880: GPGME (++/qt): Add support for --quick-add-adsk