mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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: 2957 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
dee026d761
commit
b456e5be91
4 changed files with 105 additions and 0 deletions
|
@ -17,3 +17,5 @@ E657FB607BB4F21C90BB6651BC067AF28BC90111.asc Key with subkeys (no protection)
|
|||
rsa-rsa-sample-1.asc RSA+RSA sample key (no passphrase)
|
||||
ed25519-cv25519-sample-1.asc Ed25519+CV25519 sample key (no passphrase)
|
||||
silent-running.asc Collection of sample secret keys (no passphrases)
|
||||
rsa-primary-auth-only.pub.asc rsa2408 primary only, usage: cert,auth
|
||||
rsa-primary-auth-only.sec.asc Ditto but the secret keyblock.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue