summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-11-11 11:37:00 +0100
committerPatrick Steinhardt <ps@pks.im>2016-11-15 09:12:40 +0100
commit5cbd52607c7488d7b9680e743887b08926a24710 (patch)
tree9d8665046f7d5b092fb3aea64a21108da8e7f518 /include
parentb7822050c99b8ea198d96e98cb720aa24a8230d0 (diff)
downloadlibgit2-5cbd52607c7488d7b9680e743887b08926a24710.tar.gz
curl_stream: use CURLINFO_ACTIVESOCKET if curl is recent enough
The `CURLINFO_LASTSOCKET` information has been deprecated since curl version 7.45.0 as it may result in an overflow in the returned socket on certain systems, most importantly on 64 bit Windows. Instead, a new call `CURLINFO_ACTIVESOCKET` has been added which instead returns a `curl_socket_t`, which is always sufficiently long to store a socket. As we need to provide backwards compatibility with curl versions smaller than 7.45.0, alias CURLINFO_ACTIVESOCKET to CURLINFO_LASTSOCKET on platforms without CURLINFO_ACTIVESOCKET.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions