diff options
| -rw-r--r-- | src/errors.c | 2 | ||||
| -rw-r--r-- | src/getinfo.c | 2 | ||||
| -rw-r--r-- | src/setopt.c | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/errors.c b/src/errors.c index a40c16c..1d61390 100644 --- a/src/errors.c +++ b/src/errors.c @@ -105,7 +105,9 @@ static const struct jurl_error jurl_errors[] = { {CURLE_QUIC_CONNECT_ERROR, "error/quic-connect-error"}, {CURLE_PROXY, "error/proxy"}, {CURLE_SSL_CLIENTCERT, "error/ssl-clientcert"}, +#if CURL_AT_LEAST_VERSION(7,85,0) {CURLE_UNRECOVERABLE_POLL, "error/unrecoverable-poll"}, +#endif }; #define jurl_error_size (sizeof(jurl_errors) / sizeof(struct jurl_error)) diff --git a/src/getinfo.c b/src/getinfo.c index 8d41b97..2c64653 100644 --- a/src/getinfo.c +++ b/src/getinfo.c @@ -75,8 +75,10 @@ static const struct jurl_opt jurl_opts[] = { // SKIP: lastsocket: deprecated for activesocket // SKIP: activesocket: complex representation {CURLINFO_FTP_ENTRY_PATH, "ftp-entry-path", JURL_PARAMTYPE_STRING}, +#if CURL_AT_LEAST_VERSION(7,84,0) {CURLINFO_CAPATH, "capath", JURL_PARAMTYPE_STRING}, {CURLINFO_CAINFO, "cainfo", JURL_PARAMTYPE_STRING}, +#endif // SKIP: certinfo: complex representation // SKIP: tls-ssl-ptr: complex representation // SKIP: tls-session: deprecated for tls-ssl-ptr diff --git a/src/setopt.c b/src/setopt.c index 7a86758..1d70587 100644 --- a/src/setopt.c +++ b/src/setopt.c @@ -69,9 +69,13 @@ static const struct jurl_opt jurl_opts[] = { {CURLOPT_URL, "url", JURL_PARAMTYPE_STRING}, {CURLOPT_PATH_AS_IS, "path-as-is", JURL_PARAMTYPE_STRING}, // SKIP: protocols: deprecated for protocols-str +#if CURL_AT_LEAST_VERSION(7,85,0) {CURLOPT_PROTOCOLS_STR, "protocols", JURL_PARAMTYPE_STRING}, +#endif // SKIP: redir-protocols: deprecated for redir-protocols-str +#if CURL_AT_LEAST_VERSION(7,85,0) {CURLOPT_REDIR_PROTOCOLS_STR, "redir-protocols", JURL_PARAMTYPE_STRING}, +#endif {CURLOPT_DEFAULT_PROTOCOL, "default-protocol", JURL_PARAMTYPE_STRING}, {CURLOPT_PROXY, "proxy", JURL_PARAMTYPE_STRING}, {CURLOPT_PRE_PROXY, "pre-proxy", JURL_PARAMTYPE_STRING}, |
