X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..3a7be6fd655a5b07ffb821947ed6ba5fdc4bea8c:/OSX/libsecurity_cdsa_client/lib/cssmclient.cpp diff --git a/OSX/libsecurity_cdsa_client/lib/cssmclient.cpp b/OSX/libsecurity_cdsa_client/lib/cssmclient.cpp index 05a59c49..ce83b5e2 100644 --- a/OSX/libsecurity_cdsa_client/lib/cssmclient.cpp +++ b/OSX/libsecurity_cdsa_client/lib/cssmclient.cpp @@ -30,7 +30,7 @@ // and thus don't need to be interlocked explicitly. // #include -#include +#include using namespace CssmClient; @@ -80,7 +80,7 @@ try if (!isIdle()) { int i = mChildCount; - syslog(LOG_ALERT, "Object %p still has %d children at delete.\n", this, i); + secerror("Object %p still has %d children at delete.\n", this, i); } // release parent from her obligations (if we still have one) @@ -269,13 +269,13 @@ void CssmImpl::StandardCssm::unsetCssm(CssmImpl *cssm) mCssm = NULL; } -CssmImpl *CssmImpl::StandardCssm::get() +Cssm CssmImpl::StandardCssm::get() { StLock _(*this); if (mCssm == NULL) { // make the default instance mCssm = new CssmImpl(true); } - return mCssm; + return Cssm(mCssm); } CssmImpl::StandardCssm::~StandardCssm() @@ -383,7 +383,7 @@ void ModuleEvents::fault(uint32 subService, CSSM_SERVICE_TYPE type) { } void ModuleImpl::appNotifyCallback(CSSM_API_ModuleEventHandler appNotifyCallback, void *appNotifyCallbackCtx) { - secdebug("callback","In ModuleImpl::appNotifyCallback, appNotifyCallback=%p, appNotifyCallbackCtx=%p", + secinfo("callback","In ModuleImpl::appNotifyCallback, appNotifyCallback=%p, appNotifyCallbackCtx=%p", appNotifyCallback, appNotifyCallbackCtx); if (mActive) Error::throwMe(Error::objectBusy); @@ -407,7 +407,7 @@ ModuleImpl::activate() { session()->init(); // @@@ install handler here (use central dispatch with override) - secdebug("callback","In ModuleImpl::activate, mAppNotifyCallback=%p, mAppNotifyCallbackCtx=%p", + secinfo("callback","In ModuleImpl::activate, mAppNotifyCallback=%p, mAppNotifyCallbackCtx=%p", mAppNotifyCallback, mAppNotifyCallbackCtx); check(CSSM_ModuleLoad(&guid(), CSSM_KEY_HIERARCHY_NONE, mAppNotifyCallback, mAppNotifyCallbackCtx)); mActive = true;