From d37b0936d1ab9319d7b684eb7d9fc447174429bc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 5 May 2019 23:42:29 +0200 Subject: ssh: define USE_SSH if SSH is enabled (any backend) Closes #3846 --- lib/setopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/setopt.c') diff --git a/lib/setopt.c b/lib/setopt.c index da9ed3bb1..6352f486a 100644 --- a/lib/setopt.c +++ b/lib/setopt.c @@ -2217,7 +2217,7 @@ static CURLcode vsetopt(struct Curl_easy *data, CURLoption option, data->set.proxy_ssl.primary.sessionid = data->set.ssl.primary.sessionid; break; -#if defined(USE_LIBSSH2) || defined(USE_LIBSSH) +#ifdef USE_SSH /* we only include SSH options if explicitly built to support SSH */ case CURLOPT_SSH_AUTH_TYPES: data->set.ssh_auth_types = va_arg(param, long); @@ -2267,7 +2267,7 @@ static CURLcode vsetopt(struct Curl_easy *data, CURLoption option, */ data->set.ssh_keyfunc_userp = va_arg(param, void *); break; -#endif /* USE_LIBSSH2 */ +#endif /* USE_SSH */ case CURLOPT_HTTP_TRANSFER_DECODING: /* -- cgit v1.2.1