summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 251c914)
raw | patch | inline | side by side (parent: 251c914)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 23 Jan 2010 16:28:22 +0000 (17:28 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 23 Jan 2010 16:28:22 +0000 (17:28 +0100) |
src/curl_xml.c | patch | blob | history |
diff --git a/src/curl_xml.c b/src/curl_xml.c
index 062ad90a3ff3135f659b1be821a24af120958965..240be6628bc4a258b88d6d1308e746693c036e1b 100644 (file)
--- a/src/curl_xml.c
+++ b/src/curl_xml.c
curl_easy_setopt (db->curl, CURLOPT_USERPWD, db->credentials);
}
- curl_easy_setopt (db->curl, CURLOPT_SSL_VERIFYPEER, db->verify_peer);
+ curl_easy_setopt (db->curl, CURLOPT_SSL_VERIFYPEER, db->verify_peer ? 1L : 0L);
curl_easy_setopt (db->curl, CURLOPT_SSL_VERIFYHOST,
- db->verify_host ? 2 : 0);
+ db->verify_host ? 2L : 0L);
if (db->cacert != NULL)
curl_easy_setopt (db->curl, CURLOPT_CAINFO, db->cacert);