]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_keychain/lib/UnlockReferralItem.cpp
Security-59306.61.1.tar.gz
[apple/security.git] / OSX / libsecurity_keychain / lib / UnlockReferralItem.cpp
index f9b004a3f88c89dcd88f76b543fa0065b4d3984e..3796e63d2f33c631e6f517526391a1359f9dd8ee 100644 (file)
@@ -37,12 +37,12 @@ namespace KeychainCore {
 // Construct a UnlockReferralItem from attributes and initial content
 //
 UnlockReferralItem::UnlockReferralItem() :
 // Construct a UnlockReferralItem from attributes and initial content
 //
 UnlockReferralItem::UnlockReferralItem() :
-       ItemImpl(CSSM_DL_DB_RECORD_UNLOCK_REFERRAL,
+       ItemImpl((SecItemClass) CSSM_DL_DB_RECORD_UNLOCK_REFERRAL,
                reinterpret_cast<SecKeychainAttributeList *>(NULL),
                UInt32(0/*size*/),
                NULL/*data*/)
 {
                reinterpret_cast<SecKeychainAttributeList *>(NULL),
                UInt32(0/*size*/),
                NULL/*data*/)
 {
-       secdebug("referral", "create %p", this);
+       secinfo("referral", "create %p", this);
 }
 
 
 }
 
 
@@ -51,7 +51,7 @@ UnlockReferralItem::UnlockReferralItem() :
 //
 UnlockReferralItem::~UnlockReferralItem() 
 {
 //
 UnlockReferralItem::~UnlockReferralItem() 
 {
-       secdebug("referral", "destroy %p", this);
+       secinfo("referral", "destroy %p", this);
 }
 
 
 }
 
 
@@ -74,7 +74,7 @@ PrimaryKey UnlockReferralItem::add(Keychain &keychain)
        try
        {
                mUniqueId = db->insert(recordType, mDbAttributes.get(), mData.get());
        try
        {
                mUniqueId = db->insert(recordType, mDbAttributes.get(), mData.get());
-               secdebug("usertrust", "%p inserted", this);
+               secinfo("usertrust", "%p inserted", this);
        }
        catch (const CssmError &e)
        {
        }
        catch (const CssmError &e)
        {
@@ -82,7 +82,7 @@ PrimaryKey UnlockReferralItem::add(Keychain &keychain)
                        throw;
 
                // Create the referral relation and try again.
                        throw;
 
                // Create the referral relation and try again.
-               secdebug("usertrust", "adding schema relation for user trusts");
+               secinfo("usertrust", "adding schema relation for user trusts");
 #if 0
                db->createRelation(CSSM_DL_DB_RECORD_UNLOCK_REFERRAL,
                        "CSSM_DL_DB_RECORD_UNLOCK_REFERRAL",
 #if 0
                db->createRelation(CSSM_DL_DB_RECORD_UNLOCK_REFERRAL,
                        "CSSM_DL_DB_RECORD_UNLOCK_REFERRAL",
@@ -101,7 +101,7 @@ PrimaryKey UnlockReferralItem::add(Keychain &keychain)
                //keychain->resetSchema();
 
                mUniqueId = db->insert(recordType, mDbAttributes.get(), mData.get());
                //keychain->resetSchema();
 
                mUniqueId = db->insert(recordType, mDbAttributes.get(), mData.get());
-               secdebug("usertrust", "%p inserted now", this);
+               secinfo("usertrust", "%p inserted now", this);
        }
 
        mPrimaryKey = keychain->makePrimaryKey(recordType, mUniqueId);
        }
 
        mPrimaryKey = keychain->makePrimaryKey(recordType, mUniqueId);