Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added #defined(__APPLE__) around SetConnectionObject in the CardDAV object.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 12 Apr 2016 19:37:33 +0000 (20:37 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Tue, 12 Apr 2016 19:37:33 +0000 (20:37 +0100)
source/carddav/carddav-connect.cpp
source/carddav/carddav-contactlist.cpp
source/carddav/carddav-defaultadrurl.cpp
source/carddav/carddav-processdata.cpp
source/carddav/carddav-servercontact.cpp
source/carddav/carddav-serveretag.cpp
source/carddav/carddav-sslverify.cpp

index 71134e7..3674e9a 100644 (file)
@@ -131,8 +131,12 @@ bool CardDAV::Connect(){
                        curl_easy_setopt(conn, CURLOPT_SSL_VERIFYHOST, 0L);
                }
 
+#if defined(__APPLE__)
+                
                 SetConnectionObject(conn);
         
+#endif
+                
                conncode = (curl_easy_perform(conn));
                
                ptr.certdata = NULL;
index 6c909ae..ab0cf09 100644 (file)
@@ -51,7 +51,9 @@ ContactListData CardDAV::GetContactList(wxString SyncTokenInc){
        conn = curl_easy_init();
 
 #if defined(__APPLE__)
+       
        SetConnectionObject(conn);
+       
 #endif
        
        struct CardDAVCURLPasser {
@@ -362,7 +364,9 @@ ContactListData CardDAV::GetContactList(wxString SyncTokenInc){
                        curl_easy_setopt(sslerrconn, CURLOPT_CERTINFO, 1);
                
 #if defined(__APPLE__)
+                       
                        SetConnectionObject(sslerrconn);
+                       
 #endif
                        
                        sslerrconncode = (curl_easy_perform(sslerrconn));
index 6ed3aa5..b2fec75 100644 (file)
@@ -50,8 +50,12 @@ wxString CardDAV::GetDefaultAddressBookURL(){
        
        conn = curl_easy_init();
         
+#if defined(__APPLE__)
+        
         SetConnectionObject(conn);
        
+#endif
+        
        struct curl_slist *connhd = NULL;
        struct curl_slist *connhd2 = NULL;
        struct curl_slist *connhd3 = NULL;
@@ -168,8 +172,12 @@ wxString CardDAV::GetDefaultAddressBookURL(){
                        curl_easy_setopt(conn, CURLOPT_SSL_VERIFYHOST, 0L);
                }
 
+#if defined(__APPLE__)
+                
                 SetConnectionObject(conn);
         
+#endif
+                
                conncode = (curl_easy_perform(conn));
 
                if (conncode == CURLE_OK){
@@ -357,8 +365,12 @@ wxString CardDAV::GetDefaultAddressBookURL(){
                        curl_easy_setopt(conn, CURLOPT_SSL_VERIFYHOST, 0L);
                }
 
+#if defined(__APPLE__)
+                
                 SetConnectionObject(conn);
                 
+#endif
+                
                conncode = (curl_easy_perform(conn));
 
                if (conncode == CURLE_OK){
@@ -535,8 +547,12 @@ wxString CardDAV::GetDefaultAddressBookURL(){
                        curl_easy_setopt(conn, CURLOPT_SSL_VERIFYHOST, 0L);
                }
 
+#if defined(__APPLE__)
+                
                 SetConnectionObject(conn);
                 
+#endif
+                
                conncode = (curl_easy_perform(conn));
 
                if (conncode == CURLE_OK){
index 84f5144..55a353f 100644 (file)
@@ -48,7 +48,11 @@ void CardDAV::ProcessDataThread(){
         
         conn = curl_easy_init();
        
+#if defined(__APPLE__)
+       
         SetConnectionObject(conn);
+
+#endif
        
        struct CardDAVCURLPasser {
        
@@ -341,9 +345,13 @@ void CardDAV::ProcessDataThread(){
                        curl_easy_setopt(sslerrconn, CURLOPT_NOSIGNAL, 1);
                        curl_easy_setopt(sslerrconn, CURLOPT_SSL_VERIFYPEER, 0);
                        curl_easy_setopt(sslerrconn, CURLOPT_CERTINFO, 1);
+       
+#if defined(__APPLE__)
                        
                        SetConnectionObject(sslerrconn);
                        
+#endif
+                       
                        sslerrconncode = (curl_easy_perform(sslerrconn));
 
 #if defined(__APPLE__)
index b4d55e2..1ebc1df 100644 (file)
@@ -52,7 +52,11 @@ void CardDAV::GetServerContactData()
        
         conn = curl_easy_init();
        
+#if defined(__APPLE__)
+       
        SetConnectionObject(conn);
+
+#endif
        
        struct CardDAVCURLPasser {
        
@@ -286,8 +290,12 @@ void CardDAV::GetServerContactData()
                        curl_easy_setopt(sslerrconn, CURLOPT_SSL_VERIFYPEER, 0);
                        curl_easy_setopt(sslerrconn, CURLOPT_CERTINFO, 1);
                        
+#if defined(__APPLE__)
+                       
                        SetConnectionObject(sslerrconn);
                        
+#endif
+                       
                        sslerrconncode = (curl_easy_perform(sslerrconn));
 
                        SSLCertCol = BuildSSLCollection(sslerrconn);
index 6ab608b..5ac3f27 100644 (file)
@@ -50,8 +50,12 @@ void CardDAV::GetServerETagValueThread()
 
         conn = curl_easy_init();
        
+#if defined(__APPLE__)
+       
        SetConnectionObject(conn);
        
+#endif
+       
        struct CardDAVCURLPasser {
        
                CardDAV *Data;
@@ -321,8 +325,12 @@ void CardDAV::GetServerETagValueThread()
                                        
                        sslerrconncode = (curl_easy_perform(sslerrconn));
 
+#if defined(__APPLE__)
+                       
                        SetConnectionObject(sslerrconn);
                        
+#endif
+                       
                        SSLCertCol = BuildSSLCollection(sslerrconn);
                        SSLCertCol.SuccessCode = 1;
 
index 9969c43..9418e5a 100644 (file)
@@ -74,7 +74,11 @@ CURLcode CardDAV::SSLVerifyTest(){
                curl_easy_setopt(conn, CURLOPT_WRITEDATA, &PageData);
                curl_easy_setopt(conn, CURLOPT_WRITEHEADER, &PageHeader);
 
-                SetConnectionObject(conn);
+#if defined(__APPLE__)
+               
+               SetConnectionObject(conn);
+               
+#endif
                 
                conncode = (curl_easy_perform(conn));
 
@@ -103,8 +107,12 @@ CURLcode CardDAV::SSLVerifyTest(){
                        curl_easy_setopt(connssldata, CURLOPT_SSL_VERIFYPEER, 0L);
                        curl_easy_setopt(connssldata, CURLOPT_SSL_VERIFYHOST, 0L);
 
+#if defined(__APPLE__)
+                       
                         SetConnectionObject(connssldata);
-            
+                       
+#endif
+                       
                        CURLcode certfetchcode;
 
                        certfetchcode = (curl_easy_perform(connssldata));
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