]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/Security/Tool/keychain_util.c
Security-57740.1.18.tar.gz
[apple/security.git] / OSX / sec / Security / Tool / keychain_util.c
index 308d5df9a07b6dddb92317c24534e20534380f35..704a376b444a07fad79c611ad38f2471ef1cab2d 100644 (file)
@@ -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);