diff options
author | Ryan Riske <ryanriske@gmail.com> | 2014-05-24 15:05:08 -0500 |
---|---|---|
committer | Ryan Riske <ryanriske@gmail.com> | 2014-05-24 18:16:50 -0500 |
commit | fc5365dae5b6db2b4770adec3c700ca8699797eb (patch) | |
tree | 6c126f17168742fedb2dd133305cedf9195d02e4 | |
parent | 4a4ec4696529c58d7ece931509c0c5923bd06ac2 (diff) | |
download | vyatta-op-vpn-fc5365dae5b6db2b4770adec3c700ca8699797eb.tar.gz vyatta-op-vpn-fc5365dae5b6db2b4770adec3c700ca8699797eb.zip |
Add support for DH groups 14-26
-rw-r--r-- | lib/OPMode.pm | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm index 5ed7226..cf5e635 100644 --- a/lib/OPMode.pm +++ b/lib/OPMode.pm @@ -54,7 +54,31 @@ sub conv_dh_group { } elsif ($dhgrp eq "MODP_1536"){ $dh_group = 5; } elsif ($dhgrp eq "MODP_2048"){ - $dh_group = 7; + $dh_group = 14; + } elsif ($dhgrp eq "MODP_3072"){ + $dh_group = 15; + } elsif ($dhgrp eq "MODP_4096"){ + $dh_group = 16; + } elsif ($dhgrp eq "MODP_6144"){ + $dh_group = 17; + } elsif ($dhgrp eq "MODP_8192"){ + $dh_group = 18; + } elsif ($dhgrp eq "ECP_256"){ + $dh_group = 19; + } elsif ($dhgrp eq "ECP_384"){ + $dh_group = 20; + } elsif ($dhgrp eq "ECP_521"){ + $dh_group = 21; + } elsif ($dhgrp eq "MODP_1024_160"){ + $dh_group = 22; + } elsif ($dhgrp eq "MODP_2048_224"){ + $dh_group = 23; + } elsif ($dhgrp eq "MODP_2048_256"){ + $dh_group = 24; + } elsif ($dhgrp eq "ECP_192"){ + $dh_group = 25; + } elsif ($dhgrp eq "ECP_224"){ + $dh_group = 26; } elsif ($dhgrp eq "<N/A>"){ $dh_group = "n/a"; } else { |