diff options
author | Werner Koch <wk@gnupg.org> | 2020-07-16 12:00:46 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-07-16 12:00:46 +0200 |
commit | 7f9e0ca57b29cc96bd1ca717d891c11db7435c5a (patch) | |
tree | 626649d39737ff25e85c035e64777b8898cf03fe /src/export.c | |
parent | 858909168298e8c6fb6f9f9009be2ee2d0d9f0ec (diff) | |
download | gpgme-7f9e0ca57b29cc96bd1ca717d891c11db7435c5a.tar.gz |
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 <wk@gnupg.org>
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); } - |