X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..7e6b461318c8a779d91381531435a68ee4e8b6ed:/OSX/libsecurity_apple_cspdl/lib/SSCSPSession.cpp?ds=inline diff --git a/OSX/libsecurity_apple_cspdl/lib/SSCSPSession.cpp b/OSX/libsecurity_apple_cspdl/lib/SSCSPSession.cpp index d82bb4e3..d079b3f0 100644 --- a/OSX/libsecurity_apple_cspdl/lib/SSCSPSession.cpp +++ b/OSX/libsecurity_apple_cspdl/lib/SSCSPSession.cpp @@ -346,6 +346,7 @@ SSCSPSession::FreeKey(const AccessCredentials *accessCred, { if (ioKey.blobType() == CSSM_KEYBLOB_REFERENCE) { + StLock _(mSSCSPDLSession.mKeyDeletionMutex); // @@@ Note that this means that detaching a session should free // all keys ascociated with it or else... // -- or else what? @@ -357,7 +358,7 @@ SSCSPSession::FreeKey(const AccessCredentials *accessCred, // Find the key in the map. Tell tell the key to free itself // (when the auto_ptr deletes the key it removes itself from the map). - secdebug("freeKey", "CSPDL FreeKey"); + secinfo("freeKey", "CSPDL FreeKey"); auto_ptr ssKey(&mSSCSPDLSession.find(ioKey)); ssKey->free(accessCred, ioKey, deleteKey); }