Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Replaced integers for cURLcode with actual cURLcode values.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 16 May 2016 21:02:05 +0000 (22:02 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 16 May 2016 21:02:05 +0000 (22:02 +0100)
source/actmgr/frmActivityMgr.cpp

index 27960b7..006c668 100644 (file)
@@ -330,9 +330,11 @@ void frmActivityMgr::ProcessTasksThread()
                                                
                                                int ErrorCode = ConnHandle.GetResultCode();
                                                
-                                               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.
@@ -519,9 +521,11 @@ void frmActivityMgr::ProcessTasksThread()
                                                
                                                int ErrorCode = ConnHandle.GetResultCode();
                                                
-                                               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.
@@ -789,9 +793,11 @@ void frmActivityMgr::ProcessTasksThread()
                                                
                                                int ErrorCode = ConnHandle.GetResultCode();
                                                
-                                               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