Skip to content

Commit

Permalink
Version guard the blob handling to 7.71+
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Jan 14, 2025
1 parent 5e2bd27 commit 9ae0520
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ set_curlopt(CURL* handle, const http_curlopt *opt)
err = curl_easy_setopt(handle, opt->curlopt, value_long);
elog(DEBUG2, "pgsql-http: set '%s' to value '%ld', return value = %d", opt->curlopt_str, value_long, err);
}
#if LIBCURL_VERSION_NUM >= 0x074700 /* 7.71.0 */
/* Only used for CURLOPT_SSLKEY_BLOB and CURLOPT_SSLCERT_BLOB */
else if (opt->curlopt_type == CURLOPT_BLOB)
{
Expand All @@ -827,6 +828,7 @@ set_curlopt(CURL* handle, const http_curlopt *opt)
err = curl_easy_setopt(handle, opt->curlopt, &blob);
elog(DEBUG2, "pgsql-http: set '%s' to value '%s', return value = %d", opt->curlopt_str, opt->curlopt_val, err);
}
#endif
else
{
/* Never get here */
Expand Down

0 comments on commit 9ae0520

Please # to comment.