Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added #defined(__APPLE__) around SetConnectionObject in the CardDAV object.
[xestiaab/.git] / source / carddav / carddav-connect.cpp
index 98256e5..3674e9a 100644 (file)
@@ -30,6 +30,8 @@
 
 bool CardDAV::Connect(){
 
+       // Connect to the CardDAV server.
+       
        PageData.Clear();
        PageHeader.Clear();
 
@@ -70,22 +72,6 @@ bool CardDAV::Connect(){
        
        // Try SSL first.
 
-
-       /*
-       char *ServerAdrSSLChar = new char[(ServerAddressSSL.Length() - 1)];
-       //memset(ServerAdrSSLChar, 0, ServerAddressSSL.Length());
-       strncpy(ServerAdrSSLChar, (const char*)ServerAddressSSL.mb_str(wxConvUTF8), (ServerAddressSSL.Length() - 1));
-       
-       char *ServerAdrNorChar = new char[(ServerAddressNormal.Length() - 1)];
-       //memset(ServerAdrNorChar, 0, ServerAddressSSL.Length());       
-       strncpy(ServerAdrNorChar, (const char*)ServerAddressNormal.mb_str(wxConvUTF8), (ServerAddressNormal.Length() - 1));
-
-       char *ServerAuthChar = new char[(ServerAuth.Length() - 1)];
-       //memset(ServerAuthChar, 0, ServerAddressSSL.Length()); 
-       strncpy(ServerAuthChar, (const char*)ServerAuth.mb_str(wxConvUTF8), (ServerAuth.Length() - 1));
-       
-       */
-       
        if (ServerSSL){
 
                union {
@@ -145,6 +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;
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