Skip to content

Commit

Permalink
Use long instead of short key ID.
Browse files Browse the repository at this point in the history
[#246 state:fixed]
  • Loading branch information
Mento committed Jun 15, 2018
1 parent 34559b6 commit 2675695
Show file tree
Hide file tree
Showing 7 changed files with 1,751 additions and 9,225 deletions.
2,576 changes: 436 additions & 2,140 deletions Resources/de.lproj/RecipientWindow.xib

Large diffs are not rendered by default.

2,905 changes: 436 additions & 2,469 deletions Resources/en.lproj/RecipientWindow.xib

Large diffs are not rendered by default.

2,576 changes: 436 additions & 2,140 deletions Resources/it.lproj/RecipientWindow.xib

Large diffs are not rendered by default.

2,905 changes: 436 additions & 2,469 deletions Resources/old/en.lproj/RecipientWindow.xib

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Source/FileVerificationDataSource.m
Expand Up @@ -92,7 +92,7 @@ - (void)addResultFromSigOnMain:(NSArray *)args {
}


NSString *string1 = [NSString stringWithFormat:@"Signed by: %@ (%@) – ", sig.userIDDescription, sig.fingerprint.shortKeyID];
NSString *string1 = [NSString stringWithFormat:@"Signed by: %@ (%@) – ", sig.userIDDescription, sig.fingerprint.keyID];
NSMutableAttributedString *resultString = [[NSMutableAttributedString alloc] initWithString:string1 attributes:nil];

NSDictionary *attributes = @{NSFontAttributeName: [NSFont boldSystemFontOfSize:[NSFont systemFontSize]], NSBackgroundColorAttributeName: bgColor};
Expand Down
8 changes: 4 additions & 4 deletions Source/GPGServices.m
Expand Up @@ -299,8 +299,8 @@ - (NSString *)myKey {
NSData *keyData = [ctx exportKeys:[NSArray arrayWithObject:selectedPrivateKey] allowSecret:NO fullExport:NO];

if (keyData == nil) {
NSString *msg = [NSString stringWithFormat:NSLocalizedString(@"Could not export key %@", @"arg:shortKeyID"),
selectedPrivateKey.keyID.shortKeyID];
NSString *msg = [NSString stringWithFormat:NSLocalizedString(@"Could not export key %@", @"arg:keyID"),
selectedPrivateKey.keyID];
[self displayOperationFailedNotificationWithTitle:NSLocalizedString(@"Export failed", nil)
message:msg];
return nil;
Expand Down Expand Up @@ -453,7 +453,7 @@ - (NSString *)decryptTextString:(NSString *)inputString {
break;
case GPGErrorNoPublicKey:
errorMessage = [NSString stringWithFormat:NSLocalizedString(@"Unable to verify signature! Missing public key: %@", nil),
sig.fingerprint.shortKeyID];
sig.fingerprint];
break;
default:
errorMessage = [NSString stringWithFormat:NSLocalizedString(@"Unexpected GPG signature status %i", @"arg:GPGSignature status"), status ];
Expand Down Expand Up @@ -586,7 +586,7 @@ - (void)verifyTextString:(NSString *)inputString {
break;
case GPGErrorNoPublicKey:
errorMessage = [NSString stringWithFormat:NSLocalizedString(@"Unable to verify signature! Missing public key: %@", nil),
sig.fingerprint.shortKeyID];
sig.fingerprint];
break;
default:
errorMessage = [NSString stringWithFormat:NSLocalizedString(@"Unexpected GPG signature status %i", @"arg:GPGSignature status"), status ];
Expand Down
4 changes: 2 additions & 2 deletions Source/KeyChooserDataSource.m
Expand Up @@ -106,9 +106,9 @@ - (void)updateDescriptions {
description = email;
}
if (description) {
description = [NSString stringWithFormat:@"%@ (%@)", description, key.shortKeyID];
description = [NSString stringWithFormat:@"%@ (%@)", description, key.keyID];
} else {
description = key.shortKeyID;
description = key.keyID;
}

[arr addObject:description];
Expand Down

0 comments on commit 2675695

Please sign in to comment.