aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/ftpuploadresume.c4
-rw-r--r--docs/examples/simplessl.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/ftpuploadresume.c b/docs/examples/ftpuploadresume.c
index 8e6be977a..7c71add0c 100644
--- a/docs/examples/ftpuploadresume.c
+++ b/docs/examples/ftpuploadresume.c
@@ -122,10 +122,10 @@ int upload(CURL *curlhandle, const char * remotepath, const char * localpath,
fseek(f, uploaded_len, SEEK_SET);
- curl_easy_setopt(curlhandle, CURLOPT_FTPAPPEND, 1);
+ curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1);
}
else { /* no */
- curl_easy_setopt(curlhandle, CURLOPT_FTPAPPEND, 0);
+ curl_easy_setopt(curlhandle, CURLOPT_APPEND, 0);
}
r = curl_easy_perform(curlhandle);
diff --git a/docs/examples/simplessl.c b/docs/examples/simplessl.c
index 7ad35237c..77da32d08 100644
--- a/docs/examples/simplessl.c
+++ b/docs/examples/simplessl.c
@@ -95,7 +95,7 @@ int main(int argc, char **argv)
/* sorry, for engine we must set the passphrase
(if the key has one...) */
if (pPassphrase)
- curl_easy_setopt(curl,CURLOPT_SSLKEYPASSWD,pPassphrase);
+ curl_easy_setopt(curl,CURLOPT_KEYPASSWD,pPassphrase);
/* if we use a key stored in a crypto engine,
we must set the key type to "ENG" */