Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
"SEED-CBC",
);
+my @LEGACY_AUTHS = (
+ "whirlpool",
+);
+
my $DEFAULT_CIPHERS = "AES-256-GCM|AES-128-GCM|CHACHA20-POLY1305";
# Translations for the cipher selection
return 0;
}
+sub is_legacy_auth($) {
+ my $auth = shift;
+
+ foreach my $a (@LEGACY_AUTHS) {
+ return 1 if ($auth eq $a);
+ }
+
+ return 0;
+}
+
sub cleanssldatabase() {
if (open(FILE, ">${General::swroot}/ovpn/certs/serial")) {
print FILE "01";
}
print CONF "auth $sovpnsettings{'DAUTH'}\n";
+
+ if (&is_legacy_auth($sovpnsettings{'DAUTH'})) {
+ $requires_legacy_provider++;
+ }
+
# Set TLSv2 as minimum
print CONF "tls-version-min 1.2\n";