Skip to content

Commit

Permalink
Fix finding SiVa cert
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrebane committed Oct 21, 2024
1 parent 23128d1 commit f50c661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MoppLib/MoppLib/MoppLibDigidocManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ int logLevel() const override {
}

NSString* getSivaCert(NSString *fileName) const {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSString *libraryDirectory = [paths objectAtIndex:0];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *cachesDirectory = [paths objectAtIndex:0];
NSString *subfolderName = @"siva-cert";

NSString *subfolderPath = [libraryDirectory stringByAppendingPathComponent:subfolderName];
NSString *subfolderPath = [cachesDirectory stringByAppendingPathComponent:subfolderName];

NSString *filePath = [subfolderPath stringByAppendingPathComponent:fileName];

Expand Down

0 comments on commit f50c661

Please sign in to comment.