summaryrefslogtreecommitdiffstats
path: root/src/tss.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-03-06 11:11:33 +0100
committerGravatar Martin Szulecki2013-03-06 11:11:33 +0100
commita1b1122cc5d209681e7c1dc87691854c9e36c117 (patch)
tree414c646b5a9d874270984cc0323a9773f83a2cf0 /src/tss.c
parent2784e3b83ab9ed895be992ce1599c715b6f45970 (diff)
downloadidevicerestore-a1b1122cc5d209681e7c1dc87691854c9e36c117.tar.gz
idevicerestore-a1b1122cc5d209681e7c1dc87691854c9e36c117.tar.bz2
Disable SSL verification to allow downloads from untrusted https locations
Diffstat (limited to 'src/tss.c')
-rw-r--r--src/tss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tss.c b/src/tss.c
index 2928a2e..8a9dcce 100644
--- a/src/tss.c
+++ b/src/tss.c
@@ -358,7 +358,9 @@ plist_t tss_send_request(plist_t tss_request, const char* server_url_string) {
response->content = malloc(1);
response->content[0] = '\0';
+ /* disable SSL verification to allow download from untrusted https locations */
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0);
+
curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, curl_error_message);
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, (curl_write_callback)&tss_write_callback);
curl_easy_setopt(handle, CURLOPT_WRITEDATA, response);