diff options
author | Tobias Fella <[email protected]> | 2024-01-03 13:21:41 +0000 |
---|---|---|
committer | Tobias Fella <[email protected]> | 2024-05-22 08:16:19 +0000 |
commit | e42b72bc2ba0b5cacfd5df625df6011b8819fbce (patch) | |
tree | 83de7a6e18acf8b6b2dfeae3cb091641076bf711 /doc | |
parent | tests: Fix segv in t-json.c (diff) | |
download | gpgme-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 'doc')
-rw-r--r-- | doc/gpgme.texi | 9 |
1 files changed, 9 insertions, 0 deletions
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}. |