diff options
author | Werner Koch <[email protected]> | 2020-07-16 10:00:46 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-07-16 10:00:46 +0000 |
commit | 7f9e0ca57b29cc96bd1ca717d891c11db7435c5a (patch) | |
tree | 626649d39737ff25e85c035e64777b8898cf03fe /src/export.c | |
parent | core: Deprecate the non-working trustlist functions. (diff) | |
download | gpgme-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 'src/export.c')
-rw-r--r-- | src/export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/export.c b/src/export.c index abf260ad..4d576679 100644 --- a/src/export.c +++ b/src/export.c @@ -218,6 +218,7 @@ export_ext_start (gpgme_ctx_t ctx, int synchronous, const char *pattern[], if ((mode & ~(GPGME_EXPORT_MODE_EXTERN |GPGME_EXPORT_MODE_MINIMAL |GPGME_EXPORT_MODE_SECRET + |GPGME_EXPORT_MODE_SSH |GPGME_EXPORT_MODE_RAW |GPGME_EXPORT_MODE_PKCS12))) return gpg_error (GPG_ERR_INV_VALUE); /* Invalid flags in MODE. */ @@ -478,4 +479,3 @@ gpgme_op_export_keys (gpgme_ctx_t ctx, return TRACE_ERR (err); } - |