Adodopted changes in KeePassLib

This commit is contained in:
michael starke
2013-06-25 23:15:54 +02:00
parent 16ee3c5ce6
commit c2e9cfc7d6
6 changed files with 42 additions and 10 deletions

View File

@@ -80,16 +80,13 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey";
}
- (BOOL)writeToURL:(NSURL *)url ofType:(NSString *)typeName error:(NSError **)outError {
@try {
[KdbWriterFactory persist:self.tree file:[url path] withPassword:self.passwordHash];
}
@catch (NSException *exception) {
NSLog(@"%@", [exception description]);
NSError *error = nil;
[KdbWriterFactory persist:self.tree fileURL:url withPassword:self.passwordHash error:&error];
if(error) {
NSLog(@"%@", [error localizedDescription]);
return NO;
}
return YES;
}
- (BOOL)readFromURL:(NSURL *)url ofType:(NSString *)typeName error:(NSError **)outError {
@@ -109,7 +106,6 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey";
self.tree = [KdbReaderFactory load:[[self fileURL] path] withPassword:self.passwordHash];
}
@catch (NSException *exception) {
NSLog(@"%@", [exception description]);
return NO;
}

View File

@@ -48,7 +48,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1103</string>
<string>1121</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSHumanReadableCopyright</key>

View File

@@ -0,0 +1,7 @@
/*
Errors.strings
MacPass
Created by Michael Starke on 25.06.13.
Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
*/

View File

@@ -0,0 +1,9 @@
/*
Errors.strings
MacPass
Created by Michael Starke on 25.06.13.
Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
*/
"ERROR_TREE_CLASS_NOT_RECOGNIZED" = "Tree class not regonized";