aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-07-16 10:00:46 +0000
committerWerner Koch <[email protected]>2020-07-16 10:00:46 +0000
commit7f9e0ca57b29cc96bd1ca717d891c11db7435c5a (patch)
tree626649d39737ff25e85c035e64777b8898cf03fe /doc
parentcore: Deprecate the non-working trustlist functions. (diff)
downloadgpgme-7f9e0ca57b29cc96bd1ca717d891c11db7435c5a.tar.gz
gpgme-7f9e0ca57b29cc96bd1ca717d891c11db7435c5a.zip
core: New export mode to export as OpenSSH public key.
* src/gpgme.h.in (GPGME_EXPORT_MODE_SSH): New. * src/export.c (export_ext_start): Allow for new mode. * src/engine-gpg.c (export_common): Implement. * tests/run-export.c (status_cb): New. (main): New options --status and --ssh. -- GnuPG-bug-id: 4310 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r--doc/gpgme.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi
index 81c43ff4..6c1d0622 100644
--- a/doc/gpgme.texi
+++ b/doc/gpgme.texi
@@ -4679,6 +4679,14 @@ If this bit is set, the smallest possible key is exported. For OpenPGP
keys it removes all signatures except for the latest self-signatures.
For X.509 keys it has no effect.
+@item GPGME_EXPORT_MODE_SSH
+@since{1.4.0}
+
+If this bit is set, the latest authentication key of the requested
+OpenPGP key is exported in the OpenSSH public key format. This
+accepts just a single key; to force the export of a specific subkey
+a fingerprint pattern with an appended exclamation mark may be used.
+
@item GPGME_EXPORT_MODE_SECRET
@since{1.6.0}