From a7e8e2aad575459dd9ec18c2fa71279e34d969fc Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 5 Jun 2015 21:59:32 -0400 Subject: [PATCH] Validate with the new public DSA key, not the old one --- Sparkle/SUBasicUpdateDriver.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index bafcd0bd..e288229d 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -249,7 +249,7 @@ NSString *newPublicDSAKey = newHost.publicDSAKey; if (newPublicDSAKey != nil) { - if (![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]) { + if (![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:newPublicDSAKey]) { SULog(@"DSA signature validation failed. The update will be rejected."); return NO; }