mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
Using old KeePassKit API again
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
|
||||
NSURL *url = [myBundle URLForResource:@"Keepass2Key" withExtension:@"xml"];
|
||||
NSError *error;
|
||||
NSData *data = [NSData dataWithContentsOfKeyFile:url error:&error];
|
||||
NSData *data = [NSData dataWithContentsOfKeyFile:url version:KPKLegacyVersion error:&error];
|
||||
XCTAssertNotNil(data, @"Data should be loaded");
|
||||
XCTAssertNil(error, @"No error should occur on keyfile loading");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user