Using old KeePassKit API again

Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
michael starke
2015-07-28 09:33:37 +02:00
parent cbec260c79
commit 96edfb8088

View File

@@ -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");
}