From 7e9fc0f20b9fd5d671998c3509ec9244c51d435c Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Wed, 10 Sep 2008 10:37:47 -0500 Subject: [PATCH] Changed the security policy once more: The user is defined as "safe" and exempt from DSA signatures if he downloaded both the appcast and the update over SSL. --- SUBasicUpdateDriver.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SUBasicUpdateDriver.m b/SUBasicUpdateDriver.m index 3077a9c4..d6d3349b 100644 --- a/SUBasicUpdateDriver.m +++ b/SUBasicUpdateDriver.m @@ -158,9 +158,9 @@ - (void)downloadDidFinish:(NSURLDownload *)d { - // New in Sparkle 1.5: we're now checking signatures on all non-secure downloads, where "secure" is defined as being over SSL and downloaded from the same host as the appcast. + // New in Sparkle 1.5: we're now checking signatures on all non-secure downloads, where "secure" is defined as both the appcast and the download being transmitted over SSL. NSURL *downloadURL = [[d request] URL]; - if (!([[downloadURL scheme] isEqualToString:@"https"] && [[downloadURL host] isEqualToString:[appcastURL host]])) + if (!([[downloadURL scheme] isEqualToString:@"https"] && [[appcastURL scheme] isEqualToString:@"https"])) { if (![SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:[updateItem DSASignature] withPublicDSAKey:[host publicDSAKey]]) {