From 621b27fe4d9b9081df7143021c53fca4f4d9ac8a Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 19 Jan 2014 01:53:07 +0000 Subject: [PATCH] (trunk, daemon) #5562: 'Discrepancy in curl SSL setup between tr-daemon and tr-remote' -- fix by mike.dld --- daemon/remote.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/remote.c b/daemon/remote.c index 5a47ea626..42a0bbc01 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -1769,7 +1769,10 @@ tr_curl_easy_init (struct evbuffer * writebuf) if (auth) curl_easy_setopt (curl, CURLOPT_USERPWD, auth); if (UseSSL) + { + curl_easy_setopt (curl, CURLOPT_SSL_VERIFYHOST, 0); /* do not verify subject/hostname */ curl_easy_setopt (curl, CURLOPT_SSL_VERIFYPEER, 0); /* since most certs will be self-signed, do not verify against CA */ + } if (sessionId) { char * h = tr_strdup_printf ("%s: %s", TR_RPC_SESSION_ID_HEADER, sessionId); struct curl_slist * custom_headers = curl_slist_append (NULL, h);