1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 02:13:01 +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

@ -316,8 +316,16 @@ void *lookup_thread_func(void *data)
ret = curl_easy_perform(c_handle); ret = curl_easy_perform(c_handle);
if (ret != CURLE_OK) { if (ret != CURLE_OK) {
lookup_error(self, "https lookup error (libcurl error %d)", ret); /* If system doesn't support any of the specified ciphers suites, fall back to default */
goto on_exit; 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) {
lookup_error(self, "https lookup error (libcurl error %d)", ret);
goto on_exit;
}
} }
if (process_response(&recv_data) == -1) { if (process_response(&recv_data) == -1) {