diff --git a/src/key/store/default.m b/src/key/store/default.m index 1260af7..0723dc7 100644 --- a/src/key/store/default.m +++ b/src/key/store/default.m @@ -8,7 +8,6 @@ int default_store_store_key(const UInt8 *id, const UInt8 *key, const char *tag) CFDataRef bin; CFStringRef str; SecAccessControlRef access; - CFDateRef date; OSStatus status; // Setup attributes, @@ -24,6 +23,10 @@ int default_store_store_key(const UInt8 *id, const UInt8 *key, const char *tag) CFDictionarySetValue(attrs, kSecAttrLabel, str); CFRelease(str); + str = CFStringCreateWithCStringNoCopy(NULL, "Key to encrypt files before sending to Warp server", kCFStringEncodingUTF8, kCFAllocatorNull); + CFDictionarySetValue(attrs, kSecAttrDescription, str); + CFRelease(str); + bin = CFDataCreateWithBytesNoCopy(NULL, id, 16, kCFAllocatorNull); CFDictionarySetValue(attrs, kSecAttrApplicationLabel, bin); CFRelease(bin); @@ -41,10 +44,6 @@ int default_store_store_key(const UInt8 *id, const UInt8 *key, const char *tag) CFDictionarySetValue(attrs, kSecAttrAccessControl, access); CFRelease(access); - date = CFDateCreate(NULL, CFAbsoluteTimeGetCurrent()); - CFDictionarySetValue(attrs, kSecAttrCreationDate, date); - CFRelease(date); - // Store key. status = SecItemAdd(attrs, nil); CFRelease(attrs);