]> git.proxmox.com Git - mirror_qemu.git/commit - block/curl.c
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)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Feb 2023 13:33:52 +0000 (14:33 +0100)
commite7b8d9d038f313c2b9e601609e7d7c3ca6ad0234
tree004333d24fbfc2dbab656ba93566796eca0c8bd4
parent321923010d0e46f265c9a16efc340bf0cb66f785
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>
block/curl.c