Ed25519 public key in Info.plist

This commit is contained in:
Kornel committed 2018-09-16 00:40:42 +01:00
1 parent a86bdb2fa8
commit 68856e074b
3 files changed
+8 -1

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ extern NSString *const SUScheduledCheckIntervalKey;
extern NSString *const SULastCheckTimeKey;
extern NSString *const SUExpectsDSASignatureKey;
extern NSString *const SUExpectsEDSignatureKey;
extern NSString *const SUPublicEDKeyKey;
extern NSString *const SUPublicDSAKeyKey;
extern NSString *const SUPublicDSAKeyFileKey;
extern NSString *const SUAutomaticallyUpdateKey;
+1
View File
@@ -34,6 +34,7 @@ NSString *const SUScheduledCheckIntervalKey = @"SUScheduledCheckInterval";
NSString *const SULastCheckTimeKey = @"SULastCheckTime";
NSString *const SUExpectsDSASignatureKey = @"SUExpectsDSASignature";
NSString *const SUExpectsEDSignatureKey = @"SUExpectsEDSignatureKey";
NSString *const SUPublicEDKeyKey = @"SUPublicEDKey";
NSString *const SUPublicDSAKeyKey = @"SUPublicDSAKey";
NSString *const SUPublicDSAKeyFileKey = @"SUPublicDSAKeyFile";
NSString *const SUAutomaticallyUpdateKey = @"SUAutomaticallyUpdate";
+6 -1
View File
@@ -110,6 +110,11 @@
return (statfs_info.f_flags & MNT_RDONLY) != 0;
}
- (NSString *__nullable)publicEDKey
{
return [self objectForInfoDictionaryKey:SUPublicEDKeyKey];
}
- (NSString *__nullable)publicDSAKey
{
// Maybe the key is just a string in the Info.plist.
@@ -138,7 +143,7 @@
- (SUPublicKeys *)publicKeys
{
return [[SUPublicKeys alloc] initWithDsa:[self publicDSAKey] ed:nil];
return [[SUPublicKeys alloc] initWithDsa:[self publicDSAKey] ed:[self publicEDKey]];
}
- (NSString * __nullable)publicDSAKeyFileKey