]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_keychain/lib/SecKeychainItemExtendedAttributes.cpp
Security-58286.260.20.tar.gz
[apple/security.git] / OSX / libsecurity_keychain / lib / SecKeychainItemExtendedAttributes.cpp
index 0088d0def14112ee21fa100f7818a9f4259ac6d6..60c98f3133deb3e814a5599b62195a40c757a860 100644 (file)
@@ -28,6 +28,7 @@
 #include "SecBridge.h"
 #include "StorageManager.h"
 #include "KCCursor.h"
+#include <os/activity.h>
 
 /* I'm not sure we need this */
 #if 0
@@ -147,6 +148,9 @@ OSStatus SecKeychainItemSetExtendedAttribute(
     //%%% This needs to detect SecCertificateRef items, and when it does, SecKeychainItemDelete must be updated
 
     BEGIN_SECAPI
+    os_activity_t activity = os_activity_create("SecKeychainItemSetExtendedAttribute", OS_ACTIVITY_CURRENT, OS_ACTIVITY_FLAG_IF_NONE_PRESENT);
+    os_activity_scope(activity);
+    os_release(activity);
        
        if((itemRef == NULL) || (attrName == NULL)) {
                return errSecParam;
@@ -197,6 +201,9 @@ OSStatus SecKeychainItemCopyExtendedAttribute(
     //%%% This needs to detect SecCertificateRef items
 
     BEGIN_SECAPI
+    os_activity_t activity = os_activity_create("SecKeychainItemCopyExtendedAttribute", OS_ACTIVITY_CURRENT, OS_ACTIVITY_FLAG_IF_NONE_PRESENT);
+    os_activity_scope(activity);
+    os_release(activity);
        
        if((itemRef == NULL) || (attrName == NULL) || (attrValue == NULL)) {
                return errSecParam;
@@ -238,6 +245,9 @@ OSStatus SecKeychainItemCopyAllExtendedAttributes(
     //%%% This needs to detect SecCertificateRef items, and when it does, SecKeychainItemDelete must be updated
 
     BEGIN_SECAPI
+    os_activity_t activity = os_activity_create("SecKeychainItemCopyAllExtendedAttributes", OS_ACTIVITY_CURRENT, OS_ACTIVITY_FLAG_IF_NONE_PRESENT);
+    os_activity_scope(activity);
+    os_release(activity);
        
        if((itemRef == NULL) || (attrNames == NULL)) {
                return errSecParam;