From 672d0b3716fe34389912ec4a90ef71fc25cf1827 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 23 Apr 2016 08:17:47 -0700 Subject: [PATCH] file-updater: Only use SSL ALPN opt if curl version up to date --- deps/file-updater/file-updater/file-updater.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deps/file-updater/file-updater/file-updater.c b/deps/file-updater/file-updater/file-updater.c index 7e5bdcacd..37f3b35a8 100644 --- a/deps/file-updater/file-updater/file-updater.c +++ b/deps/file-updater/file-updater/file-updater.c @@ -124,8 +124,10 @@ static bool do_http_request(struct update_info *info, const char *url, curl_easy_setopt(info->curl, CURLOPT_HEADERDATA, info); } +#if LIBCURL_VERSION_NUM >= 0x072400 // A lot of servers don't yet support ALPN curl_easy_setopt(info->curl, CURLOPT_SSL_ENABLE_ALPN, 0); +#endif code = curl_easy_perform(info->curl); if (code != CURLE_OK) { -- GitLab