mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:43:01 +01:00
Handle case where system doesn't support any of the specified TLS cipher suites
This commit is contained in:
parent
2b4b8c0289
commit
7cf9c37aef
@ -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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user