Replaced deprecated method

-initWithBase64Encoding has been deprecated since OS X 10.9, and that
is our deployment target.
This commit is contained in:
Philippe Casgrain authored and Kornel committed 2020-06-16 13:19:43 +01:00
1 parent 0900d09ab3
commit 9a74b23f7f
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ static NSData *decode(NSString *str) {
}
NSString *stripped = [str stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet];
return [[NSData alloc] initWithBase64Encoding:stripped];
return [[NSData alloc] initWithBase64EncodedString:stripped options:0];
}
- (instancetype)initWithDsa:(NSString * _Nullable)maybeDsa ed:(NSString * _Nullable)maybeEd25519