Revision 8f5c3d8d
Added by Pierre POMES over 14 years ago
etc/inc/ipsec.inc | ||
---|---|---|
469 | 469 |
usort($config['ipsec']['mobilekey'], "mobilekeycmp"); |
470 | 470 |
} |
471 | 471 |
|
472 |
?> |
|
472 |
function ipsec_get_number_of_phase2($ikeid) { |
|
473 |
global $config; |
|
474 |
$a_phase2 = $config['ipsec']['phase2']; |
|
475 |
|
|
476 |
$nbph2=0; |
|
477 |
|
|
478 |
if (is_array($a_phase2) && count($a_phase2)) { |
|
479 |
foreach ($a_phase2 as $ph2tmp) { |
|
480 |
if ($ph2tmp['ikeid'] == $ikeid) { |
|
481 |
$nbph2++; |
|
482 |
} |
|
483 |
} |
|
484 |
} |
|
485 |
|
|
486 |
return $nbph2; |
|
487 |
} |
|
488 |
|
|
489 |
?> |
Also available in: Unified diff
Ticket #1116: anonymous sainfo may be used only for single phase2 ipsec VPN's