Skip to content

Commit

Permalink
chore: perltidy
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Mar 27, 2024
1 parent 065e14d commit ee2869b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/perl/OVH/Bastion/ssh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ee2869b

Please sign in to comment.