Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Replaced numbers with actual cURL error codes when running the syncronising data...
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 14 May 2016 08:39:29 +0000 (09:39 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 14 May 2016 08:39:29 +0000 (09:39 +0100)
source/actmgr/frmActivityMgr.cpp

index b63d827..0314c8f 100644 (file)
@@ -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.
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy