]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_sd_cspdl/lib/SDCSPSession.cpp
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_sd_cspdl / lib / SDCSPSession.cpp
index b72e2e528cede16e4a1601d66f1ceb45d6a64480..802f98e6a320743f431a46bc37f6b46b091b2dc9 100644 (file)
@@ -360,9 +360,9 @@ SDCSPSession::FreeKey(const AccessCredentials *accessCred,
                // that!
 
                // 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). 
+               // (when the unique_ptr deletes the key it removes itself from the map). 
            secinfo("freeKey", "CSPDL FreeKey");
-               auto_ptr<SDKey> ssKey(&mSDCSPDLSession.find<SDKey>(ioKey));
+               unique_ptr<SDKey> ssKey(&mSDCSPDLSession.find<SDKey>(ioKey));
                ssKey->free(accessCred, ioKey, deleteKey);
        }
        else