mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-22 04:30:47 +00:00
Adds an opt-in option (SUVerifyUpdateBeforeExtraction) to enforce verifying updates before extracting them for stronger security. EdDSA signing is required to use this option. As fallback in case EdDSA keys are lost, disk image archives's code signatures are validated assuming it's Developer ID signed. Key rotation is still possible. Apple Archives (aar, yaa) now require using this option.
26 lines
596 B
Objective-C
26 lines
596 B
Objective-C
//
|
|
// SUUnarchiverProtocol.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/26/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol SUUnarchiverProtocol <NSObject>
|
|
|
|
+ (BOOL)mustValidateBeforeExtraction;
|
|
|
|
- (void)unarchiveWithCompletionBlock:(void (^)(NSError * _Nullable))completionBlock progressBlock:(void (^ _Nullable)(double))progressBlock waitForCleanup:(BOOL)waitForCleanup;
|
|
|
|
@property (nonatomic, readonly) BOOL needsVerifyBeforeExtractionKey;
|
|
|
|
- (NSString *)description;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|