]> source.dussan.org Git - jgit.git/commit
GPG user ID matching: use case-insensitive matching 35/174135/1
authorThomas Wolf <thomas.wolf@paranor.ch>
Tue, 29 Dec 2020 09:15:20 +0000 (10:15 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Tue, 29 Dec 2020 09:15:20 +0000 (10:15 +0100)
commit8caaaf956a070864b8e700afc76b5ab9e8c12f36
tree6d4bae5005b52dcc33b43ce724e11e75a81e6dec
parent616a7eeaec2e2525001823585f1c44a9124ebb65
GPG user ID matching: use case-insensitive matching

Although not mentioned in the GPG documentation at [1], GPG uses
case-insensitive matching also for the '<' (exact e-mail) and '@'
(partial e-mail) operators. Matching for '=' (full exact match) is
case-sensitive. Compare [2].

[1] https://www.gnupg.org/documentation/manuals/gnupg/Specify-a-User-ID.html
[2] https://dev.gnupg.org/source/gnupg/browse/master/g10/keyring.c;22f7dddc34446a8c3e9eddf6cb281f16802351d7$890

Bug: 547789
Change-Id: I2f5ab65807d5dde3aa00ff032894701bbd8418c9
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.gpg.bc.test/tst/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgKeyLocatorTest.java
org.eclipse.jgit.gpg.bc/src/org/eclipse/jgit/gpg/bc/internal/BouncyCastleGpgKeyLocator.java