Fixes 268723

Now forcing a DSA signature check if the client provides a public key with the app.
This commit is contained in:
Andy Matuschak committed 2008-09-10 17:48:57 -05:00
1 parent 9a0acca849
commit ccd44c0cb2
1 file changed
+1 -1
+1 -1
View File
@@ -160,7 +160,7 @@
{
// 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"] && [[appcastURL scheme] isEqualToString:@"https"]))
if (![[downloadURL scheme] isEqualToString:@"https"] || ![[appcastURL scheme] isEqualToString:@"https"] || [host publicDSAKey])
{
if (![SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:[updateItem DSASignature] withPublicDSAKey:[host publicDSAKey]])
{