Skip to content

Commit

Permalink
Merge pull request #198 from dev-sec/rocky
Browse files Browse the repository at this point in the history
add support for Rocky Linux
  • Loading branch information
schurzi authored Nov 30, 2021
2 parents 1cc68fa + ae97782 commit 47a5920
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libraries/ssh_crypto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def valid_ciphers # rubocop:disable Metrics/CyclomaticComplexity
when /^8\./, /^9\./, /^10\./
ciphers = ciphers66
end
when 'redhat', 'centos', 'oracle'
when 'redhat', 'centos', 'oracle', 'rocky'
case inspec.os[:release]
when /^6\./
ciphers = ciphers53
Expand Down Expand Up @@ -95,7 +95,7 @@ def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize,
when /^11\./
kex = kex80
end
when 'redhat', 'centos', 'oracle'
when 'redhat', 'centos', 'oracle', 'rocky'
case inspec.os[:release]
when /^6\./
kex = nil
Expand Down Expand Up @@ -152,7 +152,7 @@ def valid_macs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLen
when /^8\./, /^9\./, /^10\./
macs = macs66
end
when 'redhat', 'centos', 'oracle'
when 'redhat', 'centos', 'oracle', 'rocky'
case inspec.os[:release]
when /^6\./
# RedHat Enterprise Linux (and family) backported SHA2 support to their fork of OpenSSH 5.3 in RHEL 6.5.
Expand Down Expand Up @@ -203,7 +203,7 @@ def valid_privseparation # rubocop:disable Metrics/CyclomaticComplexity
when /^10\./
ps = ps75
end
when 'redhat', 'centos', 'oracle'
when 'redhat', 'centos', 'oracle', 'rocky'
case inspec.os[:release]
# redhat/centos/oracle 6.x has ssh 5.3
when /^6\./
Expand Down Expand Up @@ -242,7 +242,7 @@ def valid_algorithms # rubocop:disable Metrics/CyclomaticComplexity
when /^8\./, /^9\./
alg = alg66
end
when 'redhat', 'centos', 'oracle'
when 'redhat', 'centos', 'oracle', 'rocky'
case inspec.os[:release]
when /^6\./
alg = alg53
Expand Down

0 comments on commit 47a5920

Please sign in to comment.