mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-01 21:00:19 +00:00
[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:
parent
7b1f9fcaeb
commit
0f1cb83373
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue