From 28ea47f796b2f433720a40b4b4903f844c4b6967 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 26 Apr 2015 13:58:40 -0400 Subject: [PATCH 01/11] Improved app update validation. See discussion in issue #441 If an invalid DSA or invalid code signature is provided, the update will fail, regardless if one of these requirements is valid. The logic before is that the update will succeed if either a valid DSA or matched code signature is provided. This still allows a code signature to change, be added, or be removed, as long as the DSA and the code signature (if provided) is valid. If no DSA is provided, then this is not possible, and the code signature from the host and update app must match. --- Sparkle/SUBasicUpdateDriver.m | 43 ++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 1b7242f1..04c7e449 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -221,27 +221,38 @@ - (BOOL)validateUpdateDownloadedToPath:(NSString *)downloadedPath extractedToPath:(NSString *)extractedPath DSASignature:(NSString *)DSASignature publicDSAKey:(NSString *)publicDSAKey { - NSString *newBundlePath = [SUInstaller appPathInUpdateFolder:extractedPath forHost:self.host]; - - if (newBundlePath) { - if ([SUCodeSigningVerifier hostApplicationIsCodeSigned]) { - NSError *error = nil; - if ([SUCodeSigningVerifier codeSignatureMatchesHostAndIsValidAtPath:newBundlePath error:&error]) { - return YES; - } else { - SULog(@"Code signature check on update failed: %@. Sparkle will use DSA signature instead.", error); - } - } else { - SULog(@"The host app is not signed using Apple Code Signing, and therefore cannot verify updates this way. Sparkle will use DSA signature instead."); - } + if (DSASignature && ![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]) { + SULog(@"The provided DSA signature is not valid. The update will be rejected."); + return NO; } + + NSString *newBundlePath = [SUInstaller appPathInUpdateFolder:extractedPath forHost:self.host]; + if (!newBundlePath) { + return (DSASignature != nil); + } + + BOOL canValidateByCodeSignature = [SUCodeSigningVerifier hostApplicationIsCodeSigned] && [SUCodeSigningVerifier applicationAtPathIsCodeSigned:newBundlePath]; - if (DSASignature) { - return [SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]; - } else { + if (!DSASignature && !canValidateByCodeSignature) { SULog(@"The appcast item for the update has no DSA signature. The update will be rejected, because both DSA and Apple Code Signing verification failed."); return NO; } + + NSError *error = nil; + + if (DSASignature) { + if (canValidateByCodeSignature && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:newBundlePath error:&error]) { + SULog(@"The application to update has an invalid code signature: %@. The update will be rejected.", error); + return NO; + } + } else { + if (![SUCodeSigningVerifier codeSignatureMatchesHostAndIsValidAtPath:newBundlePath error:&error]) { + SULog(@"The update will be rejected, because DSA verification failed and the code signature from the original and updated application failed to match: %@", error); + return NO; + } + } + + return YES; } - (void)downloadDidFinish:(NSURLDownload *)__unused d From f55d2a4439cfd92fe41458121607119587b8b4fd Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 26 Apr 2015 16:28:17 -0400 Subject: [PATCH 02/11] Host app needn't be signed to verify signature of updated app --- Sparkle/SUBasicUpdateDriver.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 04c7e449..f2191999 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -231,7 +231,8 @@ return (DSASignature != nil); } - BOOL canValidateByCodeSignature = [SUCodeSigningVerifier hostApplicationIsCodeSigned] && [SUCodeSigningVerifier applicationAtPathIsCodeSigned:newBundlePath]; + BOOL isAppCodeSigned = [SUCodeSigningVerifier applicationAtPathIsCodeSigned:newBundlePath]; + BOOL canValidateByCodeSignature = isAppCodeSigned && [SUCodeSigningVerifier hostApplicationIsCodeSigned]; if (!DSASignature && !canValidateByCodeSignature) { SULog(@"The appcast item for the update has no DSA signature. The update will be rejected, because both DSA and Apple Code Signing verification failed."); @@ -241,7 +242,7 @@ NSError *error = nil; if (DSASignature) { - if (canValidateByCodeSignature && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:newBundlePath error:&error]) { + if (isAppCodeSigned && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:newBundlePath error:&error]) { SULog(@"The application to update has an invalid code signature: %@. The update will be rejected.", error); return NO; } From 19fdb9276ddbaa7c46cdc1121b2752f38651458b Mon Sep 17 00:00:00 2001 From: Zorg Date: Mon, 27 Apr 2015 19:18:21 -0400 Subject: [PATCH 03/11] Only do DSA verification if public key is available --- Sparkle/SUBasicUpdateDriver.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index f2191999..81311ee7 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -221,27 +221,29 @@ - (BOOL)validateUpdateDownloadedToPath:(NSString *)downloadedPath extractedToPath:(NSString *)extractedPath DSASignature:(NSString *)DSASignature publicDSAKey:(NSString *)publicDSAKey { - if (DSASignature && ![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]) { + BOOL canValidateByDSASignature = DSASignature && publicDSAKey; + + if (canValidateByDSASignature && ![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]) { SULog(@"The provided DSA signature is not valid. The update will be rejected."); return NO; } NSString *newBundlePath = [SUInstaller appPathInUpdateFolder:extractedPath forHost:self.host]; if (!newBundlePath) { - return (DSASignature != nil); + return canValidateByDSASignature; } BOOL isAppCodeSigned = [SUCodeSigningVerifier applicationAtPathIsCodeSigned:newBundlePath]; BOOL canValidateByCodeSignature = isAppCodeSigned && [SUCodeSigningVerifier hostApplicationIsCodeSigned]; - if (!DSASignature && !canValidateByCodeSignature) { + if (!canValidateByDSASignature && !canValidateByCodeSignature) { SULog(@"The appcast item for the update has no DSA signature. The update will be rejected, because both DSA and Apple Code Signing verification failed."); return NO; } NSError *error = nil; - if (DSASignature) { + if (canValidateByDSASignature) { if (isAppCodeSigned && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:newBundlePath error:&error]) { SULog(@"The application to update has an invalid code signature: %@. The update will be rejected.", error); return NO; From 87da4cc0f2d953b36044ed03fe9c5dd9fd3a7cbb Mon Sep 17 00:00:00 2001 From: Zorg Date: Mon, 4 May 2015 22:49:57 -0400 Subject: [PATCH 04/11] Distinguish between install path found and update being a package --- Sparkle/SUBasicUpdateDriver.m | 8 +++++++- Sparkle/SUInstaller.h | 2 +- Sparkle/SUInstaller.m | 7 ------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 81311ee7..43978fc7 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -228,8 +228,14 @@ return NO; } - NSString *newBundlePath = [SUInstaller appPathInUpdateFolder:extractedPath forHost:self.host]; + BOOL isPackage = NO; + NSString *newBundlePath = [SUInstaller installSourcePathInUpdateFolder:extractedPath forHost:self.host isPackage:&isPackage isGuided:NULL]; if (!newBundlePath) { + SULog(@"No suitable install is found in the update. The update will be rejected."); + return NO; + } + + if (isPackage) { return canValidateByDSASignature; } diff --git a/Sparkle/SUInstaller.h b/Sparkle/SUInstaller.h index fe82f885..153f3d42 100644 --- a/Sparkle/SUInstaller.h +++ b/Sparkle/SUInstaller.h @@ -15,7 +15,7 @@ @class SUHost; @interface SUInstaller : NSObject -+ (NSString *)appPathInUpdateFolder:(NSString *)updateFolder forHost:(SUHost *)host; ++ (NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(BOOL *)isGuidedPtr; + (void)installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath versionComparator:(id)comparator completionHandler:(void (^)(NSError *))completionHandler; + (void)finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result error:(NSError *)error completionHandler:(void (^)(NSError *))completionHandler; + (NSString *)updateFolder; diff --git a/Sparkle/SUInstaller.m b/Sparkle/SUInstaller.m index 2513973a..83b8d610 100644 --- a/Sparkle/SUInstaller.m +++ b/Sparkle/SUInstaller.m @@ -121,13 +121,6 @@ static NSString *sUpdateFolder = nil; return newAppDownloadPath; } -+ (NSString *)appPathInUpdateFolder:(NSString *)updateFolder forHost:(SUHost *)host -{ - BOOL isPackage = NO; - NSString *path = [self installSourcePathInUpdateFolder:updateFolder forHost:host isPackage:&isPackage isGuided:nil]; - return isPackage ? nil : path; -} - + (void)installFromUpdateFolder:(NSString *)inUpdateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath versionComparator:(id)comparator completionHandler:(void (^)(NSError *))completionHandler { BOOL isPackage = NO; From 3a304123d95d03181df64bd99061b30b8654e697 Mon Sep 17 00:00:00 2001 From: Zorg Date: Mon, 4 May 2015 23:15:17 -0400 Subject: [PATCH 05/11] Renaming newBundlePath to installSourcePath --- Sparkle/SUBasicUpdateDriver.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 43978fc7..158aeca5 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -229,8 +229,8 @@ } BOOL isPackage = NO; - NSString *newBundlePath = [SUInstaller installSourcePathInUpdateFolder:extractedPath forHost:self.host isPackage:&isPackage isGuided:NULL]; - if (!newBundlePath) { + NSString *installSourcePath = [SUInstaller installSourcePathInUpdateFolder:extractedPath forHost:self.host isPackage:&isPackage isGuided:NULL]; + if (!installSourcePath) { SULog(@"No suitable install is found in the update. The update will be rejected."); return NO; } @@ -239,7 +239,7 @@ return canValidateByDSASignature; } - BOOL isAppCodeSigned = [SUCodeSigningVerifier applicationAtPathIsCodeSigned:newBundlePath]; + BOOL isAppCodeSigned = [SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath]; BOOL canValidateByCodeSignature = isAppCodeSigned && [SUCodeSigningVerifier hostApplicationIsCodeSigned]; if (!canValidateByDSASignature && !canValidateByCodeSignature) { @@ -250,12 +250,12 @@ NSError *error = nil; if (canValidateByDSASignature) { - if (isAppCodeSigned && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:newBundlePath error:&error]) { + if (isAppCodeSigned && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:installSourcePath error:&error]) { SULog(@"The application to update has an invalid code signature: %@. The update will be rejected.", error); return NO; } } else { - if (![SUCodeSigningVerifier codeSignatureMatchesHostAndIsValidAtPath:newBundlePath error:&error]) { + if (![SUCodeSigningVerifier codeSignatureMatchesHostAndIsValidAtPath:installSourcePath error:&error]) { SULog(@"The update will be rejected, because DSA verification failed and the code signature from the original and updated application failed to match: %@", error); return NO; } From da06dc80d6bcdb4594fa0892f4a04b1c9432b154 Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 5 Jun 2015 18:57:36 -0400 Subject: [PATCH 06/11] Rely on code signing and the DSA key in the new app Instead of relying on whether the DSA signature is provided in the appcast (which we can't trust), we rely on detecting if the public key in the new and old app differ. If they differ, then the code signatures from both apps must match. The idea is that code signing is reliable in being able to tell that the Info.plist and public DSA files came from the developer and are intact. This still allows a developer to lose access to their DSA private key, or to their Apple code signature, and be able to push new updates (as long as they didn't lose access to both). The new change, however, is that if the new app has a public DSA key, then the appcast item must have a DSA signature for the app, even if the app is code signed. --- Sparkle/SUBasicUpdateDriver.m | 55 ++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 158aeca5..1fd02a89 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -221,42 +221,55 @@ - (BOOL)validateUpdateDownloadedToPath:(NSString *)downloadedPath extractedToPath:(NSString *)extractedPath DSASignature:(NSString *)DSASignature publicDSAKey:(NSString *)publicDSAKey { - BOOL canValidateByDSASignature = DSASignature && publicDSAKey; - - if (canValidateByDSASignature && ![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]) { - SULog(@"The provided DSA signature is not valid. The update will be rejected."); - return NO; - } - BOOL isPackage = NO; NSString *installSourcePath = [SUInstaller installSourcePathInUpdateFolder:extractedPath forHost:self.host isPackage:&isPackage isGuided:NULL]; - if (!installSourcePath) { + if (installSourcePath == nil) { SULog(@"No suitable install is found in the update. The update will be rejected."); return NO; } - if (isPackage) { - return canValidateByDSASignature; - } - - BOOL isAppCodeSigned = [SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath]; - BOOL canValidateByCodeSignature = isAppCodeSigned && [SUCodeSigningVerifier hostApplicationIsCodeSigned]; - - if (!canValidateByDSASignature && !canValidateByCodeSignature) { - SULog(@"The appcast item for the update has no DSA signature. The update will be rejected, because both DSA and Apple Code Signing verification failed."); + NSBundle *newBundle = [NSBundle bundleWithPath:installSourcePath]; + if (newBundle == nil) { + SULog(@"No suitable bundle is found in the update. The update will be rejected."); return NO; } - NSError *error = nil; + SUHost *newHost = [[SUHost alloc] initWithBundle:newBundle]; + NSString *newPublicDSAKey = newHost.publicDSAKey; - if (canValidateByDSASignature) { - if (isAppCodeSigned && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:installSourcePath error:&error]) { + if (newPublicDSAKey != nil) { + if (DSASignature == nil) { + SULog(@"No DSA signature is found in the appcast item. The update will be rejected."); + return NO; + } + + if (![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]) { + SULog(@"DSA signature validation failed. The update will be rejected."); + return NO; + } + } + + BOOL dsaKeysMatch = (publicDSAKey == nil || newPublicDSAKey == nil) ? NO : [publicDSAKey isEqualToString:newPublicDSAKey]; + if (dsaKeysMatch) { + NSError *error = nil; + if (!isPackage && [SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath] && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:installSourcePath error:&error]) { SULog(@"The application to update has an invalid code signature: %@. The update will be rejected.", error); return NO; } } else { + if (isPackage) { + SULog(@"Public DSA key in update differs from the current package. The update will be rejected."); + return NO; + } + + if (![SUCodeSigningVerifier hostApplicationIsCodeSigned] || ![SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath]) { + SULog(@"Pubic DSA keys differ and both apps are not code signed. The update will be rejected."); + return NO; + } + + NSError *error = nil; if (![SUCodeSigningVerifier codeSignatureMatchesHostAndIsValidAtPath:installSourcePath error:&error]) { - SULog(@"The update will be rejected, because DSA verification failed and the code signature from the original and updated application failed to match: %@", error); + SULog(@"The update will be rejected because the code signature from the original and updated application failed to match: %@", error); return NO; } } From b1d887264fc5782b83b466b78b145e844d6f7fac Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 5 Jun 2015 21:37:09 -0400 Subject: [PATCH 07/11] Fix package validation from previous commit Modern packages aren't distributed as bundles, and we wouldn't be able to obtain a "new" public DSA key from an update --- Sparkle/SUBasicUpdateDriver.m | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 1fd02a89..9ad5fcdc 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -228,6 +228,17 @@ return NO; } + // Modern packages are not distributed as bundles and are code signed differently than regular applications + if (isPackage) { + BOOL packageValidated = [SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]; + + if (!packageValidated) { + SULog(@"DSA signature validation failed. The update will be rejected."); + } + + return packageValidated; + } + NSBundle *newBundle = [NSBundle bundleWithPath:installSourcePath]; if (newBundle == nil) { SULog(@"No suitable bundle is found in the update. The update will be rejected."); @@ -252,16 +263,11 @@ BOOL dsaKeysMatch = (publicDSAKey == nil || newPublicDSAKey == nil) ? NO : [publicDSAKey isEqualToString:newPublicDSAKey]; if (dsaKeysMatch) { NSError *error = nil; - if (!isPackage && [SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath] && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:installSourcePath error:&error]) { + if ([SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath] && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:installSourcePath error:&error]) { SULog(@"The application to update has an invalid code signature: %@. The update will be rejected.", error); return NO; } } else { - if (isPackage) { - SULog(@"Public DSA key in update differs from the current package. The update will be rejected."); - return NO; - } - if (![SUCodeSigningVerifier hostApplicationIsCodeSigned] || ![SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath]) { SULog(@"Pubic DSA keys differ and both apps are not code signed. The update will be rejected."); return NO; From 7c705e5fff64559dee444756b6798c00f5e0e766 Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 5 Jun 2015 21:39:57 -0400 Subject: [PATCH 08/11] Remove redundant check that SUDSAVerifier does --- Sparkle/SUBasicUpdateDriver.m | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 9ad5fcdc..b54b54ef 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -249,11 +249,6 @@ NSString *newPublicDSAKey = newHost.publicDSAKey; if (newPublicDSAKey != nil) { - if (DSASignature == nil) { - SULog(@"No DSA signature is found in the appcast item. The update will be rejected."); - return NO; - } - if (![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]) { SULog(@"DSA signature validation failed. The update will be rejected."); return NO; From e9e5791e517539d28ffb9091f7b2e4392c4806ea Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 5 Jun 2015 21:46:52 -0400 Subject: [PATCH 09/11] s/Pubic/Public/ --- Sparkle/SUBasicUpdateDriver.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index b54b54ef..bafcd0bd 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -264,7 +264,7 @@ } } else { if (![SUCodeSigningVerifier hostApplicationIsCodeSigned] || ![SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath]) { - SULog(@"Pubic DSA keys differ and both apps are not code signed. The update will be rejected."); + SULog(@"Public DSA keys differ and both apps are not code signed. The update will be rejected."); return NO; } From a7e8e2aad575459dd9ec18c2fa71279e34d969fc Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 5 Jun 2015 21:59:32 -0400 Subject: [PATCH 10/11] 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; } From 6ca90a8c114f44ddfdae46277af94d8a700b34ae Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 5 Jun 2015 22:22:05 -0400 Subject: [PATCH 11/11] Clarification that DSA keys differ or are absent --- Sparkle/SUBasicUpdateDriver.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index e288229d..29e261fc 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -264,7 +264,7 @@ } } else { if (![SUCodeSigningVerifier hostApplicationIsCodeSigned] || ![SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath]) { - SULog(@"Public DSA keys differ and both apps are not code signed. The update will be rejected."); + SULog(@"Public DSA keys differ or are absent, and both apps are not code signed. The update will be rejected."); return NO; }