diff options
author | 2011-02-11 23:44:45 +0000 | |
---|---|---|
committer | 2011-02-11 23:44:45 +0000 | |
commit | 78b168dbc30d9540b96254b77cfeaef3619b540c (patch) | |
tree | aa9f04eab868fe9a50a2a0ed2bcff4813e83fd15 /src/http.c | |
parent | 874ae803ca9eae62e33f963c626a63b0db09bbcf (diff) |
ssl support
Diffstat (limited to 'src/http.c')
-rw-r--r-- | src/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |