From e42b72bc2ba0b5cacfd5df625df6011b8819fbce Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 3 Jan 2024 14:21:41 +0100 Subject: 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. --- doc/gpgme.texi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/gpgme.texi b/doc/gpgme.texi index bdac95a3..258ef0a5 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -4355,6 +4355,11 @@ override this check. Request generation of keys that do not expire. +@item GPGME_CREATE_ADSK +@since{1.24.0} + +Add an ADSK to the key. + @end table After the operation completed successfully, information about the @@ -4430,6 +4435,10 @@ values for timestamps and thus can only encode dates up to the year @var{flags} takes the same values as described above for @code{gpgme_op_createkey}. +If the @code{GPGME_CREATE_ADSK} flag is set, the subkey fingerprint +given in the @code{algo} parameter is added as an ADSK +to the key. + After the operation completed successfully, information about the created key can be retrieved with @code{gpgme_op_genkey_result}. -- cgit v1.2.3