mirror of
https://github.com/curl/curl.git
synced 2026-06-07 17:44:14 +03:00
drop cast for CURLUSESSL_ALL examples, for consistency
This commit is contained in:
parent
9e243ae651
commit
68fddcfea2
3 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ int main(void)
|
|||
* of using CURLUSESSL_TRY here, because if TLS upgrade fails, the
|
||||
* transfer continues anyway - see the security discussion in the libcurl
|
||||
* tutorial for more details. */
|
||||
curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
|
||||
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
|
||||
|
||||
/* If your server does not have a valid certificate, then you can disable
|
||||
* part of the Transport Layer Security protection by setting the
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ int main(void)
|
|||
* using CURLUSESSL_TRY here, because if TLS upgrade fails, the transfer
|
||||
* continues anyway - see the security discussion in the libcurl tutorial
|
||||
* for more details. */
|
||||
curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
|
||||
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
|
||||
|
||||
/* If your server does not have a valid certificate, then you can disable
|
||||
* part of the Transport Layer Security protection by setting the
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ int main(void)
|
|||
* of using CURLUSESSL_TRY here, because if TLS upgrade fails, the
|
||||
* transfer continues anyway - see the security discussion in the libcurl
|
||||
* tutorial for more details. */
|
||||
curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
|
||||
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
|
||||
|
||||
/* If your server does not have a valid certificate, then you can disable
|
||||
* part of the Transport Layer Security protection by setting the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue