curl.h: mark two error codes as obsolete
Not used by libcurl since many years Closes #15538
This commit is contained in:
parent
a826886509
commit
bc34ebc87b
@ -203,9 +203,9 @@ Not used in modern versions.
|
|||||||
|
|
||||||
The server does not support or accept range requests.
|
The server does not support or accept range requests.
|
||||||
|
|
||||||
## CURLE_HTTP_POST_ERROR (34)
|
## Obsolete error (34)
|
||||||
|
|
||||||
This is an odd error that mainly occurs due to internal confusion.
|
Not used since 7.56.0.
|
||||||
|
|
||||||
## CURLE_SSL_CONNECT_ERROR (35)
|
## CURLE_SSL_CONNECT_ERROR (35)
|
||||||
|
|
||||||
@ -236,9 +236,9 @@ LDAP search failed.
|
|||||||
|
|
||||||
Not used in modern versions.
|
Not used in modern versions.
|
||||||
|
|
||||||
## CURLE_FUNCTION_NOT_FOUND (41)
|
## Obsolete error (41)
|
||||||
|
|
||||||
Function not found. A required zlib function was not found.
|
Not used since 7.53.0.
|
||||||
|
|
||||||
## CURLE_ABORTED_BY_CALLBACK (42)
|
## CURLE_ABORTED_BY_CALLBACK (42)
|
||||||
|
|
||||||
|
|||||||
@ -551,14 +551,14 @@ typedef enum {
|
|||||||
CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */
|
CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */
|
||||||
CURLE_OBSOLETE32, /* 32 - NOT USED */
|
CURLE_OBSOLETE32, /* 32 - NOT USED */
|
||||||
CURLE_RANGE_ERROR, /* 33 - RANGE "command" did not work */
|
CURLE_RANGE_ERROR, /* 33 - RANGE "command" did not work */
|
||||||
CURLE_HTTP_POST_ERROR, /* 34 */
|
CURLE_OBSOLETE34, /* 34 */
|
||||||
CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */
|
CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */
|
||||||
CURLE_BAD_DOWNLOAD_RESUME, /* 36 - could not resume download */
|
CURLE_BAD_DOWNLOAD_RESUME, /* 36 - could not resume download */
|
||||||
CURLE_FILE_COULDNT_READ_FILE, /* 37 */
|
CURLE_FILE_COULDNT_READ_FILE, /* 37 */
|
||||||
CURLE_LDAP_CANNOT_BIND, /* 38 */
|
CURLE_LDAP_CANNOT_BIND, /* 38 */
|
||||||
CURLE_LDAP_SEARCH_FAILED, /* 39 */
|
CURLE_LDAP_SEARCH_FAILED, /* 39 */
|
||||||
CURLE_OBSOLETE40, /* 40 - NOT USED */
|
CURLE_OBSOLETE40, /* 40 - NOT USED */
|
||||||
CURLE_FUNCTION_NOT_FOUND, /* 41 - NOT USED starting with 7.53.0 */
|
CURLE_OBSOLETE41, /* 41 - NOT USED starting with 7.53.0 */
|
||||||
CURLE_ABORTED_BY_CALLBACK, /* 42 */
|
CURLE_ABORTED_BY_CALLBACK, /* 42 */
|
||||||
CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */
|
CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */
|
||||||
CURLE_OBSOLETE44, /* 44 - NOT USED */
|
CURLE_OBSOLETE44, /* 44 - NOT USED */
|
||||||
@ -643,6 +643,12 @@ typedef enum {
|
|||||||
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
#ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
||||||
the obsolete stuff removed! */
|
the obsolete stuff removed! */
|
||||||
|
|
||||||
|
/* removed in 7.53.0 */
|
||||||
|
#define CURLE_FUNCTION_NOT_FOUND CURLE_OBSOLETE41
|
||||||
|
|
||||||
|
/* removed in 7.56.0 */
|
||||||
|
#define CURLE_HTTP_POST_ERROR CURLE_OBSOLETE34
|
||||||
|
|
||||||
/* Previously obsolete error code reused in 7.38.0 */
|
/* Previously obsolete error code reused in 7.38.0 */
|
||||||
#define CURLE_OBSOLETE16 CURLE_HTTP2
|
#define CURLE_OBSOLETE16 CURLE_HTTP2
|
||||||
|
|
||||||
|
|||||||
@ -151,9 +151,6 @@ curl_easy_strerror(CURLcode error)
|
|||||||
case CURLE_RANGE_ERROR:
|
case CURLE_RANGE_ERROR:
|
||||||
return "Requested range was not delivered by the server";
|
return "Requested range was not delivered by the server";
|
||||||
|
|
||||||
case CURLE_HTTP_POST_ERROR:
|
|
||||||
return "Internal problem setting up the POST";
|
|
||||||
|
|
||||||
case CURLE_SSL_CONNECT_ERROR:
|
case CURLE_SSL_CONNECT_ERROR:
|
||||||
return "SSL connect error";
|
return "SSL connect error";
|
||||||
|
|
||||||
@ -169,9 +166,6 @@ curl_easy_strerror(CURLcode error)
|
|||||||
case CURLE_LDAP_SEARCH_FAILED:
|
case CURLE_LDAP_SEARCH_FAILED:
|
||||||
return "LDAP: search failed";
|
return "LDAP: search failed";
|
||||||
|
|
||||||
case CURLE_FUNCTION_NOT_FOUND:
|
|
||||||
return "A required function in the library was not found";
|
|
||||||
|
|
||||||
case CURLE_ABORTED_BY_CALLBACK:
|
case CURLE_ABORTED_BY_CALLBACK:
|
||||||
return "Operation was aborted by an application callback";
|
return "Operation was aborted by an application callback";
|
||||||
|
|
||||||
@ -330,7 +324,9 @@ curl_easy_strerror(CURLcode error)
|
|||||||
case CURLE_OBSOLETE24:
|
case CURLE_OBSOLETE24:
|
||||||
case CURLE_OBSOLETE29:
|
case CURLE_OBSOLETE29:
|
||||||
case CURLE_OBSOLETE32:
|
case CURLE_OBSOLETE32:
|
||||||
|
case CURLE_OBSOLETE34:
|
||||||
case CURLE_OBSOLETE40:
|
case CURLE_OBSOLETE40:
|
||||||
|
case CURLE_OBSOLETE41:
|
||||||
case CURLE_OBSOLETE44:
|
case CURLE_OBSOLETE44:
|
||||||
case CURLE_OBSOLETE46:
|
case CURLE_OBSOLETE46:
|
||||||
case CURLE_OBSOLETE50:
|
case CURLE_OBSOLETE50:
|
||||||
|
|||||||
@ -145,7 +145,6 @@ static bool is_fatal_error(CURLcode code)
|
|||||||
case CURLE_FAILED_INIT:
|
case CURLE_FAILED_INIT:
|
||||||
case CURLE_OUT_OF_MEMORY:
|
case CURLE_OUT_OF_MEMORY:
|
||||||
case CURLE_UNKNOWN_OPTION:
|
case CURLE_UNKNOWN_OPTION:
|
||||||
case CURLE_FUNCTION_NOT_FOUND:
|
|
||||||
case CURLE_BAD_FUNCTION_ARGUMENT:
|
case CURLE_BAD_FUNCTION_ARGUMENT:
|
||||||
/* critical error */
|
/* critical error */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
@ -66,14 +66,14 @@ e30: FTP: command PORT failed
|
|||||||
e31: FTP: command REST failed
|
e31: FTP: command REST failed
|
||||||
e32: Unknown error
|
e32: Unknown error
|
||||||
e33: Requested range was not delivered by the server
|
e33: Requested range was not delivered by the server
|
||||||
e34: Internal problem setting up the POST
|
e34: Unknown error
|
||||||
e35: SSL connect error
|
e35: SSL connect error
|
||||||
e36: Could not resume download
|
e36: Could not resume download
|
||||||
e37: Could not read a file:// file
|
e37: Could not read a file:// file
|
||||||
e38: LDAP: cannot bind
|
e38: LDAP: cannot bind
|
||||||
e39: LDAP: search failed
|
e39: LDAP: search failed
|
||||||
e40: Unknown error
|
e40: Unknown error
|
||||||
e41: A required function in the library was not found
|
e41: Unknown error
|
||||||
e42: Operation was aborted by an application callback
|
e42: Operation was aborted by an application callback
|
||||||
e43: A libcurl function was given a bad argument
|
e43: A libcurl function was given a bad argument
|
||||||
e44: Unknown error
|
e44: Unknown error
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user