Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Win32 Support: Add basic SSL verification.
[xestiaab/.git] / source / carddav / carddav-sslverify.cpp
index 9969c43..57b11c0 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__) || defined(__WIN32__)
+               
+               SetConnectionObject(conn);
+
+#endif
                 
                conncode = (curl_easy_perform(conn));
 
@@ -103,12 +107,18 @@ CURLcode CardDAV::SSLVerifyTest(){
                        curl_easy_setopt(connssldata, CURLOPT_SSL_VERIFYPEER, 0L);
                        curl_easy_setopt(connssldata, CURLOPT_SSL_VERIFYHOST, 0L);
 
+#if defined(__APPLE__) || defined(__WIN32__)
+                       
                         SetConnectionObject(connssldata);
-            
+
+#endif
+                       
                        CURLcode certfetchcode;
 
                        certfetchcode = (curl_easy_perform(connssldata));
 
+#if !defined(__APPLE__) && !defined(__WIN32__) 
+
                        VerifyCertCollection = BuildSSLCollection(connssldata);
 
                        if (certfetchcode == CURLE_OK){
@@ -123,6 +133,8 @@ CURLcode CardDAV::SSLVerifyTest(){
 
                        }
 
+#endif
+
                        *ServerResult = FALSE;
 
                } else {
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