From patchwork Fri Jun 16 17:56:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9792501 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 8203E6038F for ; Fri, 16 Jun 2017 17:59:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A0AF2858E for ; Fri, 16 Jun 2017 17:59:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EF422862B; Fri, 16 Jun 2017 17:59:27 +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 832862858E for ; Fri, 16 Jun 2017 17:59:25 +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 1dLvUh-0004xq-E0; Fri, 16 Jun 2017 17:57:15 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLvUf-0004x1-VE for xen-devel@lists.xenproject.org; Fri, 16 Jun 2017 17:57:14 +0000 Received: from [193.109.254.147] by server-6.bemta-6.messagelabs.com id F6/7B-03920-9FB14495; Fri, 16 Jun 2017 17:57:13 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmkeJIrShJLcpLzFFi42JxWrrBXveHtEu kwd8v+hbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8ayVY8YC2ZwVNxcepK9gbGfrYuRg0NCwF9i 8SuJLkZODjYBA4kV068ygoRFBFQkbu816GLk4mAWaGSUeL1xNiNIjbBApMSEA3fYQWwWAVWJx 3uXsIHYvAK2Ej1db1hBbAkBeYlp73pZQeZwCthJ/N5aDBIWAir5u6KRDcJWk7ixcBkLRKugxM mZT8BsZgEJiYMvXjBPYOSdhSQ1C0lqASPTKkaN4tSistQiXUNjvaSizPSMktzEzBxdQwMzvdz U4uLE9NScxKRiveT83E2MwMBhAIIdjF+WBRxilORgUhLlff/EOVKILyk/pTIjsTgjvqg0J7X4 EKMMB4eSBG+IlEukkGBRanpqRVpmDjCEYdISHDxKIrz7+YDSvMUFibnFmekQqVOMilLivBNB+ gRAEhmleXBtsLi5xCgrJczLCHSIEE9BalFuZgmq/CtGcQ5GJWFeTZApPJl5JXDTXwEtZgJaHH TBAWRxSSJCSqqBsYH3+K66i5+26/XmNzJMdX6Setu6e8XnQx8WPbUPTuUKub/h6Mz/fK4Xbh7 uUIxZ0/AtSFn1u6fOxz3Tu742706+6Dqn5c/Kf9f3lxedavps/W3Os4vtLKd2WK295nr6kIbA 3klTN3PFH13wa2WXeuB986DcPcsWbn3yPL+o30yp4fjN2y1qa/8osRRnJBpqMRcVJwIA+zdMs JYCAAA= X-Env-Sender: prvs=333b30148=anthony.perard@citrix.com X-Msg-Ref: server-6.tower-27.messagelabs.com!1497635831!108257299!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30023 invoked from network); 16 Jun 2017 17:57:12 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 16 Jun 2017 17:57:12 -0000 X-IronPort-AV: E=Sophos;i="5.39,348,1493683200"; d="scan'208";a="436747348" From: Anthony PERARD To: Date: Fri, 16 Jun 2017 18:56:49 +0100 Message-ID: <20170616175704.7832-6-anthony.perard@citrix.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170616175704.7832-1-anthony.perard@citrix.com> References: <20170616175704.7832-1-anthony.perard@citrix.com> MIME-Version: 1.0 Cc: Anthony PERARD , Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH v11 05/20] 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 ce9ffaa..80b97f8 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 @@ -2695,4 +2696,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;