summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-12-22 17:08:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-12-22 23:07:46 +0100
commitf4883ba9663a8f74c6b3acd93bba107adfd15340 (patch)
treeb6193100559aeb95a6f082328ea73f390def7f28 /lib/url.c
parentaef4dc892d012d990c85c7bad0d9d06c2ebfa775 (diff)
downloadcurl-f4883ba9663a8f74c6b3acd93bba107adfd15340.tar.gz
urldata: make set.http200aliases conditional on HTTP being present
And make a few SSH-only fields depend on SSH Closes #10140
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index 73f038d8d..e1d45b5c3 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -560,8 +560,11 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
#ifdef USE_TLS_SRP
set->ssl.primary.authtype = CURL_TLSAUTH_NONE;
#endif
- /* defaults to any auth type */
+#ifdef USE_SSH
+ /* defaults to any auth type */
set->ssh_auth_types = CURLSSH_AUTH_DEFAULT;
+ set->new_directory_perms = 0755; /* Default permissions */
+#endif
set->ssl.primary.sessionid = TRUE; /* session ID caching enabled by
default */
#ifndef CURL_DISABLE_PROXY
@@ -569,7 +572,6 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
#endif
set->new_file_perms = 0644; /* Default permissions */
- set->new_directory_perms = 0755; /* Default permissions */
set->allowed_protocols = (curl_prot_t) CURLPROTO_ALL;
set->redir_protocols = CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP |
CURLPROTO_FTPS;