summaryrefslogtreecommitdiffstats
path: root/etc/inc/ipsec.inc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-05-06 15:06:53 -0400
committerjim-p <jim@pingle.org>2010-05-06 15:06:53 -0400
commit958420c5fa92fb9c4469350726a1b52f5f89199c (patch)
treeaafcb4ec408c13bb42060657aa326a8d2a0da88c /etc/inc/ipsec.inc
parentbb927ed42826cc63a7e3e5bc6958c8ef9c645372 (diff)
downloadpfsense-958420c5fa92fb9c4469350726a1b52f5f89199c.zip
pfsense-958420c5fa92fb9c4469350726a1b52f5f89199c.tar.gz
Bring back IPsec PSK Tab/Edit. Part of ticket #108. Still needs backend code to use the resulting keys.
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r--etc/inc/ipsec.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc
index d80f1c2..0dd0fe0 100644
--- a/etc/inc/ipsec.inc
+++ b/etc/inc/ipsec.inc
@@ -453,4 +453,14 @@ function ipsec_dump_sad()
return $sad;
}
+function ipsec_mobilekey_sort() {
+ global $config;
+
+ function mobilekeycmp($a, $b) {
+ return strcmp($a['ident'][0], $b['ident'][0]);
+ }
+
+ usort($config['ipsec']['mobilekey'], "mobilekeycmp");
+}
+
?>
OpenPOWER on IntegriCloud