OpenIDC / liboauth2

OAuth 2.x and OpenID Connect C library
Apache License 2.0
105 stars 26 forks source link

Use CURLOPT_REDIR_PROTOCOLS_STR when curl >= 7.85.0 #48

Closed babelouest closed 1 year ago

babelouest commented 1 year ago

The patch fixes oauth2_http_call in src/http.c for newer version of curl, where the options CURLOPT_REDIR_PROTOCOLS and CURLOPT_PROTOCOLS need to be replaced with CURLOPT_REDIR_PROTOCOLS_STR and CURLOPT_PROTOCOLS_STR

See https://curl.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS.html#AVAILABILITY