aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorTobias Fella <[email protected]>2024-01-03 13:21:41 +0000
committerTobias Fella <[email protected]>2024-05-22 08:16:19 +0000
commite42b72bc2ba0b5cacfd5df625df6011b8819fbce (patch)
tree83de7a6e18acf8b6b2dfeae3cb091641076bf711 /src/gpgme.h.in
parenttests: Fix segv in t-json.c (diff)
downloadgpgme-e42b72bc2ba0b5cacfd5df625df6011b8819fbce.tar.gz
gpgme-e42b72bc2ba0b5cacfd5df625df6011b8819fbce.zip
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.
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index c8eba0a5..bfd6f72b 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -1838,6 +1838,7 @@ gpgme_error_t gpgme_op_export_keys (gpgme_ctx_t ctx,
#define GPGME_CREATE_WANTSEC (1 << 11) /* Return the secret key. */
#define GPGME_CREATE_FORCE (1 << 12) /* Force creation. */
#define GPGME_CREATE_NOEXPIRE (1 << 13) /* Create w/o expiration. */
+#define GPGME_CREATE_ADSK (1 << 14) /* Add an ADSK */
/* An object to return result from a key generation.