• P
    client: Change default location of known_hosts file for libssh2 layer · 225f2807
    Peter Krempa 提交于
    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.
    225f2807
virnetclient.c 59.2 KB