mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Validate with the new public DSA key, not the old one
This commit is contained in:
1 parent
e9e5791e51
commit
a7e8e2aad5
1 file changed
+1
-1
Vendored
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user