]> source.dussan.org Git - jgit.git/commit
GpgKeyLocator: Return a signing key for a user instead of the master key 13/151413/1
authorRoan Hofland <roan.hofland@hotmail.com>
Tue, 22 Oct 2019 00:16:43 +0000 (02:16 +0200)
committerRoan Hofland <roan.hofland@hotmail.com>
Tue, 22 Oct 2019 00:28:18 +0000 (02:28 +0200)
commit0902e060f737324434ec019f7d68d1320f733416
tree63174350d61d1d7a67d0d3a1670576202da6496c
parent68b8317a09705aa90fc4a4ff1321b7cb4bd726e7
GpgKeyLocator: Return a signing key for a user instead of the master key

Currently when a GPG key is looked up using a user identity the first
key from the keyring that has this user identity is returned.
The code was changed to instead return the first signing [S] key in this
keyring and only return the master key if no such signing key was found.
If the master key also does not have the signing flag set null is
returned instead.

Bug: 552288
Change-Id: I194862991d13c2c7ff34a60a54a227167f88f53b
Signed-off-by: Roan Hofland <roan.hofland@hotmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/internal/BouncyCastleGpgKeyLocator.java