mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Import ipsec_ca_sort() from m0n0wall
This commit is contained in:
parent
422f27c028
commit
35a67a47be
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user