Skip to content

Commit

Permalink
Fix incorrect use of libobs header for curl (#16)
Browse files Browse the repository at this point in the history
Visibility changes as part of obsproject/obs-studio#10973 means we can no longer access this.

This change replaces it with the standard curl headers and config for SSL.

Co-authored-by: Simon Jenkins <sjenkins7@users.noreply.github.com>
  • Loading branch information
sjenkins7 and sjenkins7 committed Jul 16, 2024
1 parent 91dc717 commit 18f7c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions file-updater.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <util/curl/curl-helper.h>
#include <curl/curl.h>
#include <util/threading.h>
#include <util/platform.h>
#include <util/darray.h>
Expand Down Expand Up @@ -70,7 +70,7 @@ static bool do_http_request(struct update_info *info, const char *url, long *res
curl_easy_setopt(info->curl, CURLOPT_FAILONERROR, true);
curl_easy_setopt(info->curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(info->curl, CURLOPT_ACCEPT_ENCODING, "");
curl_obs_set_revoke_setting(info->curl);
curl_easy_setopt(info->curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_REVOKE_BEST_EFFORT);

code = curl_easy_perform(info->curl);
if (code != CURLE_OK) {
Expand Down

0 comments on commit 18f7c69

Please sign in to comment.