mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 14:02:28 +00:00
Missing commit for error display
This commit is contained in:
@@ -57,7 +57,7 @@ APPKIT_EXTERN NSString *const MPDocumnetDidChangeCurrentEntryNotification;
|
||||
|
||||
#pragma mark Lock/Decrypt
|
||||
- (void)lockDatabase:(id)sender;
|
||||
- (BOOL)unlockWithPassword:(NSString *)password keyFileURL:(NSURL *)keyFileURL;
|
||||
- (BOOL)unlockWithPassword:(NSString *)password keyFileURL:(NSURL *)keyFileURL error:(NSError *__autoreleasing*)error;
|
||||
|
||||
#pragma mark Data Lookup
|
||||
/*
|
||||
|
||||
@@ -212,14 +212,13 @@ typedef NS_ENUM(NSUInteger, MPAlertType) {
|
||||
|
||||
#pragma mark Lock/Unlock/Decrypt
|
||||
|
||||
- (BOOL)unlockWithPassword:(NSString *)password keyFileURL:(NSURL *)keyFileURL {
|
||||
- (BOOL)unlockWithPassword:(NSString *)password keyFileURL:(NSURL *)keyFileURL error:(NSError *__autoreleasing*)error{
|
||||
KPKPassword *passwordData = [[KPKPassword alloc] initWithPassword:password key:keyFileURL];
|
||||
|
||||
self.key = keyFileURL;
|
||||
self.password = [password length] > 0 ? password : nil;
|
||||
|
||||
NSError *error;
|
||||
self.tree = [[KPKTree alloc] initWithData:_encryptedData password:passwordData error:&error];
|
||||
self.tree = [[KPKTree alloc] initWithData:_encryptedData password:passwordData error:error];
|
||||
|
||||
return (self.tree != nil);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user