Home GnuPG
Diffusion GnuPG b456e5be91dc

gpg: Make --export-ssh-key work for the primary key.
b456e5be91dcUnpublished

Unpublished Commit · Learn More

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

Description

gpg: Make --export-ssh-key work for the primary key.

* g10/export.c (export_ssh_key): Also check the primary key.

If no suitable subkey was found for export, we now check whether the
primary key is suitable for export and export this one. Without this
change it was only possible to export the primary key by using the '!'
suffix in the key specification.

Also added a sample key for testing this.

  • GnuPG-bug-id: T2957
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 14 2017, 10:55 AM
Parents
rGdee026d761ae: dirmngr: Do a DNS lookup even if it is missing from nsswitch.conf.
Branches
Unknown
Tags
Unknown