]> xenbits.xensource.com Git - people/aperard/osstest.git/commitdiff
TestSupport: provide target_https_mitm_proxy_cert_path
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 25 Apr 2017 18:04:25 +0000 (18:04 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 25 Apr 2017 18:10:12 +0000 (19:10 +0100)
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/TestSupport.pm

index 19bdd23177992d2c210d7b228fdcbd45f30906b6..430be2c882d2f5567463c11e94fe6c817b6cf4a5 100644 (file)
@@ -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;