Add an export secret key feature.
authorWerner Koch <wk@gnupg.org>
Mon, 24 Aug 2015 10:41:24 +0000 (12:41 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 24 Aug 2015 10:41:24 +0000 (12:41 +0200)
commit2b632bbb78eee2b94c122f66d171a7c80e9c4fb0
tree5e49878e39a7f63eb9d311752e52c32ecc4ee091
parentccbaccbf2e0ba582d181b9ee4d8543d7c1248b2c
Add an export secret key feature.

* src/gpgme.h.in (GPGME_EXPORT_MODE_SECRET): New.
(GPGME_EXPORT_MODE_RAW): New.
(GPGME_EXPORT_MODE_PKCS12): New.
* src/export.c (export_start, export_ext_start): Allow new flags.
* src/engine-gpg.c (export_common): Support secret key export.
* src/engine-gpgsm.c (gpgsm_export, gpgsm_export_ext): Ditto.

* src/gpgme-tool.c (cmd_export): Add options --secret, --raw,
and --pkcs12.
* tests/run-export.c (main): Likewise.
--

Note that exporting secret X.509 keys requires GnuPG 2.1.8.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/gpgme.texi
src/engine-gpg.c
src/engine-gpgsm.c
src/export.c
src/gpgme-tool.c
src/gpgme.h.in
tests/run-export.c