From nobody Mon Feb 9 15:10:07 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 1543002786241797.1441041121511; Fri, 23 Nov 2018 11:53:06 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 07BCA76532; Fri, 23 Nov 2018 19:52:57 +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 E76F55C227; Fri, 23 Nov 2018 19:52:55 +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 E570841FB9; Fri, 23 Nov 2018 19:52:52 +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 wANJqpvf012459 for ; Fri, 23 Nov 2018 14:52:51 -0500 Received: by smtp.corp.redhat.com (Postfix) id E761B60920; Fri, 23 Nov 2018 19:52:51 +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 DF36318233 for ; Fri, 23 Nov 2018 19:52:49 +0000 (UTC) Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) (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 B08FD3D09 for ; Fri, 23 Nov 2018 19:52:48 +0000 (UTC) Received: by mail-qt1-f196.google.com with SMTP id p17so11560962qtl.5 for ; Fri, 23 Nov 2018 11:52:48 -0800 (PST) Received: from localhost.localdomain ([191.8.59.166]) by smtp.gmail.com with ESMTPSA id v50sm35595049qtc.7.2018.11.23.11.52.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Nov 2018 11:52:47 -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=fFwZ/rVEw0rAWMTkAhFtswMWGfKU0h7oIdlAcUGk3vs=; b=r3EoIYMVgILqflKZNxSFvxNeDDFul5tpxLOS3gSv8AGfy6GiB4kviuNAA/MIOBdiCi sCj6oKt8OmmzLhNZ9DXIzHJ+2WCvjG2p7bDvI7VpPVjOAP8Z5xpVN9lt+q5txVaFg9D7 tZWVDoBnATSDDcaB47RaWcZLjUPz/ElOECFJ+/7CbmPOnIP4t3uGtKqgzDzjvXHLHlOQ gix4nb7/XJYQPcqSnVRrJN13eEA67lQO6zyDCCwBglfSW4RTmeIXz0QVk/kEN3L9Ok5G hyw5GTOQvYKgpYVBA+3GJqtE01guxXOLpKAtor9Tb8VQUHihUZxbSLO9SABxNssR+xux u6LA== 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=fFwZ/rVEw0rAWMTkAhFtswMWGfKU0h7oIdlAcUGk3vs=; b=Uc+2Q+94GbnrocMVtPsNzB1ez4fiu9eYVCWsUhyWut6g1W9JI4vwhuPLBdnI34TWZk DCIrKH6ATw22A00Ho0NkUXb5CcGoY5bmnq6dNKOioJwiqbGsvONWa9kNcnecnBJr60ZV FdnDQfPQ+XUXmjo+SAB/T3nLvbWA6yTCVMgAIHgjZ6WPi1qCc2woLo1qH5iqMIbBL7Ak jmK+dVXk+y+qsclufUKnhGnk41otIB+4dsV0U4Y9mHjYvcFp5jUR8OLt0RtD3cZCpLvA hheBWqQ7fqyEVhgqV6WHgy7YM4lTx4xr8DFR4QwjnikkXTnf4rxONuxRQNDIreqDIqD2 AWBQ== X-Gm-Message-State: AA+aEWaLy9L4VAAsM2dELuwo6jR+FWlTN8P6y3X+dfDOxB4XjF6+MYrV aGw8LyvJFCTxqQJtTMC2DnNwV6oO X-Google-Smtp-Source: AJdET5cz/gLDUSd5f9kP7NuiTDfJJL0iTC4BQDGTbk6tDogiQk07QEUXQtZhH5T2oHNKYqsUhDptbw== X-Received: by 2002:ac8:2472:: with SMTP id d47mr15928569qtd.7.1543002767716; Fri, 23 Nov 2018 11:52:47 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Sat, 24 Nov 2018 03:52:33 +0800 Message-Id: <20181123195237.15802-2-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:48 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 23 Nov 2018 19:52:48 +0000 (UTC) for IP:'209.85.160.196' DOMAIN:'mail-qt1-f196.google.com' HELO:'mail-qt1-f196.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.196 mail-qt1-f196.google.com 209.85.160.196 mail-qt1-f196.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 1/4] m4: checking if ssh_session_is_known_server() 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 23 Nov 2018 19:52:57 +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_is_known_server function is available. This new function scope replaces the old ssh_is_server_known() from libssh 0.8.0 and below versions. Another auxiliar enumerator was added to keep the compatibility with the old standard used by ssh_is_server_known() function. Signed-off-by: Julio Faracco --- m4/virt-libssh.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/m4/virt-libssh.m4 b/m4/virt-libssh.m4 index 01c3b75c72..52bd4d3639 100644 --- a/m4/virt-libssh.m4 +++ b/m4/virt-libssh.m4 @@ -33,6 +33,14 @@ AC_DEFUN([LIBVIRT_CHECK_LIBSSH],[ [], [AC_DEFINE_UNQUOTED([ssh_get_server_publickey], [ssh_get_publickey], [ssh_get_publickey is deprecated and replaced by ssh_get_serve= r_publickey.])]) + AC_CHECK_FUNC([ssh_session_is_known_server], + [], + [AC_DEFINE_UNQUOTED([ssh_session_is_known_server], [ssh_is_server_kn= own], + [ssh_is_server_known is deprecated and replaced by ssh_session= _is_known_server.])]) + AC_CHECK_TYPES([enum ssh_known_hosts_e], + [AC_DEFINE([HAVE_SSH_KNOWN_HOSTS_E], [1], + [Defined if enum ssh_known_hosts_e exists in libssh.h])], + [], [[#include ]]) 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