summaryrefslogtreecommitdiff
path: root/src/http.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-11 23:44:45 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-11 23:44:45 +0000
commit78b168dbc30d9540b96254b77cfeaef3619b540c (patch)
treeaa9f04eab868fe9a50a2a0ed2bcff4813e83fd15 /src/http.c
parent874ae803ca9eae62e33f963c626a63b0db09bbcf (diff)
ssl support
Diffstat (limited to 'src/http.c')
-rw-r--r--src/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http.c b/src/http.c
index b4595ea..e8609fd 100644
--- a/src/http.c
+++ b/src/http.c
@@ -76,7 +76,8 @@ static struct http_response *trg_http_perform_inner(trg_client * tc,
curl_easy_setopt(handle, CURLOPT_HEADERFUNCTION, &header_callback);
curl_easy_setopt(handle, CURLOPT_WRITEHEADER, (void *) tc);
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, req);
- /*curl_easy_setopt(handle, CURLOPT_VERBOSE, 1); */
+ if (tc->ssl)
+ curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0);
if (tc->session_id != NULL) {
headers = curl_slist_append(headers, tc->session_id);