Home GnuPG
Diffusion GnuPG 68c8619114fd

gpg: Make --dry-run and show-only work for secret keys.

Description

gpg: Make --dry-run and show-only work for secret keys.

* g10/import.c (import_secret_one): Check for dry-run before
transferring keys.

The use of --dry-run or --import-option show-only had no effect when
importing a secret key and the public key already existed. If the
public key did not exist an error message inhibited the import of the
secret key.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 19 2017, 5:05 PM
Parents
rG1ba308aa0356: dirmngr: Do not follow https-to-http redirects.
Branches
Unknown
Tags
Unknown