Re: [libvirt] [PATCH 1/3] rpc: libssh: allow a NULL known_hosts file

2017-01-10 Thread Peter Krempa
On Tue, Jan 10, 2017 at 19:43:18 +0100, Pino Toscano wrote: > Make sure that virNetLibsshSessionSetHostKeyVerification accepts a NULL > value for the path to the known_hosts file: > - call ssh_options_set(SSH_OPTIONS_KNOWNHOSTS) anyway, using /dev/null, > otherwise libssh will use its default

[libvirt] [PATCH 1/3] rpc: libssh: allow a NULL known_hosts file

2017-01-10 Thread Pino Toscano
Make sure that virNetLibsshSessionSetHostKeyVerification accepts a NULL value for the path to the known_hosts file: - call ssh_options_set(SSH_OPTIONS_KNOWNHOSTS) anyway, using /dev/null, otherwise libssh will use its default path - do not call ssh_write_knownhost when no known hosts file was