aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorSimon Arlott <[email protected]>2017-02-05 21:31:35 +0000
committerDaniel Kahn Gillmor <[email protected]>2017-04-26 01:22:48 +0000
commitd9fd52afacebf98b5571de7269c9a1b37100e1ec (patch)
treec13706204ef260bfb0e6e9d7c313c14e11a228a9 /agent/command-ssh.c
parentdirmngr: Fix aliasing problem in dns.c. (diff)
downloadgnupg-dkg/T1967.tar.gz
gnupg-dkg/T1967.zip
g10: Skip signing keys where no secret key is available.dkg/T1967
* 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 <[email protected]>
Diffstat (limited to 'agent/command-ssh.c')
0 files changed, 0 insertions, 0 deletions