Killed off SUExpectsDSASignatureKey.

This commit is contained in:
Andy Matuschak committed 2008-09-06 19:07:54 -05:00
1 parent 1d3ab8d6bb
commit 588cad8d91
3 files changed
+1 -8

No files matched your search

-1
View File
@@ -20,7 +20,6 @@ extern NSString *SUShowReleaseNotesKey;
extern NSString *SUSkippedVersionKey;
extern NSString *SUScheduledCheckIntervalKey;
extern NSString *SULastCheckTimeKey;
extern NSString *SUExpectsDSASignatureKey;
extern NSString *SUPublicDSAKeyKey;
extern NSString *SUPublicDSAKeyFileKey;
extern NSString *SUAutomaticallyUpdateKey;
+1 -3
View File
@@ -98,11 +98,9 @@
- (BOOL)allowsAutomaticUpdates
{
if (![[host objectForInfoDictionaryKey:SUExpectsDSASignatureKey] boolValue])
return NO; // Automatic updating requires DSA-signed updates
if (![host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey])
return YES; // defaults to YES
return [[host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] boolValue];
return [host boolForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey];
}
- (void)awakeFromNib
-4
View File
@@ -270,10 +270,6 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
if ([host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] && [host boolForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] == NO)
return NO;
// If we're not using DSA signatures, we aren't going to trust any updates automatically.
if ([host boolForInfoDictionaryKey:SUExpectsDSASignatureKey] != YES)
return NO;
// Otherwise, automatically downloading updates is allowed. Does the user want it?
return [host boolForUserDefaultsKey:SUAutomaticallyUpdateKey];
}