From 7f9e0ca57b29cc96bd1ca717d891c11db7435c5a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 16 Jul 2020 12:00:46 +0200 Subject: 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 --- doc/gpgme.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') 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} -- cgit v1.2.3