]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libssh2_session: Add support for creating known_hosts file
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2012 16:28:11 +0000 (18:28 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Aug 2012 09:49:07 +0000 (11:49 +0200)
commitf1d0b92a01f5bef029d25368674849e9ac89932b
tree280745581b2c46a8c7e976f86e82eab5f693567f
parent50659420192263ab8881f21d32adb2525c73c3ee
libssh2_session: Add support for creating known_hosts file

The libssh2 code wasn't supposed to create the known_hosts file, but
recent findings show, that we can't use the default created by OpenSSH
as libssh2 might damage it. We need to create a private known_hosts file
in the config path.

This patch adds support for skipping error if the known_hosts file is
not present and let libssh2 create a new one.
src/rpc/virnetsocket.c
src/rpc/virnetsshsession.c
src/rpc/virnetsshsession.h