[libvirt] [PATCH 1/2] libssh2_session: Add support for creating known_hosts file

Eric Blake eblake at redhat.com
Tue Aug 21 17:21:54 UTC 2012


On 08/21/2012 10:48 AM, Peter Krempa wrote:
> 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_host file is not

s/known_host/known_hosts/

> present and let libssh2 create a new one.
> ---
>  src/rpc/virnetsocket.c     |    4 ++--
>  src/rpc/virnetsshsession.c |   26 ++++++++++++++++----------
>  src/rpc/virnetsshsession.h |    9 +++++++--
>  3 files changed, 25 insertions(+), 14 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120821/c2012a3a/attachment-0001.sig>


More information about the libvir-list mailing list