diff options
author | Peter Krempa <pkrempa@redhat.com> | 2011-11-14 15:30:23 +0100 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2012-08-21 14:47:09 +0200 |
commit | 1193fc5f4465a622b22c10b16ab8081e98c2e622 (patch) | |
tree | d249745ceaa40c297998c66b778ba5e2f16bb3ca /include | |
parent | Add test case for SELinux label generation (diff) | |
download | libvirt-1193fc5f4465a622b22c10b16ab8081e98c2e622.tar.gz libvirt-1193fc5f4465a622b22c10b16ab8081e98c2e622.tar.bz2 libvirt-1193fc5f4465a622b22c10b16ab8081e98c2e622.zip |
libssh2_transport: add main libssh2 transport implementation
This patch adds helper functions that enable us to use libssh2 in
conjunction with libvirt's virNetSockets for ssh transport instead of
spawning "ssh" client process.
This implemetation supports tunneled plaintext, keyboard-interactive,
private key, ssh agent based and null authentication. Libvirt's Auth
callback is used for interaction with the user. (Keyboard interactive
authentication, adding of host keys, private key passphrases). This
enables seamless integration into the application using libvirt. No
helpers as "ssh-askpass" are needed.
Reading and writing of OpenSSH style "known_hosts" files is supported.
Communication is done using SSH exec channel, where the user may specify
arbitrary command to be executed on the remote side and reads and writes
to/from stdin/out are sent through the ssh channel. Usage of stderr is
not (yet) supported.
Diffstat (limited to 'include')
-rw-r--r-- | include/libvirt/virterror.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h index d0af43d77..69c64aa36 100644 --- a/include/libvirt/virterror.h +++ b/include/libvirt/virterror.h @@ -112,6 +112,8 @@ typedef enum { VIR_FROM_PARALLELS = 48, /* Error from Parallels */ VIR_FROM_DEVICE = 49, /* Error from Device */ + VIR_FROM_SSH = 50, /* Error from libssh2 connection transport */ + # ifdef VIR_ENUM_SENTINELS VIR_ERR_DOMAIN_LAST # endif @@ -280,6 +282,7 @@ typedef enum { VIR_ERR_BLOCK_COPY_ACTIVE = 83, /* action prevented by block copy job */ VIR_ERR_OPERATION_UNSUPPORTED = 84, /* The requested operation is not supported */ + VIR_ERR_SSH = 85, /* error in ssh transport driver */ } virErrorNumber; /** |