mirror of
https://github.com/curl/curl.git
synced 2026-04-15 11:51:41 +03:00
Fixed a surprising number of example programs that were passing int arguments
to curl_easy_setopt instead of long.
This commit is contained in:
parent
b8abeab6d3
commit
e664cd5826
28 changed files with 63 additions and 61 deletions
|
|
@ -31,7 +31,7 @@ int main(void)
|
|||
* default bundle, then the CURLOPT_CAPATH option might come handy for
|
||||
* you.
|
||||
*/
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
#endif
|
||||
|
||||
#ifdef SKIP_HOSTNAME_VERFICATION
|
||||
|
|
@ -41,7 +41,7 @@ int main(void)
|
|||
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
||||
* this check, but this will make the connection less secure.
|
||||
*/
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||
#endif
|
||||
|
||||
res = curl_easy_perform(curl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue