summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-21 23:45:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-21 23:45:58 +0000
commit35a67a47bef59dfceab319efae451a5473d0a6f7 (patch)
tree4506d8431b25f789df17a4880d4f096862184261 /usr/local/www
parent422f27c028567e6588fd28d438d9cd81ec0cab3e (diff)
downloadpfsense-35a67a47bef59dfceab319efae451a5473d0a6f7.zip
pfsense-35a67a47bef59dfceab319efae451a5473d0a6f7.tar.gz
Import ipsec_ca_sort() from m0n0wall
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/guiconfig.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 2d07a6a..4623076 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -389,6 +389,16 @@ function ipsec_mobilekey_sort() {
usort($config['ipsec']['mobilekey'], "mobilekeycmp");
}
+function ipsec_ca_sort() {
+ global $g, $config;
+
+ function ipseccacmp($a, $b) {
+ return strcmp($a['ident'], $b['ident']);
+ }
+
+ usort($config['ipsec']['cacert'], "ipseccacmp");
+}
+
function proxyarp_sort() {
global $g, $config;
OpenPOWER on IntegriCloud