[PATCH] Add ability to specify a subkey.

Werner Koch wk at gnupg.org
Thu Feb 2 09:29:48 CET 2017

On Sun,  1 Jan 2017 01:04, bjk at luxsci.net said:

> a keyid or fingerprint. It's up to the user to set the .exact member of
> gpgme_subkey_t to have the '!' appended before calling gpg otherwise it

The struct returned by GPGME need to be considered read-only for a user

   Those structures shall be considered read-only and an application
   must not allocate such a structure on its own.

(in the section Result Management).  Thus a different way to specify
this is required.

Given that this is will be a rarely used feature, what about a
gpgme_key_set_flag function which could works similar to the
gpgme_data_set_flag function.  That would be more flexible than to add
dedicated functions for marking a subkey or to provide extra versions of
the encrypt and sign functions to take a selection criteria for the



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: </pipermail/attachments/20170202/1cd1615d/attachment.sig>

More information about the Gnupg-devel mailing list