aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fuchs <martin.fuchs@trendchiller.com>2011-09-27 22:12:22 +0200
committerMartin Fuchs <martin.fuchs@trendchiller.com>2011-09-27 22:12:22 +0200
commitff3490f72ab7ac9cfb30fd0e415cbcb69a4b6cd5 (patch)
treee8ff453da970245098e8a26b33f7802b8978d42c
parente90d0b6ae4ad38c64c715536a2dff5f182a7b44a (diff)
downloadpfsense-packages-ff3490f72ab7ac9cfb30fd0e415cbcb69a4b6cd5.tar.gz
pfsense-packages-ff3490f72ab7ac9cfb30fd0e415cbcb69a4b6cd5.tar.bz2
pfsense-packages-ff3490f72ab7ac9cfb30fd0e415cbcb69a4b6cd5.zip
cerver certs
-rw-r--r--config/squid-reverse/squid.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc
index 8dd2cc8e..2784dd25 100644
--- a/config/squid-reverse/squid.inc
+++ b/config/squid-reverse/squid.inc
@@ -117,6 +117,16 @@ function squid_is_valid_acl($acl) {
return in_array($acl, $valid_acls);
}
+function squid_get_server_certs() {
+ global $config;
+ $cert_arr = array();
+ $cert_arr[] = array('refid' => 'none', 'descr' => 'none');
+ foreach ($config['cert'] as $cert) {
+ $cert_arr[] = array('refid' => $cert['refid'], 'descr' => $cert['descr']);
+ }
+ return $cert_arr;
+}
+
function squid_install_command() {
global $config;
global $g;