]> git.saurik.com Git - apple/security.git/blobdiff - SecureTransport/ModuleAttacher.cpp
Security-54.1.7.tar.gz
[apple/security.git] / SecureTransport / ModuleAttacher.cpp
index 42378a73754f667cb625f25c388cf8690dacdc8e..fd1edc5f7e07f1e0c5d746dd6619963e48f41944 100644 (file)
@@ -119,7 +119,9 @@ bool ModuleAttacher::initCssm()
                &pvcPolicy,
                NULL /* reserved */);
        if(crtn != CSSM_OK) {
-               errorLog1("CSSM_Init returned %s", stCssmErrToStr(crtn));
+               #ifndef NDEBUG
+               sslErrorLog("CSSM_Init returned %s", stCssmErrToStr(crtn));
+               #endif
                return false;
        }
        else {
@@ -144,8 +146,10 @@ CSSM_HANDLE ModuleAttacher::loadModule(
                NULL,                   // eventHandler
                NULL);                  // AppNotifyCallbackCtx
        if(crtn) {
-               errorLog2("AppleX509CLSession::cspAttach: error (%s) loading %s\n",
+               #ifndef NDEBUG          
+               sslErrorLog("ModuleAttacher::loadModule: error (%s) loading %s\n",
                        stCssmErrToStr(crtn), modName);
+               #endif
                return CSSM_INVALID_HANDLE;
        }
        crtn = CSSM_ModuleAttach (guid,
@@ -160,8 +164,10 @@ CSSM_HANDLE ModuleAttacher::loadModule(
                NULL,                                   // reserved
                &hand);
        if(crtn) {
-               errorLog2("AppleX509CLSession::cspAttach: error (%s) attaching to %s\n",
+               #ifndef NDEBUG          
+               sslErrorLog("ModuleAttacher::loadModule: error (%s) attaching to %s\n",
                        stCssmErrToStr(crtn), modName);
+               #endif
                return CSSM_INVALID_HANDLE;
        }
        return hand;