From patchwork Fri Jul 28 13:56:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9868871 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 AA12D608A1 for ; Fri, 28 Jul 2017 13:59:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 985A8287B3 for ; Fri, 28 Jul 2017 13:59:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96A2C287C3; Fri, 28 Jul 2017 13:59:47 +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 39415288F3 for ; Fri, 28 Jul 2017 13:59:45 +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 1db5ko-0000Ga-Q7; Fri, 28 Jul 2017 13:56:34 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1db5kn-0000Fm-WE for xen-devel@lists.xenproject.org; Fri, 28 Jul 2017 13:56:34 +0000 Received: from [85.158.143.35] by server-11.bemta-6.messagelabs.com id 7F/C7-03612-1924B795; Fri, 28 Jul 2017 13:56:33 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRWlGSWpSXmKPExsXitHSDve4Ep+p Ig5v3LC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ox5GxazF8zgqJjZM5epgbGfrYuRk0NCwF/i 443rrCA2m4CBxIrpVxm7GDk4RARUJG7vNehi5OJgFmhklHi9cTYjSI2wQKRE38qbzCA2i4Cqx PZt78FsXgE7icM/tjBDzJSXmNg7DayeU8Be4u+/72C7hIBqLv16zARhq0ncWLiMBaJXUOLkzC dgNrOAhMTBFy+YJzDyzkKSmoUktYCRaRWjRnFqUVlqka6hkV5SUWZ6RkluYmaOrqGBmV5uanF xYnpqTmJSsV5yfu4mRmDwMADBDsbLGwMOMUpyMCmJ8t40q44U4kvKT6nMSCzOiC8qzUktPsQo w8GhJMFb4QiUEyxKTU+tSMvMAYYxTFqCg0dJhNcMJM1bXJCYW5yZDpE6xajL8WrC/29MQix5+ XmpUuK8y0CKBECKMkrz4EbAYuoSo6yUMC8j0FFCPAWpRbmZJajyrxjFORiVhHk7QKbwZOaVwG 16BXQEE9ARE5sqQY4oSURISTUwXlji8HPPwZTlcu19y+c1WW+qnC7yhvvQsuD2mAgOnne7bbw 3/194REOvOvBYVGG9cPeHBPn3lxa++ZBSWiv/47nedXmvJtZKbjVlY/GuGEfXRKfARe1MtRbc P1dLO52JPfZ059EdC2zvz4zb5ubFySobEtJ5cXV5oe3xc9evvRfYGnfjt84zJZbijERDLeai4 kQA1rzCNaQCAAA= X-Env-Sender: prvs=3753e7f57=anthony.perard@citrix.com X-Msg-Ref: server-11.tower-21.messagelabs.com!1501250187!72334323!4 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.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 58456 invoked from network); 28 Jul 2017 13:56:32 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-11.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2017 13:56:32 -0000 X-IronPort-AV: E=Sophos;i="5.40,425,1496102400"; d="scan'208";a="441749513" From: Anthony PERARD To: Date: Fri, 28 Jul 2017 14:56:05 +0100 Message-ID: <20170728135625.30263-5-anthony.perard@citrix.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170728135625.30263-1-anthony.perard@citrix.com> References: <20170728135625.30263-1-anthony.perard@citrix.com> MIME-Version: 1.0 Cc: Anthony PERARD , Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH v14 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;