]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_apple_cspdl/lib/SSCSPDLSession.cpp
Security-57337.60.2.tar.gz
[apple/security.git] / OSX / libsecurity_apple_cspdl / lib / SSCSPDLSession.cpp
index 3c6b24e4f0ae74dcfe533cf0c1d1c8a8a0c1108b..cfc622367338e8e1e54b8d4fc710ebd2b9129ce0 100644 (file)
@@ -79,8 +79,10 @@ SSCSPDLSession::makeReferenceKey(SSCSPSession &session, KeyHandle inKeyHandle,
                                                                 CssmKey &outKey, SSDatabase &inSSDatabase,
                                                                 uint32 inKeyAttr, const CssmData *inKeyLabel)
 {
                                                                 CssmKey &outKey, SSDatabase &inSSDatabase,
                                                                 uint32 inKeyAttr, const CssmData *inKeyLabel)
 {
-       new SSKey(session, inKeyHandle, outKey, inSSDatabase, inKeyAttr,
+       SSKey* sskey = new SSKey(session, inKeyHandle, outKey, inSSDatabase, inKeyAttr,
                          inKeyLabel);
                          inKeyLabel);
+
+    secdebug("SecAccessReference", "made a new reference sskey with handle %d [%d]", sskey->keyHandle(), sskey->keyReference());
 }
 
 SSKey &
 }
 
 SSKey &
@@ -93,6 +95,8 @@ SSCSPDLSession::lookupKey(const CssmKey &inKey)
        
        /* fetch key (this is just mapping the value in inKey.KeyData to an SSKey) */
        SSKey &theKey = find<SSKey>(inKey);
        
        /* fetch key (this is just mapping the value in inKey.KeyData to an SSKey) */
        SSKey &theKey = find<SSKey>(inKey);
+
+    secdebug("SecAccessReference", "looked up a sskey with handle %d [%d]", theKey.keyHandle(), theKey.keyReference());
        
        #ifdef someday 
        /* 
        
        #ifdef someday 
        /*