From 2ace19e72b319031f02039565a3d1583e0dbbb01 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Wed, 19 Feb 2020 18:46:07 -0800 Subject: [PATCH] Read SUPublicEDKey from plist (like 68856e0 in 1.x) --- Sparkle/SUHost.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index b620efcd..a8d2fa5d 100755 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -135,6 +135,11 @@ return [path rangeOfString:@"/AppTranslocation/"].location != NSNotFound; } +- (NSString *_Nullable)publicEDKey +{ + return [self objectForInfoDictionaryKey:SUPublicEDKeyKey]; +} + - (NSString *_Nullable)publicDSAKey { // Maybe the key is just a string in the Info.plist. @@ -163,7 +168,7 @@ - (SUPublicKeys *)publicKeys { - return [[SUPublicKeys alloc] initWithDsa:[self publicDSAKey] ed:nil]; + return [[SUPublicKeys alloc] initWithDsa:[self publicDSAKey] ed:[self publicEDKey]]; } - (NSString * _Nullable)publicDSAKeyFileKey