]> git.ipfire.org Git - thirdparty/libvirt.git/commit
client: Change default location of known_hosts file for libssh2 layer
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Aug 2012 15:54:26 +0000 (17:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Aug 2012 09:49:07 +0000 (11:49 +0200)
commit225f280744e38fae883bd289ef34bb3f6db71c10
treefc71ed5f21ffbfe69c104646bdc1f33154db7dcb
parentf1d0b92a01f5bef029d25368674849e9ac89932b
client: Change default location of known_hosts file for libssh2 layer

Unfortunately libssh2 doesn't support all types of host keys that can be
saved in the known_hosts file. Also it does not report that parsing of
the file failed. This results into truncated known_hosts files where the
standard client stores keys also in other formats (eg.
ecdsa-sha2-nistp256).

This patch changes the default location of the known_hosts file into the
libvirt private configuration directory, where it will be only written
by the libssh2 layer itself. This prevents trashing user's known_host
file.
src/rpc/virnetclient.c