← Commit list

56c892af1f

Viktor Szakats
Viktor Szakats
2025-10-09
SUCCESS Duration: 629s

Subject

examples/sessioninfo: do not disable security

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/examples/sessioninfo.c+4 -7
@@ -96,25 +96,22 @@ static size_t wrfu(void *ptr, size_t size, size_t nmemb, void *stream)
int main(void)
{
+ CURLcode res = CURLE_OK;
+
curl_global_init(CURL_GLOBAL_DEFAULT);
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/");
-
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, wrfu);
-
- curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
- curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
-
curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
- (void)curl_easy_perform(curl);
+ res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
curl_global_cleanup();
- return 0;
+ return (int)res;
}