mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:53:33 +03:00
Renamed several libcurl error codes and options to make them more general
and allow reuse by multiple protocols. Several unused error codes were removed. In all cases, macros were added to preserve source (and binary) compatibility with the old names. These macros are subject to removal at a future date, but probably not before 2009. An application can be tested to see if it is using any obsolete code by compiling it with the CURL_NO_OLDIES macro defined. Documented some newer error codes in libcurl-error(3)
This commit is contained in:
parent
4b60c3e9d3
commit
9f44a95522
29 changed files with 341 additions and 275 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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" */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue