From nobody Mon Feb 9 12:24: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 154298534375933.667533445583445; Fri, 23 Nov 2018 07:02:23 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ECBDD3082A20; Fri, 23 Nov 2018 15:02:15 +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 748B42AAB2; Fri, 23 Nov 2018 15:02:15 +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 24E3B3F7D0; Fri, 23 Nov 2018 15:02:14 +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 wANF2C2K002051 for ; Fri, 23 Nov 2018 10:02:12 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2F49617A91; Fri, 23 Nov 2018 15:02:12 +0000 (UTC) Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2623867642 for ; Fri, 23 Nov 2018 15:02:08 +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 E8CE3300B914 for ; Fri, 23 Nov 2018 15:02:07 +0000 (UTC) Received: by mail-qt1-f195.google.com with SMTP id e5so10757392qtr.12 for ; Fri, 23 Nov 2018 07:02:07 -0800 (PST) Received: from localhost.localdomain ([191.8.59.166]) by smtp.gmail.com with ESMTPSA id k185sm23772370qkd.62.2018.11.23.07.02.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 07:02:06 -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=QgeP7JsAoSjVufucMPPKxqbp+CdlHdxR72tXD8woxw0=; b=Dac82SCS3GvRQJBGMtS47bjJpHsbjihuMX8p/k/NW7uLw+NE1maryQ6lopAbvaF+mu nEAJ4j1jiTs64aVzvsDvBFoL6taDD7ahqay4jYHMQq+znTeEiAKusNyhkBqc+Xlz3sYw T0faNlxvy4EyzfwisYwiWATdbtdlYNgZ0wdBcZZ/hBbdfiH/XN6idRq+1vNDseKtZg/K ykdUuwBurR3Svl/RRbZ+zq6LLbeW+OdSWUBu6Fn0S+VSPi0emYrAroU2FHqVYIk0675z r9nCXBRqJJf2R7n/Qzbdusx8mgFmQwGHNpjHYzkPtKKn34HiemkUKfRCBnuyeXNFo7SE SpVg== 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=QgeP7JsAoSjVufucMPPKxqbp+CdlHdxR72tXD8woxw0=; b=D2geldBOfM+qvedi+My9sm1CQc4XvKS83UnAf8aLAKMllSypTyb4YfJBNaFuk6aeYa CMe28awHgiMvPB0SnGcgMIek7ucZJsNg84p1hP2CQAhwR9awyKVFucUOj9StIVgxpv9h i8uQI2u6eEFDUVk6FnjK4mr2IU7VABZishrqrGwe5t/ntnR91deC4QXXG1Y572VcB4dG vp40ZdP0/5qaQ42kNK1wzzkzmfvOVJPrOmHrDTyCGiLfwd/QCdjBNThk3saKpeoBZ/JY +jeLJ3zR3aq8EZllFFw6R0GsmjqIhZ/o12WoUU6jLudLLa5gMW1kMRcg+yBwQ3O0OQXH bnWg== X-Gm-Message-State: AGRZ1gKBeL+8Lw3Extc2rB9vEBD+y2gTjZBOMd7bpFOCym14bVoTl/ND x6Afpr6GW2wA9dxZP4w+WKzQzCl0 X-Google-Smtp-Source: AJdET5fzR316sPqgiht5KkTHt28aU1Kfy0wqqTVuVxQfkBGRxhljmWCAjP9b6AJxqavtmOQNhwytXg== X-Received: by 2002:ac8:1ab8:: with SMTP id x53mr14588916qtj.44.1542985326860; Fri, 23 Nov 2018 07:02:06 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Fri, 23 Nov 2018 23:01:53 +0800 Message-Id: <20181123150154.28335-4-jcfaracco@gmail.com> In-Reply-To: <20181123150154.28335-1-jcfaracco@gmail.com> References: <20181123150154.28335-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.43]); Fri, 23 Nov 2018 15:02:08 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Fri, 23 Nov 2018 15:02:08 +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.84 on 10.5.110.43 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 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.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Fri, 23 Nov 2018 15:02:16 +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 6eac84cfe7..f2a5aed3cc 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