From 18f7c6923e3b13e486c3051bf480944eedc705b1 Mon Sep 17 00:00:00 2001 From: Simon Jenkins <20030065+sjenkins7@users.noreply.github.com> Date: Tue, 16 Jul 2024 05:51:54 +0100 Subject: [PATCH] Fix incorrect use of libobs header for curl (#16) Visibility changes as part of https://github.com/obsproject/obs-studio/issues/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 --- file-updater.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file-updater.c b/file-updater.c index c81b2d0..9c456fc 100644 --- a/file-updater.c +++ b/file-updater.c @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -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) {