1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

Fix compile warning (const).

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@393 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-05 09:24:53 +00:00
parent dbab7b5a18
commit ef1a41efcf

View File

@@ -480,8 +480,21 @@ int ssh_userauth_password(SSH_SESSION *session, const char *username, const char
return err;
}
static char *keys_path[]={NULL,"%s/.ssh/identity","%s/.ssh/id_dsa","%s/.ssh/id_rsa",NULL};
static char *pub_keys_path[]={NULL,"%s/.ssh/identity.pub","%s/.ssh/id_dsa.pub","%s/.ssh/id_rsa.pub",NULL};
static const char *keys_path[] = {
NULL,
"%s/.ssh/identity",
"%s/.ssh/id_dsa",
"%s/.ssh/id_rsa",
NULL
};
static const char *pub_keys_path[] = {
NULL,
"%s/.ssh/identity.pub",
"%s/.ssh/id_dsa.pub",
"%s/.ssh/id_rsa.pub",
NULL
};
/* this function initialy was in the client */
/* but the fools are the ones who never change mind */