From nobody Fri May 10 10:50:04 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 1530056385102143.01592144032372; Tue, 26 Jun 2018 16:39:45 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D7C62356C5; Tue, 26 Jun 2018 23:39:42 +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 9505730012B4; Tue, 26 Jun 2018 23:39:41 +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 0C0123FCC0; Tue, 26 Jun 2018 23:39:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w5QNdbSJ023220 for ; Tue, 26 Jun 2018 19:39:37 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6A5E0765B3; Tue, 26 Jun 2018 23:39:37 +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 5A5DF831AC for ; Tue, 26 Jun 2018 23:39:34 +0000 (UTC) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) (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 DBE3E308FB97 for ; Tue, 26 Jun 2018 23:39:23 +0000 (UTC) Received: by mail-qk0-f174.google.com with SMTP id u62-v6so93981qkf.9 for ; Tue, 26 Jun 2018 16:39:23 -0700 (PDT) Received: from localhost.localdomain (189.26.182.8.dynamic.adsl.gvt.net.br. [189.26.182.8]) by smtp.gmail.com with ESMTPSA id r13-v6sm2348327qti.70.2018.06.26.16.39.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jun 2018 16:39:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=73h2kPk5Rmz6/JArgV6s64sAgUm/mdvytw9PbeSkGtI=; b=cdhTKKWa/fTlSxl6/+urbaKmjNQK9XN8cjuHfzBDfQ3keZhZ22xvLEYehoaiiCCz9N sTSq3/f6+oALGHw1S9x54g8QAzRQ6wPpGNMOe8rf1ETQW6FIqlwm+ixWw84aLzjPnifs k6c16iSBjgcEuuqpmJmFbeFS2asptV5XvMGOuqXG7UUMeMrT6lq2nY1UyXSb0eAcyCjP gBNCf7G7Sry5i1+P7OknQiYYWFtX5GOv+mi8eLqopgL4BMyDFAibyW3uVqo89Eps4iO4 9pwkux46NLCH2+IHuNep8cbx+h3P5Uw4HYmi5j6zjVRlwAP9Hw0LE/eaaOz3cAarJK6r k1ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=73h2kPk5Rmz6/JArgV6s64sAgUm/mdvytw9PbeSkGtI=; b=Rfs0UOXfMqR0yyqPpgwBjRzio3Flvn3zk7xtORHsDmKGYRtNcL/bqAGa89pYb2a7ZM 642u5lkxezAbp8vhPeaGmZAcLy29oIjqFvUu5Y/MAcT4b8mTggtmDEBTB10cn0g94AhF n4Yfb+tx7csolzM0/tPx+GoT15kH6dAfWGtjpuU4YCkPC1kJr8diFiOTHL8adQnLfrU0 bhod3khKz0hDGnaFZd/DSi7tVEtS+pnKvnbqHqjdNMfQzrMh93mqo3r2HdYL9Jfwu0jm EXEoReszn8N8RGbwfNsbKCKWbYSCY7shOV1wcWRLKq9acujg+9RvUuF3QRTPEmaKJWqK oihw== X-Gm-Message-State: APt69E0avzFKWg1L9461bBoJc2xHqsQ58FaJVcH4pin6ThzVhjY8RuP7 4CjeRFGXSmX0bRu+DAoAzJCJ2w== X-Google-Smtp-Source: AAOMgpf8fWsTI0Yizqx6kEeG3A3UN4Cp+S9YotYpty9ofVcS2GTjL9oxxJsdykd9QsgKlOeLeMqx3w== X-Received: by 2002:a37:2cc5:: with SMTP id s188-v6mr3194983qkh.311.1530056362625; Tue, 26 Jun 2018 16:39:22 -0700 (PDT) From: Marcos Paulo de Souza To: libvir-list@redhat.com Date: Tue, 26 Jun 2018 20:39:05 -0300 Message-Id: <20180626233905.5937-1-marcos.souza.org@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Tue, 26 Jun 2018 23:39:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Tue, 26 Jun 2018 23:39:23 +0000 (UTC) for IP:'209.85.220.174' DOMAIN:'mail-qk0-f174.google.com' HELO:'mail-qk0-f174.google.com' FROM:'marcos.souza.org@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.301 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, SPF_PASS, T_DKIM_INVALID) 209.85.220.174 mail-qk0-f174.google.com 209.85.220.174 mail-qk0-f174.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.43 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: Marcos Paulo de Souza Subject: [libvirt] [PATCH] esx_driver: Simplify IsEncrypted and IsSecure 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: , MIME-Version: 1.0 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.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 26 Jun 2018 23:39:43 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Marcos Paulo de Souza --- src/esx/esx_driver.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 60aa5fc252..bb8eeecd42 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -4000,11 +4000,7 @@ esxConnectIsEncrypted(virConnectPtr conn) { esxPrivate *priv =3D conn->privateData; =20 - if (STRCASEEQ(priv->parsedUri->transport, "https")) { - return 1; - } else { - return 0; - } + return STRCASEEQ(priv->parsedUri->transport, "https"); } =20 =20 @@ -4014,11 +4010,7 @@ esxConnectIsSecure(virConnectPtr conn) { esxPrivate *priv =3D conn->privateData; =20 - if (STRCASEEQ(priv->parsedUri->transport, "https")) { - return 1; - } else { - return 0; - } + return STRCASEEQ(priv->parsedUri->transport, "https"); } =20 =20 --=20 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list