Project

General

Profile

« Previous | Next » 

Revision 958420c5

Added by Jim Pingle about 15 years ago

Bring back IPsec PSK Tab/Edit. Part of ticket #108. Still needs backend code to use the resulting keys.

View differences:

etc/inc/ipsec.inc
453 453
	return $sad;
454 454
}
455 455

  
456
function ipsec_mobilekey_sort() {
457
	global $config;
458

  
459
	function mobilekeycmp($a, $b) {
460
		return strcmp($a['ident'][0], $b['ident'][0]);
461
	}
462

  
463
	usort($config['ipsec']['mobilekey'], "mobilekeycmp");
464
}
465

  
456 466
?>

Also available in: Unified diff