From e40ceafb96c2dac33d1e89d7c6c4fc8b73df937b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 25 Apr 2017 18:04:25 +0000 Subject: [PATCH] TestSupport: provide target_https_mitm_proxy_cert_path 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 19bdd231..430be2c8 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -62,6 +62,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 @@ -2636,4 +2637,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; -- 2.39.5