]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpc: replacing ssh_get_publickey() by ssh_get_server_publickey().
authorJulio Faracco <jcfaracco@gmail.com>
Thu, 10 May 2018 20:38:57 +0000 (17:38 -0300)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 11 May 2018 08:38:17 +0000 (10:38 +0200)
After version 0.7.5, libssh deprecated the function scope
ssh_get_publickey() and moved to ssh_get_server_publickey(). So, Libvirt
is failing to compile using this new function name.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/rpc/virnetlibsshsession.c

index 309e8a934025c45195b6b1165bd6fa9978993b75..6d78d2569e051a17d8fbba98faff8b9273153fdc 100644 (file)
@@ -214,7 +214,7 @@ virLibsshServerKeyAsString(virNetLibsshSessionPtr sess)
     size_t keyhashlen;
     char *str;
 
-    if (ssh_get_publickey(sess->session, &key) != SSH_OK) {
+    if (ssh_get_server_publickey(sess->session, &key) != SSH_OK) {
         virReportError(VIR_ERR_LIBSSH, "%s",
                        _("failed to get the key of the current "
                          "session"));