mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
This patch prevents malicious downgrades, which are still possible with DSA validation: suppose there's some (signed) version with a security hole. A malicious attacker could serve an appcast with that version's URL and DSA signature, but a higher version number, forcing the user to "upgrade" to the version with the security hole. While I was at it, I fixed a bug that should have completely stopped .pkg installation from working since 1.5b1. Why didn't I hear anything about that? Does anyone actually use .pkgs? It still needs testing to be sure it works.
27 lines
803 B
Objective-C
27 lines
803 B
Objective-C
//
|
|
// SUInstaller.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 4/10/08.
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUINSTALLER_H
|
|
#define SUINSTALLER_H
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "SUVersionComparisonProtocol.h"
|
|
|
|
@class SUHost;
|
|
@interface SUInstaller : NSObject { }
|
|
+ (void)installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host delegate:delegate synchronously:(BOOL)synchronously versionComparator:(id <SUVersionComparison>)comparator;
|
|
+ (void)_finishInstallationWithResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:delegate;
|
|
@end
|
|
|
|
@interface NSObject (SUInstallerDelegateInformalProtocol)
|
|
- (void)installerFinishedForHost:(SUHost *)host;
|
|
- (void)installerForHost:(SUHost *)host failedWithError:(NSError *)error;
|
|
@end
|
|
|
|
#endif
|