mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow to configure new modes for phase1 according to RFC 5903 by manually merging pull request #1501 partially. While here preserve style.
This commit is contained in:
parent
868a62be4c
commit
a75d1a5f01
@ -105,6 +105,9 @@ $p1_dhgroups = array(
|
||||
16 => '16 (4096 bit)',
|
||||
17 => '17 (6144 bit)',
|
||||
18 => '18 (8192 bit)',
|
||||
19 => '19 (nist ecp256)',
|
||||
20 => '20 (nist ecp384)',
|
||||
21 => '21 (nist ecp521)',
|
||||
22 => '22 (1024(sub 160) bit)',
|
||||
23 => '23 (2048(sub 224) bit)',
|
||||
24 => '24 (2048(sub 256) bit)'
|
||||
|
||||
@ -89,6 +89,15 @@ function vpn_ipsec_convert_to_modp($index)
|
||||
case '18':
|
||||
$convertion = "modp8192";
|
||||
break;
|
||||
case '19':
|
||||
$convertion = "ecp256";
|
||||
break;
|
||||
case '20':
|
||||
$convertion = "ecp384";
|
||||
break;
|
||||
case '21':
|
||||
$convertion = "ecp512";
|
||||
break;
|
||||
}
|
||||
|
||||
return $convertion;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user