The only caller doesn't pass the password. Remove the argument.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
} else if (STRCASEEQ(authMethod, "privkey")) {
ret = virNetSSHSessionAuthAddPrivKeyAuth(sess,
username,
- privkey,
- NULL);
+ privkey);
} else if (STRCASEEQ(authMethod, "agent")) {
ret = virNetSSHSessionAuthAddAgentAuth(sess, username);
} else {
int
virNetSSHSessionAuthAddPrivKeyAuth(virNetSSHSession *sess,
const char *username,
- const char *keyfile,
- const char *password)
+ const char *keyfile)
{
virNetSSHAuthMethod *auth;
char *user = NULL;
- char *pass = NULL;
char *file = NULL;
if (!username || !keyfile) {
user = g_strdup(username);
file = g_strdup(keyfile);
- pass = g_strdup(password);
if (!(auth = virNetSSHSessionAuthMethodNew(sess)))
goto error;
auth->username = user;
- auth->password = pass;
auth->filename = file;
auth->method = VIR_NET_SSH_AUTH_PRIVKEY;
error:
VIR_FREE(user);
- VIR_FREE(pass);
VIR_FREE(file);
virObjectUnlock(sess);
return -1;
int virNetSSHSessionAuthAddPrivKeyAuth(virNetSSHSession *sess,
const char *username,
- const char *keyfile,
- const char *password);
+ const char *keyfile);
int virNetSSHSessionAuthAddKeyboardAuth(virNetSSHSession *sess,
const char *username,