]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Handle curl 7.55.0, 7.85.0 version changes
authorAnton Johansson <anjo@rev.ng>
Mon, 23 Jan 2023 20:14:31 +0000 (21:14 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:05 +0000 (10:20 +0300)
commit7c8a67ed462a1089e7c3837cb94579031c6ecc6b
tree2d33ee97efc765bffb94c2080234f93a02300cfd
parentb05232a25659ea14eb0b477c17aca9a7ce50bb64
block: Handle curl 7.55.0, 7.85.0 version changes

* 7.55.0 deprecates CURLINFO_CONTENT_LENGTH_DOWNLOAD in favour of a *_T
  version, which returns curl_off_t instead of a double.
* 7.85.0 deprecates CURLOPT_PROTOCOLS and CURLOPT_REDIR_PROTOCOLS in
  favour of *_STR variants, specifying the desired protocols via a
  string.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1440
Signed-off-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20230123201431.23118-1-anjo@rev.ng>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit e7b8d9d038f313c2b9e601609e7d7c3ca6ad0234)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/curl.c