-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
searching for the public key is now case insensitive. #6
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6 +/- ##
========================================
Coverage 78.9% 78.9%
Complexity 173 173
========================================
Files 32 32
Lines 782 782
Branches 104 104
========================================
Hits 617 617
Misses 105 105
Partials 60 60
Continue to review full report at Codecov.
|
Hi Mike, thanks for the PR! I tested with several versions of gpg2 and cases insensitive is indeed the default behaviour. Two minor issues:
|
Hi Jens, i will fix both isues. /mig |
ping :-) |
88b9762
to
c4124fe
Compare
I am currently on vacation. Then I will take care of the case. |
Enjoy your vacation! I did some (minor) refactorings, please don't forget to pull before continuing on the code |
I'm still alive. :) I have fixed your first request. I will try to implement the tests this week. |
Hi @mgrossmann, my reformatting of the source code made this merge very, very messy. The easiest way would be for you to check out the current master (warning, this will force the current branch to my master, removing all your changes ) : git fetch https://github.com/mgrossmann/bouncy-gpg.git master
git reset --hard FETCH_HEAD and manually re-apply your commit 477c7c0: --- a/src/main/java/name/neuhalfen/projects/crypto/bouncycastle/openpgp/keys/PGPUtilities.java
+++ b/src/main/java/name/neuhalfen/projects/crypto/bouncycastle/openpgp/keys/PGPUtilities.java
@@ -80,8 +80,9 @@ public final class PGPUtilities {
throw new NullPointerException("publicKeyRings must not be null");
}
- // the true parameter indicates, that partial matching of the publicKeyUid is enough.
- final Iterator<?> keyRings = publicKeyRings.getKeyRings("<" + publicKeyUid + ">", true);
+ // the first true parameter indicates, that partial matching of the publicKeyUid is enough.
+ // the second true parameter indicates, that matching the publicKeyUid is case insensitive.
+ final Iterator<?> keyRings = publicKeyRings.getKeyRings("<" + publicKeyUid + ">", true, true);
PGPPublicKeyRing returnKeyRing = null;
while (keyRings.hasNext()) {
final Object currentKeyRing = keyRings.next(); Sorry for the inconvenience |
…s now case insensitive.
Hi, any progress on the test? Cheers! |
Gesundes neues Jahr.
Leider noch nicht, aber die guten Vorsätze beinhalten auch die Tests.
VG
…On 2. Jan. 2018, 08:37 +0100, Jens Neuhalfen ***@***.***>, wrote:
Hi, any progress on the test? Cheers!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Implemented in Rfc4880KeySelectionStrategy |
it would be nice to ignore the case while searching for keyrings
ps. my code changes belong to the same license like the original code.