From 9944f2496c9627ab111eb43a5da68e430a7c0d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kornel=20Lesi=C5=84ski?= Date: Thu, 23 Jun 2016 17:24:09 +0100 Subject: [PATCH] Comment --- Sparkle/SUBasicUpdateDriver.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 32567d11..b78386f6 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -319,6 +319,8 @@ BOOL dsaKeysMatch = (publicDSAKey == nil || newPublicDSAKey == nil) ? NO : [publicDSAKey isEqualToString:newPublicDSAKey]; + // This check is not a security measure, because the new key is not trusted. + // The check ensures that the app author has correctly used DSA keys, so that the app will be updateable in the next version if (newPublicDSAKey != nil) { if (![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:newPublicDSAKey]) { SULog(@"DSA signature validation failed. The update has a public DSA key and is signed with a DSA key, but the %@ doesn't match the signature. The update will be rejected.",