diff options
author | jim-p <jim@pingle.org> | 2010-05-06 15:06:53 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-05-06 15:06:53 -0400 |
commit | 958420c5fa92fb9c4469350726a1b52f5f89199c (patch) | |
tree | aafcb4ec408c13bb42060657aa326a8d2a0da88c /etc | |
parent | bb927ed42826cc63a7e3e5bc6958c8ef9c645372 (diff) | |
download | pfsense-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')
-rw-r--r-- | etc/inc/ipsec.inc | 10 |
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"); +} + ?> |