The only caller doesn't actually populate it. Remove it to simplify
internals.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
int
virNetLibsshSessionAuthAddPrivKeyAuth(virNetLibsshSession *sess,
- const char *keyfile,
- const char *password)
+ const char *keyfile)
{
virNetLibsshAuthMethod *auth;
return -1;
}
- auth->password = g_strdup(password);
auth->filename = g_strdup(keyfile);
auth->method = VIR_NET_LIBSSH_AUTH_PRIVKEY;
auth->ssh_flags = SSH_AUTH_METHOD_PUBLICKEY;
int virNetLibsshSessionAuthAddAgentAuth(virNetLibsshSession *sess);
int virNetLibsshSessionAuthAddPrivKeyAuth(virNetLibsshSession *sess,
- const char *keyfile,
- const char *password);
+ const char *keyfile);
int virNetLibsshSessionAuthAddKeyboardAuth(virNetLibsshSession *sess,
int tries);
} else if (STRCASEEQ(authMethod, "password")) {
ret = virNetLibsshSessionAuthAddPasswordAuth(sess, uri);
} else if (STRCASEEQ(authMethod, "privkey")) {
- ret = virNetLibsshSessionAuthAddPrivKeyAuth(sess,
- privkey,
- NULL);
+ ret = virNetLibsshSessionAuthAddPrivKeyAuth(sess, privkey);
} else if (STRCASEEQ(authMethod, "agent")) {
ret = virNetLibsshSessionAuthAddAgentAuth(sess);
} else {