Validate with the new public DSA key, not the old one

This commit is contained in:
Zorg committed 2015-06-05 21:59:32 -04:00
1 parent e9e5791e51
commit a7e8e2aad5
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}