Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Win32 Support: Add basic SSL verification.
[xestiaab/.git]
/
source
/
carddav
/
carddav-sslverify.cpp
diff --git
a/source/carddav/carddav-sslverify.cpp
b/source/carddav/carddav-sslverify.cpp
index
9418e5a
..
57b11c0
100644
(file)
--- a/
source/carddav/carddav-sslverify.cpp
+++ b/
source/carddav/carddav-sslverify.cpp
@@
-74,10
+74,10
@@
CURLcode CardDAV::SSLVerifyTest(){
curl_easy_setopt(conn, CURLOPT_WRITEDATA, &PageData);
curl_easy_setopt(conn, CURLOPT_WRITEHEADER, &PageHeader);
curl_easy_setopt(conn, CURLOPT_WRITEDATA, &PageData);
curl_easy_setopt(conn, CURLOPT_WRITEHEADER, &PageHeader);
-#if defined(__APPLE__)
+#if defined(__APPLE__)
|| defined(__WIN32__)
SetConnectionObject(conn);
SetConnectionObject(conn);
-
+
#endif
conncode = (curl_easy_perform(conn));
#endif
conncode = (curl_easy_perform(conn));
@@
-107,16
+107,18
@@
CURLcode CardDAV::SSLVerifyTest(){
curl_easy_setopt(connssldata, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(connssldata, CURLOPT_SSL_VERIFYHOST, 0L);
curl_easy_setopt(connssldata, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(connssldata, CURLOPT_SSL_VERIFYHOST, 0L);
-#if defined(__APPLE__)
+#if defined(__APPLE__)
|| defined(__WIN32__)
SetConnectionObject(connssldata);
SetConnectionObject(connssldata);
-
+
#endif
CURLcode certfetchcode;
certfetchcode = (curl_easy_perform(connssldata));
#endif
CURLcode certfetchcode;
certfetchcode = (curl_easy_perform(connssldata));
+#if !defined(__APPLE__) && !defined(__WIN32__)
+
VerifyCertCollection = BuildSSLCollection(connssldata);
if (certfetchcode == CURLE_OK){
VerifyCertCollection = BuildSSLCollection(connssldata);
if (certfetchcode == CURLE_OK){
@@
-131,6
+133,8
@@
CURLcode CardDAV::SSLVerifyTest(){
}
}
+#endif
+
*ServerResult = FALSE;
} else {
*ServerResult = FALSE;
} else {
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy