1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-30 16:17:02 +01:00
Simon Arlott d9fd52afac g10: Skip signing keys where no secret key is available.
* g10/getkey.c (finish_lookup): When requiring PUBKEY_USAGE_SIG, skip
over keys where no signing key is available.

--

This should only be relevant when gpg is required to choose which key
to sign with -- if verifying signatures, we already know which subkey
to look at, and indeed gpg doesn't seem to have a problem with this.

This patch comes from
https://bugs.gnupg.org/gnupg/file793/sign-fix.patch

I (dkg) have reviewed and tested it with missing local keys, and it
makes sense to me as the default behavior.  If the user has the secret
key for a signing-capable subkey available and the command is --sign,
it should be used.

If the user has explicitly specified a subkey that happens to be
missing (e.g. with the trailing ! for --default-key 0x${FPR}!) then
this does not override that behavior (the signature will still fail).

GnuPG-bug-id: 1967
Debian-bug-id: 834922

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2017-04-25 21:22:48 -04:00
..
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-28 12:11:02 +02:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-04-17 09:15:13 +09:00
2017-03-07 20:25:54 +09:00
2015-02-04 09:15:34 +01:00
2015-02-04 09:15:34 +01:00
2017-04-12 14:47:30 +09:00
2017-03-07 20:25:54 +09:00
2017-03-31 20:07:20 +02:00
2017-03-07 20:25:54 +09:00
2017-03-31 20:07:20 +02:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-04-13 12:54:52 +09:00
2017-03-07 20:25:54 +09:00
2017-03-20 08:40:21 +01:00
2016-01-22 10:54:10 +01:00
2017-04-17 09:33:19 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-01-23 19:16:55 +01:00
2017-02-21 13:11:46 -05:00
2017-03-07 20:32:09 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-31 20:07:20 +02:00
2017-01-23 19:16:55 +01:00
2016-03-08 14:08:49 +01:00
2017-03-31 20:07:20 +02:00
2017-03-31 20:07:20 +02:00
2017-03-07 20:25:54 +09:00
2017-04-17 09:15:13 +09:00
2016-12-06 12:16:56 +01:00
2017-03-31 20:07:20 +02:00
2017-03-07 20:25:54 +09:00