Fixed a couple of compile problems.
This commit is contained in:
@@ -364,7 +364,7 @@ CURLcode Curl_ssh_connect(struct connectdata *conn, bool *done)
|
|||||||
*/
|
*/
|
||||||
if ((data->set.ssh_auth_types & CURLSSH_AUTH_PUBLICKEY) &&
|
if ((data->set.ssh_auth_types & CURLSSH_AUTH_PUBLICKEY) &&
|
||||||
(strstr(authlist, "publickey") != NULL)) {
|
(strstr(authlist, "publickey") != NULL)) {
|
||||||
const char *home;
|
char *home;
|
||||||
const char *passphrase;
|
const char *passphrase;
|
||||||
char rsa_pub[PATH_MAX];
|
char rsa_pub[PATH_MAX];
|
||||||
char rsa[PATH_MAX];
|
char rsa[PATH_MAX];
|
||||||
|
|||||||
@@ -3430,6 +3430,7 @@ else {
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* file: is a special case in that it doesn't need a network connection
|
* file: is a special case in that it doesn't need a network connection
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
#ifndef CURL_DISABLE_FILE
|
||||||
if (strequal(conn->protostr, "FILE")) {
|
if (strequal(conn->protostr, "FILE")) {
|
||||||
/* anyway, this is supposed to be the connect function so we better
|
/* anyway, this is supposed to be the connect function so we better
|
||||||
at least check that the file is present here! */
|
at least check that the file is present here! */
|
||||||
@@ -3447,6 +3448,7 @@ else {
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
* If the protocol is using SSL and HTTP proxy is used, we set
|
* If the protocol is using SSL and HTTP proxy is used, we set
|
||||||
|
|||||||
Reference in New Issue
Block a user