aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/simplessl.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-05-22 21:20:07 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-05-22 21:20:07 +0000
commite664cd5826d43930fcc5b5dbaedbec94af33184b (patch)
tree7cca8fe1a4d1649d4d40ed7dcd4fc64486dedf00 /docs/examples/simplessl.c
parentb8abeab6d3729ce4c9cc3eccb69e2bd3be2b58d3 (diff)
Fixed a surprising number of example programs that were passing int arguments
to curl_easy_setopt instead of long.
Diffstat (limited to 'docs/examples/simplessl.c')
-rw-r--r--docs/examples/simplessl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/simplessl.c b/docs/examples/simplessl.c
index 77da32d08..ea9eb5ee7 100644
--- a/docs/examples/simplessl.c
+++ b/docs/examples/simplessl.c
@@ -77,7 +77,7 @@ int main(int argc, char **argv)
fprintf(stderr,"can't set crypto engine\n");
break;
}
- if (curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT,1) != CURLE_OK)
+ if (curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT,1L) != CURLE_OK)
{ /* set the crypto engine as default */
/* only needed for the first time you load
a engine in a curl object... */
@@ -108,7 +108,7 @@ int main(int argc, char **argv)
curl_easy_setopt(curl,CURLOPT_CAINFO,pCACertFile);
/* disconnect if we can't validate server's cert */
- curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,1);
+ curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,1L);
res = curl_easy_perform(curl);
break; /* we are done... */