conn = curl_easy_init();
+#if defined(__APPLE__)
+
SetConnectionObject(conn);
+
+#endif
struct CardDAVCURLPasser {
curl_easy_setopt(conn, CURLOPT_WRITEHEADER, &PageHeader);
curl_easy_setopt(conn, CURLOPT_NOSIGNAL, 1);
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(__WIN32__)
#else
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);