Import ipsec_ca_sort() from m0n0wall

This commit is contained in:
Scott Ullrich 2005-06-21 23:45:58 +00:00
parent 422f27c028
commit 35a67a47be

View File

@ -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;