diff options
author | Peter Krempa <pkrempa@redhat.com> | 2013-07-09 16:46:32 +0200 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2013-07-12 09:22:38 +0200 |
commit | 273745b43122a77adf8c73b2e0a852ac42387349 (patch) | |
tree | 3320136c89f6dc49a443b6c5fa8cd9870208ed35 /src/rpc/virnetsshsession.h | |
parent | 676504e3be2833d606f076b4ba939f1d8dbea0cf (diff) | |
download | libvirt-273745b43122a77adf8c73b2e0a852ac42387349.tar.gz |
remote: Improve libssh2 password authentication
This patch enables the password authentication in the libssh2 connection
driver. There are a few benefits to this step:
1) Hosts with challenge response authentication will now be supported
with the libssh2 connection driver.
2) Credential for hosts can now be stored in the authentication
credential config file
Diffstat (limited to 'src/rpc/virnetsshsession.h')
-rw-r--r-- | src/rpc/virnetsshsession.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rpc/virnetsshsession.h b/src/rpc/virnetsshsession.h index 8bd2445f4a..65bd76a94b 100644 --- a/src/rpc/virnetsshsession.h +++ b/src/rpc/virnetsshsession.h @@ -23,6 +23,7 @@ # define __VIR_NET_SSH_SESSION_H__ # include "internal.h" +# include "viruri.h" typedef struct _virNetSSHSession virNetSSHSession; typedef virNetSSHSession *virNetSSHSessionPtr; @@ -50,8 +51,8 @@ int virNetSSHSessionAuthSetCallback(virNetSSHSessionPtr sess, virConnectAuthPtr auth); int virNetSSHSessionAuthAddPasswordAuth(virNetSSHSessionPtr sess, - const char *username, - const char *password); + virURIPtr uri, + const char *username); int virNetSSHSessionAuthAddAgentAuth(virNetSSHSessionPtr sess, const char *username); |