From f70da9c17e315f382694d8ca5585191f4e5478d7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 21 Nov 2019 11:37:44 +0100 Subject: include: make CURLE_HTTP3 use a new error code To avoid potential issues with error code reuse. Reported-by: Christoph M. Becker Assisted-by: Dan Fandrich Fixes #4601 Closes #4627 --- include/curl/curl.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/curl/curl.h b/include/curl/curl.h index 8c43fa884..70b37b799 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -501,9 +501,7 @@ typedef enum { CURLE_FTP_COULDNT_SET_TYPE, /* 17 */ CURLE_PARTIAL_FILE, /* 18 */ CURLE_FTP_COULDNT_RETR_FILE, /* 19 */ - CURLE_HTTP3, /* 20 - An HTTP/3 layer problem. - [was obsoleted in August 2007 for 7.17.0, - reused in November 2019 for 7.67.1] */ + CURLE_OBSOLETE20, /* 20 - NOT USED */ CURLE_QUOTE_ERROR, /* 21 - quote command failure */ CURLE_HTTP_RETURNED_ERROR, /* 22 */ CURLE_WRITE_ERROR, /* 23 */ @@ -604,6 +602,7 @@ typedef enum { inside a callback */ CURLE_AUTH_ERROR, /* 94 - an authentication function returned an error */ + CURLE_HTTP3, /* 95 - An HTTP/3 layer problem */ CURL_LAST /* never use! */ } CURLcode; -- cgit v1.2.3