[SBI] fix compiler errors when using latest libcurl

Compiler outputs an error when compiling against libcurl 8.14.1-2ubuntu1
found in Ubuntu 25.10.

error: call to '_curl_easy_setopt_err_long' declared with attribute
warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
This commit is contained in:
Bostjan Meglic 2025-11-04 11:51:36 +01:00 committed by Sukchan Lee
parent 7b1f9fcaeb
commit 0f1cb83373
2 changed files with 3 additions and 3 deletions

View file

@ -206,7 +206,7 @@ static ogs_inline ogs_uint24_t ogs_htobe24(ogs_uint24_t x)
#define OGS_MAX_FILEPATH_LEN 256
#define OGS_MAX_IFNAME_LEN 32
#define OGS_MAX_SDU_LEN 32768 /* Should Heap */
#define OGS_MAX_SDU_LEN 32768L /* Should Heap */
#define OGS_HUGE_LEN 8192 /* Can Stack */
#define OGS_MAX_PKT_LEN 2048

View file

@ -494,8 +494,8 @@ static connection_t *connection_add(
/* HTTPS certificate-related settings */
if (client->scheme == OpenAPI_uri_scheme_https) {
if (client->insecure_skip_verify) {
curl_easy_setopt(conn->easy, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(conn->easy, CURLOPT_SSL_VERIFYHOST, 0);
curl_easy_setopt(conn->easy, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(conn->easy, CURLOPT_SSL_VERIFYHOST, 0L);
} else {
if (client->cacert)
curl_easy_setopt(conn->easy, CURLOPT_CAINFO, client->cacert);