From: Steve Brokenshire Date: Sat, 14 May 2016 08:39:29 +0000 (+0100) Subject: Replaced numbers with actual cURL error codes when running the syncronising data... X-Git-Tag: release-0.13~30 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=309db7c19b8b0f5a89d39ec03152d4d761224c76;p=xestiaab%2F.git Replaced numbers with actual cURL error codes when running the syncronising data task. --- diff --git a/source/actmgr/frmActivityMgr.cpp b/source/actmgr/frmActivityMgr.cpp index b63d827..0314c8f 100644 --- a/source/actmgr/frmActivityMgr.cpp +++ b/source/actmgr/frmActivityMgr.cpp @@ -1023,11 +1023,13 @@ void frmActivityMgr::ProcessTasksThread() // Check if any errors have occured whilst getting the data. - int ErrorCode = ConnHandle.GetResultCode(); + int ErrorCode = ConnHandle.SSLVerifyTest(); - if (ErrorCode != 0){ + if (ErrorCode != CURLE_OK){ - if (ErrorCode == 60 || ErrorCode == 51){ + if (ErrorCode == CURLE_SSL_CACERT || + ErrorCode == CURLE_PEER_FAILED_VERIFICATION || + ErrorCode == CURLE_SSL_CONNECT_ERROR){ // Invalid SSL certificate so bring up a dialog to the user // explaining what has happened and the options available.