Skip to content

Commit

Permalink
Adjust keyserver check to support ldap keyservers
Browse files Browse the repository at this point in the history
ldap based key servers don’t support queries by key id, so use a fake email address instead which will work for sks as well as ldap.

[#178]
  • Loading branch information
lukele committed Dec 11, 2019
1 parent 6bf68d6 commit 3090b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GPGController.m
Original file line number Diff line number Diff line change
Expand Up @@ -2706,7 +2706,7 @@ - (void)testKeyserverWithCompletionHandler:(void (^)(BOOL working))completionHan
gpgTask.batchMode = YES;
gpgTask.nonBlocking = YES;
[gpgTask addArgument:@"--search-keys"];
[gpgTask addArgument:@"0x0000000000000000000000000000000000000000"]; // Search for a non-existing key.
[gpgTask addArgument:@"0x@0x0000000000000000000000000000000000000000.org"]; // Search for a non-existing key.


dispatch_group_t dispatchGroup = dispatch_group_create();
Expand Down

0 comments on commit 3090b75

Please sign in to comment.