From 4fa52e23ef8ba0615ea8050e0b36bffc78db1b4d Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Tue, 5 Dec 2017 18:28:11 +0100 Subject: [PATCH] added HmacOtp comment --- MacPass/MPAddCustomFieldContextMenuDelegate.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/MacPass/MPAddCustomFieldContextMenuDelegate.m b/MacPass/MPAddCustomFieldContextMenuDelegate.m index 48bda314..210498a9 100644 --- a/MacPass/MPAddCustomFieldContextMenuDelegate.m +++ b/MacPass/MPAddCustomFieldContextMenuDelegate.m @@ -12,6 +12,15 @@ NSString *const MPHMACOTPSeedAttributeKey = @"HMACOTP-Seed"; NSString *const MPHMACOTPConfigAttributeKey = @"HMACOTP-Config"; +/* +HmacOtp-Secret (the UTF-8 representation of the value is the secret), +HmacOtp-Secret-Hex (secret as hex string), +HmacOtp-Secret-Base32 (secret as Base32 string) +HmacOtp-Secret-Base64 (secret as Base64 string) + +HmacOtp-Counter field. +*/ + @interface MPAddCustomFieldContextMenuDelegate () @property (readonly, nonatomic) KPKEntry *entry; @end @@ -32,7 +41,6 @@ NSString *const MPHMACOTPConfigAttributeKey = @"HMACOTP-Config"; } - (void)_setupHOTPMenuItemsToMenu:(NSMenu *)menu { - BOOL hasConfigAttribute = nil != [self.entry customAttributeWithKey:MPHMACOTPConfigAttributeKey]; if(!hasConfigAttribute) { NSMenuItem *item = [[NSMenuItem alloc] initWithTitle:@"Add config" action:@selector(_addHMACConfig:) keyEquivalent:@""];