Skip to content

Commit 9ae0520

Browse files
committed
Version guard the blob handling to 7.71+
1 parent 5e2bd27 commit 9ae0520

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

http.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ set_curlopt(CURL* handle, const http_curlopt *opt)
813813
err = curl_easy_setopt(handle, opt->curlopt, value_long);
814814
elog(DEBUG2, "pgsql-http: set '%s' to value '%ld', return value = %d", opt->curlopt_str, value_long, err);
815815
}
816+
#if LIBCURL_VERSION_NUM >= 0x074700 /* 7.71.0 */
816817
/* Only used for CURLOPT_SSLKEY_BLOB and CURLOPT_SSLCERT_BLOB */
817818
else if (opt->curlopt_type == CURLOPT_BLOB)
818819
{
@@ -827,6 +828,7 @@ set_curlopt(CURL* handle, const http_curlopt *opt)
827828
err = curl_easy_setopt(handle, opt->curlopt, &blob);
828829
elog(DEBUG2, "pgsql-http: set '%s' to value '%s', return value = %d", opt->curlopt_str, opt->curlopt_val, err);
829830
}
831+
#endif
830832
else
831833
{
832834
/* Never get here */

0 commit comments

Comments
 (0)