From patchwork Tue Jul 25 11:57:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9861857 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9EEC2601A1 for ; Tue, 25 Jul 2017 12:01:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 902CC28653 for ; Tue, 25 Jul 2017 12:01:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 850D128634; Tue, 25 Jul 2017 12:01:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7B4FD28666 for ; Tue, 25 Jul 2017 12:01:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZyTa-00026X-AT; Tue, 25 Jul 2017 11:58:10 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZyTZ-00026E-A2 for xen-devel@lists.xenproject.org; Tue, 25 Jul 2017 11:58:09 +0000 Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id 18/FA-18997-05237795; Tue, 25 Jul 2017 11:58:08 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsXitHRDpG6AUXm kwbNTnBbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8a8DYvZC2ZwVMzsmcvUwNjP1sXIySEh4C9x d/0pVhCbTcBAYsX0q4xdjBwcIgIqErf3GnQxcnEwCzQySrzeOJsRpEZYIFLizqP/LCA2i4Cqx Jz5f8FsXgE7iZXn5rJAzJSXmNg7DayeU8Be4uf+6+wgthBQzeadG6BsNYkbC5dB9QpKnJz5BM xmFpCQOPjiBfMERt5ZSFKzkKQWMDKtYlQvTi0qSy3SNdRLKspMzyjJTczM0TU0MNXLTS0uTkx PzUlMKtZLzs/dxAgMnXoGBsYdjE29zocYJTmYlER5v+mWRwrxJeWnVGYkFmfEF5XmpBYfYpTh 4FCS4JU2BMoJFqWmp1akZeYAgxgmLcHBoyTC6waS5i0uSMwtzkyHSJ1i1OV4NeH/NyYhlrz8v FQpcd4/BkBFAiBFGaV5cCNgEXWJUVZKmJeRgYFBiKcgtSg3swRV/hWjOAejkjCvMMgqnsy8Er hNr4COYAI6Ys6MUpAjShIRUlINjDam3ot4/uhPT1dd+SfcbtYru3VMR+or9+4Wi2OR8H03zWN Zy++jj7lSxPvn23VdmCofuyXi2/JlLFc/LrR9V7dco2dt66zjTOL3jQOr7201n3P+4Om7T0/d /vtnW+oZVduS5r+2VZNulOkbTfuhGCtU47BJ0860o1uCNV5UbcOdo7k2H50j5yuxFGckGmoxF xUnAgBiUF84owIAAA== X-Env-Sender: prvs=372f2a2d8=anthony.perard@citrix.com X-Msg-Ref: server-3.tower-206.messagelabs.com!1500983886!100829977!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 57139 invoked from network); 25 Jul 2017 11:58:07 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-3.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 25 Jul 2017 11:58:07 -0000 X-IronPort-AV: E=Sophos;i="5.40,411,1496102400"; d="scan'208";a="432844208" From: Anthony PERARD To: Date: Tue, 25 Jul 2017 12:57:39 +0100 Message-ID: <20170725115759.21895-5-anthony.perard@citrix.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170725115759.21895-1-anthony.perard@citrix.com> References: <20170725115759.21895-1-anthony.perard@citrix.com> MIME-Version: 1.0 Cc: Anthony PERARD , Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH v13 04/24] TestSupport: provide target_https_mitm_proxy_cert_path X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Ian Jackson Signed-off-by: Ian Jackson --- Osstest/TestSupport.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 6e19b28..7215156 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -64,6 +64,7 @@ BEGIN { target_put_guest_image target_editfile target_editfile_cancel target_fetchurl http_proxy_envsettings + target_https_mitm_proxy_cert_path target_editfile_root target_file_exists target_editfile_kvp_replace target_run_apt @@ -2714,4 +2715,10 @@ sub target_https_mitm_proxy_setup ($) { target_cmd_root($ho, 'update-ca-certificates', 300); } +sub target_https_mitm_proxy_cert_path ($) { + my ($ho) = @_; + return undef unless length $c{HttpsProxyMITMCert}; + return '/etc/ssl/certs/osstest.pem'; +} + 1;