1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-26 16:03:27 +01:00

Handle case where system doesn't support any of the specified TLS cipher suites

This commit is contained in:
Jfreegman 2015-10-29 20:35:31 -04:00
parent 2b4b8c0289
commit 7cf9c37aef
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -315,10 +315,18 @@ void *lookup_thread_func(void *data)
ret = curl_easy_perform(c_handle); ret = curl_easy_perform(c_handle);
if (ret != CURLE_OK) {
/* If system doesn't support any of the specified ciphers suites, fall back to default */
if (ret == CURLE_SSL_CIPHER) {
curl_easy_setopt(c_handle, CURLOPT_SSL_CIPHER_LIST, NULL);
ret = curl_easy_perform(c_handle);
}
if (ret != CURLE_OK) { if (ret != CURLE_OK) {
lookup_error(self, "https lookup error (libcurl error %d)", ret); lookup_error(self, "https lookup error (libcurl error %d)", ret);
goto on_exit; goto on_exit;
} }
}
if (process_response(&recv_data) == -1) { if (process_response(&recv_data) == -1) {
lookup_error(self, "Name lookup failed."); lookup_error(self, "Name lookup failed.");