Home GnuPG
Diffusion GPGME 2b632bbb78ee

Add an export secret key feature.
2b632bbb78eeUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Aug 24 2015, 12:41 PM
Parents
rMccbaccbf2e0b: Parse INQUIRE_MAXLEN in the passphrase callback.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM2b632bbb78ee: Add an export secret key feature. (authored by Werner Koch <wk@gnupg.org>).Aug 24 2015, 12:41 PM