From ee2869b642abd0fe93cc27eb82df1810e5e9e755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 27 Mar 2024 14:32:10 +0000 Subject: [PATCH] chore: perltidy --- lib/perl/OVH/Bastion/ssh.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/perl/OVH/Bastion/ssh.inc b/lib/perl/OVH/Bastion/ssh.inc index bbd1829cd..54d8dad56 100644 --- a/lib/perl/OVH/Bastion/ssh.inc +++ b/lib/perl/OVH/Bastion/ssh.inc @@ -632,9 +632,9 @@ sub get_supported_ssh_algorithms_list { foreach (@{$fnret->value->{'stdout'} || []}, @{$fnret->value->{'stderr'} || []}) { if (/OpenSSH_(\d+\.\d+)/) { my $version = $1; - push @supportedList, 'ecdsa' if ($version gt "5.7"); - push @supportedList, 'ed25519' if ($version gt "6.5"); - push @supportedList, 'ecdsa-sk' if ($version gt "8.2"); + push @supportedList, 'ecdsa' if ($version gt "5.7"); + push @supportedList, 'ed25519' if ($version gt "6.5"); + push @supportedList, 'ecdsa-sk' if ($version gt "8.2"); push @supportedList, 'ed25519-sk' if ($version gt "8.2"); @cached_runtime_list = @supportedList; last; @@ -1050,12 +1050,12 @@ sub is_effective_piv_account_policy_enabled { # Deduces from the bastion config what algorithms are accepted. sub print_accepted_key_algorithms { - my %params = @_; - my $way = $params{'way'}; + my %params = @_; + my $way = $params{'way'}; my $fnret; $fnret = OVH::Bastion::get_supported_ssh_algorithms_list(way => $way); - $fnret or osh_exit $fnret; + $fnret or return $fnret; my @algoList = @{$fnret->value}; if (grep { 'ed25519-sk' eq $_ } @algoList) {