diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-21 23:45:58 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-21 23:45:58 +0000 |
commit | 35a67a47bef59dfceab319efae451a5473d0a6f7 (patch) | |
tree | 4506d8431b25f789df17a4880d4f096862184261 /usr/local/www/guiconfig.inc | |
parent | 422f27c028567e6588fd28d438d9cd81ec0cab3e (diff) | |
download | pfsense-35a67a47bef59dfceab319efae451a5473d0a6f7.zip pfsense-35a67a47bef59dfceab319efae451a5473d0a6f7.tar.gz |
Import ipsec_ca_sort() from m0n0wall
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 10 |
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; |