Skip to content

Commit

Permalink
Merge pull request #1 from the-hotels-network/feature/add_curl_version_8
Browse files Browse the repository at this point in the history
fix(curl): Add new version curl
  • Loading branch information
cafijo authored Apr 18, 2023
2 parents c748ca3 + 0f9b20b commit f05847c
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 612 deletions.
291 changes: 146 additions & 145 deletions compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,108 @@



#if (LIBCURL_VERSION_MINOR == 0 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 0
#if (LIBCURL_VERSION_MINOR == 0 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 0
#if (LIBCURL_VERSION_MINOR == 88 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 88
#if (LIBCURL_VERSION_MINOR == 88 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 88
#if (LIBCURL_VERSION_MINOR == 87 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 87
#if (LIBCURL_VERSION_MINOR == 86 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 86
#if (LIBCURL_VERSION_MINOR == 85 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 85
#define CURLOPT_FTP_RESPONSE_TIMEOUT 0
#define CURLE_OBSOLETE75 -1
#if (LIBCURL_VERSION_MINOR == 84 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 84
#define CURLE_UNRECOVERABLE_POLL -1
#define CURLINFO_CAINFO 0
#define CURLINFO_CAPATH 0
#define CURL_VERSION_THREADSAFE 0
#if (LIBCURL_VERSION_MINOR == 83 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 83
#if (LIBCURL_VERSION_MINOR == 83 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 83
#if (LIBCURL_VERSION_MINOR == 82 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 82
#define CURLE_OBSOLETE62 -1
#define CURLE_OBSOLETE76 -1
#if (LIBCURL_VERSION_MINOR == 81 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 81
#if (LIBCURL_VERSION_MINOR == 80 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 80
#if (LIBCURL_VERSION_MINOR == 79 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 79
#if (LIBCURL_VERSION_MINOR == 79 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 79
#if (LIBCURL_VERSION_MINOR == 78 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 78
#define CURLE_SETOPT_OPTION_SYNTAX -1
#if (LIBCURL_VERSION_MINOR == 77 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 77
#define CURLE_SSL_CLIENTCERT -1
#if (LIBCURL_VERSION_MINOR == 76 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 76
#if (LIBCURL_VERSION_MINOR == 76 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 76
#define CURLINFO_REFERER 0
#define CURL_VERSION_GSASL 0
#if (LIBCURL_VERSION_MINOR == 75 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 75
#define CURLAUTH_AWS_SIGV4 0
#if (LIBCURL_VERSION_MINOR == 74 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 74
#define CURL_VERSION_HSTS 0
#if (LIBCURL_VERSION_MINOR == 73 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 73
#define CURLOPT_PROGRESSDATA 0
#define CURLE_PROXY -1
#define CURLINFO_PROXY_ERROR 0
#if (LIBCURL_VERSION_MINOR == 72 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 72
#define CURLINFO_EFFECTIVE_METHOD 0
#define CURL_VERSION_ZSTD 0
#define CURL_VERSION_UNICODE 0
#if (LIBCURL_VERSION_MINOR == 71 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 71
#if (LIBCURL_VERSION_MINOR == 71 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 71
#if (LIBCURL_VERSION_MINOR == 70 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 70
#if (LIBCURL_VERSION_MINOR == 69 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 69
#if (LIBCURL_VERSION_MINOR == 69 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 69
#define CURLE_QUIC_CONNECT_ERROR -1
#if (LIBCURL_VERSION_MINOR == 68 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 68
#define CURLE_HTTP3 -1
#if (LIBCURL_VERSION_MINOR == 67 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 67
#define CURL_VERSION_ESNI 0
#if (LIBCURL_VERSION_MINOR == 66 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 66
#define CURLOPT_SASL_AUTHZID 0
#define CURLE_AUTH_ERROR -1
#define CURLINFO_RETRY_AFTER 0
#define CURL_VERSION_HTTP3 0
#if (LIBCURL_VERSION_MINOR == 65 && LIBCURL_VERSION_PATCH < 3) || LIBCURL_VERSION_MINOR < 65
#if (LIBCURL_VERSION_MINOR == 65 && LIBCURL_VERSION_PATCH < 2) || LIBCURL_VERSION_MINOR < 65
#if (LIBCURL_VERSION_MINOR == 65 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 65
#if (LIBCURL_VERSION_MINOR == 65 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 65
#define CURLOPT_MAXAGE_CONN 0
#if (LIBCURL_VERSION_MINOR == 64 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 64
#define CURLOPT_ALTSVC_CTRL 0
#define CURLOPT_ALTSVC 0
#define CURL_VERSION_ALTSVC 0
#if (LIBCURL_VERSION_MINOR == 64 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 64
#define CURLOPT_TRAILERFUNCTION 0
#define CURLOPT_TRAILERDATA 0
#define CURLOPT_HTTP09_ALLOWED 0
#if (LIBCURL_VERSION_MINOR == 63 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 63
#define CURLOPT_CURLU 0
#if (LIBCURL_VERSION_MINOR == 62 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 62
#define CURLOPT_DOH_URL 0
#define CURLOPT_UPLOAD_BUFFERSIZE 0
#define CURLOPT_UPKEEP_INTERVAL_MS 0
#define CURLE_OBSOLETE51 -1
#if (LIBCURL_VERSION_MINOR == 61 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 61
#if (LIBCURL_VERSION_MINOR == 61 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 61
#define CURLOPT_TLS13_CIPHERS 0
#define CURLOPT_PROXY_TLS13_CIPHERS 0
#define CURLOPT_DISALLOW_USERNAME_IN_URL 0
#define CURLINFO_TOTAL_TIME_T 0
#define CURLINFO_NAMELOOKUP_TIME_T 0
#define CURLINFO_CONNECT_TIME_T 0
#define CURLINFO_PRETRANSFER_TIME_T 0
#define CURLINFO_STARTTRANSFER_TIME_T 0
#define CURLINFO_REDIRECT_TIME_T 0
#define CURLINFO_APPCONNECT_TIME_T 0
#define CURLAUTH_BEARER 0
#if (LIBCURL_VERSION_MINOR == 60 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 60
#define CURLOPT_HAPROXYPROTOCOL 0
#define CURLOPT_DNS_SHUFFLE_ADDRESSES 0
#if (LIBCURL_VERSION_MINOR == 59 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 59
#define CURLOPT_TIMEVALUE_LARGE 0
#define CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS 0
#define CURLOPT_RESOLVER_START_FUNCTION 0
#define CURLOPT_RESOLVER_START_DATA 0
#define CURLE_RECURSIVE_API_CALL -1
#define CURLINFO_FILETIME_T 0
#if (LIBCURL_VERSION_MINOR == 58 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 58
#if (LIBCURL_VERSION_MINOR == 57 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 57
#define CURL_VERSION_BROTLI 0
#if (LIBCURL_VERSION_MINOR == 56 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 56
Expand Down Expand Up @@ -301,152 +403,7 @@
#define CURLE_SSH -1
#define CURLE_SSL_SHUTDOWN_FAILED -1
#if (LIBCURL_VERSION_MINOR == 16 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 16
#define CURLOPT_SOCKOPTFUNCTION 0
#define CURLOPT_SOCKOPTDATA 0
#define CURLOPT_SSL_SESSIONID_CACHE 0
#define CURLE_SSL_CACERT_BADFILE -1
#if (LIBCURL_VERSION_MINOR == 15 && LIBCURL_VERSION_PATCH < 5) || LIBCURL_VERSION_MINOR < 15
#define CURLOPT_MAX_SEND_SPEED_LARGE 0
#define CURLOPT_MAX_RECV_SPEED_LARGE 0
#define CURLOPT_FTP_ALTERNATIVE_TO_USER 0
#if (LIBCURL_VERSION_MINOR == 15 && LIBCURL_VERSION_PATCH < 4) || LIBCURL_VERSION_MINOR < 15
#define CURLOPT_CONV_FROM_NETWORK_FUNCTION 0
#define CURLOPT_CONV_TO_NETWORK_FUNCTION 0
#define CURLOPT_CONV_FROM_UTF8_FUNCTION 0
#define CURLE_CONV_FAILED -1
#define CURLE_CONV_REQD -1
#define CURLINFO_FTP_ENTRY_PATH 0
#define CURL_VERSION_CONV 0
#if (LIBCURL_VERSION_MINOR == 15 && LIBCURL_VERSION_PATCH < 3) || LIBCURL_VERSION_MINOR < 15
#if (LIBCURL_VERSION_MINOR == 15 && LIBCURL_VERSION_PATCH < 2) || LIBCURL_VERSION_MINOR < 15
#define CURLOPT_LOCALPORT 0
#define CURLOPT_LOCALPORTRANGE 0
#define CURLOPT_CONNECT_ONLY 0
#define CURLINFO_LASTSOCKET 0
#if (LIBCURL_VERSION_MINOR == 15 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 15
#define CURLOPT_FTP_FILEMETHOD 0
#if (LIBCURL_VERSION_MINOR == 15 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 15
#define CURLOPT_FTP_SKIP_PASV_IP 0
#define CURLE_TFTP_NOTFOUND -1
#define CURLE_TFTP_PERM -1
#define CURLE_TFTP_DISKFULL -1
#define CURLE_TFTP_ILLEGAL -1
#define CURLE_TFTP_UNKNOWNID -1
#define CURLE_TFTP_EXISTS -1
#define CURLE_TFTP_NOSUCHUSER -1
#if (LIBCURL_VERSION_MINOR == 14 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 14
#define CURLOPT_COOKIELIST 0
#define CURLOPT_IGNORE_CONTENT_LENGTH 0
#define CURLINFO_COOKIELIST 0
#if (LIBCURL_VERSION_MINOR == 14 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 14
#if (LIBCURL_VERSION_MINOR == 13 && LIBCURL_VERSION_PATCH < 2) || LIBCURL_VERSION_MINOR < 13
#define CURL_VERSION_SSPI 0
#if (LIBCURL_VERSION_MINOR == 13 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 13
#define CURLE_LOGIN_DENIED -1
#if (LIBCURL_VERSION_MINOR == 13 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 13
#define CURLOPT_SOURCE_URL 0
#define CURLOPT_SOURCE_QUOTE 0
#define CURLOPT_FTP_ACCOUNT 0
#if (LIBCURL_VERSION_MINOR == 12 && LIBCURL_VERSION_PATCH < 3) || LIBCURL_VERSION_MINOR < 12
#define CURLOPT_IOCTLFUNCTION 0
#define CURLOPT_IOCTLDATA 0
#define CURLE_SEND_FAIL_REWIND -1
#define CURLE_SSL_ENGINE_INITFAILED -1
#define CURLINFO_NUM_CONNECTS 0
#define CURLINFO_SSL_ENGINES 0
#if (LIBCURL_VERSION_MINOR == 12 && LIBCURL_VERSION_PATCH < 2) || LIBCURL_VERSION_MINOR < 12
#define CURLOPT_FTPSSLAUTH 0
#define CURLINFO_OS_ERRNO 0
#if (LIBCURL_VERSION_MINOR == 12 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 12
#define CURLOPT_SOURCE_HOST 0
#define CURLOPT_SOURCE_USERPWD 0
#define CURLOPT_SOURCE_PATH 0
#define CURLOPT_SOURCE_PORT 0
#define CURLOPT_PASV_HOST 0
#define CURLOPT_SOURCE_PREQUOTE 0
#define CURLOPT_SOURCE_POSTQUOTE 0
#if (LIBCURL_VERSION_MINOR == 12 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 12
#define CURLE_INTERFACE_FAILED -1
#define CURL_VERSION_IDN 0
#if (LIBCURL_VERSION_MINOR == 11 && LIBCURL_VERSION_PATCH < 2) || LIBCURL_VERSION_MINOR < 11
#define CURLOPT_TCP_NODELAY 0
#if (LIBCURL_VERSION_MINOR == 11 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 11
#define CURLOPT_POSTFIELDSIZE_LARGE 0
#define CURL_VERSION_LARGEFILE 0
#if (LIBCURL_VERSION_MINOR == 11 && LIBCURL_VERSION_PATCH < 0) || LIBCURL_VERSION_MINOR < 11
#define CURLOPT_INFILESIZE_LARGE 0
#define CURLOPT_RESUME_FROM_LARGE 0
#define CURLOPT_MAXFILESIZE_LARGE 0
#define CURLOPT_NETRC_FILE 0
#define CURLOPT_FTP_SSL 0
#define CURLE_FTP_SSL_FAILED -1
#if (LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 8) || LIBCURL_VERSION_MINOR < 10
#define CURLOPT_IPRESOLVE 0
#define CURLOPT_MAXFILESIZE 0
#define CURLE_LDAP_INVALID_URL -1
#define CURLE_FILESIZE_EXCEEDED -1
#define CURLINFO_RESPONSE_CODE 0
#define CURLINFO_HTTPAUTH_AVAIL 0
#define CURLINFO_PROXYAUTH_AVAIL 0
#define CURL_VERSION_SPNEGO 0
#if (LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 7) || LIBCURL_VERSION_MINOR < 10
#define CURLOPT_FTP_CREATE_MISSING_DIRS 0
#define CURLOPT_PROXYAUTH 0
#define CURLINFO_HTTP_CONNECTCODE 0
#define CURL_VERSION_ASYNCHDNS 0
#if (LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 6) || LIBCURL_VERSION_MINOR < 10
#define CURLOPT_HTTPAUTH 0
#define CURLOPT_SSL_CTX_FUNCTION 0
#define CURLOPT_SSL_CTX_DATA 0
#define CURL_VERSION_NTLM 0
#define CURL_VERSION_GSSNEGOTIATE 0
#define CURL_VERSION_DEBUG 0
#define CURLAUTH_NONE 0
#define CURLAUTH_BASIC 0
#define CURLAUTH_DIGEST 0
#define CURLAUTH_GSSNEGOTIATE 0
#define CURLAUTH_NTLM 0
#define CURLAUTH_ANY 0
#define CURLAUTH_ANYSAFE 0
#if (LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 5) || LIBCURL_VERSION_MINOR < 10
#define CURLOPT_FTP_USE_EPRT 0
#if (LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 4) || LIBCURL_VERSION_MINOR < 10
#define CURLOPT_UNRESTRICTED_AUTH 0
#if (LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 3) || LIBCURL_VERSION_MINOR < 10
#define CURLOPT_PRIVATE 0
#define CURLOPT_HTTP200ALIASES 0
#define CURLE_HTTP_RETURNED_ERROR -1
#define CURLINFO_PRIVATE 0
#if (LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 2) || LIBCURL_VERSION_MINOR < 10
#define CURLE_OPERATION_TIMEDOUT -1
#if (LIBCURL_VERSION_MINOR == 10 && LIBCURL_VERSION_PATCH < 1) || LIBCURL_VERSION_MINOR < 10
#error your version is TOOOOOOOO low
#endif /* 7.10.1 */
#endif /* 7.10.2 */
#endif /* 7.10.3 */
#endif /* 7.10.4 */
#endif /* 7.10.5 */
#endif /* 7.10.6 */
#endif /* 7.10.7 */
#endif /* 7.10.8 */
#endif /* 7.11.0 */
#endif /* 7.11.1 */
#endif /* 7.11.2 */
#endif /* 7.12.0 */
#endif /* 7.12.1 */
#endif /* 7.12.2 */
#endif /* 7.12.3 */
#endif /* 7.13.0 */
#endif /* 7.13.1 */
#endif /* 7.13.2 */
#endif /* 7.14.0 */
#endif /* 7.14.1 */
#endif /* 7.15.0 */
#endif /* 7.15.1 */
#endif /* 7.15.2 */
#endif /* 7.15.3 */
#endif /* 7.15.4 */
#endif /* 7.15.5 */
#endif /* 7.16.0 */
#endif /* 7.16.1 */
#endif /* 7.16.2 */
Expand Down Expand Up @@ -525,4 +482,48 @@
#endif /* 7.56.0 */
#endif /* 7.56.1 */
#endif /* 7.57.0 */
#endif /* 7.58.0 */
#endif /* 7.59.0 */
#endif /* 7.60.0 */
#endif /* 7.61.0 */
#endif /* 7.61.1 */
#endif /* 7.62.0 */
#endif /* 7.63.0 */
#endif /* 7.64.0 */
#endif /* 7.64.1 */
#endif /* 7.65.0 */
#endif /* 7.65.1 */
#endif /* 7.65.2 */
#endif /* 7.65.3 */
#endif /* 7.66.0 */
#endif /* 7.67.0 */
#endif /* 7.68.0 */
#endif /* 7.69.0 */
#endif /* 7.69.1 */
#endif /* 7.70.0 */
#endif /* 7.71.0 */
#endif /* 7.71.1 */
#endif /* 7.72.0 */
#endif /* 7.73.0 */
#endif /* 7.74.0 */
#endif /* 7.75.0 */
#endif /* 7.76.0 */
#endif /* 7.76.1 */
#endif /* 7.77.0 */
#endif /* 7.78.0 */
#endif /* 7.79.0 */
#endif /* 7.79.1 */
#endif /* 7.80.0 */
#endif /* 7.81.0 */
#endif /* 7.82.0 */
#endif /* 7.83.0 */
#endif /* 7.83.1 */
#endif /* 7.84.0 */
#endif /* 7.85.0 */
#endif /* 7.86.0 */
#endif /* 7.87.0 */
#endif /* 7.88.0 */
#endif /* 7.88.1 */
#endif /* 8.0.0 */
#endif /* 8.0.1 */
/* generated ends */
Loading

0 comments on commit f05847c

Please sign in to comment.