From nobody Sat May 4 18:28:20 2024 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 1542379534319457.18475847861794; Fri, 16 Nov 2018 06:45:34 -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 2019E89AD3; Fri, 16 Nov 2018 14:45:31 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7599C6019E; Fri, 16 Nov 2018 14:45:29 +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 478611808855; Fri, 16 Nov 2018 14:45:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wAGEIK6E030716 for ; Fri, 16 Nov 2018 09:18:20 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3931C1019637; Fri, 16 Nov 2018 14:18:20 +0000 (UTC) Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 30FD41001F53 for ; Fri, 16 Nov 2018 14:18:17 +0000 (UTC) Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.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 DE622307DAB3 for ; Fri, 16 Nov 2018 14:18:16 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id 189so37556711qkj.8 for ; Fri, 16 Nov 2018 06:18:16 -0800 (PST) Received: from localhost.localdomain ([189.78.24.86]) by smtp.gmail.com with ESMTPSA id p42sm9806014qte.8.2018.11.16.06.18.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 06:18:15 -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=lSi+0aigotJLZFEqY52Kja8wZztuWuDkNh1s+OVmT60=; b=Nc1i0GkKLJABWIYblwt1V0CNdXFkgzgB0EuqbKnaRtk/6kpNnnTHmL0hdl1NNaWMce siCeJ9ZVn/HCA7nTGBFypwCYZRxwL0RXFFXTp1VP60znqwZlW6Q5xJOVoiCYwWRp2d/2 UJLDKqXmWiUn0VI4YADyiS9f91L+4lDgFYp66CftfghBmgmH7w6CYcgobXGJlKrJAiPc u7aCZ5qf2ExrgrobqiQWY/PATTHiZWAvZ4/PQsdiK8DgW2pnhPXj057FSK+QMzsziHDn hbhM332vrnqjvvwDHgjJ6BnU5TqEhjpUslRf2HDUX3W0O+JtuWpSxZp/FDP7M7ug2yWL gp+A== 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=lSi+0aigotJLZFEqY52Kja8wZztuWuDkNh1s+OVmT60=; b=ivLjNYRfdxfNC0ReOg5eUf/FDpG261jCKr6aoXsxqAx/sYkRiuq5Jp1ZZx90uJluAo eToTs53VVuWqNe3Klw55s14wJcdZnAO8CUwX6Vng/t3e1rnaEeh2uHiexxjvYSsmc+qF jUwqcsCNgLLWeYC1W0in+1RjIJFePYq8AZkFKBhfBEMQEA+fhhRAZRPZykmy5NAvEZ/Z rHK3LsQHuZfwnIOdGf7LiE4jExq2S8NB48WSrYzvbdra79i5qg3It5Wut8hmDLZ0z3Rc vfW9KOevjlC5Chp+n6b4SOeYpcwC8zNiB1Cw4z83rbJn/QiVMKSFmW+WWxi9baoIx+kA veKQ== X-Gm-Message-State: AGRZ1gIx9ufMV5ckg5BqgVmQj7qX4INEslFGaxxTwKdPpEwxHV0ky0Zm eRz0+EzKCkSIAiGHjOb29uuSHN3N X-Google-Smtp-Source: AJdET5fsppt1IPPM5Gmt3omeMllKj2h5Xh0H0PUZ7DU1eGvMZcApe3tUHmBpGqdMYC7SkykorLiaiA== X-Received: by 2002:ac8:7044:: with SMTP id y4-v6mr10084709qtm.325.1542377895853; Fri, 16 Nov 2018 06:18:15 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Fri, 16 Nov 2018 12:18:03 -0200 Message-Id: <20181116141804.12766-2-jcfaracco@gmail.com> In-Reply-To: <20181116141804.12766-1-jcfaracco@gmail.com> References: <20181116141804.12766-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.42]); Fri, 16 Nov 2018 14:18:17 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 16 Nov 2018 14:18:17 +0000 (UTC) for IP:'209.85.222.196' DOMAIN:'mail-qk1-f196.google.com' HELO:'mail-qk1-f196.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.196 mail-qk1-f196.google.com 209.85.222.196 mail-qk1-f196.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.42 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/2] 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 16 Nov 2018 14:45:32 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/virnetlibsshsession.c b/src/rpc/virnetlibsshsession.c index 7c5f158f4d..286c66091d 100644 --- a/src/rpc/virnetlibsshsession.c +++ b/src/rpc/virnetlibsshsession.c @@ -287,7 +287,7 @@ virNetLibsshCheckHostKey(virNetLibsshSessionPtr sess) if (sess->hostKeyVerify =3D=3D VIR_NET_LIBSSH_HOSTKEY_VERIFY_IGNORE) return 0; =20 - state =3D ssh_is_server_known(sess->session); + state =3D ssh_session_is_known_server(sess->session); =20 switch (state) { case SSH_SERVER_KNOWN_OK: --=20 2.19.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Sat May 4 18:28:20 2024 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 1542380762882378.2583102791151; Fri, 16 Nov 2018 07:06:02 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9406089ADB; Fri, 16 Nov 2018 15:06:00 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AB1CE611C9; Fri, 16 Nov 2018 15:05:59 +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 DDDF0181B9E1; Fri, 16 Nov 2018 15:05:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wAGEIOma030736 for ; Fri, 16 Nov 2018 09:18:24 -0500 Received: by smtp.corp.redhat.com (Postfix) id 1F30A5DE89; Fri, 16 Nov 2018 14:18:24 +0000 (UTC) Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1211A5DE87 for ; Fri, 16 Nov 2018 14:18:19 +0000 (UTC) Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) (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 57B6C3082135 for ; Fri, 16 Nov 2018 14:18:18 +0000 (UTC) Received: by mail-qk1-f194.google.com with SMTP id 189so37556838qkj.8 for ; Fri, 16 Nov 2018 06:18:18 -0800 (PST) Received: from localhost.localdomain ([189.78.24.86]) by smtp.gmail.com with ESMTPSA id p42sm9806014qte.8.2018.11.16.06.18.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 06:18:16 -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=AG8NJRW4PrBKDxC9LqQyrf65WHn0WLzSAydRcorKI/M=; b=C888zJFE6RcGtpvNDz4VDAp+CgmNy7ZN/UwlFwd1Erg7TwfhyFYjHYzACSueOkIoJQ 8KE7kCDRS/vd0dOWaKEsPYbIt/XVb6ZBNZAof1ViR0n3V6EBJlUhjvAg+8DDe8Wn+hTN EXJ38bim8venoXNz1KVN9//1PyqWj1yv+fXVAC1g45dZQ8QvLQA164C61llgyI0hYbKh z44/orAYIUcn7uau3MO98SdWe0lO+fddygnZDR7zYCIKKGTsQbemhqZCLSAtxwe/wvw2 Ax9KpEPn5cxcWTBoJiFrZsEoRsuYFReIDJJClQJgix49eTHSxQTJhbkveb91anZp++dB O47w== 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=AG8NJRW4PrBKDxC9LqQyrf65WHn0WLzSAydRcorKI/M=; b=HrXBaI3FPVMe7P9n17fHqSmA6fnOQwVK813dwcIPOJf+SsR/bBOpPLwu1wQrIqT1Tq abZk+sCQvlMaPVfQ+UkBRExLAePjHl6kjlIULHn2zSeUdDMrREp+vMV9/74yZT7gouph bamTdWrwFmO6yWTlbd17H4rXIjYjbfyTMiyg1XHSyWt68HSRqF00aiLkFKOgC1hZpgD8 Vp9m/ZXhPGpRBjyuv/bA++e3soTTRiwuYOVNIW6dqv663xiD5Qw1syaskNnHSUuXy0j9 Kq7OELHZJmsXQeVPHFUtCxsCRVAIoMXKKofUe4vAweIoMp/5CUZDa2Xtd3yRWghbQZU9 0+7A== X-Gm-Message-State: AGRZ1gIHX7Yj/d9I2K0CVlAx2DNwgr3qO3R4W6pzQ18NL3iYO3ZGddVV NYvRDD4b+7NHM0qEHMcmGCrV558s X-Google-Smtp-Source: AJdET5cL/9I3LTdaZuBSpvneH2qIb+mroAuTJ+JYkaPXLPkBN4mjm3DnxaeJnVqKmb7VBZPFMGTRiA== X-Received: by 2002:ad4:5004:: with SMTP id s4mr10534946qvo.109.1542377897334; Fri, 16 Nov 2018 06:18:17 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Fri, 16 Nov 2018 12:18:04 -0200 Message-Id: <20181116141804.12766-3-jcfaracco@gmail.com> In-Reply-To: <20181116141804.12766-1-jcfaracco@gmail.com> References: <20181116141804.12766-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.42]); Fri, 16 Nov 2018 14:18:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 16 Nov 2018 14:18:18 +0000 (UTC) for IP:'209.85.222.194' DOMAIN:'mail-qk1-f194.google.com' HELO:'mail-qk1-f194.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.194 mail-qk1-f194.google.com 209.85.222.194 mail-qk1-f194.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.42 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/2] 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 16 Nov 2018 15:06:01 +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. 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 01c3b75c72..64d7b75b65 100644 --- a/m4/virt-libssh.m4 +++ b/m4/virt-libssh.m4 @@ -33,6 +33,10 @@ 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.])]) 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