From nobody Mon Feb 9 13:57:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1543002796837876.9732087717771; Fri, 23 Nov 2018 11:53:16 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1C5A23082AEE; Fri, 23 Nov 2018 19:53:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DB1DD18B9D; Fri, 23 Nov 2018 19:53:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9DA0B3F7D0; Fri, 23 Nov 2018 19:53:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wANJqrJi012472 for ; Fri, 23 Nov 2018 14:52:53 -0500 Received: by smtp.corp.redhat.com (Postfix) id 05D87BA67; Fri, 23 Nov 2018 19:52:53 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F22B7383F for ; Fri, 23 Nov 2018 19:52:50 +0000 (UTC) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F4E57F6B3 for ; Fri, 23 Nov 2018 19:52:50 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id q70so9060610qkh.6 for ; Fri, 23 Nov 2018 11:52:50 -0800 (PST) Received: from localhost.localdomain ([191.8.59.166]) by smtp.gmail.com with ESMTPSA id v50sm35595049qtc.7.2018.11.23.11.52.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 11:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=6ImuGxQZhxiZJfBERbgGIIP3tWmrkgfJBLkRFBWxXLw=; b=m7kDSDhTn4r8uOHTLm6KZZgbKtCnT4b3f8j9gtaOyVyAGnSJ2nE/l6y0cwAv5wFk7j rHnWVHlRozA/pIfwFnyQP/1ECSWtkkF8ASTF2OXwomeqbg+WPqCgorrFVDp5Qijxkqlv OxFA5au+TIh4Z/HmlerIy9WfNUZwSvGhKAT+EyTKHbWgfzrHOhf7imwEPhJyrQfcoNi/ 15URUNU9LH6MO92p21CT5BPyvzS0uSvDV5yatuOe+t2lMIiYRj9Ofxie2FQKmtZKW9ub rPUiI+9TKue/XCU5Lbz18T/utQ2pLGSDRBr7pmutEeZssiaJqyICZezBLqJHue7GgBDP 51Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6ImuGxQZhxiZJfBERbgGIIP3tWmrkgfJBLkRFBWxXLw=; b=TfeD5cWgWANl8HQBAjPMScFPtdoTFJiLQTLj6ZTfibWB2jLo/g1xbr1Q3CSuytFf9X AUu2xCIsdtsrdQd/7uq7bgyWQjP3vowp98Xb1XgscaSJ6hfk4b+EfByy/3p1P3M8KAdM YnKVo6WfiMzanD1pDJgJJ3pdA6EiB60IMsKbpdD/n804ZFuW0rW06wXFu6wsj0RkaJ49 X8kPShan+fklRq3Xy4UprLJf4viRewcEwrlsNDkWv3j977L61Fv/yAJ3bjOBfySnaDMc Bnuq9zleJlxLGjpzN5YZ7korUtTaO6ToMPlxuS3Ku0jpAGg88cZlcXaklq5BVF0T1u5z IqVw== X-Gm-Message-State: AA+aEWbNRiN5Zww/c7cKgw4AbiZmehDBjnZQUl24/s+RWo9G45VUVQDd R/dIuXSq1wvHlG7fWfBgJHBXi0Hb X-Google-Smtp-Source: AFSGD/VKOihhFhJ1ngsG3cYHy7pJIGLXUBaRcGK5jjkVcdUruns25mTmWBc4yU5vbTd0Zk2uklatfw== X-Received: by 2002:ae9:ed51:: with SMTP id c78mr15014655qkg.85.1543002769090; Fri, 23 Nov 2018 11:52:49 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Sat, 24 Nov 2018 03:52:34 +0800 Message-Id: <20181123195237.15802-3-jcfaracco@gmail.com> In-Reply-To: <20181123195237.15802-1-jcfaracco@gmail.com> References: <20181123195237.15802-1-jcfaracco@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 23 Nov 2018 19:52:50 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 23 Nov 2018 19:52:50 +0000 (UTC) for IP:'209.85.222.193' DOMAIN:'mail-qk1-f193.google.com' HELO:'mail-qk1-f193.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.111 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.222.193 mail-qk1-f193.google.com 209.85.222.193 mail-qk1-f193.google.com X-Scanned-By: MIMEDefang 2.83 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v3 2/4] rpc: replacing ssh_is_server_known() by ssh_session_is_known_server(). X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Fri, 23 Nov 2018 19:53:14 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" After version 0.8.0, libssh deprecated the function scope ssh_is_server_known() and moved to ssh_session_is_known_server(). So, libvirt is failing to compile using this new function name. Signed-off-by: Julio Faracco --- src/rpc/virnetlibsshsession.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/rpc/virnetlibsshsession.c b/src/rpc/virnetlibsshsession.c index 7c5f158f4d..eb6d6843a2 100644 --- a/src/rpc/virnetlibsshsession.c +++ b/src/rpc/virnetlibsshsession.c @@ -80,6 +80,22 @@ struct _virNetLibsshAuthMethod { int tries; }; =20 +#ifndef HAVE_SSH_KNOWN_HOSTS_E +/* This is an auxiliar enum to help libssh migration to version 0.8.0 + * or higher. This enum associates the enumerator ssh_server_known_e + * with new ssh_known_hosts_e enum. In other words, it can be removed + * in the future. ERROR was moved from -1 to -2 and NOT_FOUND from 4 + * to -1. */ +enum _vir_ssh_known_hosts_e { + SSH_KNOWN_HOSTS_ERROR =3D SSH_SERVER_ERROR, + SSH_KNOWN_HOSTS_UNKNOWN =3D SSH_SERVER_NOT_KNOWN, + SSH_KNOWN_HOSTS_OK, + SSH_KNOWN_HOSTS_CHANGED, + SSH_KNOWN_HOSTS_OTHER, + SSH_KNOWN_HOSTS_NOT_FOUND, +}; +#endif + struct _virNetLibsshSession { virObjectLockable parent; virNetLibsshSessionState state; --=20 2.19.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list