ssh: define USE_SSH if SSH is enabled (any backend)

Closes #3846
This commit is contained in:
Daniel Stenberg 2019-05-05 23:42:29 +02:00
parent c23b8e827c
commit d37b0936d1
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 12 additions and 8 deletions

View file

@ -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:
/*