CURL *conn;
CURL *connssldata;
- CURLcode conncode;
+ CURLcode conncode = CURLE_OK;
wxString ServerAddressURL;
wxString ServerAuth;
wxString ServerAddressSSL;
curl_easy_setopt(conn, CURLOPT_WRITEDATA, &PageData);
curl_easy_setopt(conn, CURLOPT_WRITEHEADER, &PageHeader);
+#if defined(__APPLE__) || defined(__WIN32__)
+
+ SetConnectionObject(conn);
+
+#endif
+
conncode = (curl_easy_perform(conn));
// Check if the SSL certificate is valid or self-signed or some other
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){
}
+#endif
+
*ServerResult = FALSE;
} else {