mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-14 04:53:02 +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
@ -316,8 +316,16 @@ void *lookup_thread_func(void *data)
|
||||
ret = curl_easy_perform(c_handle);
|
||||
|
||||
if (ret != CURLE_OK) {
|
||||
lookup_error(self, "https lookup error (libcurl error %d)", ret);
|
||||
goto on_exit;
|
||||
/* 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) {
|
||||
lookup_error(self, "https lookup error (libcurl error %d)", ret);
|
||||
goto on_exit;
|
||||
}
|
||||
}
|
||||
|
||||
if (process_response(&recv_data) == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user