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:
Ermal LUÇI 2015-04-20 20:54:28 +02:00
parent 868a62be4c
commit a75d1a5f01
2 changed files with 12 additions and 0 deletions

View File

@ -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)'

View File

@ -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;