X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..6b200bc335dc93c5516ccb52f14bd896d8c7fad7:/OSX/sec/Security/Tool/keychain_util.c diff --git a/OSX/sec/Security/Tool/keychain_util.c b/OSX/sec/Security/Tool/keychain_util.c index 308d5df9..704a376b 100644 --- a/OSX/sec/Security/Tool/keychain_util.c +++ b/OSX/sec/Security/Tool/keychain_util.c @@ -106,8 +106,14 @@ void display_sac_line(SecAccessControlRef sac, CFMutableStringRef line) { CFTypeRef protection = SecAccessControlGetProtection(sac); - if (CFStringGetTypeID() == CFGetTypeID(protection)) + if (CFDictionaryGetTypeID() == CFGetTypeID(protection)) { + CFStringRef protectionStr = createStringForOps(protection); + CFStringAppend(line, protectionStr); + CFRelease(protectionStr); + } else if (CFStringGetTypeID() == CFGetTypeID(protection)) CFStringAppend(line, protection); + else + CFStringAppend(line, CFSTR("??")); CFDictionaryRef constraints = SecAccessControlGetConstraints(sac); CFStringRef constraintsString = createStringForOps(constraints);