From nobody Mon Feb 9 13:57:46 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 1543002795314875.1178459289756; Fri, 23 Nov 2018 11:53:15 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2173530842AB; 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 DEB7BD1E1; 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 9AFFF3F7CD; Fri, 23 Nov 2018 19:53:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wANJqqTa012464 for ; Fri, 23 Nov 2018 14:52:52 -0500 Received: by smtp.corp.redhat.com (Postfix) id AB58A60920; Fri, 23 Nov 2018 19:52:52 +0000 (UTC) Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A38CC614DB for ; Fri, 23 Nov 2018 19:52:52 +0000 (UTC) Received: from mail-qt1-f195.google.com (mail-qt1-f195.google.com [209.85.160.195]) (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 89B3E168F for ; Fri, 23 Nov 2018 19:52:51 +0000 (UTC) Received: by mail-qt1-f195.google.com with SMTP id y20so11559137qtm.13 for ; Fri, 23 Nov 2018 11:52:51 -0800 (PST) Received: from localhost.localdomain ([191.8.59.166]) by smtp.gmail.com with ESMTPSA id v50sm35595049qtc.7.2018.11.23.11.52.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 11:52:50 -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=EosySOXbYBuqo9KYz+4laj3xCqyF9s4H3wxnNu6JiCo=; b=jNjJTi8Jg2EIjnIPIV+VQCzQaJqQIcXnohsAsfQQy8xBjNdXpqOGQlqbzO3HDj7E/b yKNjlEcqfecvqmnz6S/QF/yhJJ12TsnabmWvU2HiVD0J3ol1k2HqiGz7UHXR4/stdjxa 0B9uiMCa7HyiM6VKGFF+wizZuTjNeqvPedDrumW3bFskJRWu4rQRNkDxcAM/4afa5MHa bUDOnG6XrHY5qvOdouGaQ84ay67qAm3wadHqCN6XL6WbFyTW5qTa3nzb14qz2jd35A62 V1omPwK/MSvheEWfShh3mMAh+acAjM/S7Mr7iP+qV0Ha9iDQdfZBkZeaoN0ij7q69kJo /i6g== 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=EosySOXbYBuqo9KYz+4laj3xCqyF9s4H3wxnNu6JiCo=; b=qMe+R6NX8spqoJPhEn7hN/GurAMXPt/WJ79PzZAbRQ6RjOasYHmpqsIfqrgAJ2XWqf 3hiD6kyw0JlfRIwTZXab0O/iSMg9qN2k+VfVjVTZkJ3QxFgv2QB6Yq0OW9yIber0OitM CpvsJtmRleGrSSBfp9SWj8hNKLuSPVA8oPEwGj+a392lC+zp7ztHetgR33QdmWq6JI1Q QUdi0ohxCUrurmsVqSWYgRyiCPuJ6e85ThrFdg4gKcrcL6LEgkwOR6CcIwl9Wd3s7x0t FkHjYQtnFk8bO32pHVbKXnuWNJg0EEOA278kg6TgpXYBP6v84UaxgXZdg152D8kKN0SI PohA== X-Gm-Message-State: AGRZ1gKJD8uWUz3yOZJ5oFKLC0G2n9adx6Af00EjuMcOwDDncJd1VLIZ xpihLR7UApQdM1Wpu6pp3nrbeovY X-Google-Smtp-Source: AJdET5cFTCej9xMLJb2Fzgv/v1mAqt4pi8PKlPUxYUWoStCc796EfVmdtbfiQ/h+OlPR1AmP6L3vOQ== X-Received: by 2002:aed:25a6:: with SMTP id x35mr15764162qtc.228.1543002770505; Fri, 23 Nov 2018 11:52:50 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Sat, 24 Nov 2018 03:52:35 +0800 Message-Id: <20181123195237.15802-4-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.29]); Fri, 23 Nov 2018 19:52:51 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 23 Nov 2018 19:52:51 +0000 (UTC) for IP:'209.85.160.195' DOMAIN:'mail-qt1-f195.google.com' HELO:'mail-qt1-f195.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.108 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 209.85.160.195 mail-qt1-f195.google.com 209.85.160.195 mail-qt1-f195.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v3 3/4] m4: checking if ssh_session_update_known_hosts() exists. 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); 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" This commit adds some checks inside libssh m4 checking to verify if ssh_session_update_known_hosts function is available. This new function scope replaces the old ssh_write_knownhost() from libssh 0.8.0 and below versions. Signed-off-by: Julio Faracco --- m4/virt-libssh.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m4/virt-libssh.m4 b/m4/virt-libssh.m4 index 52bd4d3639..f6d307f8d1 100644 --- a/m4/virt-libssh.m4 +++ b/m4/virt-libssh.m4 @@ -41,6 +41,10 @@ AC_DEFUN([LIBVIRT_CHECK_LIBSSH],[ [AC_DEFINE([HAVE_SSH_KNOWN_HOSTS_E], [1], [Defined if enum ssh_known_hosts_e exists in libssh.h])], [], [[#include ]]) + AC_CHECK_FUNC([ssh_session_update_known_hosts], + [], + [AC_DEFINE_UNQUOTED([ssh_session_update_known_hosts], [ssh_write_kno= wnhost], + [ssh_write_knownhost is deprecated and replaced by ssh_session= _update_known_hosts.])]) CFLAGS=3D"$old_CFLAGS" LIBS=3D"$old_LIBS" fi --=20 2.19.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list